chargebee 3.0.0-beta.4 → 3.0.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 (84) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +4 -3
  3. package/cjs/environment.js +1 -1
  4. package/cjs/util.js +1 -1
  5. package/esm/environment.js +1 -1
  6. package/esm/util.js +1 -1
  7. package/package.json +1 -1
  8. package/types/core.d.ts +0 -564
  9. package/types/index.d.ts +0 -167
  10. package/types/resources/Address.d.ts +0 -71
  11. package/types/resources/AdvanceInvoiceSchedule.d.ts +0 -29
  12. package/types/resources/AttachedItem.d.ts +0 -114
  13. package/types/resources/Attribute.d.ts +0 -9
  14. package/types/resources/BusinessEntity.d.ts +0 -64
  15. package/types/resources/BusinessEntityTransfer.d.ts +0 -15
  16. package/types/resources/Card.d.ts +0 -171
  17. package/types/resources/Comment.d.ts +0 -89
  18. package/types/resources/Contact.d.ts +0 -16
  19. package/types/resources/ContractTerm.d.ts +0 -19
  20. package/types/resources/Coupon.d.ts +0 -314
  21. package/types/resources/CouponCode.d.ts +0 -70
  22. package/types/resources/CouponSet.d.ts +0 -111
  23. package/types/resources/CreditNote.d.ts +0 -628
  24. package/types/resources/CreditNoteEstimate.d.ts +0 -143
  25. package/types/resources/Currency.d.ts +0 -91
  26. package/types/resources/Customer.d.ts +0 -962
  27. package/types/resources/CustomerEntitlement.d.ts +0 -36
  28. package/types/resources/DifferentialPrice.d.ts +0 -142
  29. package/types/resources/Discount.d.ts +0 -24
  30. package/types/resources/Download.d.ts +0 -10
  31. package/types/resources/Entitlement.d.ts +0 -66
  32. package/types/resources/EntitlementOverride.d.ts +0 -76
  33. package/types/resources/Estimate.d.ts +0 -1237
  34. package/types/resources/Event.d.ts +0 -81
  35. package/types/resources/Export.d.ts +0 -607
  36. package/types/resources/Feature.d.ts +0 -142
  37. package/types/resources/GatewayErrorDetail.d.ts +0 -20
  38. package/types/resources/Gift.d.ts +0 -296
  39. package/types/resources/Hierarchy.d.ts +0 -12
  40. package/types/resources/HostedPage.d.ts +0 -1112
  41. package/types/resources/ImpactedItem.d.ts +0 -20
  42. package/types/resources/ImpactedItemPrice.d.ts +0 -20
  43. package/types/resources/ImpactedSubscription.d.ts +0 -20
  44. package/types/resources/InAppSubscription.d.ts +0 -116
  45. package/types/resources/Invoice.d.ts +0 -1691
  46. package/types/resources/InvoiceEstimate.d.ts +0 -143
  47. package/types/resources/Item.d.ts +0 -204
  48. package/types/resources/ItemEntitlement.d.ts +0 -103
  49. package/types/resources/ItemFamily.d.ts +0 -89
  50. package/types/resources/ItemPrice.d.ts +0 -328
  51. package/types/resources/Metadata.d.ts +0 -8
  52. package/types/resources/NonSubscription.d.ts +0 -48
  53. package/types/resources/Order.d.ts +0 -586
  54. package/types/resources/PaymentIntent.d.ts +0 -178
  55. package/types/resources/PaymentReferenceNumber.d.ts +0 -11
  56. package/types/resources/PaymentSchedule.d.ts +0 -28
  57. package/types/resources/PaymentScheduleEstimate.d.ts +0 -25
  58. package/types/resources/PaymentScheduleScheme.d.ts +0 -62
  59. package/types/resources/PaymentSource.d.ts +0 -529
  60. package/types/resources/PaymentVoucher.d.ts +0 -107
  61. package/types/resources/PortalSession.d.ts +0 -88
  62. package/types/resources/PriceVariant.d.ts +0 -112
  63. package/types/resources/PricingPageSession.d.ts +0 -130
  64. package/types/resources/PromotionalCredit.d.ts +0 -111
  65. package/types/resources/Purchase.d.ts +0 -202
  66. package/types/resources/Quote.d.ts +0 -1467
  67. package/types/resources/QuoteLineGroup.d.ts +0 -136
  68. package/types/resources/QuotedCharge.d.ts +0 -56
  69. package/types/resources/QuotedSubscription.d.ts +0 -114
  70. package/types/resources/Ramp.d.ts +0 -260
  71. package/types/resources/ResourceMigration.d.ts +0 -36
  72. package/types/resources/SiteMigrationDetail.d.ts +0 -46
  73. package/types/resources/Subscription.d.ts +0 -2443
  74. package/types/resources/SubscriptionEntitlement.d.ts +0 -79
  75. package/types/resources/SubscriptionEstimate.d.ts +0 -59
  76. package/types/resources/TaxWithheld.d.ts +0 -19
  77. package/types/resources/ThirdPartyPaymentMethod.d.ts +0 -11
  78. package/types/resources/TimeMachine.d.ts +0 -57
  79. package/types/resources/Token.d.ts +0 -19
  80. package/types/resources/Transaction.d.ts +0 -313
  81. package/types/resources/UnbilledCharge.d.ts +0 -209
  82. package/types/resources/Usage.d.ts +0 -113
  83. package/types/resources/VirtualBankAccount.d.ts +0 -125
  84. package/types/resources/filter.d.ts +0 -52
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## v3.0.0 (2024-11-06)
2
+ * Releasing major version `v3.0.0` :tada:
3
+
4
+ ### v3.0.0-beta.5 (2024-11-05)
5
+
6
+ #### Naming Convention Fix:
7
+ * New suffix Enum has been added to global type.
8
+ * payment_vouchersForInvoice has been renamed to paymentVouchersForInvoice.
9
+ * payment_vouchersForCustomer has been renamed to paymentVouchersForCustomer.
10
+ * Payment_vouchersForInvoiceResponse has been renamed to PaymentVouchersForInvoiceResponse.
11
+ * Payment_vouchersForCustomerResponse has been renmed to PaymentVouchersForCustomerResponse.
12
+
1
13
  ### v3.0.0-beta.4 (2024-10-18)
