Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "5.21.0"
".": "5.22.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
"types": "dist/index.d.ts",
Expand Down
6 changes: 3 additions & 3 deletions src/resources/customers/credits/ledger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -471,15 +471,15 @@ export class LedgerListByExternalIDResponsesPage extends Page<LedgerListByExtern
export interface AffectedBlock {
id: string;

block_filters: Array<AffectedBlock.BlockFilter> | null;

expiry_date: string | null;

filters: Array<AffectedBlock.Filter>;

per_unit_cost_basis: string | null;
}

export namespace AffectedBlock {
export interface BlockFilter {
export interface Filter {
/**
* The property of the price to filter on.
*/
Expand Down
95 changes: 95 additions & 0 deletions src/resources/customers/customers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand All @@ -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 {
Expand Down Expand Up @@ -625,6 +649,7 @@ export interface CustomerCreateParams {
| NewTaxJarConfiguration
| NewSphereConfiguration
| CustomerCreateParams.NewNumeralConfiguration
| CustomerCreateParams.NewAnrokConfiguration
| null;

/**
Expand Down Expand Up @@ -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;
}
}

Expand Down Expand Up @@ -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;

/**
Expand Down Expand Up @@ -883,6 +933,7 @@ export interface CustomerUpdateParams {
| NewTaxJarConfiguration
| NewSphereConfiguration
| CustomerUpdateParams.NewNumeralConfiguration
| CustomerUpdateParams.NewAnrokConfiguration
| null;

/**
Expand Down Expand Up @@ -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;
}
}

Expand Down Expand Up @@ -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;

/**
Expand Down Expand Up @@ -1144,6 +1220,7 @@ export interface CustomerUpdateByExternalIDParams {
| NewTaxJarConfiguration
| NewSphereConfiguration
| CustomerUpdateByExternalIDParams.NewNumeralConfiguration
| CustomerUpdateByExternalIDParams.NewAnrokConfiguration
| null;

/**
Expand Down Expand Up @@ -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;
}
}

Expand Down
21 changes: 21 additions & 0 deletions src/resources/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,27 @@ export interface Allocation {
currency: string;

custom_expiration: CustomExpiration | null;

filters?: Array<Allocation.Filter>;
}

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<string>;
}
}

export interface AmountDiscount {
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '5.21.0'; // x-release-please-version
export const VERSION = '5.22.0'; // x-release-please-version
1 change: 1 addition & 0 deletions tests/api-resources/customers/customers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
Expand Down