chargebee 2.25.0 → 2.25.2

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 (64) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/lib/chargebee.js +1 -1
  3. package/package.json +1 -1
  4. package/types/index.d.ts +19 -2
  5. package/types/resources/Address.d.ts +1 -3
  6. package/types/resources/AdvanceInvoiceSchedule.d.ts +1 -1
  7. package/types/resources/AttachedItem.d.ts +2 -6
  8. package/types/resources/Card.d.ts +1 -4
  9. package/types/resources/Comment.d.ts +2 -3
  10. package/types/resources/Contact.d.ts +1 -2
  11. package/types/resources/ContractTerm.d.ts +1 -2
  12. package/types/resources/Coupon.d.ts +2 -5
  13. package/types/resources/CouponCode.d.ts +1 -1
  14. package/types/resources/CouponSet.d.ts +2 -5
  15. package/types/resources/CreditNote.d.ts +2 -10
  16. package/types/resources/CreditNoteEstimate.d.ts +1 -1
  17. package/types/resources/Customer.d.ts +3 -17
  18. package/types/resources/DifferentialPrice.d.ts +2 -6
  19. package/types/resources/Discount.d.ts +1 -2
  20. package/types/resources/Download.d.ts +1 -2
  21. package/types/resources/EntitlementOverride.d.ts +2 -3
  22. package/types/resources/Estimate.d.ts +1 -13
  23. package/types/resources/Event.d.ts +2 -2
  24. package/types/resources/Export.d.ts +1 -15
  25. package/types/resources/Feature.d.ts +2 -2
  26. package/types/resources/Gift.d.ts +2 -4
  27. package/types/resources/Hierarchy.d.ts +1 -2
  28. package/types/resources/HostedPage.d.ts +2 -16
  29. package/types/resources/ImpactedItem.d.ts +1 -1
  30. package/types/resources/ImpactedSubscription.d.ts +1 -1
  31. package/types/resources/InAppSubscription.d.ts +1 -5
  32. package/types/resources/Invoice.d.ts +3 -25
  33. package/types/resources/InvoiceEstimate.d.ts +1 -1
  34. package/types/resources/Item.d.ts +2 -1
  35. package/types/resources/ItemEntitlement.d.ts +3 -5
  36. package/types/resources/ItemFamily.d.ts +2 -1
  37. package/types/resources/ItemPrice.d.ts +4 -3
  38. package/types/resources/Media.d.ts +1 -2
  39. package/types/resources/NonSubscription.d.ts +1 -2
  40. package/types/resources/Order.d.ts +2 -9
  41. package/types/resources/PaymentIntent.d.ts +1 -3
  42. package/types/resources/PaymentReferenceNumber.d.ts +1 -2
  43. package/types/resources/PaymentSource.d.ts +2 -14
  44. package/types/resources/PaymentVoucher.d.ts +3 -4
  45. package/types/resources/PortalSession.d.ts +1 -3
  46. package/types/resources/PromotionalCredit.d.ts +2 -5
  47. package/types/resources/Purchase.d.ts +1 -3
  48. package/types/resources/Quote.d.ts +3 -14
  49. package/types/resources/QuoteLineGroup.d.ts +1 -1
  50. package/types/resources/QuotedCharge.d.ts +1 -1
  51. package/types/resources/QuotedSubscription.d.ts +1 -1
  52. package/types/resources/ResourceMigration.d.ts +1 -2
  53. package/types/resources/SiteMigrationDetail.d.ts +2 -2
  54. package/types/resources/Subscription.d.ts +4 -18
  55. package/types/resources/SubscriptionEntitlement.d.ts +2 -3
  56. package/types/resources/SubscriptionEstimate.d.ts +1 -1
  57. package/types/resources/TaxWithheld.d.ts +1 -2
  58. package/types/resources/ThirdPartyPaymentMethod.d.ts +1 -2
  59. package/types/resources/TimeMachine.d.ts +1 -3
  60. package/types/resources/Token.d.ts +1 -3
  61. package/types/resources/Transaction.d.ts +3 -7
  62. package/types/resources/UnbilledCharge.d.ts +2 -5
  63. package/types/resources/Usage.d.ts +2 -6
  64. package/types/resources/VirtualBankAccount.d.ts +2 -4
