Skip to content

Commit 8fd53b3

Browse files
feat(api): api update
1 parent dcbef29 commit 8fd53b3

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 118
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-ef726ad139fa29757029206ee08150434fc6c52005fec6d42c7d2bcd3aa7ab47.yml
3-
openapi_spec_hash: e622beb7c26f9b0dd641bd5c92735a5b
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-faf1f7c723d2762f09e9690ef2ceda58cb0a6ddacf1a79c3754871b90e7db0dc.yml
3+
openapi_spec_hash: 22269f85fae1ec920bdb0b32435a7aa8
44
config_hash: dd4343ce95871032ef6e0735a4ca038c

src/resources/invoices.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ export class Invoices extends APIResource {
1616
}
1717

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

866+
/**
867+
* The date of the invoice. Can only be modified for one-off draft invoices.
868+
*/
869+
invoice_date?: (string & {}) | (string & {}) | null;
870+
865871
/**
866872
* User-specified key/value pairs for the resource. Individual keys can be removed
867873
* by setting the value to `null`, and the entire metadata mapping can be cleared

0 commit comments

Comments
 (0)