diff --git a/.release-please-manifest.json b/.release-please-manifest.json index d4f0c6a2..6b751208 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "5.21.0" + ".": "5.22.0" } diff --git a/.stats.yml b/.stats.yml index f2277cfc..33d3b469 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 118 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-cbce25283cb9c3282e03e08b7ee81395436af7d0eb480ffcbab307b5bf1c92a0.yml -openapi_spec_hash: c286edf46db95dee05eb6f180ac24ab0 -config_hash: 1f73a949b649ecfe6ec68ba1bb459dc2 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-ef726ad139fa29757029206ee08150434fc6c52005fec6d42c7d2bcd3aa7ab47.yml +openapi_spec_hash: e622beb7c26f9b0dd641bd5c92735a5b +config_hash: dd4343ce95871032ef6e0735a4ca038c diff --git a/CHANGELOG.md b/CHANGELOG.md index d0f2c1d8..248f435b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 5.22.0 (2025-10-29) + +Full Changelog: [v5.21.0...v5.22.0](https://github.com/orbcorp/orb-node/compare/v5.21.0...v5.22.0) + +### Features + +* **api:** api update ([c0925f2](https://github.com/orbcorp/orb-node/commit/c0925f25a34f910260bffe09e7c9978b7ac0531e)) + ## 5.21.0 (2025-10-23) Full Changelog: [v5.20.0...v5.21.0](https://github.com/orbcorp/orb-node/compare/v5.20.0...v5.21.0) diff --git a/package.json b/package.json index 803f5640..e989baa0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "orb-billing", - "version": "5.21.0", + "version": "5.22.0", "description": "The official TypeScript library for the Orb API", "author": "Orb ", "types": "dist/index.d.ts", diff --git a/src/resources/customers/credits/ledger.ts b/src/resources/customers/credits/ledger.ts index f9fdf402..fe4bb637 100644 --- a/src/resources/customers/credits/ledger.ts +++ b/src/resources/customers/credits/ledger.ts @@ -471,15 +471,15 @@ export class LedgerListByExternalIDResponsesPage extends Page | null; - expiry_date: string | null; + filters: Array; + per_unit_cost_basis: string | null; } export namespace AffectedBlock { - export interface BlockFilter { + export interface Filter { /** * The property of the price to filter on. */ diff --git a/src/resources/customers/customers.ts b/src/resources/customers/customers.ts index add61311..51ac45dd 100644 --- a/src/resources/customers/customers.ts +++ b/src/resources/customers/customers.ts @@ -461,6 +461,12 @@ export interface Customer { accounting_sync_configuration?: Customer.AccountingSyncConfiguration | null; + /** + * Whether automatic tax calculation is enabled for this customer. This field is + * nullable for backwards compatibility but will always return a boolean value. + */ + automatic_tax_enabled?: boolean | null; + reporting_configuration?: Customer.ReportingConfiguration | null; } @@ -518,6 +524,12 @@ export interface NewAvalaraTaxConfiguration { tax_provider: 'avalara'; + /** + * Whether to automatically calculate tax for this customer. When null, inherits + * from account-level setting. When true or false, overrides the account setting. + */ + automatic_tax_enabled?: boolean | null; + tax_exemption_code?: string | null; } @@ -529,12 +541,24 @@ export interface NewSphereConfiguration { tax_exempt: boolean; tax_provider: 'sphere'; + + /** + * Whether to automatically calculate tax for this customer. When null, inherits + * from account-level setting. When true or false, overrides the account setting. + */ + automatic_tax_enabled?: boolean | null; } export interface NewTaxJarConfiguration { tax_exempt: boolean; tax_provider: 'taxjar'; + + /** + * Whether to automatically calculate tax for this customer. When null, inherits + * from account-level setting. When true or false, overrides the account setting. + */ + automatic_tax_enabled?: boolean | null; } export interface CustomerCreateParams { @@ -625,6 +649,7 @@ export interface CustomerCreateParams { | NewTaxJarConfiguration | NewSphereConfiguration | CustomerCreateParams.NewNumeralConfiguration + | CustomerCreateParams.NewAnrokConfiguration | null; /** @@ -788,6 +813,24 @@ export namespace CustomerCreateParams { tax_exempt: boolean; tax_provider: 'numeral'; + + /** + * Whether to automatically calculate tax for this customer. When null, inherits + * from account-level setting. When true or false, overrides the account setting. + */ + automatic_tax_enabled?: boolean | null; + } + + export interface NewAnrokConfiguration { + tax_exempt: boolean; + + tax_provider: 'anrok'; + + /** + * Whether to automatically calculate tax for this customer. When null, inherits + * from account-level setting. When true or false, overrides the account setting. + */ + automatic_tax_enabled?: boolean | null; } } @@ -816,6 +859,13 @@ export interface CustomerUpdateParams { */ auto_issuance?: boolean | null; + /** + * Whether automatic tax calculation is enabled for this customer. When null, + * inherits from account-level setting. When true or false, overrides the account + * setting. + */ + automatic_tax_enabled?: boolean | null; + billing_address?: AddressInput | null; /** @@ -883,6 +933,7 @@ export interface CustomerUpdateParams { | NewTaxJarConfiguration | NewSphereConfiguration | CustomerUpdateParams.NewNumeralConfiguration + | CustomerUpdateParams.NewAnrokConfiguration | null; /** @@ -1039,6 +1090,24 @@ export namespace CustomerUpdateParams { tax_exempt: boolean; tax_provider: 'numeral'; + + /** + * Whether to automatically calculate tax for this customer. When null, inherits + * from account-level setting. When true or false, overrides the account setting. + */ + automatic_tax_enabled?: boolean | null; + } + + export interface NewAnrokConfiguration { + tax_exempt: boolean; + + tax_provider: 'anrok'; + + /** + * Whether to automatically calculate tax for this customer. When null, inherits + * from account-level setting. When true or false, overrides the account setting. + */ + automatic_tax_enabled?: boolean | null; } } @@ -1077,6 +1146,13 @@ export interface CustomerUpdateByExternalIDParams { */ auto_issuance?: boolean | null; + /** + * Whether automatic tax calculation is enabled for this customer. When null, + * inherits from account-level setting. When true or false, overrides the account + * setting. + */ + automatic_tax_enabled?: boolean | null; + billing_address?: AddressInput | null; /** @@ -1144,6 +1220,7 @@ export interface CustomerUpdateByExternalIDParams { | NewTaxJarConfiguration | NewSphereConfiguration | CustomerUpdateByExternalIDParams.NewNumeralConfiguration + | CustomerUpdateByExternalIDParams.NewAnrokConfiguration | null; /** @@ -1300,6 +1377,24 @@ export namespace CustomerUpdateByExternalIDParams { tax_exempt: boolean; tax_provider: 'numeral'; + + /** + * Whether to automatically calculate tax for this customer. When null, inherits + * from account-level setting. When true or false, overrides the account setting. + */ + automatic_tax_enabled?: boolean | null; + } + + export interface NewAnrokConfiguration { + tax_exempt: boolean; + + tax_provider: 'anrok'; + + /** + * Whether to automatically calculate tax for this customer. When null, inherits + * from account-level setting. When true or false, overrides the account setting. + */ + automatic_tax_enabled?: boolean | null; } } diff --git a/src/resources/shared.ts b/src/resources/shared.ts index 36e570e6..a0582422 100644 --- a/src/resources/shared.ts +++ b/src/resources/shared.ts @@ -67,6 +67,27 @@ export interface Allocation { currency: string; custom_expiration: CustomExpiration | null; + + filters?: Array; +} + +export namespace Allocation { + export interface Filter { + /** + * The property of the price to filter on. + */ + field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id'; + + /** + * Should prices that match the filter be included or excluded. + */ + operator: 'includes' | 'excludes'; + + /** + * The IDs or values that match this filter. + */ + values: Array; + } } export interface AmountDiscount { diff --git a/src/version.ts b/src/version.ts index 2d3d2040..d4d00cb2 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '5.21.0'; // x-release-please-version +export const VERSION = '5.22.0'; // x-release-please-version diff --git a/tests/api-resources/customers/customers.test.ts b/tests/api-resources/customers/customers.test.ts index 4f293237..313a2e7a 100644 --- a/tests/api-resources/customers/customers.test.ts +++ b/tests/api-resources/customers/customers.test.ts @@ -60,6 +60,7 @@ describe('resource customers', () => { tax_configuration: { tax_exempt: true, tax_provider: 'avalara', + automatic_tax_enabled: true, tax_exemption_code: 'tax_exemption_code', }, tax_id: { country: 'AD', type: 'ad_nrt', value: 'value' },