chargebee 2.28.0 → 2.29.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.
- package/.github/ISSUE_TEMPLATE/bug_report.yml +81 -0
- package/.github/ISSUE_TEMPLATE/config.yml +6 -0
- package/.github/ISSUE_TEMPLATE/feature_request.yml +34 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +8 -0
- package/.github/workflows/greeting.yml +47 -0
- package/CHANGELOG.md +47 -0
- package/SECURITY.md +8 -0
- package/lib/chargebee.js +1 -1
- package/lib/resources/api_endpoints.js +0 -7
- package/package.json +1 -1
- package/types/core.d.ts +4 -4
- package/types/resources/AttachedItem.d.ts +88 -88
- package/types/resources/Card.d.ts +68 -68
- package/types/resources/Comment.d.ts +50 -44
- package/types/resources/Coupon.d.ts +242 -207
- package/types/resources/CouponSet.d.ts +72 -68
- package/types/resources/CreditNote.d.ts +612 -236
- package/types/resources/Customer.d.ts +655 -513
- package/types/resources/DifferentialPrice.d.ts +99 -74
- package/types/resources/EntitlementOverride.d.ts +27 -12
- package/types/resources/Estimate.d.ts +450 -450
- package/types/resources/Event.d.ts +30 -12
- package/types/resources/Export.d.ts +200 -200
- package/types/resources/Feature.d.ts +66 -35
- package/types/resources/Gift.d.ts +54 -44
- package/types/resources/HostedPage.d.ts +381 -381
- package/types/resources/InAppSubscription.d.ts +94 -90
- package/types/resources/Invoice.d.ts +1242 -660
- package/types/resources/Item.d.ts +148 -142
- package/types/resources/ItemEntitlement.d.ts +36 -36
- package/types/resources/ItemFamily.d.ts +45 -45
- package/types/resources/ItemPrice.d.ts +317 -273
- package/types/resources/PaymentIntent.d.ts +60 -60
- package/types/resources/PaymentVoucher.d.ts +74 -59
- package/types/resources/PortalSession.d.ts +45 -20
- package/types/resources/PromotionalCredit.d.ts +68 -68
- package/types/resources/Purchase.d.ts +3 -3
- package/types/resources/Quote.d.ts +652 -363
- package/types/resources/QuoteLineGroup.d.ts +245 -0
- package/types/resources/QuotedCharge.d.ts +170 -0
- package/types/resources/QuotedSubscription.d.ts +219 -0
- package/types/resources/SiteMigrationDetail.d.ts +7 -7
- package/types/resources/Subscription.d.ts +1219 -932
- package/types/resources/SubscriptionEntitlement.d.ts +33 -12
- package/types/resources/ThirdPartyPaymentMethod.d.ts +1 -1
- package/types/resources/TimeMachine.d.ts +15 -15
- package/types/resources/Token.d.ts +23 -23
- package/types/resources/Transaction.d.ts +229 -112
- package/types/resources/UnbilledCharge.d.ts +112 -67
- package/types/resources/Usage.d.ts +46 -47
- package/types/resources/VirtualBankAccount.d.ts +66 -66
|
@@ -59,7 +59,7 @@ declare module 'chargebee' {
|
|
|
59
59
|
swift_code:string;
|
|
60
60
|
|
|
61
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.
|
|
62
|
+
* @description Name of the gateway this virtual bank account is stored in. \* ecentric - Ecentric provides a seamless payment processing service in South Africa specializing on omnichannel capabilities. \* 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. \* metrics_global - Metrics global is a leading payment service provider providing unified payment services in the US. \* 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. \* windcave - Windcave provides an end to end payment processing solution in ANZ and other leading global markets. \* 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. \* bank_of_america - Bank of America 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
63
|
|
|
64
64
|
*/
|
|
65
65
|
|
|
@@ -110,106 +110,74 @@ declare module 'chargebee' {
|
|
|
110
110
|
export namespace VirtualBankAccount {
|
|
111
111
|
export class VirtualBankAccountResource {
|
|
112
112
|
/**
|
|
113
|
-
* @description
|
|
113
|
+
* @description Creates a virtual bank account using the identifier provided by the gateway.
|
|
114
114
|
|
|
115
115
|
*/
|
|
116
116
|
|
|
117
|
-
|
|
117
|
+
create_using_permanent_token(input:CreateUsingPermanentTokenInputParam):ChargebeeRequest<CreateUsingPermanentTokenResponse>;
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
|
-
* @description
|
|
120
|
+
* @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.
|
|
121
121
|
|
|
122
122
|
*/
|
|
123
123
|
|
|
124
|
-
|
|
124
|
+
create(input:CreateInputParam):ChargebeeRequest<CreateResponse>;
|
|
125
125
|
|
|
126
126
|
/**
|
|
127
|
-
* @description
|
|
127
|
+
* @description Retrieves the virtual bank account identified by the unique identifier.
|
|
128
128
|
|
|
129
129
|
*/
|
|
130
130
|
|
|
131
|
-
|
|
131
|
+
retrieve(virtual_bank_account_id:string):ChargebeeRequest<RetrieveResponse>;
|
|
132
132
|
|
|
133
133
|
/**
|
|
134
|
-
* @description
|
|
134
|
+
* @description Lists all the virtual bank accounts.
|
|
135
135
|
|
|
136
136
|
*/
|
|
137
137
|
|
|
138
|
-
|
|
138
|
+
list(input?:ListInputParam):ChargebeeRequest<ListResponse>;
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
|
-
* @description
|
|
141
|
+
* @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.
|
|
142
142
|
|
|
143
143
|
*/
|
|
144
144
|
|
|
145
|
-
|
|
145
|
+
delete(virtual_bank_account_id:string):ChargebeeRequest<DeleteResponse>;
|
|
146
146
|
|
|
147
147
|
/**
|
|
148
|
-
* @description
|
|
148
|
+
* @description Deletes virtual bank accounts from Chargebee. Payment method in the payment gateway, and Auto Collection settings in Chargebee are not affected.
|
|
149
149
|
|
|
150
150
|
*/
|
|
151
151
|
|
|
152
|
-
|
|
153
|
-
}
|
|
154
|
-
export interface DeleteLocalResponse {
|
|
155
|
-
virtual_bank_account:VirtualBankAccount;
|
|
152
|
+
delete_local(virtual_bank_account_id:string):ChargebeeRequest<DeleteLocalResponse>;
|
|
156
153
|
}
|
|
157
|
-
|
|
158
|
-
export interface DeleteResponse {
|
|
154
|
+
export interface CreateUsingPermanentTokenResponse {
|
|
159
155
|
virtual_bank_account:VirtualBankAccount;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
export interface ListResponse {
|
|
163
|
-
/**
|
|
164
|
-
* @description Lists all the virtual bank accounts.
|
|
165
|
-
|
|
166
|
-
*/
|
|
167
156
|
|
|
168
|
-
|
|
157
|
+
customer?:Customer;
|
|
158
|
+
}
|
|
159
|
+
export interface CreateUsingPermanentTokenInputParam {
|
|
169
160
|
|
|
170
161
|
/**
|
|
171
|
-
* @description
|
|
162
|
+
* @description Identifier of the customer.
|
|
172
163
|
|
|
173
164
|
*/
|
|
174
165
|
|
|
175
|
-
|
|
176
|
-
}
|
|
177
|
-
export interface ListInputParam {
|
|
178
|
-
[key : string]: any;
|
|
179
|
-
/**
|
|
180
|
-
* @description The number of resources to be returned.
|
|
181
|
-
|
|
182
|
-
*/
|
|
183
|
-
|
|
184
|
-
limit?:number;
|
|
166
|
+
customer_id:string;
|
|
185
167
|
|
|
186
168
|
/**
|
|
187
|
-
* @description
|
|
169
|
+
* @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).
|
|
188
170
|
|
|
189
171
|
*/
|
|
190
|
-
|
|
191
|
-
offset?:string;
|
|
192
172
|
|
|
193
|
-
|
|
194
|
-
* @description Identifier of the customer.
|
|
195
|
-
|
|
196
|
-
*/
|
|
197
|
-
|
|
198
|
-
customer_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
173
|
+
reference_id:string;
|
|
199
174
|
|
|
200
175
|
/**
|
|
201
|
-
* @description
|
|
176
|
+
* @description type of the credit transfer. \* sepa_credit - SEPA Credit Transfer \* ach_credit - ACH Credit Transfer
|
|
202
177
|
|
|
203
178
|
*/
|
|
204
|
-
|
|
205
|
-
updated_at?:{after?:string,before?:string,between?:string,on?:string};
|
|
206
179
|
|
|
207
|
-
|
|
208
|
-
* @description Timestamp indicating when this virtual bank account resource is created.
|
|
209
|
-
|
|
210
|
-
*/
|
|
211
|
-
|
|
212
|
-
created_at?:{after?:string,before?:string,between?:string,on?:string};
|
|
180
|
+
scheme?:'ach_credit' | 'sepa_credit';
|
|
213
181
|
}
|
|
214
182
|
export interface CreateResponse {
|
|
215
183
|
virtual_bank_account:VirtualBankAccount;
|
|
@@ -243,34 +211,66 @@ declare module 'chargebee' {
|
|
|
243
211
|
virtual_bank_account:VirtualBankAccount;
|
|
244
212
|
}
|
|
245
213
|
|
|
246
|
-
export interface
|
|
247
|
-
|
|
214
|
+
export interface ListResponse {
|
|
215
|
+
/**
|
|
216
|
+
* @description Lists all the virtual bank accounts.
|
|
217
|
+
|
|
218
|
+
*/
|
|
248
219
|
|
|
249
|
-
|
|
250
|
-
}
|
|
251
|
-
export interface CreateUsingPermanentTokenInputParam {
|
|
220
|
+
list:{virtual_bank_account:VirtualBankAccount}[];
|
|
252
221
|
|
|
253
222
|
/**
|
|
254
|
-
* @description
|
|
223
|
+
* @description Lists all the virtual bank accounts.
|
|
255
224
|
|
|
256
225
|
*/
|
|
257
226
|
|
|
258
|
-
|
|
227
|
+
next_offset?:string;
|
|
228
|
+
}
|
|
229
|
+
export interface ListInputParam {
|
|
230
|
+
[key : string]: any;
|
|
231
|
+
/**
|
|
232
|
+
* @description Lists all the virtual bank accounts.
|
|
233
|
+
|
|
234
|
+
*/
|
|
235
|
+
|
|
236
|
+
limit?:number;
|
|
259
237
|
|
|
260
238
|
/**
|
|
261
|
-
* @description
|
|
239
|
+
* @description Lists all the virtual bank accounts.
|
|
262
240
|
|
|
263
241
|
*/
|
|
242
|
+
|
|
243
|
+
offset?:string;
|
|
264
244
|
|
|
265
|
-
|
|
245
|
+
/**
|
|
246
|
+
* @description Lists all the virtual bank accounts.
|
|
247
|
+
|
|
248
|
+
*/
|
|
249
|
+
|
|
250
|
+
customer_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
266
251
|
|
|
267
252
|
/**
|
|
268
|
-
* @description
|
|
253
|
+
* @description Lists all the virtual bank accounts.
|
|
269
254
|
|
|
270
255
|
*/
|
|
256
|
+
|
|
257
|
+
updated_at?:{after?:string,before?:string,between?:string,on?:string};
|
|
271
258
|
|
|
272
|
-
|
|
259
|
+
/**
|
|
260
|
+
* @description Lists all the virtual bank accounts.
|
|
261
|
+
|
|
262
|
+
*/
|
|
263
|
+
|
|
264
|
+
created_at?:{after?:string,before?:string,between?:string,on?:string};
|
|
273
265
|
}
|
|
266
|
+
export interface DeleteResponse {
|
|
267
|
+
virtual_bank_account:VirtualBankAccount;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export interface DeleteLocalResponse {
|
|
271
|
+
virtual_bank_account:VirtualBankAccount;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
274
|
|
|
275
275
|
}
|
|
276
276
|
}
|