diff --git a/.release-please-manifest.json b/.release-please-manifest.json index d6266400..0ecd4ce8 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "5.36.0" + ".": "5.37.0" } diff --git a/.stats.yml b/.stats.yml index b9f26ca4..8fee554b 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-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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a7fc004..edfd2042 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/package.json b/package.json index dc16fa7c..c4b930e5 100644 --- a/package.json +++ b/package.json @@ -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 ", "types": "dist/index.d.ts", diff --git a/src/resources/customers/customers.ts b/src/resources/customers/customers.ts index bb7e396b..0da3c6c2 100644 --- a/src/resources/customers/customers.ts +++ b/src/resources/customers/customers.ts @@ -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; } @@ -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; + } + + 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; + } + } + export interface ReportingConfiguration { exempt: boolean; } @@ -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 @@ -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; + } + + 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; + } + } + export interface NewNumeralConfiguration { tax_exempt: boolean; @@ -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: @@ -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; + } + + 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; + } + } + export interface NewNumeralConfiguration { tax_exempt: boolean; @@ -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: @@ -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; + } + + 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; + } + } + export interface NewNumeralConfiguration { tax_exempt: boolean; diff --git a/src/version.ts b/src/version.ts index 27643dbc..41e42a8e 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '5.36.0'; // x-release-please-version +export const VERSION = '5.37.0'; // x-release-please-version diff --git a/tests/api-resources/customers/customers.test.ts b/tests/api-resources/customers/customers.test.ts index 313a2e7a..efbf1372 100644 --- a/tests/api-resources/customers/customers.test.ts +++ b/tests/api-resources/customers/customers.test.ts @@ -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 },