chargebee 2.51.0 → 2.53.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 (89) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/lib/chargebee.js +1 -1
  3. package/lib/resources/api_endpoints.js +103 -5
  4. package/package.json +1 -1
  5. package/types/core.d.ts +6 -6
  6. package/types/index.d.ts +10 -0
  7. package/types/resources/Addon.d.ts +3 -3
  8. package/types/resources/Address.d.ts +2 -194
  9. package/types/resources/AdvanceInvoiceSchedule.d.ts +5 -67
  10. package/types/resources/AttachedItem.d.ts +1 -1
  11. package/types/resources/Attribute.d.ts +4 -1
  12. package/types/resources/BillingConfiguration.d.ts +21 -0
  13. package/types/resources/Brand.d.ts +12 -0
  14. package/types/resources/BusinessEntity.d.ts +10 -8
  15. package/types/resources/BusinessEntityTransfer.d.ts +10 -7
  16. package/types/resources/Card.d.ts +11 -311
  17. package/types/resources/Comment.d.ts +10 -125
  18. package/types/resources/Contact.d.ts +2 -44
  19. package/types/resources/ContractTerm.d.ts +4 -72
  20. package/types/resources/Coupon.d.ts +4 -41
  21. package/types/resources/CouponCode.d.ts +67 -35
  22. package/types/resources/CouponSet.d.ts +12 -121
  23. package/types/resources/CreditNote.d.ts +89 -95
  24. package/types/resources/Currency.d.ts +8 -5
  25. package/types/resources/Customer.d.ts +96 -95
  26. package/types/resources/CustomerEntitlement.d.ts +3 -1
  27. package/types/resources/DifferentialPrice.d.ts +1 -1
  28. package/types/resources/Discount.d.ts +5 -90
  29. package/types/resources/Download.d.ts +2 -14
  30. package/types/resources/Entitlement.d.ts +15 -103
  31. package/types/resources/EntitlementOverride.d.ts +4 -89
  32. package/types/resources/Estimate.d.ts +6 -14
  33. package/types/resources/Event.d.ts +24 -109
  34. package/types/resources/Export.d.ts +116 -432
  35. package/types/resources/Feature.d.ts +19 -321
  36. package/types/resources/GatewayErrorDetail.d.ts +6 -48
  37. package/types/resources/Gift.d.ts +34 -294
  38. package/types/resources/Hierarchy.d.ts +4 -24
  39. package/types/resources/HostedPage.d.ts +4 -4
  40. package/types/resources/ImpactedCustomer.d.ts +23 -0
  41. package/types/resources/ImpactedItem.d.ts +4 -36
  42. package/types/resources/ImpactedItemPrice.d.ts +5 -2
  43. package/types/resources/ImpactedSubscription.d.ts +3 -30
  44. package/types/resources/InAppSubscription.d.ts +13 -355
  45. package/types/resources/Invoice.d.ts +112 -126
  46. package/types/resources/InvoiceEstimate.d.ts +1 -1
  47. package/types/resources/Item.d.ts +4 -11
  48. package/types/resources/ItemEntitlement.d.ts +15 -155
  49. package/types/resources/ItemFamily.d.ts +3 -3
  50. package/types/resources/ItemPrice.d.ts +7 -7
  51. package/types/resources/NonSubscription.d.ts +9 -6
  52. package/types/resources/OmnichannelOneTimeOrder.d.ts +90 -0
  53. package/types/resources/OmnichannelOneTimeOrderItem.d.ts +24 -0
  54. package/types/resources/OmnichannelSubscription.d.ts +2 -2
  55. package/types/resources/OmnichannelSubscriptionItem.d.ts +1 -1
  56. package/types/resources/OmnichannelSubscriptionItemScheduledChange.d.ts +1 -1
  57. package/types/resources/Order.d.ts +3 -3
  58. package/types/resources/PaymentIntent.d.ts +9 -255
  59. package/types/resources/PaymentReferenceNumber.d.ts +3 -20
  60. package/types/resources/PaymentSource.d.ts +4 -4
  61. package/types/resources/PaymentVoucher.d.ts +22 -205
  62. package/types/resources/Plan.d.ts +3 -3
  63. package/types/resources/PortalSession.d.ts +4 -146
  64. package/types/resources/PriceVariant.d.ts +2 -2
  65. package/types/resources/PricingPageSession.d.ts +2 -2
  66. package/types/resources/PromotionalCredit.d.ts +12 -215
  67. package/types/resources/Purchase.d.ts +5 -3
  68. package/types/resources/Quote.d.ts +32 -14
  69. package/types/resources/QuotedCharge.d.ts +7 -0
  70. package/types/resources/QuotedRamp.d.ts +11 -16
  71. package/types/resources/Ramp.d.ts +7 -7
  72. package/types/resources/RecordedPurchase.d.ts +8 -1
  73. package/types/resources/ResourceMigration.d.ts +2 -54
  74. package/types/resources/SiteMigrationDetail.d.ts +13 -55
  75. package/types/resources/Subscription.d.ts +33 -29
  76. package/types/resources/SubscriptionEntitlement.d.ts +6 -106
  77. package/types/resources/SubscriptionEntitlementsCreatedDetail.d.ts +12 -0
  78. package/types/resources/SubscriptionEntitlementsUpdatedDetail.d.ts +12 -0
  79. package/types/resources/SubscriptionEstimate.d.ts +14 -11
  80. package/types/resources/TaxWithheld.d.ts +14 -26
  81. package/types/resources/ThirdPartyPaymentMethod.d.ts +2 -19
  82. package/types/resources/TimeMachine.d.ts +3 -64
  83. package/types/resources/Token.d.ts +3 -60
  84. package/types/resources/Transaction.d.ts +8 -8
  85. package/types/resources/UnbilledCharge.d.ts +1 -1
  86. package/types/resources/Usage.d.ts +21 -165
  87. package/types/resources/UsageFile.d.ts +5 -5
  88. package/types/resources/VirtualBankAccount.d.ts +1 -1
  89. package/types/resources/WebhookEndpoint.d.ts +117 -0
