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.22.0"
".": "5.23.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-ef726ad139fa29757029206ee08150434fc6c52005fec6d42c7d2bcd3aa7ab47.yml
openapi_spec_hash: e622beb7c26f9b0dd641bd5c92735a5b
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-faf1f7c723d2762f09e9690ef2ceda58cb0a6ddacf1a79c3754871b90e7db0dc.yml
openapi_spec_hash: 22269f85fae1ec920bdb0b32435a7aa8
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.23.0 (2025-10-30)

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

### Features

* **api:** api update ([8fd53b3](https://github.com/orbcorp/orb-node/commit/8fd53b34b22be3f63bd6efb28854c1a4785851ed))

## 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)
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.22.0",
"version": "5.23.0",
"description": "The official TypeScript library for the Orb API",
"author": "Orb <[email protected]>",
"types": "dist/index.d.ts",
Expand Down
16 changes: 11 additions & 5 deletions src/resources/invoices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ export class Invoices extends APIResource {
}

/**
* This endpoint allows you to update the `metadata`, `net_terms`, and `due_date`
* properties on an invoice. If you pass null for the metadata value, it will clear
* any existing metadata for that invoice.
* This endpoint allows you to update the `metadata`, `net_terms`, `due_date`, and
* `invoice_date` properties on an invoice. If you pass null for the metadata
* value, it will clear any existing metadata for that invoice.
*
* `metadata` can be modified regardless of invoice state. `net_terms` and
* `due_date` can only be modified if the invoice is in a `draft` state.
* `metadata` can be modified regardless of invoice state. `net_terms`, `due_date`,
* and `invoice_date` can only be modified if the invoice is in a `draft` state.
* `invoice_date` can only be modified for non-subscription invoices.
*/
update(
invoiceId: string,
Expand Down Expand Up @@ -862,6 +863,11 @@ export interface InvoiceUpdateParams {
*/
due_date?: (string & {}) | (string & {}) | null;

/**
* The date of the invoice. Can only be modified for one-off draft invoices.
*/
invoice_date?: (string & {}) | (string & {}) | null;

/**
* User-specified key/value pairs for the resource. Individual keys can be removed
* by setting the value to `null`, and the entire metadata mapping can be cleared
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.22.0'; // x-release-please-version
export const VERSION = '5.23.0'; // x-release-please-version