chargebee 3.0.0-beta.3 → 3.0.0-beta.5
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 +37 -0
- package/cjs/environment.js +1 -1
- package/cjs/resources/api_endpoints.js +1 -0
- package/cjs/util.js +1 -1
- package/esm/environment.js +1 -1
- package/esm/resources/api_endpoints.js +1 -0
- package/esm/util.js +1 -1
- package/package.json +2 -2
- package/types/core.d.ts +93 -80
- package/types/index.d.ts +1 -0
- package/types/resources/Address.d.ts +2 -2
- package/types/resources/AdvanceInvoiceSchedule.d.ts +1 -1
- package/types/resources/AttachedItem.d.ts +4 -4
- package/types/resources/Card.d.ts +5 -3
- package/types/resources/Comment.d.ts +2 -2
- package/types/resources/Coupon.d.ts +10 -10
- package/types/resources/CreditNote.d.ts +7 -7
- package/types/resources/CreditNoteEstimate.d.ts +1 -1
- package/types/resources/Customer.d.ts +46 -46
- package/types/resources/Discount.d.ts +3 -3
- package/types/resources/Entitlement.d.ts +1 -1
- package/types/resources/EntitlementOverride.d.ts +1 -1
- package/types/resources/Estimate.d.ts +116 -100
- package/types/resources/Event.d.ts +3 -3
- package/types/resources/Export.d.ts +4 -4
- package/types/resources/Gift.d.ts +2 -2
- package/types/resources/HostedPage.d.ts +64 -64
- package/types/resources/Invoice.d.ts +44 -44
- package/types/resources/InvoiceEstimate.d.ts +1 -1
- package/types/resources/Item.d.ts +5 -5
- package/types/resources/ItemEntitlement.d.ts +2 -2
- package/types/resources/ItemFamily.d.ts +1 -1
- package/types/resources/ItemPrice.d.ts +11 -8
- package/types/resources/Order.d.ts +6 -6
- package/types/resources/PaymentScheduleEstimate.d.ts +25 -0
- package/types/resources/PaymentScheduleScheme.d.ts +1 -0
- package/types/resources/PaymentSource.d.ts +18 -14
- package/types/resources/PaymentVoucher.d.ts +9 -9
- package/types/resources/PricingPageSession.d.ts +27 -2
- package/types/resources/PromotionalCredit.d.ts +4 -4
- package/types/resources/Purchase.d.ts +6 -6
- package/types/resources/Quote.d.ts +84 -83
- package/types/resources/QuotedSubscription.d.ts +4 -1
- package/types/resources/Ramp.d.ts +6 -6
- package/types/resources/Subscription.d.ts +147 -142
- package/types/resources/SubscriptionEstimate.d.ts +2 -2
- package/types/resources/ThirdPartyPaymentMethod.d.ts +2 -2
- package/types/resources/Token.d.ts +2 -2
- package/types/resources/Transaction.d.ts +3 -3
- package/types/resources/UnbilledCharge.d.ts +3 -3
- package/types/resources/Usage.d.ts +3 -3
- package/types/resources/VirtualBankAccount.d.ts +1 -1
|
@@ -16,7 +16,7 @@ declare module 'chargebee' {
|
|
|
16
16
|
| 'voided'
|
|
17
17
|
| 'pending';
|
|
18
18
|
vat_number?: string;
|
|
19
|
-
price_type:
|
|
19
|
+
price_type: PriceTypeEnum;
|
|
20
20
|
date?: number;
|
|
21
21
|
due_date?: number;
|
|
22
22
|
net_term_days?: number;
|
|
@@ -71,7 +71,7 @@ declare module 'chargebee' {
|
|
|
71
71
|
deleted: boolean;
|
|
72
72
|
tax_category?: string;
|
|
73
73
|
vat_number_prefix?: string;
|
|
74
|
-
channel?:
|
|
74
|
+
channel?: ChannelEnum;
|
|
75
75
|
business_entity_id?: string;
|
|
76
76
|
site_details_at_creation?: Invoice.SiteDetailsAtCreation;
|
|
77
77
|
tax_origin?: Invoice.TaxOrigin;
|
|
@@ -715,7 +715,7 @@ declare module 'chargebee' {
|
|
|
715
715
|
state?: string;
|
|
716
716
|
country?: string;
|
|
717
717
|
zip?: string;
|
|
718
|
-
validation_status?:
|
|
718
|
+
validation_status?: ValidationStatusEnum;
|
|
719
719
|
index: number;
|
|
720
720
|
}
|
|
721
721
|
export interface StatementDescriptor {
|
|
@@ -736,7 +736,7 @@ declare module 'chargebee' {
|
|
|
736
736
|
state?: string;
|
|
737
737
|
country?: string;
|
|
738
738
|
zip?: string;
|
|
739
|
-
validation_status?:
|
|
739
|
+
validation_status?: ValidationStatusEnum;
|
|
740
740
|
}
|
|
741
741
|
export interface Einvoice {
|
|
742
742
|
id: string;
|
|
@@ -776,11 +776,11 @@ declare module 'chargebee' {
|
|
|
776
776
|
coupon_ids?: string[];
|
|
777
777
|
authorization_transaction_id?: string;
|
|
778
778
|
payment_source_id?: string;
|
|
779
|
-
auto_collection?:
|
|
779
|
+
auto_collection?: AutoCollectionEnum;
|
|
780
780
|
token_id?: string;
|
|
781
781
|
replace_primary_payment_source?: boolean;
|
|
782
782
|
retain_payment_source?: boolean;
|
|
783
|
-
payment_initiator?:
|
|
783
|
+
payment_initiator?: PaymentInitiatorEnum;
|
|
784
784
|
shipping_address?: ShippingAddressCreateInputParam;
|
|
785
785
|
statement_descriptor?: StatementDescriptorCreateInputParam;
|
|
786
786
|
card?: CardCreateInputParam;
|
|
@@ -806,12 +806,12 @@ declare module 'chargebee' {
|
|
|
806
806
|
coupon_ids?: string[];
|
|
807
807
|
authorization_transaction_id?: string;
|
|
808
808
|
payment_source_id?: string;
|
|
809
|
-
auto_collection?:
|
|
809
|
+
auto_collection?: AutoCollectionEnum;
|
|
810
810
|
invoice_date?: number;
|
|
811
811
|
token_id?: string;
|
|
812
812
|
replace_primary_payment_source?: boolean;
|
|
813
813
|
retain_payment_source?: boolean;
|
|
814
|
-
payment_initiator?:
|
|
814
|
+
payment_initiator?: PaymentInitiatorEnum;
|
|
815
815
|
shipping_address?: ShippingAddressCreateForChargeItemsAndChargesInputParam;
|
|
816
816
|
statement_descriptor?: StatementDescriptorCreateForChargeItemsAndChargesInputParam;
|
|
817
817
|
card?: CardCreateForChargeItemsAndChargesInputParam;
|
|
@@ -839,13 +839,13 @@ declare module 'chargebee' {
|
|
|
839
839
|
*/;
|
|
840
840
|
|
|
841
841
|
coupon?: string;
|
|
842
|
-
avalara_sale_type?:
|
|
842
|
+
avalara_sale_type?: AvalaraSaleTypeEnum;
|
|
843
843
|
avalara_transaction_type?: number;
|
|
844
844
|
avalara_service_type?: number;
|
|
845
845
|
po_number?: string;
|
|
846
846
|
invoice_date?: number;
|
|
847
847
|
payment_source_id?: string;
|
|
848
|
-
payment_initiator?:
|
|
848
|
+
payment_initiator?: PaymentInitiatorEnum;
|
|
849
849
|
tax_providers_fields?: TaxProvidersFieldsChargeInputParam[];
|
|
850
850
|
}
|
|
851
851
|
export interface ChargeAddonInputParam {
|
|
@@ -866,7 +866,7 @@ declare module 'chargebee' {
|
|
|
866
866
|
po_number?: string;
|
|
867
867
|
invoice_date?: number;
|
|
868
868
|
payment_source_id?: string;
|
|
869
|
-
payment_initiator?:
|
|
869
|
+
payment_initiator?: PaymentInitiatorEnum;
|
|
870
870
|
}
|
|
871
871
|
export interface CreateForChargeItemInputParam {
|
|
872
872
|
customer_id?: string;
|
|
@@ -874,7 +874,7 @@ declare module 'chargebee' {
|
|
|
874
874
|
po_number?: string;
|
|
875
875
|
coupon?: string;
|
|
876
876
|
payment_source_id?: string;
|
|
877
|
-
payment_initiator?:
|
|
877
|
+
payment_initiator?: PaymentInitiatorEnum;
|
|
878
878
|
invoice_date?: number;
|
|
879
879
|
item_price?: ItemPriceCreateForChargeItemInputParam;
|
|
880
880
|
item_tiers?: ItemTiersCreateForChargeItemInputParam[];
|
|
@@ -888,8 +888,8 @@ declare module 'chargebee' {
|
|
|
888
888
|
customer_id?: string;
|
|
889
889
|
subscription_id?: string;
|
|
890
890
|
po_number?: string;
|
|
891
|
-
price_type?:
|
|
892
|
-
tax_override_reason?:
|
|
891
|
+
price_type?: PriceTypeEnum;
|
|
892
|
+
tax_override_reason?: TaxOverrideReasonEnum;
|
|
893
893
|
vat_number?: string;
|
|
894
894
|
vat_number_prefix?: string;
|
|
895
895
|
date: number;
|
|
@@ -973,7 +973,7 @@ declare module 'chargebee' {
|
|
|
973
973
|
offset?: string;
|
|
974
974
|
}
|
|
975
975
|
export interface PdfInputParam {
|
|
976
|
-
disposition_type?:
|
|
976
|
+
disposition_type?: DispositionTypeEnum;
|
|
977
977
|
}
|
|
978
978
|
export interface ListPaymentReferenceNumbersInputParam {
|
|
979
979
|
limit?: number;
|
|
@@ -984,7 +984,7 @@ declare module 'chargebee' {
|
|
|
984
984
|
export interface AddChargeInputParam {
|
|
985
985
|
amount: number;
|
|
986
986
|
description: string;
|
|
987
|
-
avalara_sale_type?:
|
|
987
|
+
avalara_sale_type?: AvalaraSaleTypeEnum;
|
|
988
988
|
avalara_transaction_type?: number;
|
|
989
989
|
avalara_service_type?: number;
|
|
990
990
|
avalara_tax_code?: string;
|
|
@@ -1022,7 +1022,7 @@ declare module 'chargebee' {
|
|
|
1022
1022
|
authorization_transaction_id?: string;
|
|
1023
1023
|
payment_source_id?: string;
|
|
1024
1024
|
comment?: string;
|
|
1025
|
-
payment_initiator?:
|
|
1025
|
+
payment_initiator?: PaymentInitiatorEnum;
|
|
1026
1026
|
}
|
|
1027
1027
|
export interface RecordPaymentInputParam {
|
|
1028
1028
|
comment?: string;
|
|
@@ -1092,14 +1092,14 @@ declare module 'chargebee' {
|
|
|
1092
1092
|
state?: string;
|
|
1093
1093
|
zip?: string;
|
|
1094
1094
|
country?: string;
|
|
1095
|
-
validation_status?:
|
|
1095
|
+
validation_status?: ValidationStatusEnum;
|
|
1096
1096
|
}
|
|
1097
1097
|
export interface PaymentMethodCreateInputParam {
|
|
1098
|
-
type?:
|
|
1098
|
+
type?: TypeEnum;
|
|
1099
1099
|
/**
|
|
1100
1100
|
* @deprecated Please refer API docs to use other attributes
|
|
1101
1101
|
*/
|
|
1102
|
-
gateway?:
|
|
1102
|
+
gateway?: GatewayEnum;
|
|
1103
1103
|
gateway_account_id?: string;
|
|
1104
1104
|
reference_id?: string;
|
|
1105
1105
|
tmp_token?: string;
|
|
@@ -1118,9 +1118,9 @@ declare module 'chargebee' {
|
|
|
1118
1118
|
account_number?: string;
|
|
1119
1119
|
routing_number?: string;
|
|
1120
1120
|
bank_code?: string;
|
|
1121
|
-
account_type?:
|
|
1122
|
-
account_holder_type?:
|
|
1123
|
-
echeck_type?:
|
|
1121
|
+
account_type?: AccountTypeEnum;
|
|
1122
|
+
account_holder_type?: AccountHolderTypeEnum;
|
|
1123
|
+
echeck_type?: EcheckTypeEnum;
|
|
1124
1124
|
issuing_country?: string;
|
|
1125
1125
|
swedish_identity_number?: string;
|
|
1126
1126
|
billing_address?: any;
|
|
@@ -1161,7 +1161,7 @@ declare module 'chargebee' {
|
|
|
1161
1161
|
/**
|
|
1162
1162
|
* @deprecated Please refer API docs to use other attributes
|
|
1163
1163
|
*/
|
|
1164
|
-
gateway?:
|
|
1164
|
+
gateway?: GatewayEnum;
|
|
1165
1165
|
gateway_account_id?: string;
|
|
1166
1166
|
/**
|
|
1167
1167
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -1196,7 +1196,7 @@ declare module 'chargebee' {
|
|
|
1196
1196
|
avalara_tax_code?: string;
|
|
1197
1197
|
hsn_code?: string;
|
|
1198
1198
|
taxjar_product_code?: string;
|
|
1199
|
-
avalara_sale_type?:
|
|
1199
|
+
avalara_sale_type?: AvalaraSaleTypeEnum;
|
|
1200
1200
|
avalara_transaction_type?: number;
|
|
1201
1201
|
avalara_service_type?: number;
|
|
1202
1202
|
date_from?: number;
|
|
@@ -1217,7 +1217,7 @@ declare module 'chargebee' {
|
|
|
1217
1217
|
field_value?: string;
|
|
1218
1218
|
}
|
|
1219
1219
|
export interface NotesToRemoveCreateInputParam {
|
|
1220
|
-
entity_type?:
|
|
1220
|
+
entity_type?: EntityTypeEnum;
|
|
1221
1221
|
entity_id?: string;
|
|
1222
1222
|
}
|
|
1223
1223
|
export interface StatementDescriptorCreateForChargeItemsAndChargesInputParam {
|
|
@@ -1237,14 +1237,14 @@ declare module 'chargebee' {
|
|
|
1237
1237
|
state?: string;
|
|
1238
1238
|
zip?: string;
|
|
1239
1239
|
country?: string;
|
|
1240
|
-
validation_status?:
|
|
1240
|
+
validation_status?: ValidationStatusEnum;
|
|
1241
1241
|
}
|
|
1242
1242
|
export interface PaymentMethodCreateForChargeItemsAndChargesInputParam {
|
|
1243
|
-
type?:
|
|
1243
|
+
type?: TypeEnum;
|
|
1244
1244
|
/**
|
|
1245
1245
|
* @deprecated Please refer API docs to use other attributes
|
|
1246
1246
|
*/
|
|
1247
|
-
gateway?:
|
|
1247
|
+
gateway?: GatewayEnum;
|
|
1248
1248
|
gateway_account_id?: string;
|
|
1249
1249
|
reference_id?: string;
|
|
1250
1250
|
tmp_token?: string;
|
|
@@ -1263,9 +1263,9 @@ declare module 'chargebee' {
|
|
|
1263
1263
|
account_number?: string;
|
|
1264
1264
|
routing_number?: string;
|
|
1265
1265
|
bank_code?: string;
|
|
1266
|
-
account_type?:
|
|
1267
|
-
account_holder_type?:
|
|
1268
|
-
echeck_type?:
|
|
1266
|
+
account_type?: AccountTypeEnum;
|
|
1267
|
+
account_holder_type?: AccountHolderTypeEnum;
|
|
1268
|
+
echeck_type?: EcheckTypeEnum;
|
|
1269
1269
|
issuing_country?: string;
|
|
1270
1270
|
swedish_identity_number?: string;
|
|
1271
1271
|
billing_address?: any;
|
|
@@ -1306,7 +1306,7 @@ declare module 'chargebee' {
|
|
|
1306
1306
|
/**
|
|
1307
1307
|
* @deprecated Please refer API docs to use other attributes
|
|
1308
1308
|
*/
|
|
1309
|
-
gateway?:
|
|
1309
|
+
gateway?: GatewayEnum;
|
|
1310
1310
|
gateway_account_id?: string;
|
|
1311
1311
|
/**
|
|
1312
1312
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -1341,7 +1341,7 @@ declare module 'chargebee' {
|
|
|
1341
1341
|
avalara_tax_code?: string;
|
|
1342
1342
|
hsn_code?: string;
|
|
1343
1343
|
taxjar_product_code?: string;
|
|
1344
|
-
avalara_sale_type?:
|
|
1344
|
+
avalara_sale_type?: AvalaraSaleTypeEnum;
|
|
1345
1345
|
avalara_transaction_type?: number;
|
|
1346
1346
|
avalara_service_type?: number;
|
|
1347
1347
|
date_from?: number;
|
|
@@ -1350,7 +1350,7 @@ declare module 'chargebee' {
|
|
|
1350
1350
|
export interface DiscountsCreateForChargeItemsAndChargesInputParam {
|
|
1351
1351
|
percentage?: number;
|
|
1352
1352
|
amount?: number;
|
|
1353
|
-
apply_on:
|
|
1353
|
+
apply_on: ApplyOnEnum;
|
|
1354
1354
|
item_price_id?: string;
|
|
1355
1355
|
}
|
|
1356
1356
|
export interface ItemTiersCreateForChargeItemsAndChargesInputParam {
|
|
@@ -1377,7 +1377,7 @@ declare module 'chargebee' {
|
|
|
1377
1377
|
field_value?: string;
|
|
1378
1378
|
}
|
|
1379
1379
|
export interface NotesToRemoveCreateForChargeItemsAndChargesInputParam {
|
|
1380
|
-
entity_type?:
|
|
1380
|
+
entity_type?: EntityTypeEnum;
|
|
1381
1381
|
entity_id?: string;
|
|
1382
1382
|
}
|
|
1383
1383
|
export interface TaxProvidersFieldsChargeInputParam {
|
|
@@ -1417,7 +1417,7 @@ declare module 'chargebee' {
|
|
|
1417
1417
|
state?: string;
|
|
1418
1418
|
zip?: string;
|
|
1419
1419
|
country?: string;
|
|
1420
|
-
validation_status?:
|
|
1420
|
+
validation_status?: ValidationStatusEnum;
|
|
1421
1421
|
}
|
|
1422
1422
|
export interface ShippingAddressImportInvoiceInputParam {
|
|
1423
1423
|
first_name?: string;
|
|
@@ -1433,7 +1433,7 @@ declare module 'chargebee' {
|
|
|
1433
1433
|
state?: string;
|
|
1434
1434
|
zip?: string;
|
|
1435
1435
|
country?: string;
|
|
1436
|
-
validation_status?:
|
|
1436
|
+
validation_status?: ValidationStatusEnum;
|
|
1437
1437
|
}
|
|
1438
1438
|
export interface CreditNoteImportInvoiceInputParam {
|
|
1439
1439
|
id?: string;
|
|
@@ -1466,7 +1466,7 @@ declare module 'chargebee' {
|
|
|
1466
1466
|
}
|
|
1467
1467
|
export interface PaymentsImportInvoiceInputParam {
|
|
1468
1468
|
amount: number;
|
|
1469
|
-
payment_method:
|
|
1469
|
+
payment_method: PaymentMethodEnum;
|
|
1470
1470
|
date?: number;
|
|
1471
1471
|
reference_number?: string;
|
|
1472
1472
|
}
|
|
@@ -1588,12 +1588,12 @@ declare module 'chargebee' {
|
|
|
1588
1588
|
price_in_decimal?: string;
|
|
1589
1589
|
}
|
|
1590
1590
|
export interface NotesToRemoveCloseInputParam {
|
|
1591
|
-
entity_type?:
|
|
1591
|
+
entity_type?: EntityTypeEnum;
|
|
1592
1592
|
entity_id?: string;
|
|
1593
1593
|
}
|
|
1594
1594
|
export interface TransactionRecordPaymentInputParam {
|
|
1595
1595
|
amount?: number;
|
|
1596
|
-
payment_method:
|
|
1596
|
+
payment_method: PaymentMethodEnum;
|
|
1597
1597
|
reference_number?: string;
|
|
1598
1598
|
custom_payment_method_id?: string;
|
|
1599
1599
|
id_at_gateway?: string;
|
|
@@ -1627,7 +1627,7 @@ declare module 'chargebee' {
|
|
|
1627
1627
|
|
|
1628
1628
|
export interface TransactionRecordRefundInputParam {
|
|
1629
1629
|
amount?: number;
|
|
1630
|
-
payment_method:
|
|
1630
|
+
payment_method: PaymentMethodEnum;
|
|
1631
1631
|
reference_number?: string;
|
|
1632
1632
|
custom_payment_method_id?: string;
|
|
1633
1633
|
date: number;
|
|
@@ -1666,7 +1666,7 @@ declare module 'chargebee' {
|
|
|
1666
1666
|
state?: string;
|
|
1667
1667
|
zip?: string;
|
|
1668
1668
|
country?: string;
|
|
1669
|
-
validation_status?:
|
|
1669
|
+
validation_status?: ValidationStatusEnum;
|
|
1670
1670
|
}
|
|
1671
1671
|
export interface StatementDescriptorUpdateDetailsInputParam {
|
|
1672
1672
|
descriptor?: string;
|
|
@@ -1685,7 +1685,7 @@ declare module 'chargebee' {
|
|
|
1685
1685
|
state?: string;
|
|
1686
1686
|
zip?: string;
|
|
1687
1687
|
country?: string;
|
|
1688
|
-
validation_status?:
|
|
1688
|
+
validation_status?: ValidationStatusEnum;
|
|
1689
1689
|
}
|
|
1690
1690
|
}
|
|
1691
1691
|
}
|
|
@@ -25,7 +25,7 @@ declare module 'chargebee' {
|
|
|
25
25
|
metered: boolean;
|
|
26
26
|
usage_calculation?: 'sum_of_usages' | 'last_usage' | 'max_usage';
|
|
27
27
|
archived_at?: number;
|
|
28
|
-
channel?:
|
|
28
|
+
channel?: ChannelEnum;
|
|
29
29
|
applicable_items?: Item.ApplicableItem[];
|
|
30
30
|
bundle_items?: Item.BundleItem[];
|
|
31
31
|
bundle_configuration?: Item.BundleConfiguration;
|
|
@@ -173,7 +173,7 @@ declare module 'chargebee' {
|
|
|
173
173
|
|
|
174
174
|
export interface BundleItemsToAddCreateInputParam {
|
|
175
175
|
item_id?: string;
|
|
176
|
-
item_type?:
|
|
176
|
+
item_type?: ItemTypeEnum;
|
|
177
177
|
quantity?: number;
|
|
178
178
|
price_allocation?: number;
|
|
179
179
|
}
|
|
@@ -183,19 +183,19 @@ declare module 'chargebee' {
|
|
|
183
183
|
|
|
184
184
|
export interface BundleItemsToAddUpdateInputParam {
|
|
185
185
|
item_id?: string;
|
|
186
|
-
item_type?:
|
|
186
|
+
item_type?: ItemTypeEnum;
|
|
187
187
|
quantity?: number;
|
|
188
188
|
price_allocation?: number;
|
|
189
189
|
}
|
|
190
190
|
export interface BundleItemsToUpdateUpdateInputParam {
|
|
191
191
|
item_id?: string;
|
|
192
|
-
item_type?:
|
|
192
|
+
item_type?: ItemTypeEnum;
|
|
193
193
|
quantity?: number;
|
|
194
194
|
price_allocation?: number;
|
|
195
195
|
}
|
|
196
196
|
export interface BundleItemsToRemoveUpdateInputParam {
|
|
197
197
|
item_id?: string;
|
|
198
|
-
item_type?:
|
|
198
|
+
item_type?: ItemTypeEnum;
|
|
199
199
|
}
|
|
200
200
|
export interface BundleConfigurationItemListInputParam {
|
|
201
201
|
type?: filter.Enum;
|
|
@@ -83,11 +83,11 @@ declare module 'chargebee' {
|
|
|
83
83
|
include_drafts?: boolean;
|
|
84
84
|
}
|
|
85
85
|
export interface AddItemEntitlementsInputParam {
|
|
86
|
-
action:
|
|
86
|
+
action: ActionEnum;
|
|
87
87
|
item_entitlements?: ItemEntitlementsAddItemEntitlementsInputParam[];
|
|
88
88
|
}
|
|
89
89
|
export interface UpsertOrRemoveItemEntitlementsForItemInputParam {
|
|
90
|
-
action:
|
|
90
|
+
action: ActionEnum;
|
|
91
91
|
item_entitlements?: ItemEntitlementsUpsertOrRemoveItemEntitlementsForItemInputParam[];
|
|
92
92
|
}
|
|
93
93
|
export interface ItemEntitlementsAddItemEntitlementsInputParam {
|
|
@@ -13,7 +13,7 @@ declare module 'chargebee' {
|
|
|
13
13
|
external_name?: string;
|
|
14
14
|
price_variant_id?: string;
|
|
15
15
|
proration_type?: 'site_default' | 'partial_term' | 'full_term';
|
|
16
|
-
pricing_model:
|
|
16
|
+
pricing_model: PricingModelEnum;
|
|
17
17
|
price?: number;
|
|
18
18
|
price_in_decimal?: string;
|
|
19
19
|
period?: number;
|
|
@@ -30,10 +30,11 @@ declare module 'chargebee' {
|
|
|
30
30
|
billing_cycles?: number;
|
|
31
31
|
free_quantity: number;
|
|
32
32
|
free_quantity_in_decimal?: string;
|
|
33
|
-
channel?:
|
|
33
|
+
channel?: ChannelEnum;
|
|
34
34
|
resource_version?: number;
|
|
35
35
|
updated_at?: number;
|
|
36
36
|
created_at: number;
|
|
37
|
+
usage_accumulation_reset_frequency?: UsageAccumulationResetFrequencyEnum;
|
|
37
38
|
archived_at?: number;
|
|
38
39
|
invoice_notes?: string;
|
|
39
40
|
tiers?: ItemPrice.Tier[];
|
|
@@ -42,7 +43,7 @@ declare module 'chargebee' {
|
|
|
42
43
|
tax_providers_fields?: ItemPrice.TaxProvidersField[];
|
|
43
44
|
accounting_detail?: ItemPrice.AccountingDetail;
|
|
44
45
|
metadata?: any;
|
|
45
|
-
item_type?:
|
|
46
|
+
item_type?: ItemTypeEnum;
|
|
46
47
|
archivable?: boolean;
|
|
47
48
|
parent_item_id?: string;
|
|
48
49
|
show_description_in_invoices?: boolean;
|
|
@@ -131,7 +132,7 @@ declare module 'chargebee' {
|
|
|
131
132
|
}
|
|
132
133
|
export interface TaxDetail {
|
|
133
134
|
tax_profile_id?: string;
|
|
134
|
-
avalara_sale_type?:
|
|
135
|
+
avalara_sale_type?: AvalaraSaleTypeEnum;
|
|
135
136
|
avalara_transaction_type?: number;
|
|
136
137
|
avalara_service_type?: number;
|
|
137
138
|
avalara_tax_code?: string;
|
|
@@ -170,7 +171,8 @@ declare module 'chargebee' {
|
|
|
170
171
|
metadata?: any;
|
|
171
172
|
show_description_in_invoices?: boolean;
|
|
172
173
|
show_description_in_quotes?: boolean;
|
|
173
|
-
|
|
174
|
+
usage_accumulation_reset_frequency?: UsageAccumulationResetFrequencyEnum;
|
|
175
|
+
pricing_model?: PricingModelEnum;
|
|
174
176
|
price?: number;
|
|
175
177
|
price_in_decimal?: string;
|
|
176
178
|
period_unit?: 'day' | 'week' | 'month' | 'year';
|
|
@@ -197,13 +199,14 @@ declare module 'chargebee' {
|
|
|
197
199
|
price_variant_id?: string;
|
|
198
200
|
status?: 'active' | 'archived';
|
|
199
201
|
external_name?: string;
|
|
202
|
+
usage_accumulation_reset_frequency?: UsageAccumulationResetFrequencyEnum;
|
|
200
203
|
currency_code?: string;
|
|
201
204
|
invoice_notes?: string;
|
|
202
205
|
is_taxable?: boolean;
|
|
203
206
|
free_quantity?: number;
|
|
204
207
|
free_quantity_in_decimal?: string;
|
|
205
208
|
metadata?: any;
|
|
206
|
-
pricing_model?:
|
|
209
|
+
pricing_model?: PricingModelEnum;
|
|
207
210
|
price?: number;
|
|
208
211
|
price_in_decimal?: string;
|
|
209
212
|
period_unit?: 'day' | 'week' | 'month' | 'year';
|
|
@@ -263,7 +266,7 @@ declare module 'chargebee' {
|
|
|
263
266
|
tax_profile_id?: string;
|
|
264
267
|
avalara_tax_code?: string;
|
|
265
268
|
hsn_code?: string;
|
|
266
|
-
avalara_sale_type?:
|
|
269
|
+
avalara_sale_type?: AvalaraSaleTypeEnum;
|
|
267
270
|
avalara_transaction_type?: number;
|
|
268
271
|
avalara_service_type?: number;
|
|
269
272
|
taxjar_product_code?: string;
|
|
@@ -294,7 +297,7 @@ declare module 'chargebee' {
|
|
|
294
297
|
tax_profile_id?: string;
|
|
295
298
|
avalara_tax_code?: string;
|
|
296
299
|
hsn_code?: string;
|
|
297
|
-
avalara_sale_type?:
|
|
300
|
+
avalara_sale_type?: AvalaraSaleTypeEnum;
|
|
298
301
|
avalara_transaction_type?: number;
|
|
299
302
|
avalara_service_type?: number;
|
|
300
303
|
taxjar_product_code?: string;
|
|
@@ -38,7 +38,7 @@ declare module 'chargebee' {
|
|
|
38
38
|
| 'order_resent';
|
|
39
39
|
payment_status?: 'not_paid' | 'paid';
|
|
40
40
|
order_type?: 'manual' | 'system_generated';
|
|
41
|
-
price_type:
|
|
41
|
+
price_type: PriceTypeEnum;
|
|
42
42
|
reference_id?: string;
|
|
43
43
|
fulfillment_status?: string;
|
|
44
44
|
order_date?: number;
|
|
@@ -257,7 +257,7 @@ declare module 'chargebee' {
|
|
|
257
257
|
state?: string;
|
|
258
258
|
country?: string;
|
|
259
259
|
zip?: string;
|
|
260
|
-
validation_status?:
|
|
260
|
+
validation_status?: ValidationStatusEnum;
|
|
261
261
|
index: number;
|
|
262
262
|
}
|
|
263
263
|
export interface BillingAddress {
|
|
@@ -274,7 +274,7 @@ declare module 'chargebee' {
|
|
|
274
274
|
state?: string;
|
|
275
275
|
country?: string;
|
|
276
276
|
zip?: string;
|
|
277
|
-
validation_status?:
|
|
277
|
+
validation_status?: ValidationStatusEnum;
|
|
278
278
|
}
|
|
279
279
|
export interface LineItemTax {
|
|
280
280
|
line_item_id?: string;
|
|
@@ -508,7 +508,7 @@ declare module 'chargebee' {
|
|
|
508
508
|
state?: string;
|
|
509
509
|
zip?: string;
|
|
510
510
|
country?: string;
|
|
511
|
-
validation_status?:
|
|
511
|
+
validation_status?: ValidationStatusEnum;
|
|
512
512
|
}
|
|
513
513
|
|
|
514
514
|
export interface OrderLineItemsUpdateInputParam {
|
|
@@ -538,7 +538,7 @@ declare module 'chargebee' {
|
|
|
538
538
|
state?: string;
|
|
539
539
|
zip?: string;
|
|
540
540
|
country?: string;
|
|
541
|
-
validation_status?:
|
|
541
|
+
validation_status?: ValidationStatusEnum;
|
|
542
542
|
}
|
|
543
543
|
export interface ShippingAddressImportOrderInputParam {
|
|
544
544
|
first_name?: string;
|
|
@@ -554,7 +554,7 @@ declare module 'chargebee' {
|
|
|
554
554
|
state?: string;
|
|
555
555
|
zip?: string;
|
|
556
556
|
country?: string;
|
|
557
|
-
validation_status?:
|
|
557
|
+
validation_status?: ValidationStatusEnum;
|
|
558
558
|
}
|
|
559
559
|
|
|
560
560
|
export interface CreditNoteCancelInputParam {
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
3
|
+
|
|
4
|
+
declare module 'chargebee' {
|
|
5
|
+
export interface PaymentScheduleEstimate {
|
|
6
|
+
id: string;
|
|
7
|
+
scheme_id: string;
|
|
8
|
+
entity_type: 'invoice';
|
|
9
|
+
entity_id?: string;
|
|
10
|
+
amount: number;
|
|
11
|
+
currency_code?: string;
|
|
12
|
+
schedule_entries?: PaymentScheduleEstimate.ScheduleEntry[];
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export namespace PaymentScheduleEstimate {
|
|
16
|
+
export interface ScheduleEntry {
|
|
17
|
+
id: string;
|
|
18
|
+
date: number;
|
|
19
|
+
amount: number;
|
|
20
|
+
status: 'posted' | 'payment_due' | 'paid';
|
|
21
|
+
}
|
|
22
|
+
// REQUEST PARAMS
|
|
23
|
+
//---------------
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -8,7 +8,7 @@ declare module 'chargebee' {
|
|
|
8
8
|
updated_at?: number;
|
|
9
9
|
created_at: number;
|
|
10
10
|
customer_id: string;
|
|
11
|
-
type:
|
|
11
|
+
type: TypeEnum;
|
|
12
12
|
reference_id: string;
|
|
13
13
|
status:
|
|
14
14
|
| 'valid'
|
|
@@ -16,7 +16,7 @@ declare module 'chargebee' {
|
|
|
16
16
|
| 'expired'
|
|
17
17
|
| 'invalid'
|
|
18
18
|
| 'pending_verification';
|
|
19
|
-
gateway:
|
|
19
|
+
gateway: GatewayEnum;
|
|
20
20
|
gateway_account_id?: string;
|
|
21
21
|
ip_address?: string;
|
|
22
22
|
issuing_country?: string;
|
|
@@ -224,6 +224,8 @@ declare module 'chargebee' {
|
|
|
224
224
|
| 'carnet'
|
|
225
225
|
| 'rupay'
|
|
226
226
|
| 'maestro'
|
|
227
|
+
| 'dankort'
|
|
228
|
+
| 'cartes_bancaires'
|
|
227
229
|
| 'not_applicable';
|
|
228
230
|
funding_type:
|
|
229
231
|
| 'credit'
|
|
@@ -247,12 +249,12 @@ declare module 'chargebee' {
|
|
|
247
249
|
name_on_account?: string;
|
|
248
250
|
first_name?: string;
|
|
249
251
|
last_name?: string;
|
|
250
|
-
direct_debit_scheme?:
|
|
252
|
+
direct_debit_scheme?: DirectDebitSchemeEnum;
|
|
251
253
|
bank_name?: string;
|
|
252
254
|
mandate_id?: string;
|
|
253
|
-
account_type?:
|
|
254
|
-
echeck_type?:
|
|
255
|
-
account_holder_type?:
|
|
255
|
+
account_type?: AccountTypeEnum;
|
|
256
|
+
echeck_type?: EcheckTypeEnum;
|
|
257
|
+
account_holder_type?: AccountHolderTypeEnum;
|
|
256
258
|
email?: string;
|
|
257
259
|
}
|
|
258
260
|
export interface CustVoucherSource {
|
|
@@ -275,7 +277,7 @@ declare module 'chargebee' {
|
|
|
275
277
|
state?: string;
|
|
276
278
|
country?: string;
|
|
277
279
|
zip?: string;
|
|
278
|
-
validation_status?:
|
|
280
|
+
validation_status?: ValidationStatusEnum;
|
|
279
281
|
}
|
|
280
282
|
export interface AmazonPayment {
|
|
281
283
|
email?: string;
|
|
@@ -305,7 +307,7 @@ declare module 'chargebee' {
|
|
|
305
307
|
export interface CreateUsingTempTokenInputParam {
|
|
306
308
|
customer_id: string;
|
|
307
309
|
gateway_account_id?: string;
|
|
308
|
-
type:
|
|
310
|
+
type: TypeEnum;
|
|
309
311
|
tmp_token: string;
|
|
310
312
|
issuing_country?: string;
|
|
311
313
|
replace_primary_payment_source?: boolean;
|
|
@@ -313,7 +315,7 @@ declare module 'chargebee' {
|
|
|
313
315
|
}
|
|
314
316
|
export interface CreateUsingPermanentTokenInputParam {
|
|
315
317
|
customer_id: string;
|
|
316
|
-
type:
|
|
318
|
+
type: TypeEnum;
|
|
317
319
|
gateway_account_id?: string;
|
|
318
320
|
reference_id?: string;
|
|
319
321
|
issuing_country?: string;
|
|
@@ -419,7 +421,9 @@ declare module 'chargebee' {
|
|
|
419
421
|
| 'hipercard'
|
|
420
422
|
| 'carnet'
|
|
421
423
|
| 'rupay'
|
|
422
|
-
| 'maestro'
|
|
424
|
+
| 'maestro'
|
|
425
|
+
| 'dankort'
|
|
426
|
+
| 'cartes_bancaires';
|
|
423
427
|
funding_type?: 'credit' | 'debit' | 'prepaid' | 'not_known';
|
|
424
428
|
}
|
|
425
429
|
|
|
@@ -458,7 +462,7 @@ declare module 'chargebee' {
|
|
|
458
462
|
}
|
|
459
463
|
|
|
460
464
|
export interface VoucherPaymentSourceCreateVoucherPaymentSourceInputParam {
|
|
461
|
-
voucher_type:
|
|
465
|
+
voucher_type: VoucherTypeEnum;
|
|
462
466
|
gateway_account_id?: string;
|
|
463
467
|
tax_id?: string;
|
|
464
468
|
billing_address?: any;
|
|
@@ -494,9 +498,9 @@ declare module 'chargebee' {
|
|
|
494
498
|
account_number?: string;
|
|
495
499
|
routing_number?: string;
|
|
496
500
|
bank_code?: string;
|
|
497
|
-
account_type?:
|
|
498
|
-
account_holder_type?:
|
|
499
|
-
echeck_type?:
|
|
501
|
+
account_type?: AccountTypeEnum;
|
|
502
|
+
account_holder_type?: AccountHolderTypeEnum;
|
|
503
|
+
echeck_type?: EcheckTypeEnum;
|
|
500
504
|
swedish_identity_number?: string;
|
|
501
505
|
billing_address?: any;
|
|
502
506
|
}
|