chargebee 3.0.0-beta.5 → 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 (82) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/README.md +4 -3
  3. package/cjs/environment.js +1 -1
  4. package/esm/environment.js +1 -1
  5. package/package.json +1 -1
  6. package/types/core.d.ts +0 -574
  7. package/types/index.d.ts +0 -167
  8. package/types/resources/Address.d.ts +0 -71
  9. package/types/resources/AdvanceInvoiceSchedule.d.ts +0 -29
  10. package/types/resources/AttachedItem.d.ts +0 -114
  11. package/types/resources/Attribute.d.ts +0 -9
  12. package/types/resources/BusinessEntity.d.ts +0 -64
  13. package/types/resources/BusinessEntityTransfer.d.ts +0 -15
  14. package/types/resources/Card.d.ts +0 -171
  15. package/types/resources/Comment.d.ts +0 -89
  16. package/types/resources/Contact.d.ts +0 -16
  17. package/types/resources/ContractTerm.d.ts +0 -19
  18. package/types/resources/Coupon.d.ts +0 -314
  19. package/types/resources/CouponCode.d.ts +0 -70
  20. package/types/resources/CouponSet.d.ts +0 -111
  21. package/types/resources/CreditNote.d.ts +0 -628
  22. package/types/resources/CreditNoteEstimate.d.ts +0 -143
  23. package/types/resources/Currency.d.ts +0 -91
  24. package/types/resources/Customer.d.ts +0 -962
  25. package/types/resources/CustomerEntitlement.d.ts +0 -36
  26. package/types/resources/DifferentialPrice.d.ts +0 -142
  27. package/types/resources/Discount.d.ts +0 -24
  28. package/types/resources/Download.d.ts +0 -10
  29. package/types/resources/Entitlement.d.ts +0 -66
  30. package/types/resources/EntitlementOverride.d.ts +0 -76
  31. package/types/resources/Estimate.d.ts +0 -1237
  32. package/types/resources/Event.d.ts +0 -81
  33. package/types/resources/Export.d.ts +0 -607
  34. package/types/resources/Feature.d.ts +0 -142
  35. package/types/resources/GatewayErrorDetail.d.ts +0 -20
  36. package/types/resources/Gift.d.ts +0 -296
  37. package/types/resources/Hierarchy.d.ts +0 -12
  38. package/types/resources/HostedPage.d.ts +0 -1112
  39. package/types/resources/ImpactedItem.d.ts +0 -20
  40. package/types/resources/ImpactedItemPrice.d.ts +0 -20
  41. package/types/resources/ImpactedSubscription.d.ts +0 -20
  42. package/types/resources/InAppSubscription.d.ts +0 -116
  43. package/types/resources/Invoice.d.ts +0 -1691
  44. package/types/resources/InvoiceEstimate.d.ts +0 -143
  45. package/types/resources/Item.d.ts +0 -204
  46. package/types/resources/ItemEntitlement.d.ts +0 -103
  47. package/types/resources/ItemFamily.d.ts +0 -89
  48. package/types/resources/ItemPrice.d.ts +0 -328
  49. package/types/resources/Metadata.d.ts +0 -8
  50. package/types/resources/NonSubscription.d.ts +0 -48
  51. package/types/resources/Order.d.ts +0 -586
  52. package/types/resources/PaymentIntent.d.ts +0 -178
  53. package/types/resources/PaymentReferenceNumber.d.ts +0 -11
  54. package/types/resources/PaymentSchedule.d.ts +0 -28
  55. package/types/resources/PaymentScheduleEstimate.d.ts +0 -25
  56. package/types/resources/PaymentScheduleScheme.d.ts +0 -62
  57. package/types/resources/PaymentSource.d.ts +0 -529
  58. package/types/resources/PaymentVoucher.d.ts +0 -107
  59. package/types/resources/PortalSession.d.ts +0 -88
  60. package/types/resources/PriceVariant.d.ts +0 -112
  61. package/types/resources/PricingPageSession.d.ts +0 -130
  62. package/types/resources/PromotionalCredit.d.ts +0 -111
  63. package/types/resources/Purchase.d.ts +0 -202
  64. package/types/resources/Quote.d.ts +0 -1467
  65. package/types/resources/QuoteLineGroup.d.ts +0 -136
  66. package/types/resources/QuotedCharge.d.ts +0 -56
  67. package/types/resources/QuotedSubscription.d.ts +0 -114
  68. package/types/resources/Ramp.d.ts +0 -260
  69. package/types/resources/ResourceMigration.d.ts +0 -36
  70. package/types/resources/SiteMigrationDetail.d.ts +0 -46
  71. package/types/resources/Subscription.d.ts +0 -2443
  72. package/types/resources/SubscriptionEntitlement.d.ts +0 -79
  73. package/types/resources/SubscriptionEstimate.d.ts +0 -59
  74. package/types/resources/TaxWithheld.d.ts +0 -19
  75. package/types/resources/ThirdPartyPaymentMethod.d.ts +0 -11
  76. package/types/resources/TimeMachine.d.ts +0 -57
  77. package/types/resources/Token.d.ts +0 -19
  78. package/types/resources/Transaction.d.ts +0 -313
  79. package/types/resources/UnbilledCharge.d.ts +0 -209
  80. package/types/resources/Usage.d.ts +0 -113
  81. package/types/resources/VirtualBankAccount.d.ts +0 -125
  82. package/types/resources/filter.d.ts +0 -52
