orb-billing 5.48.0 → 5.75.1
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 +241 -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 +98 -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 +89 -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 +37 -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 +120 -7
- package/src/resources/credit-notes.ts +28 -0
- package/src/resources/customers/credits/credits.ts +111 -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 +37 -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,13 @@ 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), or
|
|
60
|
+
* `manual` (a manual credit ledger increment, including credits voided or expired
|
|
61
|
+
* off another block).
|
|
62
|
+
*/
|
|
63
|
+
credit_block_source: 'allocation' | 'top_up' | 'manual';
|
|
54
64
|
effective_date: string | null;
|
|
55
65
|
expiry_date: string | null;
|
|
56
66
|
filters: Array<CreditBlockRetrieveResponse.Filter>;
|
|
@@ -66,6 +76,11 @@ export interface CreditBlockRetrieveResponse {
|
|
|
66
76
|
};
|
|
67
77
|
per_unit_cost_basis: string | null;
|
|
68
78
|
status: 'active' | 'pending_payment';
|
|
79
|
+
/**
|
|
80
|
+
* The credit allocation that funded a block. Extends the allocation resource
|
|
81
|
+
* serialized on prices with the catalog-item attribution of the funding price.
|
|
82
|
+
*/
|
|
83
|
+
credit_allocation?: CreditBlockRetrieveResponse.CreditAllocation | null;
|
|
69
84
|
}
|
|
70
85
|
export declare namespace CreditBlockRetrieveResponse {
|
|
71
86
|
interface Filter {
|
|
@@ -82,6 +97,38 @@ export declare namespace CreditBlockRetrieveResponse {
|
|
|
82
97
|
*/
|
|
83
98
|
values: Array<string>;
|
|
84
99
|
}
|
|
100
|
+
/**
|
|
101
|
+
* The credit allocation that funded a block. Extends the allocation resource
|
|
102
|
+
* serialized on prices with the catalog-item attribution of the funding price.
|
|
103
|
+
*/
|
|
104
|
+
interface CreditAllocation {
|
|
105
|
+
allows_rollover: boolean;
|
|
106
|
+
currency: string;
|
|
107
|
+
custom_expiration: Shared.CustomExpiration | null;
|
|
108
|
+
/**
|
|
109
|
+
* The ID of the catalog item this block was allocated from, derived from the
|
|
110
|
+
* allocation's price.
|
|
111
|
+
*/
|
|
112
|
+
item_id: string;
|
|
113
|
+
filters?: Array<CreditAllocation.Filter>;
|
|
114
|
+
license_type_id?: string | null;
|
|
115
|
+
}
|
|
116
|
+
namespace CreditAllocation {
|
|
117
|
+
interface Filter {
|
|
118
|
+
/**
|
|
119
|
+
* The property of the price to filter on.
|
|
120
|
+
*/
|
|
121
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
122
|
+
/**
|
|
123
|
+
* Should prices that match the filter be included or excluded.
|
|
124
|
+
*/
|
|
125
|
+
operator: 'includes' | 'excludes';
|
|
126
|
+
/**
|
|
127
|
+
* The IDs or values that match this filter.
|
|
128
|
+
*/
|
|
129
|
+
values: Array<string>;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
85
132
|
}
|
|
86
133
|
export interface CreditBlockListInvoicesResponse {
|
|
87
134
|
/**
|
|
@@ -97,6 +144,13 @@ export declare namespace CreditBlockListInvoicesResponse {
|
|
|
97
144
|
interface Block {
|
|
98
145
|
id: string;
|
|
99
146
|
balance: number;
|
|
147
|
+
/**
|
|
148
|
+
* How this credit block was created: `allocation` (a subscription's recurring
|
|
149
|
+
* credit allocation), `top_up` (an automatic balance-threshold top-up), or
|
|
150
|
+
* `manual` (a manual credit ledger increment, including credits voided or expired
|
|
151
|
+
* off another block).
|
|
152
|
+
*/
|
|
153
|
+
credit_block_source: 'allocation' | 'top_up' | 'manual';
|
|
100
154
|
effective_date: string | null;
|
|
101
155
|
expiry_date: string | null;
|
|
102
156
|
filters: Array<Block.Filter>;
|
|
@@ -112,6 +166,11 @@ export declare namespace CreditBlockListInvoicesResponse {
|
|
|
112
166
|
};
|
|
113
167
|
per_unit_cost_basis: string | null;
|
|
114
168
|
status: 'active' | 'pending_payment';
|
|
169
|
+
/**
|
|
170
|
+
* The credit allocation that funded a block. Extends the allocation resource
|
|
171
|
+
* serialized on prices with the catalog-item attribution of the funding price.
|
|
172
|
+
*/
|
|
173
|
+
credit_allocation?: Block.CreditAllocation | null;
|
|
115
174
|
}
|
|
116
175
|
namespace Block {
|
|
117
176
|
interface Filter {
|
|
@@ -128,6 +187,38 @@ export declare namespace CreditBlockListInvoicesResponse {
|
|
|
128
187
|
*/
|
|
129
188
|
values: Array<string>;
|
|
130
189
|
}
|
|
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
|
+
interface CreditAllocation {
|
|
195
|
+
allows_rollover: boolean;
|
|
196
|
+
currency: string;
|
|
197
|
+
custom_expiration: Shared.CustomExpiration | null;
|
|
198
|
+
/**
|
|
199
|
+
* The ID of the catalog item this block was allocated from, derived from the
|
|
200
|
+
* allocation's price.
|
|
201
|
+
*/
|
|
202
|
+
item_id: string;
|
|
203
|
+
filters?: Array<CreditAllocation.Filter>;
|
|
204
|
+
license_type_id?: string | null;
|
|
205
|
+
}
|
|
206
|
+
namespace CreditAllocation {
|
|
207
|
+
interface Filter {
|
|
208
|
+
/**
|
|
209
|
+
* The property of the price to filter on.
|
|
210
|
+
*/
|
|
211
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
212
|
+
/**
|
|
213
|
+
* Should prices that match the filter be included or excluded.
|
|
214
|
+
*/
|
|
215
|
+
operator: 'includes' | 'excludes';
|
|
216
|
+
/**
|
|
217
|
+
* The IDs or values that match this filter.
|
|
218
|
+
*/
|
|
219
|
+
values: Array<string>;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
131
222
|
}
|
|
132
223
|
interface Invoice {
|
|
133
224
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credit-blocks.d.ts","sourceRoot":"","sources":["../src/resources/credit-blocks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AAEnC;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,2BAA2B,CAAC;IAItG;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;IAO7E
|
|
1
|
+
{"version":3,"file":"credit-blocks.d.ts","sourceRoot":"","sources":["../src/resources/credit-blocks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AAEnC;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,2BAA2B,CAAC;IAItG;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;IAO7E;;;;;;;;;;;;;;;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AK,+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,MAAa,YAAa,SAAQ,sBAAW;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.js","sourceRoot":"","sources":["../src/resources/credit-blocks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAI1C;;GAEG;AACH,MAAa,YAAa,SAAQ,sBAAW;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;AAzDD,oCAyDC"}
|
|
@@ -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,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD;;;GAGG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C
|
|
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,OAA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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,13 @@ 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), or
|
|
58
|
+
* `manual` (a manual credit ledger increment, including credits voided or expired
|
|
59
|
+
* off another block).
|
|
60
|
+
*/
|
|
61
|
+
credit_block_source: 'allocation' | 'top_up' | 'manual';
|
|
54
62
|
effective_date: string | null;
|
|
55
63
|
expiry_date: string | null;
|
|
56
64
|
filters: Array<CreditListResponse.Filter>;
|
|
@@ -66,6 +74,11 @@ export interface CreditListResponse {
|
|
|
66
74
|
};
|
|
67
75
|
per_unit_cost_basis: string | null;
|
|
68
76
|
status: 'active' | 'pending_payment';
|
|
77
|
+
/**
|
|
78
|
+
* The credit allocation that funded a block. Extends the allocation resource
|
|
79
|
+
* serialized on prices with the catalog-item attribution of the funding price.
|
|
80
|
+
*/
|
|
81
|
+
credit_allocation?: CreditListResponse.CreditAllocation | null;
|
|
69
82
|
}
|
|
70
83
|
export declare namespace CreditListResponse {
|
|
71
84
|
/**
|
|
@@ -85,10 +98,49 @@ export declare namespace CreditListResponse {
|
|
|
85
98
|
*/
|
|
86
99
|
values: Array<string>;
|
|
87
100
|
}
|
|
101
|
+
/**
|
|
102
|
+
* The credit allocation that funded a block. Extends the allocation resource
|
|
103
|
+
* serialized on prices with the catalog-item attribution of the funding price.
|
|
104
|
+
*/
|
|
105
|
+
interface CreditAllocation {
|
|
106
|
+
allows_rollover: boolean;
|
|
107
|
+
currency: string;
|
|
108
|
+
custom_expiration: Shared.CustomExpiration | null;
|
|
109
|
+
/**
|
|
110
|
+
* The ID of the catalog item this block was allocated from, derived from the
|
|
111
|
+
* allocation's price.
|
|
112
|
+
*/
|
|
113
|
+
item_id: string;
|
|
114
|
+
filters?: Array<CreditAllocation.Filter>;
|
|
115
|
+
license_type_id?: string | null;
|
|
116
|
+
}
|
|
117
|
+
namespace CreditAllocation {
|
|
118
|
+
interface Filter {
|
|
119
|
+
/**
|
|
120
|
+
* The property of the price to filter on.
|
|
121
|
+
*/
|
|
122
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
123
|
+
/**
|
|
124
|
+
* Should prices that match the filter be included or excluded.
|
|
125
|
+
*/
|
|
126
|
+
operator: 'includes' | 'excludes';
|
|
127
|
+
/**
|
|
128
|
+
* The IDs or values that match this filter.
|
|
129
|
+
*/
|
|
130
|
+
values: Array<string>;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
88
133
|
}
|
|
89
134
|
export interface CreditListByExternalIDResponse {
|
|
90
135
|
id: string;
|
|
91
136
|
balance: number;
|
|
137
|
+
/**
|
|
138
|
+
* How this credit block was created: `allocation` (a subscription's recurring
|
|
139
|
+
* credit allocation), `top_up` (an automatic balance-threshold top-up), or
|
|
140
|
+
* `manual` (a manual credit ledger increment, including credits voided or expired
|
|
141
|
+
* off another block).
|
|
142
|
+
*/
|
|
143
|
+
credit_block_source: 'allocation' | 'top_up' | 'manual';
|
|
92
144
|
effective_date: string | null;
|
|
93
145
|
expiry_date: string | null;
|
|
94
146
|
filters: Array<CreditListByExternalIDResponse.Filter>;
|
|
@@ -104,6 +156,11 @@ export interface CreditListByExternalIDResponse {
|
|
|
104
156
|
};
|
|
105
157
|
per_unit_cost_basis: string | null;
|
|
106
158
|
status: 'active' | 'pending_payment';
|
|
159
|
+
/**
|
|
160
|
+
* The credit allocation that funded a block. Extends the allocation resource
|
|
161
|
+
* serialized on prices with the catalog-item attribution of the funding price.
|
|
162
|
+
*/
|
|
163
|
+
credit_allocation?: CreditListByExternalIDResponse.CreditAllocation | null;
|
|
107
164
|
}
|
|
108
165
|
export declare namespace CreditListByExternalIDResponse {
|
|
109
166
|
/**
|
|
@@ -123,6 +180,38 @@ export declare namespace CreditListByExternalIDResponse {
|
|
|
123
180
|
*/
|
|
124
181
|
values: Array<string>;
|
|
125
182
|
}
|
|
183
|
+
/**
|
|
184
|
+
* The credit allocation that funded a block. Extends the allocation resource
|
|
185
|
+
* serialized on prices with the catalog-item attribution of the funding price.
|
|
186
|
+
*/
|
|
187
|
+
interface CreditAllocation {
|
|
188
|
+
allows_rollover: boolean;
|
|
189
|
+
currency: string;
|
|
190
|
+
custom_expiration: Shared.CustomExpiration | null;
|
|
191
|
+
/**
|
|
192
|
+
* The ID of the catalog item this block was allocated from, derived from the
|
|
193
|
+
* allocation's price.
|
|
194
|
+
*/
|
|
195
|
+
item_id: string;
|
|
196
|
+
filters?: Array<CreditAllocation.Filter>;
|
|
197
|
+
license_type_id?: string | null;
|
|
198
|
+
}
|
|
199
|
+
namespace CreditAllocation {
|
|
200
|
+
interface Filter {
|
|
201
|
+
/**
|
|
202
|
+
* The property of the price to filter on.
|
|
203
|
+
*/
|
|
204
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
205
|
+
/**
|
|
206
|
+
* Should prices that match the filter be included or excluded.
|
|
207
|
+
*/
|
|
208
|
+
operator: 'includes' | 'excludes';
|
|
209
|
+
/**
|
|
210
|
+
* The IDs or values that match this filter.
|
|
211
|
+
*/
|
|
212
|
+
values: Array<string>;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
126
215
|
}
|
|
127
216
|
export interface CreditListParams extends PageParams {
|
|
128
217
|
/**
|
|
@@ -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,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,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KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,sBAAsB,IAAI,sBAAsB,EAChD,kCAAkC,IAAI,kCAAkC,EACxE,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credits.js","sourceRoot":"","sources":["../../../src/resources/customers/credits/credits.ts"],"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,EA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