Skip to content

Commit c9c222e

Browse files
feat(api): api update
1 parent 1dab11d commit c9c222e

File tree

5 files changed

+22
-34
lines changed

5 files changed

+22
-34
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-d1abf71a1a70a43bdcc4da7104dabcbd67aa7e2d3e6cf21e33f50904b6997bb2.yml
3-
openapi_spec_hash: 28b0b31a997588cf3692458889321e1b
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-d74790c0b5540235e8387ccad7b806c11bcbb968fbdf99ea7dfbfc004bceb9dc.yml
3+
openapi_spec_hash: eae212fa0114d8c3b4293c35f6ed7f7f
44
config_hash: dd4343ce95871032ef6e0735a4ca038c

src/resources/beta/beta.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ export class Beta extends APIResource {
2626
}
2727

2828
/**
29-
* This API endpoint is in beta and its interface may change. It is recommended for
30-
* use only in test mode.
31-
*
3229
* This endpoint is used to fetch a plan version. It returns the phases, prices,
3330
* and adjustments present on this version of the plan.
3431
*/
@@ -41,9 +38,6 @@ export class Beta extends APIResource {
4138
}
4239

4340
/**
44-
* This API endpoint is in beta and its interface may change. It is recommended for
45-
* use only in test mode.
46-
*
4741
* This endpoint allows setting the default version of a plan.
4842
*/
4943
setDefaultPlanVersion(

src/resources/beta/external-plan-id.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ export class ExternalPlanID extends APIResource {
1919
}
2020

2121
/**
22-
* This API endpoint is in beta and its interface may change. It is recommended for
23-
* use only in test mode.
24-
*
2522
* This endpoint is used to fetch a plan version. It returns the phases, prices,
2623
* and adjustments present on this version of the plan.
2724
*/
@@ -34,9 +31,6 @@ export class ExternalPlanID extends APIResource {
3431
}
3532

3633
/**
37-
* This API endpoint is in beta and its interface may change. It is recommended for
38-
* use only in test mode.
39-
*
4034
* This endpoint allows setting the default version of a plan.
4135
*/
4236
setDefaultPlanVersion(

src/resources/customers/credits/ledger.ts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -942,15 +942,6 @@ export declare namespace LedgerCreateEntryParams {
942942
*/
943943
auto_collection: boolean;
944944

945-
/**
946-
* The net terms determines the due date of the invoice. Due date is calculated
947-
* based on the invoice or issuance date, depending on the account's configured due
948-
* date calculation method. A value of '0' here represents that the invoice is due
949-
* on issue, whereas a value of '30' represents that the customer has 30 days to
950-
* pay the invoice. Do not set this field if you want to set a custom due date.
951-
*/
952-
net_terms: number | null;
953-
954945
/**
955946
* An optional custom due date for the invoice. If not set, the due date will be
956947
* calculated based on the `net_terms` value.
@@ -975,6 +966,15 @@ export declare namespace LedgerCreateEntryParams {
975966
*/
976967
memo?: string | null;
977968

969+
/**
970+
* The net terms determines the due date of the invoice. Due date is calculated
971+
* based on the invoice or issuance date, depending on the account's configured due
972+
* date calculation method. A value of '0' here represents that the invoice is due
973+
* on issue, whereas a value of '30' represents that the customer has 30 days to
974+
* pay the invoice. Do not set this field if you want to set a custom due date.
975+
*/
976+
net_terms?: number | null;
977+
978978
/**
979979
* If true, the new credit block will require that the corresponding invoice is
980980
* paid before it can be drawn down from.
@@ -1240,15 +1240,6 @@ export declare namespace LedgerCreateEntryByExternalIDParams {
12401240
*/
12411241
auto_collection: boolean;
12421242

1243-
/**
1244-
* The net terms determines the due date of the invoice. Due date is calculated
1245-
* based on the invoice or issuance date, depending on the account's configured due
1246-
* date calculation method. A value of '0' here represents that the invoice is due
1247-
* on issue, whereas a value of '30' represents that the customer has 30 days to
1248-
* pay the invoice. Do not set this field if you want to set a custom due date.
1249-
*/
1250-
net_terms: number | null;
1251-
12521243
/**
12531244
* An optional custom due date for the invoice. If not set, the due date will be
12541245
* calculated based on the `net_terms` value.
@@ -1273,6 +1264,15 @@ export declare namespace LedgerCreateEntryByExternalIDParams {
12731264
*/
12741265
memo?: string | null;
12751266

1267+
/**
1268+
* The net terms determines the due date of the invoice. Due date is calculated
1269+
* based on the invoice or issuance date, depending on the account's configured due
1270+
* date calculation method. A value of '0' here represents that the invoice is due
1271+
* on issue, whereas a value of '30' represents that the customer has 30 days to
1272+
* pay the invoice. Do not set this field if you want to set a custom due date.
1273+
*/
1274+
net_terms?: number | null;
1275+
12761276
/**
12771277
* If true, the new credit block will require that the corresponding invoice is
12781278
* paid before it can be drawn down from.

tests/api-resources/customers/credits/ledger.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ describe('resource ledger', () => {
7474
filters: [{ field: 'item_id', operator: 'includes', values: ['string'] }],
7575
invoice_settings: {
7676
auto_collection: true,
77-
net_terms: 0,
7877
custom_due_date: '2019-12-27',
7978
invoice_date: '2019-12-27',
8079
item_id: 'item_id',
8180
memo: 'memo',
81+
net_terms: 0,
8282
require_successful_payment: true,
8383
},
8484
metadata: { foo: 'string' },
@@ -111,11 +111,11 @@ describe('resource ledger', () => {
111111
filters: [{ field: 'item_id', operator: 'includes', values: ['string'] }],
112112
invoice_settings: {
113113
auto_collection: true,
114-
net_terms: 0,
115114
custom_due_date: '2019-12-27',
116115
invoice_date: '2019-12-27',
117116
item_id: 'item_id',
118117
memo: 'memo',
118+
net_terms: 0,
119119
require_successful_payment: true,
120120
},
121121
metadata: { foo: 'string' },

0 commit comments

Comments
 (0)