chargebee 3.0.0-beta.5 → 3.0.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 +6 -0
- package/README.md +9 -8
- package/cjs/environment.js +1 -1
- package/esm/environment.js +1 -1
- package/package.json +1 -1
- package/types/core.d.ts +0 -574
- package/types/index.d.ts +0 -167
- package/types/resources/Address.d.ts +0 -71
- package/types/resources/AdvanceInvoiceSchedule.d.ts +0 -29
- package/types/resources/AttachedItem.d.ts +0 -114
- package/types/resources/Attribute.d.ts +0 -9
- package/types/resources/BusinessEntity.d.ts +0 -64
- package/types/resources/BusinessEntityTransfer.d.ts +0 -15
- package/types/resources/Card.d.ts +0 -171
- package/types/resources/Comment.d.ts +0 -89
- package/types/resources/Contact.d.ts +0 -16
- package/types/resources/ContractTerm.d.ts +0 -19
- package/types/resources/Coupon.d.ts +0 -314
- package/types/resources/CouponCode.d.ts +0 -70
- package/types/resources/CouponSet.d.ts +0 -111
- package/types/resources/CreditNote.d.ts +0 -628
- package/types/resources/CreditNoteEstimate.d.ts +0 -143
- package/types/resources/Currency.d.ts +0 -91
- package/types/resources/Customer.d.ts +0 -962
- package/types/resources/CustomerEntitlement.d.ts +0 -36
- package/types/resources/DifferentialPrice.d.ts +0 -142
- package/types/resources/Discount.d.ts +0 -24
- package/types/resources/Download.d.ts +0 -10
- package/types/resources/Entitlement.d.ts +0 -66
- package/types/resources/EntitlementOverride.d.ts +0 -76
- package/types/resources/Estimate.d.ts +0 -1237
- package/types/resources/Event.d.ts +0 -81
- package/types/resources/Export.d.ts +0 -607
- package/types/resources/Feature.d.ts +0 -142
- package/types/resources/GatewayErrorDetail.d.ts +0 -20
- package/types/resources/Gift.d.ts +0 -296
- package/types/resources/Hierarchy.d.ts +0 -12
- package/types/resources/HostedPage.d.ts +0 -1112
- package/types/resources/ImpactedItem.d.ts +0 -20
- package/types/resources/ImpactedItemPrice.d.ts +0 -20
- package/types/resources/ImpactedSubscription.d.ts +0 -20
- package/types/resources/InAppSubscription.d.ts +0 -116
- package/types/resources/Invoice.d.ts +0 -1691
- package/types/resources/InvoiceEstimate.d.ts +0 -143
- package/types/resources/Item.d.ts +0 -204
- package/types/resources/ItemEntitlement.d.ts +0 -103
- package/types/resources/ItemFamily.d.ts +0 -89
- package/types/resources/ItemPrice.d.ts +0 -328
- package/types/resources/Metadata.d.ts +0 -8
- package/types/resources/NonSubscription.d.ts +0 -48
- package/types/resources/Order.d.ts +0 -586
- package/types/resources/PaymentIntent.d.ts +0 -178
- package/types/resources/PaymentReferenceNumber.d.ts +0 -11
- package/types/resources/PaymentSchedule.d.ts +0 -28
- package/types/resources/PaymentScheduleEstimate.d.ts +0 -25
- package/types/resources/PaymentScheduleScheme.d.ts +0 -62
- package/types/resources/PaymentSource.d.ts +0 -529
- package/types/resources/PaymentVoucher.d.ts +0 -107
- package/types/resources/PortalSession.d.ts +0 -88
- package/types/resources/PriceVariant.d.ts +0 -112
- package/types/resources/PricingPageSession.d.ts +0 -130
- package/types/resources/PromotionalCredit.d.ts +0 -111
- package/types/resources/Purchase.d.ts +0 -202
- package/types/resources/Quote.d.ts +0 -1467
- package/types/resources/QuoteLineGroup.d.ts +0 -136
- package/types/resources/QuotedCharge.d.ts +0 -56
- package/types/resources/QuotedSubscription.d.ts +0 -114
- package/types/resources/Ramp.d.ts +0 -260
- package/types/resources/ResourceMigration.d.ts +0 -36
- package/types/resources/SiteMigrationDetail.d.ts +0 -46
- package/types/resources/Subscription.d.ts +0 -2443
- package/types/resources/SubscriptionEntitlement.d.ts +0 -79
- package/types/resources/SubscriptionEstimate.d.ts +0 -59
- package/types/resources/TaxWithheld.d.ts +0 -19
- package/types/resources/ThirdPartyPaymentMethod.d.ts +0 -11
- package/types/resources/TimeMachine.d.ts +0 -57
- package/types/resources/Token.d.ts +0 -19
- package/types/resources/Transaction.d.ts +0 -313
- package/types/resources/UnbilledCharge.d.ts +0 -209
- package/types/resources/Usage.d.ts +0 -113
- package/types/resources/VirtualBankAccount.d.ts +0 -125
- package/types/resources/filter.d.ts +0 -52
|
@@ -1,1237 +0,0 @@
|
|
|
1
|
-
///<reference path='./../core.d.ts'/>
|
|
2
|
-
///<reference path='./../index.d.ts'/>
|
|
3
|
-
|
|
4
|
-
declare module 'chargebee' {
|
|
5
|
-
export interface Estimate {
|
|
6
|
-
created_at: number;
|
|
7
|
-
subscription_estimate?: SubscriptionEstimate;
|
|
8
|
-
subscription_estimates?: SubscriptionEstimate[];
|
|
9
|
-
invoice_estimate?: InvoiceEstimate;
|
|
10
|
-
invoice_estimates?: InvoiceEstimate[];
|
|
11
|
-
payment_schedule_estimates?: PaymentScheduleEstimate[];
|
|
12
|
-
next_invoice_estimate?: InvoiceEstimate;
|
|
13
|
-
credit_note_estimates?: CreditNoteEstimate[];
|
|
14
|
-
unbilled_charge_estimates?: UnbilledCharge[];
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export namespace Estimate {
|
|
18
|
-
export class EstimateResource {
|
|
19
|
-
createSubscription(
|
|
20
|
-
input: CreateSubscriptionInputParam,
|
|
21
|
-
headers?: ChargebeeRequestHeader,
|
|
22
|
-
): Promise<ChargebeeResponse<CreateSubscriptionResponse>>;
|
|
23
|
-
|
|
24
|
-
createSubItemEstimate(
|
|
25
|
-
input: CreateSubItemEstimateInputParam,
|
|
26
|
-
headers?: ChargebeeRequestHeader,
|
|
27
|
-
): Promise<ChargebeeResponse<CreateSubItemEstimateResponse>>;
|
|
28
|
-
|
|
29
|
-
createSubForCustomerEstimate(
|
|
30
|
-
customer_id: string,
|
|
31
|
-
input: CreateSubForCustomerEstimateInputParam,
|
|
32
|
-
headers?: ChargebeeRequestHeader,
|
|
33
|
-
): Promise<ChargebeeResponse<CreateSubForCustomerEstimateResponse>>;
|
|
34
|
-
|
|
35
|
-
createSubItemForCustomerEstimate(
|
|
36
|
-
customer_id: string,
|
|
37
|
-
input: CreateSubItemForCustomerEstimateInputParam,
|
|
38
|
-
headers?: ChargebeeRequestHeader,
|
|
39
|
-
): Promise<ChargebeeResponse<CreateSubItemForCustomerEstimateResponse>>;
|
|
40
|
-
|
|
41
|
-
updateSubscription(
|
|
42
|
-
input: UpdateSubscriptionInputParam,
|
|
43
|
-
headers?: ChargebeeRequestHeader,
|
|
44
|
-
): Promise<ChargebeeResponse<UpdateSubscriptionResponse>>;
|
|
45
|
-
|
|
46
|
-
updateSubscriptionForItems(
|
|
47
|
-
input: UpdateSubscriptionForItemsInputParam,
|
|
48
|
-
headers?: ChargebeeRequestHeader,
|
|
49
|
-
): Promise<ChargebeeResponse<UpdateSubscriptionForItemsResponse>>;
|
|
50
|
-
|
|
51
|
-
renewalEstimate(
|
|
52
|
-
subscription_id: string,
|
|
53
|
-
input?: RenewalEstimateInputParam,
|
|
54
|
-
headers?: ChargebeeRequestHeader,
|
|
55
|
-
): Promise<ChargebeeResponse<RenewalEstimateResponse>>;
|
|
56
|
-
|
|
57
|
-
advanceInvoiceEstimate(
|
|
58
|
-
subscription_id: string,
|
|
59
|
-
input?: AdvanceInvoiceEstimateInputParam,
|
|
60
|
-
headers?: ChargebeeRequestHeader,
|
|
61
|
-
): Promise<ChargebeeResponse<AdvanceInvoiceEstimateResponse>>;
|
|
62
|
-
|
|
63
|
-
regenerateInvoiceEstimate(
|
|
64
|
-
subscription_id: string,
|
|
65
|
-
input?: RegenerateInvoiceEstimateInputParam,
|
|
66
|
-
headers?: ChargebeeRequestHeader,
|
|
67
|
-
): Promise<ChargebeeResponse<RegenerateInvoiceEstimateResponse>>;
|
|
68
|
-
|
|
69
|
-
upcomingInvoicesEstimate(
|
|
70
|
-
customer_id: string,
|
|
71
|
-
headers?: ChargebeeRequestHeader,
|
|
72
|
-
): Promise<ChargebeeResponse<UpcomingInvoicesEstimateResponse>>;
|
|
73
|
-
|
|
74
|
-
changeTermEnd(
|
|
75
|
-
subscription_id: string,
|
|
76
|
-
input: ChangeTermEndInputParam,
|
|
77
|
-
headers?: ChargebeeRequestHeader,
|
|
78
|
-
): Promise<ChargebeeResponse<ChangeTermEndResponse>>;
|
|
79
|
-
|
|
80
|
-
cancelSubscription(
|
|
81
|
-
subscription_id: string,
|
|
82
|
-
input?: CancelSubscriptionInputParam,
|
|
83
|
-
headers?: ChargebeeRequestHeader,
|
|
84
|
-
): Promise<ChargebeeResponse<CancelSubscriptionResponse>>;
|
|
85
|
-
|
|
86
|
-
cancelSubscriptionForItems(
|
|
87
|
-
subscription_id: string,
|
|
88
|
-
input?: CancelSubscriptionForItemsInputParam,
|
|
89
|
-
headers?: ChargebeeRequestHeader,
|
|
90
|
-
): Promise<ChargebeeResponse<CancelSubscriptionForItemsResponse>>;
|
|
91
|
-
|
|
92
|
-
pauseSubscription(
|
|
93
|
-
subscription_id: string,
|
|
94
|
-
input?: PauseSubscriptionInputParam,
|
|
95
|
-
headers?: ChargebeeRequestHeader,
|
|
96
|
-
): Promise<ChargebeeResponse<PauseSubscriptionResponse>>;
|
|
97
|
-
|
|
98
|
-
resumeSubscription(
|
|
99
|
-
subscription_id: string,
|
|
100
|
-
input?: ResumeSubscriptionInputParam,
|
|
101
|
-
headers?: ChargebeeRequestHeader,
|
|
102
|
-
): Promise<ChargebeeResponse<ResumeSubscriptionResponse>>;
|
|
103
|
-
|
|
104
|
-
giftSubscription(
|
|
105
|
-
input: GiftSubscriptionInputParam,
|
|
106
|
-
headers?: ChargebeeRequestHeader,
|
|
107
|
-
): Promise<ChargebeeResponse<GiftSubscriptionResponse>>;
|
|
108
|
-
|
|
109
|
-
giftSubscriptionForItems(
|
|
110
|
-
input: GiftSubscriptionForItemsInputParam,
|
|
111
|
-
headers?: ChargebeeRequestHeader,
|
|
112
|
-
): Promise<ChargebeeResponse<GiftSubscriptionForItemsResponse>>;
|
|
113
|
-
|
|
114
|
-
createInvoice(
|
|
115
|
-
input?: CreateInvoiceInputParam,
|
|
116
|
-
headers?: ChargebeeRequestHeader,
|
|
117
|
-
): Promise<ChargebeeResponse<CreateInvoiceResponse>>;
|
|
118
|
-
|
|
119
|
-
createInvoiceForItems(
|
|
120
|
-
input: CreateInvoiceForItemsInputParam,
|
|
121
|
-
headers?: ChargebeeRequestHeader,
|
|
122
|
-
): Promise<ChargebeeResponse<CreateInvoiceForItemsResponse>>;
|
|
123
|
-
|
|
124
|
-
paymentSchedules(
|
|
125
|
-
input: PaymentSchedulesInputParam,
|
|
126
|
-
headers?: ChargebeeRequestHeader,
|
|
127
|
-
): Promise<ChargebeeResponse<PaymentSchedulesResponse>>;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
export interface CreateSubscriptionResponse {
|
|
131
|
-
estimate: Estimate;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
export interface CreateSubItemEstimateResponse {
|
|
135
|
-
estimate: Estimate;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
export interface CreateSubForCustomerEstimateResponse {
|
|
139
|
-
estimate: Estimate;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export interface CreateSubItemForCustomerEstimateResponse {
|
|
143
|
-
estimate: Estimate;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
export interface UpdateSubscriptionResponse {
|
|
147
|
-
estimate: Estimate;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
export interface UpdateSubscriptionForItemsResponse {
|
|
151
|
-
estimate: Estimate;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
export interface RenewalEstimateResponse {
|
|
155
|
-
estimate: Estimate;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
export interface AdvanceInvoiceEstimateResponse {
|
|
159
|
-
estimate: Estimate;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
export interface RegenerateInvoiceEstimateResponse {
|
|
163
|
-
estimate: Estimate;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
export interface UpcomingInvoicesEstimateResponse {
|
|
167
|
-
estimate: Estimate;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
export interface ChangeTermEndResponse {
|
|
171
|
-
estimate: Estimate;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
export interface CancelSubscriptionResponse {
|
|
175
|
-
estimate: Estimate;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
export interface CancelSubscriptionForItemsResponse {
|
|
179
|
-
estimate: Estimate;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
export interface PauseSubscriptionResponse {
|
|
183
|
-
estimate: Estimate;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
export interface ResumeSubscriptionResponse {
|
|
187
|
-
estimate: Estimate;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
export interface GiftSubscriptionResponse {
|
|
191
|
-
estimate: Estimate;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
export interface GiftSubscriptionForItemsResponse {
|
|
195
|
-
estimate: Estimate;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
export interface CreateInvoiceResponse {
|
|
199
|
-
estimate: Estimate;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
export interface CreateInvoiceForItemsResponse {
|
|
203
|
-
estimate: Estimate;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
export interface PaymentSchedulesResponse {
|
|
207
|
-
estimate: Estimate;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
// REQUEST PARAMS
|
|
211
|
-
//---------------
|
|
212
|
-
|
|
213
|
-
export interface CreateSubscriptionInputParam {
|
|
214
|
-
billing_cycles?: number;
|
|
215
|
-
mandatory_addons_to_remove?: string[];
|
|
216
|
-
terms_to_charge?: number;
|
|
217
|
-
billing_alignment_mode?: BillingAlignmentModeEnum;
|
|
218
|
-
coupon_ids?: string[];
|
|
219
|
-
invoice_immediately?: boolean;
|
|
220
|
-
invoice_date?: number;
|
|
221
|
-
client_profile_id?: string;
|
|
222
|
-
subscription?: SubscriptionCreateSubscriptionInputParam;
|
|
223
|
-
billing_address?: BillingAddressCreateSubscriptionInputParam;
|
|
224
|
-
shipping_address?: ShippingAddressCreateSubscriptionInputParam;
|
|
225
|
-
customer?: CustomerCreateSubscriptionInputParam;
|
|
226
|
-
contract_term?: ContractTermCreateSubscriptionInputParam;
|
|
227
|
-
addons?: AddonsCreateSubscriptionInputParam[];
|
|
228
|
-
event_based_addons?: EventBasedAddonsCreateSubscriptionInputParam[];
|
|
229
|
-
tax_providers_fields?: TaxProvidersFieldsCreateSubscriptionInputParam[];
|
|
230
|
-
}
|
|
231
|
-
export interface CreateSubItemEstimateInputParam {
|
|
232
|
-
billing_cycles?: number;
|
|
233
|
-
mandatory_items_to_remove?: string[];
|
|
234
|
-
terms_to_charge?: number;
|
|
235
|
-
billing_alignment_mode?: BillingAlignmentModeEnum;
|
|
236
|
-
coupon_ids?: string[];
|
|
237
|
-
invoice_immediately?: boolean;
|
|
238
|
-
invoice_date?: number;
|
|
239
|
-
client_profile_id?: string;
|
|
240
|
-
subscription?: SubscriptionCreateSubItemEstimateInputParam;
|
|
241
|
-
billing_address?: BillingAddressCreateSubItemEstimateInputParam;
|
|
242
|
-
shipping_address?: ShippingAddressCreateSubItemEstimateInputParam;
|
|
243
|
-
customer?: CustomerCreateSubItemEstimateInputParam;
|
|
244
|
-
contract_term?: ContractTermCreateSubItemEstimateInputParam;
|
|
245
|
-
subscription_items?: SubscriptionItemsCreateSubItemEstimateInputParam[];
|
|
246
|
-
discounts?: DiscountsCreateSubItemEstimateInputParam[];
|
|
247
|
-
item_tiers?: ItemTiersCreateSubItemEstimateInputParam[];
|
|
248
|
-
tax_providers_fields?: TaxProvidersFieldsCreateSubItemEstimateInputParam[];
|
|
249
|
-
}
|
|
250
|
-
export interface CreateSubForCustomerEstimateInputParam {
|
|
251
|
-
use_existing_balances?: boolean;
|
|
252
|
-
invoice_immediately?: boolean;
|
|
253
|
-
billing_cycles?: number;
|
|
254
|
-
mandatory_addons_to_remove?: string[];
|
|
255
|
-
terms_to_charge?: number;
|
|
256
|
-
billing_alignment_mode?: 'immediate' | 'delayed';
|
|
257
|
-
invoice_date?: number;
|
|
258
|
-
coupon_ids?: string[];
|
|
259
|
-
subscription?: SubscriptionCreateSubForCustomerEstimateInputParam;
|
|
260
|
-
shipping_address?: ShippingAddressCreateSubForCustomerEstimateInputParam;
|
|
261
|
-
contract_term?: ContractTermCreateSubForCustomerEstimateInputParam;
|
|
262
|
-
addons?: AddonsCreateSubForCustomerEstimateInputParam[];
|
|
263
|
-
event_based_addons?: EventBasedAddonsCreateSubForCustomerEstimateInputParam[];
|
|
264
|
-
}
|
|
265
|
-
export interface CreateSubItemForCustomerEstimateInputParam {
|
|
266
|
-
use_existing_balances?: boolean;
|
|
267
|
-
invoice_immediately?: boolean;
|
|
268
|
-
billing_cycles?: number;
|
|
269
|
-
mandatory_items_to_remove?: string[];
|
|
270
|
-
terms_to_charge?: number;
|
|
271
|
-
billing_alignment_mode?: BillingAlignmentModeEnum;
|
|
272
|
-
invoice_date?: number;
|
|
273
|
-
coupon_ids?: string[];
|
|
274
|
-
subscription?: SubscriptionCreateSubItemForCustomerEstimateInputParam;
|
|
275
|
-
shipping_address?: ShippingAddressCreateSubItemForCustomerEstimateInputParam;
|
|
276
|
-
billing_address?: BillingAddressCreateSubItemForCustomerEstimateInputParam;
|
|
277
|
-
contract_term?: ContractTermCreateSubItemForCustomerEstimateInputParam;
|
|
278
|
-
subscription_items?: SubscriptionItemsCreateSubItemForCustomerEstimateInputParam[];
|
|
279
|
-
discounts?: DiscountsCreateSubItemForCustomerEstimateInputParam[];
|
|
280
|
-
item_tiers?: ItemTiersCreateSubItemForCustomerEstimateInputParam[];
|
|
281
|
-
}
|
|
282
|
-
export interface UpdateSubscriptionInputParam {
|
|
283
|
-
changes_scheduled_at?: number;
|
|
284
|
-
change_option?: ChangeOptionEnum;
|
|
285
|
-
replace_addon_list?: boolean;
|
|
286
|
-
mandatory_addons_to_remove?: string[];
|
|
287
|
-
invoice_date?: number;
|
|
288
|
-
billing_cycles?: number;
|
|
289
|
-
terms_to_charge?: number;
|
|
290
|
-
reactivate_from?: number;
|
|
291
|
-
billing_alignment_mode?: BillingAlignmentModeEnum;
|
|
292
|
-
coupon_ids?: string[];
|
|
293
|
-
replace_coupon_list?: boolean;
|
|
294
|
-
prorate?: boolean;
|
|
295
|
-
end_of_term?: boolean;
|
|
296
|
-
force_term_reset?: boolean;
|
|
297
|
-
reactivate?: boolean;
|
|
298
|
-
include_delayed_charges?: boolean;
|
|
299
|
-
use_existing_balances?: boolean;
|
|
300
|
-
invoice_immediately?: boolean;
|
|
301
|
-
subscription?: SubscriptionUpdateSubscriptionInputParam;
|
|
302
|
-
billing_address?: BillingAddressUpdateSubscriptionInputParam;
|
|
303
|
-
shipping_address?: ShippingAddressUpdateSubscriptionInputParam;
|
|
304
|
-
customer?: CustomerUpdateSubscriptionInputParam;
|
|
305
|
-
addons?: AddonsUpdateSubscriptionInputParam[];
|
|
306
|
-
event_based_addons?: EventBasedAddonsUpdateSubscriptionInputParam[];
|
|
307
|
-
}
|
|
308
|
-
export interface UpdateSubscriptionForItemsInputParam {
|
|
309
|
-
changes_scheduled_at?: number;
|
|
310
|
-
change_option?: ChangeOptionEnum;
|
|
311
|
-
mandatory_items_to_remove?: string[];
|
|
312
|
-
replace_items_list?: boolean;
|
|
313
|
-
invoice_date?: number;
|
|
314
|
-
billing_cycles?: number;
|
|
315
|
-
terms_to_charge?: number;
|
|
316
|
-
reactivate_from?: number;
|
|
317
|
-
billing_alignment_mode?: BillingAlignmentModeEnum;
|
|
318
|
-
coupon_ids?: string[];
|
|
319
|
-
replace_coupon_list?: boolean;
|
|
320
|
-
prorate?: boolean;
|
|
321
|
-
end_of_term?: boolean;
|
|
322
|
-
force_term_reset?: boolean;
|
|
323
|
-
reactivate?: boolean;
|
|
324
|
-
include_delayed_charges?: boolean;
|
|
325
|
-
use_existing_balances?: boolean;
|
|
326
|
-
invoice_immediately?: boolean;
|
|
327
|
-
invoice_usages?: boolean;
|
|
328
|
-
subscription?: SubscriptionUpdateSubscriptionForItemsInputParam;
|
|
329
|
-
billing_address?: BillingAddressUpdateSubscriptionForItemsInputParam;
|
|
330
|
-
shipping_address?: ShippingAddressUpdateSubscriptionForItemsInputParam;
|
|
331
|
-
customer?: CustomerUpdateSubscriptionForItemsInputParam;
|
|
332
|
-
subscription_items?: SubscriptionItemsUpdateSubscriptionForItemsInputParam[];
|
|
333
|
-
discounts?: DiscountsUpdateSubscriptionForItemsInputParam[];
|
|
334
|
-
item_tiers?: ItemTiersUpdateSubscriptionForItemsInputParam[];
|
|
335
|
-
}
|
|
336
|
-
export interface RenewalEstimateInputParam {
|
|
337
|
-
include_delayed_charges?: boolean;
|
|
338
|
-
use_existing_balances?: boolean;
|
|
339
|
-
ignore_scheduled_cancellation?: boolean;
|
|
340
|
-
ignore_scheduled_changes?: boolean;
|
|
341
|
-
}
|
|
342
|
-
export interface AdvanceInvoiceEstimateInputParam {
|
|
343
|
-
terms_to_charge?: number;
|
|
344
|
-
invoice_immediately?: boolean;
|
|
345
|
-
schedule_type?: ScheduleTypeEnum;
|
|
346
|
-
fixed_interval_schedule?: FixedIntervalScheduleAdvanceInvoiceEstimateInputParam;
|
|
347
|
-
specific_dates_schedule?: SpecificDatesScheduleAdvanceInvoiceEstimateInputParam[];
|
|
348
|
-
}
|
|
349
|
-
export interface RegenerateInvoiceEstimateInputParam {
|
|
350
|
-
date_from?: number;
|
|
351
|
-
date_to?: number;
|
|
352
|
-
prorate?: boolean;
|
|
353
|
-
invoice_immediately?: boolean;
|
|
354
|
-
}
|
|
355
|
-
export interface ChangeTermEndInputParam {
|
|
356
|
-
term_ends_at: number;
|
|
357
|
-
prorate?: boolean;
|
|
358
|
-
invoice_immediately?: boolean;
|
|
359
|
-
}
|
|
360
|
-
export interface CancelSubscriptionInputParam {
|
|
361
|
-
cancel_option?: CancelOptionEnum;
|
|
362
|
-
end_of_term?: boolean;
|
|
363
|
-
cancel_at?: number;
|
|
364
|
-
credit_option_for_current_term_charges?: CreditOptionForCurrentTermChargesEnum;
|
|
365
|
-
unbilled_charges_option?: UnbilledChargesOptionEnum;
|
|
366
|
-
account_receivables_handling?: AccountReceivablesHandlingEnum;
|
|
367
|
-
refundable_credits_handling?: RefundableCreditsHandlingEnum;
|
|
368
|
-
contract_term_cancel_option?: ContractTermCancelOptionEnum;
|
|
369
|
-
invoice_date?: number;
|
|
370
|
-
cancel_reason_code?: string;
|
|
371
|
-
event_based_addons?: EventBasedAddonsCancelSubscriptionInputParam[];
|
|
372
|
-
}
|
|
373
|
-
export interface CancelSubscriptionForItemsInputParam {
|
|
374
|
-
cancel_option?: CancelOptionEnum;
|
|
375
|
-
end_of_term?: boolean;
|
|
376
|
-
cancel_at?: number;
|
|
377
|
-
credit_option_for_current_term_charges?: CreditOptionForCurrentTermChargesEnum;
|
|
378
|
-
unbilled_charges_option?: UnbilledChargesOptionEnum;
|
|
379
|
-
account_receivables_handling?: AccountReceivablesHandlingEnum;
|
|
380
|
-
refundable_credits_handling?: RefundableCreditsHandlingEnum;
|
|
381
|
-
contract_term_cancel_option?: ContractTermCancelOptionEnum;
|
|
382
|
-
invoice_date?: number;
|
|
383
|
-
cancel_reason_code?: string;
|
|
384
|
-
subscription_items?: SubscriptionItemsCancelSubscriptionForItemsInputParam[];
|
|
385
|
-
}
|
|
386
|
-
export interface PauseSubscriptionInputParam {
|
|
387
|
-
pause_option?: PauseOptionEnum;
|
|
388
|
-
unbilled_charges_handling?: UnbilledChargesHandlingEnum;
|
|
389
|
-
subscription?: SubscriptionPauseSubscriptionInputParam;
|
|
390
|
-
}
|
|
391
|
-
export interface ResumeSubscriptionInputParam {
|
|
392
|
-
resume_option?: ResumeOptionEnum;
|
|
393
|
-
charges_handling?: ChargesHandlingEnum;
|
|
394
|
-
subscription?: SubscriptionResumeSubscriptionInputParam;
|
|
395
|
-
}
|
|
396
|
-
export interface GiftSubscriptionInputParam {
|
|
397
|
-
coupon_ids?: string[];
|
|
398
|
-
gift?: GiftGiftSubscriptionInputParam;
|
|
399
|
-
gifter?: GifterGiftSubscriptionInputParam;
|
|
400
|
-
gift_receiver?: GiftReceiverGiftSubscriptionInputParam;
|
|
401
|
-
payment_intent?: PaymentIntentGiftSubscriptionInputParam;
|
|
402
|
-
shipping_address?: ShippingAddressGiftSubscriptionInputParam;
|
|
403
|
-
subscription?: SubscriptionGiftSubscriptionInputParam;
|
|
404
|
-
addons?: AddonsGiftSubscriptionInputParam[];
|
|
405
|
-
}
|
|
406
|
-
export interface GiftSubscriptionForItemsInputParam {
|
|
407
|
-
coupon_ids?: string[];
|
|
408
|
-
gift?: GiftGiftSubscriptionForItemsInputParam;
|
|
409
|
-
gifter?: GifterGiftSubscriptionForItemsInputParam;
|
|
410
|
-
gift_receiver?: GiftReceiverGiftSubscriptionForItemsInputParam;
|
|
411
|
-
payment_intent?: PaymentIntentGiftSubscriptionForItemsInputParam;
|
|
412
|
-
shipping_address?: ShippingAddressGiftSubscriptionForItemsInputParam;
|
|
413
|
-
subscription_items?: SubscriptionItemsGiftSubscriptionForItemsInputParam[];
|
|
414
|
-
}
|
|
415
|
-
export interface CreateInvoiceInputParam {
|
|
416
|
-
currency_code?: string;
|
|
417
|
-
invoice_note?: string;
|
|
418
|
-
remove_general_note?: boolean /**
|
|
419
|
-
* @deprecated Please refer API docs to use other attributes
|
|
420
|
-
*/;
|
|
421
|
-
|
|
422
|
-
coupon?: string;
|
|
423
|
-
coupon_ids?: string[];
|
|
424
|
-
authorization_transaction_id?: string;
|
|
425
|
-
payment_source_id?: string;
|
|
426
|
-
auto_collection?: AutoCollectionEnum;
|
|
427
|
-
invoice_date?: number;
|
|
428
|
-
invoice?: InvoiceCreateInvoiceInputParam;
|
|
429
|
-
shipping_address?: ShippingAddressCreateInvoiceInputParam;
|
|
430
|
-
addons?: AddonsCreateInvoiceInputParam[];
|
|
431
|
-
charges?: ChargesCreateInvoiceInputParam[];
|
|
432
|
-
notes_to_remove?: NotesToRemoveCreateInvoiceInputParam[];
|
|
433
|
-
tax_providers_fields?: TaxProvidersFieldsCreateInvoiceInputParam[];
|
|
434
|
-
}
|
|
435
|
-
export interface CreateInvoiceForItemsInputParam {
|
|
436
|
-
currency_code?: string;
|
|
437
|
-
invoice_note?: string;
|
|
438
|
-
remove_general_note?: boolean /**
|
|
439
|
-
* @deprecated Please refer API docs to use other attributes
|
|
440
|
-
*/;
|
|
441
|
-
|
|
442
|
-
coupon?: string;
|
|
443
|
-
coupon_ids?: string[];
|
|
444
|
-
authorization_transaction_id?: string;
|
|
445
|
-
payment_source_id?: string;
|
|
446
|
-
auto_collection?: AutoCollectionEnum;
|
|
447
|
-
invoice_date?: number;
|
|
448
|
-
invoice?: InvoiceCreateInvoiceForItemsInputParam;
|
|
449
|
-
shipping_address?: ShippingAddressCreateInvoiceForItemsInputParam;
|
|
450
|
-
item_prices?: ItemPricesCreateInvoiceForItemsInputParam[];
|
|
451
|
-
item_tiers?: ItemTiersCreateInvoiceForItemsInputParam[];
|
|
452
|
-
charges?: ChargesCreateInvoiceForItemsInputParam[];
|
|
453
|
-
notes_to_remove?: NotesToRemoveCreateInvoiceForItemsInputParam[];
|
|
454
|
-
discounts?: DiscountsCreateInvoiceForItemsInputParam[];
|
|
455
|
-
tax_providers_fields?: TaxProvidersFieldsCreateInvoiceForItemsInputParam[];
|
|
456
|
-
}
|
|
457
|
-
export interface PaymentSchedulesInputParam {
|
|
458
|
-
scheme_id: string;
|
|
459
|
-
amount?: number;
|
|
460
|
-
invoice_id?: string;
|
|
461
|
-
payment_schedule_start_date?: number;
|
|
462
|
-
}
|
|
463
|
-
export interface BillingAddressCreateSubscriptionInputParam {
|
|
464
|
-
line1?: string;
|
|
465
|
-
line2?: string;
|
|
466
|
-
line3?: string;
|
|
467
|
-
city?: string;
|
|
468
|
-
state_code?: string;
|
|
469
|
-
zip?: string;
|
|
470
|
-
country?: string;
|
|
471
|
-
validation_status?: ValidationStatusEnum;
|
|
472
|
-
}
|
|
473
|
-
export interface CustomerCreateSubscriptionInputParam {
|
|
474
|
-
vat_number?: string;
|
|
475
|
-
vat_number_prefix?: string;
|
|
476
|
-
registered_for_gst?: boolean;
|
|
477
|
-
taxability?: TaxabilityEnum;
|
|
478
|
-
entity_code?: EntityCodeEnum;
|
|
479
|
-
exempt_number?: string;
|
|
480
|
-
exemption_details?: any;
|
|
481
|
-
customer_type?: CustomerTypeEnum;
|
|
482
|
-
}
|
|
483
|
-
export interface ShippingAddressCreateSubscriptionInputParam {
|
|
484
|
-
line1?: string;
|
|
485
|
-
line2?: string;
|
|
486
|
-
line3?: string;
|
|
487
|
-
city?: string;
|
|
488
|
-
state_code?: string;
|
|
489
|
-
zip?: string;
|
|
490
|
-
country?: string;
|
|
491
|
-
validation_status?: ValidationStatusEnum;
|
|
492
|
-
}
|
|
493
|
-
export interface ContractTermCreateSubscriptionInputParam {
|
|
494
|
-
action_at_term_end?: 'renew' | 'evergreen' | 'cancel';
|
|
495
|
-
cancellation_cutoff_period?: number;
|
|
496
|
-
}
|
|
497
|
-
export interface SubscriptionCreateSubscriptionInputParam {
|
|
498
|
-
id?: string;
|
|
499
|
-
plan_id: string;
|
|
500
|
-
plan_quantity?: number;
|
|
501
|
-
plan_quantity_in_decimal?: string;
|
|
502
|
-
plan_unit_price?: number;
|
|
503
|
-
plan_unit_price_in_decimal?: string;
|
|
504
|
-
setup_fee?: number;
|
|
505
|
-
trial_end?: number;
|
|
506
|
-
start_date?: number;
|
|
507
|
-
/**
|
|
508
|
-
* @deprecated Please refer API docs to use other attributes
|
|
509
|
-
*/
|
|
510
|
-
coupon?: string;
|
|
511
|
-
offline_payment_method?: OfflinePaymentMethodEnum;
|
|
512
|
-
free_period?: number;
|
|
513
|
-
free_period_unit?: FreePeriodUnitEnum;
|
|
514
|
-
contract_term_billing_cycle_on_renewal?: number;
|
|
515
|
-
trial_end_action?: TrialEndActionEnum;
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
export interface EventBasedAddonsCreateSubscriptionInputParam {
|
|
519
|
-
id?: string;
|
|
520
|
-
quantity?: number;
|
|
521
|
-
unit_price?: number;
|
|
522
|
-
quantity_in_decimal?: string;
|
|
523
|
-
unit_price_in_decimal?: string;
|
|
524
|
-
service_period_in_days?: number;
|
|
525
|
-
on_event?: OnEventEnum;
|
|
526
|
-
charge_once?: boolean;
|
|
527
|
-
charge_on?: ChargeOnEnum;
|
|
528
|
-
}
|
|
529
|
-
export interface AddonsCreateSubscriptionInputParam {
|
|
530
|
-
id?: string;
|
|
531
|
-
quantity?: number;
|
|
532
|
-
quantity_in_decimal?: string;
|
|
533
|
-
unit_price?: number;
|
|
534
|
-
unit_price_in_decimal?: string;
|
|
535
|
-
billing_cycles?: number;
|
|
536
|
-
trial_end?: number;
|
|
537
|
-
}
|
|
538
|
-
export interface TaxProvidersFieldsCreateSubscriptionInputParam {
|
|
539
|
-
provider_name?: string;
|
|
540
|
-
field_id?: string;
|
|
541
|
-
field_value?: string;
|
|
542
|
-
}
|
|
543
|
-
export interface BillingAddressCreateSubItemEstimateInputParam {
|
|
544
|
-
line1?: string;
|
|
545
|
-
line2?: string;
|
|
546
|
-
line3?: string;
|
|
547
|
-
city?: string;
|
|
548
|
-
state_code?: string;
|
|
549
|
-
zip?: string;
|
|
550
|
-
country?: string;
|
|
551
|
-
validation_status?: ValidationStatusEnum;
|
|
552
|
-
}
|
|
553
|
-
export interface CustomerCreateSubItemEstimateInputParam {
|
|
554
|
-
vat_number?: string;
|
|
555
|
-
vat_number_prefix?: string;
|
|
556
|
-
registered_for_gst?: boolean;
|
|
557
|
-
taxability?: TaxabilityEnum;
|
|
558
|
-
entity_code?: EntityCodeEnum;
|
|
559
|
-
exempt_number?: string;
|
|
560
|
-
exemption_details?: any;
|
|
561
|
-
customer_type?: CustomerTypeEnum;
|
|
562
|
-
}
|
|
563
|
-
export interface ShippingAddressCreateSubItemEstimateInputParam {
|
|
564
|
-
line1?: string;
|
|
565
|
-
line2?: string;
|
|
566
|
-
line3?: string;
|
|
567
|
-
city?: string;
|
|
568
|
-
state_code?: string;
|
|
569
|
-
zip?: string;
|
|
570
|
-
country?: string;
|
|
571
|
-
validation_status?: ValidationStatusEnum;
|
|
572
|
-
}
|
|
573
|
-
export interface ContractTermCreateSubItemEstimateInputParam {
|
|
574
|
-
action_at_term_end?: 'renew' | 'evergreen' | 'cancel';
|
|
575
|
-
/**
|
|
576
|
-
* @deprecated Please refer API docs to use other attributes
|
|
577
|
-
*/
|
|
578
|
-
contract_start?: number;
|
|
579
|
-
cancellation_cutoff_period?: number;
|
|
580
|
-
}
|
|
581
|
-
export interface SubscriptionCreateSubItemEstimateInputParam {
|
|
582
|
-
id?: string;
|
|
583
|
-
trial_end?: number;
|
|
584
|
-
/**
|
|
585
|
-
* @deprecated Please refer API docs to use other attributes
|
|
586
|
-
*/
|
|
587
|
-
setup_fee?: number;
|
|
588
|
-
start_date?: number;
|
|
589
|
-
/**
|
|
590
|
-
* @deprecated Please refer API docs to use other attributes
|
|
591
|
-
*/
|
|
592
|
-
coupon?: string;
|
|
593
|
-
free_period?: number;
|
|
594
|
-
free_period_unit?: FreePeriodUnitEnum;
|
|
595
|
-
contract_term_billing_cycle_on_renewal?: number;
|
|
596
|
-
trial_end_action?: TrialEndActionEnum;
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
export interface SubscriptionItemsCreateSubItemEstimateInputParam {
|
|
600
|
-
item_price_id: string;
|
|
601
|
-
quantity?: number;
|
|
602
|
-
quantity_in_decimal?: string;
|
|
603
|
-
unit_price?: number;
|
|
604
|
-
unit_price_in_decimal?: string;
|
|
605
|
-
billing_cycles?: number;
|
|
606
|
-
trial_end?: number;
|
|
607
|
-
service_period_days?: number;
|
|
608
|
-
charge_on_event?: ChargeOnEventEnum;
|
|
609
|
-
charge_once?: boolean;
|
|
610
|
-
/**
|
|
611
|
-
* @deprecated Please refer API docs to use other attributes
|
|
612
|
-
*/
|
|
613
|
-
item_type?: ItemTypeEnum;
|
|
614
|
-
charge_on_option?: ChargeOnOptionEnum;
|
|
615
|
-
}
|
|
616
|
-
export interface DiscountsCreateSubItemEstimateInputParam {
|
|
617
|
-
apply_on: ApplyOnEnum;
|
|
618
|
-
duration_type: DurationTypeEnum;
|
|
619
|
-
percentage?: number;
|
|
620
|
-
amount?: number;
|
|
621
|
-
period?: number;
|
|
622
|
-
period_unit?: PeriodUnitEnum;
|
|
623
|
-
included_in_mrr?: boolean;
|
|
624
|
-
item_price_id?: string;
|
|
625
|
-
}
|
|
626
|
-
export interface ItemTiersCreateSubItemEstimateInputParam {
|
|
627
|
-
item_price_id?: string;
|
|
628
|
-
starting_unit?: number;
|
|
629
|
-
ending_unit?: number;
|
|
630
|
-
price?: number;
|
|
631
|
-
starting_unit_in_decimal?: string;
|
|
632
|
-
ending_unit_in_decimal?: string;
|
|
633
|
-
price_in_decimal?: string;
|
|
634
|
-
}
|
|
635
|
-
export interface TaxProvidersFieldsCreateSubItemEstimateInputParam {
|
|
636
|
-
provider_name?: string;
|
|
637
|
-
field_id?: string;
|
|
638
|
-
field_value?: string;
|
|
639
|
-
}
|
|
640
|
-
export interface ShippingAddressCreateSubForCustomerEstimateInputParam {
|
|
641
|
-
line1?: string;
|
|
642
|
-
line2?: string;
|
|
643
|
-
line3?: string;
|
|
644
|
-
city?: string;
|
|
645
|
-
state_code?: string;
|
|
646
|
-
zip?: string;
|
|
647
|
-
country?: string;
|
|
648
|
-
validation_status?: ValidationStatusEnum;
|
|
649
|
-
}
|
|
650
|
-
export interface ContractTermCreateSubForCustomerEstimateInputParam {
|
|
651
|
-
action_at_term_end?: 'renew' | 'evergreen' | 'cancel';
|
|
652
|
-
cancellation_cutoff_period?: number;
|
|
653
|
-
}
|
|
654
|
-
export interface SubscriptionCreateSubForCustomerEstimateInputParam {
|
|
655
|
-
id?: string;
|
|
656
|
-
plan_id: string;
|
|
657
|
-
plan_quantity?: number;
|
|
658
|
-
plan_quantity_in_decimal?: string;
|
|
659
|
-
plan_unit_price?: number;
|
|
660
|
-
plan_unit_price_in_decimal?: string;
|
|
661
|
-
setup_fee?: number;
|
|
662
|
-
trial_end?: number;
|
|
663
|
-
start_date?: number;
|
|
664
|
-
offline_payment_method?: OfflinePaymentMethodEnum;
|
|
665
|
-
free_period?: number;
|
|
666
|
-
free_period_unit?: FreePeriodUnitEnum;
|
|
667
|
-
contract_term_billing_cycle_on_renewal?: number;
|
|
668
|
-
trial_end_action?: TrialEndActionEnum;
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
export interface EventBasedAddonsCreateSubForCustomerEstimateInputParam {
|
|
672
|
-
id?: string;
|
|
673
|
-
quantity?: number;
|
|
674
|
-
unit_price?: number;
|
|
675
|
-
quantity_in_decimal?: string;
|
|
676
|
-
unit_price_in_decimal?: string;
|
|
677
|
-
service_period_in_days?: number;
|
|
678
|
-
on_event?: OnEventEnum;
|
|
679
|
-
charge_once?: boolean;
|
|
680
|
-
charge_on?: ChargeOnEnum;
|
|
681
|
-
}
|
|
682
|
-
export interface AddonsCreateSubForCustomerEstimateInputParam {
|
|
683
|
-
id?: string;
|
|
684
|
-
quantity?: number;
|
|
685
|
-
quantity_in_decimal?: string;
|
|
686
|
-
unit_price?: number;
|
|
687
|
-
unit_price_in_decimal?: string;
|
|
688
|
-
billing_cycles?: number;
|
|
689
|
-
trial_end?: number;
|
|
690
|
-
}
|
|
691
|
-
export interface BillingAddressCreateSubItemForCustomerEstimateInputParam {
|
|
692
|
-
line1?: string;
|
|
693
|
-
line2?: string;
|
|
694
|
-
line3?: string;
|
|
695
|
-
city?: string;
|
|
696
|
-
state_code?: string;
|
|
697
|
-
zip?: string;
|
|
698
|
-
country?: string;
|
|
699
|
-
validation_status?: ValidationStatusEnum;
|
|
700
|
-
}
|
|
701
|
-
export interface ShippingAddressCreateSubItemForCustomerEstimateInputParam {
|
|
702
|
-
line1?: string;
|
|
703
|
-
line2?: string;
|
|
704
|
-
line3?: string;
|
|
705
|
-
city?: string;
|
|
706
|
-
state_code?: string;
|
|
707
|
-
zip?: string;
|
|
708
|
-
country?: string;
|
|
709
|
-
validation_status?: ValidationStatusEnum;
|
|
710
|
-
}
|
|
711
|
-
export interface ContractTermCreateSubItemForCustomerEstimateInputParam {
|
|
712
|
-
action_at_term_end?: 'renew' | 'evergreen' | 'cancel';
|
|
713
|
-
/**
|
|
714
|
-
* @deprecated Please refer API docs to use other attributes
|
|
715
|
-
*/
|
|
716
|
-
contract_start?: number;
|
|
717
|
-
cancellation_cutoff_period?: number;
|
|
718
|
-
}
|
|
719
|
-
export interface SubscriptionCreateSubItemForCustomerEstimateInputParam {
|
|
720
|
-
id?: string;
|
|
721
|
-
trial_end?: number;
|
|
722
|
-
/**
|
|
723
|
-
* @deprecated Please refer API docs to use other attributes
|
|
724
|
-
*/
|
|
725
|
-
setup_fee?: number;
|
|
726
|
-
start_date?: number;
|
|
727
|
-
free_period?: number;
|
|
728
|
-
free_period_unit?: FreePeriodUnitEnum;
|
|
729
|
-
contract_term_billing_cycle_on_renewal?: number;
|
|
730
|
-
trial_end_action?: TrialEndActionEnum;
|
|
731
|
-
}
|
|
732
|
-
|
|
733
|
-
export interface SubscriptionItemsCreateSubItemForCustomerEstimateInputParam {
|
|
734
|
-
item_price_id: string;
|
|
735
|
-
quantity?: number;
|
|
736
|
-
quantity_in_decimal?: string;
|
|
737
|
-
unit_price?: number;
|
|
738
|
-
unit_price_in_decimal?: string;
|
|
739
|
-
billing_cycles?: number;
|
|
740
|
-
trial_end?: number;
|
|
741
|
-
service_period_days?: number;
|
|
742
|
-
charge_on_event?: ChargeOnEventEnum;
|
|
743
|
-
charge_once?: boolean;
|
|
744
|
-
/**
|
|
745
|
-
* @deprecated Please refer API docs to use other attributes
|
|
746
|
-
*/
|
|
747
|
-
item_type?: ItemTypeEnum;
|
|
748
|
-
charge_on_option?: ChargeOnOptionEnum;
|
|
749
|
-
}
|
|
750
|
-
export interface DiscountsCreateSubItemForCustomerEstimateInputParam {
|
|
751
|
-
apply_on: ApplyOnEnum;
|
|
752
|
-
duration_type: DurationTypeEnum;
|
|
753
|
-
percentage?: number;
|
|
754
|
-
amount?: number;
|
|
755
|
-
period?: number;
|
|
756
|
-
period_unit?: PeriodUnitEnum;
|
|
757
|
-
included_in_mrr?: boolean;
|
|
758
|
-
item_price_id?: string;
|
|
759
|
-
}
|
|
760
|
-
export interface ItemTiersCreateSubItemForCustomerEstimateInputParam {
|
|
761
|
-
item_price_id?: string;
|
|
762
|
-
starting_unit?: number;
|
|
763
|
-
ending_unit?: number;
|
|
764
|
-
price?: number;
|
|
765
|
-
starting_unit_in_decimal?: string;
|
|
766
|
-
ending_unit_in_decimal?: string;
|
|
767
|
-
price_in_decimal?: string;
|
|
768
|
-
}
|
|
769
|
-
export interface BillingAddressUpdateSubscriptionInputParam {
|
|
770
|
-
line1?: string;
|
|
771
|
-
line2?: string;
|
|
772
|
-
line3?: string;
|
|
773
|
-
city?: string;
|
|
774
|
-
state_code?: string;
|
|
775
|
-
zip?: string;
|
|
776
|
-
country?: string;
|
|
777
|
-
validation_status?: ValidationStatusEnum;
|
|
778
|
-
}
|
|
779
|
-
export interface CustomerUpdateSubscriptionInputParam {
|
|
780
|
-
vat_number?: string;
|
|
781
|
-
vat_number_prefix?: string;
|
|
782
|
-
registered_for_gst?: boolean;
|
|
783
|
-
/**
|
|
784
|
-
* @deprecated Please refer API docs to use other attributes
|
|
785
|
-
*/
|
|
786
|
-
taxability?: TaxabilityEnum;
|
|
787
|
-
}
|
|
788
|
-
export interface ShippingAddressUpdateSubscriptionInputParam {
|
|
789
|
-
line1?: string;
|
|
790
|
-
line2?: string;
|
|
791
|
-
line3?: string;
|
|
792
|
-
city?: string;
|
|
793
|
-
state_code?: string;
|
|
794
|
-
zip?: string;
|
|
795
|
-
country?: string;
|
|
796
|
-
validation_status?: ValidationStatusEnum;
|
|
797
|
-
}
|
|
798
|
-
export interface SubscriptionUpdateSubscriptionInputParam {
|
|
799
|
-
id: string;
|
|
800
|
-
plan_id?: string;
|
|
801
|
-
plan_quantity?: number;
|
|
802
|
-
plan_unit_price?: number;
|
|
803
|
-
setup_fee?: number;
|
|
804
|
-
plan_quantity_in_decimal?: string;
|
|
805
|
-
plan_unit_price_in_decimal?: string;
|
|
806
|
-
start_date?: number;
|
|
807
|
-
trial_end?: number;
|
|
808
|
-
/**
|
|
809
|
-
* @deprecated Please refer API docs to use other attributes
|
|
810
|
-
*/
|
|
811
|
-
coupon?: string;
|
|
812
|
-
auto_collection?: AutoCollectionEnum;
|
|
813
|
-
offline_payment_method?: OfflinePaymentMethodEnum;
|
|
814
|
-
free_period?: number;
|
|
815
|
-
free_period_unit?: FreePeriodUnitEnum;
|
|
816
|
-
trial_end_action?: TrialEndActionEnum;
|
|
817
|
-
}
|
|
818
|
-
|
|
819
|
-
export interface EventBasedAddonsUpdateSubscriptionInputParam {
|
|
820
|
-
id?: string;
|
|
821
|
-
quantity?: number;
|
|
822
|
-
unit_price?: number;
|
|
823
|
-
service_period_in_days?: number;
|
|
824
|
-
charge_on?: ChargeOnEnum;
|
|
825
|
-
on_event?: OnEventEnum;
|
|
826
|
-
charge_once?: boolean;
|
|
827
|
-
quantity_in_decimal?: string;
|
|
828
|
-
unit_price_in_decimal?: string;
|
|
829
|
-
}
|
|
830
|
-
export interface AddonsUpdateSubscriptionInputParam {
|
|
831
|
-
id?: string;
|
|
832
|
-
quantity?: number;
|
|
833
|
-
unit_price?: number;
|
|
834
|
-
billing_cycles?: number;
|
|
835
|
-
quantity_in_decimal?: string;
|
|
836
|
-
unit_price_in_decimal?: string;
|
|
837
|
-
trial_end?: number;
|
|
838
|
-
proration_type?: ProrationTypeEnum;
|
|
839
|
-
}
|
|
840
|
-
export interface BillingAddressUpdateSubscriptionForItemsInputParam {
|
|
841
|
-
line1?: string;
|
|
842
|
-
line2?: string;
|
|
843
|
-
line3?: string;
|
|
844
|
-
city?: string;
|
|
845
|
-
state_code?: string;
|
|
846
|
-
zip?: string;
|
|
847
|
-
country?: string;
|
|
848
|
-
validation_status?: ValidationStatusEnum;
|
|
849
|
-
}
|
|
850
|
-
export interface CustomerUpdateSubscriptionForItemsInputParam {
|
|
851
|
-
vat_number?: string;
|
|
852
|
-
vat_number_prefix?: string;
|
|
853
|
-
registered_for_gst?: boolean;
|
|
854
|
-
/**
|
|
855
|
-
* @deprecated Please refer API docs to use other attributes
|
|
856
|
-
*/
|
|
857
|
-
taxability?: TaxabilityEnum;
|
|
858
|
-
}
|
|
859
|
-
export interface ShippingAddressUpdateSubscriptionForItemsInputParam {
|
|
860
|
-
line1?: string;
|
|
861
|
-
line2?: string;
|
|
862
|
-
line3?: string;
|
|
863
|
-
city?: string;
|
|
864
|
-
state_code?: string;
|
|
865
|
-
zip?: string;
|
|
866
|
-
country?: string;
|
|
867
|
-
validation_status?: ValidationStatusEnum;
|
|
868
|
-
}
|
|
869
|
-
export interface SubscriptionUpdateSubscriptionForItemsInputParam {
|
|
870
|
-
id: string;
|
|
871
|
-
/**
|
|
872
|
-
* @deprecated Please refer API docs to use other attributes
|
|
873
|
-
*/
|
|
874
|
-
setup_fee?: number;
|
|
875
|
-
start_date?: number;
|
|
876
|
-
trial_end?: number;
|
|
877
|
-
/**
|
|
878
|
-
* @deprecated Please refer API docs to use other attributes
|
|
879
|
-
*/
|
|
880
|
-
coupon?: string;
|
|
881
|
-
auto_collection?: AutoCollectionEnum;
|
|
882
|
-
offline_payment_method?: OfflinePaymentMethodEnum;
|
|
883
|
-
free_period?: number;
|
|
884
|
-
free_period_unit?: FreePeriodUnitEnum;
|
|
885
|
-
trial_end_action?: TrialEndActionEnum;
|
|
886
|
-
}
|
|
887
|
-
|
|
888
|
-
export interface SubscriptionItemsUpdateSubscriptionForItemsInputParam {
|
|
889
|
-
item_price_id: string;
|
|
890
|
-
quantity?: number;
|
|
891
|
-
quantity_in_decimal?: string;
|
|
892
|
-
unit_price?: number;
|
|
893
|
-
unit_price_in_decimal?: string;
|
|
894
|
-
billing_cycles?: number;
|
|
895
|
-
trial_end?: number;
|
|
896
|
-
service_period_days?: number;
|
|
897
|
-
charge_on_event?: ChargeOnEventEnum;
|
|
898
|
-
charge_once?: boolean;
|
|
899
|
-
charge_on_option?: ChargeOnOptionEnum;
|
|
900
|
-
/**
|
|
901
|
-
* @deprecated Please refer API docs to use other attributes
|
|
902
|
-
*/
|
|
903
|
-
item_type?: ItemTypeEnum;
|
|
904
|
-
proration_type?: ProrationTypeEnum;
|
|
905
|
-
}
|
|
906
|
-
export interface DiscountsUpdateSubscriptionForItemsInputParam {
|
|
907
|
-
apply_on: ApplyOnEnum;
|
|
908
|
-
duration_type: DurationTypeEnum;
|
|
909
|
-
percentage?: number;
|
|
910
|
-
amount?: number;
|
|
911
|
-
period?: number;
|
|
912
|
-
period_unit?: PeriodUnitEnum;
|
|
913
|
-
included_in_mrr?: boolean;
|
|
914
|
-
item_price_id?: string;
|
|
915
|
-
operation_type: OperationTypeEnum;
|
|
916
|
-
id?: string;
|
|
917
|
-
}
|
|
918
|
-
export interface ItemTiersUpdateSubscriptionForItemsInputParam {
|
|
919
|
-
item_price_id?: string;
|
|
920
|
-
starting_unit?: number;
|
|
921
|
-
ending_unit?: number;
|
|
922
|
-
price?: number;
|
|
923
|
-
starting_unit_in_decimal?: string;
|
|
924
|
-
ending_unit_in_decimal?: string;
|
|
925
|
-
price_in_decimal?: string;
|
|
926
|
-
}
|
|
927
|
-
export interface FixedIntervalScheduleAdvanceInvoiceEstimateInputParam {
|
|
928
|
-
number_of_occurrences?: number;
|
|
929
|
-
days_before_renewal?: number;
|
|
930
|
-
end_schedule_on?: EndScheduleOnEnum;
|
|
931
|
-
end_date?: number;
|
|
932
|
-
}
|
|
933
|
-
|
|
934
|
-
export interface SpecificDatesScheduleAdvanceInvoiceEstimateInputParam {
|
|
935
|
-
terms_to_charge?: number;
|
|
936
|
-
date?: number;
|
|
937
|
-
}
|
|
938
|
-
export interface EventBasedAddonsCancelSubscriptionInputParam {
|
|
939
|
-
id?: string;
|
|
940
|
-
quantity?: number;
|
|
941
|
-
unit_price?: number;
|
|
942
|
-
service_period_in_days?: number;
|
|
943
|
-
}
|
|
944
|
-
export interface SubscriptionItemsCancelSubscriptionForItemsInputParam {
|
|
945
|
-
item_price_id?: string;
|
|
946
|
-
quantity?: number;
|
|
947
|
-
quantity_in_decimal?: string;
|
|
948
|
-
unit_price?: number;
|
|
949
|
-
unit_price_in_decimal?: string;
|
|
950
|
-
service_period_days?: number;
|
|
951
|
-
}
|
|
952
|
-
export interface SubscriptionPauseSubscriptionInputParam {
|
|
953
|
-
pause_date?: number;
|
|
954
|
-
resume_date?: number;
|
|
955
|
-
skip_billing_cycles?: number;
|
|
956
|
-
}
|
|
957
|
-
|
|
958
|
-
export interface SubscriptionResumeSubscriptionInputParam {
|
|
959
|
-
resume_date?: number;
|
|
960
|
-
}
|
|
961
|
-
|
|
962
|
-
export interface GiftGiftSubscriptionInputParam {
|
|
963
|
-
scheduled_at?: number;
|
|
964
|
-
auto_claim?: boolean;
|
|
965
|
-
no_expiry?: boolean;
|
|
966
|
-
claim_expiry_date?: number;
|
|
967
|
-
}
|
|
968
|
-
export interface GiftReceiverGiftSubscriptionInputParam {
|
|
969
|
-
customer_id: string;
|
|
970
|
-
first_name: string;
|
|
971
|
-
last_name: string;
|
|
972
|
-
email: string;
|
|
973
|
-
}
|
|
974
|
-
export interface GifterGiftSubscriptionInputParam {
|
|
975
|
-
customer_id: string;
|
|
976
|
-
signature: string;
|
|
977
|
-
note?: string;
|
|
978
|
-
payment_src_id?: string;
|
|
979
|
-
}
|
|
980
|
-
export interface ShippingAddressGiftSubscriptionInputParam {
|
|
981
|
-
first_name?: string;
|
|
982
|
-
last_name?: string;
|
|
983
|
-
email?: string;
|
|
984
|
-
company?: string;
|
|
985
|
-
phone?: string;
|
|
986
|
-
line1?: string;
|
|
987
|
-
line2?: string;
|
|
988
|
-
line3?: string;
|
|
989
|
-
city?: string;
|
|
990
|
-
state_code?: string;
|
|
991
|
-
state?: string;
|
|
992
|
-
zip?: string;
|
|
993
|
-
country?: string;
|
|
994
|
-
validation_status?: ValidationStatusEnum;
|
|
995
|
-
}
|
|
996
|
-
export interface PaymentIntentGiftSubscriptionInputParam {
|
|
997
|
-
id?: string;
|
|
998
|
-
gateway_account_id?: string;
|
|
999
|
-
gw_token?: string;
|
|
1000
|
-
payment_method_type?:
|
|
1001
|
-
| 'card'
|
|
1002
|
-
| 'ideal'
|
|
1003
|
-
| 'sofort'
|
|
1004
|
-
| 'bancontact'
|
|
1005
|
-
| 'google_pay'
|
|
1006
|
-
| 'dotpay'
|
|
1007
|
-
| 'giropay'
|
|
1008
|
-
| 'apple_pay'
|
|
1009
|
-
| 'upi'
|
|
1010
|
-
| 'netbanking_emandates'
|
|
1011
|
-
| 'paypal_express_checkout'
|
|
1012
|
-
| 'direct_debit'
|
|
1013
|
-
| 'boleto'
|
|
1014
|
-
| 'venmo'
|
|
1015
|
-
| 'amazon_payments'
|
|
1016
|
-
| 'pay_to'
|
|
1017
|
-
| 'faster_payments'
|
|
1018
|
-
| 'sepa_instant_transfer'
|
|
1019
|
-
| 'klarna_pay_now'
|
|
1020
|
-
| 'online_banking_poland';
|
|
1021
|
-
reference_id?: string;
|
|
1022
|
-
/**
|
|
1023
|
-
* @deprecated Please refer API docs to use other attributes
|
|
1024
|
-
*/
|
|
1025
|
-
gw_payment_method_id?: string;
|
|
1026
|
-
additional_information?: any;
|
|
1027
|
-
}
|
|
1028
|
-
export interface SubscriptionGiftSubscriptionInputParam {
|
|
1029
|
-
plan_id: string;
|
|
1030
|
-
plan_quantity?: number;
|
|
1031
|
-
plan_quantity_in_decimal?: string;
|
|
1032
|
-
}
|
|
1033
|
-
|
|
1034
|
-
export interface AddonsGiftSubscriptionInputParam {
|
|
1035
|
-
id?: string;
|
|
1036
|
-
quantity?: number;
|
|
1037
|
-
quantity_in_decimal?: string;
|
|
1038
|
-
}
|
|
1039
|
-
export interface GiftGiftSubscriptionForItemsInputParam {
|
|
1040
|
-
scheduled_at?: number;
|
|
1041
|
-
auto_claim?: boolean;
|
|
1042
|
-
no_expiry?: boolean;
|
|
1043
|
-
claim_expiry_date?: number;
|
|
1044
|
-
}
|
|
1045
|
-
export interface GiftReceiverGiftSubscriptionForItemsInputParam {
|
|
1046
|
-
customer_id: string;
|
|
1047
|
-
first_name: string;
|
|
1048
|
-
last_name: string;
|
|
1049
|
-
email: string;
|
|
1050
|
-
}
|
|
1051
|
-
export interface GifterGiftSubscriptionForItemsInputParam {
|
|
1052
|
-
customer_id: string;
|
|
1053
|
-
signature: string;
|
|
1054
|
-
note?: string;
|
|
1055
|
-
payment_src_id?: string;
|
|
1056
|
-
}
|
|
1057
|
-
export interface ShippingAddressGiftSubscriptionForItemsInputParam {
|
|
1058
|
-
first_name?: string;
|
|
1059
|
-
last_name?: string;
|
|
1060
|
-
email?: string;
|
|
1061
|
-
company?: string;
|
|
1062
|
-
phone?: string;
|
|
1063
|
-
line1?: string;
|
|
1064
|
-
line2?: string;
|
|
1065
|
-
line3?: string;
|
|
1066
|
-
city?: string;
|
|
1067
|
-
state_code?: string;
|
|
1068
|
-
state?: string;
|
|
1069
|
-
zip?: string;
|
|
1070
|
-
country?: string;
|
|
1071
|
-
validation_status?: ValidationStatusEnum;
|
|
1072
|
-
}
|
|
1073
|
-
export interface PaymentIntentGiftSubscriptionForItemsInputParam {
|
|
1074
|
-
id?: string;
|
|
1075
|
-
gateway_account_id?: string;
|
|
1076
|
-
gw_token?: string;
|
|
1077
|
-
payment_method_type?:
|
|
1078
|
-
| 'card'
|
|
1079
|
-
| 'ideal'
|
|
1080
|
-
| 'sofort'
|
|
1081
|
-
| 'bancontact'
|
|
1082
|
-
| 'google_pay'
|
|
1083
|
-
| 'dotpay'
|
|
1084
|
-
| 'giropay'
|
|
1085
|
-
| 'apple_pay'
|
|
1086
|
-
| 'upi'
|
|
1087
|
-
| 'netbanking_emandates'
|
|
1088
|
-
| 'paypal_express_checkout'
|
|
1089
|
-
| 'direct_debit'
|
|
1090
|
-
| 'boleto'
|
|
1091
|
-
| 'venmo'
|
|
1092
|
-
| 'amazon_payments'
|
|
1093
|
-
| 'pay_to'
|
|
1094
|
-
| 'faster_payments'
|
|
1095
|
-
| 'sepa_instant_transfer'
|
|
1096
|
-
| 'klarna_pay_now'
|
|
1097
|
-
| 'online_banking_poland';
|
|
1098
|
-
reference_id?: string;
|
|
1099
|
-
/**
|
|
1100
|
-
* @deprecated Please refer API docs to use other attributes
|
|
1101
|
-
*/
|
|
1102
|
-
gw_payment_method_id?: string;
|
|
1103
|
-
additional_information?: any;
|
|
1104
|
-
}
|
|
1105
|
-
|
|
1106
|
-
export interface SubscriptionItemsGiftSubscriptionForItemsInputParam {
|
|
1107
|
-
item_price_id?: string;
|
|
1108
|
-
quantity?: number;
|
|
1109
|
-
quantity_in_decimal?: string;
|
|
1110
|
-
}
|
|
1111
|
-
export interface InvoiceCreateInvoiceInputParam {
|
|
1112
|
-
customer_id?: string;
|
|
1113
|
-
subscription_id?: string;
|
|
1114
|
-
po_number?: string;
|
|
1115
|
-
}
|
|
1116
|
-
export interface ShippingAddressCreateInvoiceInputParam {
|
|
1117
|
-
first_name?: string;
|
|
1118
|
-
last_name?: string;
|
|
1119
|
-
email?: string;
|
|
1120
|
-
company?: string;
|
|
1121
|
-
phone?: string;
|
|
1122
|
-
line1?: string;
|
|
1123
|
-
line2?: string;
|
|
1124
|
-
line3?: string;
|
|
1125
|
-
city?: string;
|
|
1126
|
-
state_code?: string;
|
|
1127
|
-
state?: string;
|
|
1128
|
-
zip?: string;
|
|
1129
|
-
country?: string;
|
|
1130
|
-
validation_status?: ValidationStatusEnum;
|
|
1131
|
-
}
|
|
1132
|
-
|
|
1133
|
-
export interface ChargesCreateInvoiceInputParam {
|
|
1134
|
-
amount?: number;
|
|
1135
|
-
amount_in_decimal?: string;
|
|
1136
|
-
description?: string;
|
|
1137
|
-
taxable?: boolean;
|
|
1138
|
-
tax_profile_id?: string;
|
|
1139
|
-
avalara_tax_code?: string;
|
|
1140
|
-
hsn_code?: string;
|
|
1141
|
-
taxjar_product_code?: string;
|
|
1142
|
-
avalara_sale_type?: AvalaraSaleTypeEnum;
|
|
1143
|
-
avalara_transaction_type?: number;
|
|
1144
|
-
avalara_service_type?: number;
|
|
1145
|
-
date_from?: number;
|
|
1146
|
-
date_to?: number;
|
|
1147
|
-
}
|
|
1148
|
-
export interface AddonsCreateInvoiceInputParam {
|
|
1149
|
-
id?: string;
|
|
1150
|
-
quantity?: number;
|
|
1151
|
-
quantity_in_decimal?: string;
|
|
1152
|
-
unit_price?: number;
|
|
1153
|
-
unit_price_in_decimal?: string;
|
|
1154
|
-
date_from?: number;
|
|
1155
|
-
date_to?: number;
|
|
1156
|
-
}
|
|
1157
|
-
export interface TaxProvidersFieldsCreateInvoiceInputParam {
|
|
1158
|
-
provider_name?: string;
|
|
1159
|
-
field_id?: string;
|
|
1160
|
-
field_value?: string;
|
|
1161
|
-
}
|
|
1162
|
-
export interface NotesToRemoveCreateInvoiceInputParam {
|
|
1163
|
-
entity_type?: EntityTypeEnum;
|
|
1164
|
-
entity_id?: string;
|
|
1165
|
-
}
|
|
1166
|
-
export interface InvoiceCreateInvoiceForItemsInputParam {
|
|
1167
|
-
customer_id?: string;
|
|
1168
|
-
subscription_id?: string;
|
|
1169
|
-
po_number?: string;
|
|
1170
|
-
}
|
|
1171
|
-
export interface ShippingAddressCreateInvoiceForItemsInputParam {
|
|
1172
|
-
first_name?: string;
|
|
1173
|
-
last_name?: string;
|
|
1174
|
-
email?: string;
|
|
1175
|
-
company?: string;
|
|
1176
|
-
phone?: string;
|
|
1177
|
-
line1?: string;
|
|
1178
|
-
line2?: string;
|
|
1179
|
-
line3?: string;
|
|
1180
|
-
city?: string;
|
|
1181
|
-
state_code?: string;
|
|
1182
|
-
state?: string;
|
|
1183
|
-
zip?: string;
|
|
1184
|
-
country?: string;
|
|
1185
|
-
validation_status?: ValidationStatusEnum;
|
|
1186
|
-
}
|
|
1187
|
-
|
|
1188
|
-
export interface ChargesCreateInvoiceForItemsInputParam {
|
|
1189
|
-
amount?: number;
|
|
1190
|
-
amount_in_decimal?: string;
|
|
1191
|
-
description?: string;
|
|
1192
|
-
taxable?: boolean;
|
|
1193
|
-
tax_profile_id?: string;
|
|
1194
|
-
avalara_tax_code?: string;
|
|
1195
|
-
hsn_code?: string;
|
|
1196
|
-
taxjar_product_code?: string;
|
|
1197
|
-
avalara_sale_type?: AvalaraSaleTypeEnum;
|
|
1198
|
-
avalara_transaction_type?: number;
|
|
1199
|
-
avalara_service_type?: number;
|
|
1200
|
-
date_from?: number;
|
|
1201
|
-
date_to?: number;
|
|
1202
|
-
}
|
|
1203
|
-
export interface DiscountsCreateInvoiceForItemsInputParam {
|
|
1204
|
-
percentage?: number;
|
|
1205
|
-
amount?: number;
|
|
1206
|
-
apply_on: ApplyOnEnum;
|
|
1207
|
-
item_price_id?: string;
|
|
1208
|
-
}
|
|
1209
|
-
export interface ItemTiersCreateInvoiceForItemsInputParam {
|
|
1210
|
-
item_price_id?: string;
|
|
1211
|
-
starting_unit?: number;
|
|
1212
|
-
ending_unit?: number;
|
|
1213
|
-
price?: number;
|
|
1214
|
-
starting_unit_in_decimal?: string;
|
|
1215
|
-
ending_unit_in_decimal?: string;
|
|
1216
|
-
price_in_decimal?: string;
|
|
1217
|
-
}
|
|
1218
|
-
export interface ItemPricesCreateInvoiceForItemsInputParam {
|
|
1219
|
-
item_price_id?: string;
|
|
1220
|
-
quantity?: number;
|
|
1221
|
-
quantity_in_decimal?: string;
|
|
1222
|
-
unit_price?: number;
|
|
1223
|
-
unit_price_in_decimal?: string;
|
|
1224
|
-
date_from?: number;
|
|
1225
|
-
date_to?: number;
|
|
1226
|
-
}
|
|
1227
|
-
export interface TaxProvidersFieldsCreateInvoiceForItemsInputParam {
|
|
1228
|
-
provider_name?: string;
|
|
1229
|
-
field_id?: string;
|
|
1230
|
-
field_value?: string;
|
|
1231
|
-
}
|
|
1232
|
-
export interface NotesToRemoveCreateInvoiceForItemsInputParam {
|
|
1233
|
-
entity_type?: EntityTypeEnum;
|
|
1234
|
-
entity_id?: string;
|
|
1235
|
-
}
|
|
1236
|
-
}
|
|
1237
|
-
}
|