orb-billing 5.48.0 → 5.76.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +249 -0
- package/core.js +2 -2
- package/core.js.map +1 -1
- package/core.mjs +2 -2
- package/core.mjs.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +11 -0
- package/index.js.map +1 -1
- package/index.mjs +11 -0
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/alerts.d.ts +140 -3
- package/resources/alerts.d.ts.map +1 -1
- package/resources/alerts.js.map +1 -1
- package/resources/alerts.mjs.map +1 -1
- package/resources/beta/beta.d.ts +738 -7570
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/external-plan-id.d.ts +664 -7572
- package/resources/beta/external-plan-id.d.ts.map +1 -1
- package/resources/coupons/coupons.d.ts +29 -0
- package/resources/coupons/coupons.d.ts.map +1 -1
- package/resources/coupons/coupons.js +21 -0
- package/resources/coupons/coupons.js.map +1 -1
- package/resources/coupons/coupons.mjs +21 -0
- package/resources/coupons/coupons.mjs.map +1 -1
- package/resources/coupons/subscriptions.d.ts +10 -0
- package/resources/coupons/subscriptions.d.ts.map +1 -1
- package/resources/coupons/subscriptions.js.map +1 -1
- package/resources/coupons/subscriptions.mjs.map +1 -1
- package/resources/credit-blocks.d.ts +138 -7
- package/resources/credit-blocks.d.ts.map +1 -1
- package/resources/credit-blocks.js +10 -7
- package/resources/credit-blocks.js.map +1 -1
- package/resources/credit-blocks.mjs +10 -7
- package/resources/credit-blocks.mjs.map +1 -1
- package/resources/credit-notes.d.ts +28 -0
- package/resources/credit-notes.d.ts.map +1 -1
- package/resources/credit-notes.js +20 -0
- package/resources/credit-notes.js.map +1 -1
- package/resources/credit-notes.mjs +20 -0
- package/resources/credit-notes.mjs.map +1 -1
- package/resources/customers/credits/credits.d.ts +129 -0
- package/resources/customers/credits/credits.d.ts.map +1 -1
- package/resources/customers/credits/credits.js.map +1 -1
- package/resources/customers/credits/credits.mjs.map +1 -1
- package/resources/customers/credits/ledger.d.ts +34 -20
- package/resources/customers/credits/ledger.d.ts.map +1 -1
- package/resources/customers/credits/ledger.js +28 -14
- package/resources/customers/credits/ledger.js.map +1 -1
- package/resources/customers/credits/ledger.mjs +28 -14
- package/resources/customers/credits/ledger.mjs.map +1 -1
- package/resources/customers/customers.d.ts +89 -6
- package/resources/customers/customers.d.ts.map +1 -1
- package/resources/customers/customers.js.map +1 -1
- package/resources/customers/customers.mjs.map +1 -1
- package/resources/dimensional-price-groups/dimensional-price-groups.d.ts +35 -1
- package/resources/dimensional-price-groups/dimensional-price-groups.d.ts.map +1 -1
- package/resources/dimensional-price-groups/dimensional-price-groups.js +26 -0
- package/resources/dimensional-price-groups/dimensional-price-groups.js.map +1 -1
- package/resources/dimensional-price-groups/dimensional-price-groups.mjs +26 -0
- package/resources/dimensional-price-groups/dimensional-price-groups.mjs.map +1 -1
- package/resources/dimensional-price-groups/external-dimensional-price-group-id.d.ts +16 -0
- package/resources/dimensional-price-groups/external-dimensional-price-group-id.d.ts.map +1 -1
- package/resources/dimensional-price-groups/external-dimensional-price-group-id.js +16 -0
- package/resources/dimensional-price-groups/external-dimensional-price-group-id.js.map +1 -1
- package/resources/dimensional-price-groups/external-dimensional-price-group-id.mjs +16 -0
- package/resources/dimensional-price-groups/external-dimensional-price-group-id.mjs.map +1 -1
- package/resources/events/backfills.d.ts +37 -0
- package/resources/events/backfills.d.ts.map +1 -1
- package/resources/events/backfills.js +29 -0
- package/resources/events/backfills.js.map +1 -1
- package/resources/events/backfills.mjs +29 -0
- package/resources/events/backfills.mjs.map +1 -1
- package/resources/events/events.d.ts +41 -33
- package/resources/events/events.d.ts.map +1 -1
- package/resources/events/events.js +39 -31
- package/resources/events/events.js.map +1 -1
- package/resources/events/events.mjs +39 -31
- package/resources/events/events.mjs.map +1 -1
- package/resources/events/volume.d.ts +7 -0
- package/resources/events/volume.d.ts.map +1 -1
- package/resources/events/volume.js +7 -0
- package/resources/events/volume.js.map +1 -1
- package/resources/events/volume.mjs +7 -0
- package/resources/events/volume.mjs.map +1 -1
- package/resources/invoice-line-items.d.ts +89 -1
- package/resources/invoice-line-items.d.ts.map +1 -1
- package/resources/invoice-line-items.js +12 -0
- package/resources/invoice-line-items.js.map +1 -1
- package/resources/invoice-line-items.mjs +12 -0
- package/resources/invoice-line-items.mjs.map +1 -1
- package/resources/invoices.d.ts +200 -12
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js +64 -0
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs +64 -0
- package/resources/invoices.mjs.map +1 -1
- package/resources/items.d.ts +30 -0
- package/resources/items.d.ts.map +1 -1
- package/resources/items.js +22 -0
- package/resources/items.js.map +1 -1
- package/resources/items.mjs +22 -0
- package/resources/items.mjs.map +1 -1
- package/resources/licenses/external-licenses.d.ts +13 -1
- package/resources/licenses/external-licenses.d.ts.map +1 -1
- package/resources/licenses/external-licenses.js +12 -0
- package/resources/licenses/external-licenses.js.map +1 -1
- package/resources/licenses/external-licenses.mjs +12 -0
- package/resources/licenses/external-licenses.mjs.map +1 -1
- package/resources/licenses/licenses.d.ts +44 -0
- package/resources/licenses/licenses.d.ts.map +1 -1
- package/resources/licenses/licenses.js +44 -0
- package/resources/licenses/licenses.js.map +1 -1
- package/resources/licenses/licenses.mjs +44 -0
- package/resources/licenses/licenses.mjs.map +1 -1
- package/resources/licenses/usage.d.ts +17 -2
- package/resources/licenses/usage.d.ts.map +1 -1
- package/resources/licenses/usage.js +8 -0
- package/resources/licenses/usage.js.map +1 -1
- package/resources/licenses/usage.mjs +8 -0
- package/resources/licenses/usage.mjs.map +1 -1
- package/resources/metrics.d.ts +42 -5
- package/resources/metrics.d.ts.map +1 -1
- package/resources/metrics.js +27 -2
- package/resources/metrics.js.map +1 -1
- package/resources/metrics.mjs +27 -2
- package/resources/metrics.mjs.map +1 -1
- package/resources/plans/external-plan-id.d.ts +6 -2
- package/resources/plans/external-plan-id.d.ts.map +1 -1
- package/resources/plans/external-plan-id.js +2 -2
- package/resources/plans/external-plan-id.mjs +2 -2
- package/resources/plans/migrations.d.ts +42 -0
- package/resources/plans/migrations.d.ts.map +1 -1
- package/resources/plans/migrations.js.map +1 -1
- package/resources/plans/migrations.mjs.map +1 -1
- package/resources/plans/plans.d.ts +382 -3754
- package/resources/plans/plans.d.ts.map +1 -1
- package/resources/plans/plans.js +2 -2
- package/resources/plans/plans.js.map +1 -1
- package/resources/plans/plans.mjs +2 -2
- package/resources/plans/plans.mjs.map +1 -1
- package/resources/prices/external-price-id.d.ts +14 -0
- package/resources/prices/external-price-id.d.ts.map +1 -1
- package/resources/prices/external-price-id.js +14 -0
- package/resources/prices/external-price-id.js.map +1 -1
- package/resources/prices/external-price-id.mjs +14 -0
- package/resources/prices/external-price-id.mjs.map +1 -1
- package/resources/prices/prices.d.ts +1632 -393
- package/resources/prices/prices.d.ts.map +1 -1
- package/resources/prices/prices.js +46 -0
- package/resources/prices/prices.js.map +1 -1
- package/resources/prices/prices.mjs +46 -0
- package/resources/prices/prices.mjs.map +1 -1
- package/resources/shared.d.ts +922 -52
- package/resources/shared.d.ts.map +1 -1
- package/resources/shared.js.map +1 -1
- package/resources/shared.mjs.map +1 -1
- package/resources/subscription-changes.d.ts +72 -1
- package/resources/subscription-changes.d.ts.map +1 -1
- package/resources/subscription-changes.js.map +1 -1
- package/resources/subscription-changes.mjs.map +1 -1
- package/resources/subscriptions.d.ts +3075 -464
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js +111 -0
- package/resources/subscriptions.js.map +1 -1
- package/resources/subscriptions.mjs +111 -0
- package/resources/subscriptions.mjs.map +1 -1
- package/src/core.ts +2 -2
- package/src/index.ts +12 -0
- package/src/resources/alerts.ts +161 -3
- package/src/resources/beta/beta.ts +828 -8988
- package/src/resources/beta/external-plan-id.ts +745 -8997
- package/src/resources/coupons/coupons.ts +29 -0
- package/src/resources/coupons/subscriptions.ts +10 -0
- package/src/resources/credit-blocks.ts +166 -7
- package/src/resources/credit-notes.ts +28 -0
- package/src/resources/customers/credits/credits.ts +157 -0
- package/src/resources/customers/credits/ledger.ts +34 -20
- package/src/resources/customers/customers.ts +99 -6
- package/src/resources/dimensional-price-groups/dimensional-price-groups.ts +35 -1
- package/src/resources/dimensional-price-groups/external-dimensional-price-group-id.ts +16 -0
- package/src/resources/events/backfills.ts +37 -0
- package/src/resources/events/events.ts +41 -33
- package/src/resources/events/volume.ts +7 -0
- package/src/resources/invoice-line-items.ts +104 -0
- package/src/resources/invoices.ts +215 -11
- package/src/resources/items.ts +30 -0
- package/src/resources/licenses/external-licenses.ts +13 -1
- package/src/resources/licenses/licenses.ts +44 -0
- package/src/resources/licenses/usage.ts +17 -2
- package/src/resources/metrics.ts +43 -5
- package/src/resources/plans/external-plan-id.ts +7 -2
- package/src/resources/plans/migrations.ts +42 -0
- package/src/resources/plans/plans.ts +456 -4482
- package/src/resources/prices/external-price-id.ts +14 -0
- package/src/resources/prices/prices.ts +1743 -264
- package/src/resources/shared.ts +1172 -50
- package/src/resources/subscription-changes.ts +88 -1
- package/src/resources/subscriptions.ts +4707 -1585
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -30,14 +30,17 @@ export declare class CreditBlocks extends APIResource {
|
|
|
30
30
|
/**
|
|
31
31
|
* This endpoint returns the credit block and its associated purchasing invoices.
|
|
32
32
|
*
|
|
33
|
-
* If a credit block was purchased (as opposed to being manually added
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* multiple invoices will be returned.
|
|
33
|
+
* If a credit block was purchased (as opposed to being manually added), this
|
|
34
|
+
* endpoint returns the invoices that were created to charge the customer for the
|
|
35
|
+
* credit block. For credit blocks with payment schedules spanning multiple periods
|
|
36
|
+
* (e.g., monthly payments over 12 months), multiple invoices will be returned.
|
|
38
37
|
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
38
|
+
* For credit blocks created by subscription allocation prices, this endpoint
|
|
39
|
+
* returns the subscription invoice containing the allocation line item that
|
|
40
|
+
* created the block.
|
|
41
|
+
*
|
|
42
|
+
* If the credit block was not purchased (e.g., manual increment), an empty
|
|
43
|
+
* invoices list is returned.
|
|
41
44
|
*
|
|
42
45
|
* **Note: This endpoint is currently experimental and its interface may change in
|
|
43
46
|
* future releases. Please contact support before building production integrations
|
|
@@ -51,6 +54,14 @@ export declare class CreditBlocks extends APIResource {
|
|
|
51
54
|
export interface CreditBlockRetrieveResponse {
|
|
52
55
|
id: string;
|
|
53
56
|
balance: number;
|
|
57
|
+
/**
|
|
58
|
+
* How this credit block was created: `allocation` (a subscription's recurring
|
|
59
|
+
* credit allocation), `top_up` (an automatic balance-threshold top-up),
|
|
60
|
+
* `commitment` (a subscription commitment true-up rolled forward as credit), or
|
|
61
|
+
* `manual` (a manual credit ledger increment, including credits voided or expired
|
|
62
|
+
* off another block).
|
|
63
|
+
*/
|
|
64
|
+
credit_block_source: 'allocation' | 'top_up' | 'commitment' | 'manual';
|
|
54
65
|
effective_date: string | null;
|
|
55
66
|
expiry_date: string | null;
|
|
56
67
|
filters: Array<CreditBlockRetrieveResponse.Filter>;
|
|
@@ -66,6 +77,16 @@ export interface CreditBlockRetrieveResponse {
|
|
|
66
77
|
};
|
|
67
78
|
per_unit_cost_basis: string | null;
|
|
68
79
|
status: 'active' | 'pending_payment';
|
|
80
|
+
/**
|
|
81
|
+
* The credit allocation that funded a block. Extends the allocation resource
|
|
82
|
+
* serialized on prices with the catalog-item attribution of the funding price.
|
|
83
|
+
*/
|
|
84
|
+
credit_allocation?: CreditBlockRetrieveResponse.CreditAllocation | null;
|
|
85
|
+
/**
|
|
86
|
+
* The subscription commitment whose true-up rolled forward into this credit block.
|
|
87
|
+
* Present only when `credit_block_source` is `commitment`.
|
|
88
|
+
*/
|
|
89
|
+
credit_commitment?: CreditBlockRetrieveResponse.CreditCommitment | null;
|
|
69
90
|
}
|
|
70
91
|
export declare namespace CreditBlockRetrieveResponse {
|
|
71
92
|
interface Filter {
|
|
@@ -82,6 +103,52 @@ export declare namespace CreditBlockRetrieveResponse {
|
|
|
82
103
|
*/
|
|
83
104
|
values: Array<string>;
|
|
84
105
|
}
|
|
106
|
+
/**
|
|
107
|
+
* The credit allocation that funded a block. Extends the allocation resource
|
|
108
|
+
* serialized on prices with the catalog-item attribution of the funding price.
|
|
109
|
+
*/
|
|
110
|
+
interface CreditAllocation {
|
|
111
|
+
allows_rollover: boolean;
|
|
112
|
+
currency: string;
|
|
113
|
+
custom_expiration: Shared.CustomExpiration | null;
|
|
114
|
+
/**
|
|
115
|
+
* The ID of the catalog item this block was allocated from, derived from the
|
|
116
|
+
* allocation's price.
|
|
117
|
+
*/
|
|
118
|
+
item_id: string;
|
|
119
|
+
filters?: Array<CreditAllocation.Filter>;
|
|
120
|
+
license_type_id?: string | null;
|
|
121
|
+
}
|
|
122
|
+
namespace CreditAllocation {
|
|
123
|
+
interface Filter {
|
|
124
|
+
/**
|
|
125
|
+
* The property of the price to filter on.
|
|
126
|
+
*/
|
|
127
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
128
|
+
/**
|
|
129
|
+
* Should prices that match the filter be included or excluded.
|
|
130
|
+
*/
|
|
131
|
+
operator: 'includes' | 'excludes';
|
|
132
|
+
/**
|
|
133
|
+
* The IDs or values that match this filter.
|
|
134
|
+
*/
|
|
135
|
+
values: Array<string>;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* The subscription commitment whose true-up rolled forward into this credit block.
|
|
140
|
+
* Present only when `credit_block_source` is `commitment`.
|
|
141
|
+
*/
|
|
142
|
+
interface CreditCommitment {
|
|
143
|
+
/**
|
|
144
|
+
* The ID of the subscription commitment this block was rolled forward from.
|
|
145
|
+
*/
|
|
146
|
+
id: string;
|
|
147
|
+
/**
|
|
148
|
+
* The subscription the commitment belongs to.
|
|
149
|
+
*/
|
|
150
|
+
subscription_id?: string | null;
|
|
151
|
+
}
|
|
85
152
|
}
|
|
86
153
|
export interface CreditBlockListInvoicesResponse {
|
|
87
154
|
/**
|
|
@@ -97,6 +164,14 @@ export declare namespace CreditBlockListInvoicesResponse {
|
|
|
97
164
|
interface Block {
|
|
98
165
|
id: string;
|
|
99
166
|
balance: number;
|
|
167
|
+
/**
|
|
168
|
+
* How this credit block was created: `allocation` (a subscription's recurring
|
|
169
|
+
* credit allocation), `top_up` (an automatic balance-threshold top-up),
|
|
170
|
+
* `commitment` (a subscription commitment true-up rolled forward as credit), or
|
|
171
|
+
* `manual` (a manual credit ledger increment, including credits voided or expired
|
|
172
|
+
* off another block).
|
|
173
|
+
*/
|
|
174
|
+
credit_block_source: 'allocation' | 'top_up' | 'commitment' | 'manual';
|
|
100
175
|
effective_date: string | null;
|
|
101
176
|
expiry_date: string | null;
|
|
102
177
|
filters: Array<Block.Filter>;
|
|
@@ -112,6 +187,16 @@ export declare namespace CreditBlockListInvoicesResponse {
|
|
|
112
187
|
};
|
|
113
188
|
per_unit_cost_basis: string | null;
|
|
114
189
|
status: 'active' | 'pending_payment';
|
|
190
|
+
/**
|
|
191
|
+
* The credit allocation that funded a block. Extends the allocation resource
|
|
192
|
+
* serialized on prices with the catalog-item attribution of the funding price.
|
|
193
|
+
*/
|
|
194
|
+
credit_allocation?: Block.CreditAllocation | null;
|
|
195
|
+
/**
|
|
196
|
+
* The subscription commitment whose true-up rolled forward into this credit block.
|
|
197
|
+
* Present only when `credit_block_source` is `commitment`.
|
|
198
|
+
*/
|
|
199
|
+
credit_commitment?: Block.CreditCommitment | null;
|
|
115
200
|
}
|
|
116
201
|
namespace Block {
|
|
117
202
|
interface Filter {
|
|
@@ -128,6 +213,52 @@ export declare namespace CreditBlockListInvoicesResponse {
|
|
|
128
213
|
*/
|
|
129
214
|
values: Array<string>;
|
|
130
215
|
}
|
|
216
|
+
/**
|
|
217
|
+
* The credit allocation that funded a block. Extends the allocation resource
|
|
218
|
+
* serialized on prices with the catalog-item attribution of the funding price.
|
|
219
|
+
*/
|
|
220
|
+
interface CreditAllocation {
|
|
221
|
+
allows_rollover: boolean;
|
|
222
|
+
currency: string;
|
|
223
|
+
custom_expiration: Shared.CustomExpiration | null;
|
|
224
|
+
/**
|
|
225
|
+
* The ID of the catalog item this block was allocated from, derived from the
|
|
226
|
+
* allocation's price.
|
|
227
|
+
*/
|
|
228
|
+
item_id: string;
|
|
229
|
+
filters?: Array<CreditAllocation.Filter>;
|
|
230
|
+
license_type_id?: string | null;
|
|
231
|
+
}
|
|
232
|
+
namespace CreditAllocation {
|
|
233
|
+
interface Filter {
|
|
234
|
+
/**
|
|
235
|
+
* The property of the price to filter on.
|
|
236
|
+
*/
|
|
237
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
238
|
+
/**
|
|
239
|
+
* Should prices that match the filter be included or excluded.
|
|
240
|
+
*/
|
|
241
|
+
operator: 'includes' | 'excludes';
|
|
242
|
+
/**
|
|
243
|
+
* The IDs or values that match this filter.
|
|
244
|
+
*/
|
|
245
|
+
values: Array<string>;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* The subscription commitment whose true-up rolled forward into this credit block.
|
|
250
|
+
* Present only when `credit_block_source` is `commitment`.
|
|
251
|
+
*/
|
|
252
|
+
interface CreditCommitment {
|
|
253
|
+
/**
|
|
254
|
+
* The ID of the subscription commitment this block was rolled forward from.
|
|
255
|
+
*/
|
|
256
|
+
id: string;
|
|
257
|
+
/**
|
|
258
|
+
* The subscription the commitment belongs to.
|
|
259
|
+
*/
|
|
260
|
+
subscription_id?: string | null;
|
|
261
|
+
}
|
|
131
262
|
}
|
|
132
263
|
interface Invoice {
|
|
133
264
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credit-blocks.d.ts","sourceRoot":"","sources":["../src/resources/credit-bloc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QAAQ,EAAE,MAAM,CAAC,gBAAgB,CAAC;QAElC,cAAc,EAAE,MAAM,CAAC;QAEvB,MAAM,EAAE,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;QAExD,YAAY,EAAE,MAAM,CAAC,oBAAoB,GAAG,IAAI,CAAC;KAClD;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
|
|
@@ -39,14 +39,17 @@ class CreditBlocks extends resource_1.APIResource {
|
|
|
39
39
|
/**
|
|
40
40
|
* This endpoint returns the credit block and its associated purchasing invoices.
|
|
41
41
|
*
|
|
42
|
-
* If a credit block was purchased (as opposed to being manually added
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
* multiple invoices will be returned.
|
|
42
|
+
* If a credit block was purchased (as opposed to being manually added), this
|
|
43
|
+
* endpoint returns the invoices that were created to charge the customer for the
|
|
44
|
+
* credit block. For credit blocks with payment schedules spanning multiple periods
|
|
45
|
+
* (e.g., monthly payments over 12 months), multiple invoices will be returned.
|
|
47
46
|
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
47
|
+
* For credit blocks created by subscription allocation prices, this endpoint
|
|
48
|
+
* returns the subscription invoice containing the allocation line item that
|
|
49
|
+
* created the block.
|
|
50
|
+
*
|
|
51
|
+
* If the credit block was not purchased (e.g., manual increment), an empty
|
|
52
|
+
* invoices list is returned.
|
|
50
53
|
*
|
|
51
54
|
* **Note: This endpoint is currently experimental and its interface may change in
|
|
52
55
|
* future releases. Please contact support before building production integrations
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credit-blocks.js","sourceRoot":"","sources":["../src/resources/credit-blocks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAI1C;;GAEG;AACH,MAA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@@ -36,14 +36,17 @@ export class CreditBlocks extends APIResource {
|
|
|
36
36
|
/**
|
|
37
37
|
* This endpoint returns the credit block and its associated purchasing invoices.
|
|
38
38
|
*
|
|
39
|
-
* If a credit block was purchased (as opposed to being manually added
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* multiple invoices will be returned.
|
|
39
|
+
* If a credit block was purchased (as opposed to being manually added), this
|
|
40
|
+
* endpoint returns the invoices that were created to charge the customer for the
|
|
41
|
+
* credit block. For credit blocks with payment schedules spanning multiple periods
|
|
42
|
+
* (e.g., monthly payments over 12 months), multiple invoices will be returned.
|
|
44
43
|
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
44
|
+
* For credit blocks created by subscription allocation prices, this endpoint
|
|
45
|
+
* returns the subscription invoice containing the allocation line item that
|
|
46
|
+
* created the block.
|
|
47
|
+
*
|
|
48
|
+
* If the credit block was not purchased (e.g., manual increment), an empty
|
|
49
|
+
* invoices list is returned.
|
|
47
50
|
*
|
|
48
51
|
* **Note: This endpoint is currently experimental and its interface may change in
|
|
49
52
|
* future releases. Please contact support before building production integrations
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credit-blocks.mjs","sourceRoot":"","sources":["../src/resources/credit-blocks.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,QAAQ,CAAC,OAAe,EAAE,OAA6B;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,OAAe,EAAE,OAA6B;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,kBAAkB,OAAO,EAAE,EAAE;YACtD,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"credit-blocks.mjs","sourceRoot":"","sources":["../src/resources/credit-blocks.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,QAAQ,CAAC,OAAe,EAAE,OAA6B;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,OAAe,EAAE,OAA6B;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,kBAAkB,OAAO,EAAE,EAAE;YACtD,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,YAAY,CACV,OAAe,EACf,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,OAAO,WAAW,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CACF"}
|
|
@@ -36,18 +36,46 @@ export declare class CreditNotes extends APIResource {
|
|
|
36
36
|
* Note: Both start_date and end_date are inclusive - the service period will cover
|
|
37
37
|
* both the start date and end date completely (from start of start_date to end of
|
|
38
38
|
* end_date).
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const creditNote = await client.creditNotes.create({
|
|
43
|
+
* line_items: [
|
|
44
|
+
* {
|
|
45
|
+
* amount: 'amount',
|
|
46
|
+
* invoice_line_item_id: '4khy3nwzktxv7',
|
|
47
|
+
* },
|
|
48
|
+
* ],
|
|
49
|
+
* reason: 'duplicate',
|
|
50
|
+
* });
|
|
51
|
+
* ```
|
|
39
52
|
*/
|
|
40
53
|
create(body: CreditNoteCreateParams, options?: Core.RequestOptions): Core.APIPromise<Shared.CreditNote>;
|
|
41
54
|
/**
|
|
42
55
|
* Get a paginated list of CreditNotes. Users can also filter by customer_id,
|
|
43
56
|
* subscription_id, or external_customer_id. The credit notes will be returned in
|
|
44
57
|
* reverse chronological order by `creation_time`.
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```ts
|
|
61
|
+
* // Automatically fetches more pages as needed.
|
|
62
|
+
* for await (const creditNote of client.creditNotes.list()) {
|
|
63
|
+
* // ...
|
|
64
|
+
* }
|
|
65
|
+
* ```
|
|
45
66
|
*/
|
|
46
67
|
list(query?: CreditNoteListParams, options?: Core.RequestOptions): Core.PagePromise<CreditNotesPage, Shared.CreditNote>;
|
|
47
68
|
list(options?: Core.RequestOptions): Core.PagePromise<CreditNotesPage, Shared.CreditNote>;
|
|
48
69
|
/**
|
|
49
70
|
* This endpoint is used to fetch a single [`Credit Note`](/invoicing/credit-notes)
|
|
50
71
|
* given an identifier.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```ts
|
|
75
|
+
* const creditNote = await client.creditNotes.fetch(
|
|
76
|
+
* 'credit_note_id',
|
|
77
|
+
* );
|
|
78
|
+
* ```
|
|
51
79
|
*/
|
|
52
80
|
fetch(creditNoteId: string, options?: Core.RequestOptions): Core.APIPromise<Shared.CreditNote>;
|
|
53
81
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credit-notes.d.ts","sourceRoot":"","sources":["../src/resources/credit-notes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE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,CAAC,CAAC;IAEnD;;OAEG;IACH,MAAM,EAAE,WAAW,GAAG,YAAY,GAAG,cAAc,GAAG,wBAAwB,CAAC;IAE/E;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,yBAAiB,sBAAsB,CAAC;IACtC,UAAiB,QAAQ;QACvB;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,oBAAoB,EAAE,MAAM,CAAC;QAE7B;;;;;WAKG;QACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAEzB;;;;;;WAMG;QACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC5B;CACF;AAED,MAAM,WAAW,oBAAqB,SAAQ,UAAU;IACtD,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjC,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAElC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjC,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -39,6 +39,19 @@ class CreditNotes extends resource_1.APIResource {
|
|
|
39
39
|
* Note: Both start_date and end_date are inclusive - the service period will cover
|
|
40
40
|
* both the start date and end date completely (from start of start_date to end of
|
|
41
41
|
* end_date).
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* const creditNote = await client.creditNotes.create({
|
|
46
|
+
* line_items: [
|
|
47
|
+
* {
|
|
48
|
+
* amount: 'amount',
|
|
49
|
+
* invoice_line_item_id: '4khy3nwzktxv7',
|
|
50
|
+
* },
|
|
51
|
+
* ],
|
|
52
|
+
* reason: 'duplicate',
|
|
53
|
+
* });
|
|
54
|
+
* ```
|
|
42
55
|
*/
|
|
43
56
|
create(body, options) {
|
|
44
57
|
return this._client.post('/credit_notes', { body, ...options });
|
|
@@ -52,6 +65,13 @@ class CreditNotes extends resource_1.APIResource {
|
|
|
52
65
|
/**
|
|
53
66
|
* This endpoint is used to fetch a single [`Credit Note`](/invoicing/credit-notes)
|
|
54
67
|
* given an identifier.
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* ```ts
|
|
71
|
+
* const creditNote = await client.creditNotes.fetch(
|
|
72
|
+
* 'credit_note_id',
|
|
73
|
+
* );
|
|
74
|
+
* ```
|
|
55
75
|
*/
|
|
56
76
|
fetch(creditNoteId, options) {
|
|
57
77
|
return this._client.get(`/credit_notes/${creditNoteId}`, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credit-notes.js","sourceRoot":"","sources":["../src/resources/credit-notes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAC1C,qCAA2C;AAG3C,wCAA2C;
|
|
1
|
+
{"version":3,"file":"credit-notes.js","sourceRoot":"","sources":["../src/resources/credit-notes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAC1C,qCAA2C;AAG3C,wCAA2C;AAgLlC,gGAhLA,wBAAe,OAgLA;AA7KxB;;;GAGG;AACH,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAyCG;IACH,MAAM,CAAC,IAA4B,EAAE,OAA6B;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAoBD,IAAI,CACF,QAAoD,EAAE,EACtD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,eAAe,EAAE,wBAAe,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1F,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,YAAoB,EAAE,OAA6B;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;CACF;AAzFD,kCAyFC"}
|
|
@@ -35,6 +35,19 @@ export class CreditNotes extends APIResource {
|
|
|
35
35
|
* Note: Both start_date and end_date are inclusive - the service period will cover
|
|
36
36
|
* both the start date and end date completely (from start of start_date to end of
|
|
37
37
|
* end_date).
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* const creditNote = await client.creditNotes.create({
|
|
42
|
+
* line_items: [
|
|
43
|
+
* {
|
|
44
|
+
* amount: 'amount',
|
|
45
|
+
* invoice_line_item_id: '4khy3nwzktxv7',
|
|
46
|
+
* },
|
|
47
|
+
* ],
|
|
48
|
+
* reason: 'duplicate',
|
|
49
|
+
* });
|
|
50
|
+
* ```
|
|
38
51
|
*/
|
|
39
52
|
create(body, options) {
|
|
40
53
|
return this._client.post('/credit_notes', { body, ...options });
|
|
@@ -48,6 +61,13 @@ export class CreditNotes extends APIResource {
|
|
|
48
61
|
/**
|
|
49
62
|
* This endpoint is used to fetch a single [`Credit Note`](/invoicing/credit-notes)
|
|
50
63
|
* given an identifier.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```ts
|
|
67
|
+
* const creditNote = await client.creditNotes.fetch(
|
|
68
|
+
* 'credit_note_id',
|
|
69
|
+
* );
|
|
70
|
+
* ```
|
|
51
71
|
*/
|
|
52
72
|
fetch(creditNoteId, options) {
|
|
53
73
|
return this._client.get(`/credit_notes/${creditNoteId}`, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credit-notes.mjs","sourceRoot":"","sources":["../src/resources/credit-notes.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAGpB,EAAE,eAAe,EAAE;AAG1B;;;GAGG;AACH,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C
|
|
1
|
+
{"version":3,"file":"credit-notes.mjs","sourceRoot":"","sources":["../src/resources/credit-notes.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAGpB,EAAE,eAAe,EAAE;AAG1B;;;GAGG;AACH,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAyCG;IACH,MAAM,CAAC,IAA4B,EAAE,OAA6B;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAoBD,IAAI,CACF,QAAoD,EAAE,EACtD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,eAAe,EAAE,eAAe,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1F,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,YAAoB,EAAE,OAA6B;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;CACF;AAgFD,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../../../resource.js";
|
|
2
2
|
import * as Core from "../../../core.js";
|
|
3
|
+
import * as Shared from "../../shared.js";
|
|
3
4
|
import * as LedgerAPI from "./ledger.js";
|
|
4
5
|
import { AffectedBlock, AmendmentLedgerEntry, CreditBlockExpiryLedgerEntry, DecrementLedgerEntry, ExpirationChangeLedgerEntry, IncrementLedgerEntry, Ledger, LedgerCreateEntryByExternalIDParams, LedgerCreateEntryByExternalIDResponse, LedgerCreateEntryParams, LedgerCreateEntryResponse, LedgerListByExternalIDParams, LedgerListByExternalIDResponse, LedgerListByExternalIDResponsesPage, LedgerListParams, LedgerListResponse, LedgerListResponsesPage, VoidInitiatedLedgerEntry, VoidLedgerEntry } from "./ledger.js";
|
|
5
6
|
import * as TopUpsAPI from "./top-ups.js";
|
|
@@ -51,6 +52,14 @@ export declare class CreditListByExternalIDResponsesPage extends Page<CreditList
|
|
|
51
52
|
export interface CreditListResponse {
|
|
52
53
|
id: string;
|
|
53
54
|
balance: number;
|
|
55
|
+
/**
|
|
56
|
+
* How this credit block was created: `allocation` (a subscription's recurring
|
|
57
|
+
* credit allocation), `top_up` (an automatic balance-threshold top-up),
|
|
58
|
+
* `commitment` (a subscription commitment true-up rolled forward as credit), or
|
|
59
|
+
* `manual` (a manual credit ledger increment, including credits voided or expired
|
|
60
|
+
* off another block).
|
|
61
|
+
*/
|
|
62
|
+
credit_block_source: 'allocation' | 'top_up' | 'commitment' | 'manual';
|
|
54
63
|
effective_date: string | null;
|
|
55
64
|
expiry_date: string | null;
|
|
56
65
|
filters: Array<CreditListResponse.Filter>;
|
|
@@ -66,6 +75,16 @@ export interface CreditListResponse {
|
|
|
66
75
|
};
|
|
67
76
|
per_unit_cost_basis: string | null;
|
|
68
77
|
status: 'active' | 'pending_payment';
|
|
78
|
+
/**
|
|
79
|
+
* The credit allocation that funded a block. Extends the allocation resource
|
|
80
|
+
* serialized on prices with the catalog-item attribution of the funding price.
|
|
81
|
+
*/
|
|
82
|
+
credit_allocation?: CreditListResponse.CreditAllocation | null;
|
|
83
|
+
/**
|
|
84
|
+
* The subscription commitment whose true-up rolled forward into this credit block.
|
|
85
|
+
* Present only when `credit_block_source` is `commitment`.
|
|
86
|
+
*/
|
|
87
|
+
credit_commitment?: CreditListResponse.CreditCommitment | null;
|
|
69
88
|
}
|
|
70
89
|
export declare namespace CreditListResponse {
|
|
71
90
|
/**
|
|
@@ -85,10 +104,64 @@ export declare namespace CreditListResponse {
|
|
|
85
104
|
*/
|
|
86
105
|
values: Array<string>;
|
|
87
106
|
}
|
|
107
|
+
/**
|
|
108
|
+
* The credit allocation that funded a block. Extends the allocation resource
|
|
109
|
+
* serialized on prices with the catalog-item attribution of the funding price.
|
|
110
|
+
*/
|
|
111
|
+
interface CreditAllocation {
|
|
112
|
+
allows_rollover: boolean;
|
|
113
|
+
currency: string;
|
|
114
|
+
custom_expiration: Shared.CustomExpiration | null;
|
|
115
|
+
/**
|
|
116
|
+
* The ID of the catalog item this block was allocated from, derived from the
|
|
117
|
+
* allocation's price.
|
|
118
|
+
*/
|
|
119
|
+
item_id: string;
|
|
120
|
+
filters?: Array<CreditAllocation.Filter>;
|
|
121
|
+
license_type_id?: string | null;
|
|
122
|
+
}
|
|
123
|
+
namespace CreditAllocation {
|
|
124
|
+
interface Filter {
|
|
125
|
+
/**
|
|
126
|
+
* The property of the price to filter on.
|
|
127
|
+
*/
|
|
128
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
129
|
+
/**
|
|
130
|
+
* Should prices that match the filter be included or excluded.
|
|
131
|
+
*/
|
|
132
|
+
operator: 'includes' | 'excludes';
|
|
133
|
+
/**
|
|
134
|
+
* The IDs or values that match this filter.
|
|
135
|
+
*/
|
|
136
|
+
values: Array<string>;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* The subscription commitment whose true-up rolled forward into this credit block.
|
|
141
|
+
* Present only when `credit_block_source` is `commitment`.
|
|
142
|
+
*/
|
|
143
|
+
interface CreditCommitment {
|
|
144
|
+
/**
|
|
145
|
+
* The ID of the subscription commitment this block was rolled forward from.
|
|
146
|
+
*/
|
|
147
|
+
id: string;
|
|
148
|
+
/**
|
|
149
|
+
* The subscription the commitment belongs to.
|
|
150
|
+
*/
|
|
151
|
+
subscription_id?: string | null;
|
|
152
|
+
}
|
|
88
153
|
}
|
|
89
154
|
export interface CreditListByExternalIDResponse {
|
|
90
155
|
id: string;
|
|
91
156
|
balance: number;
|
|
157
|
+
/**
|
|
158
|
+
* How this credit block was created: `allocation` (a subscription's recurring
|
|
159
|
+
* credit allocation), `top_up` (an automatic balance-threshold top-up),
|
|
160
|
+
* `commitment` (a subscription commitment true-up rolled forward as credit), or
|
|
161
|
+
* `manual` (a manual credit ledger increment, including credits voided or expired
|
|
162
|
+
* off another block).
|
|
163
|
+
*/
|
|
164
|
+
credit_block_source: 'allocation' | 'top_up' | 'commitment' | 'manual';
|
|
92
165
|
effective_date: string | null;
|
|
93
166
|
expiry_date: string | null;
|
|
94
167
|
filters: Array<CreditListByExternalIDResponse.Filter>;
|
|
@@ -104,6 +177,16 @@ export interface CreditListByExternalIDResponse {
|
|
|
104
177
|
};
|
|
105
178
|
per_unit_cost_basis: string | null;
|
|
106
179
|
status: 'active' | 'pending_payment';
|
|
180
|
+
/**
|
|
181
|
+
* The credit allocation that funded a block. Extends the allocation resource
|
|
182
|
+
* serialized on prices with the catalog-item attribution of the funding price.
|
|
183
|
+
*/
|
|
184
|
+
credit_allocation?: CreditListByExternalIDResponse.CreditAllocation | null;
|
|
185
|
+
/**
|
|
186
|
+
* The subscription commitment whose true-up rolled forward into this credit block.
|
|
187
|
+
* Present only when `credit_block_source` is `commitment`.
|
|
188
|
+
*/
|
|
189
|
+
credit_commitment?: CreditListByExternalIDResponse.CreditCommitment | null;
|
|
107
190
|
}
|
|
108
191
|
export declare namespace CreditListByExternalIDResponse {
|
|
109
192
|
/**
|
|
@@ -123,6 +206,52 @@ export declare namespace CreditListByExternalIDResponse {
|
|
|
123
206
|
*/
|
|
124
207
|
values: Array<string>;
|
|
125
208
|
}
|
|
209
|
+
/**
|
|
210
|
+
* The credit allocation that funded a block. Extends the allocation resource
|
|
211
|
+
* serialized on prices with the catalog-item attribution of the funding price.
|
|
212
|
+
*/
|
|
213
|
+
interface CreditAllocation {
|
|
214
|
+
allows_rollover: boolean;
|
|
215
|
+
currency: string;
|
|
216
|
+
custom_expiration: Shared.CustomExpiration | null;
|
|
217
|
+
/**
|
|
218
|
+
* The ID of the catalog item this block was allocated from, derived from the
|
|
219
|
+
* allocation's price.
|
|
220
|
+
*/
|
|
221
|
+
item_id: string;
|
|
222
|
+
filters?: Array<CreditAllocation.Filter>;
|
|
223
|
+
license_type_id?: string | null;
|
|
224
|
+
}
|
|
225
|
+
namespace CreditAllocation {
|
|
226
|
+
interface Filter {
|
|
227
|
+
/**
|
|
228
|
+
* The property of the price to filter on.
|
|
229
|
+
*/
|
|
230
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
231
|
+
/**
|
|
232
|
+
* Should prices that match the filter be included or excluded.
|
|
233
|
+
*/
|
|
234
|
+
operator: 'includes' | 'excludes';
|
|
235
|
+
/**
|
|
236
|
+
* The IDs or values that match this filter.
|
|
237
|
+
*/
|
|
238
|
+
values: Array<string>;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* The subscription commitment whose true-up rolled forward into this credit block.
|
|
243
|
+
* Present only when `credit_block_source` is `commitment`.
|
|
244
|
+
*/
|
|
245
|
+
interface CreditCommitment {
|
|
246
|
+
/**
|
|
247
|
+
* The ID of the subscription commitment this block was rolled forward from.
|
|
248
|
+
*/
|
|
249
|
+
id: string;
|
|
250
|
+
/**
|
|
251
|
+
* The subscription the commitment belongs to.
|
|
252
|
+
*/
|
|
253
|
+
subscription_id?: string | null;
|
|
254
|
+
}
|
|
126
255
|
}
|
|
127
256
|
export interface CreditListParams extends PageParams {
|
|
128
257
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credits.d.ts","sourceRoot":"","sources":["../../../src/resources/customers/credits/credits.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AACtC,OAAO,KAAK,SAAS,MAAM,UAAU,CAAC;AACtC,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,4BAA4B,EAC5B,oBAAoB,EACpB,2BAA2B,EAC3B,oBAAoB,EACpB,MAAM,EACN,mCAAmC,EACnC,qCAAqC,EACrC,uBAAuB,EACvB,yBAAyB,EACzB,4BAA4B,EAC5B,8BAA8B,EAC9B,mCAAmC,EACnC,gBAAgB,EAChB,kBAAkB,EAClB,uBAAuB,EACvB,wBAAwB,EACxB,eAAe,EAChB,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,SAAS,MAAM,WAAW,CAAC;AACvC,OAAO,EACL,6BAA6B,EAC7B,+BAA+B,EAC/B,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EACpB,2BAA2B,EAC3B,6BAA6B,EAC7B,kCAAkC,EAClC,eAAe,EACf,iBAAiB,EACjB,sBAAsB,EACtB,MAAM,EACP,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,IAAI,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAE5D;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAC9D,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D;;;;;;;;;;;;;OAaG;IACH,IAAI,CAC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AAC;
|
|
1
|
+
{"version":3,"file":"credits.d.ts","sourceRoot":"","sources":["../../../src/resources/customers/credits/credits.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AACvC,OAAO,KAAK,SAAS,MAAM,UAAU,CAAC;AACtC,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,4BAA4B,EAC5B,oBAAoB,EACpB,2BAA2B,EAC3B,oBAAoB,EACpB,MAAM,EACN,mCAAmC,EACnC,qCAAqC,EACrC,uBAAuB,EACvB,yBAAyB,EACzB,4BAA4B,EAC5B,8BAA8B,EAC9B,mCAAmC,EACnC,gBAAgB,EAChB,kBAAkB,EAClB,uBAAuB,EACvB,wBAAwB,EACxB,eAAe,EAChB,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,SAAS,MAAM,WAAW,CAAC;AACvC,OAAO,EACL,6BAA6B,EAC7B,+BAA+B,EAC/B,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EACpB,2BAA2B,EAC3B,6BAA6B,EAC7B,kCAAkC,EAClC,eAAe,EACf,iBAAiB,EACjB,sBAAsB,EACtB,MAAM,EACP,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,IAAI,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAE5D;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAC9D,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D;;;;;;;;;;;;;OAaG;IACH,IAAI,CACF,UAAU,EAAE,MAAM,EAClB,KAAK,CAAC,EAAE,gBAAgB,EACxB,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,WAAW,CAAC,uBAAuB,EAAE,kBAAkB,CAAC;IAChE,IA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"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,mDAAgD;AAChD,2CAAiD;
|
|
1
|
+
{"version":3,"file":"credits.js","sourceRoot":"","sources":["../../../src/resources/customers/credits/credits.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,mDAAgD;AAChD,2CAAiD;AAGjD,uDAAsC;AACtC,wCAoBkB;AAClB,wDAAuC;AACvC,0CAamB;AACnB,uDAA4D;AAE5D;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA4EhE,CAAC;IAnDC,IAAI,CACF,UAAkB,EAClB,QAAgD,EAAE,EAClD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SACzC;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,cAAc,UAAU,UAAU,EAAE,uBAAuB,EAAE;YAC1F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAyBD,gBAAgB,CACd,kBAA0B,EAC1B,QAA4D,EAAE,EAC9D,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7D;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,mCAAmC,kBAAkB,UAAU,EAC/D,mCAAmC,EACnC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF;AA9ED,0BA8EC;AAED,MAAa,uBAAwB,SAAQ,iBAAwB;CAAG;AAAxE,0DAAwE;AAExE,MAAa,mCAAoC,SAAQ,iBAAoC;CAAG;AAAhG,kFAAgG;AAwShG,OAAO,CAAC,uBAAuB,GAAG,uBAAuB,CAAC;AAC1D,OAAO,CAAC,mCAAmC,GAAG,mCAAmC,CAAC;AAClF,OAAO,CAAC,MAAM,GAAG,eAAM,CAAC;AACxB,OAAO,CAAC,uBAAuB,GAAG,gCAAuB,CAAC;AAC1D,OAAO,CAAC,mCAAmC,GAAG,4CAAmC,CAAC;AAClF,OAAO,CAAC,MAAM,GAAG,gBAAM,CAAC;AACxB,OAAO,CAAC,sBAAsB,GAAG,gCAAsB,CAAC;AACxD,OAAO,CAAC,kCAAkC,GAAG,4CAAkC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credits.mjs","sourceRoot":"","sources":["../../../src/resources/customers/credits/credits.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;
|
|
1
|
+
{"version":3,"file":"credits.mjs","sourceRoot":"","sources":["../../../src/resources/customers/credits/credits.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAGpB,KAAK,SAAS;OACd,EAOL,MAAM,EAON,mCAAmC,EAGnC,uBAAuB,GAGxB;OACM,KAAK,SAAS;OACd,EAQL,kCAAkC,EAGlC,sBAAsB,EACtB,MAAM,GACP;OACM,EAAE,IAAI,EAAmB;AAEhC;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CA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