chargebee 3.0.1 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/CHANGELOG.md +65 -0
  2. package/cjs/environment.js +1 -1
  3. package/cjs/resources/api_endpoints.js +16 -0
  4. package/esm/environment.js +1 -1
  5. package/esm/resources/api_endpoints.js +16 -0
  6. package/package.json +1 -1
  7. package/types/core.d.ts +588 -0
  8. package/types/index.d.ts +172 -0
  9. package/types/resources/Address.d.ts +71 -0
  10. package/types/resources/AdvanceInvoiceSchedule.d.ts +29 -0
  11. package/types/resources/AttachedItem.d.ts +116 -0
  12. package/types/resources/Attribute.d.ts +9 -0
  13. package/types/resources/BusinessEntity.d.ts +64 -0
  14. package/types/resources/BusinessEntityTransfer.d.ts +15 -0
  15. package/types/resources/Card.d.ts +172 -0
  16. package/types/resources/Comment.d.ts +92 -0
  17. package/types/resources/Contact.d.ts +16 -0
  18. package/types/resources/ContractTerm.d.ts +19 -0
  19. package/types/resources/Coupon.d.ts +329 -0
  20. package/types/resources/CouponCode.d.ts +70 -0
  21. package/types/resources/CouponSet.d.ts +111 -0
  22. package/types/resources/CreditNote.d.ts +629 -0
  23. package/types/resources/CreditNoteEstimate.d.ts +143 -0
  24. package/types/resources/Currency.d.ts +91 -0
  25. package/types/resources/Customer.d.ts +964 -0
  26. package/types/resources/CustomerEntitlement.d.ts +36 -0
  27. package/types/resources/DifferentialPrice.d.ts +144 -0
  28. package/types/resources/Discount.d.ts +24 -0
  29. package/types/resources/Download.d.ts +10 -0
  30. package/types/resources/Entitlement.d.ts +66 -0
  31. package/types/resources/EntitlementOverride.d.ts +76 -0
  32. package/types/resources/Estimate.d.ts +1237 -0
  33. package/types/resources/Event.d.ts +81 -0
  34. package/types/resources/Export.d.ts +615 -0
  35. package/types/resources/Feature.d.ts +142 -0
  36. package/types/resources/GatewayErrorDetail.d.ts +20 -0
  37. package/types/resources/Gift.d.ts +296 -0
  38. package/types/resources/Hierarchy.d.ts +12 -0
  39. package/types/resources/HostedPage.d.ts +1112 -0
  40. package/types/resources/ImpactedItem.d.ts +20 -0
  41. package/types/resources/ImpactedItemPrice.d.ts +20 -0
  42. package/types/resources/ImpactedSubscription.d.ts +20 -0
  43. package/types/resources/InAppSubscription.d.ts +116 -0
  44. package/types/resources/Invoice.d.ts +1695 -0
  45. package/types/resources/InvoiceEstimate.d.ts +143 -0
  46. package/types/resources/Item.d.ts +208 -0
  47. package/types/resources/ItemEntitlement.d.ts +103 -0
  48. package/types/resources/ItemFamily.d.ts +93 -0
  49. package/types/resources/ItemPrice.d.ts +332 -0
  50. package/types/resources/Metadata.d.ts +8 -0
  51. package/types/resources/NonSubscription.d.ts +48 -0
  52. package/types/resources/OmnichannelSubscription.d.ts +75 -0
  53. package/types/resources/OmnichannelTransaction.d.ts +16 -0
  54. package/types/resources/Order.d.ts +586 -0
  55. package/types/resources/PaymentIntent.d.ts +178 -0
  56. package/types/resources/PaymentReferenceNumber.d.ts +11 -0
  57. package/types/resources/PaymentSchedule.d.ts +28 -0
  58. package/types/resources/PaymentScheduleEstimate.d.ts +25 -0
  59. package/types/resources/PaymentScheduleScheme.d.ts +67 -0
  60. package/types/resources/PaymentSource.d.ts +530 -0
  61. package/types/resources/PaymentVoucher.d.ts +107 -0
  62. package/types/resources/PortalSession.d.ts +88 -0
  63. package/types/resources/PriceVariant.d.ts +116 -0
  64. package/types/resources/PricingPageSession.d.ts +130 -0
  65. package/types/resources/PromotionalCredit.d.ts +111 -0
  66. package/types/resources/Purchase.d.ts +202 -0
  67. package/types/resources/Quote.d.ts +1467 -0
  68. package/types/resources/QuoteLineGroup.d.ts +136 -0
  69. package/types/resources/QuotedCharge.d.ts +56 -0
  70. package/types/resources/QuotedSubscription.d.ts +114 -0
  71. package/types/resources/Ramp.d.ts +260 -0
  72. package/types/resources/RecordedPurchase.d.ts +60 -0
  73. package/types/resources/ResourceMigration.d.ts +36 -0
  74. package/types/resources/SiteMigrationDetail.d.ts +46 -0
  75. package/types/resources/Subscription.d.ts +2447 -0
  76. package/types/resources/SubscriptionEntitlement.d.ts +79 -0
  77. package/types/resources/SubscriptionEstimate.d.ts +59 -0
  78. package/types/resources/TaxWithheld.d.ts +19 -0
  79. package/types/resources/ThirdPartyPaymentMethod.d.ts +11 -0
  80. package/types/resources/TimeMachine.d.ts +57 -0
  81. package/types/resources/Token.d.ts +19 -0
  82. package/types/resources/Transaction.d.ts +316 -0
  83. package/types/resources/UnbilledCharge.d.ts +209 -0
  84. package/types/resources/Usage.d.ts +113 -0
  85. package/types/resources/VirtualBankAccount.d.ts +125 -0
  86. package/types/resources/filter.d.ts +52 -0
