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.36.0"
".": "5.37.0"
}
4 changes: 2 additions & 2 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-033643979990e894363554df06218fabe4493feaa569a013dbdf9a72aa21c45f.yml
openapi_spec_hash: dd9d320ad178bafa06f1eac2977e2ca7
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-7936e3f73bbe1d59d27fd7a8a226985927b38fdec1c936c77577381699fb6140.yml
openapi_spec_hash: 1d3f9ed5fbdb0e40d56d6acd9d1736e2
config_hash: e6db17547fe854b1c240407cf4c6dc9e
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 5.37.0 (2025-12-03)

Full Changelog: [v5.36.0...v5.37.0](https://github.com/orbcorp/orb-node/compare/v5.36.0...v5.37.0)

### Features

* **api:** api update ([b08088e](https://github.com/orbcorp/orb-node/commit/b08088e2dab21b602d0554ba367b8d40895e9372))

## 5.36.0 (2025-12-02)

Full Changelog: [v5.35.0...v5.36.0](https://github.com/orbcorp/orb-node/compare/v5.35.0...v5.36.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.36.0",
"version": "5.37.0",
"description": "The official TypeScript library for the Orb API",
"author": "Orb <[email protected]>",
"types": "dist/index.d.ts",
Expand Down
140 changes: 140 additions & 0 deletions src/resources/customers/customers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,12 @@ export interface Customer {
*/
automatic_tax_enabled?: boolean | null;

/**
* Payment configuration for the customer, applicable when using Orb Invoicing with
* a supported payment provider such as Stripe.
*/
payment_configuration?: Customer.PaymentConfiguration | null;

reporting_configuration?: Customer.ReportingConfiguration | null;
}

Expand Down Expand Up @@ -494,6 +500,35 @@ export namespace Customer {
}
}

/**
* Payment configuration for the customer, applicable when using Orb Invoicing with
* a supported payment provider such as Stripe.
*/
export interface PaymentConfiguration {
/**
* Provider-specific payment configuration.
*/
payment_providers?: Array<PaymentConfiguration.PaymentProvider>;
}

export namespace PaymentConfiguration {
export interface PaymentProvider {
/**
* The payment provider to configure.
*/
provider_type: 'stripe';

/**
* List of Stripe payment method types to exclude for this customer. Excluded
* payment methods will not be available for the customer to select during payment,
* and will not be used for auto-collection. If a customer's default payment method
* becomes excluded, Orb will attempt to use the next available compatible payment
* method for auto-collection.
*/
excluded_payment_method_types?: Array<string>;
}
}

export interface ReportingConfiguration {
exempt: boolean;
}
Expand Down Expand Up @@ -627,6 +662,12 @@ export interface CustomerCreateParams {
*/
metadata?: { [key: string]: string | null } | null;

/**
* Payment configuration for the customer, applicable when using Orb Invoicing with
* a supported payment provider such as Stripe.
*/
payment_configuration?: CustomerCreateParams.PaymentConfiguration | null;

/**
* This is used for creating charges or invoices in an external system via Orb.
* When not in test mode, the connection must first be configured in the Orb
Expand Down Expand Up @@ -810,6 +851,35 @@ export interface CustomerCreateParams {
}

export namespace CustomerCreateParams {
/**
* Payment configuration for the customer, applicable when using Orb Invoicing with
* a supported payment provider such as Stripe.
*/
export interface PaymentConfiguration {
/**
* Provider-specific payment configuration.
*/
payment_providers?: Array<PaymentConfiguration.PaymentProvider>;
}

export namespace PaymentConfiguration {
export interface PaymentProvider {
/**
* The payment provider to configure.
*/
provider_type: 'stripe';

/**
* List of Stripe payment method types to exclude for this customer. Excluded
* payment methods will not be available for the customer to select during payment,
* and will not be used for auto-collection. If a customer's default payment method
* becomes excluded, Orb will attempt to use the next available compatible payment
* method for auto-collection.
*/
excluded_payment_method_types?: Array<string>;
}
}

export interface NewNumeralConfiguration {
tax_exempt: boolean;

Expand Down Expand Up @@ -913,6 +983,12 @@ export interface CustomerUpdateParams {
*/
name?: string | null;

/**
* Payment configuration for the customer, applicable when using Orb Invoicing with
* a supported payment provider such as Stripe.
*/
payment_configuration?: CustomerUpdateParams.PaymentConfiguration | null;

/**
* This is used for creating charges or invoices in an external system via Orb.
* When not in test mode:
Expand Down Expand Up @@ -1093,6 +1169,35 @@ export interface CustomerUpdateParams {
}

export namespace CustomerUpdateParams {
/**
* Payment configuration for the customer, applicable when using Orb Invoicing with
* a supported payment provider such as Stripe.
*/
export interface PaymentConfiguration {
/**
* Provider-specific payment configuration.
*/
payment_providers?: Array<PaymentConfiguration.PaymentProvider>;
}

export namespace PaymentConfiguration {
export interface PaymentProvider {
/**
* The payment provider to configure.
*/
provider_type: 'stripe';

/**
* List of Stripe payment method types to exclude for this customer. Excluded
* payment methods will not be available for the customer to select during payment,
* and will not be used for auto-collection. If a customer's default payment method
* becomes excluded, Orb will attempt to use the next available compatible payment
* method for auto-collection.
*/
excluded_payment_method_types?: Array<string>;
}
}

export interface NewNumeralConfiguration {
tax_exempt: boolean;

Expand Down Expand Up @@ -1206,6 +1311,12 @@ export interface CustomerUpdateByExternalIDParams {
*/
name?: string | null;

/**
* Payment configuration for the customer, applicable when using Orb Invoicing with
* a supported payment provider such as Stripe.
*/
payment_configuration?: CustomerUpdateByExternalIDParams.PaymentConfiguration | null;

/**
* This is used for creating charges or invoices in an external system via Orb.
* When not in test mode:
Expand Down Expand Up @@ -1386,6 +1497,35 @@ export interface CustomerUpdateByExternalIDParams {
}

export namespace CustomerUpdateByExternalIDParams {
/**
* Payment configuration for the customer, applicable when using Orb Invoicing with
* a supported payment provider such as Stripe.
*/
export interface PaymentConfiguration {
/**
* Provider-specific payment configuration.
*/
payment_providers?: Array<PaymentConfiguration.PaymentProvider>;
}

export namespace PaymentConfiguration {
export interface PaymentProvider {
/**
* The payment provider to configure.
*/
provider_type: 'stripe';

/**
* List of Stripe payment method types to exclude for this customer. Excluded
* payment methods will not be available for the customer to select during payment,
* and will not be used for auto-collection. If a customer's default payment method
* becomes excluded, Orb will attempt to use the next available compatible payment
* method for auto-collection.
*/
excluded_payment_method_types?: Array<string>;
}
}

export interface NewNumeralConfiguration {
tax_exempt: boolean;

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.36.0'; // x-release-please-version
export const VERSION = '5.37.0'; // x-release-please-version
3 changes: 3 additions & 0 deletions tests/api-resources/customers/customers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ describe('resource customers', () => {
external_customer_id: 'external_customer_id',
hierarchy: { child_customer_ids: ['string'], parent_customer_id: 'parent_customer_id' },
metadata: { foo: 'string' },
payment_configuration: {
payment_providers: [{ provider_type: 'stripe', excluded_payment_method_types: ['string'] }],
},
payment_provider: 'quickbooks',
payment_provider_id: 'payment_provider_id',
reporting_configuration: { exempt: true },
Expand Down