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.2.0"
".": "5.3.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: 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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
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.2.0",
"version": "5.3.0",
"description": "The official TypeScript library for the Orb API",
"author": "Orb <team@withorb.com>",
"types": "dist/index.d.ts",
Expand Down
16 changes: 8 additions & 8 deletions src/resources/invoices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -722,14 +722,6 @@ export interface InvoiceCreateParams {

line_items: Array<InvoiceCreateParams.LineItem>;

/**
* 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.
Expand Down Expand Up @@ -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
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.2.0'; // x-release-please-version
export const VERSION = '5.3.0'; // x-release-please-version
3 changes: 1 addition & 2 deletions tests/api-resources/invoices.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -50,7 +49,6 @@ describe('resource invoices', () => {
unit_config: { unit_amount: 'unit_amount' },
},
],
net_terms: 0,
customer_id: '4khy3nwzktxv7',
discount: {
discount_type: 'percentage',
Expand All @@ -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,
});
});
Expand Down