chargebee 3.35.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 +65 -0
- package/cjs/environment.js +1 -1
- package/cjs/resources/api_endpoints.js +56 -0
- package/cjs/resources/webhook/eventType.js +2 -0
- 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 +16 -5
- package/cjs/schema/business_rule.schema.js +2 -2
- package/cjs/schema/business_ruleset.schema.js +2 -2
- package/cjs/schema/comment.schema.js +15 -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 +496 -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 +33 -4
- package/cjs/schema/entitlement_override.schema.js +17 -1
- package/cjs/schema/estimate.schema.js +581 -36
- package/cjs/schema/event.schema.js +1282 -633
- 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 +562 -66
- package/cjs/schema/index.js +3 -0
- package/cjs/schema/invoice.schema.js +821 -121
- 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_operation.schema.js +42 -15
- package/cjs/schema/metered_feature.schema.js +10 -1
- package/cjs/schema/omnichannel_one_time_order.schema.js +32 -2
- package/cjs/schema/omnichannel_subscription.schema.js +136 -30
- 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 +360 -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 +79 -14
- 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 +204 -12
- package/cjs/schema/quote.schema.js +901 -81
- package/cjs/schema/quote_entitlement.schema.js +6 -2
- package/cjs/schema/ramp.schema.js +238 -24
- package/cjs/schema/site_migration_detail.schema.js +50 -16
- package/cjs/schema/subscription.schema.js +998 -169
- 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 +55 -12
- package/cjs/schema/usage_event.schema.js +13 -1
- package/cjs/schema/virtual_bank_account.schema.js +42 -10
- package/cjs/schema/webhook_endpoint.schema.js +4 -0
- package/esm/environment.js +1 -1
- package/esm/resources/api_endpoints.js +56 -0
- package/esm/resources/webhook/eventType.js +2 -0
- 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 +16 -5
- package/esm/schema/business_rule.schema.js +2 -2
- package/esm/schema/business_ruleset.schema.js +2 -2
- package/esm/schema/comment.schema.js +15 -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 +496 -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 +33 -4
- package/esm/schema/entitlement_override.schema.js +17 -1
- package/esm/schema/estimate.schema.js +581 -36
- package/esm/schema/event.schema.js +1282 -633
- 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 +562 -66
- package/esm/schema/index.js +3 -0
- package/esm/schema/invoice.schema.js +821 -121
- 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_operation.schema.js +42 -15
- package/esm/schema/metered_feature.schema.js +10 -1
- package/esm/schema/omnichannel_one_time_order.schema.js +32 -2
- package/esm/schema/omnichannel_subscription.schema.js +136 -30
- 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 +360 -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 +79 -14
- 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 +204 -12
- package/esm/schema/quote.schema.js +901 -81
- package/esm/schema/quote_entitlement.schema.js +6 -2
- package/esm/schema/ramp.schema.js +238 -24
- package/esm/schema/site_migration_detail.schema.js +50 -16
- package/esm/schema/subscription.schema.js +998 -169
- 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 +55 -12
- package/esm/schema/usage_event.schema.js +13 -1
- package/esm/schema/virtual_bank_account.schema.js +42 -10
- package/esm/schema/webhook_endpoint.schema.js +4 -0
- package/package.json +1 -1
- package/types/core.d.ts +10 -6
- package/types/index.d.ts +8 -1
- package/types/resources/BillingLineItem.d.ts +10 -0
- package/types/resources/BillingMetadata.d.ts +9 -0
- package/types/resources/Content.d.ts +5 -0
- package/types/resources/Discount.d.ts +1 -0
- package/types/resources/DraftRequest.d.ts +1 -1
- package/types/resources/Estimate.d.ts +3 -0
- package/types/resources/Event.d.ts +2 -0
- 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/HostedPage.d.ts +18 -0
- package/types/resources/Invoice.d.ts +4 -0
- package/types/resources/OrganizationDetail.d.ts +84 -0
- package/types/resources/Subscription.d.ts +3 -0
- package/types/resources/Usage.d.ts +1 -0
- package/types/resources/WebhookEvent.d.ts +10 -0
|
@@ -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
|
|
|
@@ -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;
|
|
@@ -956,6 +957,7 @@ declare module 'chargebee' {
|
|
|
956
957
|
payment_source_id?: string;
|
|
957
958
|
auto_collection?: AutoCollectionEnum;
|
|
958
959
|
net_term_days?: number;
|
|
960
|
+
offline_payment_method?: OfflinePaymentMethodEnum;
|
|
959
961
|
invoice_date?: number;
|
|
960
962
|
create_pending_invoice?: boolean;
|
|
961
963
|
token_id?: string;
|
|
@@ -1859,6 +1861,8 @@ declare module 'chargebee' {
|
|
|
1859
1861
|
}
|
|
1860
1862
|
export interface CreditNotesApplyCreditsInputParam {
|
|
1861
1863
|
id?: string;
|
|
1864
|
+
amount?: number;
|
|
1865
|
+
applied_at?: number;
|
|
1862
1866
|
}
|
|
1863
1867
|
export interface EinvoiceInvoiceListInputParam {
|
|
1864
1868
|
status?: filter.Enum;
|
|
@@ -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
|
+
}
|
|
@@ -695,6 +695,7 @@ declare module 'chargebee' {
|
|
|
695
695
|
export interface Discount {
|
|
696
696
|
id: string;
|
|
697
697
|
invoice_name?: string;
|
|
698
|
+
description?: string;
|
|
698
699
|
type: 'fixed_amount' | 'percentage' | 'offer_quantity';
|
|
699
700
|
percentage?: number;
|
|
700
701
|
amount?: number;
|
|
@@ -1807,6 +1808,7 @@ declare module 'chargebee' {
|
|
|
1807
1808
|
included_in_mrr?: boolean;
|
|
1808
1809
|
item_price_id?: string;
|
|
1809
1810
|
quantity?: number;
|
|
1811
|
+
description?: string;
|
|
1810
1812
|
}
|
|
1811
1813
|
export interface CouponsCreateWithItemsInputParam {
|
|
1812
1814
|
/**
|
|
@@ -2243,6 +2245,7 @@ declare module 'chargebee' {
|
|
|
2243
2245
|
quantity?: number;
|
|
2244
2246
|
operation_type: OperationTypeEnum;
|
|
2245
2247
|
id?: string;
|
|
2248
|
+
description?: string;
|
|
2246
2249
|
}
|
|
2247
2250
|
export interface CouponsUpdateForItemsInputParam {
|
|
2248
2251
|
/**
|
|
@@ -199,6 +199,7 @@ declare module 'chargebee' {
|
|
|
199
199
|
SalesOrderCreated = 'sales_order_created',
|
|
200
200
|
CustomerChanged = 'customer_changed',
|
|
201
201
|
SubscriptionStarted = 'subscription_started',
|
|
202
|
+
OrganizationDetailsUpdated = 'organization_details_updated',
|
|
202
203
|
SubscriptionActivated = 'subscription_activated',
|
|
203
204
|
PaymentSourceExpiring = 'payment_source_expiring',
|
|
204
205
|
SubscriptionReactivated = 'subscription_reactivated',
|
|
@@ -240,6 +241,7 @@ declare module 'chargebee' {
|
|
|
240
241
|
OmnichannelSubscriptionCreated = 'omnichannel_subscription_created',
|
|
241
242
|
TaxWithheldRecorded = 'tax_withheld_recorded',
|
|
242
243
|
PriceVariantCreated = 'price_variant_created',
|
|
244
|
+
OrganizationDetailsCreated = 'organization_details_created',
|
|
243
245
|
DifferentialPriceDeleted = 'differential_price_deleted',
|
|
244
246
|
BusinessRuleActivated = 'business_rule_activated',
|
|
245
247
|
SubscriptionItemsRenewed = 'subscription_items_renewed',
|
|
@@ -471,6 +473,7 @@ declare module 'chargebee' {
|
|
|
471
473
|
[WebhookEventType.SalesOrderCreated]: SalesOrderCreatedContent;
|
|
472
474
|
[WebhookEventType.CustomerChanged]: CustomerChangedContent;
|
|
473
475
|
[WebhookEventType.SubscriptionStarted]: SubscriptionStartedContent;
|
|
476
|
+
[WebhookEventType.OrganizationDetailsUpdated]: OrganizationDetailsUpdatedContent;
|
|
474
477
|
[WebhookEventType.SubscriptionActivated]: SubscriptionActivatedContent;
|
|
475
478
|
[WebhookEventType.PaymentSourceExpiring]: PaymentSourceExpiringContent;
|
|
476
479
|
[WebhookEventType.SubscriptionReactivated]: SubscriptionReactivatedContent;
|
|
@@ -512,6 +515,7 @@ declare module 'chargebee' {
|
|
|
512
515
|
[WebhookEventType.OmnichannelSubscriptionCreated]: OmnichannelSubscriptionCreatedContent;
|
|
513
516
|
[WebhookEventType.TaxWithheldRecorded]: TaxWithheldRecordedContent;
|
|
514
517
|
[WebhookEventType.PriceVariantCreated]: PriceVariantCreatedContent;
|
|
518
|
+
[WebhookEventType.OrganizationDetailsCreated]: OrganizationDetailsCreatedContent;
|
|
515
519
|
[WebhookEventType.DifferentialPriceDeleted]: DifferentialPriceDeletedContent;
|
|
516
520
|
[WebhookEventType.BusinessRuleActivated]: BusinessRuleActivatedContent;
|
|
517
521
|
[WebhookEventType.SubscriptionItemsRenewed]: SubscriptionItemsRenewedContent;
|
|
@@ -1634,6 +1638,9 @@ declare module 'chargebee' {
|
|
|
1634
1638
|
|
|
1635
1639
|
invoice: Invoice;
|
|
1636
1640
|
};
|
|
1641
|
+
export type OrganizationDetailsUpdatedContent = {
|
|
1642
|
+
organization_detail: OrganizationDetail;
|
|
1643
|
+
};
|
|
1637
1644
|
export type SubscriptionActivatedContent = {
|
|
1638
1645
|
subscription: Subscription;
|
|
1639
1646
|
|
|
@@ -1839,6 +1846,9 @@ declare module 'chargebee' {
|
|
|
1839
1846
|
|
|
1840
1847
|
attribute: Attribute;
|
|
1841
1848
|
};
|
|
1849
|
+
export type OrganizationDetailsCreatedContent = {
|
|
1850
|
+
organization_detail: OrganizationDetail;
|
|
1851
|
+
};
|
|
1842
1852
|
export type DifferentialPriceDeletedContent = {
|
|
1843
1853
|
differential_price: DifferentialPrice;
|
|
1844
1854
|
};
|