diff --git a/.release-please-manifest.json b/.release-please-manifest.json index b5e91573..ce65b73e 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "5.2.0" + ".": "5.3.0" } diff --git a/.stats.yml b/.stats.yml index 580e92e5..5a4c2212 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 116 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-373ca3e805c414f75a90b0088c57cbb60ff207abdca0a8e397c551de88606c4a.yml -openapi_spec_hash: 1c30d01bd9c38f8a2aa4bd088fbe69bc +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-a44cccd16bb58080f7cc0669999403f6ed3f77287fad901caa6fd2523f2fbafd.yml +openapi_spec_hash: af6444648d0b2a70b7f7ad234bd37541 config_hash: 1f535c1fa222aacf28b636eed21bec72 diff --git a/CHANGELOG.md b/CHANGELOG.md index ae15331e..604e7fb4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 5.3.0 (2025-07-21) + +Full Changelog: [v5.2.0...v5.3.0](https://github.com/orbcorp/orb-node/compare/v5.2.0...v5.3.0) + +### Features + +* **api:** api update ([0821a81](https://github.com/orbcorp/orb-node/commit/0821a8128fc3b4b4f73dc14c21feb05357f6e5c1)) + ## 5.2.0 (2025-07-17) Full Changelog: [v5.1.0...v5.2.0](https://github.com/orbcorp/orb-node/compare/v5.1.0...v5.2.0) diff --git a/package.json b/package.json index b12f661a..d0c2074b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "orb-billing", - "version": "5.2.0", + "version": "5.3.0", "description": "The official TypeScript library for the Orb API", "author": "Orb ", "types": "dist/index.d.ts", diff --git a/src/resources/invoices.ts b/src/resources/invoices.ts index d0887ed8..cfa42548 100644 --- a/src/resources/invoices.ts +++ b/src/resources/invoices.ts @@ -722,14 +722,6 @@ export interface InvoiceCreateParams { line_items: Array; - /** - * Determines the difference between the invoice issue date for subscription - * invoices as the date that they are due. A value of '0' here represents that the - * invoice is due on issue, whereas a value of 30 represents that the customer has - * 30 days to pay the invoice. - */ - net_terms: number; - /** * The id of the `Customer` to create this invoice for. One of `customer_id` and * `external_customer_id` are required. @@ -759,6 +751,14 @@ export interface InvoiceCreateParams { */ metadata?: { [key: string]: string | null } | null; + /** + * Determines the difference between the invoice issue date for subscription + * invoices as the date that they are due. A value of '0' here represents that the + * invoice is due on issue, whereas a value of 30 represents that the customer has + * 30 days to pay the invoice. + */ + net_terms?: number | null; + /** * When true, this invoice will be submitted for issuance upon creation. When * false, the resulting invoice will require manual review to issue. Defaulted to diff --git a/src/version.ts b/src/version.ts index a7cd4eea..b17877a9 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '5.2.0'; // x-release-please-version +export const VERSION = '5.3.0'; // x-release-please-version diff --git a/tests/api-resources/invoices.test.ts b/tests/api-resources/invoices.test.ts index df1c2845..d8b97ce5 100644 --- a/tests/api-resources/invoices.test.ts +++ b/tests/api-resources/invoices.test.ts @@ -24,7 +24,6 @@ describe('resource invoices', () => { unit_config: { unit_amount: 'unit_amount' }, }, ], - net_terms: 0, }); const rawResponse = await responsePromise.asResponse(); expect(rawResponse).toBeInstanceOf(Response); @@ -50,7 +49,6 @@ describe('resource invoices', () => { unit_config: { unit_amount: 'unit_amount' }, }, ], - net_terms: 0, customer_id: '4khy3nwzktxv7', discount: { discount_type: 'percentage', @@ -62,6 +60,7 @@ describe('resource invoices', () => { external_customer_id: 'external-customer-id', memo: 'An optional memo for my invoice.', metadata: { foo: 'string' }, + net_terms: 0, will_auto_issue: false, }); });