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
|
@@ -15,7 +15,7 @@ declare module 'chargebee' {
|
|
|
15
15
|
| 'change_subscription'
|
|
16
16
|
| 'onetime_invoice';
|
|
17
17
|
vat_number?: string;
|
|
18
|
-
price_type:
|
|
18
|
+
price_type: PriceTypeEnum;
|
|
19
19
|
valid_till: number;
|
|
20
20
|
date: number;
|
|
21
21
|
total_payable?: number;
|
|
@@ -403,7 +403,7 @@ declare module 'chargebee' {
|
|
|
403
403
|
state?: string;
|
|
404
404
|
country?: string;
|
|
405
405
|
zip?: string;
|
|
406
|
-
validation_status?:
|
|
406
|
+
validation_status?: ValidationStatusEnum;
|
|
407
407
|
index: number;
|
|
408
408
|
}
|
|
409
409
|
export interface BillingAddress {
|
|
@@ -420,7 +420,7 @@ declare module 'chargebee' {
|
|
|
420
420
|
state?: string;
|
|
421
421
|
country?: string;
|
|
422
422
|
zip?: string;
|
|
423
|
-
validation_status?:
|
|
423
|
+
validation_status?: ValidationStatusEnum;
|
|
424
424
|
}
|
|
425
425
|
// REQUEST PARAMS
|
|
426
426
|
//---------------
|
|
@@ -432,7 +432,7 @@ declare module 'chargebee' {
|
|
|
432
432
|
billing_cycles?: number;
|
|
433
433
|
mandatory_addons_to_remove?: string[];
|
|
434
434
|
terms_to_charge?: number;
|
|
435
|
-
billing_alignment_mode?:
|
|
435
|
+
billing_alignment_mode?: BillingAlignmentModeEnum;
|
|
436
436
|
coupon_ids?: string[];
|
|
437
437
|
subscription?: SubscriptionCreateSubForCustomerQuoteInputParam;
|
|
438
438
|
shipping_address?: ShippingAddressCreateSubForCustomerQuoteInputParam;
|
|
@@ -446,7 +446,7 @@ declare module 'chargebee' {
|
|
|
446
446
|
billing_cycles?: number;
|
|
447
447
|
mandatory_addons_to_remove?: string[];
|
|
448
448
|
terms_to_charge?: number;
|
|
449
|
-
billing_alignment_mode?:
|
|
449
|
+
billing_alignment_mode?: BillingAlignmentModeEnum;
|
|
450
450
|
coupon_ids?: string[];
|
|
451
451
|
subscription?: SubscriptionEditCreateSubForCustomerQuoteInputParam;
|
|
452
452
|
shipping_address?: ShippingAddressEditCreateSubForCustomerQuoteInputParam;
|
|
@@ -463,10 +463,10 @@ declare module 'chargebee' {
|
|
|
463
463
|
billing_cycles?: number;
|
|
464
464
|
terms_to_charge?: number;
|
|
465
465
|
reactivate_from?: number;
|
|
466
|
-
billing_alignment_mode?:
|
|
466
|
+
billing_alignment_mode?: BillingAlignmentModeEnum;
|
|
467
467
|
coupon_ids?: string[];
|
|
468
468
|
replace_coupon_list?: boolean;
|
|
469
|
-
change_option?:
|
|
469
|
+
change_option?: ChangeOptionEnum;
|
|
470
470
|
changes_scheduled_at?: number;
|
|
471
471
|
force_term_reset?: boolean;
|
|
472
472
|
reactivate?: boolean;
|
|
@@ -486,10 +486,10 @@ declare module 'chargebee' {
|
|
|
486
486
|
billing_cycles?: number;
|
|
487
487
|
terms_to_charge?: number;
|
|
488
488
|
reactivate_from?: number;
|
|
489
|
-
billing_alignment_mode?:
|
|
489
|
+
billing_alignment_mode?: BillingAlignmentModeEnum;
|
|
490
490
|
coupon_ids?: string[];
|
|
491
491
|
replace_coupon_list?: boolean;
|
|
492
|
-
change_option?:
|
|
492
|
+
change_option?: ChangeOptionEnum;
|
|
493
493
|
changes_scheduled_at?: number;
|
|
494
494
|
force_term_reset?: boolean;
|
|
495
495
|
reactivate?: boolean;
|
|
@@ -534,7 +534,7 @@ declare module 'chargebee' {
|
|
|
534
534
|
billing_cycles?: number;
|
|
535
535
|
mandatory_items_to_remove?: string[];
|
|
536
536
|
terms_to_charge?: number;
|
|
537
|
-
billing_alignment_mode?:
|
|
537
|
+
billing_alignment_mode?: BillingAlignmentModeEnum;
|
|
538
538
|
coupon_ids?: string[];
|
|
539
539
|
subscription?: SubscriptionCreateSubItemsForCustomerQuoteInputParam;
|
|
540
540
|
shipping_address?: ShippingAddressCreateSubItemsForCustomerQuoteInputParam;
|
|
@@ -549,7 +549,7 @@ declare module 'chargebee' {
|
|
|
549
549
|
billing_cycles?: number;
|
|
550
550
|
mandatory_items_to_remove?: string[];
|
|
551
551
|
terms_to_charge?: number;
|
|
552
|
-
billing_alignment_mode?:
|
|
552
|
+
billing_alignment_mode?: BillingAlignmentModeEnum;
|
|
553
553
|
coupon_ids?: string[];
|
|
554
554
|
subscription?: SubscriptionEditCreateSubCustomerQuoteForItemsInputParam;
|
|
555
555
|
shipping_address?: ShippingAddressEditCreateSubCustomerQuoteForItemsInputParam;
|
|
@@ -567,10 +567,10 @@ declare module 'chargebee' {
|
|
|
567
567
|
billing_cycles?: number;
|
|
568
568
|
terms_to_charge?: number;
|
|
569
569
|
reactivate_from?: number;
|
|
570
|
-
billing_alignment_mode?:
|
|
570
|
+
billing_alignment_mode?: BillingAlignmentModeEnum;
|
|
571
571
|
coupon_ids?: string[];
|
|
572
572
|
replace_coupon_list?: boolean;
|
|
573
|
-
change_option?:
|
|
573
|
+
change_option?: ChangeOptionEnum;
|
|
574
574
|
changes_scheduled_at?: number;
|
|
575
575
|
force_term_reset?: boolean;
|
|
576
576
|
reactivate?: boolean;
|
|
@@ -591,10 +591,10 @@ declare module 'chargebee' {
|
|
|
591
591
|
billing_cycles?: number;
|
|
592
592
|
terms_to_charge?: number;
|
|
593
593
|
reactivate_from?: number;
|
|
594
|
-
billing_alignment_mode?:
|
|
594
|
+
billing_alignment_mode?: BillingAlignmentModeEnum;
|
|
595
595
|
coupon_ids?: string[];
|
|
596
596
|
replace_coupon_list?: boolean;
|
|
597
|
-
change_option?:
|
|
597
|
+
change_option?: ChangeOptionEnum;
|
|
598
598
|
changes_scheduled_at?: number;
|
|
599
599
|
force_term_reset?: boolean;
|
|
600
600
|
reactivate?: boolean;
|
|
@@ -656,6 +656,7 @@ declare module 'chargebee' {
|
|
|
656
656
|
}
|
|
657
657
|
export interface ConvertInputParam {
|
|
658
658
|
invoice_date?: number;
|
|
659
|
+
invoice_immediately?: boolean;
|
|
659
660
|
create_pending_invoices?: boolean;
|
|
660
661
|
first_invoice_pending?: boolean;
|
|
661
662
|
subscription?: SubscriptionConvertInputParam;
|
|
@@ -672,7 +673,7 @@ declare module 'chargebee' {
|
|
|
672
673
|
}
|
|
673
674
|
export interface PdfInputParam {
|
|
674
675
|
consolidated_view?: boolean;
|
|
675
|
-
disposition_type?:
|
|
676
|
+
disposition_type?: DispositionTypeEnum;
|
|
676
677
|
}
|
|
677
678
|
export interface ShippingAddressCreateSubForCustomerQuoteInputParam {
|
|
678
679
|
first_name?: string;
|
|
@@ -688,7 +689,7 @@ declare module 'chargebee' {
|
|
|
688
689
|
state?: string;
|
|
689
690
|
zip?: string;
|
|
690
691
|
country?: string;
|
|
691
|
-
validation_status?:
|
|
692
|
+
validation_status?: ValidationStatusEnum;
|
|
692
693
|
}
|
|
693
694
|
export interface ContractTermCreateSubForCustomerQuoteInputParam {
|
|
694
695
|
action_at_term_end?: 'renew' | 'evergreen' | 'cancel';
|
|
@@ -705,7 +706,7 @@ declare module 'chargebee' {
|
|
|
705
706
|
setup_fee?: number;
|
|
706
707
|
trial_end?: number;
|
|
707
708
|
start_date?: number;
|
|
708
|
-
offline_payment_method?:
|
|
709
|
+
offline_payment_method?: OfflinePaymentMethodEnum;
|
|
709
710
|
contract_term_billing_cycle_on_renewal?: number;
|
|
710
711
|
}
|
|
711
712
|
|
|
@@ -716,9 +717,9 @@ declare module 'chargebee' {
|
|
|
716
717
|
quantity_in_decimal?: string;
|
|
717
718
|
unit_price_in_decimal?: string;
|
|
718
719
|
service_period_in_days?: number;
|
|
719
|
-
on_event?:
|
|
720
|
+
on_event?: OnEventEnum;
|
|
720
721
|
charge_once?: boolean;
|
|
721
|
-
charge_on?:
|
|
722
|
+
charge_on?: ChargeOnEnum;
|
|
722
723
|
}
|
|
723
724
|
export interface AddonsCreateSubForCustomerQuoteInputParam {
|
|
724
725
|
id?: string;
|
|
@@ -743,7 +744,7 @@ declare module 'chargebee' {
|
|
|
743
744
|
state?: string;
|
|
744
745
|
zip?: string;
|
|
745
746
|
country?: string;
|
|
746
|
-
validation_status?:
|
|
747
|
+
validation_status?: ValidationStatusEnum;
|
|
747
748
|
}
|
|
748
749
|
export interface ContractTermEditCreateSubForCustomerQuoteInputParam {
|
|
749
750
|
action_at_term_end?: 'renew' | 'evergreen' | 'cancel';
|
|
@@ -760,7 +761,7 @@ declare module 'chargebee' {
|
|
|
760
761
|
setup_fee?: number;
|
|
761
762
|
trial_end?: number;
|
|
762
763
|
start_date?: number;
|
|
763
|
-
offline_payment_method?:
|
|
764
|
+
offline_payment_method?: OfflinePaymentMethodEnum;
|
|
764
765
|
contract_term_billing_cycle_on_renewal?: number;
|
|
765
766
|
}
|
|
766
767
|
|
|
@@ -771,9 +772,9 @@ declare module 'chargebee' {
|
|
|
771
772
|
quantity_in_decimal?: string;
|
|
772
773
|
unit_price_in_decimal?: string;
|
|
773
774
|
service_period_in_days?: number;
|
|
774
|
-
on_event?:
|
|
775
|
+
on_event?: OnEventEnum;
|
|
775
776
|
charge_once?: boolean;
|
|
776
|
-
charge_on?:
|
|
777
|
+
charge_on?: ChargeOnEnum;
|
|
777
778
|
}
|
|
778
779
|
export interface AddonsEditCreateSubForCustomerQuoteInputParam {
|
|
779
780
|
id?: string;
|
|
@@ -798,7 +799,7 @@ declare module 'chargebee' {
|
|
|
798
799
|
state?: string;
|
|
799
800
|
zip?: string;
|
|
800
801
|
country?: string;
|
|
801
|
-
validation_status?:
|
|
802
|
+
validation_status?: ValidationStatusEnum;
|
|
802
803
|
}
|
|
803
804
|
export interface CustomerUpdateSubscriptionQuoteInputParam {
|
|
804
805
|
vat_number?: string;
|
|
@@ -819,7 +820,7 @@ declare module 'chargebee' {
|
|
|
819
820
|
state?: string;
|
|
820
821
|
zip?: string;
|
|
821
822
|
country?: string;
|
|
822
|
-
validation_status?:
|
|
823
|
+
validation_status?: ValidationStatusEnum;
|
|
823
824
|
}
|
|
824
825
|
export interface ContractTermUpdateSubscriptionQuoteInputParam {
|
|
825
826
|
action_at_term_end?: 'renew' | 'evergreen' | 'cancel' | 'renew_once';
|
|
@@ -839,8 +840,8 @@ declare module 'chargebee' {
|
|
|
839
840
|
* @deprecated Please refer API docs to use other attributes
|
|
840
841
|
*/
|
|
841
842
|
coupon?: string;
|
|
842
|
-
auto_collection?:
|
|
843
|
-
offline_payment_method?:
|
|
843
|
+
auto_collection?: AutoCollectionEnum;
|
|
844
|
+
offline_payment_method?: OfflinePaymentMethodEnum;
|
|
844
845
|
contract_term_billing_cycle_on_renewal?: number;
|
|
845
846
|
}
|
|
846
847
|
|
|
@@ -849,8 +850,8 @@ declare module 'chargebee' {
|
|
|
849
850
|
quantity?: number;
|
|
850
851
|
unit_price?: number;
|
|
851
852
|
service_period_in_days?: number;
|
|
852
|
-
charge_on?:
|
|
853
|
-
on_event?:
|
|
853
|
+
charge_on?: ChargeOnEnum;
|
|
854
|
+
on_event?: OnEventEnum;
|
|
854
855
|
charge_once?: boolean;
|
|
855
856
|
quantity_in_decimal?: string;
|
|
856
857
|
unit_price_in_decimal?: string;
|
|
@@ -878,7 +879,7 @@ declare module 'chargebee' {
|
|
|
878
879
|
state?: string;
|
|
879
880
|
zip?: string;
|
|
880
881
|
country?: string;
|
|
881
|
-
validation_status?:
|
|
882
|
+
validation_status?: ValidationStatusEnum;
|
|
882
883
|
}
|
|
883
884
|
export interface CustomerEditUpdateSubscriptionQuoteInputParam {
|
|
884
885
|
vat_number?: string;
|
|
@@ -899,7 +900,7 @@ declare module 'chargebee' {
|
|
|
899
900
|
state?: string;
|
|
900
901
|
zip?: string;
|
|
901
902
|
country?: string;
|
|
902
|
-
validation_status?:
|
|
903
|
+
validation_status?: ValidationStatusEnum;
|
|
903
904
|
}
|
|
904
905
|
export interface ContractTermEditUpdateSubscriptionQuoteInputParam {
|
|
905
906
|
action_at_term_end?: 'renew' | 'evergreen' | 'cancel' | 'renew_once';
|
|
@@ -918,8 +919,8 @@ declare module 'chargebee' {
|
|
|
918
919
|
* @deprecated Please refer API docs to use other attributes
|
|
919
920
|
*/
|
|
920
921
|
coupon?: string;
|
|
921
|
-
auto_collection?:
|
|
922
|
-
offline_payment_method?:
|
|
922
|
+
auto_collection?: AutoCollectionEnum;
|
|
923
|
+
offline_payment_method?: OfflinePaymentMethodEnum;
|
|
923
924
|
contract_term_billing_cycle_on_renewal?: number;
|
|
924
925
|
}
|
|
925
926
|
|
|
@@ -928,8 +929,8 @@ declare module 'chargebee' {
|
|
|
928
929
|
quantity?: number;
|
|
929
930
|
unit_price?: number;
|
|
930
931
|
service_period_in_days?: number;
|
|
931
|
-
charge_on?:
|
|
932
|
-
on_event?:
|
|
932
|
+
charge_on?: ChargeOnEnum;
|
|
933
|
+
on_event?: OnEventEnum;
|
|
933
934
|
charge_once?: boolean;
|
|
934
935
|
quantity_in_decimal?: string;
|
|
935
936
|
unit_price_in_decimal?: string;
|
|
@@ -957,14 +958,14 @@ declare module 'chargebee' {
|
|
|
957
958
|
state?: string;
|
|
958
959
|
zip?: string;
|
|
959
960
|
country?: string;
|
|
960
|
-
validation_status?:
|
|
961
|
+
validation_status?: ValidationStatusEnum;
|
|
961
962
|
}
|
|
962
963
|
|
|
963
964
|
export interface ChargesCreateForOnetimeChargesInputParam {
|
|
964
965
|
amount?: number;
|
|
965
966
|
amount_in_decimal?: string;
|
|
966
967
|
description?: string;
|
|
967
|
-
avalara_sale_type?:
|
|
968
|
+
avalara_sale_type?: AvalaraSaleTypeEnum;
|
|
968
969
|
avalara_transaction_type?: number;
|
|
969
970
|
avalara_service_type?: number;
|
|
970
971
|
service_period?: number;
|
|
@@ -996,14 +997,14 @@ declare module 'chargebee' {
|
|
|
996
997
|
state?: string;
|
|
997
998
|
zip?: string;
|
|
998
999
|
country?: string;
|
|
999
|
-
validation_status?:
|
|
1000
|
+
validation_status?: ValidationStatusEnum;
|
|
1000
1001
|
}
|
|
1001
1002
|
|
|
1002
1003
|
export interface ChargesEditOneTimeQuoteInputParam {
|
|
1003
1004
|
amount?: number;
|
|
1004
1005
|
amount_in_decimal?: string;
|
|
1005
1006
|
description?: string;
|
|
1006
|
-
avalara_sale_type?:
|
|
1007
|
+
avalara_sale_type?: AvalaraSaleTypeEnum;
|
|
1007
1008
|
avalara_transaction_type?: number;
|
|
1008
1009
|
avalara_service_type?: number;
|
|
1009
1010
|
service_period?: number;
|
|
@@ -1035,7 +1036,7 @@ declare module 'chargebee' {
|
|
|
1035
1036
|
state?: string;
|
|
1036
1037
|
zip?: string;
|
|
1037
1038
|
country?: string;
|
|
1038
|
-
validation_status?:
|
|
1039
|
+
validation_status?: ValidationStatusEnum;
|
|
1039
1040
|
}
|
|
1040
1041
|
export interface ContractTermCreateSubItemsForCustomerQuoteInputParam {
|
|
1041
1042
|
action_at_term_end?: 'renew' | 'evergreen' | 'cancel';
|
|
@@ -1062,21 +1063,21 @@ declare module 'chargebee' {
|
|
|
1062
1063
|
billing_cycles?: number;
|
|
1063
1064
|
trial_end?: number;
|
|
1064
1065
|
service_period_days?: number;
|
|
1065
|
-
charge_on_event?:
|
|
1066
|
+
charge_on_event?: ChargeOnEventEnum;
|
|
1066
1067
|
charge_once?: boolean;
|
|
1067
1068
|
/**
|
|
1068
1069
|
* @deprecated Please refer API docs to use other attributes
|
|
1069
1070
|
*/
|
|
1070
|
-
item_type?:
|
|
1071
|
-
charge_on_option?:
|
|
1071
|
+
item_type?: ItemTypeEnum;
|
|
1072
|
+
charge_on_option?: ChargeOnOptionEnum;
|
|
1072
1073
|
}
|
|
1073
1074
|
export interface DiscountsCreateSubItemsForCustomerQuoteInputParam {
|
|
1074
|
-
apply_on:
|
|
1075
|
-
duration_type:
|
|
1075
|
+
apply_on: ApplyOnEnum;
|
|
1076
|
+
duration_type: DurationTypeEnum;
|
|
1076
1077
|
percentage?: number;
|
|
1077
1078
|
amount?: number;
|
|
1078
1079
|
period?: number;
|
|
1079
|
-
period_unit?:
|
|
1080
|
+
period_unit?: PeriodUnitEnum;
|
|
1080
1081
|
included_in_mrr?: boolean;
|
|
1081
1082
|
item_price_id?: string;
|
|
1082
1083
|
}
|
|
@@ -1103,7 +1104,7 @@ declare module 'chargebee' {
|
|
|
1103
1104
|
state?: string;
|
|
1104
1105
|
zip?: string;
|
|
1105
1106
|
country?: string;
|
|
1106
|
-
validation_status?:
|
|
1107
|
+
validation_status?: ValidationStatusEnum;
|
|
1107
1108
|
}
|
|
1108
1109
|
export interface ContractTermEditCreateSubCustomerQuoteForItemsInputParam {
|
|
1109
1110
|
action_at_term_end?: 'renew' | 'evergreen' | 'cancel';
|
|
@@ -1130,21 +1131,21 @@ declare module 'chargebee' {
|
|
|
1130
1131
|
billing_cycles?: number;
|
|
1131
1132
|
trial_end?: number;
|
|
1132
1133
|
service_period_days?: number;
|
|
1133
|
-
charge_on_event?:
|
|
1134
|
+
charge_on_event?: ChargeOnEventEnum;
|
|
1134
1135
|
charge_once?: boolean;
|
|
1135
1136
|
/**
|
|
1136
1137
|
* @deprecated Please refer API docs to use other attributes
|
|
1137
1138
|
*/
|
|
1138
|
-
item_type?:
|
|
1139
|
-
charge_on_option?:
|
|
1139
|
+
item_type?: ItemTypeEnum;
|
|
1140
|
+
charge_on_option?: ChargeOnOptionEnum;
|
|
1140
1141
|
}
|
|
1141
1142
|
export interface DiscountsEditCreateSubCustomerQuoteForItemsInputParam {
|
|
1142
|
-
apply_on:
|
|
1143
|
-
duration_type:
|
|
1143
|
+
apply_on: ApplyOnEnum;
|
|
1144
|
+
duration_type: DurationTypeEnum;
|
|
1144
1145
|
percentage?: number;
|
|
1145
1146
|
amount?: number;
|
|
1146
1147
|
period?: number;
|
|
1147
|
-
period_unit?:
|
|
1148
|
+
period_unit?: PeriodUnitEnum;
|
|
1148
1149
|
included_in_mrr?: boolean;
|
|
1149
1150
|
item_price_id?: string;
|
|
1150
1151
|
}
|
|
@@ -1171,7 +1172,7 @@ declare module 'chargebee' {
|
|
|
1171
1172
|
state?: string;
|
|
1172
1173
|
zip?: string;
|
|
1173
1174
|
country?: string;
|
|
1174
|
-
validation_status?:
|
|
1175
|
+
validation_status?: ValidationStatusEnum;
|
|
1175
1176
|
}
|
|
1176
1177
|
export interface CustomerUpdateSubscriptionQuoteForItemsInputParam {
|
|
1177
1178
|
vat_number?: string;
|
|
@@ -1192,7 +1193,7 @@ declare module 'chargebee' {
|
|
|
1192
1193
|
state?: string;
|
|
1193
1194
|
zip?: string;
|
|
1194
1195
|
country?: string;
|
|
1195
|
-
validation_status?:
|
|
1196
|
+
validation_status?: ValidationStatusEnum;
|
|
1196
1197
|
}
|
|
1197
1198
|
export interface ContractTermUpdateSubscriptionQuoteForItemsInputParam {
|
|
1198
1199
|
action_at_term_end?: 'renew' | 'evergreen' | 'cancel' | 'renew_once';
|
|
@@ -1210,8 +1211,8 @@ declare module 'chargebee' {
|
|
|
1210
1211
|
* @deprecated Please refer API docs to use other attributes
|
|
1211
1212
|
*/
|
|
1212
1213
|
coupon?: string;
|
|
1213
|
-
auto_collection?:
|
|
1214
|
-
offline_payment_method?:
|
|
1214
|
+
auto_collection?: AutoCollectionEnum;
|
|
1215
|
+
offline_payment_method?: OfflinePaymentMethodEnum;
|
|
1215
1216
|
contract_term_billing_cycle_on_renewal?: number;
|
|
1216
1217
|
}
|
|
1217
1218
|
|
|
@@ -1224,24 +1225,24 @@ declare module 'chargebee' {
|
|
|
1224
1225
|
billing_cycles?: number;
|
|
1225
1226
|
trial_end?: number;
|
|
1226
1227
|
service_period_days?: number;
|
|
1227
|
-
charge_on_event?:
|
|
1228
|
+
charge_on_event?: ChargeOnEventEnum;
|
|
1228
1229
|
charge_once?: boolean;
|
|
1229
|
-
charge_on_option?:
|
|
1230
|
+
charge_on_option?: ChargeOnOptionEnum;
|
|
1230
1231
|
/**
|
|
1231
1232
|
* @deprecated Please refer API docs to use other attributes
|
|
1232
1233
|
*/
|
|
1233
|
-
item_type?:
|
|
1234
|
+
item_type?: ItemTypeEnum;
|
|
1234
1235
|
}
|
|
1235
1236
|
export interface DiscountsUpdateSubscriptionQuoteForItemsInputParam {
|
|
1236
|
-
apply_on:
|
|
1237
|
-
duration_type:
|
|
1237
|
+
apply_on: ApplyOnEnum;
|
|
1238
|
+
duration_type: DurationTypeEnum;
|
|
1238
1239
|
percentage?: number;
|
|
1239
1240
|
amount?: number;
|
|
1240
1241
|
period?: number;
|
|
1241
|
-
period_unit?:
|
|
1242
|
+
period_unit?: PeriodUnitEnum;
|
|
1242
1243
|
included_in_mrr?: boolean;
|
|
1243
1244
|
item_price_id?: string;
|
|
1244
|
-
operation_type:
|
|
1245
|
+
operation_type: OperationTypeEnum;
|
|
1245
1246
|
id?: string;
|
|
1246
1247
|
}
|
|
1247
1248
|
export interface ItemTiersUpdateSubscriptionQuoteForItemsInputParam {
|
|
@@ -1267,7 +1268,7 @@ declare module 'chargebee' {
|
|
|
1267
1268
|
state?: string;
|
|
1268
1269
|
zip?: string;
|
|
1269
1270
|
country?: string;
|
|
1270
|
-
validation_status?:
|
|
1271
|
+
validation_status?: ValidationStatusEnum;
|
|
1271
1272
|
}
|
|
1272
1273
|
export interface CustomerEditUpdateSubscriptionQuoteForItemsInputParam {
|
|
1273
1274
|
vat_number?: string;
|
|
@@ -1288,7 +1289,7 @@ declare module 'chargebee' {
|
|
|
1288
1289
|
state?: string;
|
|
1289
1290
|
zip?: string;
|
|
1290
1291
|
country?: string;
|
|
1291
|
-
validation_status?:
|
|
1292
|
+
validation_status?: ValidationStatusEnum;
|
|
1292
1293
|
}
|
|
1293
1294
|
export interface ContractTermEditUpdateSubscriptionQuoteForItemsInputParam {
|
|
1294
1295
|
action_at_term_end?: 'renew' | 'evergreen' | 'cancel' | 'renew_once';
|
|
@@ -1305,8 +1306,8 @@ declare module 'chargebee' {
|
|
|
1305
1306
|
* @deprecated Please refer API docs to use other attributes
|
|
1306
1307
|
*/
|
|
1307
1308
|
coupon?: string;
|
|
1308
|
-
auto_collection?:
|
|
1309
|
-
offline_payment_method?:
|
|
1309
|
+
auto_collection?: AutoCollectionEnum;
|
|
1310
|
+
offline_payment_method?: OfflinePaymentMethodEnum;
|
|
1310
1311
|
contract_term_billing_cycle_on_renewal?: number;
|
|
1311
1312
|
}
|
|
1312
1313
|
|
|
@@ -1319,24 +1320,24 @@ declare module 'chargebee' {
|
|
|
1319
1320
|
billing_cycles?: number;
|
|
1320
1321
|
trial_end?: number;
|
|
1321
1322
|
service_period_days?: number;
|
|
1322
|
-
charge_on_event?:
|
|
1323
|
+
charge_on_event?: ChargeOnEventEnum;
|
|
1323
1324
|
charge_once?: boolean;
|
|
1324
|
-
charge_on_option?:
|
|
1325
|
+
charge_on_option?: ChargeOnOptionEnum;
|
|
1325
1326
|
/**
|
|
1326
1327
|
* @deprecated Please refer API docs to use other attributes
|
|
1327
1328
|
*/
|
|
1328
|
-
item_type?:
|
|
1329
|
+
item_type?: ItemTypeEnum;
|
|
1329
1330
|
}
|
|
1330
1331
|
export interface DiscountsEditUpdateSubscriptionQuoteForItemsInputParam {
|
|
1331
|
-
apply_on:
|
|
1332
|
-
duration_type:
|
|
1332
|
+
apply_on: ApplyOnEnum;
|
|
1333
|
+
duration_type: DurationTypeEnum;
|
|
1333
1334
|
percentage?: number;
|
|
1334
1335
|
amount?: number;
|
|
1335
1336
|
period?: number;
|
|
1336
|
-
period_unit?:
|
|
1337
|
+
period_unit?: PeriodUnitEnum;
|
|
1337
1338
|
included_in_mrr?: boolean;
|
|
1338
1339
|
item_price_id?: string;
|
|
1339
|
-
operation_type:
|
|
1340
|
+
operation_type: OperationTypeEnum;
|
|
1340
1341
|
id?: string;
|
|
1341
1342
|
}
|
|
1342
1343
|
export interface ItemTiersEditUpdateSubscriptionQuoteForItemsInputParam {
|
|
@@ -1362,14 +1363,14 @@ declare module 'chargebee' {
|
|
|
1362
1363
|
state?: string;
|
|
1363
1364
|
zip?: string;
|
|
1364
1365
|
country?: string;
|
|
1365
|
-
validation_status?:
|
|
1366
|
+
validation_status?: ValidationStatusEnum;
|
|
1366
1367
|
}
|
|
1367
1368
|
|
|
1368
1369
|
export interface ChargesCreateForChargeItemsAndChargesInputParam {
|
|
1369
1370
|
amount?: number;
|
|
1370
1371
|
amount_in_decimal?: string;
|
|
1371
1372
|
description?: string;
|
|
1372
|
-
avalara_sale_type?:
|
|
1373
|
+
avalara_sale_type?: AvalaraSaleTypeEnum;
|
|
1373
1374
|
avalara_transaction_type?: number;
|
|
1374
1375
|
avalara_service_type?: number;
|
|
1375
1376
|
service_period?: number;
|
|
@@ -1377,7 +1378,7 @@ declare module 'chargebee' {
|
|
|
1377
1378
|
export interface DiscountsCreateForChargeItemsAndChargesInputParam {
|
|
1378
1379
|
percentage?: number;
|
|
1379
1380
|
amount?: number;
|
|
1380
|
-
apply_on:
|
|
1381
|
+
apply_on: ApplyOnEnum;
|
|
1381
1382
|
item_price_id?: string;
|
|
1382
1383
|
}
|
|
1383
1384
|
export interface ItemTiersCreateForChargeItemsAndChargesInputParam {
|
|
@@ -1416,14 +1417,14 @@ declare module 'chargebee' {
|
|
|
1416
1417
|
state?: string;
|
|
1417
1418
|
zip?: string;
|
|
1418
1419
|
country?: string;
|
|
1419
|
-
validation_status?:
|
|
1420
|
+
validation_status?: ValidationStatusEnum;
|
|
1420
1421
|
}
|
|
1421
1422
|
|
|
1422
1423
|
export interface ChargesEditForChargeItemsAndChargesInputParam {
|
|
1423
1424
|
amount?: number;
|
|
1424
1425
|
amount_in_decimal?: string;
|
|
1425
1426
|
description?: string;
|
|
1426
|
-
avalara_sale_type?:
|
|
1427
|
+
avalara_sale_type?: AvalaraSaleTypeEnum;
|
|
1427
1428
|
avalara_transaction_type?: number;
|
|
1428
1429
|
avalara_service_type?: number;
|
|
1429
1430
|
service_period?: number;
|
|
@@ -1431,7 +1432,7 @@ declare module 'chargebee' {
|
|
|
1431
1432
|
export interface DiscountsEditForChargeItemsAndChargesInputParam {
|
|
1432
1433
|
percentage?: number;
|
|
1433
1434
|
amount?: number;
|
|
1434
|
-
apply_on:
|
|
1435
|
+
apply_on: ApplyOnEnum;
|
|
1435
1436
|
item_price_id?: string;
|
|
1436
1437
|
}
|
|
1437
1438
|
export interface ItemTiersEditForChargeItemsAndChargesInputParam {
|
|
@@ -1458,7 +1459,7 @@ declare module 'chargebee' {
|
|
|
1458
1459
|
}
|
|
1459
1460
|
export interface SubscriptionConvertInputParam {
|
|
1460
1461
|
id?: string;
|
|
1461
|
-
auto_collection?:
|
|
1462
|
+
auto_collection?: AutoCollectionEnum;
|
|
1462
1463
|
po_number?: string;
|
|
1463
1464
|
auto_close_invoices?: boolean;
|
|
1464
1465
|
}
|
|
@@ -14,7 +14,7 @@ declare module 'chargebee' {
|
|
|
14
14
|
trial_end?: number;
|
|
15
15
|
remaining_billing_cycles?: number;
|
|
16
16
|
po_number?: string;
|
|
17
|
-
auto_collection?:
|
|
17
|
+
auto_collection?: AutoCollectionEnum;
|
|
18
18
|
plan_quantity_in_decimal?: string;
|
|
19
19
|
plan_unit_price_in_decimal?: string;
|
|
20
20
|
changes_scheduled_at?: number;
|
|
@@ -86,6 +86,9 @@ declare module 'chargebee' {
|
|
|
86
86
|
charge_once?: boolean;
|
|
87
87
|
charge_on_option?: 'immediately' | 'on_event';
|
|
88
88
|
proration_type?: 'full_term' | 'partial_term' | 'none';
|
|
89
|
+
usage_accumulation_reset_frequency?:
|
|
90
|
+
| 'never'
|
|
91
|
+
| 'subscription_billing_frequency';
|
|
89
92
|
}
|
|
90
93
|
export interface ItemTier {
|
|
91
94
|
item_price_id: string;
|
|
@@ -206,12 +206,12 @@ declare module 'chargebee' {
|
|
|
206
206
|
service_period_days?: number;
|
|
207
207
|
}
|
|
208
208
|
export interface DiscountsToAddCreateForSubscriptionInputParam {
|
|
209
|
-
apply_on:
|
|
210
|
-
duration_type:
|
|
209
|
+
apply_on: ApplyOnEnum;
|
|
210
|
+
duration_type: DurationTypeEnum;
|
|
211
211
|
percentage?: number;
|
|
212
212
|
amount?: number;
|
|
213
213
|
period?: number;
|
|
214
|
-
period_unit?:
|
|
214
|
+
period_unit?: PeriodUnitEnum;
|
|
215
215
|
included_in_mrr?: boolean;
|
|
216
216
|
item_price_id?: string;
|
|
217
217
|
}
|
|
@@ -247,12 +247,12 @@ declare module 'chargebee' {
|
|
|
247
247
|
service_period_days?: number;
|
|
248
248
|
}
|
|
249
249
|
export interface DiscountsToAddUpdateInputParam {
|
|
250
|
-
apply_on:
|
|
251
|
-
duration_type:
|
|
250
|
+
apply_on: ApplyOnEnum;
|
|
251
|
+
duration_type: DurationTypeEnum;
|
|
252
252
|
percentage?: number;
|
|
253
253
|
amount?: number;
|
|
254
254
|
period?: number;
|
|
255
|
-
period_unit?:
|
|
255
|
+
period_unit?: PeriodUnitEnum;
|
|
256
256
|
included_in_mrr?: boolean;
|
|
257
257
|
item_price_id?: string;
|
|
258
258
|
}
|