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
|
@@ -8,7 +8,6 @@ declare module 'chargebee' {
|
|
|
8
8
|
advance_invoice_schedule: AdvanceInvoiceSchedule;
|
|
9
9
|
alert: Alert;
|
|
10
10
|
alert_status: AlertStatus;
|
|
11
|
-
applied_business_rule: AppliedBusinessRule;
|
|
12
11
|
applied_rule: AppliedRule;
|
|
13
12
|
apply_rule: ApplyRule;
|
|
14
13
|
async_response: AsyncResponse;
|
|
@@ -16,6 +15,8 @@ declare module 'chargebee' {
|
|
|
16
15
|
attached_item: AttachedItem;
|
|
17
16
|
attribute: Attribute;
|
|
18
17
|
billing_configuration: BillingConfiguration;
|
|
18
|
+
billing_line_item: BillingLineItem;
|
|
19
|
+
billing_metadata: BillingMetadata;
|
|
19
20
|
brand: Brand;
|
|
20
21
|
business_entity: BusinessEntity;
|
|
21
22
|
business_entity_transfer: BusinessEntityTransfer;
|
|
@@ -23,6 +24,10 @@ declare module 'chargebee' {
|
|
|
23
24
|
business_ruleset: BusinessRuleset;
|
|
24
25
|
business_ruleset_rule: BusinessRulesetRule;
|
|
25
26
|
card: Card;
|
|
27
|
+
citation: Citation;
|
|
28
|
+
collections_dispute: CollectionsDispute;
|
|
29
|
+
collections_payment_promise: CollectionsPaymentPromise;
|
|
30
|
+
collections_reminder_sequence: CollectionsReminderSequence;
|
|
26
31
|
column_definition: ColumnDefinition;
|
|
27
32
|
comment: Comment;
|
|
28
33
|
configuration: Configuration;
|
|
@@ -36,6 +41,7 @@ declare module 'chargebee' {
|
|
|
36
41
|
credit_note_estimate: CreditNoteEstimate;
|
|
37
42
|
credit_unit: CreditUnit;
|
|
38
43
|
currency: Currency;
|
|
44
|
+
custom_data: CustomData;
|
|
39
45
|
custom_data_schema: CustomDataSchema;
|
|
40
46
|
customer: Customer;
|
|
41
47
|
customer_entitlement: CustomerEntitlement;
|
|
@@ -43,19 +49,29 @@ declare module 'chargebee' {
|
|
|
43
49
|
discount: Discount;
|
|
44
50
|
dispute: Dispute;
|
|
45
51
|
download: Download;
|
|
52
|
+
draft_estimate: DraftEstimate;
|
|
53
|
+
draft_request: DraftRequest;
|
|
46
54
|
einvoice: Einvoice;
|
|
55
|
+
email_attachment: EmailAttachment;
|
|
56
|
+
email_conversation: EmailConversation;
|
|
47
57
|
email_log: EmailLog;
|
|
58
|
+
email_message: EmailMessage;
|
|
48
59
|
entitlement: Entitlement;
|
|
49
60
|
entitlement_override: EntitlementOverride;
|
|
50
61
|
estimate: Estimate;
|
|
51
62
|
event: Event;
|
|
63
|
+
execution: Execution;
|
|
52
64
|
export: Export;
|
|
53
65
|
feature: Feature;
|
|
54
66
|
filter_condition: FilterCondition;
|
|
55
67
|
gateway_error_detail: GatewayErrorDetail;
|
|
56
68
|
gateway_payment_method_token: GatewayPaymentMethodToken;
|
|
69
|
+
gateway_request_log: GatewayRequestLog;
|
|
70
|
+
gateway_webhook_log: GatewayWebhookLog;
|
|
57
71
|
gift: Gift;
|
|
58
72
|
grant_block: GrantBlock;
|
|
73
|
+
group_by_attribute: GroupByAttribute;
|
|
74
|
+
group_by_recommendation: GroupByRecommendation;
|
|
59
75
|
hierarchy: Hierarchy;
|
|
60
76
|
hosted_page: HostedPage;
|
|
61
77
|
impacted_customer: ImpactedCustomer;
|
|
@@ -87,6 +103,7 @@ declare module 'chargebee' {
|
|
|
87
103
|
omnichannel_subscription_item_scheduled_change: OmnichannelSubscriptionItemScheduledChange;
|
|
88
104
|
omnichannel_transaction: OmnichannelTransaction;
|
|
89
105
|
order: Order;
|
|
106
|
+
organization_detail: OrganizationDetail;
|
|
90
107
|
payment_intent: PaymentIntent;
|
|
91
108
|
payment_reference_number: PaymentReferenceNumber;
|
|
92
109
|
payment_schedule: PaymentSchedule;
|
|
@@ -97,8 +114,11 @@ declare module 'chargebee' {
|
|
|
97
114
|
personalized_offer: PersonalizedOffer;
|
|
98
115
|
plan: Plan;
|
|
99
116
|
portal_session: PortalSession;
|
|
117
|
+
preference_variant: PreferenceVariant;
|
|
118
|
+
price_ramp: PriceRamp;
|
|
100
119
|
price_variant: PriceVariant;
|
|
101
120
|
pricing_page_session: PricingPageSession;
|
|
121
|
+
private_note: PrivateNote;
|
|
102
122
|
promotional_credit: PromotionalCredit;
|
|
103
123
|
promotional_grant: PromotionalGrant;
|
|
104
124
|
purchase: Purchase;
|
|
@@ -110,8 +130,10 @@ declare module 'chargebee' {
|
|
|
110
130
|
quoted_ramp: QuotedRamp;
|
|
111
131
|
quoted_subscription: QuotedSubscription;
|
|
112
132
|
ramp: Ramp;
|
|
133
|
+
ramp_interval: RampInterval;
|
|
113
134
|
recorded_purchase: RecordedPurchase;
|
|
114
135
|
resource_migration: ResourceMigration;
|
|
136
|
+
retry_segment: RetrySegment;
|
|
115
137
|
rule: Rule;
|
|
116
138
|
site_migration_detail: SiteMigrationDetail;
|
|
117
139
|
subscription: Subscription;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
3
|
+
|
|
4
|
+
declare module 'chargebee' {
|
|
5
|
+
export interface CustomData {
|
|
6
|
+
entity_type: EntityTypeEnum;
|
|
7
|
+
id: string;
|
|
8
|
+
schema_id: string;
|
|
9
|
+
schema_values: string;
|
|
10
|
+
created_at: number;
|
|
11
|
+
modified_at: number;
|
|
12
|
+
updated_at?: number;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
3
|
+
|
|
4
|
+
declare module 'chargebee' {
|
|
5
|
+
export interface DraftEstimate {
|
|
6
|
+
status: 'success' | 'failed';
|
|
7
|
+
http_status?: number;
|
|
8
|
+
created_at: number;
|
|
9
|
+
result?: any;
|
|
10
|
+
error_detail?: any;
|
|
11
|
+
revision_version?: number;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
3
|
+
|
|
4
|
+
declare module 'chargebee' {
|
|
5
|
+
export interface DraftRequest {
|
|
6
|
+
id: string;
|
|
7
|
+
path_param?: string;
|
|
8
|
+
request_uri?: string;
|
|
9
|
+
operation_id: string;
|
|
10
|
+
status: 'open' | 'executed';
|
|
11
|
+
executed_at?: number;
|
|
12
|
+
created_at: number;
|
|
13
|
+
resource_version?: number;
|
|
14
|
+
updated_at: number;
|
|
15
|
+
current_revision?: DraftRequest.DraftRevision;
|
|
16
|
+
validations?: DraftRequest.Validation[];
|
|
17
|
+
has_comments?: boolean;
|
|
18
|
+
has_citations?: boolean;
|
|
19
|
+
executions?: DraftRequest.Execution[];
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export namespace DraftRequest {
|
|
23
|
+
export interface DraftRevision {
|
|
24
|
+
version: number;
|
|
25
|
+
created_at: number;
|
|
26
|
+
payload?: object;
|
|
27
|
+
}
|
|
28
|
+
export interface Validation {
|
|
29
|
+
category?: string;
|
|
30
|
+
level?: string;
|
|
31
|
+
message?: string;
|
|
32
|
+
param_name?: string;
|
|
33
|
+
type?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface Execution {
|
|
36
|
+
status: 'success' | 'failed';
|
|
37
|
+
created_at: number;
|
|
38
|
+
result?: object;
|
|
39
|
+
error_detail?: object;
|
|
40
|
+
revision_version?: number;
|
|
41
|
+
}
|
|
42
|
+
// REQUEST PARAMS
|
|
43
|
+
//---------------
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
3
|
+
|
|
4
|
+
declare module 'chargebee' {
|
|
5
|
+
export interface EmailAttachment {
|
|
6
|
+
id: string;
|
|
7
|
+
email_message_id?: string;
|
|
8
|
+
file_name?: string;
|
|
9
|
+
content_type?: string;
|
|
10
|
+
size_bytes?: number;
|
|
11
|
+
content_disposition?: string;
|
|
12
|
+
created_at: number;
|
|
13
|
+
updated_at: number;
|
|
14
|
+
resource_version?: number;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
3
|
+
|
|
4
|
+
declare module 'chargebee' {
|
|
5
|
+
export interface EmailConversation {
|
|
6
|
+
id: string;
|
|
7
|
+
customer_id?: string;
|
|
8
|
+
mailbox_id?: string;
|
|
9
|
+
subject?: string;
|
|
10
|
+
last_message_preview?: string;
|
|
11
|
+
message_count: number;
|
|
12
|
+
status?: string;
|
|
13
|
+
last_message_at?: number;
|
|
14
|
+
created_at: number;
|
|
15
|
+
updated_at: number;
|
|
16
|
+
resource_version?: number;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
3
|
+
|
|
4
|
+
declare module 'chargebee' {
|
|
5
|
+
export interface EmailMessage {
|
|
6
|
+
id: string;
|
|
7
|
+
email_conversation_id?: string;
|
|
8
|
+
message_type?: string;
|
|
9
|
+
author_type?: 'contact' | 'site_user' | 'agent' | 'other';
|
|
10
|
+
send_status?: 'pending' | 'sent' | 'failed';
|
|
11
|
+
content_html?: string;
|
|
12
|
+
content_text?: string;
|
|
13
|
+
created_at: number;
|
|
14
|
+
updated_at: number;
|
|
15
|
+
resource_version?: number;
|
|
16
|
+
mailbox_id?: string;
|
|
17
|
+
author_id?: string;
|
|
18
|
+
author_name?: string;
|
|
19
|
+
from_email?: string;
|
|
20
|
+
to_emails?: string[];
|
|
21
|
+
cc_emails?: string[];
|
|
22
|
+
attachments?: EmailMessage.Attachment[];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export namespace EmailMessage {
|
|
26
|
+
export interface Attachment {
|
|
27
|
+
id: string;
|
|
28
|
+
email_message_id?: string;
|
|
29
|
+
file_name?: string;
|
|
30
|
+
content_type?: string;
|
|
31
|
+
size_bytes?: number;
|
|
32
|
+
content_disposition?: string;
|
|
33
|
+
created_at: number;
|
|
34
|
+
updated_at: number;
|
|
35
|
+
resource_version?: number;
|
|
36
|
+
}
|
|
37
|
+
// REQUEST PARAMS
|
|
38
|
+
//---------------
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -635,6 +635,7 @@ declare module 'chargebee' {
|
|
|
635
635
|
included_in_mrr?: boolean;
|
|
636
636
|
item_price_id?: string;
|
|
637
637
|
quantity?: number;
|
|
638
|
+
description?: string;
|
|
638
639
|
}
|
|
639
640
|
export interface ItemTiersCreateSubItemEstimateInputParam {
|
|
640
641
|
item_price_id?: string;
|
|
@@ -778,6 +779,7 @@ declare module 'chargebee' {
|
|
|
778
779
|
included_in_mrr?: boolean;
|
|
779
780
|
item_price_id?: string;
|
|
780
781
|
quantity?: number;
|
|
782
|
+
description?: string;
|
|
781
783
|
}
|
|
782
784
|
export interface ItemTiersCreateSubItemForCustomerEstimateInputParam {
|
|
783
785
|
item_price_id?: string;
|
|
@@ -944,6 +946,7 @@ declare module 'chargebee' {
|
|
|
944
946
|
quantity?: number;
|
|
945
947
|
operation_type: OperationTypeEnum;
|
|
946
948
|
id?: string;
|
|
949
|
+
description?: string;
|
|
947
950
|
}
|
|
948
951
|
export interface ItemTiersUpdateSubscriptionForItemsInputParam {
|
|
949
952
|
item_price_id?: string;
|
|
@@ -30,6 +30,8 @@ declare module 'chargebee' {
|
|
|
30
30
|
UnbilledChargesDeletedContent &
|
|
31
31
|
CouponUpdatedContent &
|
|
32
32
|
GrantBlocksCreatedContent &
|
|
33
|
+
ChargebackLostContent &
|
|
34
|
+
PriceRampUpdatedContent &
|
|
33
35
|
OmnichannelSubscriptionItemReactivatedContent &
|
|
34
36
|
OmnichannelSubscriptionItemRenewedContent &
|
|
35
37
|
UnbilledChargesCreatedContent &
|
|
@@ -48,7 +50,6 @@ declare module 'chargebee' {
|
|
|
48
50
|
SubscriptionShippingAddressUpdatedContent &
|
|
49
51
|
VoucherCreateFailedContent &
|
|
50
52
|
GiftClaimedContent &
|
|
51
|
-
BusinessRulesAppliedContent &
|
|
52
53
|
CustomerDeletedContent &
|
|
53
54
|
RefundInitiatedContent &
|
|
54
55
|
InvoiceGeneratedWithBackdatingContent &
|
|
@@ -74,6 +75,7 @@ declare module 'chargebee' {
|
|
|
74
75
|
ContractTermTerminatedContent &
|
|
75
76
|
ItemFamilyUpdatedContent &
|
|
76
77
|
OrderCreatedContent &
|
|
78
|
+
RefundFailedContent &
|
|
77
79
|
PriceVariantDeletedContent &
|
|
78
80
|
AlertStatusChangedContent &
|
|
79
81
|
SubscriptionMovementFailedContent &
|
|
@@ -82,6 +84,7 @@ declare module 'chargebee' {
|
|
|
82
84
|
SubscriptionAdvanceInvoiceScheduleUpdatedContent &
|
|
83
85
|
ItemDeletedContent &
|
|
84
86
|
SubscriptionRampDraftedContent &
|
|
87
|
+
ChargebackInitiatedContent &
|
|
85
88
|
BusinessRuleCreatedContent &
|
|
86
89
|
VaultTokenUpdatedContent &
|
|
87
90
|
DunningUpdatedContent &
|
|
@@ -94,10 +97,12 @@ declare module 'chargebee' {
|
|
|
94
97
|
SubscriptionCancellationScheduledContent &
|
|
95
98
|
SubscriptionRenewedContent &
|
|
96
99
|
FeatureUpdatedContent &
|
|
100
|
+
CollectionsPaymentPromiseFulfilledContent &
|
|
97
101
|
FeatureDeletedContent &
|
|
98
102
|
ItemFamilyCreatedContent &
|
|
99
103
|
OmnichannelSubscriptionItemScheduledChangeRemovedContent &
|
|
100
104
|
OmnichannelSubscriptionItemResumedContent &
|
|
105
|
+
CollectionsDisputeResolvedContent &
|
|
101
106
|
PurchaseCreatedContent &
|
|
102
107
|
EntitlementOverridesUpdatedContent &
|
|
103
108
|
ItemFamilyDeletedContent &
|
|
@@ -109,6 +114,7 @@ declare module 'chargebee' {
|
|
|
109
114
|
OmnichannelSubscriptionItemDowngradedContent &
|
|
110
115
|
BusinessRulesetDeactivatedContent &
|
|
111
116
|
PriceVariantUpdatedContent &
|
|
117
|
+
CollectionsDisputeUpdatedContent &
|
|
112
118
|
PromotionalCreditsDeductedContent &
|
|
113
119
|
SubscriptionRampAppliedContent &
|
|
114
120
|
BusinessRulesetDeletedContent &
|
|
@@ -122,8 +128,10 @@ declare module 'chargebee' {
|
|
|
122
128
|
ItemCreatedContent &
|
|
123
129
|
BusinessRulesetCreatedContent &
|
|
124
130
|
TransactionUpdatedContent &
|
|
131
|
+
CollectionsPaymentPromiseUpdatedContent &
|
|
125
132
|
MrrUpdatedContent &
|
|
126
133
|
UnbilledChargesInvoicedContent &
|
|
134
|
+
ChargebackWonContent &
|
|
127
135
|
ItemPriceUpdatedContent &
|
|
128
136
|
CouponCodesUpdatedContent &
|
|
129
137
|
VirtualBankAccountUpdatedContent &
|
|
@@ -136,6 +144,8 @@ declare module 'chargebee' {
|
|
|
136
144
|
PaymentSchedulesUpdatedContent &
|
|
137
145
|
OmnichannelSubscriptionItemExpiredContent &
|
|
138
146
|
CardUpdatedContent &
|
|
147
|
+
PriceRampCreatedContent &
|
|
148
|
+
CollectionsReminderSequenceCreatedContent &
|
|
139
149
|
CustomerCreatedContent &
|
|
140
150
|
SubscriptionRenewalReminderContent &
|
|
141
151
|
OmnichannelSubscriptionItemMrrUpdatedContent &
|
|
@@ -144,20 +154,25 @@ declare module 'chargebee' {
|
|
|
144
154
|
OmnichannelSubscriptionItemCancellationScheduledContent &
|
|
145
155
|
OmnichannelSubscriptionItemGracePeriodExpiredContent &
|
|
146
156
|
CouponCodesAddedContent &
|
|
157
|
+
EmailMessageReceivedContent &
|
|
147
158
|
GiftCancelledContent &
|
|
148
159
|
OrderCancelledContent &
|
|
149
160
|
CouponDeletedContent &
|
|
150
161
|
SubscriptionScheduledChangesRemovedContent &
|
|
151
162
|
PendingInvoiceCreatedContent &
|
|
163
|
+
CollectionsPaymentPromiseBrokenContent &
|
|
152
164
|
EntitlementOverridesAutoRemovedContent &
|
|
165
|
+
PriceRampDeletedContent &
|
|
153
166
|
BusinessRulesetActivatedContent &
|
|
154
167
|
OmnichannelSubscriptionItemUpgradedContent &
|
|
155
168
|
SubscriptionBusinessEntityChangedContent &
|
|
156
169
|
OmnichannelOneTimeOrderCreatedContent &
|
|
170
|
+
CollectionsPaymentPromiseCreatedContent &
|
|
157
171
|
PaymentSourceDeletedContent &
|
|
158
172
|
OmnichannelSubscriptionItemCancelledContent &
|
|
159
173
|
QuoteDeletedContent &
|
|
160
174
|
InvoiceUpdatedContent &
|
|
175
|
+
PrivateNoteAddedContent &
|
|
161
176
|
SubscriptionAdvanceInvoiceScheduleRemovedContent &
|
|
162
177
|
CardDeletedContent &
|
|
163
178
|
OrderReadyToShipContent &
|
|
@@ -173,6 +188,7 @@ declare module 'chargebee' {
|
|
|
173
188
|
CardAddedContent &
|
|
174
189
|
CouponCreatedContent &
|
|
175
190
|
RuleDeletedContent &
|
|
191
|
+
CollectionsDisputeCreatedContent &
|
|
176
192
|
ItemPriceEntitlementsUpdatedContent &
|
|
177
193
|
ItemPriceDeletedContent &
|
|
178
194
|
VirtualBankAccountDeletedContent &
|
|
@@ -184,6 +200,7 @@ declare module 'chargebee' {
|
|
|
184
200
|
PaymentSourceAddedContent &
|
|
185
201
|
SubscriptionMovedInContent &
|
|
186
202
|
LedgerUpdatedContent &
|
|
203
|
+
CollectionsPaymentPromiseCancelledContent &
|
|
187
204
|
ItemPriceCreatedContent &
|
|
188
205
|
SubscriptionScheduledCancellationRemovedContent &
|
|
189
206
|
PaymentRefundedContent &
|
|
@@ -200,10 +217,12 @@ declare module 'chargebee' {
|
|
|
200
217
|
SalesOrderCreatedContent &
|
|
201
218
|
CustomerChangedContent &
|
|
202
219
|
SubscriptionStartedContent &
|
|
220
|
+
OrganizationDetailsUpdatedContent &
|
|
203
221
|
SubscriptionActivatedContent &
|
|
204
222
|
PaymentSourceExpiringContent &
|
|
205
223
|
SubscriptionReactivatedContent &
|
|
206
224
|
OrderUpdatedContent &
|
|
225
|
+
CollectionsDisputeWithdrawnContent &
|
|
207
226
|
SubscriptionScheduledPauseRemovedContent &
|
|
208
227
|
SubscriptionCancellationReminderContent &
|
|
209
228
|
SubscriptionCreatedWithBackdatingContent &
|
|
@@ -215,6 +234,7 @@ declare module 'chargebee' {
|
|
|
215
234
|
OmnichannelSubscriptionItemGracePeriodStartedContent &
|
|
216
235
|
CardExpiryReminderContent &
|
|
217
236
|
TokenCreatedContent &
|
|
237
|
+
CollectionsReminderSequencePausedContent &
|
|
218
238
|
PaymentSourceBusinessEntityChangedContent &
|
|
219
239
|
PromotionalCreditsAddedContent &
|
|
220
240
|
SubscriptionRampUpdatedContent &
|
|
@@ -232,15 +252,18 @@ declare module 'chargebee' {
|
|
|
232
252
|
AttachedItemDeletedContent &
|
|
233
253
|
OmnichannelSubscriptionItemScheduledCancellationRemovedContent &
|
|
234
254
|
ItemUpdatedContent &
|
|
255
|
+
CollectionsReminderSequenceResumedContent &
|
|
235
256
|
CouponSetCreatedContent &
|
|
236
257
|
PaymentIntentUpdatedContent &
|
|
237
258
|
OrderResentContent &
|
|
238
259
|
OmnichannelSubscriptionCreatedContent &
|
|
239
260
|
TaxWithheldRecordedContent &
|
|
240
261
|
PriceVariantCreatedContent &
|
|
262
|
+
OrganizationDetailsCreatedContent &
|
|
241
263
|
DifferentialPriceDeletedContent &
|
|
242
264
|
BusinessRuleActivatedContent &
|
|
243
265
|
SubscriptionItemsRenewedContent &
|
|
266
|
+
PaymentSchedulesCancelledContent &
|
|
244
267
|
RuleCreatedContent &
|
|
245
268
|
ContractTermCancelledContent &
|
|
246
269
|
ContractTermRenewedContent &
|
|
@@ -257,6 +280,7 @@ declare module 'chargebee' {
|
|
|
257
280
|
BusinessEntityDeletedContent &
|
|
258
281
|
GrantBlocksUpdatedContent &
|
|
259
282
|
AuthorizationVoidedContent &
|
|
283
|
+
CollectionsReminderSequenceCompletedContent &
|
|
260
284
|
SubscriptionRampDeletedContent &
|
|
261
285
|
PlanDeletedContent &
|
|
262
286
|
AddonDeletedContent &
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
3
|
+
|
|
4
|
+
declare module 'chargebee' {
|
|
5
|
+
export interface Execution {
|
|
6
|
+
status: 'success' | 'failed';
|
|
7
|
+
created_at: number;
|
|
8
|
+
result?: any;
|
|
9
|
+
error_detail?: any;
|
|
10
|
+
revision_version?: number;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -5,10 +5,10 @@ declare module 'chargebee' {
|
|
|
5
5
|
export interface GatewayPaymentMethodToken {
|
|
6
6
|
id: string;
|
|
7
7
|
gateway_account_id: string;
|
|
8
|
-
|
|
8
|
+
gateway: GatewayEnum;
|
|
9
9
|
gateway_customer_id?: string;
|
|
10
10
|
gateway_token: string;
|
|
11
|
-
status: '
|
|
11
|
+
status: 'valid' | 'invalid' | 'pending_verification';
|
|
12
12
|
created_at: number;
|
|
13
13
|
updated_at?: number;
|
|
14
14
|
}
|
|
@@ -0,0 +1,82 @@
|
|
|
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 GatewayRequestLog {
|
|
6
|
+
log_id?: string;
|
|
7
|
+
url?: string;
|
|
8
|
+
status_code?: string;
|
|
9
|
+
method?: string;
|
|
10
|
+
request_body?: string;
|
|
11
|
+
response_body?: string;
|
|
12
|
+
request_headers?: string;
|
|
13
|
+
response_headers?: string;
|
|
14
|
+
gateway?: string;
|
|
15
|
+
customer_handle?: string;
|
|
16
|
+
invoice_handle?: string;
|
|
17
|
+
transaction_handle?: string;
|
|
18
|
+
payment_method_handle?: string;
|
|
19
|
+
gateway_credential_handle?: string;
|
|
20
|
+
payment_attempt_handle?: string;
|
|
21
|
+
payment_intent_handle?: string;
|
|
22
|
+
payment_method_name?: string;
|
|
23
|
+
operation_name?: string;
|
|
24
|
+
operation_type?: string;
|
|
25
|
+
action_type?: string;
|
|
26
|
+
source?: string;
|
|
27
|
+
trace_id_hash?: string;
|
|
28
|
+
invocation_time?: number;
|
|
29
|
+
response_received_at?: number;
|
|
30
|
+
response_time?: number;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export namespace GatewayRequestLog {
|
|
34
|
+
export class GatewayRequestLogResource {
|
|
35
|
+
list(
|
|
36
|
+
input?: ListInputParam,
|
|
37
|
+
headers?: ChargebeeRequestHeader,
|
|
38
|
+
): Promise<ChargebeeResponse<ListResponse>>;
|
|
39
|
+
|
|
40
|
+
retrieve(
|
|
41
|
+
gateway_request_log_log_id: string,
|
|
42
|
+
headers?: ChargebeeRequestHeader,
|
|
43
|
+
): Promise<ChargebeeResponse<RetrieveResponse>>;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface ListResponse {
|
|
47
|
+
list: { gateway_request_log: GatewayRequestLog }[];
|
|
48
|
+
next_offset?: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface RetrieveResponse {
|
|
52
|
+
gateway_request_log: GatewayRequestLog;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// REQUEST PARAMS
|
|
56
|
+
//---------------
|
|
57
|
+
|
|
58
|
+
export interface ListInputParam {
|
|
59
|
+
limit?: number;
|
|
60
|
+
offset?: string;
|
|
61
|
+
log_id?: filter.String;
|
|
62
|
+
gateway?: filter.String;
|
|
63
|
+
status_code?: filter.String;
|
|
64
|
+
method?: filter.String;
|
|
65
|
+
url?: filter.String;
|
|
66
|
+
customer_handle?: filter.String;
|
|
67
|
+
invoice_handle?: filter.String;
|
|
68
|
+
transaction_handle?: filter.String;
|
|
69
|
+
payment_method_handle?: filter.String;
|
|
70
|
+
gateway_credential_handle?: filter.String;
|
|
71
|
+
payment_attempt_handle?: filter.String;
|
|
72
|
+
payment_intent_handle?: filter.String;
|
|
73
|
+
operation_name?: filter.String;
|
|
74
|
+
operation_type?: filter.String;
|
|
75
|
+
source?: filter.String;
|
|
76
|
+
invocation_time?: filter.Timestamp;
|
|
77
|
+
response_received_at?: filter.Timestamp;
|
|
78
|
+
'sort_by[asc]'?: string;
|
|
79
|
+
'sort_by[desc]'?: string;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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 GatewayWebhookLog {
|
|
6
|
+
webhook_id?: string;
|
|
7
|
+
url?: string;
|
|
8
|
+
method?: string;
|
|
9
|
+
status_code?: string;
|
|
10
|
+
gateway?: string;
|
|
11
|
+
id_at_gateway?: string;
|
|
12
|
+
customer_handle?: string;
|
|
13
|
+
invoice_handle?: string;
|
|
14
|
+
transaction_handle?: string;
|
|
15
|
+
payment_method_handle?: string;
|
|
16
|
+
gateway_credential_handle?: string;
|
|
17
|
+
payment_attempt_handle?: string;
|
|
18
|
+
payment_intent_handle?: string;
|
|
19
|
+
payment_method_name?: string;
|
|
20
|
+
request_body?: string;
|
|
21
|
+
response_body?: string;
|
|
22
|
+
request_headers?: string;
|
|
23
|
+
response_headers?: string;
|
|
24
|
+
received_at?: number;
|
|
25
|
+
response_time?: number;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export namespace GatewayWebhookLog {
|
|
29
|
+
export class GatewayWebhookLogResource {
|
|
30
|
+
list(
|
|
31
|
+
input?: ListInputParam,
|
|
32
|
+
headers?: ChargebeeRequestHeader,
|
|
33
|
+
): Promise<ChargebeeResponse<ListResponse>>;
|
|
34
|
+
|
|
35
|
+
retrieve(
|
|
36
|
+
gateway_webhook_log_webhook_id: string,
|
|
37
|
+
headers?: ChargebeeRequestHeader,
|
|
38
|
+
): Promise<ChargebeeResponse<RetrieveResponse>>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface ListResponse {
|
|
42
|
+
list: { gateway_webhook_log: GatewayWebhookLog }[];
|
|
43
|
+
next_offset?: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface RetrieveResponse {
|
|
47
|
+
gateway_webhook_log: GatewayWebhookLog;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// REQUEST PARAMS
|
|
51
|
+
//---------------
|
|
52
|
+
|
|
53
|
+
export interface ListInputParam {
|
|
54
|
+
limit?: number;
|
|
55
|
+
offset?: string;
|
|
56
|
+
webhook_id?: filter.String;
|
|
57
|
+
gateway?: filter.String;
|
|
58
|
+
status_code?: filter.String;
|
|
59
|
+
method?: filter.String;
|
|
60
|
+
url?: filter.String;
|
|
61
|
+
id_at_gateway?: filter.String;
|
|
62
|
+
customer_handle?: filter.String;
|
|
63
|
+
invoice_handle?: filter.String;
|
|
64
|
+
transaction_handle?: filter.String;
|
|
65
|
+
payment_method_handle?: filter.String;
|
|
66
|
+
gateway_credential_handle?: filter.String;
|
|
67
|
+
payment_attempt_handle?: filter.String;
|
|
68
|
+
payment_intent_handle?: filter.String;
|
|
69
|
+
received_at?: filter.Timestamp;
|
|
70
|
+
'sort_by[asc]'?: string;
|
|
71
|
+
'sort_by[desc]'?: string;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -32,6 +32,7 @@ declare module 'chargebee' {
|
|
|
32
32
|
resource_version?: number;
|
|
33
33
|
provisioned_block_balance?: GrantBlock.ProvisionedBlockBalance;
|
|
34
34
|
overdraft_block_balance?: GrantBlock.OverdraftBlockBalance;
|
|
35
|
+
billing_metadata?: GrantBlock.BillingMetadata;
|
|
35
36
|
metadata?: any;
|
|
36
37
|
}
|
|
37
38
|
|
|
@@ -65,6 +66,10 @@ declare module 'chargebee' {
|
|
|
65
66
|
usable_balance?: string;
|
|
66
67
|
used_amount?: string;
|
|
67
68
|
}
|
|
69
|
+
export interface BillingMetadata {
|
|
70
|
+
item_price_id?: string;
|
|
71
|
+
line_items?: BillingLineItem[];
|
|
72
|
+
}
|
|
68
73
|
// REQUEST PARAMS
|
|
69
74
|
//---------------
|
|
70
75
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
3
|
+
|
|
4
|
+
declare module 'chargebee' {
|
|
5
|
+
export interface GroupByAttribute {
|
|
6
|
+
attribute_name: string;
|
|
7
|
+
rank: number;
|
|
8
|
+
coverage_percent: number;
|
|
9
|
+
cardinality: number;
|
|
10
|
+
remaining_value_count: number;
|
|
11
|
+
warning: boolean;
|
|
12
|
+
sample_values?: string[];
|
|
13
|
+
warning_reasons?: WarningReasonEnum[];
|
|
14
|
+
}
|
|
15
|
+
}
|