chargebee 2.26.0 → 2.27.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 (65) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/lib/chargebee.js +1 -1
  3. package/lib/resources/api_endpoints.js +8 -1
  4. package/package.json +1 -1
  5. package/types/core.d.ts +1 -0
  6. package/types/resources/Address.d.ts +235 -5
  7. package/types/resources/AdvanceInvoiceSchedule.d.ts +78 -2
  8. package/types/resources/AttachedItem.d.ts +285 -13
  9. package/types/resources/Card.d.ts +375 -13
  10. package/types/resources/Comment.d.ts +160 -11
  11. package/types/resources/Contact.d.ts +54 -0
  12. package/types/resources/ContractTerm.d.ts +83 -0
  13. package/types/resources/Coupon.d.ts +628 -20
  14. package/types/resources/CouponCode.d.ts +46 -5
  15. package/types/resources/CouponSet.d.ts +194 -17
  16. package/types/resources/CreditNote.d.ts +1100 -44
  17. package/types/resources/CreditNoteEstimate.d.ts +75 -6
  18. package/types/resources/Customer.d.ts +1819 -73
  19. package/types/resources/DifferentialPrice.d.ts +246 -15
  20. package/types/resources/Discount.d.ts +107 -0
  21. package/types/resources/Download.d.ts +18 -0
  22. package/types/resources/EntitlementOverride.d.ts +101 -7
  23. package/types/resources/Estimate.d.ts +1021 -27
  24. package/types/resources/Event.d.ts +138 -8
  25. package/types/resources/Export.d.ts +622 -32
  26. package/types/resources/Feature.d.ts +287 -22
  27. package/types/resources/Gift.d.ts +296 -24
  28. package/types/resources/Hierarchy.d.ts +30 -0
  29. package/types/resources/HostedPage.d.ts +1046 -37
  30. package/types/resources/ImpactedItem.d.ts +41 -1
  31. package/types/resources/ImpactedSubscription.d.ts +36 -1
  32. package/types/resources/InAppSubscription.d.ts +369 -9
  33. package/types/resources/Invoice.d.ts +1942 -92
  34. package/types/resources/InvoiceEstimate.d.ts +75 -6
  35. package/types/resources/Item.d.ts +522 -16
  36. package/types/resources/ItemEntitlement.d.ts +162 -13
  37. package/types/resources/ItemFamily.d.ts +153 -15
  38. package/types/resources/ItemPrice.d.ts +951 -26
  39. package/types/resources/Media.d.ts +24 -0
  40. package/types/resources/NonSubscription.d.ts +46 -3
  41. package/types/resources/Order.d.ts +1172 -32
  42. package/types/resources/PaymentIntent.d.ts +293 -8
  43. package/types/resources/PaymentReferenceNumber.d.ts +24 -0
  44. package/types/resources/PaymentSource.d.ts +984 -55
  45. package/types/resources/PaymentVoucher.d.ts +252 -14
  46. package/types/resources/PortalSession.d.ts +154 -10
  47. package/types/resources/PromotionalCredit.d.ts +300 -16
  48. package/types/resources/Purchase.d.ts +206 -5
  49. package/types/resources/Quote.d.ts +1430 -62
  50. package/types/resources/QuoteLineGroup.d.ts +134 -5
  51. package/types/resources/QuotedCharge.d.ts +63 -5
  52. package/types/resources/QuotedSubscription.d.ts +192 -5
  53. package/types/resources/ResourceMigration.d.ts +68 -3
  54. package/types/resources/SiteMigrationDetail.d.ts +98 -5
  55. package/types/resources/Subscription.d.ts +2564 -137
  56. package/types/resources/SubscriptionEntitlement.d.ts +116 -8
  57. package/types/resources/SubscriptionEstimate.d.ts +36 -2
  58. package/types/resources/TaxWithheld.d.ts +32 -0
  59. package/types/resources/ThirdPartyPaymentMethod.d.ts +24 -0
  60. package/types/resources/TimeMachine.d.ts +82 -7
  61. package/types/resources/Token.d.ts +164 -7
  62. package/types/resources/Transaction.d.ts +567 -25
  63. package/types/resources/UnbilledCharge.d.ts +309 -14
  64. package/types/resources/Usage.d.ts +237 -13
  65. package/types/resources/VirtualBankAccount.d.ts +220 -17