2
14
 
3
15
  #### New Resource:
package/README.md CHANGED
@@ -142,8 +142,9 @@ An attribute `api_version` is added to the [Event](https://apidocs.chargebee.com
142
142
 
143
143
  ## Feedback
144
144
 
145
- If you find any bugs or have any feedback, open an issue in this repository or email it to dx@chargebee.com
145
+ If you find any bugs or have any questions / feedback, open an issue in this repository or reach out to us on dx@chargebee.com
146
146
 
147
- ## License
148
147
 
149
- See the [LICENSE](./LICENSE) file.
148
+ ## v2
149
+
150
+ Chargebee Node SDK v2 is deprecated. If you using v2, follow [this guide](https://github.com/chargebee/chargebee-node/wiki/Migration-guide-for-v3) to migrate to v3.
@@ -11,7 +11,7 @@ exports.Environment = {
11
11
  hostSuffix: '.chargebee.com',
12
12
  apiPath: '/api/v2',
13
13
  timeout: DEFAULT_TIME_OUT,
14
- clientVersion: 'v3.0.0-beta.4',
14
+ clientVersion: 'v3.0.0',
15
15
  port: DEFAULT_PORT,
16
16
  timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT,
17
17
  exportWaitInMillis: DEFAULT_EXPORT_WAIT,
package/cjs/util.js CHANGED
@@ -194,7 +194,7 @@ function encodeParams(paramObj, serialized, scope, index) {
194
194
  }
195
195
  }
196
196
  }
197
- else if (key === 'meta_data' || key === "metadata") {
197
+ else if (key === 'meta_data' || key === 'metadata') {
198
198
  let attrVal = '';
199
199
  if (value !== null) {
200
200
  attrVal = encodeURIComponent(Object.prototype.toString.call(value) === '[object String]'
@@ -8,7 +8,7 @@ export const Environment = {
8
8
  hostSuffix: '.chargebee.com',
9
9
  apiPath: '/api/v2',
10
10
  timeout: DEFAULT_TIME_OUT,
11
- clientVersion: 'v3.0.0-beta.4',
11
+ clientVersion: 'v3.0.0',
12
12
  port: DEFAULT_PORT,
13
13
  timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT,
14
14
  exportWaitInMillis: DEFAULT_EXPORT_WAIT,
package/esm/util.js CHANGED
@@ -178,7 +178,7 @@ export function encodeParams(paramObj, serialized, scope, index) {
178
178
  }
179
179
  }
180
180
  }
181
- else if (key === 'meta_data' || key === "metadata") {
181
+ else if (key === 'meta_data' || key === 'metadata') {
182
182
  let attrVal = '';
183
183
  if (value !== null) {
184
184
  attrVal = encodeURIComponent(Object.prototype.toString.call(value) === '[object String]'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chargebee",
3
- "version": "3.0.0-beta.4",
3
+ "version": "3.0.0",
4
4
  "description": "A library for integrating with Chargebee.",
5
5
  "scripts": {
6
6
  "prepack": "npm install && npm run build",
package/types/core.d.ts DELETED
@@ -1,564 +0,0 @@
1
- declare module 'chargebee' {
2
- export class RequestConfig {
3
- site?: string;
4
- apiKey?: string;
5
- timeout?: number;
6
- timemachineWaitInMillis?: number;
7
- exportWaitInMillis?: number;
8
- }
9
- export type ChargebeeResponse<T> = T & {
10
- headers: { [key: string]: string };
11
- isIdempotencyReplayed?: boolean | string;
12
- };
13
- export type ChargebeeRequestHeader = {
14
- [key: string]: string | undefined;
15
- 'chargebee-idempotency-key'?: string;
16
- 'chargebee-event-email'?: string;
17
- 'chargebee-request-origin-ip'?: string;
18
- 'chargebee-request-origin-user'?: string;
19
- 'chargebee-request-origin-user-encoded'?: string;
20
- 'chargebee-request-origin-device'?: string;
21
- };
22
- type AccountHolderType = 'individual' | 'company';
23
- type AccountReceivablesHandling =
24
- | 'no_action'
25
- | 'schedule_payment_collection'
26
- | 'write_off';
27
- type AccountType = 'checking' | 'savings' | 'business_checking' | 'current';
28
- type Action = 'upsert' | 'remove';
29
- type ApiVersion = 'v1' | 'v2';
30
- type ApplyOn = 'invoice_amount' | 'specific_item_price';
31
- type AutoCollection = 'on' | 'off';
32
- type AvalaraSaleType = 'wholesale' | 'retail' | 'consumed' | 'vendor_use';
33
- type BillingAlignmentMode = 'immediate' | 'delayed';
34
- type BillingDateMode = 'using_defaults' | 'manually_set';
35
- type BillingDayOfWeekMode = 'using_defaults' | 'manually_set';
36
- type CancelOption =
37
- | 'immediately'
38
- | 'end_of_term'
39
- | 'specific_date'
40
- | 'end_of_billing_term';
41
- type ChangeOption = 'immediately' | 'end_of_term' | 'specific_date';
42
- type Channel = 'web' | 'app_store' | 'play_store';
43
- type ChargeModel = 'full_charge' | 'prorate';
44
- type ChargeOnEvent =
45
- | 'subscription_creation'
46
- | 'subscription_trial_start'
47
- | 'plan_activation'
48
- | 'subscription_activation'
49
- | 'contract_termination'
50
- | 'on_demand';
51
- type ChargeOnOption = 'immediately' | 'on_event';
52
- type ChargesHandling = 'invoice_immediately' | 'add_to_unbilled_charges';
53
- type ContractTermCancelOption =
54
- | 'terminate_immediately'
55
- | 'end_of_contract_term';
56
- type CreditOptionForCurrentTermCharges = 'none' | 'prorate' | 'full';
57
- type CreditType = 'loyalty_credits' | 'referral_rewards' | 'general';
58
- type CustomerType =
59
- | 'residential'
60
- | 'business'
61
- | 'senior_citizen'
62
- | 'industrial';
63
- type DedupeOption = 'skip' | 'update_existing';
64
- type DirectDebitScheme =
65
- | 'ach'
66
- | 'bacs'
67
- | 'sepa_core'
68
- | 'autogiro'
69
- | 'becs'
70
- | 'becs_nz'
71
- | 'pad'
72
- | 'not_applicable';
73
- type DispositionType = 'attachment' | 'inline';
74
- type DunningType = 'auto_collect' | 'offline' | 'direct_debit';
75
- type DurationType = 'one_time' | 'forever' | 'limited_period';
76
- type EcheckType = 'web' | 'ppd' | 'ccd';
77
- type EinvoicingMethod = 'automatic' | 'manual' | 'site_default';
78
- type EndScheduleOn =
79
- | 'after_number_of_intervals'
80
- | 'specific_date'
81
- | 'subscription_end';
82
- type EntityCode =
83
- | 'a'
84
- | 'b'
85
- | 'c'
86
- | 'd'
87
- | 'e'
88
- | 'f'
89
- | 'g'
90
- | 'h'
91
- | 'i'
92
- | 'j'
93
- | 'k'
94
- | 'l'
95
- | 'm'
96
- | 'n'
97
- | 'p'
98
- | 'q'
99
- | 'r'
100
- | 'med1'
101
- | 'med2';
102
- type EntityType =
103
- | 'customer'
104
- | 'subscription'
105
- | 'coupon'
106
- | 'plan_item_price'
107
- | 'addon_item_price'
108
- | 'charge_item_price'
109
- | 'invoice'
110
- | 'quote'
111
- | 'credit_note'
112
- | 'transaction'
113
- | 'plan'
114
- | 'addon'
115
- | 'order'
116
- | 'item_family'
117
- | 'item'
118
- | 'item_price'
119
- | 'plan_item'
120
- | 'addon_item'
121
- | 'charge_item'
122
- | 'plan_price'
123
- | 'addon_price'
124
- | 'charge_price'
125
- | 'differential_price'
126
- | 'attached_item'
127
- | 'feature'
128
- | 'subscription_entitlement'
129
- | 'item_entitlement'
130
- | 'business_entity'
131
- | 'price_variant';
132
- type EventName = 'cancellation_page_loaded';
133
- type EventType =
134
- | 'coupon_created'
135
- | 'coupon_updated'
136
- | 'coupon_deleted'
137
- | 'coupon_set_created'
138
- | 'coupon_set_updated'
139
- | 'coupon_set_deleted'
140
- | 'coupon_codes_added'
141
- | 'coupon_codes_deleted'
142
- | 'coupon_codes_updated'
143
- | 'customer_created'
144
- | 'customer_changed'
145
- | 'customer_deleted'
146
- | 'customer_moved_out'
147
- | 'customer_moved_in'
148
- | 'promotional_credits_added'
149
- | 'promotional_credits_deducted'
150
- | 'subscription_created'
151
- | 'subscription_created_with_backdating'
152
- | 'subscription_started'
153
- | 'subscription_trial_end_reminder'
154
- | 'subscription_activated'
155
- | 'subscription_activated_with_backdating'
156
- | 'subscription_changed'
157
- | 'subscription_trial_extended'
158
- | 'mrr_updated'
159
- | 'subscription_changed_with_backdating'
160
- | 'subscription_cancellation_scheduled'
161
- | 'subscription_cancellation_reminder'
162
- | 'subscription_cancelled'
163
- | 'subscription_canceled_with_backdating'
164
- | 'subscription_reactivated'
165
- | 'subscription_reactivated_with_backdating'
166
- | 'subscription_renewed'
167
- | 'subscription_items_renewed'
168
- | 'subscription_scheduled_cancellation_removed'
169
- | 'subscription_changes_scheduled'
170
- | 'subscription_scheduled_changes_removed'
171
- | 'subscription_shipping_address_updated'
172
- | 'subscription_deleted'
173
- | 'subscription_paused'
174
- | 'subscription_pause_scheduled'
175
- | 'subscription_scheduled_pause_removed'
176
- | 'subscription_resumed'
177
- | 'subscription_resumption_scheduled'
178
- | 'subscription_scheduled_resumption_removed'
179
- | 'subscription_advance_invoice_schedule_added'
180
- | 'subscription_advance_invoice_schedule_updated'
181
- | 'subscription_advance_invoice_schedule_removed'
182
- | 'pending_invoice_created'
183
- | 'pending_invoice_updated'
184
- | 'invoice_generated'
185
- | 'invoice_generated_with_backdating'
186
- | 'invoice_updated'
187
- | 'invoice_deleted'
188
- | 'credit_note_created'
189
- | 'credit_note_created_with_backdating'
190
- | 'credit_note_updated'
191
- | 'credit_note_deleted'
192
- | 'payment_schedules_created'
193
- | 'payment_schedules_updated'
194
- | 'payment_schedule_scheme_created'
195
- | 'payment_schedule_scheme_deleted'
196
- | 'subscription_renewal_reminder'
197
- | 'add_usages_reminder'
198
- | 'transaction_created'
199
- | 'transaction_updated'
200
- | 'transaction_deleted'
201
- | 'payment_succeeded'
202
- | 'payment_failed'
203
- | 'payment_refunded'
204
- | 'payment_initiated'
205
- | 'refund_initiated'
206
- | 'authorization_succeeded'
207
- | 'authorization_voided'
208
- | 'card_added'
209
- | 'card_updated'
210
- | 'card_expiry_reminder'
211
- | 'card_expired'
212
- | 'card_deleted'
213
- | 'payment_source_added'
214
- | 'payment_source_updated'
215
- | 'payment_source_deleted'
216
- | 'payment_source_expiring'
217
- | 'payment_source_expired'
218
- | 'payment_source_locally_deleted'
219
- | 'virtual_bank_account_added'
220
- | 'virtual_bank_account_updated'
221
- | 'virtual_bank_account_deleted'
222
- | 'token_created'
223
- | 'token_consumed'
224
- | 'token_expired'
225
- | 'unbilled_charges_created'
226
- | 'unbilled_charges_voided'
227
- | 'unbilled_charges_deleted'
228
- | 'unbilled_charges_invoiced'
229
- | 'order_created'
230
- | 'order_updated'
231
- | 'order_cancelled'
232
- | 'order_delivered'
233
- | 'order_returned'
234
- | 'order_ready_to_process'
235
- | 'order_ready_to_ship'
236
- | 'order_deleted'
237
- | 'order_resent'
238
- | 'quote_created'
239
- | 'quote_updated'
240
- | 'quote_deleted'
241
- | 'tax_withheld_recorded'
242
- | 'tax_withheld_deleted'
243
- | 'tax_withheld_refunded'
244
- | 'gift_scheduled'
245
- | 'gift_unclaimed'
246
- | 'gift_claimed'
247
- | 'gift_expired'
248
- | 'gift_cancelled'
249
- | 'gift_updated'
250
- | 'hierarchy_created'
251
- | 'hierarchy_deleted'
252
- | 'payment_intent_created'
253
- | 'payment_intent_updated'
254
- | 'contract_term_created'
255
- | 'contract_term_renewed'
256
- | 'contract_term_terminated'
257
- | 'contract_term_completed'
258
- | 'contract_term_cancelled'
259
- | 'item_family_created'
260
- | 'item_family_updated'
261
- | 'item_family_deleted'
262
- | 'item_created'
263
- | 'item_updated'
264
- | 'item_deleted'
265
- | 'item_price_created'
266
- | 'item_price_updated'
267
- | 'item_price_deleted'
268
- | 'attached_item_created'
269
- | 'attached_item_updated'
270
- | 'attached_item_deleted'
271
- | 'differential_price_created'
272
- | 'differential_price_updated'
273
- | 'differential_price_deleted'
274
- | 'feature_created'
275
- | 'feature_updated'
276
- | 'feature_deleted'
277
- | 'feature_activated'
278
- | 'feature_reactivated'
279
- | 'feature_archived'
280
- | 'item_entitlements_updated'
281
- | 'entitlement_overrides_updated'
282
- | 'entitlement_overrides_removed'
283
- | 'item_entitlements_removed'
284
- | 'entitlement_overrides_auto_removed'
285
- | 'subscription_entitlements_created'
286
- | 'business_entity_created'
287
- | 'business_entity_updated'
288
- | 'business_entity_deleted'
289
- | 'customer_business_entity_changed'
290
- | 'subscription_business_entity_changed'
291
- | 'purchase_created'
292
- | 'voucher_created'
293
- | 'voucher_expired'
294
- | 'voucher_create_failed'
295
- | 'item_price_entitlements_updated'
296
- | 'item_price_entitlements_removed'
297
- | 'subscription_ramp_created'
298
- | 'subscription_ramp_deleted'
299
- | 'subscription_ramp_applied'
300
- | 'subscription_ramp_drafted'
301
- | 'subscription_ramp_updated'
302
- | 'price_variant_created'
303
- | 'price_variant_updated'
304
- | 'price_variant_deleted'
305
- | 'customer_entitlements_updated'
306
- | 'subscription_moved_in'
307
- | 'subscription_moved_out'
308
- | 'subscription_movement_failed'
309
- | 'plan_created'
310
- | 'plan_updated'
311
- | 'plan_deleted'
312
- | 'addon_created'
313
- | 'addon_updated'
314
- | 'addon_deleted';
315
- type ExportType = 'data' | 'import_friendly_data';
316
- type FreePeriodUnit = 'day' | 'week' | 'month' | 'year';
317
- type FriendOfferType = 'none' | 'coupon' | 'coupon_code';
318
- type Gateway =
319
- | 'chargebee'
320
- | 'chargebee_payments'
321
- | 'stripe'
322
- | 'wepay'
323
- | 'braintree'
324
- | 'authorize_net'
325
- | 'paypal_pro'
326
- | 'pin'
327
- | 'eway'
328
- | 'eway_rapid'
329
- | 'worldpay'
330
- | 'balanced_payments'
331
- | 'beanstream'
332
- | 'bluepay'
333
- | 'elavon'
334
- | 'first_data_global'
335
- | 'hdfc'
336
- | 'migs'
337
- | 'nmi'
338
- | 'ogone'
339
- | 'paymill'
340
- | 'paypal_payflow_pro'
341
- | 'sage_pay'
342
- | 'tco'
343
- | 'wirecard'
344
- | 'amazon_payments'
345
- | 'paypal_express_checkout'
346
- | 'adyen'
347
- | 'orbital'
348
- | 'moneris_us'
349
- | 'moneris'
350
- | 'bluesnap'
351
- | 'cybersource'
352
- | 'vantiv'
353
- | 'checkout_com'
354
- | 'paypal'
355
- | 'ingenico_direct'
356
- | 'exact'
357
- | 'mollie'
358
- | 'quickbooks'
359
- | 'razorpay'
360
- | 'global_payments'
361
- | 'bank_of_america'
362
- | 'ecentric'
363
- | 'metrics_global'
364
- | 'windcave'
365
- | 'pay_com'
366
- | 'ebanx'
367
- | 'dlocal'
368
- | 'nuvei'
369
- | 'gocardless'
370
- | 'not_applicable';
371
- type HierarchyOperationType =
372
- | 'complete_hierarchy'
373
- | 'subordinates'
374
- | 'path_to_root';
375
- type InvoiceDunningHandling = 'continue' | 'stop';
376
- type ItemType = 'plan' | 'addon' | 'charge';
377
- type Layout = 'in_app' | 'full_page';
378
- type NotifyReferralSystem = 'none' | 'first_paid_conversion' | 'all_invoices';
379
- type OfflinePaymentMethod =
380
- | 'no_preference'
381
- | 'cash'
382
- | 'check'
383
- | 'bank_transfer'
384
- | 'ach_credit'
385
- | 'sepa_credit'
386
- | 'boleto'
387
- | 'us_automated_bank_transfer'
388
- | 'eu_automated_bank_transfer'
389
- | 'uk_automated_bank_transfer'
390
- | 'jp_automated_bank_transfer'
391
- | 'mx_automated_bank_transfer'
392
- | 'custom';
393
- type OnEvent =
394
- | 'subscription_creation'
395
- | 'subscription_trial_start'
396
- | 'plan_activation'
397
- | 'subscription_activation'
398
- | 'contract_termination';
399
- type Operation = 'create' | 'update' | 'delete';
400
- type OperationType = 'add' | 'remove';
401
- type PauseOption =
402
- | 'immediately'
403
- | 'end_of_term'
404
- | 'specific_date'
405
- | 'billing_cycles';
406
- type PaymentInitiator = 'customer' | 'merchant';
407
- type PaymentMethod =
408
- | 'cash'
409
- | 'check'
410
- | 'bank_transfer'
411
- | 'other'
412
- | 'custom'
413
- | 'chargeback'
414
- | 'card'
415
- | 'amazon_payments'
416
- | 'paypal_express_checkout'
417
- | 'direct_debit'
418
- | 'alipay'
419
- | 'unionpay'
420
- | 'apple_pay'
421
- | 'wechat_pay'
422
- | 'ach_credit'
423
- | 'sepa_credit'
424
- | 'ideal'
425
- | 'google_pay'
426
- | 'sofort'
427
- | 'bancontact'
428
- | 'giropay'
429
- | 'dotpay'
430
- | 'upi'
431
- | 'netbanking_emandates'
432
- | 'boleto'
433
- | 'venmo'
434
- | 'pay_to'
435
- | 'faster_payments'
436
- | 'sepa_instant_transfer'
437
- | 'automated_bank_transfer'
438
- | 'klarna_pay_now'
439
- | 'online_banking_poland';
440
- type PaymentMethodType =
441
- | 'card'
442
- | 'paypal_express_checkout'
443
- | 'amazon_payments'
444
- | 'direct_debit'
445
- | 'generic'
446
- | 'alipay'
447
- | 'unionpay'
448
- | 'apple_pay'
449
- | 'wechat_pay'
450
- | 'ideal'
451
- | 'google_pay'
452
- | 'sofort'
453
- | 'bancontact'
454
- | 'giropay'
455
- | 'dotpay'
456
- | 'upi'
457
- | 'netbanking_emandates'
458
- | 'venmo'
459
- | 'pay_to'
460
- | 'faster_payments'
461
- | 'sepa_instant_transfer'
462
- | 'automated_bank_transfer'
463
- | 'klarna_pay_now'
464
- | 'online_banking_poland';
465
- type PaymentVoucherType = 'boleto';
466
- type PeriodUnit = 'day' | 'week' | 'month' | 'year';
467
- type PriceType = 'tax_exclusive' | 'tax_inclusive';
468
- type PricingModel =
469
- | 'flat_fee'
470
- | 'per_unit'
471
- | 'tiered'
472
- | 'volume'
473
- | 'stairstep';
474
- type ProrationType = 'full_term' | 'partial_term' | 'none';
475
- type ReferralSystem = 'referral_candy' | 'referral_saasquatch' | 'friendbuy';
476
- type ReferrerRewardType =
477
- | 'none'
478
- | 'referral_direct_reward'
479
- | 'custom_promotional_credit'
480
- | 'custom_revenue_percent_based';
481
- type RefundableCreditsHandling = 'no_action' | 'schedule_refund';
482
- type ReportBy = 'customer' | 'invoice' | 'product' | 'subscription';
483
- type ResumeOption = 'immediately' | 'specific_date';
484
- type Role = 'primary' | 'backup' | 'none';
485
- type ScheduleType = 'immediate' | 'specific_dates' | 'fixed_intervals';
486
- type Source =
487
- | 'admin_console'
488
- | 'api'
489
- | 'bulk_operation'
490
- | 'scheduled_job'
491
- | 'hosted_page'
492
- | 'portal'
493
- | 'system'
494
- | 'none'
495
- | 'js_api'
496
- | 'migration'
497
- | 'external_service';
498
- type TaxExemptReason =
499
- | 'tax_not_configured'
500
- | 'region_non_taxable'
501
- | 'export'
502
- | 'customer_exempt'
503
- | 'product_exempt'
504
- | 'zero_rated'
505
- | 'reverse_charge'
506
- | 'high_value_physical_goods'
507
- | 'zero_value_item'
508
- | 'tax_not_configured_external_provider';
509
- type TaxJurisType =
510
- | 'country'
511
- | 'federal'
512
- | 'state'
513
- | 'county'
514
- | 'city'
515
- | 'special'
516
- | 'unincorporated'
517
- | 'other';
518
- type TaxOverrideReason = 'id_exempt' | 'customer_exempt' | 'export';
519
- type Taxability = 'taxable' | 'exempt';
520
- type TaxjarExemptionCategory = 'wholesale' | 'government' | 'other';
521
- type TrialEndAction =
522
- | 'site_default'
523
- | 'plan_default'
524
- | 'activate_subscription'
525
- | 'cancel_subscription';
526
- type Type =
527
- | 'card'
528
- | 'paypal_express_checkout'
529
- | 'amazon_payments'
530
- | 'direct_debit'
531
- | 'generic'
532
- | 'alipay'
533
- | 'unionpay'
534
- | 'apple_pay'
535
- | 'wechat_pay'
536
- | 'ideal'
537
- | 'google_pay'
538
- | 'sofort'
539
- | 'bancontact'
540
- | 'giropay'
541
- | 'dotpay'
542
- | 'upi'
543
- | 'netbanking_emandates'
544
- | 'venmo'
545
- | 'pay_to'
546
- | 'faster_payments'
547
- | 'sepa_instant_transfer'
548
- | 'automated_bank_transfer'
549
- | 'klarna_pay_now'
550
- | 'online_banking_poland';
551
- type UnbilledChargesHandling = 'no_action' | 'invoice';
552
- type UnbilledChargesOption = 'invoice' | 'delete';
553
- type UnpaidInvoicesHandling = 'no_action' | 'schedule_payment_collection';
554
- type UsageAccumulationResetFrequency =
555
- | 'never'
556
- | 'subscription_billing_frequency';
557
- type ValidationStatus =
558
- | 'not_validated'
559
- | 'valid'
560
- | 'partially_valid'
561
- | 'invalid';
562
- type VoucherType = 'boleto';
563
- type ChargeOn = 'immediately' | 'on_event';
564
- }