@@ -1,167 +1,52 @@
1
1
  ///<reference path='./../core.d.ts'/>
2
+ ///<reference path='./../index.d.ts'/>
2
3
  declare module 'chargebee' {
3
4
  export interface PaymentIntent {
4
5
 
5
- /**
6
- * @description Identifier for PaymentIntent.
7
6
 
8
- */
9
-
10
7
  id:string;
11
-
12
- /**
13
- * @description Current status of PaymentIntent. \* in_progress - Status will be in_progress if the Active Payment Attempt state is in requires_identification, requires_challenge or requires_redirection. \* authorized - 3DS verification successfully completed. \* consumed - If any Chargebee operation such as create subscription etc. is completed using the intent, it will be in consumed state. Intent cannot be used if it&#x27;s already in consumed state. \* expired - Intent has expired, since it was not consumed before the predefined time-out. \* inited - Intent is initialized.
14
8
 
15
- */
16
-
17
- status:'consumed' | 'in_progress' | 'inited' | 'expired' | 'authorized';
18
-
19
- /**
20
- * @description The currency code (ISO 4217 format) of the amount used in transaction.
9
+ status:'inited' | 'in_progress' | 'authorized' | 'consumed' | 'expired';
21
10
 
22
- */
23
-
24
11
  currency_code?:string;
25
-
26
- /**
27
- * @description Amount(in cents) to be authorized for 3DS flow.
28
12
 
29
- */
30
-
31
13
  amount:number;
32
-
33
- /**
34
- * @description The gateway account used for performing the 3DS flow.
35
14
 
36
- */
37
-
38
15
  gateway_account_id:string;
39
-
40
- /**
41
- * @description Timestamp indicating when the PaymentIntent will expire if left unconsumed.
42
16
 
43
- */
44
-
45
17
  expires_at:number;
46
-
47
- /**
48
- * @description Reference for payment method at gateway. Only applicable when the PaymentIntent is created for cards stored in the gateway.
49
18
 
50
- */
51
-
52
19
  reference_id?:string;
53
-
54
- /**
55
- * @description The payment method of this intent \* google_pay - google_pay \* apple_pay - apple_pay \* ideal - ideal \* bancontact - bancontact \* netbanking_emandates - netbanking_emandates \* pay_to - PayTo \* venmo - Venmo \* dotpay - dotpay \* giropay - giropay \* sofort - sofort \* sepa_instant_transfer - SEPA Instant Transfer \* direct_debit - direct_debit \* paypal_express_checkout - paypal_express_checkout \* boleto - boleto \* faster_payments - Faster Payments \* amazon_payments - amazon_payments \* card - card \* upi - upi
56
20
 
57
- */
58
-
59
- payment_method_type?:'giropay' | 'ideal' | 'sepa_instant_transfer' | 'google_pay' | 'netbanking_emandates' | 'klarna_pay_now' | 'dotpay' | 'boleto' | 'direct_debit' | 'faster_payments' | 'sofort' | 'upi' | 'venmo' | 'amazon_payments' | 'apple_pay' | 'bancontact' | 'paypal_express_checkout' | 'pay_to' | 'card' | 'online_banking_poland';
60
-
61
- /**
62
- * @description The URL the customer will be directed to once 3DS verification is successful. Applicable only when &#x60;payment_method_type&#x60; is &#x60;ideal&#x60;, &#x60;sofort&#x60;, &#x60;dotpay&#x60; or &#x60;giropay&#x60;.
21
+ payment_method_type?:'card' | 'ideal' | 'sofort' | 'bancontact' | 'google_pay' | 'dotpay' | 'giropay' | 'apple_pay' | 'upi' | 'netbanking_emandates' | 'paypal_express_checkout' | 'direct_debit' | 'boleto' | 'venmo' | 'amazon_payments' | 'pay_to' | 'faster_payments' | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland' | 'payconiq_by_bancontact';
63
22
 
64
- */
65
-
66
23
  success_url?:string;
67
-
68
- /**
69
- * @description The URL the customer will be directed to when 3DS verification fails. Applicable only when &#x60;payment_method_type&#x60; is &#x60;ideal&#x60;, &#x60;sofort&#x60;, &#x60;dotpay&#x60; or &#x60;giropay&#x60;.
70
24
 
71
- */
72
-
73
25
  failure_url?:string;
74
-
75
- /**
76
- * @description Timestamp indicating when the PaymentIntent was created.
77
26
 
78
- */
79
-
80
27
  created_at:number;
81
-
82
- /**
83
- * @description Timestamp indicating when the PaymentIntent was last modified.
84
28
 
85
- */
86
-
87
29
  modified_at:number;
88
-
89
- /**
90
- * @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.
91
30
 
92
- */
93
-
94
31
  resource_version?:number;
95
-
96
- /**
97
- * @description Timestamp indicating when this payment intent was last updated.
98
32
 
99
- */
100
-
101
33
  updated_at?:number;
102
-
103
- /**
104
- * @description The unique ID of the customer for which this payment_intent should be created. If not provided, a new customer is created and its ID is autogenerated.
105
- **See also**
106
34
 
107
- [Customer resource lookup and creation](/docs/api/payment_intents#customer_lookup)
108
-
109
- */
110
-
111
35
  customer_id:string;
112
-
113
- /**
114
- * @description Gateway associated with the PaymentIntent.
115
36
 
116
- */
117
-
118
37
  gateway?:string;
119
-
120
- /**
121
- * @description The unique ID of the [business entity](/docs/api/advanced-features?prod_cat_ver&#x3D;2#mbe) of this &#x60;payment_intent&#x60;
122
38
 
123
- */
124
-
39
+ active_payment_attempt?:PaymentIntent.PaymentAttempt;
40
+
125
41
  business_entity_id?:string;
126
-
127
- /**
128
- * @description Active payment attempt for the PaymentIntent.
129
42
 
130
- */
131
-
132
- active_payment_attempt?:PaymentIntent.PaymentAttempt;
133
43
  }
134
44
  export namespace PaymentIntent {
135
45
  export class PaymentIntentResource {
136
- /**
137
- * @description Creates a PaymentIntent object. This is to be used with Chargebee.js API to complete the 3DS flow for new or stored cards.
138
-
139
- While creating, specify the appropriate gateway account and amount. Exact amount can be estimated using our [Estimate API](/docs/api/estimates).
140
-
141
- #### Customer resource lookup and creation {#customer_lookup}
142
-
143
- When [customer[id]](/docs/api/payment_intents#create_a_payment_intent_customer_id) is provided for this operation, it is looked up by Chargebee, and if found, the payment_intent is created for it. If not found, a new customer resource is created with the ID provided, and the payment_intent is created.
144
-
145
- ##### Multiple business entities
146
-
147
- If multiple [business entities](/docs/api/advanced-features#mbe) are created for the site, the customer resource lookup and creation happen within the [context](/docs/api/advanced-features#mbe-context) of the business entity [specified](/docs/api/advanced-features#mbe-header-main) in this API call. If no business entity is specified, the customer resource lookup is performed within the [site context](/docs/api/advanced-features#mbe-context), and if not found, the resource is created for the [default business entity](/docs/api/advanced-features#mbe-default-be) of the site.
148
-
149
- */
150
-
151
46
  create(input:CreateInputParam):ChargebeeRequest<CreateResponse>;
152
47
 
153
- /**
154
- * @description Updating properties on a PaymentIntent object. All the subsequent 3DS transaction attempts will have the updated values.
155
-
156
- */
157
-
158
48
  update(payment_intent_id:string, input?:UpdateInputParam):ChargebeeRequest<UpdateResponse>;
159
49
 
160
- /**
161
- * @description Retrieves the PaymentIntent resource.
162
-
163
- */
164
-
165
50
  retrieve(payment_intent_id:string):ChargebeeRequest<RetrieveResponse>;
166
51
  }
167
52
  export interface CreateResponse {
@@ -169,77 +54,22 @@ If multiple [business entities](/docs/api/advanced-features#mbe) are created for
169
54
  }
170
55
  export interface CreateInputParam {
171
56
 
172
- /**
173
- * @description Sets the [context]() for this operation to the [business entity](/docs/api/advanced-features?prod_cat_ver&#x3D;2#mbe) specified. Applicable only when multiple business entities have been created for the site. When this parameter is provided, the operation is able to read/write data associated only to the business entity specified. When not provided, the operation can read/write data for the entire site.
174
- **Note**
175
-
176
- An alternative way of passing this parameter is by means of a [custom HTTP header](/docs/api/advanced-features?prod_cat_ver&#x3D;2#mbe-header-main).
177
- **See also**
178
-
179
- [Customer resource lookup and creation.](/docs/api/payment_intents#customer_lookup)
180
-
181
- */
182
-
183
57
  business_entity_id?:string;
184
58
 
185
- /**
186
- * @description The unique ID of the customer for which this &#x60;payment_intent&#x60; should be created. If not provided, a new customer is created and its ID is autogenerated.
187
- **See also**
188
-
189
- [Customer resource lookup and creation](/docs/api/payment_intents#customer_lookup)
190
- .
191
-
192
- */
193
-
194
59
  customer_id?:string;
195
60
 
196
- /**
197
- * @description Amount(in cents) to be authorized for 3DS flow.
198
-
199
- */
200
-
201
61
  amount:number;
202
62
 
203
- /**
204
- * @description The currency code (ISO 4217 format) of the amount used in transaction.
205
-
206
- */
207
-
208
63
  currency_code:string;
209
64
 
210
- /**
211
- * @description The gateway account used for performing the 3DS flow.
212
-
213
- */
214
-
215
65
  gateway_account_id?:string;
216
66
 
217
- /**
218
- * @description Reference for payment method at gateway. Only applicable when the PaymentIntent is created for cards stored in the gateway.
219
-
220
- */
221
-
222
67
  reference_id?:string;
223
68
 
224
- /**
225
- * @description The payment method of this intent. \* google_pay - google_pay \* boleto - boleto \* apple_pay - apple_pay \* ideal - ideal \* bancontact - bancontact \* netbanking_emandates - netbanking_emandates \* direct_debit - direct_debit \* card - card \* dotpay - dotpay \* giropay - giropay \* upi - upi \* sofort - sofort \* paypal_express_checkout - paypal_express_checkout
226
-
227
- */
228
-
229
- payment_method_type?:'giropay' | 'ideal' | 'sepa_instant_transfer' | 'google_pay' | 'netbanking_emandates' | 'klarna_pay_now' | 'dotpay' | 'boleto' | 'direct_debit' | 'faster_payments' | 'sofort' | 'upi' | 'venmo' | 'amazon_payments' | 'apple_pay' | 'bancontact' | 'paypal_express_checkout' | 'pay_to' | 'card' | 'online_banking_poland';
230
-
231
- /**
232
- * @description The URL the customer will be directed to once 3DS verification is successful. Applicable only when &#x60;payment_method_type&#x60; is &#x60;ideal&#x60;, &#x60;sofort&#x60;, &#x60;dotpay&#x60; or &#x60;giropay&#x60;.
233
-
234
- */
69
+ payment_method_type?:'card' | 'ideal' | 'sofort' | 'bancontact' | 'google_pay' | 'dotpay' | 'giropay' | 'apple_pay' | 'upi' | 'netbanking_emandates' | 'paypal_express_checkout' | 'direct_debit' | 'boleto' | 'venmo' | 'amazon_payments' | 'pay_to' | 'faster_payments' | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland' | 'payconiq_by_bancontact';
235
70
 
236
71
  success_url?:string;
237
72
 
238
- /**
239
- * @description The URL the customer will be directed to when 3DS verification fails. Applicable only when &#x60;payment_method_type&#x60; is &#x60;ideal&#x60;, &#x60;sofort&#x60;, &#x60;dotpay&#x60; or &#x60;giropay&#x60;.
240
-
241
- */
242
-
243
73
  failure_url?:string;
244
74
  }
245
75
  export interface UpdateResponse {
@@ -247,46 +77,16 @@ An alternative way of passing this parameter is by means of a [custom HTTP heade
247
77
  }
248
78
  export interface UpdateInputParam {
249
79
 
250
- /**
251
- * @description Amount(in cents) to be authorized for 3DS flow.
252
-
253
- */
254
-
255
80
  amount?:number;
256
81
 
257
- /**
258
- * @description The currency code (ISO 4217 format) of the amount used in transaction.
259
-
260
- */
261
-
262
82
  currency_code?:string;
263
83
 
264
- /**
265
- * @description The gateway account used for performing the 3DS flow.
266
-
267
- */
268
-
269
84
  gateway_account_id?:string;
270
85
 
271
- /**
272
- * @description The payment method of this intent. \* google_pay - google_pay \* boleto - boleto \* apple_pay - apple_pay \* ideal - ideal \* bancontact - bancontact \* netbanking_emandates - netbanking_emandates \* direct_debit - direct_debit \* card - card \* dotpay - dotpay \* giropay - giropay \* upi - upi \* sofort - sofort \* paypal_express_checkout - paypal_express_checkout
273
-
274
- */
275
-
276
- payment_method_type?:'giropay' | 'ideal' | 'sepa_instant_transfer' | 'google_pay' | 'netbanking_emandates' | 'klarna_pay_now' | 'dotpay' | 'boleto' | 'direct_debit' | 'faster_payments' | 'sofort' | 'upi' | 'venmo' | 'amazon_payments' | 'apple_pay' | 'bancontact' | 'paypal_express_checkout' | 'pay_to' | 'card' | 'online_banking_poland';
277
-
278
- /**
279
- * @description The URL the customer will be directed to once 3DS verification is successful. Applicable only when &#x60;payment_method_type&#x60; is &#x60;ideal&#x60;, &#x60;sofort&#x60;, &#x60;dotpay&#x60; or &#x60;giropay&#x60;.
280
-
281
- */
86
+ payment_method_type?:'card' | 'ideal' | 'sofort' | 'bancontact' | 'google_pay' | 'dotpay' | 'giropay' | 'apple_pay' | 'upi' | 'netbanking_emandates' | 'paypal_express_checkout' | 'direct_debit' | 'boleto' | 'venmo' | 'amazon_payments' | 'pay_to' | 'faster_payments' | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland' | 'payconiq_by_bancontact';
282
87
 
283
88
  success_url?:string;
284
89
 
285
- /**
286
- * @description The URL the customer will be directed to when 3DS verification fails. Applicable only when &#x60;payment_method_type&#x60; is &#x60;ideal&#x60;, &#x60;sofort&#x60;, &#x60;dotpay&#x60; or &#x60;giropay&#x60;.
287
-
288
- */
289
-
290
90
  failure_url?:string;
291
91
  }
292
92
  export interface RetrieveResponse {
@@ -294,68 +94,22 @@ An alternative way of passing this parameter is by means of a [custom HTTP heade
294
94
  }
295
95
 
296
96
  export interface PaymentAttempt {
297
- /**
298
- * @description Identifier for PaymentIntent&#x27;s active payment attempt.
299
-
300
- */
301
-
302
97
  id?:string;
303
98
 
304
- /**
305
- * @description Current status of active payment attempt \* authorized - 3DS verification successfully completed. \* requires_challenge - The transaction has to go through 3DS Challenge flow and the customer needs to authenticate via 3DS 2.0 \* pending_authorization - Waiting for the authorization. \* requires_redirection - The transaction has to go through 3DS Redirection flow and the customer needs to authenticate via 3DS 1.0 \* inited - Payment attempt is initialized. \* refused - 3DS verification attempt failed. \* requires_identification - Customer&#x27;s device fingerprint is used to verify their identity. It needs to be sent to the Issuing Bank for verification.
306
-
307
- */
308
-
309
- status:'pending_authorization' | 'inited' | 'refused' | 'requires_challenge' | 'authorized' | 'requires_identification' | 'requires_redirection';
310
-
311
- /**
312
- * @description The payment method of this attempt \* venmo - Venmo \* ideal - ideal \* sofort - sofort \* paypal_express_checkout - paypal_express_checkout \* giropay - giropay \* sepa_instant_transfer - SEPA Instant Transfer \* bancontact - bancontact \* google_pay - google_pay \* card - card \* faster_payments - faster payments \* upi - upi \* amazon_payments - amazon_payments \* direct_debit - direct_debit \* dotpay - dotpay \* apple_pay - apple_pay \* boleto - boleto \* pay_to - PayTo \* netbanking_emandates - netbanking_emandates
313
-
314
- */
315
-
316
- payment_method_type?:'giropay' | 'ideal' | 'sepa_instant_transfer' | 'google_pay' | 'netbanking_emandates' | 'klarna_pay_now' | 'dotpay' | 'boleto' | 'direct_debit' | 'faster_payments' | 'sofort' | 'upi' | 'venmo' | 'amazon_payments' | 'apple_pay' | 'bancontact' | 'paypal_express_checkout' | 'pay_to' | 'card' | 'online_banking_poland';
99
+ status:'inited' | 'requires_identification' | 'requires_challenge' | 'requires_redirection' | 'authorized' | 'refused' | 'pending_authorization';
317
100
 
318
- /**
319
- * @description Reference of PaymentIntent at gateway
320
-
321
- */
101
+ payment_method_type?:'card' | 'ideal' | 'sofort' | 'bancontact' | 'google_pay' | 'dotpay' | 'giropay' | 'apple_pay' | 'upi' | 'netbanking_emandates' | 'paypal_express_checkout' | 'direct_debit' | 'boleto' | 'venmo' | 'amazon_payments' | 'pay_to' | 'faster_payments' | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland' | 'payconiq_by_bancontact';
322
102
 
323
103
  id_at_gateway?:string;
324
104
 
325
- /**
326
- * @description Error code received from the payment gateway on failure.
327
-
328
- */
329
-
330
105
  error_code?:string;
331
106
 
332
- /**
333
- * @description Error message received from the payment gateway on failure.
334
-
335
- */
336
-
337
107
  error_text?:string;
338
108
 
339
- /**
340
- * @description Timestamp indicating when the active payment attempt was created.
341
-
342
- */
343
-
344
109
  created_at:number;
345
110
 
346
- /**
347
- * @description Timestamp indicating when the active payment attempt was last modified.
348
-
349
- */
350
-
351
111
  modified_at:number;
352
112
 
353
- /**
354
- * @description Comprehensive information regarding the error experienced during an unsuccessful or declined transaction. Learn more about [gateway error references](gateway_error_references)
355
- This attribute will be available soon
356
-
357
- */
358
-
359
113
  error_detail?:GatewayErrorDetail;
360
114
  }
361
115
  }
@@ -1,33 +1,16 @@
1
1
  ///<reference path='./../core.d.ts'/>
2
+ ///<reference path='./../index.d.ts'/>
2
3
  declare module 'chargebee' {
3
4
  export interface PaymentReferenceNumber {
4
5
 
5
- /**
6
- * @description The &#x60;id&#x60; of the &#x60;payment_reference_number&#x60; resource is a unique identifier assigned to the PRN to track and reference in systems.
7
6
 
8
- */
9
-
10
7
  id:string;
11
-
12
- /**
13
- * @description This attribute helps &#x60;type&#x60; field in the API, specifies how to reconcile offline payments, and generate &#x60;payment_reference_number&#x60; on invoices based on country-specific rules. Setting the &#x60;type&#x60; field generates &#x60;payment_reference_number&#x60; for the respective country and includes them on the invoice for correct reconciliation. \* frn - The reference number printed on invoices in Finland is utilized by buyers for payment via bank transfer, facilitating the association of payments with invoices. \* fik - Denmark based number calculated using recursive MOD 10 algorithm. \* kid - The KID number (kundeidentifikasjon) in Norway is an abbreviation for &quot;Customer identification&quot;. It is used to associate payments with the customer and invoice. \* ocr - A OCR-based payment, contains an OCR reference, which is used to identify the vendor and the purchase document in connection with a payment. Swedish reference number can contain customer ID and/or invoice number to identify customer and invoice.
14
8
 
15
- */
16
-
17
- type:'frn' | 'kid' | 'fik' | 'swiss_reference' | 'ocr';
18
-
19
- /**
20
- * @description A number is generated based on the configuration type of the PRN during the invoice creation process.
9
+ type:'kid' | 'ocr' | 'frn' | 'fik' | 'swiss_reference';
21
10
 
22
- */
23
-
24
11
  number:string;
25
-
26
- /**
27
- * @description The &#x60;invoice_id&#x60; of the payment reference number (PRN) resource is the unique identifier assigned to the invoice that the PRN is associated with.
28
12
 
29
- */
30
-
31
13
  invoice_id?:string;
14
+
32
15
  }
33
16
  }
@@ -163,7 +163,7 @@ declare module 'chargebee' {
163
163
  }
164
164
  export interface CreateUsingPaymentIntentInputParam {
165
165
 
166
- payment_intent?:{additional_info?:object,additional_information?:object,gateway_account_id?:string,gw_payment_method_id?:string,gw_token?:string,id?:string,payment_method_type?:'card' | 'ideal' | 'sofort' | 'bancontact' | 'google_pay' | 'dotpay' | 'giropay' | 'apple_pay' | 'upi' | 'netbanking_emandates' | 'paypal_express_checkout' | 'direct_debit' | 'boleto' | 'venmo' | 'amazon_payments' | 'pay_to' | 'faster_payments' | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland',reference_id?:string};
166
+ payment_intent?:{additional_info?:object,additional_information?:object,gateway_account_id?:string,gw_payment_method_id?:string,gw_token?:string,id?:string,payment_method_type?:'card' | 'ideal' | 'sofort' | 'bancontact' | 'google_pay' | 'dotpay' | 'giropay' | 'apple_pay' | 'upi' | 'netbanking_emandates' | 'paypal_express_checkout' | 'direct_debit' | 'boleto' | 'venmo' | 'amazon_payments' | 'pay_to' | 'faster_payments' | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland' | 'payconiq_by_bancontact',reference_id?:string};
167
167
 
168
168
  customer_id:string;
169
169
 
@@ -258,7 +258,7 @@ declare module 'chargebee' {
258
258
  limit?:number;
259
259
 
260
260
  /**
261
- * @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.
261
+ * @description Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set &#x27;offset&#x27; to the value of &#x27;next_offset&#x27; obtained in the previous iteration of the API call.
262
262
 
263
263
  */
264
264
 
@@ -280,7 +280,7 @@ declare module 'chargebee' {
280
280
 
281
281
  */
282
282
 
283
- type?:{in?:string,is?:'card' | 'paypal_express_checkout' | 'amazon_payments' | 'direct_debit' | 'generic' | 'alipay' | 'unionpay' | 'apple_pay' | 'wechat_pay' | 'ideal' | 'google_pay' | 'sofort' | 'bancontact' | 'giropay' | 'dotpay' | 'upi' | 'netbanking_emandates' | 'venmo' | 'pay_to' | 'faster_payments' | 'sepa_instant_transfer' | 'automated_bank_transfer' | 'klarna_pay_now' | 'online_banking_poland',is_not?:'card' | 'paypal_express_checkout' | 'amazon_payments' | 'direct_debit' | 'generic' | 'alipay' | 'unionpay' | 'apple_pay' | 'wechat_pay' | 'ideal' | 'google_pay' | 'sofort' | 'bancontact' | 'giropay' | 'dotpay' | 'upi' | 'netbanking_emandates' | 'venmo' | 'pay_to' | 'faster_payments' | 'sepa_instant_transfer' | 'automated_bank_transfer' | 'klarna_pay_now' | 'online_banking_poland',not_in?:string};
283
+ type?:{in?:string,is?:'card' | 'paypal_express_checkout' | 'amazon_payments' | 'direct_debit' | 'generic' | 'alipay' | 'unionpay' | 'apple_pay' | 'wechat_pay' | 'ideal' | 'google_pay' | 'sofort' | 'bancontact' | 'giropay' | 'dotpay' | 'upi' | 'netbanking_emandates' | 'venmo' | 'pay_to' | 'faster_payments' | 'sepa_instant_transfer' | 'automated_bank_transfer' | 'klarna_pay_now' | 'online_banking_poland' | 'payconiq_by_bancontact',is_not?:'card' | 'paypal_express_checkout' | 'amazon_payments' | 'direct_debit' | 'generic' | 'alipay' | 'unionpay' | 'apple_pay' | 'wechat_pay' | 'ideal' | 'google_pay' | 'sofort' | 'bancontact' | 'giropay' | 'dotpay' | 'upi' | 'netbanking_emandates' | 'venmo' | 'pay_to' | 'faster_payments' | 'sepa_instant_transfer' | 'automated_bank_transfer' | 'klarna_pay_now' | 'online_banking_poland' | 'payconiq_by_bancontact',not_in?:string};
284
284
 
285
285
  /**
286
286
  * @description Current status of the payment source.
@@ -303,7 +303,7 @@ declare module 'chargebee' {
303
303
 
304
304
  created_at?:{after?:string,before?:string,between?:string,on?:string};
305
305
 
306
- sort_by?:{asc?:'created_at' | 'updated_at',desc?:'created_at' | 'updated_at'};
306
+ sort_by?:object;
307
307
  }
308
308
  export interface SwitchGatewayAccountResponse {
309
309
  customer:Customer;