@@ -1,6 +1,6 @@
1
+ ///<reference path='./../core.d.ts'/>
1
2
  declare module 'chargebee' {
2
3
  export interface Invoice {
3
-
4
4
  id:string;
5
5
  po_number?:string;
6
6
  customer_id:string;
@@ -102,7 +102,6 @@ declare module 'chargebee' {
102
102
  invoice:Invoice;
103
103
  }
104
104
  export interface DeleteLineItemsInputParam {
105
-
106
105
  line_items?:{id?:string}[];
107
106
  }
108
107
  export interface RemoveCreditNoteResponse {
@@ -110,7 +109,6 @@ declare module 'chargebee' {
110
109
  credit_note:CreditNote;
111
110
  }
112
111
  export interface RemoveCreditNoteInputParam {
113
-
114
112
  credit_note?:{id:string};
115
113
  }
116
114
  export interface RemovePaymentResponse {
@@ -118,21 +116,18 @@ declare module 'chargebee' {
118
116
  transaction:Transaction;
119
117
  }
120
118
  export interface RemovePaymentInputParam {
121
-
122
119
  transaction?:{id:string};
123
120
  }
124
121
  export interface StopDunningResponse {
125
122
  invoice:Invoice;
126
123
  }
127
124
  export interface StopDunningInputParam {
128
-
129
125
  comment?:string;
130
126
  }
131
127
  export interface ApplyPaymentsResponse {
132
128
  invoice:Invoice;
133
129
  }
134
130
  export interface ApplyPaymentsInputParam {
135
-
136
131
  comment?:string;
137
132
  transactions?:{id?:string}[];
138
133
  }
@@ -141,7 +136,6 @@ declare module 'chargebee' {
141
136
  credit_note?:CreditNote;
142
137
  }
143
138
  export interface VoidInvoiceInputParam {
144
-
145
139
  comment?:string;
146
140
  void_reason_code?:string;
147
141
  }
@@ -149,7 +143,6 @@ declare module 'chargebee' {
149
143
  invoice:Invoice;
150
144
  }
151
145
  export interface AddChargeInputParam {
152
-
153
146
  amount:number;
154
147
  description:string;
155
148
  avalara_sale_type?:AvalaraSaleType;
@@ -168,14 +161,12 @@ declare module 'chargebee' {
168
161
  credit_note:CreditNote;
169
162
  }
170
163
  export interface WriteOffInputParam {
171
-
172
164
  comment?:string;
173
165
  }
174
166
  export interface AddChargeItemResponse {
175
167
  invoice:Invoice;
176
168
  }
177
169
  export interface AddChargeItemInputParam {
178
-
179
170
  comment?:string;
180
171
  subscription_id?:string;
181
172
  item_price?:{date_from?:number,date_to?:number,item_price_id:string,quantity?:number,quantity_in_decimal?:string,unit_price?:number,unit_price_in_decimal?:string};
@@ -186,7 +177,7 @@ declare module 'chargebee' {
186
177
  next_offset?:string;
187
178
  }
188
179
  export interface ListInputParam {
189
- [key: string]: string | number | object | boolean;
180
+ [key : string]: any;
190
181
  limit?:number;
191
182
  offset?:string;
192
183
  include_deleted?:boolean;
@@ -216,7 +207,6 @@ declare module 'chargebee' {
216
207
  invoice:Invoice;
217
208
  }
218
209
  export interface CloseInputParam {
219
-
220
210
  comment?:string;
221
211
  invoice_note?:string;
222
212
  remove_general_note?:boolean;
@@ -227,7 +217,6 @@ declare module 'chargebee' {
227
217
  invoice:Invoice;
228
218
  }
229
219
  export interface ApplyCreditsInputParam {
230
-
231
220
  comment?:string;
232
221
  credit_notes?:{id?:string}[];
233
222
  }
@@ -239,7 +228,6 @@ declare module 'chargebee' {
239
228
  invoice:Invoice;
240
229
  }
241
230
  export interface CreateForChargeItemsAndChargesInputParam {
242
-
243
231
  customer_id?:string;
244
232
  subscription_id?:string;
245
233
  currency_code?:string;
@@ -269,7 +257,6 @@ declare module 'chargebee' {
269
257
  invoice:Invoice;
270
258
  }
271
259
  export interface UpdateDetailsInputParam {
272
-
273
260
  vat_number?:string;
274
261
  vat_number_prefix?:string;
275
262
  po_number?:string;
@@ -282,7 +269,6 @@ declare module 'chargebee' {
282
269
  transaction:Transaction;
283
270
  }
284
271
  export interface RecordPaymentInputParam {
285
-
286
272
  comment?:string;
287
273
  transaction?:{amount?:number,date?:number,error_code?:string,error_text?:string,id_at_gateway?:string,payment_method:PaymentMethod,reference_number?:string,status?:'success' | 'failure'};
288
274
  }
@@ -290,7 +276,6 @@ declare module 'chargebee' {
290
276
  invoice:Invoice;
291
277
  }
292
278
  export interface DeleteInputParam {
293
-
294
279
  comment?:string;
295
280
  claim_credits?:boolean;
296
281
  }
@@ -299,7 +284,6 @@ declare module 'chargebee' {
299
284
  credit_note?:CreditNote;
300
285
  }
301
286
  export interface ImportInvoiceInputParam {
302
-
303
287
  id:string;
304
288
  currency_code?:string;
305
289
  customer_id?:string;
@@ -337,7 +321,6 @@ declare module 'chargebee' {
337
321
  invoice:Invoice;
338
322
  }
339
323
  export interface RecordTaxWithheldInputParam {
340
-
341
324
  tax_withheld?:{amount:number,date?:number,description?:string,reference_number?:string};
342
325
  }
343
326
  export interface ResendEinvoiceResponse {
@@ -348,7 +331,6 @@ declare module 'chargebee' {
348
331
  invoice:Invoice;
349
332
  }
350
333
  export interface RemoveTaxWithheldInputParam {
351
-
352
334
  tax_withheld?:{id:string};
353
335
  }
354
336
  export interface ListPaymentReferenceNumbersResponse {
@@ -356,7 +338,7 @@ declare module 'chargebee' {
356
338
  next_offset?:string;
357
339
  }
358
340
  export interface ListPaymentReferenceNumbersInputParam {
359
- [key: string]: string | number | object | boolean;
341
+ [key : string]: any;
360
342
  limit?:number;
361
343
  offset?:string;
362
344
  id?:{in?:string,is?:string};
@@ -367,7 +349,6 @@ declare module 'chargebee' {
367
349
  transaction:Transaction;
368
350
  }
369
351
  export interface CollectPaymentInputParam {
370
-
371
352
  amount?:number;
372
353
  authorization_transaction_id?:string;
373
354
  payment_source_id?:string;
@@ -384,7 +365,6 @@ declare module 'chargebee' {
384
365
  credit_note?:CreditNote;
385
366
  }
386
367
  export interface RefundInputParam {
387
-
388
368
  refund_amount?:number;
389
369
  comment?:string;
390
370
  customer_notes?:string;
@@ -396,7 +376,6 @@ declare module 'chargebee' {
396
376
  credit_note?:CreditNote;
397
377
  }
398
378
  export interface RecordRefundInputParam {
399
-
400
379
  comment?:string;
401
380
  customer_notes?:string;
402
381
  transaction?:{amount?:number,date:number,payment_method:PaymentMethod,reference_number?:string};
@@ -406,7 +385,6 @@ declare module 'chargebee' {
406
385
  download:Download;
407
386
  }
408
387
  export interface PdfInputParam {
409
-
410
388
  disposition_type?:DispositionType;
411
389
  }
412
390
  export interface DownloadEinvoiceResponse {
@@ -1,6 +1,6 @@
1
+ ///<reference path='./../core.d.ts'/>
1
2
  declare module 'chargebee' {
2
3
  export interface InvoiceEstimate {
3
-
4
4
  recurring:boolean;
5
5
  price_type:PriceType;
6
6
  currency_code:string;
@@ -1,3 +1,4 @@
1
+ ///<reference path='./../core.d.ts'/>
1
2
  declare module 'chargebee' {
2
3
  export interface Item {
3
4
  [key : string] : any;
@@ -39,7 +40,7 @@ declare module 'chargebee' {
39
40
  next_offset?:string;
40
41
  }
41
42
  export interface ListInputParam {
42
- [key: string]: string | number | object | boolean;
43
+ [key : string]: any;
43
44
  limit?:number;
44
45
  offset?:string;
45
46
  id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
@@ -1,6 +1,6 @@
1
+ ///<reference path='./../core.d.ts'/>
1
2
  declare module 'chargebee' {
2
3
  export interface ItemEntitlement {
3
-
4
4
  id:string;
5
5
  item_id?:string;
6
6
  item_type?:'item' | 'charge' | 'addon' | 'subscription' | 'plan';
@@ -21,7 +21,7 @@ declare module 'chargebee' {
21
21
  next_offset?:string;
22
22
  }
23
23
  export interface ItemEntitlementsForFeatureInputParam {
24
- [key: string]: string | number | object | boolean;
24
+ [key : string]: any;
25
25
  limit?:number;
26
26
  offset?:string;
27
27
  }
@@ -29,7 +29,6 @@ declare module 'chargebee' {
29
29
  item_entitlement:ItemEntitlement;
30
30
  }
31
31
  export interface AddItemEntitlementsInputParam {
32
-
33
32
  action:Action;
34
33
  item_entitlements?:{item_id:string,item_type?:'item' | 'charge' | 'addon' | 'subscription' | 'plan',value?:string}[];
35
34
  }
@@ -38,7 +37,7 @@ declare module 'chargebee' {
38
37
  next_offset?:string;
39
38
  }
40
39
  export interface ItemEntitlementsForItemInputParam {
41
- [key: string]: string | number | object | boolean;
40
+ [key : string]: any;
42
41
  limit?:number;
43
42
  offset?:string;
44
43
  }
@@ -46,7 +45,6 @@ declare module 'chargebee' {
46
45
  item_entitlement:ItemEntitlement;
47
46
  }
48
47
  export interface UpsertOrRemoveItemEntitlementsForItemInputParam {
49
-
50
48
  action:Action;
51
49
  item_entitlements?:{feature_id:string,value?:string}[];
52
50
  }
@@ -1,3 +1,4 @@
1
+ ///<reference path='./../core.d.ts'/>
1
2
  declare module 'chargebee' {
2
3
  export interface ItemFamily {
3
4
  [key : string] : any;
@@ -26,7 +27,7 @@ declare module 'chargebee' {
26
27
  next_offset?:string;
27
28
  }
28
29
  export interface ListInputParam {
29
- [key: string]: string | number | object | boolean;
30
+ [key : string]: any;
30
31
  limit?:number;
31
32
  offset?:string;
32
33
  id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
@@ -1,3 +1,4 @@
1
+ ///<reference path='./../core.d.ts'/>
1
2
  declare module 'chargebee' {
2
3
  export interface ItemPrice {
3
4
  [key : string] : any;
@@ -53,7 +54,7 @@ declare module 'chargebee' {
53
54
  next_offset?:string;
54
55
  }
55
56
  export interface FindApplicableItemsInputParam {
56
- [key: string]: string | number | object | boolean;
57
+ [key : string]: any;
57
58
  limit?:number;
58
59
  offset?:string;
59
60
  sort_by?:{asc?:'updated_at' | 'name' | 'id',desc?:'updated_at' | 'name' | 'id'};
@@ -103,7 +104,7 @@ declare module 'chargebee' {
103
104
  next_offset?:string;
104
105
  }
105
106
  export interface FindApplicableItemPricesInputParam {
106
- [key: string]: string | number | object | boolean;
107
+ [key : string]: any;
107
108
  limit?:number;
108
109
  offset?:string;
109
110
  item_id?:string;
@@ -114,7 +115,7 @@ declare module 'chargebee' {
114
115
  next_offset?:string;
115
116
  }
116
117
  export interface ListInputParam {
117
- [key: string]: string | number | object | boolean;
118
+ [key : string]: any;
118
119
  limit?:number;
119
120
  offset?:string;
120
121
  id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
@@ -1,10 +1,9 @@
1
+ ///<reference path='./../core.d.ts'/>
1
2
  declare module 'chargebee' {
2
3
  export interface Media {
3
-
4
4
  id:string;
5
5
  url?:string;
6
6
  alt_text?:string;
7
7
  media_type?:string;
8
8
  }
9
-
10
9
  }
@@ -1,6 +1,6 @@
1
+ ///<reference path='./../core.d.ts'/>
1
2
  declare module 'chargebee' {
2
3
  export interface NonSubscription {
3
-
4
4
  invoice_id:string;
5
5
  customer_id?:string;
6
6
  charge_id:string;
@@ -13,7 +13,6 @@ declare module 'chargebee' {
13
13
  non_subscription:NonSubscription;
14
14
  }
15
15
  export interface ProcessReceiptInputParam {
16
-
17
16
  receipt:string;
18
17
  product?:{currency_code:string,id:string,name?:string,price:number,price_in_decimal?:string,type:'non_consumable' | 'consumable' | 'non_renewing_subscription'};
19
18
  customer?:{email?:string,first_name?:string,id?:string,last_name?:string};
@@ -1,6 +1,6 @@
1
+ ///<reference path='./../core.d.ts'/>
1
2
  declare module 'chargebee' {
2
3
  export interface Order {
3
-
4
4
  id:string;
5
5
  document_number?:string;
6
6
  invoice_id?:string;
@@ -77,7 +77,7 @@ declare module 'chargebee' {
77
77
  next_offset?:string;
78
78
  }
79
79
  export interface ListInputParam {
80
- [key: string]: string | number | object | boolean;
80
+ [key : string]: any;
81
81
  limit?:number;
82
82
  offset?:string;
83
83
  include_deleted?:boolean;
@@ -102,7 +102,6 @@ declare module 'chargebee' {
102
102
  order:Order;
103
103
  }
104
104
  export interface CreateInputParam {
105
-
106
105
  id?:string;
107
106
  invoice_id:string;
108
107
  status?:'new' | 'processing' | 'cancelled' | 'voided' | 'complete';
@@ -117,7 +116,6 @@ declare module 'chargebee' {
117
116
  order:Order;
118
117
  }
119
118
  export interface ImportOrderInputParam {
120
-
121
119
  id?:string;
122
120
  document_number?:string;
123
121
  invoice_id:string;
@@ -151,7 +149,6 @@ declare module 'chargebee' {
151
149
  order:Order;
152
150
  }
153
151
  export interface ResendInputParam {
154
-
155
152
  shipping_date?:number;
156
153
  resend_reason?:string;
157
154
  order_line_items?:{fulfillment_quantity?:number,id?:string}[];
@@ -160,14 +157,12 @@ declare module 'chargebee' {
160
157
  order:Order;
161
158
  }
162
159
  export interface ReopenInputParam {
163
-
164
160
  void_cancellation_credit_notes?:boolean;
165
161
  }
166
162
  export interface CancelResponse {
167
163
  order:Order;
168
164
  }
169
165
  export interface CancelInputParam {
170
-
171
166
  cancellation_reason:'delivery_date_missed' | 'subscription_cancelled' | 'product_unsatisfactory' | 'fraudulent_transaction' | 'third_party_cancellation' | 'order_resent' | 'payment_declined' | 'product_not_required' | 'invoice_voided' | 'invoice_written_off' | 'product_not_available' | 'shipping_cut_off_passed' | 'others' | 'alternative_found';
172
167
  customer_notes?:string;
173
168
  comment?:string;
@@ -182,7 +177,6 @@ declare module 'chargebee' {
182
177
  order:Order;
183
178
  }
184
179
  export interface UpdateInputParam {
185
-
186
180
  reference_id?:string;
187
181
  batch_id?:string;
188
182
  note?:string;
@@ -208,7 +202,6 @@ declare module 'chargebee' {
208
202
  order:Order;
209
203
  }
210
204
  export interface CreateRefundableCreditNoteInputParam {
211
-
212
205
  customer_notes?:string;
213
206
  comment?:string;
214
207
  credit_note?:{reason_code:'other' | 'product_unsatisfactory' | 'subscription_pause' | 'order_cancellation' | 'service_unsatisfactory' | 'subscription_cancellation' | 'chargeback' | 'order_change' | 'write_off' | 'waiver' | 'subscription_change' | 'fraudulent',total:number};
@@ -1,6 +1,6 @@
1
+ ///<reference path='./../core.d.ts'/>
1
2
  declare module 'chargebee' {
2
3
  export interface PaymentIntent {
3
-
4
4
  id:string;
5
5
  status:'consumed' | 'in_progress' | 'inited' | 'expired' | 'authorized';
6
6
  currency_code?:string;
@@ -34,7 +34,6 @@ declare module 'chargebee' {
34
34
  payment_intent:PaymentIntent;
35
35
  }
36
36
  export interface UpdateInputParam {
37
-
38
37
  amount?:number;
39
38
  currency_code?:string;
40
39
  gateway_account_id?:string;
@@ -46,7 +45,6 @@ declare module 'chargebee' {
46
45
  payment_intent:PaymentIntent;
47
46
  }
48
47
  export interface CreateInputParam {
49
-
50
48
  business_entity_id?:string;
51
49
  customer_id?:string;
52
50
  amount:number;
@@ -1,10 +1,9 @@
1
+ ///<reference path='./../core.d.ts'/>
1
2
  declare module 'chargebee' {
2
3
  export interface PaymentReferenceNumber {
3
-
4
4
  id:string;
5
5
  type:'frn' | 'kid' | 'fik' | 'ocr';
6
6
  number:string;
7
7
  invoice_id?:string;
8
8
  }
9
-
10
9
  }
@@ -1,6 +1,6 @@
1
+ ///<reference path='./../core.d.ts'/>
1
2
  declare module 'chargebee' {
2
3
  export interface PaymentSource {
3
-
4
4
  id:string;
5
5
  resource_version?:number;
6
6
  updated_at?:number;
@@ -48,7 +48,6 @@ declare module 'chargebee' {
48
48
  payment_source:PaymentSource;
49
49
  }
50
50
  export interface CreateUsingPermanentTokenInputParam {
51
-
52
51
  customer_id:string;
53
52
  type:Type;
54
53
  gateway_account_id?:string;
@@ -67,7 +66,6 @@ declare module 'chargebee' {
67
66
  payment_source:PaymentSource;
68
67
  }
69
68
  export interface CreateCardInputParam {
70
-
71
69
  customer_id:string;
72
70
  replace_primary_payment_source?:boolean;
73
71
  card?:{additional_information?:object,billing_addr1?:string,billing_addr2?:string,billing_city?:string,billing_country?:string,billing_state?:string,billing_state_code?:string,billing_zip?:string,cvv?:string,expiry_month:number,expiry_year:number,first_name?:string,gateway_account_id?:string,last_name?:string,number:string};
@@ -76,7 +74,6 @@ declare module 'chargebee' {
76
74
  payment_source:PaymentSource;
77
75
  }
78
76
  export interface VerifyBankAccountInputParam {
79
-
80
77
  amount1:number;
81
78
  amount2:number;
82
79
  }
@@ -85,7 +82,7 @@ declare module 'chargebee' {
85
82
  next_offset?:string;
86
83
  }
87
84
  export interface ListInputParam {
88
- [key: string]: string | number | object | boolean;
85
+ [key : string]: any;
89
86
  limit?:number;
90
87
  offset?:string;
91
88
  subscription_id?:string;
@@ -100,7 +97,6 @@ declare module 'chargebee' {
100
97
  third_party_payment_method:ThirdPartyPaymentMethod;
101
98
  }
102
99
  export interface ExportPaymentSourceInputParam {
103
-
104
100
  gateway_account_id:string;
105
101
  }
106
102
  export interface CreateUsingPaymentIntentResponse {
@@ -108,7 +104,6 @@ declare module 'chargebee' {
108
104
  payment_source:PaymentSource;
109
105
  }
110
106
  export interface CreateUsingPaymentIntentInputParam {
111
-
112
107
  customer_id:string;
113
108
  replace_primary_payment_source?:boolean;
114
109
  payment_intent?:{additional_info?:object,additional_information?:object,gateway_account_id?:string,gw_token?:string,id?:string,payment_method_type?:'giropay' | 'ideal' | 'google_pay' | 'netbanking_emandates' | 'dotpay' | 'boleto' | 'direct_debit' | 'sofort' | 'upi' | 'apple_pay' | 'bancontact' | 'paypal_express_checkout' | 'card',reference_id?:string};
@@ -122,7 +117,6 @@ declare module 'chargebee' {
122
117
  payment_source:PaymentSource;
123
118
  }
124
119
  export interface CreateVoucherPaymentSourceInputParam {
125
-
126
120
  customer_id:string;
127
121
  voucher_payment_source?:{billing_address?:object,gateway_account_id?:string,tax_id?:string,voucher_type:VoucherType};
128
122
  }
@@ -131,7 +125,6 @@ declare module 'chargebee' {
131
125
  payment_source:PaymentSource;
132
126
  }
133
127
  export interface CreateUsingTempTokenInputParam {
134
-
135
128
  customer_id:string;
136
129
  gateway_account_id?:string;
137
130
  type:Type;
@@ -145,7 +138,6 @@ declare module 'chargebee' {
145
138
  payment_source:PaymentSource;
146
139
  }
147
140
  export interface UpdateCardInputParam {
148
-
149
141
  gateway_meta_data?:object;
150
142
  reference_transaction?:string;
151
143
  card?:{billing_addr1?:string,billing_addr2?:string,billing_city?:string,billing_country?:string,billing_state?:string,billing_state_code?:string,billing_zip?:string,expiry_month?:number,expiry_year?:number,first_name?:string,last_name?:string};
@@ -155,7 +147,6 @@ declare module 'chargebee' {
155
147
  payment_source:PaymentSource;
156
148
  }
157
149
  export interface SwitchGatewayAccountInputParam {
158
-
159
150
  gateway_account_id:string;
160
151
  }
161
152
  export interface CreateUsingTokenResponse {
@@ -163,7 +154,6 @@ declare module 'chargebee' {
163
154
  payment_source:PaymentSource;
164
155
  }
165
156
  export interface CreateUsingTokenInputParam {
166
-
167
157
  customer_id:string;
168
158
  replace_primary_payment_source?:boolean;
169
159
  token_id:string;
@@ -178,7 +168,6 @@ declare module 'chargebee' {
178
168
  payment_source:PaymentSource;
179
169
  }
180
170
  export interface CreateBankAccountInputParam {
181
-
182
171
  customer_id:string;
183
172
  issuing_country?:string;
184
173
  replace_primary_payment_source?:boolean;
@@ -189,7 +178,6 @@ declare module 'chargebee' {
189
178
  payment_source:PaymentSource;
190
179
  }
191
180
  export interface UpdateBankAccountInputParam {
192
-
193
181
  bank_account?:{email?:string,first_name?:string,last_name?:string};
194
182
  }
195
183
  export interface Card {
@@ -1,6 +1,6 @@
1
+ ///<reference path='./../core.d.ts'/>
1
2
  declare module 'chargebee' {
2
3
  export interface PaymentVoucher {
3
-
4
4
  id:string;
5
5
  id_at_gateway?:string;
6
6
  payment_voucher_type:PaymentVoucherType;
@@ -34,7 +34,7 @@ declare module 'chargebee' {
34
34
  next_offset?:string;
35
35
  }
36
36
  export interface Payment_vouchersForCustomerInputParam {
37
- [key: string]: string | number | object | boolean;
37
+ [key : string]: any;
38
38
  limit?:number;
39
39
  offset?:string;
40
40
  status?:{in?:string,is?:'consumed' | 'expired' | 'failure' | 'active',is_not?:'consumed' | 'expired' | 'failure' | 'active',not_in?:string};
@@ -45,7 +45,7 @@ declare module 'chargebee' {
45
45
  next_offset?:string;
46
46
  }
47
47
  export interface Payment_vouchersForInvoiceInputParam {
48
- [key: string]: string | number | object | boolean;
48
+ [key : string]: any;
49
49
  limit?:number;
50
50
  offset?:string;
51
51
  status?:{in?:string,is?:'consumed' | 'expired' | 'failure' | 'active',is_not?:'consumed' | 'expired' | 'failure' | 'active',not_in?:string};
@@ -59,7 +59,6 @@ declare module 'chargebee' {
59
59
  payment_voucher:PaymentVoucher;
60
60
  }
61
61
  export interface CreateInputParam {
62
-
63
62
  customer_id:string;
64
63
  payment_source_id?:string;
65
64
  voucher_payment_source?:{voucher_type:VoucherType};
@@ -1,6 +1,6 @@
1
+ ///<reference path='./../core.d.ts'/>
1
2
  declare module 'chargebee' {
2
3
  export interface PortalSession {
3
-
4
4
  id:string;
5
5
  token:string;
6
6
  access_url:string;
@@ -26,7 +26,6 @@ declare module 'chargebee' {
26
26
  portal_session:PortalSession;
27
27
  }
28
28
  export interface CreateInputParam {
29
-
30
29
  redirect_url?:string;
31
30
  forward_url?:string;
32
31
  customer?:{id:string};
@@ -35,7 +34,6 @@ declare module 'chargebee' {
35
34
  portal_session:PortalSession;
36
35
  }
37
36
  export interface ActivateInputParam {
38
-
39
37
  token:string;
40
38
  }
41
39
  export interface LogoutResponse {
@@ -1,6 +1,6 @@
1
+ ///<reference path='./../core.d.ts'/>
1
2
  declare module 'chargebee' {
2
3
  export interface PromotionalCredit {
3
-
4
4
  id:string;
5
5
  customer_id:string;
6
6
  type:'decrement' | 'increment';
@@ -31,7 +31,7 @@ declare module 'chargebee' {
31
31
  next_offset?:string;
32
32
  }
33
33
  export interface ListInputParam {
34
- [key: string]: string | number | object | boolean;
34
+ [key : string]: any;
35
35
  limit?:number;
36
36
  offset?:string;
37
37
  id?:{is?:string,is_not?:string,starts_with?:string};
@@ -44,7 +44,6 @@ declare module 'chargebee' {
44
44
  promotional_credit:PromotionalCredit;
45
45
  }
46
46
  export interface DeductInputParam {
47
-
48
47
  customer_id:string;
49
48
  amount?:number;
50
49
  amount_in_decimal?:string;
@@ -58,7 +57,6 @@ declare module 'chargebee' {
58
57
  promotional_credit:PromotionalCredit;
59
58
  }
60
59
  export interface SetInputParam {
61
-
62
60
  customer_id:string;
63
61
  amount?:number;
64
62
  amount_in_decimal?:string;
@@ -72,7 +70,6 @@ declare module 'chargebee' {
72
70
  promotional_credit:PromotionalCredit;
73
71
  }
74
72
  export interface AddInputParam {
75
-
76
73
  customer_id:string;
77
74
  amount?:number;
78
75
  amount_in_decimal?:string;
@@ -1,6 +1,6 @@
1
+ ///<reference path='./../core.d.ts'/>
1
2
  declare module 'chargebee' {
2
3
  export interface Purchase {
3
-
4
4
  id?:string;
5
5
  customer_id:string;
6
6
  created_at?:number;
@@ -17,7 +17,6 @@ declare module 'chargebee' {
17
17
  purchase:Purchase;
18
18
  }
19
19
  export interface CreateInputParam {
20
-
21
20
  customer_id:string;
22
21
  invoice_info?:{notes?:string,po_number?:string};
23
22
  purchase_items?:{index:number,item_price_id:string,quantity?:number,quantity_in_decimal?:string,unit_amount?:number,unit_amount_in_decimal?:string}[];
@@ -30,7 +29,6 @@ declare module 'chargebee' {
30
29
  estimate:Estimate;
31
30
  }
32
31
  export interface EstimateInputParam {
33
-
34
32
  client_profile_id?:string;
35
33
  customer_id?:string;
36
34
  customer?:{customer_type?:CustomerType,entity_code?:EntityCode,exempt_number?:string,exemption_details?:any[],registered_for_gst?:boolean,taxability?:Taxability,vat_number?:string,vat_number_prefix?:string};