Skip to content

Commit 65b668d

Browse files
feat(api): api update
1 parent e630ced commit 65b668d

File tree

6 files changed

+22
-15
lines changed

6 files changed

+22
-15
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: 116
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-a44cccd16bb58080f7cc0669999403f6ed3f77287fad901caa6fd2523f2fbafd.yml
3-
openapi_spec_hash: af6444648d0b2a70b7f7ad234bd37541
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-1aabbd8715a871e993abf67f0bf9c1d6793b4f197c4b2f11fc7a76453590cd6c.yml
3+
openapi_spec_hash: 3e5878f87e74881d882a69e1ccdc25a3
44
config_hash: 1f535c1fa222aacf28b636eed21bec72

src/resources/customers/costs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ export interface CostListByExternalIDResponse {
295295

296296
export interface CostListParams {
297297
/**
298-
* The currency to use.
298+
* The currency or custom pricing unit to use.
299299
*/
300300
currency?: string | null;
301301

@@ -320,7 +320,7 @@ export interface CostListParams {
320320

321321
export interface CostListByExternalIDParams {
322322
/**
323-
* The currency to use.
323+
* The currency or custom pricing unit to use.
324324
*/
325325
currency?: string | null;
326326

src/resources/customers/credits/ledger.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ export declare namespace LedgerCreateEntryParams {
900900
* date for the invoice. If you intend the invoice to be due on issue, set this
901901
* to 0.
902902
*/
903-
net_terms: number;
903+
net_terms: number | null;
904904

905905
/**
906906
* An ISO 8601 format date that denotes when this invoice should be dated in the
@@ -1158,7 +1158,7 @@ export declare namespace LedgerCreateEntryByExternalIDParams {
11581158
* date for the invoice. If you intend the invoice to be due on issue, set this
11591159
* to 0.
11601160
*/
1161-
net_terms: number;
1161+
net_terms: number | null;
11621162

11631163
/**
11641164
* An ISO 8601 format date that denotes when this invoice should be dated in the

src/resources/customers/customers.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -716,8 +716,11 @@ export interface CustomerUpdateParams {
716716
email_delivery?: boolean | null;
717717

718718
/**
719-
* The external customer ID. This can only be set if empty and the customer has no
720-
* past or current subscriptions.
719+
* The external customer ID. This can only be set if the customer has no existing
720+
* external customer ID. Since this action may change usage quantities for all
721+
* existing subscriptions, it is disallowed if the customer has issued invoices
722+
* with usage line items and subject to the same restrictions as backdated
723+
* subscription creation.
721724
*/
722725
external_customer_id?: string | null;
723726

@@ -913,8 +916,11 @@ export interface CustomerUpdateByExternalIDParams {
913916
email_delivery?: boolean | null;
914917

915918
/**
916-
* The external customer ID. This can only be set if empty and the customer has no
917-
* past or current subscriptions.
919+
* The external customer ID. This can only be set if the customer has no existing
920+
* external customer ID. Since this action may change usage quantities for all
921+
* existing subscriptions, it is disallowed if the customer has issued invoices
922+
* with usage line items and subject to the same restrictions as backdated
923+
* subscription creation.
918924
*/
919925
external_customer_id?: string | null;
920926

src/resources/invoices.ts

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

1818
/**
19-
* This endpoint allows you to update the `metadata` property on an invoice. If you
20-
* pass null for the metadata value, it will clear any existing metadata for that
21-
* invoice.
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.
2222
*
23-
* `metadata` can be modified regardless of invoice state.
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.
2425
*/
2526
update(
2627
invoiceId: string,

src/resources/subscriptions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4532,7 +4532,7 @@ export interface SubscriptionCancelParams {
45324532

45334533
export interface SubscriptionFetchCostsParams {
45344534
/**
4535-
* The currency to use.
4535+
* The currency or custom pricing unit to use.
45364536
*/
45374537
currency?: string | null;
45384538

0 commit comments

Comments
 (0)