@@ -1,71 +1,274 @@
1
1
  ///<reference path='./../core.d.ts'/>
2
2
  declare module 'chargebee' {
3
3
  export interface VirtualBankAccount {
4
+
5
+ /**
6
+ * @description Identifier of the virtual bank account
7
+
8
+ */
9
+
4
10
  id:string;
11
+
12
+ /**
13
+ * @description Identifier of the customer.
14
+
15
+ */
16
+
5
17
  customer_id:string;
18
+
19
+ /**
20
+ * @description Email address associated with the virtual bank account
21
+
22
+ */
23
+
6
24
  email:string;
25
+
26
+ /**
27
+ * @description type of the credit transfer \* ach_credit - ACH Credit Transfer \* sepa_credit - SEPA Credit Transfer
28
+
29
+ */
30
+
7
31
  scheme?:'ach_credit' | 'sepa_credit';
32
+
33
+ /**
34
+ * @description Name of the bank
35
+
36
+ */
37
+
8
38
  bank_name?:string;
39
+
40
+ /**
41
+ * @description The account number to which funds will be transferred.
42
+
43
+ */
44
+
9
45
  account_number:string;
46
+
47
+ /**
48
+ * @description The routing number of the bank
49
+
50
+ */
51
+
10
52
  routing_number?:string;
53
+
54
+ /**
55
+ * @description Swift code of the bank in which the account exists.
56
+
57
+ */
58
+
11
59
  swift_code:string;
60
+
61
+ /**
62
+ * @description Name of the gateway this virtual bank account is stored in. \* bluesnap - BlueSnap is a payment gateway. \* tco - 2Checkout is a payment gateway. \* first_data_global - First Data Global Gateway Virtual Terminal Account \* exact - Exact Payments is a payment gateway. \* bluepay - BluePay is a payment gateway. \* paypal_express_checkout - PayPal Express Checkout is a payment gateway. \* eway - eWAY Account is a payment gateway. \* paypal_payflow_pro - PayPal Payflow Pro is a payment gateway. \* razorpay - Razorpay is a fast growing payment service provider in India working with all leading banks and support for major local payment methods including Netbanking, UPI etc. \* global_payments - Global Payments is a payment service provider. \* amazon_payments - Amazon Payments is a payment service provider. \* not_applicable - Indicates that payment gateway is not applicable for this resource. \* checkout_com - Checkout.com is a payment gateway. \* adyen - Adyen is a payment gateway. \* braintree - Braintree is a payment gateway. \* nmi - NMI is a payment gateway. \* quickbooks - Intuit QuickBooks Payments gateway \* wepay - WePay is a payment gateway. \* worldpay - WorldPay is a payment gateway \* wirecard - WireCard Account is a payment service provider. \* chargebee_payments - Chargebee Payments gateway \* sage_pay - Sage Pay is a payment gateway. \* moneris_us - Moneris USA is a payment gateway. \* pin - Pin is a payment gateway \* authorize_net - Authorize.net is a payment gateway \* elavon - Elavon Virtual Merchant is a payment solution. \* paypal_pro - PayPal Pro Account is a payment gateway. \* orbital - Chase Paymentech(Orbital) is a payment gateway. \* paypal - PayPal Commerce is a payment gateway. \* beanstream - Bambora(formerly known as Beanstream) is a payment gateway. \* hdfc - HDFC Account is a payment gateway. \* ingenico_direct - Worldline Online Payments is a payment gateway. \* ogone - Ingenico ePayments (formerly known as Ogone) is a payment gateway. \* migs - MasterCard Internet Gateway Service payment gateway. \* stripe - Stripe is a payment gateway. \* vantiv - Vantiv is a payment gateway. \* moneris - Moneris is a payment gateway. \* chargebee - Chargebee test gateway. \* eway_rapid - eWAY Rapid is a payment gateway. \* gocardless - GoCardless is a payment service provider. \* mollie - Mollie is a payment gateway. \* paymill - PAYMILL is a payment gateway. \* balanced_payments - Balanced is a payment gateway \* cybersource - CyberSource is a payment gateway.
63
+
64
+ */
65
+
12
66
  gateway:Gateway;
67
+
68
+ /**
69
+ * @description The gateway account in which this virtual bank account is stored.
70
+
71
+ */
72
+
13
73
  gateway_account_id:string;
74
+
75
+ /**
76
+ * @description Version number of this resource. The &#x60;resource_version&#x60; is updated with a new timestamp in milliseconds for every change made to the resource. This attribute will be present only if the resource has been updated after 2016-09-28.
77
+
78
+ */
79
+
14
80
  resource_version?:number;
81
+
82
+ /**
83
+ * @description Timestamp indicating when this virtual bank account resource was last updated.
84
+
85
+ */
86
+
15
87
  updated_at?:number;
88
+
89
+ /**
90
+ * @description Timestamp indicating when this virtual bank account resource is created.
91
+
92
+ */
93
+
16
94
  created_at:number;
95
+
96
+ /**
97
+ * @description Identifier provided by the gateway for the virtual bank account source. In case of Stripe, the reference_id consists of a combination of Stripe Customer ID and Stripe Source ID separated by a forward slash (e.g. cus_63MnDn0t6kfDW7/src_6WjCF20vT9WN1G).
98
+
99
+ */
100
+
17
101
  reference_id:string;
102
+
103
+ /**
104
+ * @description Indicates that this resource has been deleted.
105
+
106
+ */
107
+
18
108
  deleted:boolean;
19
109
  }
20
110
  export namespace VirtualBankAccount {
21
- export class VirtualBankAccountResource {
111
+ export class VirtualBankAccountResource {
112
+ /**
113
+ * @description Deletes virtual bank accounts from Chargebee. Payment method in the payment gateway, and Auto Collection settings in Chargebee are not affected.
114
+
115
+ */
116
+
22
117
  delete_local(virtual_bank_account_id:string):ChargebeeRequest<DeleteLocalResponse>;
118
+
119
+ /**
120
+ * @description Deletes a virtual bank account. If there is no virtual bank account present in the gateway for the customer, this API will return successfully without throwing an error.
121
+
122
+ */
123
+
23
124
  delete(virtual_bank_account_id:string):ChargebeeRequest<DeleteResponse>;
125
+
126
+ /**
127
+ * @description Lists all the virtual bank accounts.
128
+
129
+ */
130
+
24
131
  list(input?:ListInputParam):ChargebeeRequest<ListResponse>;
132
+
133
+ /**
134
+ * @description Creates a virtual bank account for a customer. Email address is mandatory for virtual bank account creation. All notifications related to this virtual bank account will be sent to the email address you specify.
135
+
136
+ */
137
+
25
138
  create(input:CreateInputParam):ChargebeeRequest<CreateResponse>;
139
+
140
+ /**
141
+ * @description Retrieves the virtual bank account identified by the unique identifier.
142
+
143
+ */
144
+
26
145
  retrieve(virtual_bank_account_id:string):ChargebeeRequest<RetrieveResponse>;
146
+
147
+ /**
148
+ * @description Creates a virtual bank account using the identifier provided by the gateway.
149
+
150
+ */
151
+
27
152
  create_using_permanent_token(input:CreateUsingPermanentTokenInputParam):ChargebeeRequest<CreateUsingPermanentTokenResponse>;
28
153
  }
29
- export interface DeleteLocalResponse {
30
- virtual_bank_account:VirtualBankAccount;
154
+ export interface DeleteLocalResponse {
155
+ virtual_bank_account:VirtualBankAccount;
31
156
  }
32
157
 
33
- export interface DeleteResponse {
34
- virtual_bank_account:VirtualBankAccount;
158
+ export interface DeleteResponse {
159
+ virtual_bank_account:VirtualBankAccount;
35
160
  }
36
161
 
37
- export interface ListResponse {
38
- list:{virtual_bank_account:VirtualBankAccount}[];
39
- next_offset?:string;
162
+ export interface ListResponse {
163
+ /**
164
+ * @description Lists all the virtual bank accounts.
165
+
166
+ */
167
+
168
+ list:{virtual_bank_account:VirtualBankAccount}[];
169
+
170
+ /**
171
+ * @description Lists all the virtual bank accounts.
172
+
173
+ */
174
+
175
+ next_offset?:string;
40
176
  }
41
177
  export interface ListInputParam {
42
- [key : string]: any;
178
+ [key : string]: any;
179
+ /**
180
+ * @description The number of resources to be returned.
181
+
182
+ */
183
+
43
184
  limit?:number;
185
+
186
+ /**
187
+ * @description Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set \&#x60;offset\&#x60; to the value of \&#x60;next_offset\&#x60; obtained in the previous iteration of the API call.
188
+
189
+ */
190
+
44
191
  offset?:string;
192
+
193
+ /**
194
+ * @description Identifier of the customer.
195
+
196
+ */
197
+
45
198
  customer_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
199
+
200
+ /**
201
+ * @description Timestamp indicating when this virtual bank account resource was last updated.
202
+
203
+ */
204
+
46
205
  updated_at?:{after?:string,before?:string,between?:string,on?:string};
206
+
207
+ /**
208
+ * @description Timestamp indicating when this virtual bank account resource is created.
209
+
210
+ */
211
+
47
212
  created_at?:{after?:string,before?:string,between?:string,on?:string};
48
213
  }
49
- export interface CreateResponse {
50
- virtual_bank_account:VirtualBankAccount;
51
- customer?:Customer;
214
+ export interface CreateResponse {
215
+ virtual_bank_account:VirtualBankAccount;
216
+
217
+ customer?:Customer;
52
218
  }
53
219
  export interface CreateInputParam {
220
+
221
+ /**
222
+ * @description Identifier of the customer.
223
+
224
+ */
225
+
54
226
  customer_id:string;
227
+
228
+ /**
229
+ * @description Email address associated with the virtual bank account.
230
+
231
+ */
232
+
55
233
  email?:string;
234
+
235
+ /**
236
+ * @description type of the credit transfer. \* sepa_credit - SEPA Credit Transfer \* ach_credit - ACH Credit Transfer
237
+
238
+ */
239
+
56
240
  scheme?:'ach_credit' | 'sepa_credit';
57
241
  }
58
- export interface RetrieveResponse {
59
- virtual_bank_account:VirtualBankAccount;
242
+ export interface RetrieveResponse {
243
+ virtual_bank_account:VirtualBankAccount;
60
244
  }
61
245
 
62
- export interface CreateUsingPermanentTokenResponse {
63
- virtual_bank_account:VirtualBankAccount;
64
- customer?:Customer;
246
+ export interface CreateUsingPermanentTokenResponse {
247
+ virtual_bank_account:VirtualBankAccount;
248
+
249
+ customer?:Customer;
65
250
  }
66
251
  export interface CreateUsingPermanentTokenInputParam {
252
+
253
+ /**
254
+ * @description Identifier of the customer.
255
+
256
+ */
257
+
67
258
  customer_id:string;
259
+
260
+ /**
261
+ * @description Identifier provided by the gateway for the virtual bank account source. In case of Stripe, the reference_id consists of a combination of Stripe Customer ID and Stripe Source ID separated by a forward slash (e.g. cus_63MnDn0t6kfDW7/src_6WjCF20vT9WN1G).
262
+
263
+ */
264
+
68
265
  reference_id:string;
266
+
267
+ /**
268
+ * @description type of the credit transfer. \* sepa_credit - SEPA Credit Transfer \* ach_credit - ACH Credit Transfer
269
+
270
+ */
271
+
69
272
  scheme?:'ach_credit' | 'sepa_credit';
70
273
  }
71
274