chargebee 3.28.1 → 3.29.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 +82 -0
- package/cjs/chargebee.cjs.js +1 -1
- package/cjs/environment.js +1 -1
- package/cjs/resources/api_endpoints.js +57 -0
- package/cjs/resources/webhook/eventType.js +1 -0
- package/cjs/schema/alert.schema.js +6 -5
- package/cjs/schema/credit_note.schema.js +5 -0
- package/cjs/schema/customer.schema.js +15 -0
- package/cjs/schema/estimate.schema.js +9 -0
- package/cjs/schema/event.schema.js +4 -0
- package/cjs/schema/export.schema.js +20 -4
- package/cjs/schema/feature.schema.js +0 -1
- package/cjs/schema/gift.schema.js +6 -0
- package/cjs/schema/invoice.schema.js +33 -1
- package/cjs/schema/item.schema.js +1 -1
- package/cjs/schema/item_family.schema.js +1 -1
- package/cjs/schema/item_price.schema.js +1 -1
- package/cjs/schema/meter.schema.js +10 -0
- package/cjs/schema/omnichannel_subscription.schema.js +2 -2
- package/cjs/schema/payment_intent.schema.js +6 -0
- package/cjs/schema/payment_source.schema.js +21 -0
- package/cjs/schema/price_variant.schema.js +1 -1
- package/cjs/schema/purchase.schema.js +3 -0
- package/cjs/schema/ramp.schema.js +2 -0
- package/cjs/schema/recorded_purchase.schema.js +3 -0
- package/cjs/schema/subscription.schema.js +37 -0
- package/cjs/schema/transaction.schema.js +12 -0
- package/cjs/schema/webhook_endpoint.schema.js +2 -0
- package/cjs/telemetry/TelemetryAdapter.js +12 -7
- package/esm/environment.js +1 -1
- package/esm/resources/api_endpoints.js +57 -0
- package/esm/resources/webhook/eventType.js +1 -0
- package/esm/schema/alert.schema.js +6 -5
- package/esm/schema/credit_note.schema.js +5 -0
- package/esm/schema/customer.schema.js +15 -0
- package/esm/schema/estimate.schema.js +9 -0
- package/esm/schema/event.schema.js +4 -0
- package/esm/schema/export.schema.js +20 -4
- package/esm/schema/feature.schema.js +0 -1
- package/esm/schema/gift.schema.js +6 -0
- package/esm/schema/invoice.schema.js +33 -1
- package/esm/schema/item.schema.js +1 -1
- package/esm/schema/item_family.schema.js +1 -1
- package/esm/schema/item_price.schema.js +1 -1
- package/esm/schema/meter.schema.js +10 -0
- package/esm/schema/omnichannel_subscription.schema.js +2 -2
- package/esm/schema/payment_intent.schema.js +6 -0
- package/esm/schema/payment_source.schema.js +21 -0
- package/esm/schema/price_variant.schema.js +1 -1
- package/esm/schema/purchase.schema.js +3 -0
- package/esm/schema/ramp.schema.js +2 -0
- package/esm/schema/recorded_purchase.schema.js +3 -0
- package/esm/schema/subscription.schema.js +37 -0
- package/esm/schema/transaction.schema.js +12 -0
- package/esm/schema/webhook_endpoint.schema.js +2 -0
- package/esm/telemetry/TelemetryAdapter.js +12 -7
- package/package.json +1 -1
- package/types/core.d.ts +40 -6
- package/types/index.d.ts +12 -8
- package/types/resources/Alert.d.ts +16 -3
- package/types/resources/AsyncResponse.d.ts +35 -0
- package/types/resources/AsyncResponseList.d.ts +8 -0
- package/types/resources/ColumnDefinition.d.ts +9 -0
- package/types/resources/Content.d.ts +5 -0
- package/types/resources/CreditNote.d.ts +15 -0
- package/types/resources/CreditNoteEstimate.d.ts +5 -0
- package/types/resources/Customer.d.ts +8 -2
- package/types/resources/Estimate.d.ts +11 -2
- package/types/resources/Event.d.ts +1 -0
- package/types/resources/Export.d.ts +1 -0
- package/types/resources/Feature.d.ts +2 -0
- package/types/resources/Gift.d.ts +8 -2
- package/types/resources/GrantBlock.d.ts +1 -1
- package/types/resources/Invoice.d.ts +33 -3
- package/types/resources/InvoiceEstimate.d.ts +5 -0
- package/types/resources/LedgerOperation.d.ts +1 -3
- package/types/resources/Meter.d.ts +42 -0
- package/types/resources/MeteredFeature.d.ts +70 -0
- package/types/resources/PaymentIntent.d.ts +37 -5
- package/types/resources/PaymentSource.d.ts +4 -1
- package/types/resources/PromotionalGrant.d.ts +1 -1
- package/types/resources/Purchase.d.ts +4 -1
- package/types/resources/Quote.d.ts +5 -0
- package/types/resources/QuoteLineGroup.d.ts +5 -0
- package/types/resources/QuotedCharge.d.ts +3 -0
- package/types/resources/Ramp.d.ts +4 -1
- package/types/resources/RecordedPurchase.d.ts +3 -0
- package/types/resources/Subscription.d.ts +29 -7
- package/types/resources/WebhookEvent.d.ts +7 -0
package/types/core.d.ts
CHANGED
|
@@ -86,7 +86,11 @@ declare module 'chargebee' {
|
|
|
86
86
|
| 'not_applicable';
|
|
87
87
|
type DiscountTypeEnum = 'fixed_amount' | 'percentage' | 'price';
|
|
88
88
|
type DispositionTypeEnum = 'attachment' | 'inline';
|
|
89
|
-
type DunningTypeEnum =
|
|
89
|
+
type DunningTypeEnum =
|
|
90
|
+
| 'auto_collect'
|
|
91
|
+
| 'offline'
|
|
92
|
+
| 'direct_debit'
|
|
93
|
+
| 'real_time_payments';
|
|
90
94
|
type DurationTypeEnum = 'one_time' | 'forever' | 'limited_period';
|
|
91
95
|
type EcheckTypeEnum = 'web' | 'ppd' | 'ccd';
|
|
92
96
|
type EinvoicingMethodEnum = 'automatic' | 'manual' | 'site_default';
|
|
@@ -319,6 +323,7 @@ declare module 'chargebee' {
|
|
|
319
323
|
| 'business_entity_deleted'
|
|
320
324
|
| 'customer_business_entity_changed'
|
|
321
325
|
| 'subscription_business_entity_changed'
|
|
326
|
+
| 'payment_source_business_entity_changed'
|
|
322
327
|
| 'purchase_created'
|
|
323
328
|
| 'voucher_created'
|
|
324
329
|
| 'voucher_expired'
|
|
@@ -539,7 +544,10 @@ declare module 'chargebee' {
|
|
|
539
544
|
| 'alipay_hk'
|
|
540
545
|
| 'paypay'
|
|
541
546
|
| 'gcash'
|
|
542
|
-
| 'south_korean_cards'
|
|
547
|
+
| 'south_korean_cards'
|
|
548
|
+
| 'paynow'
|
|
549
|
+
| 'bizum'
|
|
550
|
+
| 'promptpay';
|
|
543
551
|
type PaymentMethodSavePolicyEnum = 'always' | 'ask' | 'never';
|
|
544
552
|
type PaymentMethodTypeEnum =
|
|
545
553
|
| 'card'
|
|
@@ -588,7 +596,10 @@ declare module 'chargebee' {
|
|
|
588
596
|
| 'alipay_hk'
|
|
589
597
|
| 'paypay'
|
|
590
598
|
| 'gcash'
|
|
591
|
-
| 'south_korean_cards'
|
|
599
|
+
| 'south_korean_cards'
|
|
600
|
+
| 'paynow'
|
|
601
|
+
| 'bizum'
|
|
602
|
+
| 'promptpay';
|
|
592
603
|
type PaymentVoucherTypeEnum = 'boleto';
|
|
593
604
|
type PeriodUnitEnum = 'day' | 'week' | 'month' | 'year';
|
|
594
605
|
type PriceTypeEnum = 'tax_exclusive' | 'tax_inclusive';
|
|
@@ -628,7 +639,14 @@ declare module 'chargebee' {
|
|
|
628
639
|
| 'js_api'
|
|
629
640
|
| 'migration'
|
|
630
641
|
| 'external_service';
|
|
631
|
-
type StatusEnum =
|
|
642
|
+
type StatusEnum =
|
|
643
|
+
| 'active'
|
|
644
|
+
| 'archived'
|
|
645
|
+
| 'deleted'
|
|
646
|
+
| 'available'
|
|
647
|
+
| 'exhausted'
|
|
648
|
+
| 'scheduled'
|
|
649
|
+
| 'in_grace_period';
|
|
632
650
|
type TaxExemptReasonEnum =
|
|
633
651
|
| 'tax_not_configured'
|
|
634
652
|
| 'region_non_taxable'
|
|
@@ -649,7 +667,16 @@ declare module 'chargebee' {
|
|
|
649
667
|
| 'special'
|
|
650
668
|
| 'unincorporated'
|
|
651
669
|
| 'other';
|
|
652
|
-
type TaxOverrideReasonEnum =
|
|
670
|
+
type TaxOverrideReasonEnum =
|
|
671
|
+
| 'zero_rated'
|
|
672
|
+
| 'id_exempt'
|
|
673
|
+
| 'customer_exempt'
|
|
674
|
+
| 'region_non_taxable'
|
|
675
|
+
| 'product_exempt'
|
|
676
|
+
| 'export'
|
|
677
|
+
| 'high_value_physical_goods'
|
|
678
|
+
| 'zero_value_item'
|
|
679
|
+
| 'tax_not_configured_external_provider';
|
|
653
680
|
type TaxabilityEnum = 'taxable' | 'exempt';
|
|
654
681
|
type TaxjarExemptionCategoryEnum = 'wholesale' | 'government' | 'other';
|
|
655
682
|
type TrialEndActionEnum =
|
|
@@ -705,10 +732,16 @@ declare module 'chargebee' {
|
|
|
705
732
|
| 'paypay'
|
|
706
733
|
| 'gcash'
|
|
707
734
|
| 'south_korean_cards'
|
|
735
|
+
| 'paynow'
|
|
736
|
+
| 'bizum'
|
|
737
|
+
| 'promptpay'
|
|
708
738
|
| 'free_trial'
|
|
709
739
|
| 'pay_up_front'
|
|
710
740
|
| 'pay_as_you_go'
|
|
711
|
-
| '
|
|
741
|
+
| 'simple'
|
|
742
|
+
| 'compound'
|
|
743
|
+
| 'usage_exceeded'
|
|
744
|
+
| 'spend_exceeded';
|
|
712
745
|
type UnbilledChargesHandlingEnum = 'no_action' | 'invoice';
|
|
713
746
|
type UnbilledChargesOptionEnum = 'invoice' | 'delete';
|
|
714
747
|
type UnpaidInvoicesHandlingEnum = 'no_action' | 'schedule_payment_collection';
|
|
@@ -884,6 +917,7 @@ declare module 'chargebee' {
|
|
|
884
917
|
| 'business_entity_deleted'
|
|
885
918
|
| 'customer_business_entity_changed'
|
|
886
919
|
| 'subscription_business_entity_changed'
|
|
920
|
+
| 'payment_source_business_entity_changed'
|
|
887
921
|
| 'purchase_created'
|
|
888
922
|
| 'voucher_created'
|
|
889
923
|
| 'voucher_expired'
|
package/types/index.d.ts
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
///<reference path='./resources/AdvanceInvoiceSchedule.d.ts' />
|
|
4
4
|
///<reference path='./resources/Alert.d.ts' />
|
|
5
5
|
///<reference path='./resources/AlertStatus.d.ts' />
|
|
6
|
+
///<reference path='./resources/AsyncResponse.d.ts' />
|
|
7
|
+
///<reference path='./resources/AsyncResponseList.d.ts' />
|
|
6
8
|
///<reference path='./resources/AttachedItem.d.ts' />
|
|
7
9
|
///<reference path='./resources/Attribute.d.ts' />
|
|
8
10
|
///<reference path='./resources/BillingConfiguration.d.ts' />
|
|
@@ -10,6 +12,7 @@
|
|
|
10
12
|
///<reference path='./resources/BusinessEntity.d.ts' />
|
|
11
13
|
///<reference path='./resources/BusinessEntityTransfer.d.ts' />
|
|
12
14
|
///<reference path='./resources/Card.d.ts' />
|
|
15
|
+
///<reference path='./resources/ColumnDefinition.d.ts' />
|
|
13
16
|
///<reference path='./resources/Comment.d.ts' />
|
|
14
17
|
///<reference path='./resources/Configuration.d.ts' />
|
|
15
18
|
///<reference path='./resources/Contact.d.ts' />
|
|
@@ -53,6 +56,8 @@
|
|
|
53
56
|
///<reference path='./resources/LedgerAccountBalance.d.ts' />
|
|
54
57
|
///<reference path='./resources/LedgerOperation.d.ts' />
|
|
55
58
|
///<reference path='./resources/Metadata.d.ts' />
|
|
59
|
+
///<reference path='./resources/Meter.d.ts' />
|
|
60
|
+
///<reference path='./resources/MeteredFeature.d.ts' />
|
|
56
61
|
///<reference path='./resources/NonSubscription.d.ts' />
|
|
57
62
|
///<reference path='./resources/OfferEvent.d.ts' />
|
|
58
63
|
///<reference path='./resources/OfferFulfillment.d.ts' />
|
|
@@ -170,14 +175,14 @@ declare module 'chargebee' {
|
|
|
170
175
|
httpClient?: HttpClientInterface;
|
|
171
176
|
|
|
172
177
|
/**
|
|
173
|
-
* @
|
|
178
|
+
* @enableValidation When true, every request's parameters are validated against each endpoint's generated Zod schema before the HTTP request is sent. Violations throw `ChargebeeZodValidationError` with structured Zod issues. Calls with no params argument are validated as `{}`. Required resource ids in the URL path are still checked separately.
|
|
174
179
|
*/
|
|
175
|
-
|
|
180
|
+
enableValidation?: boolean;
|
|
176
181
|
|
|
177
182
|
/**
|
|
178
|
-
* @
|
|
183
|
+
* @telemetryAdapter optional telemetry adapter for observability (e.g. OpenTelemetry)
|
|
179
184
|
*/
|
|
180
|
-
|
|
185
|
+
telemetryAdapter?: TelemetryAdapter;
|
|
181
186
|
};
|
|
182
187
|
|
|
183
188
|
export interface HttpClientInterface {
|
|
@@ -214,10 +219,7 @@ declare module 'chargebee' {
|
|
|
214
219
|
chargebeeApiVersion: 'v1' | 'v2';
|
|
215
220
|
sdkName: string;
|
|
216
221
|
sdkVersion: string;
|
|
217
|
-
/**
|
|
218
|
-
* Prebuilt span attributes — pass these to your tracer. Captured `chargebee-*` request
|
|
219
|
-
* headers appear as `http.request.header.<name>` with string[] values per OTel semconv.
|
|
220
|
-
*/
|
|
222
|
+
/** Prebuilt span attributes — pass these to your tracer. */
|
|
221
223
|
startAttributes: Record<string, string | string[]>;
|
|
222
224
|
};
|
|
223
225
|
|
|
@@ -297,6 +299,8 @@ declare module 'chargebee' {
|
|
|
297
299
|
itemPrice: ItemPrice.ItemPriceResource;
|
|
298
300
|
ledgerAccountBalance: LedgerAccountBalance.LedgerAccountBalanceResource;
|
|
299
301
|
ledgerOperation: LedgerOperation.LedgerOperationResource;
|
|
302
|
+
meter: Meter.MeterResource;
|
|
303
|
+
meteredFeature: MeteredFeature.MeteredFeatureResource;
|
|
300
304
|
nonSubscription: NonSubscription.NonSubscriptionResource;
|
|
301
305
|
offerEvent: OfferEvent.OfferEventResource;
|
|
302
306
|
offerFulfillment: OfferFulfillment.OfferFulfillmentResource;
|
|
@@ -7,12 +7,15 @@ declare module 'chargebee' {
|
|
|
7
7
|
type: TypeEnum;
|
|
8
8
|
name: string;
|
|
9
9
|
description?: string;
|
|
10
|
-
metered_feature_id
|
|
10
|
+
metered_feature_id?: string;
|
|
11
|
+
currency_code?: string;
|
|
11
12
|
subscription_id?: string;
|
|
12
13
|
status?: 'enabled' | 'disabled';
|
|
13
14
|
meta?: string;
|
|
14
15
|
created_at: number;
|
|
15
16
|
updated_at: number;
|
|
17
|
+
threshold?: Alert.Threshold[];
|
|
18
|
+
filter_conditions?: Alert.FilterCondition[];
|
|
16
19
|
}
|
|
17
20
|
|
|
18
21
|
export namespace Alert {
|
|
@@ -76,6 +79,15 @@ declare module 'chargebee' {
|
|
|
76
79
|
next_offset?: string;
|
|
77
80
|
}
|
|
78
81
|
|
|
82
|
+
export interface Threshold {
|
|
83
|
+
mode: 'absolute' | 'percentage';
|
|
84
|
+
value: number;
|
|
85
|
+
}
|
|
86
|
+
export interface FilterCondition {
|
|
87
|
+
field: 'plan_price_id';
|
|
88
|
+
operator: 'equals' | 'not_equals';
|
|
89
|
+
value: string;
|
|
90
|
+
}
|
|
79
91
|
// REQUEST PARAMS
|
|
80
92
|
//---------------
|
|
81
93
|
|
|
@@ -83,7 +95,8 @@ declare module 'chargebee' {
|
|
|
83
95
|
type: TypeEnum;
|
|
84
96
|
name: string;
|
|
85
97
|
description?: string;
|
|
86
|
-
metered_feature_id
|
|
98
|
+
metered_feature_id?: string;
|
|
99
|
+
currency_code?: string;
|
|
87
100
|
subscription_id?: string;
|
|
88
101
|
meta?: string;
|
|
89
102
|
threshold?: ThresholdCreateInputParam;
|
|
@@ -108,7 +121,7 @@ declare module 'chargebee' {
|
|
|
108
121
|
type?: filter.Enum;
|
|
109
122
|
}
|
|
110
123
|
export interface ThresholdCreateInputParam {
|
|
111
|
-
mode
|
|
124
|
+
mode?: ModeEnum;
|
|
112
125
|
value: number;
|
|
113
126
|
}
|
|
114
127
|
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
3
|
+
|
|
4
|
+
declare module 'chargebee' {
|
|
5
|
+
export interface AsyncResponse {
|
|
6
|
+
api_version?: string;
|
|
7
|
+
created_at?: number;
|
|
8
|
+
completed_at?: number;
|
|
9
|
+
status: 'success' | 'failed';
|
|
10
|
+
request?: AsyncResponse.RequestAsyncApi;
|
|
11
|
+
error_detail?: AsyncResponse.Error;
|
|
12
|
+
result?: any;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export namespace AsyncResponse {
|
|
16
|
+
export interface RequestAsyncApi {
|
|
17
|
+
id: string;
|
|
18
|
+
resource?: string;
|
|
19
|
+
operation_type?: string;
|
|
20
|
+
method?: string;
|
|
21
|
+
uri?: string;
|
|
22
|
+
idempotency_key?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface Error {
|
|
25
|
+
message?: string;
|
|
26
|
+
type?: string;
|
|
27
|
+
api_error_code?: string;
|
|
28
|
+
error_code?: string;
|
|
29
|
+
error_msg?: string;
|
|
30
|
+
http_status_code?: string;
|
|
31
|
+
}
|
|
32
|
+
// REQUEST PARAMS
|
|
33
|
+
//---------------
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -8,6 +8,8 @@ declare module 'chargebee' {
|
|
|
8
8
|
advance_invoice_schedule: AdvanceInvoiceSchedule;
|
|
9
9
|
alert: Alert;
|
|
10
10
|
alert_status: AlertStatus;
|
|
11
|
+
async_response: AsyncResponse;
|
|
12
|
+
async_response_list: AsyncResponseList;
|
|
11
13
|
attached_item: AttachedItem;
|
|
12
14
|
attribute: Attribute;
|
|
13
15
|
billing_configuration: BillingConfiguration;
|
|
@@ -15,6 +17,7 @@ declare module 'chargebee' {
|
|
|
15
17
|
business_entity: BusinessEntity;
|
|
16
18
|
business_entity_transfer: BusinessEntityTransfer;
|
|
17
19
|
card: Card;
|
|
20
|
+
column_definition: ColumnDefinition;
|
|
18
21
|
comment: Comment;
|
|
19
22
|
configuration: Configuration;
|
|
20
23
|
contact: Contact;
|
|
@@ -58,6 +61,8 @@ declare module 'chargebee' {
|
|
|
58
61
|
ledger_account_balance: LedgerAccountBalance;
|
|
59
62
|
ledger_operation: LedgerOperation;
|
|
60
63
|
metadata: Metadata;
|
|
64
|
+
meter: Meter;
|
|
65
|
+
metered_feature: MeteredFeature;
|
|
61
66
|
non_subscription: NonSubscription;
|
|
62
67
|
offer_event: OfferEvent;
|
|
63
68
|
offer_fulfillment: OfferFulfillment;
|
|
@@ -58,6 +58,7 @@ declare module 'chargebee' {
|
|
|
58
58
|
deleted: boolean;
|
|
59
59
|
tax_category?: string;
|
|
60
60
|
local_currency_exchange_rate?: number;
|
|
61
|
+
exchange_rates?: CreditNote.ExchangeRate[];
|
|
61
62
|
create_reason_code?: string;
|
|
62
63
|
vat_number_prefix?: string;
|
|
63
64
|
business_entity_id?: string;
|
|
@@ -261,6 +262,11 @@ declare module 'chargebee' {
|
|
|
261
262
|
| 'tax_not_configured_external_provider';
|
|
262
263
|
entity_id?: string;
|
|
263
264
|
customer_id?: string;
|
|
265
|
+
proration_mode?:
|
|
266
|
+
| 'reset'
|
|
267
|
+
| 'delta'
|
|
268
|
+
| 'service_period_revision'
|
|
269
|
+
| 'adjusted_term';
|
|
264
270
|
}
|
|
265
271
|
export interface LineItemTier {
|
|
266
272
|
line_item_id?: string;
|
|
@@ -388,6 +394,10 @@ declare module 'chargebee' {
|
|
|
388
394
|
| 'pending';
|
|
389
395
|
tax_application?: 'pre_tax' | 'post_tax';
|
|
390
396
|
}
|
|
397
|
+
export interface ExchangeRate {
|
|
398
|
+
currency_code: string;
|
|
399
|
+
rate: number;
|
|
400
|
+
}
|
|
391
401
|
export interface ShippingAddress {
|
|
392
402
|
first_name?: string;
|
|
393
403
|
last_name?: string;
|
|
@@ -694,6 +704,11 @@ declare module 'chargebee' {
|
|
|
694
704
|
tax9_amount?: number;
|
|
695
705
|
tax10_name?: string;
|
|
696
706
|
tax10_amount?: number;
|
|
707
|
+
proration_mode?:
|
|
708
|
+
| 'reset'
|
|
709
|
+
| 'delta'
|
|
710
|
+
| 'service_period_revision'
|
|
711
|
+
| 'adjusted_term';
|
|
697
712
|
}
|
|
698
713
|
}
|
|
699
714
|
}
|
|
@@ -70,6 +70,11 @@ declare module 'chargebee' {
|
|
|
70
70
|
| 'tax_not_configured_external_provider';
|
|
71
71
|
entity_id?: string;
|
|
72
72
|
customer_id?: string;
|
|
73
|
+
proration_mode?:
|
|
74
|
+
| 'reset'
|
|
75
|
+
| 'delta'
|
|
76
|
+
| 'service_period_revision'
|
|
77
|
+
| 'adjusted_term';
|
|
73
78
|
}
|
|
74
79
|
export interface LineItemTier {
|
|
75
80
|
line_item_id?: string;
|
|
@@ -774,7 +774,10 @@ declare module 'chargebee' {
|
|
|
774
774
|
| 'alipay_hk'
|
|
775
775
|
| 'paypay'
|
|
776
776
|
| 'gcash'
|
|
777
|
-
| 'south_korean_cards'
|
|
777
|
+
| 'south_korean_cards'
|
|
778
|
+
| 'paynow'
|
|
779
|
+
| 'bizum'
|
|
780
|
+
| 'promptpay';
|
|
778
781
|
reference_id?: string;
|
|
779
782
|
/**
|
|
780
783
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -971,7 +974,10 @@ declare module 'chargebee' {
|
|
|
971
974
|
| 'alipay_hk'
|
|
972
975
|
| 'paypay'
|
|
973
976
|
| 'gcash'
|
|
974
|
-
| 'south_korean_cards'
|
|
977
|
+
| 'south_korean_cards'
|
|
978
|
+
| 'paynow'
|
|
979
|
+
| 'bizum'
|
|
980
|
+
| 'promptpay';
|
|
975
981
|
/**
|
|
976
982
|
* @deprecated Please refer API docs to use other attributes
|
|
977
983
|
*/
|
|
@@ -1070,7 +1070,10 @@ declare module 'chargebee' {
|
|
|
1070
1070
|
| 'alipay_hk'
|
|
1071
1071
|
| 'paypay'
|
|
1072
1072
|
| 'gcash'
|
|
1073
|
-
| 'south_korean_cards'
|
|
1073
|
+
| 'south_korean_cards'
|
|
1074
|
+
| 'paynow'
|
|
1075
|
+
| 'bizum'
|
|
1076
|
+
| 'promptpay';
|
|
1074
1077
|
reference_id?: string;
|
|
1075
1078
|
/**
|
|
1076
1079
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -1172,7 +1175,10 @@ declare module 'chargebee' {
|
|
|
1172
1175
|
| 'alipay_hk'
|
|
1173
1176
|
| 'paypay'
|
|
1174
1177
|
| 'gcash'
|
|
1175
|
-
| 'south_korean_cards'
|
|
1178
|
+
| 'south_korean_cards'
|
|
1179
|
+
| 'paynow'
|
|
1180
|
+
| 'bizum'
|
|
1181
|
+
| 'promptpay';
|
|
1176
1182
|
reference_id?: string;
|
|
1177
1183
|
/**
|
|
1178
1184
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -1298,6 +1304,7 @@ declare module 'chargebee' {
|
|
|
1298
1304
|
avalara_service_type?: number;
|
|
1299
1305
|
date_from?: number;
|
|
1300
1306
|
date_to?: number;
|
|
1307
|
+
entity_description?: string;
|
|
1301
1308
|
}
|
|
1302
1309
|
export interface DiscountsCreateInvoiceForItemsInputParam {
|
|
1303
1310
|
percentage?: number;
|
|
@@ -1325,6 +1332,8 @@ declare module 'chargebee' {
|
|
|
1325
1332
|
unit_price_in_decimal?: string;
|
|
1326
1333
|
date_from?: number;
|
|
1327
1334
|
date_to?: number;
|
|
1335
|
+
description?: string;
|
|
1336
|
+
entity_description?: string;
|
|
1328
1337
|
}
|
|
1329
1338
|
export interface TaxProvidersFieldsCreateInvoiceForItemsInputParam {
|
|
1330
1339
|
provider_name?: string;
|
|
@@ -200,6 +200,7 @@ declare module 'chargebee' {
|
|
|
200
200
|
OmnichannelSubscriptionItemGracePeriodStartedContent &
|
|
201
201
|
CardExpiryReminderContent &
|
|
202
202
|
TokenCreatedContent &
|
|
203
|
+
PaymentSourceBusinessEntityChangedContent &
|
|
203
204
|
PromotionalCreditsAddedContent &
|
|
204
205
|
SubscriptionRampUpdatedContent &
|
|
205
206
|
CustomerEntitlementsUpdatedContent &
|
|
@@ -13,6 +13,7 @@ declare module 'chargebee' {
|
|
|
13
13
|
resource_version?: number;
|
|
14
14
|
updated_at?: number;
|
|
15
15
|
created_at: number;
|
|
16
|
+
metered: boolean;
|
|
16
17
|
levels?: Feature.Level[];
|
|
17
18
|
}
|
|
18
19
|
|
|
@@ -109,6 +110,7 @@ declare module 'chargebee' {
|
|
|
109
110
|
id?: filter.String;
|
|
110
111
|
status?: filter.Enum;
|
|
111
112
|
type?: filter.Enum;
|
|
113
|
+
metered?: filter.Boolean;
|
|
112
114
|
[key: `cf_${string}`]: unknown;
|
|
113
115
|
}
|
|
114
116
|
export interface CreateInputParam {
|
|
@@ -228,7 +228,10 @@ declare module 'chargebee' {
|
|
|
228
228
|
| 'alipay_hk'
|
|
229
229
|
| 'paypay'
|
|
230
230
|
| 'gcash'
|
|
231
|
-
| 'south_korean_cards'
|
|
231
|
+
| 'south_korean_cards'
|
|
232
|
+
| 'paynow'
|
|
233
|
+
| 'bizum'
|
|
234
|
+
| 'promptpay';
|
|
232
235
|
reference_id?: string;
|
|
233
236
|
/**
|
|
234
237
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -324,7 +327,10 @@ declare module 'chargebee' {
|
|
|
324
327
|
| 'alipay_hk'
|
|
325
328
|
| 'paypay'
|
|
326
329
|
| 'gcash'
|
|
327
|
-
| 'south_korean_cards'
|
|
330
|
+
| 'south_korean_cards'
|
|
331
|
+
| 'paynow'
|
|
332
|
+
| 'bizum'
|
|
333
|
+
| 'promptpay';
|
|
328
334
|
reference_id?: string;
|
|
329
335
|
/**
|
|
330
336
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -15,7 +15,6 @@ declare module 'chargebee' {
|
|
|
15
15
|
voided_amount: string;
|
|
16
16
|
origin_grant_block_id?: string;
|
|
17
17
|
status: StatusEnum;
|
|
18
|
-
metadata?: string;
|
|
19
18
|
grant_source:
|
|
20
19
|
| 'subscription_created'
|
|
21
20
|
| 'subscription_changed'
|
|
@@ -26,6 +25,7 @@ declare module 'chargebee' {
|
|
|
26
25
|
account_type?: 'provisioned' | 'overdraft';
|
|
27
26
|
unit_id?: string;
|
|
28
27
|
unit_type?: 'credit_unit';
|
|
28
|
+
metadata?: any;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
export namespace GrantBlock {
|
|
@@ -43,6 +43,7 @@ declare module 'chargebee' {
|
|
|
43
43
|
resource_version?: number;
|
|
44
44
|
updated_at?: number;
|
|
45
45
|
line_items_next_offset?: string;
|
|
46
|
+
exchange_rates?: Invoice.ExchangeRate[];
|
|
46
47
|
first_invoice?: boolean;
|
|
47
48
|
new_sales_amount?: number;
|
|
48
49
|
has_advance_charges?: boolean;
|
|
@@ -499,6 +500,10 @@ declare module 'chargebee' {
|
|
|
499
500
|
invoice: Invoice;
|
|
500
501
|
}
|
|
501
502
|
|
|
503
|
+
export interface ExchangeRate {
|
|
504
|
+
currency_code: string;
|
|
505
|
+
rate: number;
|
|
506
|
+
}
|
|
502
507
|
export interface LineItem {
|
|
503
508
|
id?: string;
|
|
504
509
|
subscription_id?: string;
|
|
@@ -547,6 +552,11 @@ declare module 'chargebee' {
|
|
|
547
552
|
| 'tax_not_configured_external_provider';
|
|
548
553
|
entity_id?: string;
|
|
549
554
|
customer_id?: string;
|
|
555
|
+
proration_mode?:
|
|
556
|
+
| 'reset'
|
|
557
|
+
| 'delta'
|
|
558
|
+
| 'service_period_revision'
|
|
559
|
+
| 'adjusted_term';
|
|
550
560
|
}
|
|
551
561
|
export interface LineItemTier {
|
|
552
562
|
line_item_id?: string;
|
|
@@ -688,7 +698,11 @@ declare module 'chargebee' {
|
|
|
688
698
|
export interface DunningAttempt {
|
|
689
699
|
attempt: number;
|
|
690
700
|
transaction_id?: string;
|
|
691
|
-
dunning_type:
|
|
701
|
+
dunning_type:
|
|
702
|
+
| 'auto_collect'
|
|
703
|
+
| 'offline'
|
|
704
|
+
| 'direct_debit'
|
|
705
|
+
| 'real_time_payments';
|
|
692
706
|
created_at?: number;
|
|
693
707
|
txn_status?:
|
|
694
708
|
| 'in_progress'
|
|
@@ -911,6 +925,7 @@ declare module 'chargebee' {
|
|
|
911
925
|
auto_collection?: AutoCollectionEnum;
|
|
912
926
|
net_term_days?: number;
|
|
913
927
|
invoice_date?: number;
|
|
928
|
+
create_pending_invoice?: boolean;
|
|
914
929
|
token_id?: string;
|
|
915
930
|
replace_primary_payment_source?: boolean;
|
|
916
931
|
retain_payment_source?: boolean;
|
|
@@ -1022,6 +1037,7 @@ declare module 'chargebee' {
|
|
|
1022
1037
|
net_term_days?: number;
|
|
1023
1038
|
has_advance_charges?: boolean;
|
|
1024
1039
|
use_for_proration?: boolean;
|
|
1040
|
+
paid_at?: number;
|
|
1025
1041
|
credit_note?: CreditNoteImportInvoiceInputParam;
|
|
1026
1042
|
billing_address?: BillingAddressImportInvoiceInputParam;
|
|
1027
1043
|
shipping_address?: ShippingAddressImportInvoiceInputParam;
|
|
@@ -1294,7 +1310,10 @@ declare module 'chargebee' {
|
|
|
1294
1310
|
| 'alipay_hk'
|
|
1295
1311
|
| 'paypay'
|
|
1296
1312
|
| 'gcash'
|
|
1297
|
-
| 'south_korean_cards'
|
|
1313
|
+
| 'south_korean_cards'
|
|
1314
|
+
| 'paynow'
|
|
1315
|
+
| 'bizum'
|
|
1316
|
+
| 'promptpay';
|
|
1298
1317
|
reference_id?: string;
|
|
1299
1318
|
/**
|
|
1300
1319
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -1465,7 +1484,10 @@ declare module 'chargebee' {
|
|
|
1465
1484
|
| 'alipay_hk'
|
|
1466
1485
|
| 'paypay'
|
|
1467
1486
|
| 'gcash'
|
|
1468
|
-
| 'south_korean_cards'
|
|
1487
|
+
| 'south_korean_cards'
|
|
1488
|
+
| 'paynow'
|
|
1489
|
+
| 'bizum'
|
|
1490
|
+
| 'promptpay';
|
|
1469
1491
|
reference_id?: string;
|
|
1470
1492
|
/**
|
|
1471
1493
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -1505,6 +1527,7 @@ declare module 'chargebee' {
|
|
|
1505
1527
|
}
|
|
1506
1528
|
|
|
1507
1529
|
export interface ChargesCreateForChargeItemsAndChargesInputParam {
|
|
1530
|
+
entity_description?: string;
|
|
1508
1531
|
amount?: number;
|
|
1509
1532
|
amount_in_decimal?: string;
|
|
1510
1533
|
description?: string;
|
|
@@ -1545,6 +1568,8 @@ declare module 'chargebee' {
|
|
|
1545
1568
|
unit_price_in_decimal?: string;
|
|
1546
1569
|
date_from?: number;
|
|
1547
1570
|
date_to?: number;
|
|
1571
|
+
description?: string;
|
|
1572
|
+
entity_description?: string;
|
|
1548
1573
|
}
|
|
1549
1574
|
export interface TaxProvidersFieldsCreateForChargeItemsAndChargesInputParam {
|
|
1550
1575
|
provider_name?: string;
|
|
@@ -1741,6 +1766,11 @@ declare module 'chargebee' {
|
|
|
1741
1766
|
tax9_amount?: number;
|
|
1742
1767
|
tax10_name?: string;
|
|
1743
1768
|
tax10_amount?: number;
|
|
1769
|
+
proration_mode?:
|
|
1770
|
+
| 'reset'
|
|
1771
|
+
| 'delta'
|
|
1772
|
+
| 'service_period_revision'
|
|
1773
|
+
| 'adjusted_term';
|
|
1744
1774
|
created_at?: number;
|
|
1745
1775
|
}
|
|
1746
1776
|
export interface TransactionsApplyPaymentsInputParam {
|
|
@@ -72,6 +72,11 @@ declare module 'chargebee' {
|
|
|
72
72
|
| 'tax_not_configured_external_provider';
|
|
73
73
|
entity_id?: string;
|
|
74
74
|
customer_id?: string;
|
|
75
|
+
proration_mode?:
|
|
76
|
+
| 'reset'
|
|
77
|
+
| 'delta'
|
|
78
|
+
| 'service_period_revision'
|
|
79
|
+
| 'adjusted_term';
|
|
75
80
|
}
|
|
76
81
|
export interface LineItemTier {
|
|
77
82
|
line_item_id?: string;
|
|
@@ -15,8 +15,6 @@ declare module 'chargebee' {
|
|
|
15
15
|
| 'rollover'
|
|
16
16
|
| 'adjustment';
|
|
17
17
|
amount: string;
|
|
18
|
-
start_balance: string;
|
|
19
|
-
end_balance: string;
|
|
20
18
|
provisioned_start_balance: string;
|
|
21
19
|
provisioned_end_balance: string;
|
|
22
20
|
overdraft_start_balance: string;
|
|
@@ -24,12 +22,12 @@ declare module 'chargebee' {
|
|
|
24
22
|
parent_ledger_operation_id?: string;
|
|
25
23
|
ledger_operation_timestamp?: number;
|
|
26
24
|
auto_release_timestamp?: number;
|
|
27
|
-
metadata?: string;
|
|
28
25
|
created_at?: number;
|
|
29
26
|
modified_at?: number;
|
|
30
27
|
subscription_id?: string;
|
|
31
28
|
unit_id?: string;
|
|
32
29
|
unit_type?: 'credit_unit';
|
|
30
|
+
metadata?: any;
|
|
33
31
|
}
|
|
34
32
|
|
|
35
33
|
export namespace LedgerOperation {
|