@@ -0,0 +1,2447 @@
1
+ ///<reference path='./../core.d.ts'/>
2
+ ///<reference path='./../index.d.ts'/>
3
+ ///<reference path='./filter.d.ts'/>
4
+ declare module 'chargebee' {
5
+ export interface Subscription {
6
+ [key: string]: unknown;
7
+ id: string;
8
+ currency_code: string;
9
+ plan_id: string;
10
+ plan_quantity: number;
11
+ plan_unit_price?: number;
12
+ setup_fee?: number;
13
+ billing_period?: number;
14
+ billing_period_unit?: 'day' | 'week' | 'month' | 'year';
15
+ start_date?: number;
16
+ trial_end?: number;
17
+ remaining_billing_cycles?: number;
18
+ po_number?: string;
19
+ auto_collection?: AutoCollectionEnum;
20
+ plan_quantity_in_decimal?: string;
21
+ plan_unit_price_in_decimal?: string;
22
+ customer_id: string;
23
+ plan_amount?: number;
24
+ plan_free_quantity?: number;
25
+ status:
26
+ | 'future'
27
+ | 'in_trial'
28
+ | 'active'
29
+ | 'non_renewing'
30
+ | 'paused'
31
+ | 'cancelled'
32
+ | 'transferred';
33
+ trial_start?: number;
34
+ trial_end_action?: TrialEndActionEnum;
35
+ current_term_start?: number;
36
+ current_term_end?: number;
37
+ next_billing_at?: number;
38
+ created_at?: number;
39
+ started_at?: number;
40
+ activated_at?: number;
41
+ gift_id?: string;
42
+ contract_term_billing_cycle_on_renewal?: number;
43
+ override_relationship?: boolean;
44
+ pause_date?: number;
45
+ resume_date?: number;
46
+ cancelled_at?: number;
47
+ cancel_reason?:
48
+ | 'not_paid'
49
+ | 'no_card'
50
+ | 'fraud_review_failed'
51
+ | 'non_compliant_eu_customer'
52
+ | 'tax_calculation_failed'
53
+ | 'currency_incompatible_with_gateway'
54
+ | 'non_compliant_customer';
55
+ affiliate_token?: string;
56
+ created_from_ip?: string;
57
+ resource_version?: number;
58
+ updated_at?: number;
59
+ has_scheduled_advance_invoices: boolean;
60
+ has_scheduled_changes: boolean;
61
+ payment_source_id?: string;
62
+ plan_free_quantity_in_decimal?: string;
63
+ plan_amount_in_decimal?: string;
64
+ cancel_schedule_created_at?: number;
65
+ offline_payment_method?: OfflinePaymentMethodEnum;
66
+ channel?: ChannelEnum;
67
+ net_term_days?: number;
68
+ active_id?: string;
69
+ subscription_items?: Subscription.SubscriptionItem[];
70
+ item_tiers?: Subscription.ItemTier[];
71
+ charged_items?: Subscription.ChargedItem[];
72
+ due_invoices_count?: number;
73
+ due_since?: number;
74
+ total_dues?: number;
75
+ mrr?: number;
76
+ arr?: number;
77
+ exchange_rate?: number;
78
+ base_currency_code?: string;
79
+ addons?: Subscription.Addon[];
80
+ event_based_addons?: Subscription.EventBasedAddon[];
81
+ charged_event_based_addons?: Subscription.ChargedEventBasedAddon[];
82
+ coupon?: string;
83
+ coupons?: Subscription.Coupon[];
84
+ shipping_address?: Subscription.ShippingAddress;
85
+ referral_info?: Subscription.ReferralInfo;
86
+ invoice_notes?: string;
87
+ meta_data?: any;
88
+ metadata?: any;
89
+ deleted: boolean;
90
+ changes_scheduled_at?: number;
91
+ contract_term?: Subscription.ContractTerm;
92
+ cancel_reason_code?: string;
93
+ free_period?: number;
94
+ free_period_unit?: FreePeriodUnitEnum;
95
+ create_pending_invoices?: boolean;
96
+ auto_close_invoices?: boolean;
97
+ discounts?: Subscription.Discount[];
98
+ business_entity_id?: string;
99
+ }
100
+
101
+ export namespace Subscription {
102
+ export class SubscriptionResource {
103
+ create(
104
+ input: CreateInputParam,
105
+ headers?: ChargebeeRequestHeader,
106
+ ): Promise<ChargebeeResponse<CreateResponse>>;
107
+
108
+ createForCustomer(
109
+ customer_id: string,
110
+ input: CreateForCustomerInputParam,
111
+ headers?: ChargebeeRequestHeader,
112
+ ): Promise<ChargebeeResponse<CreateForCustomerResponse>>;
113
+
114
+ createWithItems(
115
+ customer_id: string,
116
+ input: CreateWithItemsInputParam,
117
+ headers?: ChargebeeRequestHeader,
118
+ ): Promise<ChargebeeResponse<CreateWithItemsResponse>>;
119
+
120
+ list(
121
+ input?: ListInputParam,
122
+ headers?: ChargebeeRequestHeader,
123
+ ): Promise<ChargebeeResponse<ListResponse>>;
124
+
125
+ subscriptionsForCustomer(
126
+ customer_id: string,
127
+ input?: SubscriptionsForCustomerInputParam,
128
+ headers?: ChargebeeRequestHeader,
129
+ ): Promise<ChargebeeResponse<SubscriptionsForCustomerResponse>>;
130
+
131
+ contractTermsForSubscription(
132
+ subscription_id: string,
133
+ input?: ContractTermsForSubscriptionInputParam,
134
+ headers?: ChargebeeRequestHeader,
135
+ ): Promise<ChargebeeResponse<ContractTermsForSubscriptionResponse>>;
136
+
137
+ listDiscounts(
138
+ subscription_id: string,
139
+ input?: ListDiscountsInputParam,
140
+ headers?: ChargebeeRequestHeader,
141
+ ): Promise<ChargebeeResponse<ListDiscountsResponse>>;
142
+
143
+ retrieve(
144
+ subscription_id: string,
145
+ headers?: ChargebeeRequestHeader,
146
+ ): Promise<ChargebeeResponse<RetrieveResponse>>;
147
+
148
+ retrieveWithScheduledChanges(
149
+ subscription_id: string,
150
+ headers?: ChargebeeRequestHeader,
151
+ ): Promise<ChargebeeResponse<RetrieveWithScheduledChangesResponse>>;
152
+
153
+ removeScheduledChanges(
154
+ subscription_id: string,
155
+ headers?: ChargebeeRequestHeader,
156
+ ): Promise<ChargebeeResponse<RemoveScheduledChangesResponse>>;
157
+
158
+ removeScheduledCancellation(
159
+ subscription_id: string,
160
+ input?: RemoveScheduledCancellationInputParam,
161
+ headers?: ChargebeeRequestHeader,
162
+ ): Promise<ChargebeeResponse<RemoveScheduledCancellationResponse>>;
163
+
164
+ removeCoupons(
165
+ subscription_id: string,
166
+ input?: RemoveCouponsInputParam,
167
+ headers?: ChargebeeRequestHeader,
168
+ ): Promise<ChargebeeResponse<RemoveCouponsResponse>>;
169
+
170
+ update(
171
+ subscription_id: string,
172
+ input?: UpdateInputParam,
173
+ headers?: ChargebeeRequestHeader,
174
+ ): Promise<ChargebeeResponse<UpdateResponse>>;
175
+
176
+ updateForItems(
177
+ subscription_id: string,
178
+ input: UpdateForItemsInputParam,
179
+ headers?: ChargebeeRequestHeader,
180
+ ): Promise<ChargebeeResponse<UpdateForItemsResponse>>;
181
+
182
+ changeTermEnd(
183
+ subscription_id: string,
184
+ input: ChangeTermEndInputParam,
185
+ headers?: ChargebeeRequestHeader,
186
+ ): Promise<ChargebeeResponse<ChangeTermEndResponse>>;
187
+
188
+ reactivate(
189
+ subscription_id: string,
190
+ input?: ReactivateInputParam,
191
+ headers?: ChargebeeRequestHeader,
192
+ ): Promise<ChargebeeResponse<ReactivateResponse>>;
193
+
194
+ addChargeAtTermEnd(
195
+ subscription_id: string,
196
+ input: AddChargeAtTermEndInputParam,
197
+ headers?: ChargebeeRequestHeader,
198
+ ): Promise<ChargebeeResponse<AddChargeAtTermEndResponse>>;
199
+
200
+ chargeAddonAtTermEnd(
201
+ subscription_id: string,
202
+ input: ChargeAddonAtTermEndInputParam,
203
+ headers?: ChargebeeRequestHeader,
204
+ ): Promise<ChargebeeResponse<ChargeAddonAtTermEndResponse>>;
205
+
206
+ chargeFutureRenewals(
207
+ subscription_id: string,
208
+ input?: ChargeFutureRenewalsInputParam,
209
+ headers?: ChargebeeRequestHeader,
210
+ ): Promise<ChargebeeResponse<ChargeFutureRenewalsResponse>>;
211
+
212
+ editAdvanceInvoiceSchedule(
213
+ subscription_id: string,
214
+ input?: EditAdvanceInvoiceScheduleInputParam,
215
+ headers?: ChargebeeRequestHeader,
216
+ ): Promise<ChargebeeResponse<EditAdvanceInvoiceScheduleResponse>>;
217
+
218
+ retrieveAdvanceInvoiceSchedule(
219
+ subscription_id: string,
220
+ headers?: ChargebeeRequestHeader,
221
+ ): Promise<ChargebeeResponse<RetrieveAdvanceInvoiceScheduleResponse>>;
222
+
223
+ removeAdvanceInvoiceSchedule(
224
+ subscription_id: string,
225
+ input?: RemoveAdvanceInvoiceScheduleInputParam,
226
+ headers?: ChargebeeRequestHeader,
227
+ ): Promise<ChargebeeResponse<RemoveAdvanceInvoiceScheduleResponse>>;
228
+
229
+ regenerateInvoice(
230
+ subscription_id: string,
231
+ input?: RegenerateInvoiceInputParam,
232
+ headers?: ChargebeeRequestHeader,
233
+ ): Promise<ChargebeeResponse<RegenerateInvoiceResponse>>;
234
+
235
+ importSubscription(
236
+ input: ImportSubscriptionInputParam,
237
+ headers?: ChargebeeRequestHeader,
238
+ ): Promise<ChargebeeResponse<ImportSubscriptionResponse>>;
239
+
240
+ importForCustomer(
241
+ customer_id: string,
242
+ input: ImportForCustomerInputParam,
243
+ headers?: ChargebeeRequestHeader,
244
+ ): Promise<ChargebeeResponse<ImportForCustomerResponse>>;
245
+
246
+ importContractTerm(
247
+ subscription_id: string,
248
+ input?: ImportContractTermInputParam,
249
+ headers?: ChargebeeRequestHeader,
250
+ ): Promise<ChargebeeResponse<ImportContractTermResponse>>;
251
+
252
+ importUnbilledCharges(
253
+ subscription_id: string,
254
+ input: ImportUnbilledChargesInputParam,
255
+ headers?: ChargebeeRequestHeader,
256
+ ): Promise<ChargebeeResponse<ImportUnbilledChargesResponse>>;
257
+
258
+ importForItems(
259
+ customer_id: string,
260
+ input: ImportForItemsInputParam,
261
+ headers?: ChargebeeRequestHeader,
262
+ ): Promise<ChargebeeResponse<ImportForItemsResponse>>;
263
+
264
+ overrideBillingProfile(
265
+ subscription_id: string,
266
+ input?: OverrideBillingProfileInputParam,
267
+ headers?: ChargebeeRequestHeader,
268
+ ): Promise<ChargebeeResponse<OverrideBillingProfileResponse>>;
269
+
270
+ delete(
271
+ subscription_id: string,
272
+ headers?: ChargebeeRequestHeader,
273
+ ): Promise<ChargebeeResponse<DeleteResponse>>;
274
+
275
+ pause(
276
+ subscription_id: string,
277
+ input?: PauseInputParam,
278
+ headers?: ChargebeeRequestHeader,
279
+ ): Promise<ChargebeeResponse<PauseResponse>>;
280
+
281
+ cancel(
282
+ subscription_id: string,
283
+ input?: CancelInputParam,
284
+ headers?: ChargebeeRequestHeader,
285
+ ): Promise<ChargebeeResponse<CancelResponse>>;
286
+
287
+ cancelForItems(
288
+ subscription_id: string,
289
+ input?: CancelForItemsInputParam,
290
+ headers?: ChargebeeRequestHeader,
291
+ ): Promise<ChargebeeResponse<CancelForItemsResponse>>;
292
+
293
+ resume(
294
+ subscription_id: string,
295
+ input?: ResumeInputParam,
296
+ headers?: ChargebeeRequestHeader,
297
+ ): Promise<ChargebeeResponse<ResumeResponse>>;
298
+
299
+ removeScheduledPause(
300
+ subscription_id: string,
301
+ headers?: ChargebeeRequestHeader,
302
+ ): Promise<ChargebeeResponse<RemoveScheduledPauseResponse>>;
303
+
304
+ removeScheduledResumption(
305
+ subscription_id: string,
306
+ headers?: ChargebeeRequestHeader,
307
+ ): Promise<ChargebeeResponse<RemoveScheduledResumptionResponse>>;
308
+
309
+ move(
310
+ subscription_id: string,
311
+ input: MoveInputParam,
312
+ headers?: ChargebeeRequestHeader,
313
+ ): Promise<ChargebeeResponse<MoveResponse>>;
314
+ }
315
+
316
+ export interface CreateResponse {
317
+ subscription: Subscription;
318
+ customer: Customer;
319
+ card?: Card;
320
+ invoice?: Invoice;
321
+ unbilled_charges?: UnbilledCharge[];
322
+ }
323
+
324
+ export interface CreateForCustomerResponse {
325
+ subscription: Subscription;
326
+ customer: Customer;
327
+ card?: Card;
328
+ invoice?: Invoice;
329
+ unbilled_charges?: UnbilledCharge[];
330
+ }
331
+
332
+ export interface CreateWithItemsResponse {
333
+ subscription: Subscription;
334
+ customer: Customer;
335
+ card?: Card;
336
+ invoice?: Invoice;
337
+ unbilled_charges?: UnbilledCharge[];
338
+ }
339
+
340
+ export interface ListResponse {
341
+ list: { subscription: Subscription; customer: Customer; card?: Card }[];
342
+ next_offset?: string;
343
+ }
344
+
345
+ export interface SubscriptionsForCustomerResponse {
346
+ list: { subscription: Subscription }[];
347
+ next_offset?: string;
348
+ }
349
+
350
+ export interface ContractTermsForSubscriptionResponse {
351
+ list: { contract_term: ContractTerm }[];
352
+ next_offset?: string;
353
+ }
354
+
355
+ export interface ListDiscountsResponse {
356
+ list: { discount: Discount }[];
357
+ next_offset?: string;
358
+ }
359
+
360
+ export interface RetrieveResponse {
361
+ subscription: Subscription;
362
+ customer: Customer;
363
+ card?: Card;
364
+ }
365
+
366
+ export interface RetrieveWithScheduledChangesResponse {
367
+ subscription: Subscription;
368
+ customer: Customer;
369
+ card?: Card;
370
+ }
371
+
372
+ export interface RemoveScheduledChangesResponse {
373
+ subscription: Subscription;
374
+ customer: Customer;
375
+ card?: Card;
376
+ credit_notes?: CreditNote[];
377
+ }
378
+
379
+ export interface RemoveScheduledCancellationResponse {
380
+ subscription: Subscription;
381
+ customer: Customer;
382
+ card?: Card;
383
+ }
384
+
385
+ export interface RemoveCouponsResponse {
386
+ subscription: Subscription;
387
+ customer: Customer;
388
+ card?: Card;
389
+ }
390
+
391
+ export interface UpdateResponse {
392
+ subscription: Subscription;
393
+ customer: Customer;
394
+ card?: Card;
395
+ invoice?: Invoice;
396
+ unbilled_charges?: UnbilledCharge[];
397
+ credit_notes?: CreditNote[];
398
+ }
399
+
400
+ export interface UpdateForItemsResponse {
401
+ subscription: Subscription;
402
+ customer: Customer;
403
+ card?: Card;
404
+ invoice?: Invoice;
405
+ unbilled_charges?: UnbilledCharge[];
406
+ credit_notes?: CreditNote[];
407
+ }
408
+
409
+ export interface ChangeTermEndResponse {
410
+ subscription: Subscription;
411
+ customer: Customer;
412
+ card?: Card;
413
+ invoice?: Invoice;
414
+ unbilled_charges?: UnbilledCharge[];
415
+ credit_notes?: CreditNote[];
416
+ }
417
+
418
+ export interface ReactivateResponse {
419
+ subscription: Subscription;
420
+ customer: Customer;
421
+ card?: Card;
422
+ invoice?: Invoice;
423
+ unbilled_charges?: UnbilledCharge[];
424
+ }
425
+
426
+ export interface AddChargeAtTermEndResponse {
427
+ estimate: Estimate;
428
+ }
429
+
430
+ export interface ChargeAddonAtTermEndResponse {
431
+ estimate: Estimate;
432
+ }
433
+
434
+ export interface ChargeFutureRenewalsResponse {
435
+ subscription: Subscription;
436
+ customer: Customer;
437
+ card?: Card;
438
+ invoice?: Invoice;
439
+ advance_invoice_schedules?: AdvanceInvoiceSchedule[];
440
+ }
441
+
442
+ export interface EditAdvanceInvoiceScheduleResponse {
443
+ advance_invoice_schedules: AdvanceInvoiceSchedule[];
444
+ }
445
+
446
+ export interface RetrieveAdvanceInvoiceScheduleResponse {
447
+ advance_invoice_schedules: AdvanceInvoiceSchedule[];
448
+ }
449
+
450
+ export interface RemoveAdvanceInvoiceScheduleResponse {
451
+ subscription: Subscription;
452
+ advance_invoice_schedules?: AdvanceInvoiceSchedule[];
453
+ }
454
+
455
+ export interface RegenerateInvoiceResponse {
456
+ invoice?: Invoice;
457
+ unbilled_charges?: UnbilledCharge[];
458
+ }
459
+
460
+ export interface ImportSubscriptionResponse {
461
+ subscription: Subscription;
462
+ customer: Customer;
463
+ card?: Card;
464
+ invoice?: Invoice;
465
+ }
466
+
467
+ export interface ImportForCustomerResponse {
468
+ subscription: Subscription;
469
+ customer: Customer;
470
+ card?: Card;
471
+ invoice?: Invoice;
472
+ }
473
+
474
+ export interface ImportContractTermResponse {
475
+ contract_term: ContractTerm;
476
+ }
477
+
478
+ export interface ImportUnbilledChargesResponse {
479
+ unbilled_charges: UnbilledCharge[];
480
+ }
481
+
482
+ export interface ImportForItemsResponse {
483
+ subscription: Subscription;
484
+ customer: Customer;
485
+ card?: Card;
486
+ invoice?: Invoice;
487
+ }
488
+
489
+ export interface OverrideBillingProfileResponse {
490
+ subscription: Subscription;
491
+ payment_source?: PaymentSource;
492
+ }
493
+
494
+ export interface DeleteResponse {
495
+ subscription: Subscription;
496
+ customer: Customer;
497
+ card?: Card;
498
+ }
499
+
500
+ export interface PauseResponse {
501
+ subscription: Subscription;
502
+ customer: Customer;
503
+ card?: Card;
504
+ invoice?: Invoice;
505
+ unbilled_charges?: UnbilledCharge[];
506
+ credit_notes?: CreditNote[];
507
+ }
508
+
509
+ export interface CancelResponse {
510
+ subscription: Subscription;
511
+ customer: Customer;
512
+ card?: Card;
513
+ invoice?: Invoice;
514
+ unbilled_charges?: UnbilledCharge[];
515
+ credit_notes?: CreditNote[];
516
+ }
517
+
518
+ export interface CancelForItemsResponse {
519
+ subscription: Subscription;
520
+ customer: Customer;
521
+ card?: Card;
522
+ invoice?: Invoice;
523
+ unbilled_charges?: UnbilledCharge[];
524
+ credit_notes?: CreditNote[];
525
+ }
526
+
527
+ export interface ResumeResponse {
528
+ subscription: Subscription;
529
+ customer: Customer;
530
+ card?: Card;
531
+ invoice?: Invoice;
532
+ unbilled_charges?: UnbilledCharge[];
533
+ }
534
+
535
+ export interface RemoveScheduledPauseResponse {
536
+ subscription: Subscription;
537
+ customer: Customer;
538
+ card?: Card;
539
+ }
540
+
541
+ export interface RemoveScheduledResumptionResponse {
542
+ subscription: Subscription;
543
+ customer: Customer;
544
+ card?: Card;
545
+ }
546
+
547
+ export interface MoveResponse {
548
+ subscription: Subscription;
549
+ }
550
+
551
+ export interface SubscriptionItem {
552
+ item_price_id: string;
553
+ item_type: 'plan' | 'addon' | 'charge';
554
+ quantity?: number;
555
+ quantity_in_decimal?: string;
556
+ metered_quantity?: string;
557
+ last_calculated_at?: number;
558
+ unit_price?: number;
559
+ unit_price_in_decimal?: string;
560
+ amount?: number;
561
+ amount_in_decimal?: string;
562
+ billing_period?: number;
563
+ billing_period_unit?: 'day' | 'week' | 'month' | 'year';
564
+ free_quantity?: number;
565
+ free_quantity_in_decimal?: string;
566
+ trial_end?: number;
567
+ billing_cycles?: number;
568
+ service_period_days?: number;
569
+ charge_on_event?:
570
+ | 'subscription_creation'
571
+ | 'subscription_trial_start'
572
+ | 'plan_activation'
573
+ | 'subscription_activation'
574
+ | 'contract_termination';
575
+ charge_once?: boolean;
576
+ charge_on_option?: 'immediately' | 'on_event';
577
+ proration_type?: 'full_term' | 'partial_term' | 'none';
578
+ usage_accumulation_reset_frequency?:
579
+ | 'never'
580
+ | 'subscription_billing_frequency';
581
+ }
582
+ export interface ItemTier {
583
+ item_price_id: string;
584
+ starting_unit: number;
585
+ ending_unit?: number;
586
+ price: number;
587
+ starting_unit_in_decimal?: string;
588
+ ending_unit_in_decimal?: string;
589
+ price_in_decimal?: string;
590
+ index: number;
591
+ }
592
+ export interface ChargedItem {
593
+ item_price_id: string;
594
+ last_charged_at: number;
595
+ }
596
+ export interface Addon {
597
+ id: string;
598
+ quantity?: number;
599
+ unit_price?: number;
600
+ amount?: number;
601
+ trial_end?: number;
602
+ remaining_billing_cycles?: number;
603
+ quantity_in_decimal?: string;
604
+ unit_price_in_decimal?: string;
605
+ amount_in_decimal?: string;
606
+ proration_type?: 'full_term' | 'partial_term' | 'none';
607
+ }
608
+ export interface EventBasedAddon {
609
+ id: string;
610
+ quantity: number;
611
+ unit_price: number;
612
+ service_period_in_days?: number;
613
+ on_event:
614
+ | 'subscription_creation'
615
+ | 'subscription_trial_start'
616
+ | 'plan_activation'
617
+ | 'subscription_activation'
618
+ | 'contract_termination';
619
+ charge_once: boolean;
620
+ quantity_in_decimal?: string;
621
+ unit_price_in_decimal?: string;
622
+ }
623
+ export interface ChargedEventBasedAddon {
624
+ id: string;
625
+ last_charged_at: number;
626
+ }
627
+ export interface Coupon {
628
+ coupon_id: string;
629
+ apply_till?: number;
630
+ applied_count: number;
631
+ coupon_code?: string;
632
+ }
633
+ export interface ShippingAddress {
634
+ first_name?: string;
635
+ last_name?: string;
636
+ email?: string;
637
+ company?: string;
638
+ phone?: string;
639
+ line1?: string;
640
+ line2?: string;
641
+ line3?: string;
642
+ city?: string;
643
+ state_code?: string;
644
+ state?: string;
645
+ country?: string;
646
+ zip?: string;
647
+ validation_status?: ValidationStatusEnum;
648
+ index: number;
649
+ }
650
+ export interface ReferralInfo {
651
+ referral_code?: string;
652
+ coupon_code?: string;
653
+ referrer_id?: string;
654
+ external_reference_id?: string;
655
+ reward_status?: 'pending' | 'paid' | 'invalid';
656
+ referral_system?: ReferralSystemEnum;
657
+ account_id: string;
658
+ campaign_id: string;
659
+ external_campaign_id?: string;
660
+ friend_offer_type?: FriendOfferTypeEnum;
661
+ referrer_reward_type?: ReferrerRewardTypeEnum;
662
+ notify_referral_system?: NotifyReferralSystemEnum;
663
+ destination_url?: string;
664
+ post_purchase_widget_enabled: boolean;
665
+ }
666
+ export interface ContractTerm {
667
+ id: string;
668
+ status: 'active' | 'completed' | 'cancelled' | 'terminated';
669
+ contract_start: number;
670
+ contract_end: number;
671
+ billing_cycle: number;
672
+ action_at_term_end: 'renew' | 'evergreen' | 'cancel' | 'renew_once';
673
+ total_contract_value: number;
674
+ total_contract_value_before_tax: number;
675
+ cancellation_cutoff_period?: number;
676
+ created_at: number;
677
+ subscription_id: string;
678
+ remaining_billing_cycles?: number;
679
+ }
680
+ export interface Discount {
681
+ id: string;
682
+ invoice_name?: string;
683
+ type: 'fixed_amount' | 'percentage';
684
+ percentage?: number;
685
+ amount?: number;
686
+ currency_code?: string;
687
+ duration_type: 'one_time' | 'forever' | 'limited_period';
688
+ period?: number;
689
+ period_unit?: 'day' | 'week' | 'month' | 'year';
690
+ included_in_mrr: boolean;
691
+ apply_on: 'invoice_amount' | 'specific_item_price';
692
+ item_price_id?: string;
693
+ created_at: number;
694
+ apply_till?: number;
695
+ applied_count?: number;
696
+ coupon_id: string;
697
+ index: number;
698
+ }
699
+ // REQUEST PARAMS
700
+ //---------------
701
+
702
+ export interface CreateInputParam {
703
+ id?: string;
704
+ plan_id: string;
705
+ plan_quantity?: number;
706
+ plan_quantity_in_decimal?: string;
707
+ plan_unit_price?: number;
708
+ plan_unit_price_in_decimal?: string;
709
+ setup_fee?: number;
710
+ trial_end?: number;
711
+ billing_cycles?: number;
712
+ mandatory_addons_to_remove?: string[];
713
+ start_date?: number /**
714
+ * @deprecated Please refer API docs to use other attributes
715
+ */;
716
+
717
+ coupon?: string;
718
+ auto_collection?: AutoCollectionEnum;
719
+ terms_to_charge?: number;
720
+ billing_alignment_mode?: BillingAlignmentModeEnum;
721
+ offline_payment_method?: OfflinePaymentMethodEnum;
722
+ po_number?: string;
723
+ coupon_ids?: string[];
724
+ token_id?: string;
725
+ affiliate_token?: string /**
726
+ * @deprecated Please refer API docs to use other attributes
727
+ */;
728
+
729
+ created_from_ip?: string;
730
+ invoice_notes?: string;
731
+ invoice_date?: number;
732
+ meta_data?: any;
733
+ invoice_immediately?: boolean;
734
+ free_period?: number;
735
+ free_period_unit?: FreePeriodUnitEnum;
736
+ contract_term_billing_cycle_on_renewal?: number;
737
+ trial_end_action?: TrialEndActionEnum;
738
+ client_profile_id?: string;
739
+ payment_initiator?: PaymentInitiatorEnum;
740
+ customer?: CustomerCreateInputParam;
741
+ card?: CardCreateInputParam;
742
+ bank_account?: BankAccountCreateInputParam;
743
+ payment_method?: PaymentMethodCreateInputParam;
744
+ payment_intent?: PaymentIntentCreateInputParam;
745
+ billing_address?: BillingAddressCreateInputParam;
746
+ shipping_address?: ShippingAddressCreateInputParam;
747
+ statement_descriptor?: StatementDescriptorCreateInputParam;
748
+ contract_term?: ContractTermCreateInputParam;
749
+ entity_identifiers?: EntityIdentifiersCreateInputParam[];
750
+ tax_providers_fields?: TaxProvidersFieldsCreateInputParam[];
751
+ addons?: AddonsCreateInputParam[];
752
+ event_based_addons?: EventBasedAddonsCreateInputParam[];
753
+ coupons?: CouponsCreateInputParam[];
754
+ [key: `cf_${string}`]: unknown;
755
+ }
756
+ export interface CreateForCustomerInputParam {
757
+ id?: string;
758
+ plan_id: string;
759
+ plan_quantity?: number;
760
+ plan_quantity_in_decimal?: string;
761
+ plan_unit_price?: number;
762
+ plan_unit_price_in_decimal?: string;
763
+ setup_fee?: number;
764
+ trial_end?: number;
765
+ billing_cycles?: number;
766
+ mandatory_addons_to_remove?: string[];
767
+ start_date?: number /**
768
+ * @deprecated Please refer API docs to use other attributes
769
+ */;
770
+
771
+ coupon?: string;
772
+ auto_collection?: AutoCollectionEnum;
773
+ terms_to_charge?: number;
774
+ billing_alignment_mode?: BillingAlignmentModeEnum;
775
+ offline_payment_method?: OfflinePaymentMethodEnum;
776
+ po_number?: string;
777
+ coupon_ids?: string[];
778
+ payment_source_id?: string;
779
+ override_relationship?: boolean;
780
+ invoice_notes?: string;
781
+ invoice_date?: number;
782
+ meta_data?: any;
783
+ invoice_immediately?: boolean;
784
+ replace_primary_payment_source?: boolean;
785
+ free_period?: number;
786
+ free_period_unit?: FreePeriodUnitEnum;
787
+ contract_term_billing_cycle_on_renewal?: number;
788
+ trial_end_action?: TrialEndActionEnum;
789
+ payment_initiator?: PaymentInitiatorEnum;
790
+ shipping_address?: ShippingAddressCreateForCustomerInputParam;
791
+ statement_descriptor?: StatementDescriptorCreateForCustomerInputParam;
792
+ payment_intent?: PaymentIntentCreateForCustomerInputParam;
793
+ contract_term?: ContractTermCreateForCustomerInputParam;
794
+ addons?: AddonsCreateForCustomerInputParam[];
795
+ event_based_addons?: EventBasedAddonsCreateForCustomerInputParam[];
796
+ coupons?: CouponsCreateForCustomerInputParam[];
797
+ [key: `cf_${string}`]: unknown;
798
+ }
799
+ export interface CreateWithItemsInputParam {
800
+ id?: string;
801
+ business_entity_id?: string;
802
+ trial_end?: number;
803
+ billing_cycles?: number /**
804
+ * @deprecated Please refer API docs to use other attributes
805
+ */;
806
+
807
+ setup_fee?: number;
808
+ mandatory_items_to_remove?: string[];
809
+ net_term_days?: number;
810
+ start_date?: number /**
811
+ * @deprecated Please refer API docs to use other attributes
812
+ */;
813
+
814
+ coupon?: string;
815
+ auto_collection?: AutoCollectionEnum;
816
+ terms_to_charge?: number;
817
+ billing_alignment_mode?: BillingAlignmentModeEnum;
818
+ po_number?: string;
819
+ coupon_ids?: string[];
820
+ payment_source_id?: string;
821
+ override_relationship?: boolean;
822
+ invoice_notes?: string;
823
+ invoice_date?: number;
824
+ meta_data?: any;
825
+ invoice_immediately?: boolean;
826
+ replace_primary_payment_source?: boolean;
827
+ free_period?: number;
828
+ free_period_unit?: FreePeriodUnitEnum;
829
+ contract_term_billing_cycle_on_renewal?: number;
830
+ create_pending_invoices?: boolean;
831
+ auto_close_invoices?: boolean;
832
+ first_invoice_pending?: boolean;
833
+ trial_end_action?: TrialEndActionEnum;
834
+ payment_initiator?: PaymentInitiatorEnum;
835
+ shipping_address?: ShippingAddressCreateWithItemsInputParam;
836
+ statement_descriptor?: StatementDescriptorCreateWithItemsInputParam;
837
+ payment_intent?: PaymentIntentCreateWithItemsInputParam;
838
+ contract_term?: ContractTermCreateWithItemsInputParam;
839
+ subscription_items?: SubscriptionItemsCreateWithItemsInputParam[];
840
+ discounts?: DiscountsCreateWithItemsInputParam[];
841
+ item_tiers?: ItemTiersCreateWithItemsInputParam[];
842
+ coupons?: CouponsCreateWithItemsInputParam[];
843
+ [key: `cf_${string}`]: unknown;
844
+ }
845
+ export interface ListInputParam {
846
+ limit?: number;
847
+ offset?: string;
848
+ include_deleted?: boolean;
849
+ id?: filter.String;
850
+ customer_id?: filter.String;
851
+ plan_id?: filter.String;
852
+ item_id?: filter.String;
853
+ item_price_id?: filter.String;
854
+ status?: filter.Enum;
855
+ cancel_reason?: filter.Enum;
856
+ cancel_reason_code?: filter.String;
857
+ remaining_billing_cycles?: filter.Number;
858
+ created_at?: filter.Timestamp;
859
+ activated_at?: filter.Timestamp;
860
+ next_billing_at?: filter.Timestamp;
861
+ cancelled_at?: filter.Timestamp;
862
+ has_scheduled_changes?: filter.Boolean;
863
+ updated_at?: filter.Timestamp;
864
+ offline_payment_method?: filter.Enum;
865
+ auto_close_invoices?: filter.Boolean;
866
+ override_relationship?: filter.Boolean;
867
+ business_entity_id?: filter.String;
868
+ channel?: filter.Enum;
869
+ 'sort_by[asc]'?: string;
870
+ 'sort_by[desc]'?: string;
871
+ [key: `cf_${string}`]: unknown;
872
+ }
873
+ export interface SubscriptionsForCustomerInputParam {
874
+ limit?: number;
875
+ offset?: string;
876
+ }
877
+ export interface ContractTermsForSubscriptionInputParam {
878
+ limit?: number;
879
+ offset?: string;
880
+ }
881
+ export interface ListDiscountsInputParam {
882
+ limit?: number;
883
+ offset?: string;
884
+ }
885
+ export interface RemoveScheduledCancellationInputParam {
886
+ billing_cycles?: number;
887
+ }
888
+ export interface RemoveCouponsInputParam {
889
+ coupon_ids?: string[];
890
+ }
891
+ export interface UpdateInputParam {
892
+ plan_id?: string;
893
+ plan_quantity?: number;
894
+ plan_unit_price?: number;
895
+ setup_fee?: number;
896
+ replace_addon_list?: boolean;
897
+ mandatory_addons_to_remove?: string[];
898
+ plan_quantity_in_decimal?: string;
899
+ plan_unit_price_in_decimal?: string;
900
+ invoice_date?: number;
901
+ start_date?: number;
902
+ trial_end?: number;
903
+ billing_cycles?: number /**
904
+ * @deprecated Please refer API docs to use other attributes
905
+ */;
906
+
907
+ coupon?: string;
908
+ terms_to_charge?: number;
909
+ reactivate_from?: number;
910
+ billing_alignment_mode?: BillingAlignmentModeEnum;
911
+ auto_collection?: AutoCollectionEnum;
912
+ offline_payment_method?: OfflinePaymentMethodEnum;
913
+ po_number?: string;
914
+ coupon_ids?: string[];
915
+ replace_coupon_list?: boolean;
916
+ prorate?: boolean;
917
+ end_of_term?: boolean;
918
+ force_term_reset?: boolean;
919
+ reactivate?: boolean;
920
+ token_id?: string;
921
+ invoice_notes?: string;
922
+ meta_data?: any;
923
+ invoice_immediately?: boolean;
924
+ override_relationship?: boolean;
925
+ changes_scheduled_at?: number;
926
+ change_option?: ChangeOptionEnum;
927
+ contract_term_billing_cycle_on_renewal?: number;
928
+ free_period?: number;
929
+ free_period_unit?: FreePeriodUnitEnum;
930
+ trial_end_action?: TrialEndActionEnum;
931
+ card?: CardUpdateInputParam;
932
+ payment_method?: PaymentMethodUpdateInputParam;
933
+ payment_intent?: PaymentIntentUpdateInputParam;
934
+ billing_address?: BillingAddressUpdateInputParam;
935
+ shipping_address?: ShippingAddressUpdateInputParam;
936
+ statement_descriptor?: StatementDescriptorUpdateInputParam;
937
+ customer?: CustomerUpdateInputParam;
938
+ contract_term?: ContractTermUpdateInputParam;
939
+ addons?: AddonsUpdateInputParam[];
940
+ coupons?: CouponsUpdateInputParam[];
941
+ event_based_addons?: EventBasedAddonsUpdateInputParam[];
942
+ [key: `cf_${string}`]: unknown;
943
+ }
944
+ export interface UpdateForItemsInputParam {
945
+ mandatory_items_to_remove?: string[];
946
+ replace_items_list?: boolean /**
947
+ * @deprecated Please refer API docs to use other attributes
948
+ */;
949
+
950
+ setup_fee?: number;
951
+ net_term_days?: number;
952
+ invoice_date?: number;
953
+ start_date?: number;
954
+ trial_end?: number;
955
+ billing_cycles?: number /**
956
+ * @deprecated Please refer API docs to use other attributes
957
+ */;
958
+
959
+ coupon?: string;
960
+ terms_to_charge?: number;
961
+ reactivate_from?: number;
962
+ billing_alignment_mode?: BillingAlignmentModeEnum;
963
+ auto_collection?: AutoCollectionEnum;
964
+ offline_payment_method?: OfflinePaymentMethodEnum;
965
+ po_number?: string;
966
+ coupon_ids?: string[];
967
+ replace_coupon_list?: boolean;
968
+ prorate?: boolean;
969
+ end_of_term?: boolean;
970
+ force_term_reset?: boolean;
971
+ reactivate?: boolean;
972
+ token_id?: string;
973
+ invoice_notes?: string;
974
+ meta_data?: any;
975
+ invoice_immediately?: boolean;
976
+ override_relationship?: boolean;
977
+ changes_scheduled_at?: number;
978
+ change_option?: ChangeOptionEnum;
979
+ contract_term_billing_cycle_on_renewal?: number;
980
+ free_period?: number;
981
+ free_period_unit?: FreePeriodUnitEnum;
982
+ create_pending_invoices?: boolean;
983
+ auto_close_invoices?: boolean;
984
+ trial_end_action?: TrialEndActionEnum;
985
+ payment_initiator?: PaymentInitiatorEnum;
986
+ invoice_usages?: boolean;
987
+ card?: CardUpdateForItemsInputParam;
988
+ payment_method?: PaymentMethodUpdateForItemsInputParam;
989
+ payment_intent?: PaymentIntentUpdateForItemsInputParam;
990
+ billing_address?: BillingAddressUpdateForItemsInputParam;
991
+ shipping_address?: ShippingAddressUpdateForItemsInputParam;
992
+ statement_descriptor?: StatementDescriptorUpdateForItemsInputParam;
993
+ customer?: CustomerUpdateForItemsInputParam;
994
+ contract_term?: ContractTermUpdateForItemsInputParam;
995
+ subscription_items?: SubscriptionItemsUpdateForItemsInputParam[];
996
+ discounts?: DiscountsUpdateForItemsInputParam[];
997
+ item_tiers?: ItemTiersUpdateForItemsInputParam[];
998
+ coupons?: CouponsUpdateForItemsInputParam[];
999
+ [key: `cf_${string}`]: unknown;
1000
+ }
1001
+ export interface ChangeTermEndInputParam {
1002
+ term_ends_at: number;
1003
+ prorate?: boolean;
1004
+ invoice_immediately?: boolean;
1005
+ }
1006
+ export interface ReactivateInputParam {
1007
+ trial_end?: number;
1008
+ billing_cycles?: number /**
1009
+ * @deprecated Please refer API docs to use other attributes
1010
+ */;
1011
+
1012
+ trial_period_days?: number;
1013
+ reactivate_from?: number;
1014
+ invoice_immediately?: boolean;
1015
+ billing_alignment_mode?: BillingAlignmentModeEnum;
1016
+ terms_to_charge?: number;
1017
+ invoice_date?: number;
1018
+ contract_term_billing_cycle_on_renewal?: number;
1019
+ payment_initiator?: PaymentInitiatorEnum;
1020
+ contract_term?: ContractTermReactivateInputParam;
1021
+ statement_descriptor?: StatementDescriptorReactivateInputParam;
1022
+ payment_intent?: PaymentIntentReactivateInputParam;
1023
+ }
1024
+ export interface AddChargeAtTermEndInputParam {
1025
+ amount?: number;
1026
+ description: string;
1027
+ amount_in_decimal?: string;
1028
+ avalara_sale_type?: AvalaraSaleTypeEnum;
1029
+ avalara_transaction_type?: number;
1030
+ avalara_service_type?: number;
1031
+ date_from?: number;
1032
+ date_to?: number;
1033
+ }
1034
+ export interface ChargeAddonAtTermEndInputParam {
1035
+ addon_id: string;
1036
+ addon_quantity?: number;
1037
+ addon_unit_price?: number;
1038
+ addon_quantity_in_decimal?: string;
1039
+ addon_unit_price_in_decimal?: string;
1040
+ date_from?: number;
1041
+ date_to?: number;
1042
+ }
1043
+ export interface ChargeFutureRenewalsInputParam {
1044
+ terms_to_charge?: number;
1045
+ invoice_immediately?: boolean;
1046
+ schedule_type?: ScheduleTypeEnum;
1047
+ fixed_interval_schedule?: FixedIntervalScheduleChargeFutureRenewalsInputParam;
1048
+ specific_dates_schedule?: SpecificDatesScheduleChargeFutureRenewalsInputParam[];
1049
+ }
1050
+ export interface EditAdvanceInvoiceScheduleInputParam {
1051
+ terms_to_charge?: number;
1052
+ schedule_type?: ScheduleTypeEnum;
1053
+ fixed_interval_schedule?: FixedIntervalScheduleEditAdvanceInvoiceScheduleInputParam;
1054
+ specific_dates_schedule?: SpecificDatesScheduleEditAdvanceInvoiceScheduleInputParam[];
1055
+ }
1056
+ export interface RemoveAdvanceInvoiceScheduleInputParam {
1057
+ specific_dates_schedule?: SpecificDatesScheduleRemoveAdvanceInvoiceScheduleInputParam[];
1058
+ }
1059
+ export interface RegenerateInvoiceInputParam {
1060
+ date_from?: number;
1061
+ date_to?: number;
1062
+ prorate?: boolean;
1063
+ invoice_immediately?: boolean;
1064
+ }
1065
+ export interface ImportSubscriptionInputParam {
1066
+ id?: string;
1067
+ client_profile_id?: string;
1068
+ plan_id: string;
1069
+ plan_quantity?: number;
1070
+ plan_quantity_in_decimal?: string;
1071
+ plan_unit_price?: number;
1072
+ plan_unit_price_in_decimal?: string;
1073
+ setup_fee?: number;
1074
+ trial_end?: number;
1075
+ billing_cycles?: number;
1076
+ start_date?: number;
1077
+ auto_collection?: AutoCollectionEnum;
1078
+ po_number?: string;
1079
+ coupon_ids?: string[];
1080
+ contract_term_billing_cycle_on_renewal?: number;
1081
+ status:
1082
+ | 'future'
1083
+ | 'in_trial'
1084
+ | 'active'
1085
+ | 'non_renewing'
1086
+ | 'paused'
1087
+ | 'cancelled'
1088
+ | 'transferred';
1089
+ current_term_end?: number;
1090
+ current_term_start?: number;
1091
+ trial_start?: number;
1092
+ cancelled_at?: number;
1093
+ started_at?: number;
1094
+ activated_at?: number;
1095
+ pause_date?: number;
1096
+ resume_date?: number;
1097
+ create_current_term_invoice?: boolean;
1098
+ affiliate_token?: string;
1099
+ invoice_notes?: string;
1100
+ meta_data?: any;
1101
+ customer?: CustomerImportSubscriptionInputParam;
1102
+ contract_term?: ContractTermImportSubscriptionInputParam;
1103
+ card?: CardImportSubscriptionInputParam;
1104
+ payment_method?: PaymentMethodImportSubscriptionInputParam;
1105
+ billing_address?: BillingAddressImportSubscriptionInputParam;
1106
+ shipping_address?: ShippingAddressImportSubscriptionInputParam;
1107
+ transaction?: TransactionImportSubscriptionInputParam;
1108
+ addons?: AddonsImportSubscriptionInputParam[];
1109
+ event_based_addons?: EventBasedAddonsImportSubscriptionInputParam[];
1110
+ charged_event_based_addons?: ChargedEventBasedAddonsImportSubscriptionInputParam[];
1111
+ coupons?: CouponsImportSubscriptionInputParam[];
1112
+ [key: `cf_${string}`]: unknown;
1113
+ }
1114
+ export interface ImportForCustomerInputParam {
1115
+ id?: string;
1116
+ plan_id: string;
1117
+ plan_quantity?: number;
1118
+ plan_quantity_in_decimal?: string;
1119
+ plan_unit_price?: number;
1120
+ plan_unit_price_in_decimal?: string;
1121
+ setup_fee?: number;
1122
+ trial_end?: number;
1123
+ billing_cycles?: number;
1124
+ start_date?: number;
1125
+ auto_collection?: AutoCollectionEnum;
1126
+ po_number?: string;
1127
+ coupon_ids?: string[];
1128
+ payment_source_id?: string;
1129
+ status:
1130
+ | 'future'
1131
+ | 'in_trial'
1132
+ | 'active'
1133
+ | 'non_renewing'
1134
+ | 'paused'
1135
+ | 'cancelled'
1136
+ | 'transferred';
1137
+ current_term_end?: number;
1138
+ current_term_start?: number;
1139
+ trial_start?: number;
1140
+ cancelled_at?: number;
1141
+ started_at?: number;
1142
+ activated_at?: number;
1143
+ pause_date?: number;
1144
+ resume_date?: number;
1145
+ contract_term_billing_cycle_on_renewal?: number;
1146
+ create_current_term_invoice?: boolean;
1147
+ invoice_notes?: string;
1148
+ meta_data?: any;
1149
+ contract_term?: ContractTermImportForCustomerInputParam;
1150
+ transaction?: TransactionImportForCustomerInputParam;
1151
+ shipping_address?: ShippingAddressImportForCustomerInputParam;
1152
+ addons?: AddonsImportForCustomerInputParam[];
1153
+ event_based_addons?: EventBasedAddonsImportForCustomerInputParam[];
1154
+ charged_event_based_addons?: ChargedEventBasedAddonsImportForCustomerInputParam[];
1155
+ coupons?: CouponsImportForCustomerInputParam[];
1156
+ [key: `cf_${string}`]: unknown;
1157
+ }
1158
+ export interface ImportContractTermInputParam {
1159
+ contract_term_billing_cycle_on_renewal?: number;
1160
+ contract_term?: ContractTermImportContractTermInputParam;
1161
+ }
1162
+ export interface ImportUnbilledChargesInputParam {
1163
+ unbilled_charges?: UnbilledChargesImportUnbilledChargesInputParam[];
1164
+ discounts?: DiscountsImportUnbilledChargesInputParam[];
1165
+ tiers?: TiersImportUnbilledChargesInputParam[];
1166
+ }
1167
+ export interface ImportForItemsInputParam {
1168
+ id?: string;
1169
+ trial_end?: number;
1170
+ billing_cycles?: number /**
1171
+ * @deprecated Please refer API docs to use other attributes
1172
+ */;
1173
+
1174
+ setup_fee?: number;
1175
+ net_term_days?: number;
1176
+ start_date?: number;
1177
+ auto_collection?: AutoCollectionEnum;
1178
+ po_number?: string;
1179
+ coupon_ids?: string[];
1180
+ payment_source_id?: string;
1181
+ status:
1182
+ | 'future'
1183
+ | 'in_trial'
1184
+ | 'active'
1185
+ | 'non_renewing'
1186
+ | 'paused'
1187
+ | 'cancelled'
1188
+ | 'transferred';
1189
+ current_term_end?: number;
1190
+ current_term_start?: number;
1191
+ trial_start?: number;
1192
+ cancelled_at?: number;
1193
+ started_at?: number;
1194
+ activated_at?: number;
1195
+ pause_date?: number;
1196
+ resume_date?: number;
1197
+ contract_term_billing_cycle_on_renewal?: number;
1198
+ create_current_term_invoice?: boolean;
1199
+ invoice_notes?: string;
1200
+ meta_data?: any;
1201
+ cancel_reason_code?: string;
1202
+ create_pending_invoices?: boolean;
1203
+ auto_close_invoices?: boolean;
1204
+ contract_term?: ContractTermImportForItemsInputParam;
1205
+ transaction?: TransactionImportForItemsInputParam;
1206
+ shipping_address?: ShippingAddressImportForItemsInputParam;
1207
+ subscription_items?: SubscriptionItemsImportForItemsInputParam[];
1208
+ discounts?: DiscountsImportForItemsInputParam[];
1209
+ charged_items?: ChargedItemsImportForItemsInputParam[];
1210
+ item_tiers?: ItemTiersImportForItemsInputParam[];
1211
+ coupons?: CouponsImportForItemsInputParam[];
1212
+ [key: `cf_${string}`]: unknown;
1213
+ }
1214
+ export interface OverrideBillingProfileInputParam {
1215
+ payment_source_id?: string;
1216
+ auto_collection?: AutoCollectionEnum;
1217
+ }
1218
+ export interface PauseInputParam {
1219
+ pause_option?: PauseOptionEnum;
1220
+ pause_date?: number;
1221
+ unbilled_charges_handling?: UnbilledChargesHandlingEnum;
1222
+ invoice_dunning_handling?: InvoiceDunningHandlingEnum;
1223
+ skip_billing_cycles?: number;
1224
+ resume_date?: number;
1225
+ }
1226
+ export interface CancelInputParam {
1227
+ cancel_option?: CancelOptionEnum;
1228
+ end_of_term?: boolean;
1229
+ cancel_at?: number;
1230
+ credit_option_for_current_term_charges?: CreditOptionForCurrentTermChargesEnum;
1231
+ unbilled_charges_option?: UnbilledChargesOptionEnum;
1232
+ account_receivables_handling?: AccountReceivablesHandlingEnum;
1233
+ refundable_credits_handling?: RefundableCreditsHandlingEnum;
1234
+ contract_term_cancel_option?: ContractTermCancelOptionEnum;
1235
+ invoice_date?: number;
1236
+ cancel_reason_code?: string;
1237
+ event_based_addons?: EventBasedAddonsCancelInputParam[];
1238
+ }
1239
+ export interface CancelForItemsInputParam {
1240
+ cancel_option?: CancelOptionEnum;
1241
+ end_of_term?: boolean;
1242
+ cancel_at?: number;
1243
+ credit_option_for_current_term_charges?: CreditOptionForCurrentTermChargesEnum;
1244
+ unbilled_charges_option?: UnbilledChargesOptionEnum;
1245
+ account_receivables_handling?: AccountReceivablesHandlingEnum;
1246
+ refundable_credits_handling?: RefundableCreditsHandlingEnum;
1247
+ contract_term_cancel_option?: ContractTermCancelOptionEnum;
1248
+ invoice_date?: number;
1249
+ cancel_reason_code?: string;
1250
+ subscription_items?: SubscriptionItemsCancelForItemsInputParam[];
1251
+ }
1252
+ export interface ResumeInputParam {
1253
+ resume_option?: ResumeOptionEnum;
1254
+ resume_date?: number;
1255
+ charges_handling?: ChargesHandlingEnum;
1256
+ unpaid_invoices_handling?: UnpaidInvoicesHandlingEnum;
1257
+ payment_initiator?: PaymentInitiatorEnum;
1258
+ payment_intent?: PaymentIntentResumeInputParam;
1259
+ }
1260
+ export interface MoveInputParam {
1261
+ to_customer_id: string;
1262
+ copy_payment_source?: boolean;
1263
+ }
1264
+ export interface BillingAddressCreateInputParam {
1265
+ first_name?: string;
1266
+ last_name?: string;
1267
+ email?: string;
1268
+ company?: string;
1269
+ phone?: string;
1270
+ line1?: string;
1271
+ line2?: string;
1272
+ line3?: string;
1273
+ city?: string;
1274
+ state_code?: string;
1275
+ state?: string;
1276
+ zip?: string;
1277
+ country?: string;
1278
+ validation_status?: ValidationStatusEnum;
1279
+ }
1280
+ export interface StatementDescriptorCreateInputParam {
1281
+ descriptor?: string;
1282
+ }
1283
+ export interface CustomerCreateInputParam {
1284
+ id?: string;
1285
+ email?: string;
1286
+ first_name?: string;
1287
+ last_name?: string;
1288
+ company?: string;
1289
+ phone?: string;
1290
+ locale?: string;
1291
+ taxability?: TaxabilityEnum;
1292
+ entity_code?: EntityCodeEnum;
1293
+ exempt_number?: string;
1294
+ net_term_days?: number;
1295
+ taxjar_exemption_category?: TaxjarExemptionCategoryEnum;
1296
+ auto_collection?: AutoCollectionEnum;
1297
+ offline_payment_method?: OfflinePaymentMethodEnum;
1298
+ allow_direct_debit?: boolean;
1299
+ consolidated_invoicing?: boolean;
1300
+ vat_number?: string;
1301
+ vat_number_prefix?: string;
1302
+ entity_identifier_scheme?: string;
1303
+ entity_identifier_standard?: string;
1304
+ is_einvoice_enabled?: boolean;
1305
+ einvoicing_method?: EinvoicingMethodEnum;
1306
+ registered_for_gst?: boolean;
1307
+ business_customer_without_vat_number?: boolean;
1308
+ exemption_details?: any;
1309
+ customer_type?: CustomerTypeEnum;
1310
+ }
1311
+ export interface ShippingAddressCreateInputParam {
1312
+ first_name?: string;
1313
+ last_name?: string;
1314
+ email?: string;
1315
+ company?: string;
1316
+ phone?: string;
1317
+ line1?: string;
1318
+ line2?: string;
1319
+ line3?: string;
1320
+ city?: string;
1321
+ state_code?: string;
1322
+ state?: string;
1323
+ zip?: string;
1324
+ country?: string;
1325
+ validation_status?: ValidationStatusEnum;
1326
+ }
1327
+ export interface PaymentMethodCreateInputParam {
1328
+ type?: TypeEnum;
1329
+ /**
1330
+ * @deprecated Please refer API docs to use other attributes
1331
+ */
1332
+ gateway?: GatewayEnum;
1333
+ gateway_account_id?: string;
1334
+ reference_id?: string;
1335
+ tmp_token?: string;
1336
+ issuing_country?: string;
1337
+ additional_information?: any;
1338
+ }
1339
+ export interface BankAccountCreateInputParam {
1340
+ gateway_account_id?: string;
1341
+ iban?: string;
1342
+ first_name?: string;
1343
+ last_name?: string;
1344
+ company?: string;
1345
+ email?: string;
1346
+ phone?: string;
1347
+ bank_name?: string;
1348
+ account_number?: string;
1349
+ routing_number?: string;
1350
+ bank_code?: string;
1351
+ account_type?: AccountTypeEnum;
1352
+ account_holder_type?: AccountHolderTypeEnum;
1353
+ echeck_type?: EcheckTypeEnum;
1354
+ issuing_country?: string;
1355
+ swedish_identity_number?: string;
1356
+ billing_address?: any;
1357
+ }
1358
+ export interface ContractTermCreateInputParam {
1359
+ action_at_term_end?: 'renew' | 'evergreen' | 'cancel';
1360
+ cancellation_cutoff_period?: number;
1361
+ }
1362
+ export interface PaymentIntentCreateInputParam {
1363
+ id?: string;
1364
+ gateway_account_id?: string;
1365
+ gw_token?: string;
1366
+ payment_method_type?:
1367
+ | 'card'
1368
+ | 'ideal'
1369
+ | 'sofort'
1370
+ | 'bancontact'
1371
+ | 'google_pay'
1372
+ | 'dotpay'
1373
+ | 'giropay'
1374
+ | 'apple_pay'
1375
+ | 'upi'
1376
+ | 'netbanking_emandates'
1377
+ | 'paypal_express_checkout'
1378
+ | 'direct_debit'
1379
+ | 'boleto'
1380
+ | 'venmo'
1381
+ | 'amazon_payments'
1382
+ | 'pay_to'
1383
+ | 'faster_payments'
1384
+ | 'sepa_instant_transfer'
1385
+ | 'klarna_pay_now'
1386
+ | 'online_banking_poland';
1387
+ reference_id?: string;
1388
+ /**
1389
+ * @deprecated Please refer API docs to use other attributes
1390
+ */
1391
+ gw_payment_method_id?: string;
1392
+ additional_information?: any;
1393
+ }
1394
+ export interface CardCreateInputParam {
1395
+ /**
1396
+ * @deprecated Please refer API docs to use other attributes
1397
+ */
1398
+ gateway?: GatewayEnum;
1399
+ gateway_account_id?: string;
1400
+ /**
1401
+ * @deprecated Please refer API docs to use other attributes
1402
+ */
1403
+ tmp_token?: string;
1404
+ first_name?: string;
1405
+ last_name?: string;
1406
+ number?: string;
1407
+ expiry_month?: number;
1408
+ expiry_year?: number;
1409
+ cvv?: string;
1410
+ preferred_scheme?: 'cartes_bancaires' | 'mastercard' | 'visa';
1411
+ billing_addr1?: string;
1412
+ billing_addr2?: string;
1413
+ billing_city?: string;
1414
+ billing_state_code?: string;
1415
+ billing_state?: string;
1416
+ billing_zip?: string;
1417
+ billing_country?: string;
1418
+ /**
1419
+ * @deprecated Please refer API docs to use other attributes
1420
+ */
1421
+ ip_address?: string;
1422
+ additional_information?: any;
1423
+ }
1424
+
1425
+ export interface EventBasedAddonsCreateInputParam {
1426
+ id?: string;
1427
+ quantity?: number;
1428
+ unit_price?: number;
1429
+ quantity_in_decimal?: string;
1430
+ unit_price_in_decimal?: string;
1431
+ service_period_in_days?: number;
1432
+ on_event?: OnEventEnum;
1433
+ charge_once?: boolean;
1434
+ charge_on?: ChargeOnEnum;
1435
+ }
1436
+ export interface CouponsCreateInputParam {
1437
+ /**
1438
+ * @deprecated Please refer API docs to use other attributes
1439
+ */
1440
+ coupon_id?: string;
1441
+ /**
1442
+ * @deprecated Please refer API docs to use other attributes
1443
+ */
1444
+ apply_till?: number;
1445
+ }
1446
+ export interface AddonsCreateInputParam {
1447
+ id?: string;
1448
+ quantity?: number;
1449
+ quantity_in_decimal?: string;
1450
+ unit_price?: number;
1451
+ unit_price_in_decimal?: string;
1452
+ billing_cycles?: number;
1453
+ trial_end?: number;
1454
+ }
1455
+ export interface EntityIdentifiersCreateInputParam {
1456
+ id?: string;
1457
+ scheme?: string;
1458
+ value?: string;
1459
+ standard?: string;
1460
+ }
1461
+ export interface TaxProvidersFieldsCreateInputParam {
1462
+ provider_name?: string;
1463
+ field_id?: string;
1464
+ field_value?: string;
1465
+ }
1466
+ export interface StatementDescriptorCreateForCustomerInputParam {
1467
+ descriptor?: string;
1468
+ }
1469
+ export interface ShippingAddressCreateForCustomerInputParam {
1470
+ first_name?: string;
1471
+ last_name?: string;
1472
+ email?: string;
1473
+ company?: string;
1474
+ phone?: string;
1475
+ line1?: string;
1476
+ line2?: string;
1477
+ line3?: string;
1478
+ city?: string;
1479
+ state_code?: string;
1480
+ state?: string;
1481
+ zip?: string;
1482
+ country?: string;
1483
+ validation_status?: ValidationStatusEnum;
1484
+ }
1485
+ export interface ContractTermCreateForCustomerInputParam {
1486
+ action_at_term_end?: 'renew' | 'evergreen' | 'cancel';
1487
+ cancellation_cutoff_period?: number;
1488
+ }
1489
+ export interface PaymentIntentCreateForCustomerInputParam {
1490
+ id?: string;
1491
+ gateway_account_id?: string;
1492
+ gw_token?: string;
1493
+ payment_method_type?:
1494
+ | 'card'
1495
+ | 'ideal'
1496
+ | 'sofort'
1497
+ | 'bancontact'
1498
+ | 'google_pay'
1499
+ | 'dotpay'
1500
+ | 'giropay'
1501
+ | 'apple_pay'
1502
+ | 'upi'
1503
+ | 'netbanking_emandates'
1504
+ | 'paypal_express_checkout'
1505
+ | 'direct_debit'
1506
+ | 'boleto'
1507
+ | 'venmo'
1508
+ | 'amazon_payments'
1509
+ | 'pay_to'
1510
+ | 'faster_payments'
1511
+ | 'sepa_instant_transfer'
1512
+ | 'klarna_pay_now'
1513
+ | 'online_banking_poland';
1514
+ reference_id?: string;
1515
+ /**
1516
+ * @deprecated Please refer API docs to use other attributes
1517
+ */
1518
+ gw_payment_method_id?: string;
1519
+ additional_information?: any;
1520
+ }
1521
+
1522
+ export interface EventBasedAddonsCreateForCustomerInputParam {
1523
+ id?: string;
1524
+ quantity?: number;
1525
+ unit_price?: number;
1526
+ quantity_in_decimal?: string;
1527
+ unit_price_in_decimal?: string;
1528
+ service_period_in_days?: number;
1529
+ on_event?: OnEventEnum;
1530
+ charge_once?: boolean;
1531
+ charge_on?: ChargeOnEnum;
1532
+ }
1533
+ export interface CouponsCreateForCustomerInputParam {
1534
+ /**
1535
+ * @deprecated Please refer API docs to use other attributes
1536
+ */
1537
+ coupon_id?: string;
1538
+ /**
1539
+ * @deprecated Please refer API docs to use other attributes
1540
+ */
1541
+ apply_till?: number;
1542
+ }
1543
+ export interface AddonsCreateForCustomerInputParam {
1544
+ id?: string;
1545
+ quantity?: number;
1546
+ quantity_in_decimal?: string;
1547
+ unit_price?: number;
1548
+ unit_price_in_decimal?: string;
1549
+ billing_cycles?: number;
1550
+ trial_end?: number;
1551
+ }
1552
+ export interface StatementDescriptorCreateWithItemsInputParam {
1553
+ descriptor?: string;
1554
+ }
1555
+ export interface ShippingAddressCreateWithItemsInputParam {
1556
+ first_name?: string;
1557
+ last_name?: string;
1558
+ email?: string;
1559
+ company?: string;
1560
+ phone?: string;
1561
+ line1?: string;
1562
+ line2?: string;
1563
+ line3?: string;
1564
+ city?: string;
1565
+ state_code?: string;
1566
+ state?: string;
1567
+ zip?: string;
1568
+ country?: string;
1569
+ validation_status?: ValidationStatusEnum;
1570
+ }
1571
+ export interface ContractTermCreateWithItemsInputParam {
1572
+ action_at_term_end?: 'renew' | 'evergreen' | 'cancel';
1573
+ /**
1574
+ * @deprecated Please refer API docs to use other attributes
1575
+ */
1576
+ contract_start?: number;
1577
+ cancellation_cutoff_period?: number;
1578
+ }
1579
+ export interface PaymentIntentCreateWithItemsInputParam {
1580
+ id?: string;
1581
+ gateway_account_id?: string;
1582
+ gw_token?: string;
1583
+ payment_method_type?:
1584
+ | 'card'
1585
+ | 'ideal'
1586
+ | 'sofort'
1587
+ | 'bancontact'
1588
+ | 'google_pay'
1589
+ | 'dotpay'
1590
+ | 'giropay'
1591
+ | 'apple_pay'
1592
+ | 'upi'
1593
+ | 'netbanking_emandates'
1594
+ | 'paypal_express_checkout'
1595
+ | 'direct_debit'
1596
+ | 'boleto'
1597
+ | 'venmo'
1598
+ | 'amazon_payments'
1599
+ | 'pay_to'
1600
+ | 'faster_payments'
1601
+ | 'sepa_instant_transfer'
1602
+ | 'klarna_pay_now'
1603
+ | 'online_banking_poland';
1604
+ reference_id?: string;
1605
+ /**
1606
+ * @deprecated Please refer API docs to use other attributes
1607
+ */
1608
+ gw_payment_method_id?: string;
1609
+ additional_information?: any;
1610
+ }
1611
+
1612
+ export interface SubscriptionItemsCreateWithItemsInputParam {
1613
+ item_price_id: string;
1614
+ quantity?: number;
1615
+ quantity_in_decimal?: string;
1616
+ unit_price?: number;
1617
+ unit_price_in_decimal?: string;
1618
+ billing_cycles?: number;
1619
+ trial_end?: number;
1620
+ service_period_days?: number;
1621
+ charge_on_event?: ChargeOnEventEnum;
1622
+ charge_once?: boolean;
1623
+ /**
1624
+ * @deprecated Please refer API docs to use other attributes
1625
+ */
1626
+ item_type?: ItemTypeEnum;
1627
+ charge_on_option?: ChargeOnOptionEnum;
1628
+ usage_accumulation_reset_frequency?: UsageAccumulationResetFrequencyEnum;
1629
+ }
1630
+ export interface DiscountsCreateWithItemsInputParam {
1631
+ apply_on: ApplyOnEnum;
1632
+ duration_type: DurationTypeEnum;
1633
+ percentage?: number;
1634
+ amount?: number;
1635
+ period?: number;
1636
+ period_unit?: PeriodUnitEnum;
1637
+ included_in_mrr?: boolean;
1638
+ item_price_id?: string;
1639
+ }
1640
+ export interface CouponsCreateWithItemsInputParam {
1641
+ /**
1642
+ * @deprecated Please refer API docs to use other attributes
1643
+ */
1644
+ coupon_id?: string;
1645
+ /**
1646
+ * @deprecated Please refer API docs to use other attributes
1647
+ */
1648
+ apply_till?: number;
1649
+ }
1650
+ export interface ItemTiersCreateWithItemsInputParam {
1651
+ item_price_id?: string;
1652
+ starting_unit?: number;
1653
+ ending_unit?: number;
1654
+ price?: number;
1655
+ starting_unit_in_decimal?: string;
1656
+ ending_unit_in_decimal?: string;
1657
+ price_in_decimal?: string;
1658
+ }
1659
+ export interface BillingAddressUpdateInputParam {
1660
+ first_name?: string;
1661
+ last_name?: string;
1662
+ email?: string;
1663
+ company?: string;
1664
+ phone?: string;
1665
+ line1?: string;
1666
+ line2?: string;
1667
+ line3?: string;
1668
+ city?: string;
1669
+ state_code?: string;
1670
+ state?: string;
1671
+ zip?: string;
1672
+ country?: string;
1673
+ validation_status?: ValidationStatusEnum;
1674
+ }
1675
+ export interface CustomerUpdateInputParam {
1676
+ vat_number?: string;
1677
+ vat_number_prefix?: string;
1678
+ entity_identifier_scheme?: string;
1679
+ is_einvoice_enabled?: boolean;
1680
+ einvoicing_method?: EinvoicingMethodEnum;
1681
+ entity_identifier_standard?: string;
1682
+ business_customer_without_vat_number?: boolean;
1683
+ registered_for_gst?: boolean;
1684
+ }
1685
+ export interface StatementDescriptorUpdateInputParam {
1686
+ descriptor?: string;
1687
+ }
1688
+ export interface ShippingAddressUpdateInputParam {
1689
+ first_name?: string;
1690
+ last_name?: string;
1691
+ email?: string;
1692
+ company?: string;
1693
+ phone?: string;
1694
+ line1?: string;
1695
+ line2?: string;
1696
+ line3?: string;
1697
+ city?: string;
1698
+ state_code?: string;
1699
+ state?: string;
1700
+ zip?: string;
1701
+ country?: string;
1702
+ validation_status?: ValidationStatusEnum;
1703
+ }
1704
+ export interface PaymentMethodUpdateInputParam {
1705
+ type?: TypeEnum;
1706
+ /**
1707
+ * @deprecated Please refer API docs to use other attributes
1708
+ */
1709
+ gateway?: GatewayEnum;
1710
+ gateway_account_id?: string;
1711
+ reference_id?: string;
1712
+ tmp_token?: string;
1713
+ issuing_country?: string;
1714
+ additional_information?: any;
1715
+ }
1716
+ export interface ContractTermUpdateInputParam {
1717
+ action_at_term_end?: 'renew' | 'evergreen' | 'cancel' | 'renew_once';
1718
+ cancellation_cutoff_period?: number;
1719
+ }
1720
+ export interface PaymentIntentUpdateInputParam {
1721
+ id?: string;
1722
+ gateway_account_id?: string;
1723
+ gw_token?: string;
1724
+ payment_method_type?:
1725
+ | 'card'
1726
+ | 'ideal'
1727
+ | 'sofort'
1728
+ | 'bancontact'
1729
+ | 'google_pay'
1730
+ | 'dotpay'
1731
+ | 'giropay'
1732
+ | 'apple_pay'
1733
+ | 'upi'
1734
+ | 'netbanking_emandates'
1735
+ | 'paypal_express_checkout'
1736
+ | 'direct_debit'
1737
+ | 'boleto'
1738
+ | 'venmo'
1739
+ | 'amazon_payments'
1740
+ | 'pay_to'
1741
+ | 'faster_payments'
1742
+ | 'sepa_instant_transfer'
1743
+ | 'klarna_pay_now'
1744
+ | 'online_banking_poland';
1745
+ reference_id?: string;
1746
+ /**
1747
+ * @deprecated Please refer API docs to use other attributes
1748
+ */
1749
+ gw_payment_method_id?: string;
1750
+ additional_information?: any;
1751
+ }
1752
+ export interface CardUpdateInputParam {
1753
+ /**
1754
+ * @deprecated Please refer API docs to use other attributes
1755
+ */
1756
+ gateway?: GatewayEnum;
1757
+ gateway_account_id?: string;
1758
+ /**
1759
+ * @deprecated Please refer API docs to use other attributes
1760
+ */
1761
+ tmp_token?: string;
1762
+ first_name?: string;
1763
+ last_name?: string;
1764
+ number?: string;
1765
+ expiry_month?: number;
1766
+ expiry_year?: number;
1767
+ cvv?: string;
1768
+ preferred_scheme?: 'cartes_bancaires' | 'mastercard' | 'visa';
1769
+ billing_addr1?: string;
1770
+ billing_addr2?: string;
1771
+ billing_city?: string;
1772
+ billing_state_code?: string;
1773
+ billing_state?: string;
1774
+ billing_zip?: string;
1775
+ billing_country?: string;
1776
+ /**
1777
+ * @deprecated Please refer API docs to use other attributes
1778
+ */
1779
+ ip_address?: string;
1780
+ additional_information?: any;
1781
+ }
1782
+
1783
+ export interface EventBasedAddonsUpdateInputParam {
1784
+ id?: string;
1785
+ quantity?: number;
1786
+ unit_price?: number;
1787
+ service_period_in_days?: number;
1788
+ charge_on?: ChargeOnEnum;
1789
+ on_event?: OnEventEnum;
1790
+ charge_once?: boolean;
1791
+ quantity_in_decimal?: string;
1792
+ unit_price_in_decimal?: string;
1793
+ }
1794
+ export interface CouponsUpdateInputParam {
1795
+ /**
1796
+ * @deprecated Please refer API docs to use other attributes
1797
+ */
1798
+ coupon_id?: string;
1799
+ /**
1800
+ * @deprecated Please refer API docs to use other attributes
1801
+ */
1802
+ apply_till?: number;
1803
+ }
1804
+ export interface AddonsUpdateInputParam {
1805
+ id?: string;
1806
+ quantity?: number;
1807
+ unit_price?: number;
1808
+ billing_cycles?: number;
1809
+ quantity_in_decimal?: string;
1810
+ unit_price_in_decimal?: string;
1811
+ trial_end?: number;
1812
+ proration_type?: ProrationTypeEnum;
1813
+ }
1814
+ export interface BillingAddressUpdateForItemsInputParam {
1815
+ first_name?: string;
1816
+ last_name?: string;
1817
+ email?: string;
1818
+ company?: string;
1819
+ phone?: string;
1820
+ line1?: string;
1821
+ line2?: string;
1822
+ line3?: string;
1823
+ city?: string;
1824
+ state_code?: string;
1825
+ state?: string;
1826
+ zip?: string;
1827
+ country?: string;
1828
+ validation_status?: ValidationStatusEnum;
1829
+ }
1830
+ export interface CustomerUpdateForItemsInputParam {
1831
+ vat_number?: string;
1832
+ vat_number_prefix?: string;
1833
+ entity_identifier_scheme?: string;
1834
+ is_einvoice_enabled?: boolean;
1835
+ einvoicing_method?: EinvoicingMethodEnum;
1836
+ entity_identifier_standard?: string;
1837
+ business_customer_without_vat_number?: boolean;
1838
+ registered_for_gst?: boolean;
1839
+ }
1840
+ export interface StatementDescriptorUpdateForItemsInputParam {
1841
+ descriptor?: string;
1842
+ }
1843
+ export interface ShippingAddressUpdateForItemsInputParam {
1844
+ first_name?: string;
1845
+ last_name?: string;
1846
+ email?: string;
1847
+ company?: string;
1848
+ phone?: string;
1849
+ line1?: string;
1850
+ line2?: string;
1851
+ line3?: string;
1852
+ city?: string;
1853
+ state_code?: string;
1854
+ state?: string;
1855
+ zip?: string;
1856
+ country?: string;
1857
+ validation_status?: ValidationStatusEnum;
1858
+ }
1859
+ export interface PaymentMethodUpdateForItemsInputParam {
1860
+ type?: TypeEnum;
1861
+ /**
1862
+ * @deprecated Please refer API docs to use other attributes
1863
+ */
1864
+ gateway?: GatewayEnum;
1865
+ gateway_account_id?: string;
1866
+ reference_id?: string;
1867
+ tmp_token?: string;
1868
+ issuing_country?: string;
1869
+ additional_information?: any;
1870
+ }
1871
+ export interface ContractTermUpdateForItemsInputParam {
1872
+ action_at_term_end?: 'renew' | 'evergreen' | 'cancel' | 'renew_once';
1873
+ cancellation_cutoff_period?: number;
1874
+ /**
1875
+ * @deprecated Please refer API docs to use other attributes
1876
+ */
1877
+ contract_start?: number;
1878
+ }
1879
+ export interface PaymentIntentUpdateForItemsInputParam {
1880
+ id?: string;
1881
+ gateway_account_id?: string;
1882
+ gw_token?: string;
1883
+ payment_method_type?:
1884
+ | 'card'
1885
+ | 'ideal'
1886
+ | 'sofort'
1887
+ | 'bancontact'
1888
+ | 'google_pay'
1889
+ | 'dotpay'
1890
+ | 'giropay'
1891
+ | 'apple_pay'
1892
+ | 'upi'
1893
+ | 'netbanking_emandates'
1894
+ | 'paypal_express_checkout'
1895
+ | 'direct_debit'
1896
+ | 'boleto'
1897
+ | 'venmo'
1898
+ | 'amazon_payments'
1899
+ | 'pay_to'
1900
+ | 'faster_payments'
1901
+ | 'sepa_instant_transfer'
1902
+ | 'klarna_pay_now'
1903
+ | 'online_banking_poland';
1904
+ reference_id?: string;
1905
+ /**
1906
+ * @deprecated Please refer API docs to use other attributes
1907
+ */
1908
+ gw_payment_method_id?: string;
1909
+ additional_information?: any;
1910
+ }
1911
+ export interface CardUpdateForItemsInputParam {
1912
+ /**
1913
+ * @deprecated Please refer API docs to use other attributes
1914
+ */
1915
+ gateway?: GatewayEnum;
1916
+ gateway_account_id?: string;
1917
+ /**
1918
+ * @deprecated Please refer API docs to use other attributes
1919
+ */
1920
+ tmp_token?: string;
1921
+ first_name?: string;
1922
+ last_name?: string;
1923
+ number?: string;
1924
+ expiry_month?: number;
1925
+ expiry_year?: number;
1926
+ cvv?: string;
1927
+ preferred_scheme?: 'cartes_bancaires' | 'mastercard' | 'visa';
1928
+ billing_addr1?: string;
1929
+ billing_addr2?: string;
1930
+ billing_city?: string;
1931
+ billing_state_code?: string;
1932
+ billing_state?: string;
1933
+ billing_zip?: string;
1934
+ billing_country?: string;
1935
+ /**
1936
+ * @deprecated Please refer API docs to use other attributes
1937
+ */
1938
+ ip_address?: string;
1939
+ additional_information?: any;
1940
+ }
1941
+
1942
+ export interface SubscriptionItemsUpdateForItemsInputParam {
1943
+ item_price_id: string;
1944
+ quantity?: number;
1945
+ quantity_in_decimal?: string;
1946
+ unit_price?: number;
1947
+ unit_price_in_decimal?: string;
1948
+ billing_cycles?: number;
1949
+ trial_end?: number;
1950
+ service_period_days?: number;
1951
+ charge_on_event?: ChargeOnEventEnum;
1952
+ charge_once?: boolean;
1953
+ charge_on_option?: ChargeOnOptionEnum;
1954
+ /**
1955
+ * @deprecated Please refer API docs to use other attributes
1956
+ */
1957
+ item_type?: ItemTypeEnum;
1958
+ proration_type?: ProrationTypeEnum;
1959
+ usage_accumulation_reset_frequency?: UsageAccumulationResetFrequencyEnum;
1960
+ }
1961
+ export interface DiscountsUpdateForItemsInputParam {
1962
+ apply_on: ApplyOnEnum;
1963
+ duration_type: DurationTypeEnum;
1964
+ percentage?: number;
1965
+ amount?: number;
1966
+ period?: number;
1967
+ period_unit?: PeriodUnitEnum;
1968
+ included_in_mrr?: boolean;
1969
+ item_price_id?: string;
1970
+ operation_type: OperationTypeEnum;
1971
+ id?: string;
1972
+ }
1973
+ export interface CouponsUpdateForItemsInputParam {
1974
+ /**
1975
+ * @deprecated Please refer API docs to use other attributes
1976
+ */
1977
+ coupon_id?: string;
1978
+ /**
1979
+ * @deprecated Please refer API docs to use other attributes
1980
+ */
1981
+ apply_till?: number;
1982
+ }
1983
+ export interface ItemTiersUpdateForItemsInputParam {
1984
+ item_price_id?: string;
1985
+ starting_unit?: number;
1986
+ ending_unit?: number;
1987
+ price?: number;
1988
+ starting_unit_in_decimal?: string;
1989
+ ending_unit_in_decimal?: string;
1990
+ price_in_decimal?: string;
1991
+ }
1992
+ export interface StatementDescriptorReactivateInputParam {
1993
+ descriptor?: string;
1994
+ }
1995
+ export interface PaymentIntentReactivateInputParam {
1996
+ id?: string;
1997
+ gateway_account_id?: string;
1998
+ gw_token?: string;
1999
+ payment_method_type?:
2000
+ | 'card'
2001
+ | 'ideal'
2002
+ | 'sofort'
2003
+ | 'bancontact'
2004
+ | 'google_pay'
2005
+ | 'dotpay'
2006
+ | 'giropay'
2007
+ | 'apple_pay'
2008
+ | 'upi'
2009
+ | 'netbanking_emandates'
2010
+ | 'paypal_express_checkout'
2011
+ | 'direct_debit'
2012
+ | 'boleto'
2013
+ | 'venmo'
2014
+ | 'amazon_payments'
2015
+ | 'pay_to'
2016
+ | 'faster_payments'
2017
+ | 'sepa_instant_transfer'
2018
+ | 'klarna_pay_now'
2019
+ | 'online_banking_poland';
2020
+ reference_id?: string;
2021
+ /**
2022
+ * @deprecated Please refer API docs to use other attributes
2023
+ */
2024
+ gw_payment_method_id?: string;
2025
+ additional_information?: any;
2026
+ }
2027
+ export interface ContractTermReactivateInputParam {
2028
+ action_at_term_end?: 'renew' | 'evergreen' | 'cancel';
2029
+ cancellation_cutoff_period?: number;
2030
+ }
2031
+
2032
+ export interface FixedIntervalScheduleChargeFutureRenewalsInputParam {
2033
+ number_of_occurrences?: number;
2034
+ days_before_renewal?: number;
2035
+ end_schedule_on?: EndScheduleOnEnum;
2036
+ end_date?: number;
2037
+ }
2038
+
2039
+ export interface SpecificDatesScheduleChargeFutureRenewalsInputParam {
2040
+ terms_to_charge?: number;
2041
+ date?: number;
2042
+ }
2043
+ export interface FixedIntervalScheduleEditAdvanceInvoiceScheduleInputParam {
2044
+ number_of_occurrences?: number;
2045
+ days_before_renewal?: number;
2046
+ end_schedule_on?: EndScheduleOnEnum;
2047
+ end_date?: number;
2048
+ }
2049
+
2050
+ export interface SpecificDatesScheduleEditAdvanceInvoiceScheduleInputParam {
2051
+ id?: string;
2052
+ terms_to_charge?: number;
2053
+ date?: number;
2054
+ }
2055
+ export interface SpecificDatesScheduleRemoveAdvanceInvoiceScheduleInputParam {
2056
+ id?: string;
2057
+ }
2058
+ export interface BillingAddressImportSubscriptionInputParam {
2059
+ first_name?: string;
2060
+ last_name?: string;
2061
+ email?: string;
2062
+ company?: string;
2063
+ phone?: string;
2064
+ line1?: string;
2065
+ line2?: string;
2066
+ line3?: string;
2067
+ city?: string;
2068
+ state_code?: string;
2069
+ state?: string;
2070
+ zip?: string;
2071
+ country?: string;
2072
+ validation_status?: ValidationStatusEnum;
2073
+ }
2074
+ export interface TransactionImportSubscriptionInputParam {
2075
+ amount?: number;
2076
+ payment_method?: PaymentMethodEnum;
2077
+ reference_number?: string;
2078
+ date?: number;
2079
+ }
2080
+ export interface CustomerImportSubscriptionInputParam {
2081
+ id?: string;
2082
+ email?: string;
2083
+ first_name?: string;
2084
+ last_name?: string;
2085
+ company?: string;
2086
+ phone?: string;
2087
+ locale?: string;
2088
+ taxability?: TaxabilityEnum;
2089
+ entity_code?: EntityCodeEnum;
2090
+ exempt_number?: string;
2091
+ net_term_days?: number;
2092
+ taxjar_exemption_category?: TaxjarExemptionCategoryEnum;
2093
+ customer_type?: CustomerTypeEnum;
2094
+ auto_collection?: AutoCollectionEnum;
2095
+ allow_direct_debit?: boolean;
2096
+ vat_number?: string;
2097
+ vat_number_prefix?: string;
2098
+ }
2099
+ export interface ShippingAddressImportSubscriptionInputParam {
2100
+ first_name?: string;
2101
+ last_name?: string;
2102
+ email?: string;
2103
+ company?: string;
2104
+ phone?: string;
2105
+ line1?: string;
2106
+ line2?: string;
2107
+ line3?: string;
2108
+ city?: string;
2109
+ state_code?: string;
2110
+ state?: string;
2111
+ zip?: string;
2112
+ country?: string;
2113
+ validation_status?: ValidationStatusEnum;
2114
+ }
2115
+ export interface PaymentMethodImportSubscriptionInputParam {
2116
+ type?: TypeEnum;
2117
+ /**
2118
+ * @deprecated Please refer API docs to use other attributes
2119
+ */
2120
+ gateway?: GatewayEnum;
2121
+ gateway_account_id?: string;
2122
+ reference_id?: string;
2123
+ issuing_country?: string;
2124
+ additional_information?: any;
2125
+ }
2126
+ export interface ContractTermImportSubscriptionInputParam {
2127
+ id?: string;
2128
+ created_at?: number;
2129
+ contract_start?: number;
2130
+ billing_cycle?: number;
2131
+ total_amount_raised?: number;
2132
+ total_amount_raised_before_tax?: number;
2133
+ action_at_term_end?: 'renew' | 'evergreen' | 'cancel' | 'renew_once';
2134
+ cancellation_cutoff_period?: number;
2135
+ }
2136
+ export interface CardImportSubscriptionInputParam {
2137
+ /**
2138
+ * @deprecated Please refer API docs to use other attributes
2139
+ */
2140
+ gateway?: GatewayEnum;
2141
+ gateway_account_id?: string;
2142
+ /**
2143
+ * @deprecated Please refer API docs to use other attributes
2144
+ */
2145
+ tmp_token?: string;
2146
+ first_name?: string;
2147
+ last_name?: string;
2148
+ number?: string;
2149
+ expiry_month?: number;
2150
+ expiry_year?: number;
2151
+ cvv?: string;
2152
+ preferred_scheme?: 'cartes_bancaires' | 'mastercard' | 'visa';
2153
+ billing_addr1?: string;
2154
+ billing_addr2?: string;
2155
+ billing_city?: string;
2156
+ billing_state_code?: string;
2157
+ billing_state?: string;
2158
+ billing_zip?: string;
2159
+ billing_country?: string;
2160
+ additional_information?: any;
2161
+ }
2162
+
2163
+ export interface ChargedEventBasedAddonsImportSubscriptionInputParam {
2164
+ id?: string;
2165
+ last_charged_at?: number;
2166
+ }
2167
+ export interface EventBasedAddonsImportSubscriptionInputParam {
2168
+ id?: string;
2169
+ quantity?: number;
2170
+ unit_price?: number;
2171
+ quantity_in_decimal?: string;
2172
+ unit_price_in_decimal?: string;
2173
+ service_period_in_days?: number;
2174
+ on_event?: OnEventEnum;
2175
+ charge_once?: boolean;
2176
+ }
2177
+ export interface CouponsImportSubscriptionInputParam {
2178
+ /**
2179
+ * @deprecated Please refer API docs to use other attributes
2180
+ */
2181
+ coupon_id?: string;
2182
+ /**
2183
+ * @deprecated Please refer API docs to use other attributes
2184
+ */
2185
+ apply_till?: number;
2186
+ }
2187
+ export interface AddonsImportSubscriptionInputParam {
2188
+ id?: string;
2189
+ quantity?: number;
2190
+ quantity_in_decimal?: string;
2191
+ unit_price?: number;
2192
+ unit_price_in_decimal?: string;
2193
+ billing_cycles?: number;
2194
+ }
2195
+ export interface TransactionImportForCustomerInputParam {
2196
+ amount?: number;
2197
+ payment_method?: PaymentMethodEnum;
2198
+ reference_number?: string;
2199
+ date?: number;
2200
+ }
2201
+ export interface ShippingAddressImportForCustomerInputParam {
2202
+ first_name?: string;
2203
+ last_name?: string;
2204
+ email?: string;
2205
+ company?: string;
2206
+ phone?: string;
2207
+ line1?: string;
2208
+ line2?: string;
2209
+ line3?: string;
2210
+ city?: string;
2211
+ state_code?: string;
2212
+ state?: string;
2213
+ zip?: string;
2214
+ country?: string;
2215
+ validation_status?: ValidationStatusEnum;
2216
+ }
2217
+ export interface ContractTermImportForCustomerInputParam {
2218
+ id?: string;
2219
+ created_at?: number;
2220
+ contract_start?: number;
2221
+ billing_cycle?: number;
2222
+ total_amount_raised?: number;
2223
+ total_amount_raised_before_tax?: number;
2224
+ action_at_term_end?: 'renew' | 'evergreen' | 'cancel' | 'renew_once';
2225
+ cancellation_cutoff_period?: number;
2226
+ }
2227
+
2228
+ export interface ChargedEventBasedAddonsImportForCustomerInputParam {
2229
+ id?: string;
2230
+ last_charged_at?: number;
2231
+ }
2232
+ export interface EventBasedAddonsImportForCustomerInputParam {
2233
+ id?: string;
2234
+ quantity?: number;
2235
+ unit_price?: number;
2236
+ quantity_in_decimal?: string;
2237
+ unit_price_in_decimal?: string;
2238
+ service_period_in_days?: number;
2239
+ on_event?: OnEventEnum;
2240
+ charge_once?: boolean;
2241
+ }
2242
+ export interface CouponsImportForCustomerInputParam {
2243
+ /**
2244
+ * @deprecated Please refer API docs to use other attributes
2245
+ */
2246
+ coupon_id?: string;
2247
+ /**
2248
+ * @deprecated Please refer API docs to use other attributes
2249
+ */
2250
+ apply_till?: number;
2251
+ }
2252
+ export interface AddonsImportForCustomerInputParam {
2253
+ id?: string;
2254
+ quantity?: number;
2255
+ quantity_in_decimal?: string;
2256
+ unit_price?: number;
2257
+ unit_price_in_decimal?: string;
2258
+ billing_cycles?: number;
2259
+ }
2260
+ export interface ContractTermImportContractTermInputParam {
2261
+ id?: string;
2262
+ created_at?: number;
2263
+ contract_start?: number;
2264
+ contract_end?: number;
2265
+ status?: 'active' | 'completed' | 'cancelled' | 'terminated';
2266
+ total_amount_raised?: number;
2267
+ total_amount_raised_before_tax?: number;
2268
+ total_contract_value?: number;
2269
+ total_contract_value_before_tax?: number;
2270
+ billing_cycle?: number;
2271
+ action_at_term_end?: 'renew' | 'evergreen' | 'cancel' | 'renew_once';
2272
+ cancellation_cutoff_period?: number;
2273
+ }
2274
+
2275
+ export interface TiersImportUnbilledChargesInputParam {
2276
+ unbilled_charge_id: string;
2277
+ starting_unit?: number;
2278
+ ending_unit?: number;
2279
+ quantity_used?: number;
2280
+ unit_amount?: number;
2281
+ starting_unit_in_decimal?: string;
2282
+ ending_unit_in_decimal?: string;
2283
+ quantity_used_in_decimal?: string;
2284
+ unit_amount_in_decimal?: string;
2285
+ }
2286
+ export interface DiscountsImportUnbilledChargesInputParam {
2287
+ unbilled_charge_id?: string;
2288
+ entity_type?:
2289
+ | 'item_level_coupon'
2290
+ | 'document_level_coupon'
2291
+ | 'item_level_discount'
2292
+ | 'document_level_discount';
2293
+ entity_id?: string;
2294
+ description?: string;
2295
+ amount: number;
2296
+ }
2297
+ export interface UnbilledChargesImportUnbilledChargesInputParam {
2298
+ id?: string;
2299
+ date_from: number;
2300
+ date_to: number;
2301
+ entity_type:
2302
+ | 'adhoc'
2303
+ | 'plan_item_price'
2304
+ | 'addon_item_price'
2305
+ | 'charge_item_price';
2306
+ entity_id?: string;
2307
+ description?: string;
2308
+ unit_amount?: number;
2309
+ quantity?: number;
2310
+ amount?: number;
2311
+ unit_amount_in_decimal?: string;
2312
+ quantity_in_decimal?: string;
2313
+ amount_in_decimal?: string;
2314
+ discount_amount?: number;
2315
+ use_for_proration?: boolean;
2316
+ is_advance_charge?: boolean;
2317
+ }
2318
+ export interface TransactionImportForItemsInputParam {
2319
+ amount?: number;
2320
+ payment_method?: PaymentMethodEnum;
2321
+ reference_number?: string;
2322
+ date?: number;
2323
+ }
2324
+ export interface ShippingAddressImportForItemsInputParam {
2325
+ first_name?: string;
2326
+ last_name?: string;
2327
+ email?: string;
2328
+ company?: string;
2329
+ phone?: string;
2330
+ line1?: string;
2331
+ line2?: string;
2332
+ line3?: string;
2333
+ city?: string;
2334
+ state_code?: string;
2335
+ state?: string;
2336
+ zip?: string;
2337
+ country?: string;
2338
+ validation_status?: ValidationStatusEnum;
2339
+ }
2340
+ export interface ContractTermImportForItemsInputParam {
2341
+ id?: string;
2342
+ created_at?: number;
2343
+ contract_start?: number;
2344
+ billing_cycle?: number;
2345
+ total_amount_raised?: number;
2346
+ total_amount_raised_before_tax?: number;
2347
+ action_at_term_end?: 'renew' | 'evergreen' | 'cancel' | 'renew_once';
2348
+ cancellation_cutoff_period?: number;
2349
+ }
2350
+
2351
+ export interface SubscriptionItemsImportForItemsInputParam {
2352
+ item_price_id: string;
2353
+ quantity?: number;
2354
+ quantity_in_decimal?: string;
2355
+ unit_price?: number;
2356
+ unit_price_in_decimal?: string;
2357
+ billing_cycles?: number;
2358
+ trial_end?: number;
2359
+ service_period_days?: number;
2360
+ charge_on_event?: ChargeOnEventEnum;
2361
+ charge_once?: boolean;
2362
+ /**
2363
+ * @deprecated Please refer API docs to use other attributes
2364
+ */
2365
+ item_type?: ItemTypeEnum;
2366
+ }
2367
+ export interface DiscountsImportForItemsInputParam {
2368
+ apply_on: ApplyOnEnum;
2369
+ duration_type: DurationTypeEnum;
2370
+ percentage?: number;
2371
+ amount?: number;
2372
+ period?: number;
2373
+ period_unit?: PeriodUnitEnum;
2374
+ included_in_mrr?: boolean;
2375
+ item_price_id?: string;
2376
+ }
2377
+ export interface CouponsImportForItemsInputParam {
2378
+ /**
2379
+ * @deprecated Please refer API docs to use other attributes
2380
+ */
2381
+ coupon_id?: string;
2382
+ /**
2383
+ * @deprecated Please refer API docs to use other attributes
2384
+ */
2385
+ apply_till?: number;
2386
+ }
2387
+ export interface ItemTiersImportForItemsInputParam {
2388
+ item_price_id?: string;
2389
+ starting_unit?: number;
2390
+ ending_unit?: number;
2391
+ price?: number;
2392
+ starting_unit_in_decimal?: string;
2393
+ ending_unit_in_decimal?: string;
2394
+ price_in_decimal?: string;
2395
+ }
2396
+ export interface ChargedItemsImportForItemsInputParam {
2397
+ item_price_id?: string;
2398
+ last_charged_at?: number;
2399
+ }
2400
+ export interface EventBasedAddonsCancelInputParam {
2401
+ id?: string;
2402
+ quantity?: number;
2403
+ unit_price?: number;
2404
+ service_period_in_days?: number;
2405
+ }
2406
+ export interface SubscriptionItemsCancelForItemsInputParam {
2407
+ item_price_id?: string;
2408
+ quantity?: number;
2409
+ quantity_in_decimal?: string;
2410
+ unit_price?: number;
2411
+ unit_price_in_decimal?: string;
2412
+ service_period_days?: number;
2413
+ }
2414
+ export interface PaymentIntentResumeInputParam {
2415
+ id?: string;
2416
+ gateway_account_id?: string;
2417
+ gw_token?: string;
2418
+ payment_method_type?:
2419
+ | 'card'
2420
+ | 'ideal'
2421
+ | 'sofort'
2422
+ | 'bancontact'
2423
+ | 'google_pay'
2424
+ | 'dotpay'
2425
+ | 'giropay'
2426
+ | 'apple_pay'
2427
+ | 'upi'
2428
+ | 'netbanking_emandates'
2429
+ | 'paypal_express_checkout'
2430
+ | 'direct_debit'
2431
+ | 'boleto'
2432
+ | 'venmo'
2433
+ | 'amazon_payments'
2434
+ | 'pay_to'
2435
+ | 'faster_payments'
2436
+ | 'sepa_instant_transfer'
2437
+ | 'klarna_pay_now'
2438
+ | 'online_banking_poland';
2439
+ reference_id?: string;
2440
+ /**
2441
+ * @deprecated Please refer API docs to use other attributes
2442
+ */
2443
+ gw_payment_method_id?: string;
2444
+ additional_information?: any;
2445
+ }
2446
+ }
2447
+ }