@@ -1,136 +0,0 @@
1
- ///<reference path='./../core.d.ts'/>
2
- ///<reference path='./../index.d.ts'/>
3
-
4
- declare module 'chargebee' {
5
- export interface QuoteLineGroup {
6
- version?: number;
7
- id?: string;
8
- sub_total: number;
9
- total?: number;
10
- credits_applied?: number;
11
- amount_paid?: number;
12
- amount_due?: number;
13
- charge_event?:
14
- | 'immediate'
15
- | 'subscription_creation'
16
- | 'trial_start'
17
- | 'subscription_change'
18
- | 'subscription_renewal'
19
- | 'subscription_cancel';
20
- billing_cycle_number?: number;
21
- line_items?: QuoteLineGroup.LineItem[];
22
- discounts?: QuoteLineGroup.Discount[];
23
- line_item_discounts?: QuoteLineGroup.LineItemDiscount[];
24
- taxes?: QuoteLineGroup.Tax[];
25
- line_item_taxes?: QuoteLineGroup.LineItemTax[];
26
- }
27
-
28
- export namespace QuoteLineGroup {
29
- export interface LineItem {
30
- id?: string;
31
- subscription_id?: string;
32
- date_from: number;
33
- date_to: number;
34
- unit_amount: number;
35
- quantity?: number;
36
- amount?: number;
37
- pricing_model?:
38
- | 'flat_fee'
39
- | 'per_unit'
40
- | 'tiered'
41
- | 'volume'
42
- | 'stairstep';
43
- is_taxed: boolean;
44
- tax_amount?: number;
45
- tax_rate?: number;
46
- unit_amount_in_decimal?: string;
47
- quantity_in_decimal?: string;
48
- amount_in_decimal?: string;
49
- discount_amount?: number;
50
- item_level_discount_amount?: number;
51
- usage_percentage?: string;
52
- reference_line_item_id?: string;
53
- description: string;
54
- entity_description?: string;
55
- entity_type:
56
- | 'adhoc'
57
- | 'plan_item_price'
58
- | 'addon_item_price'
59
- | 'charge_item_price'
60
- | 'plan_setup'
61
- | 'plan'
62
- | 'addon';
63
- tax_exempt_reason?:
64
- | 'tax_not_configured'
65
- | 'region_non_taxable'
66
- | 'export'
67
- | 'customer_exempt'
68
- | 'product_exempt'
69
- | 'zero_rated'
70
- | 'reverse_charge'
71
- | 'high_value_physical_goods'
72
- | 'zero_value_item'
73
- | 'tax_not_configured_external_provider';
74
- entity_id?: string;
75
- customer_id?: string;
76
- }
77
- export interface Discount {
78
- amount: number;
79
- description?: string;
80
- entity_type:
81
- | 'item_level_coupon'
82
- | 'document_level_coupon'
83
- | 'promotional_credits'
84
- | 'prorated_credits'
85
- | 'item_level_discount'
86
- | 'document_level_discount';
87
- entity_id?: string;
88
- coupon_set_code?: string;
89
- }
90
- export interface LineItemDiscount {
91
- line_item_id: string;
92
- discount_type:
93
- | 'item_level_coupon'
94
- | 'document_level_coupon'
95
- | 'promotional_credits'
96
- | 'prorated_credits'
97
- | 'item_level_discount'
98
- | 'document_level_discount';
99
- coupon_id?: string;
100
- entity_id?: string;
101
- discount_amount: number;
102
- }
103
- export interface Tax {
104
- name: string;
105
- amount: number;
106
- description?: string;
107
- }
108
- export interface LineItemTax {
109
- line_item_id?: string;
110
- tax_name: string;
111
- tax_rate: number;
112
- date_to?: number;
113
- date_from?: number;
114
- prorated_taxable_amount?: number;
115
- is_partial_tax_applied?: boolean;
116
- is_non_compliance_tax?: boolean;
117
- taxable_amount: number;
118
- tax_amount: number;
119
- tax_juris_type?:
120
- | 'country'
121
- | 'federal'
122
- | 'state'
123
- | 'county'
124
- | 'city'
125
- | 'special'
126
- | 'unincorporated'
127
- | 'other';
128
- tax_juris_name?: string;
129
- tax_juris_code?: string;
130
- tax_amount_in_local_currency?: number;
131
- local_currency_code?: string;
132
- }
133
- // REQUEST PARAMS
134
- //---------------
135
- }
136
- }
@@ -1,56 +0,0 @@
1
- ///<reference path='./../core.d.ts'/>
2
- ///<reference path='./../index.d.ts'/>
3
-
4
- declare module 'chargebee' {
5
- export interface QuotedCharge {
6
- charges?: QuotedCharge.Charge[];
7
- addons?: QuotedCharge.Addon[];
8
- invoice_items?: QuotedCharge.InvoiceItem[];
9
- item_tiers?: QuotedCharge.ItemTier[];
10
- coupons?: QuotedCharge.Coupon[];
11
- }
12
-
13
- export namespace QuotedCharge {
14
- export interface Charge {
15
- amount?: number;
16
- amount_in_decimal?: string;
17
- description?: string;
18
- service_period_in_days?: number;
19
- avalara_sale_type?: 'wholesale' | 'retail' | 'consumed' | 'vendor_use';
20
- avalara_transaction_type?: number;
21
- avalara_service_type?: number;
22
- }
23
- export interface Addon {
24
- id: string;
25
- quantity?: number;
26
- unit_price?: number;
27
- quantity_in_decimal?: string;
28
- unit_price_in_decimal?: string;
29
- proration_type?: 'full_term' | 'partial_term' | 'none';
30
- service_period?: number;
31
- }
32
- export interface InvoiceItem {
33
- item_price_id: string;
34
- quantity?: number;
35
- quantity_in_decimal?: string;
36
- unit_price?: number;
37
- unit_price_in_decimal?: string;
38
- service_period_days?: number;
39
- }
40
- export interface ItemTier {
41
- item_price_id: string;
42
- starting_unit: number;
43
- ending_unit?: number;
44
- price: number;
45
- starting_unit_in_decimal?: string;
46
- ending_unit_in_decimal?: string;
47
- price_in_decimal?: string;
48
- index: number;
49
- }
50
- export interface Coupon {
51
- coupon_id: string;
52
- }
53
- // REQUEST PARAMS
54
- //---------------
55
- }
56
- }
@@ -1,114 +0,0 @@
1
- ///<reference path='./../core.d.ts'/>
2
- ///<reference path='./../index.d.ts'/>
3
-
4
- declare module 'chargebee' {
5
- export interface QuotedSubscription {
6
- id: string;
7
- plan_id: string;
8
- plan_quantity: number;
9
- plan_unit_price?: number;
10
- setup_fee?: number;
11
- billing_period?: number;
12
- billing_period_unit?: 'day' | 'week' | 'month' | 'year';
13
- start_date?: number;
14
- trial_end?: number;
15
- remaining_billing_cycles?: number;
16
- po_number?: string;
17
- auto_collection?: AutoCollectionEnum;
18
- plan_quantity_in_decimal?: string;
19
- plan_unit_price_in_decimal?: string;
20
- changes_scheduled_at?: number;
21
- change_option?: 'end_of_term' | 'specific_date' | 'immediately';
22
- contract_term_billing_cycle_on_renewal?: number;
23
- addons?: QuotedSubscription.Addon[];
24
- event_based_addons?: QuotedSubscription.EventBasedAddon[];
25
- coupons?: QuotedSubscription.Coupon[];
26
- subscription_items?: QuotedSubscription.SubscriptionItem[];
27
- item_tiers?: QuotedSubscription.ItemTier[];
28
- quoted_contract_term?: QuotedSubscription.QuotedContractTerm;
29
- }
30
-
31
- export namespace QuotedSubscription {
32
- export interface Addon {
33
- id: string;
34
- quantity?: number;
35
- unit_price?: number;
36
- amount?: number;
37
- trial_end?: number;
38
- remaining_billing_cycles?: number;
39
- quantity_in_decimal?: string;
40
- unit_price_in_decimal?: string;
41
- amount_in_decimal?: string;
42
- proration_type?: 'full_term' | 'partial_term' | 'none';
43
- }
44
- export interface EventBasedAddon {
45
- id: string;
46
- quantity: number;
47
- unit_price: number;
48
- service_period_in_days?: number;
49
- on_event:
50
- | 'subscription_creation'
51
- | 'subscription_trial_start'
52
- | 'plan_activation'
53
- | 'subscription_activation'
54
- | 'contract_termination';
55
- charge_once: boolean;
56
- quantity_in_decimal?: string;
57
- unit_price_in_decimal?: string;
58
- }
59
- export interface Coupon {
60
- coupon_id: string;
61
- }
62
- export interface SubscriptionItem {
63
- item_price_id: string;
64
- item_type: 'plan' | 'addon' | 'charge';
65
- quantity?: number;
66
- quantity_in_decimal?: string;
67
- metered_quantity?: string;
68
- last_calculated_at?: number;
69
- unit_price?: number;
70
- unit_price_in_decimal?: string;
71
- amount?: number;
72
- amount_in_decimal?: string;
73
- billing_period?: number;
74
- billing_period_unit?: 'day' | 'week' | 'month' | 'year';
75
- free_quantity?: number;
76
- free_quantity_in_decimal?: string;
77
- trial_end?: number;
78
- billing_cycles?: number;
79
- service_period_days?: number;
80
- charge_on_event?:
81
- | 'subscription_creation'
82
- | 'subscription_trial_start'
83
- | 'plan_activation'
84
- | 'subscription_activation'
85
- | 'contract_termination';
86
- charge_once?: boolean;
87
- charge_on_option?: 'immediately' | 'on_event';
88
- proration_type?: 'full_term' | 'partial_term' | 'none';
89
- usage_accumulation_reset_frequency?:
90
- | 'never'
91
- | 'subscription_billing_frequency';
92
- }
93
- export interface ItemTier {
94
- item_price_id: string;
95
- starting_unit: number;
96
- ending_unit?: number;
97
- price: number;
98
- starting_unit_in_decimal?: string;
99
- ending_unit_in_decimal?: string;
100
- price_in_decimal?: string;
101
- index: number;
102
- }
103
- export interface QuotedContractTerm {
104
- contract_start: number;
105
- contract_end: number;
106
- billing_cycle: number;
107
- action_at_term_end: 'renew' | 'evergreen' | 'cancel' | 'renew_once';
108
- total_contract_value: number;
109
- cancellation_cutoff_period?: number;
110
- }
111
- // REQUEST PARAMS
112
- //---------------
113
- }
114
- }
@@ -1,260 +0,0 @@
1
- ///<reference path='./../core.d.ts'/>
2
- ///<reference path='./../index.d.ts'/>
3
- ///<reference path='./filter.d.ts'/>
4
- declare module 'chargebee' {
5
- export interface Ramp {
6
- id: string;
7
- description?: string;
8
- subscription_id: string;
9
- effective_from: number;
10
- status: 'scheduled' | 'succeeded' | 'failed' | 'draft';
11
- created_at: number;
12
- resource_version?: number;
13
- updated_at?: number;
14
- items_to_add?: Ramp.ItemsToAdd[];
15
- items_to_update?: Ramp.ItemsToUpdate[];
16
- coupons_to_add?: Ramp.CouponsToAdd[];
17
- discounts_to_add?: Ramp.DiscountsToAdd[];
18
- item_tiers?: Ramp.ItemTier[];
19
- items_to_remove?: string[];
20
- coupons_to_remove?: string[];
21
- discounts_to_remove?: string[];
22
- deleted: boolean;
23
- status_transition_reason?: Ramp.StatusTransitionReason;
24
- }
25
-
26
- export namespace Ramp {
27
- export class RampResource {
28
- createForSubscription(
29
- subscription_id: string,
30
- input: CreateForSubscriptionInputParam,
31
- headers?: ChargebeeRequestHeader,
32
- ): Promise<ChargebeeResponse<CreateForSubscriptionResponse>>;
33
-
34
- update(
35
- ramp_id: string,
36
- input: UpdateInputParam,
37
- headers?: ChargebeeRequestHeader,
38
- ): Promise<ChargebeeResponse<UpdateResponse>>;
39
-
40
- retrieve(
41
- ramp_id: string,
42
- headers?: ChargebeeRequestHeader,
43
- ): Promise<ChargebeeResponse<RetrieveResponse>>;
44
-
45
- delete(
46
- ramp_id: string,
47
- headers?: ChargebeeRequestHeader,
48
- ): Promise<ChargebeeResponse<DeleteResponse>>;
49
-
50
- list(
51
- input: ListInputParam,
52
- headers?: ChargebeeRequestHeader,
53
- ): Promise<ChargebeeResponse<ListResponse>>;
54
- }
55
-
56
- export interface CreateForSubscriptionResponse {
57
- ramp: Ramp;
58
- }
59
-
60
- export interface UpdateResponse {
61
- ramp: Ramp;
62
- }
63
-
64
- export interface RetrieveResponse {
65
- ramp: Ramp;
66
- }
67
-
68
- export interface DeleteResponse {
69
- ramp: Ramp;
70
- }
71
-
72
- export interface ListResponse {
73
- list: { ramp: Ramp }[];
74
- next_offset?: string;
75
- }
76
-
77
- export interface ItemsToAdd {
78
- item_price_id: string;
79
- item_type: 'plan' | 'addon' | 'charge';
80
- quantity?: number;
81
- quantity_in_decimal?: string;
82
- unit_price?: number;
83
- unit_price_in_decimal?: string;
84
- amount?: number;
85
- amount_in_decimal?: string;
86
- free_quantity?: number;
87
- free_quantity_in_decimal?: string;
88
- billing_cycles?: number;
89
- service_period_days?: number;
90
- metered_quantity?: string;
91
- }
92
- export interface ItemsToUpdate {
93
- item_price_id: string;
94
- item_type: 'plan' | 'addon' | 'charge';
95
- quantity?: number;
96
- quantity_in_decimal?: string;
97
- unit_price?: number;
98
- unit_price_in_decimal?: string;
99
- amount?: number;
100
- amount_in_decimal?: string;
101
- free_quantity?: number;
102
- free_quantity_in_decimal?: string;
103
- billing_cycles?: number;
104
- service_period_days?: number;
105
- metered_quantity?: string;
106
- }
107
- export interface CouponsToAdd {
108
- coupon_id: string;
109
- apply_till?: number;
110
- }
111
- export interface DiscountsToAdd {
112
- id: string;
113
- invoice_name?: string;
114
- type: 'fixed_amount' | 'percentage';
115
- percentage?: number;
116
- amount?: number;
117
- duration_type: 'one_time' | 'forever' | 'limited_period';
118
- period?: number;
119
- period_unit?: 'day' | 'week' | 'month' | 'year';
120
- included_in_mrr: boolean;
121
- apply_on: 'invoice_amount' | 'specific_item_price';
122
- item_price_id?: string;
123
- created_at: number;
124
- }
125
- export interface ItemTier {
126
- item_price_id: string;
127
- starting_unit: number;
128
- ending_unit?: number;
129
- price: number;
130
- starting_unit_in_decimal?: string;
131
- ending_unit_in_decimal?: string;
132
- price_in_decimal?: string;
133
- index: number;
134
- }
135
- export interface StatusTransitionReason {
136
- code?: string;
137
- message?: string;
138
- }
139
- // REQUEST PARAMS
140
- //---------------
141
-
142
- export interface CreateForSubscriptionInputParam {
143
- effective_from: number;
144
- description?: string;
145
- coupons_to_remove?: string[];
146
- discounts_to_remove?: string[];
147
- items_to_remove?: string[];
148
- items_to_add?: ItemsToAddCreateForSubscriptionInputParam[];
149
- items_to_update?: ItemsToUpdateCreateForSubscriptionInputParam[];
150
- item_tiers?: ItemTiersCreateForSubscriptionInputParam[];
151
- coupons_to_add?: CouponsToAddCreateForSubscriptionInputParam[];
152
- discounts_to_add?: DiscountsToAddCreateForSubscriptionInputParam[];
153
- }
154
- export interface UpdateInputParam {
155
- effective_from: number;
156
- description?: string;
157
- coupons_to_remove?: string[];
158
- discounts_to_remove?: string[];
159
- items_to_remove?: string[];
160
- items_to_add?: ItemsToAddUpdateInputParam[];
161
- items_to_update?: ItemsToUpdateUpdateInputParam[];
162
- item_tiers?: ItemTiersUpdateInputParam[];
163
- coupons_to_add?: CouponsToAddUpdateInputParam[];
164
- discounts_to_add?: DiscountsToAddUpdateInputParam[];
165
- }
166
- export interface ListInputParam {
167
- limit?: number;
168
- offset?: string;
169
- include_deleted?: boolean;
170
- status?: filter.Enum;
171
- subscription_id: filter.String;
172
- effective_from?: filter.Timestamp;
173
- updated_at?: filter.Timestamp;
174
- 'sort_by[asc]'?: string;
175
- 'sort_by[desc]'?: string;
176
- }
177
- export interface ItemsToAddCreateForSubscriptionInputParam {
178
- item_price_id: string;
179
- quantity?: number;
180
- quantity_in_decimal?: string;
181
- unit_price?: number;
182
- unit_price_in_decimal?: string;
183
- billing_cycles?: number;
184
- service_period_days?: number;
185
- }
186
- export interface CouponsToAddCreateForSubscriptionInputParam {
187
- coupon_id?: string;
188
- apply_till?: number;
189
- }
190
- export interface ItemTiersCreateForSubscriptionInputParam {
191
- item_price_id?: string;
192
- starting_unit?: number;
193
- ending_unit?: number;
194
- price?: number;
195
- starting_unit_in_decimal?: string;
196
- ending_unit_in_decimal?: string;
197
- price_in_decimal?: string;
198
- }
199
- export interface ItemsToUpdateCreateForSubscriptionInputParam {
200
- item_price_id: string;
201
- quantity?: number;
202
- quantity_in_decimal?: string;
203
- unit_price?: number;
204
- unit_price_in_decimal?: string;
205
- billing_cycles?: number;
206
- service_period_days?: number;
207
- }
208
- export interface DiscountsToAddCreateForSubscriptionInputParam {
209
- apply_on: ApplyOnEnum;
210
- duration_type: DurationTypeEnum;
211
- percentage?: number;
212
- amount?: number;
213
- period?: number;
214
- period_unit?: PeriodUnitEnum;
215
- included_in_mrr?: boolean;
216
- item_price_id?: string;
217
- }
218
- export interface ItemsToAddUpdateInputParam {
219
- item_price_id: string;
220
- quantity?: number;
221
- quantity_in_decimal?: string;
222
- unit_price?: number;
223
- unit_price_in_decimal?: string;
224
- billing_cycles?: number;
225
- service_period_days?: number;
226
- }
227
- export interface CouponsToAddUpdateInputParam {
228
- coupon_id?: string;
229
- apply_till?: number;
230
- }
231
- export interface ItemTiersUpdateInputParam {
232
- item_price_id?: string;
233
- starting_unit?: number;
234
- ending_unit?: number;
235
- price?: number;
236
- starting_unit_in_decimal?: string;
237
- ending_unit_in_decimal?: string;
238
- price_in_decimal?: string;
239
- }
240
- export interface ItemsToUpdateUpdateInputParam {
241
- item_price_id: string;
242
- quantity?: number;
243
- quantity_in_decimal?: string;
244
- unit_price?: number;
245
- unit_price_in_decimal?: string;
246
- billing_cycles?: number;
247
- service_period_days?: number;
248
- }
249
- export interface DiscountsToAddUpdateInputParam {
250
- apply_on: ApplyOnEnum;
251
- duration_type: DurationTypeEnum;
252
- percentage?: number;
253
- amount?: number;
254
- period?: number;
255
- period_unit?: PeriodUnitEnum;
256
- included_in_mrr?: boolean;
257
- item_price_id?: string;
258
- }
259
- }
260
- }
@@ -1,36 +0,0 @@
1
- ///<reference path='./../core.d.ts'/>
2
- ///<reference path='./../index.d.ts'/>
3
-
4
- declare module 'chargebee' {
5
- export interface ResourceMigration {
6
- from_site: string;
7
- entity_type: 'customer';
8
- entity_id: string;
9
- status: 'scheduled' | 'failed' | 'succeeded';
10
- errors?: string;
11
- created_at: number;
12
- updated_at: number;
13
- }
14
-
15
- export namespace ResourceMigration {
16
- export class ResourceMigrationResource {
17
- retrieveLatest(
18
- input: RetrieveLatestInputParam,
19
- headers?: ChargebeeRequestHeader,
20
- ): Promise<ChargebeeResponse<RetrieveLatestResponse>>;
21
- }
22
-
23
- export interface RetrieveLatestResponse {
24
- resource_migration: ResourceMigration;
25
- }
26
-
27
- // REQUEST PARAMS
28
- //---------------
29
-
30
- export interface RetrieveLatestInputParam {
31
- from_site: string;
32
- entity_type: 'customer';
33
- entity_id: string;
34
- }
35
- }
36
- }
@@ -1,46 +0,0 @@
1
- ///<reference path='./../core.d.ts'/>
2
- ///<reference path='./../index.d.ts'/>
3
- ///<reference path='./filter.d.ts'/>
4
- declare module 'chargebee' {
5
- export interface SiteMigrationDetail {
6
- entity_id: string;
7
- other_site_name: string;
8
- entity_id_at_other_site: string;
9
- migrated_at: number;
10
- entity_type:
11
- | 'customer'
12
- | 'subscription'
13
- | 'invoice'
14
- | 'credit_note'
15
- | 'transaction'
16
- | 'order';
17
- status: 'moved_in' | 'moved_out' | 'moving_out';
18
- }
19
-
20
- export namespace SiteMigrationDetail {
21
- export class SiteMigrationDetailResource {
22
- list(
23
- input?: ListInputParam,
24
- headers?: ChargebeeRequestHeader,
25
- ): Promise<ChargebeeResponse<ListResponse>>;
26
- }
27
-
28
- export interface ListResponse {
29
- list: { site_migration_detail: SiteMigrationDetail }[];
30
- next_offset?: string;
31
- }
32
-
33
- // REQUEST PARAMS
34
- //---------------
35
-
36
- export interface ListInputParam {
37
- limit?: number;
38
- offset?: string;
39
- entity_id_at_other_site?: filter.String;
40
- other_site_name?: filter.String;
41
- entity_id?: filter.String;
42
- entity_type?: filter.Enum;
43
- status?: filter.Enum;
44
- }
45
- }
46
- }