diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 474df30a..72de1d3d 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 7bffa198-5d29-4efa-9942-d549cc832085 management: - docChecksum: 710d40ace875434335a7930caf194d56 - docVersion: 10.21.13 + docChecksum: a127b1f3e4fd52b93118790c2603c291 + docVersion: 10.21.14 speakeasyVersion: 1.653.0 generationVersion: 2.748.0 - releaseVersion: 0.34.3 - configChecksum: f49985873d6068152a46d0a769b17d92 + releaseVersion: 0.34.4 + configChecksum: 26839a05fd57fd38236db980146bfd48 repoURL: https://github.com/apideck-libraries/sdk-typescript.git installationURL: https://github.com/apideck-libraries/sdk-typescript published: true @@ -6314,7 +6314,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"display_id": "EMP00101", "display_name": "Windsurf Shop", "company_name": "SpaceX", "company_id": "12345", "customer_category": "Insurance", "title": "CEO", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "suffix": "Jr.", "individual": true, "project": false, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "notes": "Some notes about this customer", "tax_rate": {"id": "123456", "code": "N-T", "rate": 10}, "tax_number": "US123945459", "currency": "USD", "account": null, "parent": {"id": "12345", "name": "Windsurf Shop"}, "status": "active", "payment_method": "cash", "terms": "Net 30 days", "channel": "email", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"display_id": "EMP00101", "display_name": "Windsurf Shop", "company_name": "SpaceX", "company_id": "12345", "customer_category": "Insurance", "title": "CEO", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "suffix": "Jr.", "individual": true, "project": false, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "notes": "Some notes about this customer", "tax_rate": {"id": "123456", "code": "N-T", "rate": 10}, "tax_number": "US123945459", "taxable": true, "currency": "USD", "account": null, "parent": {"id": "12345", "name": "Windsurf Shop"}, "status": "active", "payment_method": "cash", "terms": "Net 30 days", "channel": "email", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": null}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "201": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "customers", "operation": "add", "data": {"id": "12345"}} @@ -6370,7 +6370,7 @@ examples: x-apideck-service-id: "salesforce" responses: "200": - application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "customers", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "display_id": "EMP00101", "display_name": "Windsurf Shop", "company_name": "SpaceX", "company_id": "12345", "customer_category": "Insurance", "title": "CEO", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "suffix": "Jr.", "individual": true, "project": false, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "notes": "Some notes about this customer", "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tax_number": "US123945459", "currency": "USD", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "parent": {"id": "12345", "name": "Windsurf Shop"}, "status": "active", "payment_method": "cash", "terms": "Net 30 days", "channel": "email", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} + application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "customers", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "display_id": "EMP00101", "display_name": "Windsurf Shop", "company_name": "SpaceX", "company_id": "12345", "customer_category": "Insurance", "title": "CEO", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "suffix": "Jr.", "individual": true, "project": false, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "notes": "Some notes about this customer", "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tax_number": "US123945459", "taxable": true, "currency": "USD", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "parent": {"id": "12345", "name": "Windsurf Shop"}, "status": "active", "payment_method": "cash", "terms": "Net 30 days", "channel": "email", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]}} "400": application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestValidationError", "message": "Invalid Params", "detail": "Missing property foobar", "ref": "https://developers.apideck.com/errors#requestvalidationerror"} "401": @@ -6422,7 +6422,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"display_id": "EMP00101", "display_name": "Windsurf Shop", "company_name": "SpaceX", "company_id": "12345", "customer_category": "Insurance", "title": "CEO", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "suffix": "Jr.", "individual": true, "project": false, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "notes": "Some notes about this customer", "tax_rate": {"id": "123456", "code": "N-T", "rate": 10}, "tax_number": "US123945459", "currency": "USD", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "parent": {"id": "12345", "name": "Windsurf Shop"}, "status": "active", "payment_method": "cash", "terms": "Net 30 days", "channel": "email", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} + application/json: {"display_id": "EMP00101", "display_name": "Windsurf Shop", "company_name": "SpaceX", "company_id": "12345", "customer_category": "Insurance", "title": "CEO", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "suffix": "Jr.", "individual": true, "project": false, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "notes": "Some notes about this customer", "tax_rate": {"id": "123456", "code": "N-T", "rate": 10}, "tax_number": "US123945459", "taxable": true, "currency": "USD", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "parent": {"id": "12345", "name": "Windsurf Shop"}, "status": "active", "payment_method": "cash", "terms": "Net 30 days", "channel": "email", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}]} responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "customers", "operation": "update", "data": {"id": "12345"}} @@ -6581,7 +6581,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"display_id": "EMP00101", "display_name": "Windsurf Shop", "company_name": "SpaceX", "company_id": "12345", "supplier_category": "Insurance", "title": "CEO", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "suffix": "Jr.", "individual": true, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "notes": "Some notes about this supplier", "tax_rate": {"id": "123456", "code": "N-T", "rate": 10}, "tax_number": "US123945459", "currency": "USD", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "status": "active", "payment_method": "cash", "terms": "Net 30 days", "channel": "email", "issued_method": "Email", "issued_email": "john.doe@example.com", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "tax_details": [{"type": "GST on Purchases", "number": "123456", "is_transaction_tax": true, "is_primary_tax": true}], "tax_status_details": [{"country": "US", "transaction_tax_status": "taxable"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "subsidiary_id": "12345", "integration_system_id": "12345"} + application/json: {"display_id": "EMP00101", "display_name": "Windsurf Shop", "company_name": "SpaceX", "company_id": "12345", "supplier_category": "Insurance", "title": "CEO", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "suffix": "Jr.", "individual": true, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "notes": "Some notes about this supplier", "tax_rate": {"id": "123456", "code": "N-T", "rate": 10}, "tax_number": "US123945459", "taxable": true, "currency": "USD", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "status": "active", "payment_method": "cash", "terms": "Net 30 days", "channel": "email", "issued_method": "Email", "issued_email": "john.doe@example.com", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "tax_details": [{"type": "GST on Purchases", "number": "123456", "is_transaction_tax": true, "is_primary_tax": true}], "tax_status_details": [{"country": "US", "transaction_tax_status": "taxable"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "subsidiary_id": "12345", "integration_system_id": "12345"} responses: "201": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "payments", "operation": "add", "data": {"id": "12345"}} @@ -6637,7 +6637,7 @@ examples: x-apideck-service-id: "salesforce" responses: "200": - application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "suppliers", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "display_id": "EMP00101", "display_name": "Windsurf Shop", "company_name": "SpaceX", "company_id": "12345", "supplier_category": "Insurance", "title": "CEO", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "suffix": "Jr.", "individual": true, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "notes": "Some notes about this supplier", "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tax_number": "US123945459", "currency": "USD", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "status": "active", "payment_method": "cash", "terms": "Net 30 days", "channel": "email", "issued_method": "Email", "issued_email": "john.doe@example.com", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "tax_details": [{"type": "GST on Purchases", "number": "123456", "is_transaction_tax": true, "is_primary_tax": true}], "tax_status_details": [{"country": "US", "transaction_tax_status": "taxable"}], "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "subsidiary_id": "12345", "integration_system_id": "12345"}} + application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "suppliers", "operation": "one", "data": {"id": "12345", "downstream_id": "12345", "display_id": "EMP00101", "display_name": "Windsurf Shop", "company_name": "SpaceX", "company_id": "12345", "supplier_category": "Insurance", "title": "CEO", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "suffix": "Jr.", "individual": true, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "notes": "Some notes about this supplier", "tax_rate": {"id": "123456", "code": "N-T", "name": "GST on Purchases", "rate": 10}, "tax_number": "US123945459", "taxable": true, "currency": "USD", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "status": "active", "payment_method": "cash", "terms": "Net 30 days", "channel": "email", "issued_method": "Email", "issued_email": "john.doe@example.com", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "tax_details": [{"type": "GST on Purchases", "number": "123456", "is_transaction_tax": true, "is_primary_tax": true}], "tax_status_details": [{"country": "US", "transaction_tax_status": "taxable"}], "updated_by": "12345", "created_by": "12345", "updated_at": "2020-09-30T07:43:32.000Z", "created_at": "2020-09-30T07:43:32.000Z", "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "subsidiary_id": "12345", "integration_system_id": "12345"}} "400": application/json: {"status_code": 400, "error": "Bad Request", "type_name": "RequestValidationError", "message": "Invalid Params", "detail": "Missing property foobar", "ref": "https://developers.apideck.com/errors#requestvalidationerror"} "401": @@ -6689,7 +6689,7 @@ examples: x-apideck-app-id: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX" x-apideck-service-id: "salesforce" requestBody: - application/json: {"display_id": "EMP00101", "display_name": "Windsurf Shop", "company_name": "SpaceX", "company_id": "12345", "supplier_category": "Insurance", "title": "CEO", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "suffix": "Jr.", "individual": true, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "notes": "Some notes about this supplier", "tax_rate": {"id": "123456", "code": "N-T", "rate": 10}, "tax_number": "US123945459", "currency": "USD", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "status": "active", "payment_method": "cash", "terms": "Net 30 days", "channel": "email", "issued_method": "Email", "issued_email": "john.doe@example.com", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "tax_details": [{"type": "GST on Purchases", "number": "123456", "is_transaction_tax": true, "is_primary_tax": true}], "tax_status_details": [{"country": "US", "transaction_tax_status": "taxable"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "subsidiary_id": "12345", "integration_system_id": "12345"} + application/json: {"display_id": "EMP00101", "display_name": "Windsurf Shop", "company_name": "SpaceX", "company_id": "12345", "supplier_category": "Insurance", "title": "CEO", "first_name": "Elon", "middle_name": "D.", "last_name": "Musk", "suffix": "Jr.", "individual": true, "addresses": [{"id": "123", "type": "primary", "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", "line2": "apt #", "line3": "Suite #", "line4": "delivery instructions", "street_number": "25", "city": "San Francisco", "state": "CA", "postal_code": "94104", "country": "US", "latitude": "40.759211", "longitude": "-73.984638", "county": "Santa Clara", "contact_name": "Elon Musk", "salutation": "Mr", "phone_number": "111-111-1111", "fax": "122-111-1111", "email": "elon@musk.com", "website": "https://elonmusk.com", "notes": "Address notes or delivery instructions.", "row_version": "1-12345"}], "phone_numbers": [{"id": "12345", "country_code": "1", "area_code": "323", "number": "111-111-1111", "extension": "105", "type": "primary"}], "emails": [{"id": "123", "email": "elon@musk.com", "type": "primary"}], "websites": [{"id": "12345", "url": "http://example.com", "type": "primary"}], "bank_accounts": [{"bank_name": "Monzo", "account_number": "123465", "account_name": "SPACEX LLC", "account_type": "credit_card", "iban": "CH2989144532982975332", "bic": "AUDSCHGGXXX", "routing_number": "012345678", "bsb_number": "062-001", "branch_identifier": "001", "bank_code": "BNH", "currency": "USD"}], "notes": "Some notes about this supplier", "tax_rate": {"id": "123456", "code": "N-T", "rate": 10}, "tax_number": "US123945459", "taxable": true, "currency": "USD", "account": {"id": "123456", "name": "Bank account", "nominal_code": "N091", "code": "453", "parent_id": "123456", "display_id": "123456"}, "status": "active", "payment_method": "cash", "terms": "Net 30 days", "channel": "email", "issued_method": "Email", "issued_email": "john.doe@example.com", "custom_fields": [{"id": "2389328923893298", "name": "employee_level", "description": "Employee Level", "value": "Uses Salesforce and Marketo"}], "tax_details": [{"type": "GST on Purchases", "number": "123456", "is_transaction_tax": true, "is_primary_tax": true}], "tax_status_details": [{"country": "US", "transaction_tax_status": "taxable"}], "row_version": "1-12345", "pass_through": [{"service_id": "", "extend_paths": [{"path": "$.nested.property", "value": {"TaxClassificationRef": {"value": "EUC-99990201-V1-00020000"}}}]}], "subsidiary_id": "12345", "integration_system_id": "12345"} responses: "200": application/json: {"status_code": 200, "status": "OK", "service": "xero", "resource": "suppliers", "operation": "update", "data": {"id": "12345"}} @@ -20413,4 +20413,4 @@ generatedTests: accounting.projectsOne: "2025-10-13T00:03:48Z" accounting.projectsUpdate: "2025-10-13T00:03:48Z" accounting.projectsDelete: "2025-10-13T00:03:48Z" -releaseNotes: "## Typescript SDK Changes Detected:\n* `apideck.accounting.subsidiaries.list()`: `response.data.[].address` **Added**\n* `apideck.accounting.subsidiaries.create()`: \n * `request.subsidiary.address` **Added**\n* `apideck.accounting.subsidiaries.get()`: `response.data.address` **Added**\n* `apideck.accounting.subsidiaries.update()`: \n * `request.subsidiary.address` **Added**\n" +releaseNotes: "## Typescript SDK Changes Detected:\n* `apideck.accounting.customers.list()`: `response.data.[].taxable` **Added**\n* `apideck.accounting.customers.create()`: \n * `request.customer.taxable` **Added**\n* `apideck.accounting.customers.get()`: `response.data.taxable` **Added**\n* `apideck.accounting.customers.update()`: \n * `request.customer.taxable` **Added**\n* `apideck.accounting.suppliers.list()`: `response.data.[].taxable` **Added**\n* `apideck.accounting.suppliers.create()`: \n * `request.supplier.taxable` **Added**\n* `apideck.accounting.suppliers.get()`: `response.data.taxable` **Added**\n* `apideck.accounting.suppliers.update()`: \n * `request.supplier.taxable` **Added**\n" diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 08c6e2a4..b58bcbae 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -28,7 +28,7 @@ generation: generateNewTests: true skipResponseBodyAssertions: false typescript: - version: 0.34.3 + version: 0.34.4 acceptHeaderEnum: true additionalDependencies: dependencies: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index b24b8b82..ec1f0246 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,20 +2,20 @@ speakeasyVersion: 1.653.0 sources: Apideck-OAS: sourceNamespace: apideck-oas - sourceRevisionDigest: sha256:b784fd89eb398c4da009bd986bd94e73f4dc52c16f93e4fc63509323ec5bc4e1 - sourceBlobDigest: sha256:c53104ab75328b4e294f5bccfb4b8efb6646bfaf792b37702386d88ab5d2611b + sourceRevisionDigest: sha256:bc81cbffacf9ce4767ace293cbaef11d3e61151f63396a4deb31a80a29b99bef + sourceBlobDigest: sha256:0f0efb99140225bbbea2efaa2df2e0d6e5929d70b7a67f01099e32e34498e927 tags: - latest - - speakeasy-sdk-regen-1762795607 - - 10.21.13 + - speakeasy-sdk-regen-1762860470 + - 10.21.14 targets: apideck: source: Apideck-OAS sourceNamespace: apideck-oas - sourceRevisionDigest: sha256:b784fd89eb398c4da009bd986bd94e73f4dc52c16f93e4fc63509323ec5bc4e1 - sourceBlobDigest: sha256:c53104ab75328b4e294f5bccfb4b8efb6646bfaf792b37702386d88ab5d2611b + sourceRevisionDigest: sha256:bc81cbffacf9ce4767ace293cbaef11d3e61151f63396a4deb31a80a29b99bef + sourceBlobDigest: sha256:0f0efb99140225bbbea2efaa2df2e0d6e5929d70b7a67f01099e32e34498e927 codeSamplesNamespace: apideck-oas-typescript-code-samples - codeSamplesRevisionDigest: sha256:38767e2a7ffb1905c4c2d7054e315a1d39468bcf62393dfd9c584fb0ad4c58cc + codeSamplesRevisionDigest: sha256:2bfe171b9aacfa62288dbdd4b2899ada6889c7e29a28d46a5567d9ce78a12b68 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index d615f381..c1cba2c8 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -588,4 +588,14 @@ Based on: ### Generated - [typescript v0.34.3] . ### Releases -- [NPM v0.34.3] https://www.npmjs.com/package/@apideck/unify/v/0.34.3 - . \ No newline at end of file +- [NPM v0.34.3] https://www.npmjs.com/package/@apideck/unify/v/0.34.3 - . + +## 2025-11-11 11:27:27 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.653.0 (2.748.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.34.4] . +### Releases +- [NPM v0.34.4] https://www.npmjs.com/package/@apideck/unify/v/0.34.4 - . \ No newline at end of file diff --git a/docs/models/components/customer.md b/docs/models/components/customer.md index 4c67215d..67fdf2df 100644 --- a/docs/models/components/customer.md +++ b/docs/models/components/customer.md @@ -97,6 +97,7 @@ let value: Customer = { rate: 10, }, taxNumber: "US123945459", + taxable: true, currency: "USD", account: { id: "123456", @@ -168,6 +169,7 @@ let value: Customer = { | `notes` | *string* | :heavy_minus_sign: | Some notes about this customer | Some notes about this customer | | `taxRate` | [components.LinkedTaxRate](../../models/components/linkedtaxrate.md) | :heavy_minus_sign: | N/A | | | `taxNumber` | *string* | :heavy_minus_sign: | N/A | US123945459 | +| `taxable` | *boolean* | :heavy_minus_sign: | Whether the entity is subject to taxation | true | | `currency` | [components.Currency](../../models/components/currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | | `account` | [components.LinkedLedgerAccount](../../models/components/linkedledgeraccount.md) | :heavy_minus_sign: | N/A | | | `parent` | [components.LinkedParentCustomer](../../models/components/linkedparentcustomer.md) | :heavy_minus_sign: | The parent customer this entity is linked to. | | diff --git a/docs/models/components/customerinput.md b/docs/models/components/customerinput.md index a156904a..b7478183 100644 --- a/docs/models/components/customerinput.md +++ b/docs/models/components/customerinput.md @@ -94,6 +94,7 @@ let value: CustomerInput = { rate: 10, }, taxNumber: "US123945459", + taxable: true, currency: "USD", account: { id: "123456", @@ -162,6 +163,7 @@ let value: CustomerInput = { | `notes` | *string* | :heavy_minus_sign: | Some notes about this customer | Some notes about this customer | | `taxRate` | [components.LinkedTaxRateInput](../../models/components/linkedtaxrateinput.md) | :heavy_minus_sign: | N/A | | | `taxNumber` | *string* | :heavy_minus_sign: | N/A | US123945459 | +| `taxable` | *boolean* | :heavy_minus_sign: | Whether the entity is subject to taxation | true | | `currency` | [components.Currency](../../models/components/currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | | `account` | [components.LinkedLedgerAccount](../../models/components/linkedledgeraccount.md) | :heavy_minus_sign: | N/A | | | `parent` | [components.LinkedParentCustomer](../../models/components/linkedparentcustomer.md) | :heavy_minus_sign: | The parent customer this entity is linked to. | | diff --git a/docs/models/components/getcustomerresponse.md b/docs/models/components/getcustomerresponse.md index 6e3d021f..6a940466 100644 --- a/docs/models/components/getcustomerresponse.md +++ b/docs/models/components/getcustomerresponse.md @@ -105,6 +105,7 @@ let value: GetCustomerResponse = { rate: 10, }, taxNumber: "US123945459", + taxable: true, currency: "USD", account: { id: "123456", diff --git a/docs/models/components/getcustomersresponse.md b/docs/models/components/getcustomersresponse.md index 29a546e9..5cb5346b 100644 --- a/docs/models/components/getcustomersresponse.md +++ b/docs/models/components/getcustomersresponse.md @@ -106,6 +106,7 @@ let value: GetCustomersResponse = { rate: 10, }, taxNumber: "US123945459", + taxable: true, currency: "USD", account: { id: "123456", diff --git a/docs/models/components/getsupplierresponse.md b/docs/models/components/getsupplierresponse.md index a001207f..8e55bf9f 100644 --- a/docs/models/components/getsupplierresponse.md +++ b/docs/models/components/getsupplierresponse.md @@ -104,6 +104,7 @@ let value: GetSupplierResponse = { rate: 10, }, taxNumber: "US123945459", + taxable: true, currency: "USD", account: { id: "123456", diff --git a/docs/models/components/getsuppliersresponse.md b/docs/models/components/getsuppliersresponse.md index 4cb177ab..7b699173 100644 --- a/docs/models/components/getsuppliersresponse.md +++ b/docs/models/components/getsuppliersresponse.md @@ -105,6 +105,7 @@ let value: GetSuppliersResponse = { rate: 10, }, taxNumber: "US123945459", + taxable: true, currency: "USD", account: { id: "123456", diff --git a/docs/models/components/supplier.md b/docs/models/components/supplier.md index 188ea43f..7c390060 100644 --- a/docs/models/components/supplier.md +++ b/docs/models/components/supplier.md @@ -96,6 +96,7 @@ let value: Supplier = { rate: 10, }, taxNumber: "US123945459", + taxable: true, currency: "USD", account: { id: "123456", @@ -183,6 +184,7 @@ let value: Supplier = { | `notes` | *string* | :heavy_minus_sign: | Some notes about this supplier | Some notes about this supplier | | `taxRate` | [components.LinkedTaxRate](../../models/components/linkedtaxrate.md) | :heavy_minus_sign: | N/A | | | `taxNumber` | *string* | :heavy_minus_sign: | N/A | US123945459 | +| `taxable` | *boolean* | :heavy_minus_sign: | Whether the entity is subject to taxation | true | | `currency` | [components.Currency](../../models/components/currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | | `account` | [components.LinkedLedgerAccount](../../models/components/linkedledgeraccount.md) | :heavy_minus_sign: | N/A | | | `status` | [components.SupplierStatus](../../models/components/supplierstatus.md) | :heavy_minus_sign: | Supplier status | active | diff --git a/docs/models/components/supplierinput.md b/docs/models/components/supplierinput.md index 57b6abee..5bbb6abc 100644 --- a/docs/models/components/supplierinput.md +++ b/docs/models/components/supplierinput.md @@ -93,6 +93,7 @@ let value: SupplierInput = { rate: 10, }, taxNumber: "US123945459", + taxable: true, currency: "USD", account: { id: "123456", @@ -174,6 +175,7 @@ let value: SupplierInput = { | `notes` | *string* | :heavy_minus_sign: | Some notes about this supplier | Some notes about this supplier | | `taxRate` | [components.LinkedTaxRateInput](../../models/components/linkedtaxrateinput.md) | :heavy_minus_sign: | N/A | | | `taxNumber` | *string* | :heavy_minus_sign: | N/A | US123945459 | +| `taxable` | *boolean* | :heavy_minus_sign: | Whether the entity is subject to taxation | true | | `currency` | [components.Currency](../../models/components/currency.md) | :heavy_minus_sign: | Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). | USD | | `account` | [components.LinkedLedgerAccount](../../models/components/linkedledgeraccount.md) | :heavy_minus_sign: | N/A | | | `status` | [components.SupplierStatus](../../models/components/supplierstatus.md) | :heavy_minus_sign: | Supplier status | active | diff --git a/docs/models/operations/accountingcustomersaddrequest.md b/docs/models/operations/accountingcustomersaddrequest.md index 8daf667e..3804c015 100644 --- a/docs/models/operations/accountingcustomersaddrequest.md +++ b/docs/models/operations/accountingcustomersaddrequest.md @@ -96,6 +96,7 @@ let value: AccountingCustomersAddRequest = { rate: 10, }, taxNumber: "US123945459", + taxable: true, currency: "USD", account: { id: "123456", diff --git a/docs/models/operations/accountingcustomersupdaterequest.md b/docs/models/operations/accountingcustomersupdaterequest.md index 080b2fbd..a05ee346 100644 --- a/docs/models/operations/accountingcustomersupdaterequest.md +++ b/docs/models/operations/accountingcustomersupdaterequest.md @@ -97,6 +97,7 @@ let value: AccountingCustomersUpdateRequest = { rate: 10, }, taxNumber: "US123945459", + taxable: true, currency: "USD", account: { id: "123456", diff --git a/docs/models/operations/accountingsuppliersaddrequest.md b/docs/models/operations/accountingsuppliersaddrequest.md index bafece81..f5c4c6b1 100644 --- a/docs/models/operations/accountingsuppliersaddrequest.md +++ b/docs/models/operations/accountingsuppliersaddrequest.md @@ -95,6 +95,7 @@ let value: AccountingSuppliersAddRequest = { rate: 10, }, taxNumber: "US123945459", + taxable: true, currency: "USD", account: null, status: "active", diff --git a/docs/models/operations/accountingsuppliersupdaterequest.md b/docs/models/operations/accountingsuppliersupdaterequest.md index 0b7dd436..92a1882e 100644 --- a/docs/models/operations/accountingsuppliersupdaterequest.md +++ b/docs/models/operations/accountingsuppliersupdaterequest.md @@ -96,6 +96,7 @@ let value: AccountingSuppliersUpdateRequest = { rate: 10, }, taxNumber: "US123945459", + taxable: true, currency: "USD", account: null, status: "active", diff --git a/examples/package-lock.json b/examples/package-lock.json index 0eb7b0be..79be2424 100644 --- a/examples/package-lock.json +++ b/examples/package-lock.json @@ -18,7 +18,7 @@ }, "..": { "name": "@apideck/unify", - "version": "0.34.3", + "version": "0.34.4", "dependencies": { "zod": "^3.25.0 || ^4.0.0" }, diff --git a/jsr.json b/jsr.json index d53a31f8..0d86636d 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@apideck/unify", - "version": "0.34.3", + "version": "0.34.4", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index c5392d47..94a0dda8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@apideck/unify", - "version": "0.34.3", + "version": "0.34.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@apideck/unify", - "version": "0.34.3", + "version": "0.34.4", "dependencies": { "zod": "^3.25.0 || ^4.0.0" }, diff --git a/package.json b/package.json index d5f5b6aa..240ce4d6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@apideck/unify", - "version": "0.34.3", + "version": "0.34.4", "author": "Speakeasy", "main": "./index.js", "sideEffects": false, diff --git a/src/__tests__/mockserver/internal/sdk/models/components/customer.go b/src/__tests__/mockserver/internal/sdk/models/components/customer.go index 735fd581..b530dd53 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/customer.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/customer.go @@ -82,6 +82,8 @@ type Customer struct { Notes *string `json:"notes,omitempty"` TaxRate *LinkedTaxRate `json:"tax_rate,omitempty"` TaxNumber *string `json:"tax_number,omitempty"` + // Whether the entity is subject to taxation + Taxable *bool `json:"taxable,omitempty"` // Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). Currency *Currency `json:"currency,omitempty"` Account *LinkedLedgerAccount `json:"account,omitempty"` @@ -277,6 +279,13 @@ func (o *Customer) GetTaxNumber() *string { return o.TaxNumber } +func (o *Customer) GetTaxable() *bool { + if o == nil { + return nil + } + return o.Taxable +} + func (o *Customer) GetCurrency() *Currency { if o == nil { return nil @@ -415,6 +424,8 @@ type CustomerInput struct { Notes *string `json:"notes,omitempty"` TaxRate *LinkedTaxRateInput `json:"tax_rate,omitempty"` TaxNumber *string `json:"tax_number,omitempty"` + // Whether the entity is subject to taxation + Taxable *bool `json:"taxable,omitempty"` // Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). Currency *Currency `json:"currency,omitempty"` Account *LinkedLedgerAccount `json:"account,omitempty"` @@ -575,6 +586,13 @@ func (o *CustomerInput) GetTaxNumber() *string { return o.TaxNumber } +func (o *CustomerInput) GetTaxable() *bool { + if o == nil { + return nil + } + return o.Taxable +} + func (o *CustomerInput) GetCurrency() *Currency { if o == nil { return nil diff --git a/src/__tests__/mockserver/internal/sdk/models/components/supplier.go b/src/__tests__/mockserver/internal/sdk/models/components/supplier.go index 8296266b..04dddc8d 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/supplier.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/supplier.go @@ -80,6 +80,8 @@ type Supplier struct { Notes *string `json:"notes,omitempty"` TaxRate *LinkedTaxRate `json:"tax_rate,omitempty"` TaxNumber *string `json:"tax_number,omitempty"` + // Whether the entity is subject to taxation + Taxable *bool `json:"taxable,omitempty"` // Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). Currency *Currency `json:"currency,omitempty"` Account *LinkedLedgerAccount `json:"account,omitempty"` @@ -276,6 +278,13 @@ func (o *Supplier) GetTaxNumber() *string { return o.TaxNumber } +func (o *Supplier) GetTaxable() *bool { + if o == nil { + return nil + } + return o.Taxable +} + func (o *Supplier) GetCurrency() *Currency { if o == nil { return nil @@ -447,6 +456,8 @@ type SupplierInput struct { Notes *string `json:"notes,omitempty"` TaxRate *LinkedTaxRateInput `json:"tax_rate,omitempty"` TaxNumber *string `json:"tax_number,omitempty"` + // Whether the entity is subject to taxation + Taxable *bool `json:"taxable,omitempty"` // Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). Currency *Currency `json:"currency,omitempty"` Account *LinkedLedgerAccount `json:"account,omitempty"` @@ -608,6 +619,13 @@ func (o *SupplierInput) GetTaxNumber() *string { return o.TaxNumber } +func (o *SupplierInput) GetTaxable() *bool { + if o == nil { + return nil + } + return o.Taxable +} + func (o *SupplierInput) GetCurrency() *Currency { if o == nil { return nil diff --git a/src/lib/config.ts b/src/lib/config.ts index 7f4c2b8a..3b5bc608 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -67,8 +67,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", - openapiDocVersion: "10.21.13", - sdkVersion: "0.34.3", + openapiDocVersion: "10.21.14", + sdkVersion: "0.34.4", genVersion: "2.748.0", - userAgent: "speakeasy-sdk/typescript 0.34.3 2.748.0 10.21.13 @apideck/unify", + userAgent: "speakeasy-sdk/typescript 0.34.4 2.748.0 10.21.14 @apideck/unify", } as const; diff --git a/src/models/components/customer.ts b/src/models/components/customer.ts index 382f7afe..f78955c5 100644 --- a/src/models/components/customer.ts +++ b/src/models/components/customer.ts @@ -154,6 +154,10 @@ export type Customer = { notes?: string | null | undefined; taxRate?: LinkedTaxRate | undefined; taxNumber?: string | null | undefined; + /** + * Whether the entity is subject to taxation + */ + taxable?: boolean | null | undefined; /** * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). */ @@ -267,6 +271,10 @@ export type CustomerInput = { notes?: string | null | undefined; taxRate?: LinkedTaxRateInput | undefined; taxNumber?: string | null | undefined; + /** + * Whether the entity is subject to taxation + */ + taxable?: boolean | null | undefined; /** * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). */ @@ -340,6 +348,7 @@ export const Customer$inboundSchema: z.ZodType< notes: z.nullable(z.string()).optional(), tax_rate: LinkedTaxRate$inboundSchema.optional(), tax_number: z.nullable(z.string()).optional(), + taxable: z.nullable(z.boolean()).optional(), currency: z.nullable(Currency$inboundSchema).optional(), account: z.nullable(LinkedLedgerAccount$inboundSchema).optional(), parent: z.nullable(LinkedParentCustomer$inboundSchema).optional(), @@ -418,6 +427,7 @@ export type CustomerInput$Outbound = { notes?: string | null | undefined; tax_rate?: LinkedTaxRateInput$Outbound | undefined; tax_number?: string | null | undefined; + taxable?: boolean | null | undefined; currency?: string | null | undefined; account?: LinkedLedgerAccount$Outbound | null | undefined; parent?: LinkedParentCustomer$Outbound | null | undefined; @@ -456,6 +466,7 @@ export const CustomerInput$outboundSchema: z.ZodType< notes: z.nullable(z.string()).optional(), taxRate: LinkedTaxRateInput$outboundSchema.optional(), taxNumber: z.nullable(z.string()).optional(), + taxable: z.nullable(z.boolean()).optional(), currency: z.nullable(Currency$outboundSchema).optional(), account: z.nullable(LinkedLedgerAccount$outboundSchema).optional(), parent: z.nullable(LinkedParentCustomer$outboundSchema).optional(), diff --git a/src/models/components/supplier.ts b/src/models/components/supplier.ts index fa7595bf..f8c8a3da 100644 --- a/src/models/components/supplier.ts +++ b/src/models/components/supplier.ts @@ -156,6 +156,10 @@ export type Supplier = { notes?: string | null | undefined; taxRate?: LinkedTaxRate | undefined; taxNumber?: string | null | undefined; + /** + * Whether the entity is subject to taxation + */ + taxable?: boolean | null | undefined; /** * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). */ @@ -279,6 +283,10 @@ export type SupplierInput = { notes?: string | null | undefined; taxRate?: LinkedTaxRateInput | undefined; taxNumber?: string | null | undefined; + /** + * Whether the entity is subject to taxation + */ + taxable?: boolean | null | undefined; /** * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). */ @@ -365,6 +373,7 @@ export const Supplier$inboundSchema: z.ZodType< notes: z.nullable(z.string()).optional(), tax_rate: LinkedTaxRate$inboundSchema.optional(), tax_number: z.nullable(z.string()).optional(), + taxable: z.nullable(z.boolean()).optional(), currency: z.nullable(Currency$inboundSchema).optional(), account: z.nullable(LinkedLedgerAccount$inboundSchema).optional(), status: z.nullable(SupplierStatus$inboundSchema).optional(), @@ -454,6 +463,7 @@ export type SupplierInput$Outbound = { notes?: string | null | undefined; tax_rate?: LinkedTaxRateInput$Outbound | undefined; tax_number?: string | null | undefined; + taxable?: boolean | null | undefined; currency?: string | null | undefined; account?: LinkedLedgerAccount$Outbound | null | undefined; status?: string | null | undefined; @@ -496,6 +506,7 @@ export const SupplierInput$outboundSchema: z.ZodType< notes: z.nullable(z.string()).optional(), taxRate: LinkedTaxRateInput$outboundSchema.optional(), taxNumber: z.nullable(z.string()).optional(), + taxable: z.nullable(z.boolean()).optional(), currency: z.nullable(Currency$outboundSchema).optional(), account: z.nullable(LinkedLedgerAccount$outboundSchema).optional(), status: z.nullable(SupplierStatus$outboundSchema).optional(),