chargebee 3.34.0 → 3.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +237 -0
- package/cjs/environment.js +1 -1
- package/cjs/resources/api_endpoints.js +230 -2
- package/cjs/resources/webhook/eventType.js +25 -1
- package/cjs/schema/addon.schema.js +221 -40
- package/cjs/schema/alert.schema.js +17 -2
- package/cjs/schema/alert_status.schema.js +6 -1
- package/cjs/schema/attached_item.schema.js +101 -26
- package/cjs/schema/business_entity.schema.js +43 -6
- package/cjs/schema/business_rule.schema.js +2 -2
- package/cjs/schema/business_ruleset.schema.js +2 -2
- package/cjs/schema/collections_payment_promise.schema.js +43 -0
- package/cjs/schema/comment.schema.js +17 -4
- package/cjs/schema/coupon.schema.js +218 -37
- package/cjs/schema/coupon_code.schema.js +36 -6
- package/cjs/schema/coupon_set.schema.js +108 -27
- package/cjs/schema/credit_note.schema.js +497 -105
- package/cjs/schema/credit_unit.schema.js +12 -2
- package/cjs/schema/customer.schema.js +212 -62
- package/cjs/schema/differential_price.schema.js +100 -12
- package/cjs/schema/dispute.schema.js +125 -33
- package/cjs/schema/einvoice.schema.js +27 -6
- package/cjs/schema/email_log.schema.js +15 -4
- package/cjs/schema/entitlement.schema.js +35 -6
- package/cjs/schema/entitlement_override.schema.js +17 -1
- package/cjs/schema/estimate.schema.js +585 -40
- package/cjs/schema/event.schema.js +1334 -585
- package/cjs/schema/export.schema.js +4459 -1412
- package/cjs/schema/feature.schema.js +73 -11
- package/cjs/schema/gateway_request_log.schema.js +309 -0
- package/cjs/schema/gateway_webhook_log.schema.js +257 -0
- package/cjs/schema/gift.schema.js +51 -5
- package/cjs/schema/grant_block.schema.js +45 -12
- package/cjs/schema/hosted_page.schema.js +564 -68
- package/cjs/schema/index.js +6 -0
- package/cjs/schema/invoice.schema.js +843 -123
- package/cjs/schema/item.schema.js +151 -28
- package/cjs/schema/item_entitlement.schema.js +23 -2
- package/cjs/schema/item_family.schema.js +29 -8
- package/cjs/schema/item_price.schema.js +263 -48
- package/cjs/schema/ledger_account_balance.schema.js +11 -2
- package/cjs/schema/ledger_operation.schema.js +44 -17
- package/cjs/schema/metered_feature.schema.js +10 -1
- package/cjs/schema/omnichannel_one_time_order.schema.js +42 -4
- package/cjs/schema/omnichannel_subscription.schema.js +146 -32
- package/cjs/schema/order.schema.js +233 -61
- package/cjs/schema/organization_detail.schema.js +36 -0
- package/cjs/schema/payment_schedule.schema.js +39 -8
- package/cjs/schema/payment_schedule_scheme.schema.js +37 -7
- package/cjs/schema/payment_source.schema.js +375 -148
- package/cjs/schema/payment_voucher.schema.js +33 -5
- package/cjs/schema/plan.schema.js +345 -57
- package/cjs/schema/price_ramp.schema.js +153 -0
- package/cjs/schema/price_variant.schema.js +88 -18
- package/cjs/schema/pricing_page_session.schema.js +36 -2
- package/cjs/schema/promotional_credit.schema.js +27 -6
- package/cjs/schema/purchase.schema.js +210 -12
- package/cjs/schema/quote.schema.js +907 -87
- package/cjs/schema/quote_entitlement.schema.js +6 -2
- package/cjs/schema/ramp.schema.js +242 -24
- package/cjs/schema/retry_segment.schema.js +12 -0
- package/cjs/schema/site_migration_detail.schema.js +50 -16
- package/cjs/schema/subscription.schema.js +1002 -173
- package/cjs/schema/subscription_entitlement.schema.js +9 -1
- package/cjs/schema/transaction.schema.js +780 -342
- package/cjs/schema/unbilled_charge.schema.js +141 -13
- package/cjs/schema/usage.schema.js +59 -11
- package/cjs/schema/usage_event.schema.js +13 -1
- package/cjs/schema/usage_summary.schema.js +1 -0
- package/cjs/schema/virtual_bank_account.schema.js +42 -10
- package/cjs/schema/webhook_endpoint.schema.js +50 -2
- package/esm/environment.js +1 -1
- package/esm/resources/api_endpoints.js +230 -2
- package/esm/resources/webhook/eventType.js +25 -1
- package/esm/schema/addon.schema.js +221 -40
- package/esm/schema/alert.schema.js +17 -2
- package/esm/schema/alert_status.schema.js +6 -1
- package/esm/schema/attached_item.schema.js +101 -26
- package/esm/schema/business_entity.schema.js +42 -5
- package/esm/schema/business_rule.schema.js +2 -2
- package/esm/schema/business_ruleset.schema.js +2 -2
- package/esm/schema/collections_payment_promise.schema.js +40 -0
- package/esm/schema/comment.schema.js +17 -4
- package/esm/schema/coupon.schema.js +218 -37
- package/esm/schema/coupon_code.schema.js +36 -6
- package/esm/schema/coupon_set.schema.js +108 -27
- package/esm/schema/credit_note.schema.js +497 -105
- package/esm/schema/credit_unit.schema.js +12 -2
- package/esm/schema/customer.schema.js +212 -62
- package/esm/schema/differential_price.schema.js +100 -12
- package/esm/schema/dispute.schema.js +125 -33
- package/esm/schema/einvoice.schema.js +27 -6
- package/esm/schema/email_log.schema.js +15 -4
- package/esm/schema/entitlement.schema.js +35 -6
- package/esm/schema/entitlement_override.schema.js +17 -1
- package/esm/schema/estimate.schema.js +585 -40
- package/esm/schema/event.schema.js +1334 -585
- package/esm/schema/export.schema.js +4459 -1412
- package/esm/schema/feature.schema.js +73 -11
- package/esm/schema/gateway_request_log.schema.js +306 -0
- package/esm/schema/gateway_webhook_log.schema.js +254 -0
- package/esm/schema/gift.schema.js +51 -5
- package/esm/schema/grant_block.schema.js +45 -12
- package/esm/schema/hosted_page.schema.js +564 -68
- package/esm/schema/index.js +6 -0
- package/esm/schema/invoice.schema.js +842 -122
- package/esm/schema/item.schema.js +151 -28
- package/esm/schema/item_entitlement.schema.js +23 -2
- package/esm/schema/item_family.schema.js +29 -8
- package/esm/schema/item_price.schema.js +263 -48
- package/esm/schema/ledger_account_balance.schema.js +10 -1
- package/esm/schema/ledger_operation.schema.js +44 -17
- package/esm/schema/metered_feature.schema.js +10 -1
- package/esm/schema/omnichannel_one_time_order.schema.js +42 -4
- package/esm/schema/omnichannel_subscription.schema.js +146 -32
- package/esm/schema/order.schema.js +233 -61
- package/esm/schema/organization_detail.schema.js +33 -0
- package/esm/schema/payment_schedule.schema.js +39 -8
- package/esm/schema/payment_schedule_scheme.schema.js +37 -7
- package/esm/schema/payment_source.schema.js +375 -148
- package/esm/schema/payment_voucher.schema.js +33 -5
- package/esm/schema/plan.schema.js +345 -57
- package/esm/schema/price_ramp.schema.js +150 -0
- package/esm/schema/price_variant.schema.js +88 -18
- package/esm/schema/pricing_page_session.schema.js +36 -2
- package/esm/schema/promotional_credit.schema.js +27 -6
- package/esm/schema/purchase.schema.js +210 -12
- package/esm/schema/quote.schema.js +907 -87
- package/esm/schema/quote_entitlement.schema.js +6 -2
- package/esm/schema/ramp.schema.js +242 -24
- package/esm/schema/retry_segment.schema.js +9 -0
- package/esm/schema/site_migration_detail.schema.js +50 -16
- package/esm/schema/subscription.schema.js +1002 -173
- package/esm/schema/subscription_entitlement.schema.js +9 -1
- package/esm/schema/transaction.schema.js +780 -342
- package/esm/schema/unbilled_charge.schema.js +141 -13
- package/esm/schema/usage.schema.js +59 -11
- package/esm/schema/usage_event.schema.js +13 -1
- package/esm/schema/usage_summary.schema.js +1 -0
- package/esm/schema/virtual_bank_account.schema.js +42 -10
- package/esm/schema/webhook_endpoint.schema.js +50 -2
- package/package.json +1 -1
- package/types/core.d.ts +63 -74
- package/types/index.d.ts +29 -1
- package/types/resources/BillingLineItem.d.ts +10 -0
- package/types/resources/BillingMetadata.d.ts +9 -0
- package/types/resources/BusinessEntity.d.ts +52 -0
- package/types/resources/Citation.d.ts +13 -0
- package/types/resources/CollectionsDispute.d.ts +24 -0
- package/types/resources/CollectionsPaymentPromise.d.ts +93 -0
- package/types/resources/CollectionsReminderSequence.d.ts +35 -0
- package/types/resources/Comment.d.ts +2 -1
- package/types/resources/Content.d.ts +23 -1
- package/types/resources/CreditNote.d.ts +1 -0
- package/types/resources/CustomData.d.ts +14 -0
- package/types/resources/Discount.d.ts +1 -0
- package/types/resources/DraftEstimate.d.ts +13 -0
- package/types/resources/DraftRequest.d.ts +45 -0
- package/types/resources/EmailAttachment.d.ts +16 -0
- package/types/resources/EmailConversation.d.ts +18 -0
- package/types/resources/EmailLog.d.ts +1 -0
- package/types/resources/EmailMessage.d.ts +40 -0
- package/types/resources/Estimate.d.ts +3 -0
- package/types/resources/Event.d.ts +25 -1
- package/types/resources/Execution.d.ts +12 -0
- package/types/resources/GatewayPaymentMethodToken.d.ts +2 -2
- package/types/resources/GatewayRequestLog.d.ts +82 -0
- package/types/resources/GatewayWebhookLog.d.ts +74 -0
- package/types/resources/GrantBlock.d.ts +5 -0
- package/types/resources/GroupByAttribute.d.ts +15 -0
- package/types/resources/GroupByRecommendation.d.ts +10 -0
- package/types/resources/HostedPage.d.ts +18 -0
- package/types/resources/Invoice.d.ts +19 -0
- package/types/resources/ItemPrice.d.ts +1 -0
- package/types/resources/LedgerAccountBalance.d.ts +19 -0
- package/types/resources/Meter.d.ts +1 -0
- package/types/resources/MeteredFeature.d.ts +1 -0
- package/types/resources/OmnichannelOneTimeOrder.d.ts +5 -1
- package/types/resources/OmnichannelSubscription.d.ts +6 -1
- package/types/resources/OmnichannelSubscriptionItem.d.ts +4 -1
- package/types/resources/OrganizationDetail.d.ts +84 -0
- package/types/resources/PaymentSchedule.d.ts +1 -1
- package/types/resources/PaymentScheduleEstimate.d.ts +1 -1
- package/types/resources/PaymentSource.d.ts +19 -0
- package/types/resources/PreferenceVariant.d.ts +10 -0
- package/types/resources/PriceRamp.d.ts +113 -0
- package/types/resources/PrivateNote.d.ts +18 -0
- package/types/resources/Purchase.d.ts +6 -0
- package/types/resources/Ramp.d.ts +6 -0
- package/types/resources/RampInterval.d.ts +12 -0
- package/types/resources/RecordedPurchase.d.ts +5 -1
- package/types/resources/RetrySegment.d.ts +36 -0
- package/types/resources/Subscription.d.ts +3 -0
- package/types/resources/Transaction.d.ts +4 -0
- package/types/resources/Usage.d.ts +7 -0
- package/types/resources/UsageSummary.d.ts +2 -0
- package/types/resources/WebhookEvent.d.ts +159 -5
- package/types/resources/AppliedBusinessRule.d.ts +0 -15
|
@@ -329,6 +329,7 @@ declare module 'chargebee' {
|
|
|
329
329
|
redirect_url?: string;
|
|
330
330
|
cancel_url?: string;
|
|
331
331
|
pass_thru_content?: string;
|
|
332
|
+
show_billing_frequency_selector?: boolean;
|
|
332
333
|
allow_offline_payment_methods?: boolean;
|
|
333
334
|
subscription?: SubscriptionCheckoutNewForItemsInputParam;
|
|
334
335
|
customer?: CustomerCheckoutNewForItemsInputParam;
|
|
@@ -340,6 +341,7 @@ declare module 'chargebee' {
|
|
|
340
341
|
discounts?: DiscountsCheckoutNewForItemsInputParam[];
|
|
341
342
|
item_tiers?: ItemTiersCheckoutNewForItemsInputParam[];
|
|
342
343
|
entity_identifiers?: EntityIdentifiersCheckoutNewForItemsInputParam[];
|
|
344
|
+
allowed_billing_frequencies?: AllowedBillingFrequenciesCheckoutNewForItemsInputParam[];
|
|
343
345
|
}
|
|
344
346
|
export interface CheckoutExistingInputParam {
|
|
345
347
|
replace_addon_list?: boolean;
|
|
@@ -386,6 +388,7 @@ declare module 'chargebee' {
|
|
|
386
388
|
redirect_url?: string;
|
|
387
389
|
cancel_url?: string;
|
|
388
390
|
pass_thru_content?: string;
|
|
391
|
+
show_billing_frequency_selector?: boolean;
|
|
389
392
|
allow_offline_payment_methods?: boolean;
|
|
390
393
|
subscription?: SubscriptionCheckoutExistingForItemsInputParam;
|
|
391
394
|
customer?: CustomerCheckoutExistingForItemsInputParam;
|
|
@@ -395,6 +398,7 @@ declare module 'chargebee' {
|
|
|
395
398
|
discounts?: DiscountsCheckoutExistingForItemsInputParam[];
|
|
396
399
|
item_tiers?: ItemTiersCheckoutExistingForItemsInputParam[];
|
|
397
400
|
entity_identifiers?: EntityIdentifiersCheckoutExistingForItemsInputParam[];
|
|
401
|
+
allowed_billing_frequencies?: AllowedBillingFrequenciesCheckoutExistingForItemsInputParam[];
|
|
398
402
|
}
|
|
399
403
|
export interface UpdateCardInputParam {
|
|
400
404
|
redirect_url?: string;
|
|
@@ -454,9 +458,11 @@ declare module 'chargebee' {
|
|
|
454
458
|
brand_id?: string;
|
|
455
459
|
redirect_url?: string;
|
|
456
460
|
coupon_ids?: string[];
|
|
461
|
+
show_billing_frequency_selector?: boolean;
|
|
457
462
|
gifter?: GifterCheckoutGiftForItemsInputParam;
|
|
458
463
|
subscription_items?: SubscriptionItemsCheckoutGiftForItemsInputParam[];
|
|
459
464
|
item_tiers?: ItemTiersCheckoutGiftForItemsInputParam[];
|
|
465
|
+
allowed_billing_frequencies?: AllowedBillingFrequenciesCheckoutGiftForItemsInputParam[];
|
|
460
466
|
}
|
|
461
467
|
export interface ClaimGiftInputParam {
|
|
462
468
|
brand_id?: string;
|
|
@@ -869,6 +875,10 @@ declare module 'chargebee' {
|
|
|
869
875
|
item_type?: ItemTypeEnum;
|
|
870
876
|
charge_on_option?: ChargeOnOptionEnum;
|
|
871
877
|
}
|
|
878
|
+
export interface AllowedBillingFrequenciesCheckoutNewForItemsInputParam {
|
|
879
|
+
period?: number;
|
|
880
|
+
period_unit?: PeriodUnitEnum;
|
|
881
|
+
}
|
|
872
882
|
export interface DiscountsCheckoutNewForItemsInputParam {
|
|
873
883
|
apply_on?: ApplyOnEnum;
|
|
874
884
|
duration_type: DurationTypeEnum;
|
|
@@ -1005,6 +1015,10 @@ declare module 'chargebee' {
|
|
|
1005
1015
|
*/
|
|
1006
1016
|
item_type?: ItemTypeEnum;
|
|
1007
1017
|
}
|
|
1018
|
+
export interface AllowedBillingFrequenciesCheckoutExistingForItemsInputParam {
|
|
1019
|
+
period?: number;
|
|
1020
|
+
period_unit?: PeriodUnitEnum;
|
|
1021
|
+
}
|
|
1008
1022
|
export interface DiscountsCheckoutExistingForItemsInputParam {
|
|
1009
1023
|
apply_on?: ApplyOnEnum;
|
|
1010
1024
|
duration_type: DurationTypeEnum;
|
|
@@ -1133,6 +1147,10 @@ declare module 'chargebee' {
|
|
|
1133
1147
|
unit_price?: number;
|
|
1134
1148
|
unit_price_in_decimal?: string;
|
|
1135
1149
|
}
|
|
1150
|
+
export interface AllowedBillingFrequenciesCheckoutGiftForItemsInputParam {
|
|
1151
|
+
period?: number;
|
|
1152
|
+
period_unit?: PeriodUnitEnum;
|
|
1153
|
+
}
|
|
1136
1154
|
export interface ItemTiersCheckoutGiftForItemsInputParam {
|
|
1137
1155
|
item_price_id?: string;
|
|
1138
1156
|
starting_unit?: number;
|
|
@@ -47,6 +47,7 @@ declare module 'chargebee' {
|
|
|
47
47
|
first_invoice?: boolean;
|
|
48
48
|
new_sales_amount?: number;
|
|
49
49
|
has_advance_charges?: boolean;
|
|
50
|
+
offline_payment_method?: OfflinePaymentMethodEnum;
|
|
50
51
|
term_finalized: boolean;
|
|
51
52
|
is_gifted: boolean;
|
|
52
53
|
generated_at?: number;
|
|
@@ -64,6 +65,7 @@ declare module 'chargebee' {
|
|
|
64
65
|
tax_origin?: Invoice.TaxOrigin;
|
|
65
66
|
linked_payments?: Invoice.LinkedPayment[];
|
|
66
67
|
reference_transactions?: Invoice.ReferenceTransaction[];
|
|
68
|
+
retry_segment_id?: string;
|
|
67
69
|
dunning_attempts?: Invoice.DunningAttempt[];
|
|
68
70
|
applied_credits?: Invoice.AppliedCredit[];
|
|
69
71
|
adjustment_credit_notes?: Invoice.AdjustmentCreditNote[];
|
|
@@ -321,6 +323,12 @@ declare module 'chargebee' {
|
|
|
321
323
|
headers?: ChargebeeRequestHeader,
|
|
322
324
|
): Promise<ChargebeeResponse<ApplyPaymentScheduleSchemeResponse>>;
|
|
323
325
|
|
|
326
|
+
removePaymentScheduleScheme(
|
|
327
|
+
invoice_id: string,
|
|
328
|
+
input?: RemovePaymentScheduleSchemeInputParam,
|
|
329
|
+
headers?: ChargebeeRequestHeader,
|
|
330
|
+
): Promise<ChargebeeResponse<RemovePaymentScheduleSchemeResponse>>;
|
|
331
|
+
|
|
324
332
|
paymentSchedules(
|
|
325
333
|
invoice_id: string,
|
|
326
334
|
headers?: ChargebeeRequestHeader,
|
|
@@ -509,6 +517,10 @@ declare module 'chargebee' {
|
|
|
509
517
|
invoice: Invoice;
|
|
510
518
|
}
|
|
511
519
|
|
|
520
|
+
export interface RemovePaymentScheduleSchemeResponse {
|
|
521
|
+
invoice: Invoice;
|
|
522
|
+
}
|
|
523
|
+
|
|
512
524
|
export interface PaymentSchedulesResponse {
|
|
513
525
|
payment_schedules: PaymentSchedule[];
|
|
514
526
|
}
|
|
@@ -945,6 +957,7 @@ declare module 'chargebee' {
|
|
|
945
957
|
payment_source_id?: string;
|
|
946
958
|
auto_collection?: AutoCollectionEnum;
|
|
947
959
|
net_term_days?: number;
|
|
960
|
+
offline_payment_method?: OfflinePaymentMethodEnum;
|
|
948
961
|
invoice_date?: number;
|
|
949
962
|
create_pending_invoice?: boolean;
|
|
950
963
|
token_id?: string;
|
|
@@ -1237,6 +1250,9 @@ declare module 'chargebee' {
|
|
|
1237
1250
|
scheme_id: string;
|
|
1238
1251
|
amount?: number;
|
|
1239
1252
|
}
|
|
1253
|
+
export interface RemovePaymentScheduleSchemeInputParam {
|
|
1254
|
+
comment?: string;
|
|
1255
|
+
}
|
|
1240
1256
|
export interface StatementDescriptorCreateInputParam {
|
|
1241
1257
|
descriptor?: string;
|
|
1242
1258
|
}
|
|
@@ -1828,6 +1844,7 @@ declare module 'chargebee' {
|
|
|
1828
1844
|
tax10_amount?: number;
|
|
1829
1845
|
is_partial_tax_applied?: boolean;
|
|
1830
1846
|
taxable_amount?: number;
|
|
1847
|
+
tax_exempt_reason?: TaxExemptReasonEnum;
|
|
1831
1848
|
proration_mode?:
|
|
1832
1849
|
| 'reset'
|
|
1833
1850
|
| 'delta'
|
|
@@ -1844,6 +1861,8 @@ declare module 'chargebee' {
|
|
|
1844
1861
|
}
|
|
1845
1862
|
export interface CreditNotesApplyCreditsInputParam {
|
|
1846
1863
|
id?: string;
|
|
1864
|
+
amount?: number;
|
|
1865
|
+
applied_at?: number;
|
|
1847
1866
|
}
|
|
1848
1867
|
export interface EinvoiceInvoiceListInputParam {
|
|
1849
1868
|
status?: filter.Enum;
|
|
@@ -12,6 +12,7 @@ declare module 'chargebee' {
|
|
|
12
12
|
status?: 'active' | 'archived' | 'deleted';
|
|
13
13
|
external_name?: string;
|
|
14
14
|
price_variant_id?: string;
|
|
15
|
+
price_ramp_id?: string;
|
|
15
16
|
proration_type?: 'site_default' | 'partial_term' | 'full_term';
|
|
16
17
|
pricing_model: PricingModelEnum;
|
|
17
18
|
price?: number;
|
|
@@ -19,6 +19,11 @@ declare module 'chargebee' {
|
|
|
19
19
|
input: ListLedgerAccountBalancesInputParam,
|
|
20
20
|
headers?: ChargebeeRequestHeader,
|
|
21
21
|
): Promise<ChargebeeResponse<ListLedgerAccountBalancesResponse>>;
|
|
22
|
+
|
|
23
|
+
updateOverdraftLimit(
|
|
24
|
+
input: UpdateOverdraftLimitInputParam,
|
|
25
|
+
headers?: ChargebeeRequestHeader,
|
|
26
|
+
): Promise<ChargebeeResponse<UpdateOverdraftLimitResponse>>;
|
|
22
27
|
}
|
|
23
28
|
|
|
24
29
|
export interface ListLedgerAccountBalancesResponse {
|
|
@@ -26,6 +31,13 @@ declare module 'chargebee' {
|
|
|
26
31
|
next_offset?: string;
|
|
27
32
|
}
|
|
28
33
|
|
|
34
|
+
export interface UpdateOverdraftLimitResponse {
|
|
35
|
+
subscription_id: string;
|
|
36
|
+
unit_id: string;
|
|
37
|
+
change_reason?: string;
|
|
38
|
+
overdraft_balance: object;
|
|
39
|
+
}
|
|
40
|
+
|
|
29
41
|
export interface ProvisionedBalance {
|
|
30
42
|
total_balance: string;
|
|
31
43
|
usable_balance: string;
|
|
@@ -48,5 +60,12 @@ declare module 'chargebee' {
|
|
|
48
60
|
subscription_id: filter.String;
|
|
49
61
|
unit_id?: filter.String;
|
|
50
62
|
}
|
|
63
|
+
export interface UpdateOverdraftLimitInputParam {
|
|
64
|
+
subscription_id: string;
|
|
65
|
+
unit_id: string;
|
|
66
|
+
is_unlimited: boolean;
|
|
67
|
+
limit?: string;
|
|
68
|
+
change_reason?: string;
|
|
69
|
+
}
|
|
51
70
|
}
|
|
52
71
|
}
|
|
@@ -8,7 +8,11 @@ declare module 'chargebee' {
|
|
|
8
8
|
customer_id?: string;
|
|
9
9
|
id_at_source: string;
|
|
10
10
|
origin?: string;
|
|
11
|
-
source:
|
|
11
|
+
source:
|
|
12
|
+
| 'apple_app_store'
|
|
13
|
+
| 'google_play_store'
|
|
14
|
+
| 'roku'
|
|
15
|
+
| 'amazon_app_store';
|
|
12
16
|
created_at: number;
|
|
13
17
|
resource_version?: number;
|
|
14
18
|
omnichannel_one_time_order_items: OmnichannelOneTimeOrderItem[];
|
|
@@ -6,8 +6,13 @@ declare module 'chargebee' {
|
|
|
6
6
|
id: string;
|
|
7
7
|
id_at_source: string;
|
|
8
8
|
app_id: string;
|
|
9
|
-
source:
|
|
9
|
+
source:
|
|
10
|
+
| 'apple_app_store'
|
|
11
|
+
| 'google_play_store'
|
|
12
|
+
| 'roku'
|
|
13
|
+
| 'amazon_app_store';
|
|
10
14
|
customer_id?: string;
|
|
15
|
+
origin?: string;
|
|
11
16
|
created_at: number;
|
|
12
17
|
purchased_at?: number;
|
|
13
18
|
updated_at: number;
|
|
@@ -22,13 +22,16 @@ declare module 'chargebee' {
|
|
|
22
22
|
| 'product_not_available'
|
|
23
23
|
| 'other'
|
|
24
24
|
| 'subscription_not_found_in_source';
|
|
25
|
+
expiration_reason_at_source?: string;
|
|
25
26
|
cancelled_at?: number;
|
|
26
27
|
cancellation_reason?:
|
|
27
28
|
| 'customer_cancelled'
|
|
28
29
|
| 'customer_did_not_consent_to_price_increase'
|
|
29
30
|
| 'refunded_due_to_app_issue'
|
|
30
31
|
| 'refunded_for_other_reason'
|
|
31
|
-
| 'merchant_revoked'
|
|
32
|
+
| 'merchant_revoked'
|
|
33
|
+
| 'other';
|
|
34
|
+
cancellation_reason_at_source?: string;
|
|
32
35
|
grace_period_expires_at?: number;
|
|
33
36
|
resumes_at?: number;
|
|
34
37
|
has_scheduled_changes: boolean;
|
|
@@ -0,0 +1,84 @@
|
|
|
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 OrganizationDetail {
|
|
6
|
+
id: string;
|
|
7
|
+
organization_name?: string;
|
|
8
|
+
email?: string;
|
|
9
|
+
address_line1?: string;
|
|
10
|
+
address_line2?: string;
|
|
11
|
+
address_line3?: string;
|
|
12
|
+
city?: string;
|
|
13
|
+
state_code?: string;
|
|
14
|
+
state?: string;
|
|
15
|
+
country_code?: string;
|
|
16
|
+
zip?: string;
|
|
17
|
+
phone?: string;
|
|
18
|
+
fax?: string;
|
|
19
|
+
website?: string;
|
|
20
|
+
is_vat_number_present?: boolean;
|
|
21
|
+
vat_number?: string;
|
|
22
|
+
resource_version?: number;
|
|
23
|
+
updated_at?: number;
|
|
24
|
+
business_entity_id?: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export namespace OrganizationDetail {
|
|
28
|
+
export class OrganizationDetailResource {
|
|
29
|
+
create(
|
|
30
|
+
input: CreateInputParam,
|
|
31
|
+
headers?: ChargebeeRequestHeader,
|
|
32
|
+
): Promise<ChargebeeResponse<CreateResponse>>;
|
|
33
|
+
|
|
34
|
+
retrieve(
|
|
35
|
+
organization_detail_id: string,
|
|
36
|
+
headers?: ChargebeeRequestHeader,
|
|
37
|
+
): Promise<ChargebeeResponse<RetrieveResponse>>;
|
|
38
|
+
|
|
39
|
+
list(
|
|
40
|
+
input?: ListInputParam,
|
|
41
|
+
headers?: ChargebeeRequestHeader,
|
|
42
|
+
): Promise<ChargebeeResponse<ListResponse>>;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface CreateResponse {
|
|
46
|
+
organization_detail: OrganizationDetail;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface RetrieveResponse {
|
|
50
|
+
organization_detail: OrganizationDetail;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface ListResponse {
|
|
54
|
+
list: { organization_detail: OrganizationDetail }[];
|
|
55
|
+
next_offset?: string;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// REQUEST PARAMS
|
|
59
|
+
//---------------
|
|
60
|
+
|
|
61
|
+
export interface CreateInputParam {
|
|
62
|
+
organization_name: string;
|
|
63
|
+
email?: string;
|
|
64
|
+
address_line1: string;
|
|
65
|
+
address_line2?: string;
|
|
66
|
+
address_line3?: string;
|
|
67
|
+
city: string;
|
|
68
|
+
state_code?: string;
|
|
69
|
+
state: string;
|
|
70
|
+
zip: string;
|
|
71
|
+
country_code?: string;
|
|
72
|
+
phone: string;
|
|
73
|
+
fax?: string;
|
|
74
|
+
website?: string;
|
|
75
|
+
is_vat_number_present?: boolean;
|
|
76
|
+
vat_number?: string;
|
|
77
|
+
}
|
|
78
|
+
export interface ListInputParam {
|
|
79
|
+
limit?: number;
|
|
80
|
+
offset?: string;
|
|
81
|
+
business_entity_id?: filter.String;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -34,7 +34,7 @@ declare module 'chargebee' {
|
|
|
34
34
|
date: number;
|
|
35
35
|
amount: number;
|
|
36
36
|
scheduled_amount: number;
|
|
37
|
-
status: 'posted' | 'payment_due' | 'paid';
|
|
37
|
+
status: 'posted' | 'payment_due' | 'paid' | 'voided';
|
|
38
38
|
}
|
|
39
39
|
export interface ReferenceTransaction {
|
|
40
40
|
schedule_entry_id: string;
|
|
@@ -318,6 +318,7 @@ declare module 'chargebee' {
|
|
|
318
318
|
}
|
|
319
319
|
export interface NetworkTransactionReference {
|
|
320
320
|
original_network_transaction_id?: string;
|
|
321
|
+
transaction_link_id?: string;
|
|
321
322
|
}
|
|
322
323
|
// REQUEST PARAMS
|
|
323
324
|
//---------------
|
|
@@ -347,6 +348,7 @@ declare module 'chargebee' {
|
|
|
347
348
|
skip_retrieval?: boolean;
|
|
348
349
|
additional_information?: any;
|
|
349
350
|
card?: CardCreateUsingPermanentTokenInputParam;
|
|
351
|
+
bank_account?: BankAccountCreateUsingPermanentTokenInputParam;
|
|
350
352
|
billing_address?: BillingAddressCreateUsingPermanentTokenInputParam;
|
|
351
353
|
}
|
|
352
354
|
export interface CreateUsingTokenInputParam {
|
|
@@ -429,6 +431,23 @@ declare module 'chargebee' {
|
|
|
429
431
|
zip?: string;
|
|
430
432
|
country?: string;
|
|
431
433
|
}
|
|
434
|
+
export interface BankAccountCreateUsingPermanentTokenInputParam {
|
|
435
|
+
account_type?: AccountTypeEnum;
|
|
436
|
+
account_holder_type?: AccountHolderTypeEnum;
|
|
437
|
+
first_name?: string;
|
|
438
|
+
last_name?: string;
|
|
439
|
+
company?: string;
|
|
440
|
+
scheme?:
|
|
441
|
+
| 'ach'
|
|
442
|
+
| 'bacs'
|
|
443
|
+
| 'sepa_core'
|
|
444
|
+
| 'autogiro'
|
|
445
|
+
| 'becs'
|
|
446
|
+
| 'becs_nz'
|
|
447
|
+
| 'pad';
|
|
448
|
+
last4?: string;
|
|
449
|
+
echeck_type?: EcheckTypeEnum;
|
|
450
|
+
}
|
|
432
451
|
export interface CardCreateUsingPermanentTokenInputParam {
|
|
433
452
|
last4?: string;
|
|
434
453
|
iin?: string;
|
|
@@ -0,0 +1,113 @@
|
|
|
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 PriceRamp {
|
|
6
|
+
id: string;
|
|
7
|
+
item_price_id: string;
|
|
8
|
+
status: 'active' | 'archived' | 'deleted';
|
|
9
|
+
created_at: number;
|
|
10
|
+
resource_version?: number;
|
|
11
|
+
updated_at?: number;
|
|
12
|
+
archived_at?: number;
|
|
13
|
+
ramp_intervals?: PriceRamp.RampInterval[];
|
|
14
|
+
business_entity_id?: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export namespace PriceRamp {
|
|
18
|
+
export class PriceRampResource {
|
|
19
|
+
create(
|
|
20
|
+
input: CreateInputParam,
|
|
21
|
+
headers?: ChargebeeRequestHeader,
|
|
22
|
+
): Promise<ChargebeeResponse<CreateResponse>>;
|
|
23
|
+
|
|
24
|
+
retrieve(
|
|
25
|
+
price_ramp_id: string,
|
|
26
|
+
headers?: ChargebeeRequestHeader,
|
|
27
|
+
): Promise<ChargebeeResponse<RetrieveResponse>>;
|
|
28
|
+
|
|
29
|
+
update(
|
|
30
|
+
price_ramp_id: string,
|
|
31
|
+
input: UpdateInputParam,
|
|
32
|
+
headers?: ChargebeeRequestHeader,
|
|
33
|
+
): Promise<ChargebeeResponse<UpdateResponse>>;
|
|
34
|
+
|
|
35
|
+
delete(
|
|
36
|
+
price_ramp_id: string,
|
|
37
|
+
headers?: ChargebeeRequestHeader,
|
|
38
|
+
): Promise<ChargebeeResponse<DeleteResponse>>;
|
|
39
|
+
|
|
40
|
+
list(
|
|
41
|
+
input?: ListInputParam,
|
|
42
|
+
headers?: ChargebeeRequestHeader,
|
|
43
|
+
): Promise<ChargebeeResponse<ListResponse>>;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface CreateResponse {
|
|
47
|
+
price_ramp: PriceRamp;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface RetrieveResponse {
|
|
51
|
+
price_ramp: PriceRamp;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface UpdateResponse {
|
|
55
|
+
price_ramp: PriceRamp;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface DeleteResponse {
|
|
59
|
+
price_ramp: PriceRamp;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface ListResponse {
|
|
63
|
+
list: { price_ramp: PriceRamp }[];
|
|
64
|
+
next_offset?: string;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface RampInterval {
|
|
68
|
+
starting_billing_cycle: number;
|
|
69
|
+
ending_billing_cycle?: number;
|
|
70
|
+
apply_catalog_price?: boolean;
|
|
71
|
+
price?: number;
|
|
72
|
+
price_in_decimal?: string;
|
|
73
|
+
}
|
|
74
|
+
// REQUEST PARAMS
|
|
75
|
+
//---------------
|
|
76
|
+
|
|
77
|
+
export interface CreateInputParam {
|
|
78
|
+
item_price_id: string;
|
|
79
|
+
business_entity_id?: string;
|
|
80
|
+
ramp_intervals?: RampIntervalsCreateInputParam[];
|
|
81
|
+
}
|
|
82
|
+
export interface UpdateInputParam {
|
|
83
|
+
status?: 'active' | 'archived';
|
|
84
|
+
ramp_intervals?: RampIntervalsUpdateInputParam[];
|
|
85
|
+
}
|
|
86
|
+
export interface ListInputParam {
|
|
87
|
+
limit?: number;
|
|
88
|
+
offset?: string;
|
|
89
|
+
id?: filter.String;
|
|
90
|
+
item_price_id?: filter.String;
|
|
91
|
+
status?: filter.Enum;
|
|
92
|
+
updated_at?: filter.Timestamp;
|
|
93
|
+
business_entity_id?: filter.String;
|
|
94
|
+
include_site_level_resources?: filter.Boolean;
|
|
95
|
+
'sort_by[asc]'?: string;
|
|
96
|
+
'sort_by[desc]'?: string;
|
|
97
|
+
}
|
|
98
|
+
export interface RampIntervalsCreateInputParam {
|
|
99
|
+
starting_billing_cycle: number;
|
|
100
|
+
ending_billing_cycle?: number;
|
|
101
|
+
apply_catalog_price?: boolean;
|
|
102
|
+
price?: number;
|
|
103
|
+
price_in_decimal?: string;
|
|
104
|
+
}
|
|
105
|
+
export interface RampIntervalsUpdateInputParam {
|
|
106
|
+
starting_billing_cycle: number;
|
|
107
|
+
ending_billing_cycle?: number;
|
|
108
|
+
apply_catalog_price?: boolean;
|
|
109
|
+
price?: number;
|
|
110
|
+
price_in_decimal?: string;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
3
|
+
|
|
4
|
+
declare module 'chargebee' {
|
|
5
|
+
export interface PrivateNote {
|
|
6
|
+
id: string;
|
|
7
|
+
email_conversation_id: string;
|
|
8
|
+
author_type?: 'site_user' | 'agent' | 'other';
|
|
9
|
+
author_id?: string;
|
|
10
|
+
author_name?: string;
|
|
11
|
+
content_html: string;
|
|
12
|
+
content_text?: string;
|
|
13
|
+
meta_data?: string;
|
|
14
|
+
created_at: number;
|
|
15
|
+
resource_version?: number;
|
|
16
|
+
updated_at: number;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -156,6 +156,8 @@ declare module 'chargebee' {
|
|
|
156
156
|
subscription_id?: string;
|
|
157
157
|
billing_cycles?: number;
|
|
158
158
|
contract_term_billing_cycle_on_renewal?: number;
|
|
159
|
+
trial_end?: number;
|
|
160
|
+
start_date?: number;
|
|
159
161
|
meta_data?: any;
|
|
160
162
|
}
|
|
161
163
|
export interface PurchaseItemsCreateInputParam {
|
|
@@ -165,6 +167,7 @@ declare module 'chargebee' {
|
|
|
165
167
|
unit_amount?: number;
|
|
166
168
|
unit_amount_in_decimal?: string;
|
|
167
169
|
quantity_in_decimal?: string;
|
|
170
|
+
trial_end?: number;
|
|
168
171
|
}
|
|
169
172
|
export interface DiscountsCreateInputParam {
|
|
170
173
|
index?: number;
|
|
@@ -231,6 +234,8 @@ declare module 'chargebee' {
|
|
|
231
234
|
subscription_id?: string;
|
|
232
235
|
billing_cycles?: number;
|
|
233
236
|
contract_term_billing_cycle_on_renewal?: number;
|
|
237
|
+
trial_end?: number;
|
|
238
|
+
start_date?: number;
|
|
234
239
|
}
|
|
235
240
|
export interface PurchaseItemsEstimateInputParam {
|
|
236
241
|
index: number;
|
|
@@ -239,6 +244,7 @@ declare module 'chargebee' {
|
|
|
239
244
|
unit_amount?: number;
|
|
240
245
|
unit_amount_in_decimal?: string;
|
|
241
246
|
quantity_in_decimal?: string;
|
|
247
|
+
trial_end?: number;
|
|
242
248
|
}
|
|
243
249
|
export interface DiscountsEstimateInputParam {
|
|
244
250
|
index?: number;
|
|
@@ -92,6 +92,7 @@ declare module 'chargebee' {
|
|
|
92
92
|
metered_quantity?: string;
|
|
93
93
|
charge_once?: boolean;
|
|
94
94
|
charge_on_option?: 'immediately' | 'on_event';
|
|
95
|
+
description?: string;
|
|
95
96
|
charge_on_event?:
|
|
96
97
|
| 'subscription_trial_start'
|
|
97
98
|
| 'plan_activation'
|
|
@@ -114,6 +115,7 @@ declare module 'chargebee' {
|
|
|
114
115
|
metered_quantity?: string;
|
|
115
116
|
charge_once?: boolean;
|
|
116
117
|
charge_on_option?: 'immediately' | 'on_event';
|
|
118
|
+
description?: string;
|
|
117
119
|
charge_on_event?:
|
|
118
120
|
| 'subscription_trial_start'
|
|
119
121
|
| 'plan_activation'
|
|
@@ -225,6 +227,7 @@ declare module 'chargebee' {
|
|
|
225
227
|
charge_on_event?: ChargeOnEventEnum;
|
|
226
228
|
charge_once?: boolean;
|
|
227
229
|
charge_on_option?: ChargeOnOptionEnum;
|
|
230
|
+
description?: string;
|
|
228
231
|
}
|
|
229
232
|
export interface CouponsToAddCreateForSubscriptionInputParam {
|
|
230
233
|
coupon_id?: string;
|
|
@@ -252,6 +255,7 @@ declare module 'chargebee' {
|
|
|
252
255
|
charge_on_event?: ChargeOnEventEnum;
|
|
253
256
|
charge_once?: boolean;
|
|
254
257
|
charge_on_option?: ChargeOnOptionEnum;
|
|
258
|
+
description?: string;
|
|
255
259
|
}
|
|
256
260
|
export interface DiscountsToAddCreateForSubscriptionInputParam {
|
|
257
261
|
apply_on: ApplyOnEnum;
|
|
@@ -284,6 +288,7 @@ declare module 'chargebee' {
|
|
|
284
288
|
charge_on_event?: ChargeOnEventEnum;
|
|
285
289
|
charge_once?: boolean;
|
|
286
290
|
charge_on_option?: ChargeOnOptionEnum;
|
|
291
|
+
description?: string;
|
|
287
292
|
}
|
|
288
293
|
export interface CouponsToAddUpdateInputParam {
|
|
289
294
|
coupon_id?: string;
|
|
@@ -311,6 +316,7 @@ declare module 'chargebee' {
|
|
|
311
316
|
charge_on_event?: ChargeOnEventEnum;
|
|
312
317
|
charge_once?: boolean;
|
|
313
318
|
charge_on_option?: ChargeOnOptionEnum;
|
|
319
|
+
description?: string;
|
|
314
320
|
}
|
|
315
321
|
export interface DiscountsToAddUpdateInputParam {
|
|
316
322
|
apply_on: ApplyOnEnum;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
3
|
+
|
|
4
|
+
declare module 'chargebee' {
|
|
5
|
+
export interface RampInterval {
|
|
6
|
+
starting_billing_cycle: number;
|
|
7
|
+
ending_billing_cycle?: number;
|
|
8
|
+
apply_catalog_price?: boolean;
|
|
9
|
+
price?: number;
|
|
10
|
+
price_in_decimal?: string;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -6,7 +6,11 @@ declare module 'chargebee' {
|
|
|
6
6
|
id: string;
|
|
7
7
|
customer_id: string;
|
|
8
8
|
app_id: string;
|
|
9
|
-
source:
|
|
9
|
+
source:
|
|
10
|
+
| 'apple_app_store'
|
|
11
|
+
| 'google_play_store'
|
|
12
|
+
| 'roku'
|
|
13
|
+
| 'amazon_app_store';
|
|
10
14
|
status: 'in_process' | 'completed' | 'failed' | 'ignored';
|
|
11
15
|
omnichannel_transaction_id?: string;
|
|
12
16
|
created_at: number;
|