chargebee 3.0.0 → 3.0.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.
- package/CHANGELOG.md +9 -0
- package/README.md +5 -5
- package/cjs/environment.js +1 -1
- package/esm/environment.js +1 -1
- package/package.json +1 -1
- package/types/core.d.ts +574 -0
- package/types/index.d.ts +167 -0
- package/types/resources/Address.d.ts +71 -0
- package/types/resources/AdvanceInvoiceSchedule.d.ts +29 -0
- package/types/resources/AttachedItem.d.ts +114 -0
- package/types/resources/Attribute.d.ts +9 -0
- package/types/resources/BusinessEntity.d.ts +64 -0
- package/types/resources/BusinessEntityTransfer.d.ts +15 -0
- package/types/resources/Card.d.ts +171 -0
- package/types/resources/Comment.d.ts +89 -0
- package/types/resources/Contact.d.ts +16 -0
- package/types/resources/ContractTerm.d.ts +19 -0
- package/types/resources/Coupon.d.ts +314 -0
- package/types/resources/CouponCode.d.ts +70 -0
- package/types/resources/CouponSet.d.ts +111 -0
- package/types/resources/CreditNote.d.ts +628 -0
- package/types/resources/CreditNoteEstimate.d.ts +143 -0
- package/types/resources/Currency.d.ts +91 -0
- package/types/resources/Customer.d.ts +962 -0
- package/types/resources/CustomerEntitlement.d.ts +36 -0
- package/types/resources/DifferentialPrice.d.ts +142 -0
- package/types/resources/Discount.d.ts +24 -0
- package/types/resources/Download.d.ts +10 -0
- package/types/resources/Entitlement.d.ts +66 -0
- package/types/resources/EntitlementOverride.d.ts +76 -0
- package/types/resources/Estimate.d.ts +1237 -0
- package/types/resources/Event.d.ts +81 -0
- package/types/resources/Export.d.ts +607 -0
- package/types/resources/Feature.d.ts +142 -0
- package/types/resources/GatewayErrorDetail.d.ts +20 -0
- package/types/resources/Gift.d.ts +296 -0
- package/types/resources/Hierarchy.d.ts +12 -0
- package/types/resources/HostedPage.d.ts +1112 -0
- package/types/resources/ImpactedItem.d.ts +20 -0
- package/types/resources/ImpactedItemPrice.d.ts +20 -0
- package/types/resources/ImpactedSubscription.d.ts +20 -0
- package/types/resources/InAppSubscription.d.ts +116 -0
- package/types/resources/Invoice.d.ts +1691 -0
- package/types/resources/InvoiceEstimate.d.ts +143 -0
- package/types/resources/Item.d.ts +204 -0
- package/types/resources/ItemEntitlement.d.ts +103 -0
- package/types/resources/ItemFamily.d.ts +89 -0
- package/types/resources/ItemPrice.d.ts +328 -0
- package/types/resources/Metadata.d.ts +8 -0
- package/types/resources/NonSubscription.d.ts +48 -0
- package/types/resources/Order.d.ts +586 -0
- package/types/resources/PaymentIntent.d.ts +178 -0
- package/types/resources/PaymentReferenceNumber.d.ts +11 -0
- package/types/resources/PaymentSchedule.d.ts +28 -0
- package/types/resources/PaymentScheduleEstimate.d.ts +25 -0
- package/types/resources/PaymentScheduleScheme.d.ts +62 -0
- package/types/resources/PaymentSource.d.ts +529 -0
- package/types/resources/PaymentVoucher.d.ts +107 -0
- package/types/resources/PortalSession.d.ts +88 -0
- package/types/resources/PriceVariant.d.ts +112 -0
- package/types/resources/PricingPageSession.d.ts +130 -0
- package/types/resources/PromotionalCredit.d.ts +111 -0
- package/types/resources/Purchase.d.ts +202 -0
- package/types/resources/Quote.d.ts +1467 -0
- package/types/resources/QuoteLineGroup.d.ts +136 -0
- package/types/resources/QuotedCharge.d.ts +56 -0
- package/types/resources/QuotedSubscription.d.ts +114 -0
- package/types/resources/Ramp.d.ts +260 -0
- package/types/resources/ResourceMigration.d.ts +36 -0
- package/types/resources/SiteMigrationDetail.d.ts +46 -0
- package/types/resources/Subscription.d.ts +2443 -0
- package/types/resources/SubscriptionEntitlement.d.ts +79 -0
- package/types/resources/SubscriptionEstimate.d.ts +59 -0
- package/types/resources/TaxWithheld.d.ts +19 -0
- package/types/resources/ThirdPartyPaymentMethod.d.ts +11 -0
- package/types/resources/TimeMachine.d.ts +57 -0
- package/types/resources/Token.d.ts +19 -0
- package/types/resources/Transaction.d.ts +313 -0
- package/types/resources/UnbilledCharge.d.ts +209 -0
- package/types/resources/Usage.d.ts +113 -0
- package/types/resources/VirtualBankAccount.d.ts +125 -0
- package/types/resources/filter.d.ts +52 -0
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Chargebee Node.js / TypeScript client library
|
|
1
|
+
# Chargebee Node.js / TypeScript client library
|
|
2
2
|
|
|
3
3
|
This is the [Node.js](http://nodejs.org/) library for integrating with Chargebee. Sign up for a Chargebee account [here](https://www.chargebee.com).
|
|
4
4
|
|
|
@@ -10,19 +10,19 @@ Node.js 18 or higher.
|
|
|
10
10
|
|
|
11
11
|
## Installation
|
|
12
12
|
|
|
13
|
-
Install the
|
|
13
|
+
Install the library with npm:
|
|
14
14
|
|
|
15
15
|
```sh
|
|
16
|
-
npm install chargebee
|
|
16
|
+
npm install chargebee
|
|
17
17
|
```
|
|
18
18
|
With pnpm:
|
|
19
19
|
```sh
|
|
20
|
-
pnpm add chargebee
|
|
20
|
+
pnpm add chargebee
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
With yarn:
|
|
24
24
|
```sh
|
|
25
|
-
yarn add chargebee
|
|
25
|
+
yarn add chargebee
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
## Usage
|
package/cjs/environment.js
CHANGED
|
@@ -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.
|
|
14
|
+
clientVersion: 'v3.0.2',
|
|
15
15
|
port: DEFAULT_PORT,
|
|
16
16
|
timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT,
|
|
17
17
|
exportWaitInMillis: DEFAULT_EXPORT_WAIT,
|
package/esm/environment.js
CHANGED
|
@@ -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.
|
|
11
|
+
clientVersion: 'v3.0.2',
|
|
12
12
|
port: DEFAULT_PORT,
|
|
13
13
|
timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT,
|
|
14
14
|
exportWaitInMillis: DEFAULT_EXPORT_WAIT,
|
package/package.json
CHANGED
package/types/core.d.ts
ADDED
|
@@ -0,0 +1,574 @@
|
|
|
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 AccountHolderTypeEnum = 'individual' | 'company';
|
|
23
|
+
type AccountReceivablesHandlingEnum =
|
|
24
|
+
| 'no_action'
|
|
25
|
+
| 'schedule_payment_collection'
|
|
26
|
+
| 'write_off';
|
|
27
|
+
type AccountTypeEnum =
|
|
28
|
+
| 'checking'
|
|
29
|
+
| 'savings'
|
|
30
|
+
| 'business_checking'
|
|
31
|
+
| 'current';
|
|
32
|
+
type ActionEnum = 'upsert' | 'remove';
|
|
33
|
+
type ApiVersionEnum = 'v1' | 'v2';
|
|
34
|
+
type ApplyOnEnum = 'invoice_amount' | 'specific_item_price';
|
|
35
|
+
type AutoCollectionEnum = 'on' | 'off';
|
|
36
|
+
type AvalaraSaleTypeEnum = 'wholesale' | 'retail' | 'consumed' | 'vendor_use';
|
|
37
|
+
type BillingAlignmentModeEnum = 'immediate' | 'delayed';
|
|
38
|
+
type BillingDateModeEnum = 'using_defaults' | 'manually_set';
|
|
39
|
+
type BillingDayOfWeekModeEnum = 'using_defaults' | 'manually_set';
|
|
40
|
+
type CancelOptionEnum =
|
|
41
|
+
| 'immediately'
|
|
42
|
+
| 'end_of_term'
|
|
43
|
+
| 'specific_date'
|
|
44
|
+
| 'end_of_billing_term';
|
|
45
|
+
type ChangeOptionEnum = 'immediately' | 'end_of_term' | 'specific_date';
|
|
46
|
+
type ChannelEnum = 'web' | 'app_store' | 'play_store';
|
|
47
|
+
type ChargeModelEnum = 'full_charge' | 'prorate';
|
|
48
|
+
type ChargeOnEventEnum =
|
|
49
|
+
| 'subscription_creation'
|
|
50
|
+
| 'subscription_trial_start'
|
|
51
|
+
| 'plan_activation'
|
|
52
|
+
| 'subscription_activation'
|
|
53
|
+
| 'contract_termination'
|
|
54
|
+
| 'on_demand';
|
|
55
|
+
type ChargeOnOptionEnum = 'immediately' | 'on_event';
|
|
56
|
+
type ChargesHandlingEnum = 'invoice_immediately' | 'add_to_unbilled_charges';
|
|
57
|
+
type ContractTermCancelOptionEnum =
|
|
58
|
+
| 'terminate_immediately'
|
|
59
|
+
| 'end_of_contract_term';
|
|
60
|
+
type CreditOptionForCurrentTermChargesEnum = 'none' | 'prorate' | 'full';
|
|
61
|
+
type CreditTypeEnum = 'loyalty_credits' | 'referral_rewards' | 'general';
|
|
62
|
+
type CustomerTypeEnum =
|
|
63
|
+
| 'residential'
|
|
64
|
+
| 'business'
|
|
65
|
+
| 'senior_citizen'
|
|
66
|
+
| 'industrial';
|
|
67
|
+
type DedupeOptionEnum = 'skip' | 'update_existing';
|
|
68
|
+
type DirectDebitSchemeEnum =
|
|
69
|
+
| 'ach'
|
|
70
|
+
| 'bacs'
|
|
71
|
+
| 'sepa_core'
|
|
72
|
+
| 'autogiro'
|
|
73
|
+
| 'becs'
|
|
74
|
+
| 'becs_nz'
|
|
75
|
+
| 'pad'
|
|
76
|
+
| 'not_applicable';
|
|
77
|
+
type DispositionTypeEnum = 'attachment' | 'inline';
|
|
78
|
+
type DunningTypeEnum = 'auto_collect' | 'offline' | 'direct_debit';
|
|
79
|
+
type DurationTypeEnum = 'one_time' | 'forever' | 'limited_period';
|
|
80
|
+
type EcheckTypeEnum = 'web' | 'ppd' | 'ccd';
|
|
81
|
+
type EinvoicingMethodEnum = 'automatic' | 'manual' | 'site_default';
|
|
82
|
+
type EndScheduleOnEnum =
|
|
83
|
+
| 'after_number_of_intervals'
|
|
84
|
+
| 'specific_date'
|
|
85
|
+
| 'subscription_end';
|
|
86
|
+
type EntityCodeEnum =
|
|
87
|
+
| 'a'
|
|
88
|
+
| 'b'
|
|
89
|
+
| 'c'
|
|
90
|
+
| 'd'
|
|
91
|
+
| 'e'
|
|
92
|
+
| 'f'
|
|
93
|
+
| 'g'
|
|
94
|
+
| 'h'
|
|
95
|
+
| 'i'
|
|
96
|
+
| 'j'
|
|
97
|
+
| 'k'
|
|
98
|
+
| 'l'
|
|
99
|
+
| 'm'
|
|
100
|
+
| 'n'
|
|
101
|
+
| 'p'
|
|
102
|
+
| 'q'
|
|
103
|
+
| 'r'
|
|
104
|
+
| 'med1'
|
|
105
|
+
| 'med2';
|
|
106
|
+
type EntityTypeEnum =
|
|
107
|
+
| 'customer'
|
|
108
|
+
| 'subscription'
|
|
109
|
+
| 'coupon'
|
|
110
|
+
| 'plan_item_price'
|
|
111
|
+
| 'addon_item_price'
|
|
112
|
+
| 'charge_item_price'
|
|
113
|
+
| 'invoice'
|
|
114
|
+
| 'quote'
|
|
115
|
+
| 'credit_note'
|
|
116
|
+
| 'transaction'
|
|
117
|
+
| 'plan'
|
|
118
|
+
| 'addon'
|
|
119
|
+
| 'order'
|
|
120
|
+
| 'item_family'
|
|
121
|
+
| 'item'
|
|
122
|
+
| 'item_price'
|
|
123
|
+
| 'plan_item'
|
|
124
|
+
| 'addon_item'
|
|
125
|
+
| 'charge_item'
|
|
126
|
+
| 'plan_price'
|
|
127
|
+
| 'addon_price'
|
|
128
|
+
| 'charge_price'
|
|
129
|
+
| 'differential_price'
|
|
130
|
+
| 'attached_item'
|
|
131
|
+
| 'feature'
|
|
132
|
+
| 'subscription_entitlement'
|
|
133
|
+
| 'item_entitlement'
|
|
134
|
+
| 'business_entity'
|
|
135
|
+
| 'price_variant';
|
|
136
|
+
type EventNameEnum = 'cancellation_page_loaded';
|
|
137
|
+
type EventTypeEnum =
|
|
138
|
+
| 'coupon_created'
|
|
139
|
+
| 'coupon_updated'
|
|
140
|
+
| 'coupon_deleted'
|
|
141
|
+
| 'coupon_set_created'
|
|
142
|
+
| 'coupon_set_updated'
|
|
143
|
+
| 'coupon_set_deleted'
|
|
144
|
+
| 'coupon_codes_added'
|
|
145
|
+
| 'coupon_codes_deleted'
|
|
146
|
+
| 'coupon_codes_updated'
|
|
147
|
+
| 'customer_created'
|
|
148
|
+
| 'customer_changed'
|
|
149
|
+
| 'customer_deleted'
|
|
150
|
+
| 'customer_moved_out'
|
|
151
|
+
| 'customer_moved_in'
|
|
152
|
+
| 'promotional_credits_added'
|
|
153
|
+
| 'promotional_credits_deducted'
|
|
154
|
+
| 'subscription_created'
|
|
155
|
+
| 'subscription_created_with_backdating'
|
|
156
|
+
| 'subscription_started'
|
|
157
|
+
| 'subscription_trial_end_reminder'
|
|
158
|
+
| 'subscription_activated'
|
|
159
|
+
| 'subscription_activated_with_backdating'
|
|
160
|
+
| 'subscription_changed'
|
|
161
|
+
| 'subscription_trial_extended'
|
|
162
|
+
| 'mrr_updated'
|
|
163
|
+
| 'subscription_changed_with_backdating'
|
|
164
|
+
| 'subscription_cancellation_scheduled'
|
|
165
|
+
| 'subscription_cancellation_reminder'
|
|
166
|
+
| 'subscription_cancelled'
|
|
167
|
+
| 'subscription_canceled_with_backdating'
|
|
168
|
+
| 'subscription_reactivated'
|
|
169
|
+
| 'subscription_reactivated_with_backdating'
|
|
170
|
+
| 'subscription_renewed'
|
|
171
|
+
| 'subscription_items_renewed'
|
|
172
|
+
| 'subscription_scheduled_cancellation_removed'
|
|
173
|
+
| 'subscription_changes_scheduled'
|
|
174
|
+
| 'subscription_scheduled_changes_removed'
|
|
175
|
+
| 'subscription_shipping_address_updated'
|
|
176
|
+
| 'subscription_deleted'
|
|
177
|
+
| 'subscription_paused'
|
|
178
|
+
| 'subscription_pause_scheduled'
|
|
179
|
+
| 'subscription_scheduled_pause_removed'
|
|
180
|
+
| 'subscription_resumed'
|
|
181
|
+
| 'subscription_resumption_scheduled'
|
|
182
|
+
| 'subscription_scheduled_resumption_removed'
|
|
183
|
+
| 'subscription_advance_invoice_schedule_added'
|
|
184
|
+
| 'subscription_advance_invoice_schedule_updated'
|
|
185
|
+
| 'subscription_advance_invoice_schedule_removed'
|
|
186
|
+
| 'pending_invoice_created'
|
|
187
|
+
| 'pending_invoice_updated'
|
|
188
|
+
| 'invoice_generated'
|
|
189
|
+
| 'invoice_generated_with_backdating'
|
|
190
|
+
| 'invoice_updated'
|
|
191
|
+
| 'invoice_deleted'
|
|
192
|
+
| 'credit_note_created'
|
|
193
|
+
| 'credit_note_created_with_backdating'
|
|
194
|
+
| 'credit_note_updated'
|
|
195
|
+
| 'credit_note_deleted'
|
|
196
|
+
| 'payment_schedules_created'
|
|
197
|
+
| 'payment_schedules_updated'
|
|
198
|
+
| 'payment_schedule_scheme_created'
|
|
199
|
+
| 'payment_schedule_scheme_deleted'
|
|
200
|
+
| 'subscription_renewal_reminder'
|
|
201
|
+
| 'add_usages_reminder'
|
|
202
|
+
| 'transaction_created'
|
|
203
|
+
| 'transaction_updated'
|
|
204
|
+
| 'transaction_deleted'
|
|
205
|
+
| 'payment_succeeded'
|
|
206
|
+
| 'payment_failed'
|
|
207
|
+
| 'payment_refunded'
|
|
208
|
+
| 'payment_initiated'
|
|
209
|
+
| 'refund_initiated'
|
|
210
|
+
| 'authorization_succeeded'
|
|
211
|
+
| 'authorization_voided'
|
|
212
|
+
| 'card_added'
|
|
213
|
+
| 'card_updated'
|
|
214
|
+
| 'card_expiry_reminder'
|
|
215
|
+
| 'card_expired'
|
|
216
|
+
| 'card_deleted'
|
|
217
|
+
| 'payment_source_added'
|
|
218
|
+
| 'payment_source_updated'
|
|
219
|
+
| 'payment_source_deleted'
|
|
220
|
+
| 'payment_source_expiring'
|
|
221
|
+
| 'payment_source_expired'
|
|
222
|
+
| 'payment_source_locally_deleted'
|
|
223
|
+
| 'virtual_bank_account_added'
|
|
224
|
+
| 'virtual_bank_account_updated'
|
|
225
|
+
| 'virtual_bank_account_deleted'
|
|
226
|
+
| 'token_created'
|
|
227
|
+
| 'token_consumed'
|
|
228
|
+
| 'token_expired'
|
|
229
|
+
| 'unbilled_charges_created'
|
|
230
|
+
| 'unbilled_charges_voided'
|
|
231
|
+
| 'unbilled_charges_deleted'
|
|
232
|
+
| 'unbilled_charges_invoiced'
|
|
233
|
+
| 'order_created'
|
|
234
|
+
| 'order_updated'
|
|
235
|
+
| 'order_cancelled'
|
|
236
|
+
| 'order_delivered'
|
|
237
|
+
| 'order_returned'
|
|
238
|
+
| 'order_ready_to_process'
|
|
239
|
+
| 'order_ready_to_ship'
|
|
240
|
+
| 'order_deleted'
|
|
241
|
+
| 'order_resent'
|
|
242
|
+
| 'quote_created'
|
|
243
|
+
| 'quote_updated'
|
|
244
|
+
| 'quote_deleted'
|
|
245
|
+
| 'tax_withheld_recorded'
|
|
246
|
+
| 'tax_withheld_deleted'
|
|
247
|
+
| 'tax_withheld_refunded'
|
|
248
|
+
| 'gift_scheduled'
|
|
249
|
+
| 'gift_unclaimed'
|
|
250
|
+
| 'gift_claimed'
|
|
251
|
+
| 'gift_expired'
|
|
252
|
+
| 'gift_cancelled'
|
|
253
|
+
| 'gift_updated'
|
|
254
|
+
| 'hierarchy_created'
|
|
255
|
+
| 'hierarchy_deleted'
|
|
256
|
+
| 'payment_intent_created'
|
|
257
|
+
| 'payment_intent_updated'
|
|
258
|
+
| 'contract_term_created'
|
|
259
|
+
| 'contract_term_renewed'
|
|
260
|
+
| 'contract_term_terminated'
|
|
261
|
+
| 'contract_term_completed'
|
|
262
|
+
| 'contract_term_cancelled'
|
|
263
|
+
| 'item_family_created'
|
|
264
|
+
| 'item_family_updated'
|
|
265
|
+
| 'item_family_deleted'
|
|
266
|
+
| 'item_created'
|
|
267
|
+
| 'item_updated'
|
|
268
|
+
| 'item_deleted'
|
|
269
|
+
| 'item_price_created'
|
|
270
|
+
| 'item_price_updated'
|
|
271
|
+
| 'item_price_deleted'
|
|
272
|
+
| 'attached_item_created'
|
|
273
|
+
| 'attached_item_updated'
|
|
274
|
+
| 'attached_item_deleted'
|
|
275
|
+
| 'differential_price_created'
|
|
276
|
+
| 'differential_price_updated'
|
|
277
|
+
| 'differential_price_deleted'
|
|
278
|
+
| 'feature_created'
|
|
279
|
+
| 'feature_updated'
|
|
280
|
+
| 'feature_deleted'
|
|
281
|
+
| 'feature_activated'
|
|
282
|
+
| 'feature_reactivated'
|
|
283
|
+
| 'feature_archived'
|
|
284
|
+
| 'item_entitlements_updated'
|
|
285
|
+
| 'entitlement_overrides_updated'
|
|
286
|
+
| 'entitlement_overrides_removed'
|
|
287
|
+
| 'item_entitlements_removed'
|
|
288
|
+
| 'entitlement_overrides_auto_removed'
|
|
289
|
+
| 'subscription_entitlements_created'
|
|
290
|
+
| 'business_entity_created'
|
|
291
|
+
| 'business_entity_updated'
|
|
292
|
+
| 'business_entity_deleted'
|
|
293
|
+
| 'customer_business_entity_changed'
|
|
294
|
+
| 'subscription_business_entity_changed'
|
|
295
|
+
| 'purchase_created'
|
|
296
|
+
| 'voucher_created'
|
|
297
|
+
| 'voucher_expired'
|
|
298
|
+
| 'voucher_create_failed'
|
|
299
|
+
| 'item_price_entitlements_updated'
|
|
300
|
+
| 'item_price_entitlements_removed'
|
|
301
|
+
| 'subscription_ramp_created'
|
|
302
|
+
| 'subscription_ramp_deleted'
|
|
303
|
+
| 'subscription_ramp_applied'
|
|
304
|
+
| 'subscription_ramp_drafted'
|
|
305
|
+
| 'subscription_ramp_updated'
|
|
306
|
+
| 'price_variant_created'
|
|
307
|
+
| 'price_variant_updated'
|
|
308
|
+
| 'price_variant_deleted'
|
|
309
|
+
| 'customer_entitlements_updated'
|
|
310
|
+
| 'subscription_moved_in'
|
|
311
|
+
| 'subscription_moved_out'
|
|
312
|
+
| 'subscription_movement_failed'
|
|
313
|
+
| 'plan_created'
|
|
314
|
+
| 'plan_updated'
|
|
315
|
+
| 'plan_deleted'
|
|
316
|
+
| 'addon_created'
|
|
317
|
+
| 'addon_updated'
|
|
318
|
+
| 'addon_deleted';
|
|
319
|
+
type ExportTypeEnum = 'data' | 'import_friendly_data';
|
|
320
|
+
type FreePeriodUnitEnum = 'day' | 'week' | 'month' | 'year';
|
|
321
|
+
type FriendOfferTypeEnum = 'none' | 'coupon' | 'coupon_code';
|
|
322
|
+
type GatewayEnum =
|
|
323
|
+
| 'chargebee'
|
|
324
|
+
| 'chargebee_payments'
|
|
325
|
+
| 'stripe'
|
|
326
|
+
| 'wepay'
|
|
327
|
+
| 'braintree'
|
|
328
|
+
| 'authorize_net'
|
|
329
|
+
| 'paypal_pro'
|
|
330
|
+
| 'pin'
|
|
331
|
+
| 'eway'
|
|
332
|
+
| 'eway_rapid'
|
|
333
|
+
| 'worldpay'
|
|
334
|
+
| 'balanced_payments'
|
|
335
|
+
| 'beanstream'
|
|
336
|
+
| 'bluepay'
|
|
337
|
+
| 'elavon'
|
|
338
|
+
| 'first_data_global'
|
|
339
|
+
| 'hdfc'
|
|
340
|
+
| 'migs'
|
|
341
|
+
| 'nmi'
|
|
342
|
+
| 'ogone'
|
|
343
|
+
| 'paymill'
|
|
344
|
+
| 'paypal_payflow_pro'
|
|
345
|
+
| 'sage_pay'
|
|
346
|
+
| 'tco'
|
|
347
|
+
| 'wirecard'
|
|
348
|
+
| 'amazon_payments'
|
|
349
|
+
| 'paypal_express_checkout'
|
|
350
|
+
| 'adyen'
|
|
351
|
+
| 'orbital'
|
|
352
|
+
| 'moneris_us'
|
|
353
|
+
| 'moneris'
|
|
354
|
+
| 'bluesnap'
|
|
355
|
+
| 'cybersource'
|
|
356
|
+
| 'vantiv'
|
|
357
|
+
| 'checkout_com'
|
|
358
|
+
| 'paypal'
|
|
359
|
+
| 'ingenico_direct'
|
|
360
|
+
| 'exact'
|
|
361
|
+
| 'mollie'
|
|
362
|
+
| 'quickbooks'
|
|
363
|
+
| 'razorpay'
|
|
364
|
+
| 'global_payments'
|
|
365
|
+
| 'bank_of_america'
|
|
366
|
+
| 'ecentric'
|
|
367
|
+
| 'metrics_global'
|
|
368
|
+
| 'windcave'
|
|
369
|
+
| 'pay_com'
|
|
370
|
+
| 'ebanx'
|
|
371
|
+
| 'dlocal'
|
|
372
|
+
| 'nuvei'
|
|
373
|
+
| 'gocardless'
|
|
374
|
+
| 'not_applicable';
|
|
375
|
+
type HierarchyOperationTypeEnum =
|
|
376
|
+
| 'complete_hierarchy'
|
|
377
|
+
| 'subordinates'
|
|
378
|
+
| 'path_to_root';
|
|
379
|
+
type InvoiceDunningHandlingEnum = 'continue' | 'stop';
|
|
380
|
+
type ItemTypeEnum = 'plan' | 'addon' | 'charge';
|
|
381
|
+
type LayoutEnum = 'in_app' | 'full_page';
|
|
382
|
+
type NotifyReferralSystemEnum =
|
|
383
|
+
| 'none'
|
|
384
|
+
| 'first_paid_conversion'
|
|
385
|
+
| 'all_invoices';
|
|
386
|
+
type OfflinePaymentMethodEnum =
|
|
387
|
+
| 'no_preference'
|
|
388
|
+
| 'cash'
|
|
389
|
+
| 'check'
|
|
390
|
+
| 'bank_transfer'
|
|
391
|
+
| 'ach_credit'
|
|
392
|
+
| 'sepa_credit'
|
|
393
|
+
| 'boleto'
|
|
394
|
+
| 'us_automated_bank_transfer'
|
|
395
|
+
| 'eu_automated_bank_transfer'
|
|
396
|
+
| 'uk_automated_bank_transfer'
|
|
397
|
+
| 'jp_automated_bank_transfer'
|
|
398
|
+
| 'mx_automated_bank_transfer'
|
|
399
|
+
| 'custom';
|
|
400
|
+
type OnEventEnum =
|
|
401
|
+
| 'subscription_creation'
|
|
402
|
+
| 'subscription_trial_start'
|
|
403
|
+
| 'plan_activation'
|
|
404
|
+
| 'subscription_activation'
|
|
405
|
+
| 'contract_termination';
|
|
406
|
+
type OperationEnum = 'create' | 'update' | 'delete';
|
|
407
|
+
type OperationTypeEnum = 'add' | 'remove';
|
|
408
|
+
type PauseOptionEnum =
|
|
409
|
+
| 'immediately'
|
|
410
|
+
| 'end_of_term'
|
|
411
|
+
| 'specific_date'
|
|
412
|
+
| 'billing_cycles';
|
|
413
|
+
type PaymentInitiatorEnum = 'customer' | 'merchant';
|
|
414
|
+
type PaymentMethodEnum =
|
|
415
|
+
| 'cash'
|
|
416
|
+
| 'check'
|
|
417
|
+
| 'bank_transfer'
|
|
418
|
+
| 'other'
|
|
419
|
+
| 'custom'
|
|
420
|
+
| 'chargeback'
|
|
421
|
+
| 'card'
|
|
422
|
+
| 'amazon_payments'
|
|
423
|
+
| 'paypal_express_checkout'
|
|
424
|
+
| 'direct_debit'
|
|
425
|
+
| 'alipay'
|
|
426
|
+
| 'unionpay'
|
|
427
|
+
| 'apple_pay'
|
|
428
|
+
| 'wechat_pay'
|
|
429
|
+
| 'ach_credit'
|
|
430
|
+
| 'sepa_credit'
|
|
431
|
+
| 'ideal'
|
|
432
|
+
| 'google_pay'
|
|
433
|
+
| 'sofort'
|
|
434
|
+
| 'bancontact'
|
|
435
|
+
| 'giropay'
|
|
436
|
+
| 'dotpay'
|
|
437
|
+
| 'upi'
|
|
438
|
+
| 'netbanking_emandates'
|
|
439
|
+
| 'boleto'
|
|
440
|
+
| 'venmo'
|
|
441
|
+
| 'pay_to'
|
|
442
|
+
| 'faster_payments'
|
|
443
|
+
| 'sepa_instant_transfer'
|
|
444
|
+
| 'automated_bank_transfer'
|
|
445
|
+
| 'klarna_pay_now'
|
|
446
|
+
| 'online_banking_poland';
|
|
447
|
+
type PaymentMethodTypeEnum =
|
|
448
|
+
| 'card'
|
|
449
|
+
| 'paypal_express_checkout'
|
|
450
|
+
| 'amazon_payments'
|
|
451
|
+
| 'direct_debit'
|
|
452
|
+
| 'generic'
|
|
453
|
+
| 'alipay'
|
|
454
|
+
| 'unionpay'
|
|
455
|
+
| 'apple_pay'
|
|
456
|
+
| 'wechat_pay'
|
|
457
|
+
| 'ideal'
|
|
458
|
+
| 'google_pay'
|
|
459
|
+
| 'sofort'
|
|
460
|
+
| 'bancontact'
|
|
461
|
+
| 'giropay'
|
|
462
|
+
| 'dotpay'
|
|
463
|
+
| 'upi'
|
|
464
|
+
| 'netbanking_emandates'
|
|
465
|
+
| 'venmo'
|
|
466
|
+
| 'pay_to'
|
|
467
|
+
| 'faster_payments'
|
|
468
|
+
| 'sepa_instant_transfer'
|
|
469
|
+
| 'automated_bank_transfer'
|
|
470
|
+
| 'klarna_pay_now'
|
|
471
|
+
| 'online_banking_poland';
|
|
472
|
+
type PaymentVoucherTypeEnum = 'boleto';
|
|
473
|
+
type PeriodUnitEnum = 'day' | 'week' | 'month' | 'year';
|
|
474
|
+
type PriceTypeEnum = 'tax_exclusive' | 'tax_inclusive';
|
|
475
|
+
type PricingModelEnum =
|
|
476
|
+
| 'flat_fee'
|
|
477
|
+
| 'per_unit'
|
|
478
|
+
| 'tiered'
|
|
479
|
+
| 'volume'
|
|
480
|
+
| 'stairstep';
|
|
481
|
+
type ProrationTypeEnum = 'full_term' | 'partial_term' | 'none';
|
|
482
|
+
type ReferralSystemEnum =
|
|
483
|
+
| 'referral_candy'
|
|
484
|
+
| 'referral_saasquatch'
|
|
485
|
+
| 'friendbuy';
|
|
486
|
+
type ReferrerRewardTypeEnum =
|
|
487
|
+
| 'none'
|
|
488
|
+
| 'referral_direct_reward'
|
|
489
|
+
| 'custom_promotional_credit'
|
|
490
|
+
| 'custom_revenue_percent_based';
|
|
491
|
+
type RefundableCreditsHandlingEnum = 'no_action' | 'schedule_refund';
|
|
492
|
+
type ReportByEnum = 'customer' | 'invoice' | 'product' | 'subscription';
|
|
493
|
+
type ResumeOptionEnum = 'immediately' | 'specific_date';
|
|
494
|
+
type RoleEnum = 'primary' | 'backup' | 'none';
|
|
495
|
+
type ScheduleTypeEnum = 'immediate' | 'specific_dates' | 'fixed_intervals';
|
|
496
|
+
type SourceEnum =
|
|
497
|
+
| 'admin_console'
|
|
498
|
+
| 'api'
|
|
499
|
+
| 'bulk_operation'
|
|
500
|
+
| 'scheduled_job'
|
|
501
|
+
| 'hosted_page'
|
|
502
|
+
| 'portal'
|
|
503
|
+
| 'system'
|
|
504
|
+
| 'none'
|
|
505
|
+
| 'js_api'
|
|
506
|
+
| 'migration'
|
|
507
|
+
| 'external_service';
|
|
508
|
+
type TaxExemptReasonEnum =
|
|
509
|
+
| 'tax_not_configured'
|
|
510
|
+
| 'region_non_taxable'
|
|
511
|
+
| 'export'
|
|
512
|
+
| 'customer_exempt'
|
|
513
|
+
| 'product_exempt'
|
|
514
|
+
| 'zero_rated'
|
|
515
|
+
| 'reverse_charge'
|
|
516
|
+
| 'high_value_physical_goods'
|
|
517
|
+
| 'zero_value_item'
|
|
518
|
+
| 'tax_not_configured_external_provider';
|
|
519
|
+
type TaxJurisTypeEnum =
|
|
520
|
+
| 'country'
|
|
521
|
+
| 'federal'
|
|
522
|
+
| 'state'
|
|
523
|
+
| 'county'
|
|
524
|
+
| 'city'
|
|
525
|
+
| 'special'
|
|
526
|
+
| 'unincorporated'
|
|
527
|
+
| 'other';
|
|
528
|
+
type TaxOverrideReasonEnum = 'id_exempt' | 'customer_exempt' | 'export';
|
|
529
|
+
type TaxabilityEnum = 'taxable' | 'exempt';
|
|
530
|
+
type TaxjarExemptionCategoryEnum = 'wholesale' | 'government' | 'other';
|
|
531
|
+
type TrialEndActionEnum =
|
|
532
|
+
| 'site_default'
|
|
533
|
+
| 'plan_default'
|
|
534
|
+
| 'activate_subscription'
|
|
535
|
+
| 'cancel_subscription';
|
|
536
|
+
type TypeEnum =
|
|
537
|
+
| 'card'
|
|
538
|
+
| 'paypal_express_checkout'
|
|
539
|
+
| 'amazon_payments'
|
|
540
|
+
| 'direct_debit'
|
|
541
|
+
| 'generic'
|
|
542
|
+
| 'alipay'
|
|
543
|
+
| 'unionpay'
|
|
544
|
+
| 'apple_pay'
|
|
545
|
+
| 'wechat_pay'
|
|
546
|
+
| 'ideal'
|
|
547
|
+
| 'google_pay'
|
|
548
|
+
| 'sofort'
|
|
549
|
+
| 'bancontact'
|
|
550
|
+
| 'giropay'
|
|
551
|
+
| 'dotpay'
|
|
552
|
+
| 'upi'
|
|
553
|
+
| 'netbanking_emandates'
|
|
554
|
+
| 'venmo'
|
|
555
|
+
| 'pay_to'
|
|
556
|
+
| 'faster_payments'
|
|
557
|
+
| 'sepa_instant_transfer'
|
|
558
|
+
| 'automated_bank_transfer'
|
|
559
|
+
| 'klarna_pay_now'
|
|
560
|
+
| 'online_banking_poland';
|
|
561
|
+
type UnbilledChargesHandlingEnum = 'no_action' | 'invoice';
|
|
562
|
+
type UnbilledChargesOptionEnum = 'invoice' | 'delete';
|
|
563
|
+
type UnpaidInvoicesHandlingEnum = 'no_action' | 'schedule_payment_collection';
|
|
564
|
+
type UsageAccumulationResetFrequencyEnum =
|
|
565
|
+
| 'never'
|
|
566
|
+
| 'subscription_billing_frequency';
|
|
567
|
+
type ValidationStatusEnum =
|
|
568
|
+
| 'not_validated'
|
|
569
|
+
| 'valid'
|
|
570
|
+
| 'partially_valid'
|
|
571
|
+
| 'invalid';
|
|
572
|
+
type VoucherTypeEnum = 'boleto';
|
|
573
|
+
type ChargeOnEnum = 'immediately' | 'on_event';
|
|
574
|
+
}
|