chargebee 3.12.0-beta.1 → 3.12.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.
Files changed (31) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/cjs/environment.js +1 -1
  3. package/cjs/resources/api_endpoints.js +75 -4
  4. package/esm/environment.js +1 -1
  5. package/esm/resources/api_endpoints.js +75 -4
  6. package/package.json +1 -1
  7. package/types/core.d.ts +8 -1
  8. package/types/index.d.ts +8 -0
  9. package/types/resources/Comment.d.ts +4 -0
  10. package/types/resources/CreditNote.d.ts +83 -76
  11. package/types/resources/Customer.d.ts +1 -0
  12. package/types/resources/CustomerEntitlement.d.ts +1 -0
  13. package/types/resources/Discount.d.ts +2 -1
  14. package/types/resources/Estimate.d.ts +4 -0
  15. package/types/resources/HostedPage.d.ts +3 -0
  16. package/types/resources/ImpactedCustomer.d.ts +19 -0
  17. package/types/resources/Invoice.d.ts +86 -79
  18. package/types/resources/OmnichannelOneTimeOrder.d.ts +62 -0
  19. package/types/resources/OmnichannelOneTimeOrderItem.d.ts +20 -0
  20. package/types/resources/OmnichannelSubscriptionItemScheduledChange.d.ts +1 -1
  21. package/types/resources/PricingPageSession.d.ts +2 -0
  22. package/types/resources/PromotionalCredit.d.ts +1 -0
  23. package/types/resources/Purchase.d.ts +2 -0
  24. package/types/resources/Quote.d.ts +6 -0
  25. package/types/resources/QuotedCharge.d.ts +5 -0
  26. package/types/resources/RecordedPurchase.d.ts +6 -0
  27. package/types/resources/Subscription.d.ts +9 -2
  28. package/types/resources/SubscriptionEntitlementsCreatedDetail.d.ts +9 -0
  29. package/types/resources/SubscriptionEntitlementsUpdatedDetail.d.ts +9 -0
  30. package/types/resources/UsageFile.d.ts +8 -8
  31. package/types/resources/WebhookEndpoint.d.ts +98 -0
@@ -625,6 +625,7 @@ declare module 'chargebee' {
625
625
  period_unit?: PeriodUnitEnum;
626
626
  included_in_mrr?: boolean;
627
627
  item_price_id?: string;
628
+ quantity?: number;
628
629
  }
629
630
  export interface ItemTiersCreateSubItemEstimateInputParam {
630
631
  item_price_id?: string;
@@ -765,6 +766,7 @@ declare module 'chargebee' {
765
766
  period_unit?: PeriodUnitEnum;
766
767
  included_in_mrr?: boolean;
767
768
  item_price_id?: string;
769
+ quantity?: number;
768
770
  }
769
771
  export interface ItemTiersCreateSubItemForCustomerEstimateInputParam {
770
772
  item_price_id?: string;
@@ -927,6 +929,7 @@ declare module 'chargebee' {
927
929
  period_unit?: PeriodUnitEnum;
928
930
  included_in_mrr?: boolean;
929
931
  item_price_id?: string;
932
+ quantity?: number;
930
933
  operation_type: OperationTypeEnum;
931
934
  id?: string;
932
935
  }
@@ -1232,6 +1235,7 @@ declare module 'chargebee' {
1232
1235
  export interface DiscountsCreateInvoiceForItemsInputParam {
1233
1236
  percentage?: number;
1234
1237
  amount?: number;
1238
+ quantity?: number;
1235
1239
  apply_on: ApplyOnEnum;
1236
1240
  item_price_id?: string;
1237
1241
  }
@@ -720,6 +720,7 @@ declare module 'chargebee' {
720
720
  export interface DiscountsCheckoutOneTimeForItemsInputParam {
721
721
  percentage?: number;
722
722
  amount?: number;
723
+ quantity?: number;
723
724
  apply_on: ApplyOnEnum;
724
725
  item_price_id?: string;
725
726
  }
@@ -850,6 +851,7 @@ declare module 'chargebee' {
850
851
  period_unit?: PeriodUnitEnum;
851
852
  included_in_mrr?: boolean;
852
853
  item_price_id?: string;
854
+ quantity?: number;
853
855
  }
854
856
  export interface EntityIdentifiersCheckoutNewForItemsInputParam {
855
857
  id?: string;
@@ -985,6 +987,7 @@ declare module 'chargebee' {
985
987
  period_unit?: PeriodUnitEnum;
986
988
  included_in_mrr?: boolean;
987
989
  item_price_id?: string;
990
+ quantity?: number;
988
991
  operation_type: OperationTypeEnum;
989
992
  id?: string;
990
993
  }
@@ -0,0 +1,19 @@
1
+ ///<reference path='./../core.d.ts'/>
2
+ ///<reference path='./../index.d.ts'/>
3
+
4
+ declare module 'chargebee' {
5
+ export interface ImpactedCustomer {
6
+ action_type?: string;
7
+ download?: ImpactedCustomer.Download;
8
+ }
9
+
10
+ export namespace ImpactedCustomer {
11
+ export interface Download {
12
+ download_url: string;
13
+ valid_till: number;
14
+ mime_type?: string;
15
+ }
16
+ // REQUEST PARAMS
17
+ //---------------
18
+ }
19
+ }
@@ -4,8 +4,8 @@
4
4
  declare module 'chargebee' {
5
5
  export interface Invoice {
6
6
  id: string;
7
- po_number?: string;
8
7
  customer_id: string;
8
+ payment_owner?: string;
9
9
  subscription_id?: string;
10
10
  recurring: boolean;
11
11
  status:
@@ -15,31 +15,32 @@ declare module 'chargebee' {
15
15
  | 'not_paid'
16
16
  | 'voided'
17
17
  | 'pending';
18
- vat_number?: string;
19
- price_type: PriceTypeEnum;
20
18
  date?: number;
21
19
  due_date?: number;
22
20
  net_term_days?: number;
21
+ po_number?: string;
22
+ vat_number?: string;
23
+ price_type: PriceTypeEnum;
23
24
  exchange_rate?: number;
25
+ local_currency_exchange_rate?: number;
24
26
  currency_code: string;
27
+ local_currency_code?: string;
28
+ tax: number;
29
+ sub_total: number;
30
+ sub_total_in_local_currency?: number;
25
31
  total?: number;
26
- amount_paid?: number;
32
+ total_in_local_currency?: number;
33
+ amount_due?: number;
27
34
  amount_adjusted?: number;
35
+ amount_paid?: number;
36
+ paid_at?: number;
28
37
  write_off_amount?: number;
29
38
  credits_applied?: number;
30
- amount_due?: number;
31
- paid_at?: number;
32
39
  dunning_status?: 'in_progress' | 'exhausted' | 'stopped' | 'success';
33
40
  next_retry_at?: number;
34
41
  voided_at?: number;
35
42
  resource_version?: number;
36
43
  updated_at?: number;
37
- sub_total: number;
38
- sub_total_in_local_currency?: number;
39
- total_in_local_currency?: number;
40
- local_currency_code?: string;
41
- tax: number;
42
- local_currency_exchange_rate?: number;
43
44
  first_invoice?: boolean;
44
45
  new_sales_amount?: number;
45
46
  has_advance_charges?: boolean;
@@ -50,12 +51,14 @@ declare module 'chargebee' {
50
51
  amount_to_collect?: number;
51
52
  round_off_amount?: number;
52
53
  line_items?: Invoice.LineItem[];
53
- discounts?: Invoice.Discount[];
54
+ line_item_tiers?: Invoice.LineItemTier[];
54
55
  line_item_discounts?: Invoice.LineItemDiscount[];
55
- taxes?: Invoice.Tax[];
56
56
  line_item_taxes?: Invoice.LineItemTax[];
57
57
  line_item_credits?: Invoice.LineItemCredit[];
58
- line_item_tiers?: Invoice.LineItemTier[];
58
+ line_item_addresses?: Invoice.LineItemAddress[];
59
+ discounts?: Invoice.Discount[];
60
+ taxes?: Invoice.Tax[];
61
+ tax_origin?: Invoice.TaxOrigin;
59
62
  linked_payments?: Invoice.LinkedPayment[];
60
63
  dunning_attempts?: Invoice.DunningAttempt[];
61
64
  applied_credits?: Invoice.AppliedCredit[];
@@ -64,10 +67,9 @@ declare module 'chargebee' {
64
67
  linked_orders?: Invoice.LinkedOrder[];
65
68
  notes?: Invoice.Note[];
66
69
  shipping_address?: Invoice.ShippingAddress;
67
- statement_descriptor?: Invoice.StatementDescriptor;
68
70
  billing_address?: Invoice.BillingAddress;
71
+ statement_descriptor?: Invoice.StatementDescriptor;
69
72
  einvoice?: Invoice.Einvoice;
70
- payment_owner?: string;
71
73
  void_reason_code?: string;
72
74
  deleted: boolean;
73
75
  tax_category?: string;
@@ -75,8 +77,6 @@ declare module 'chargebee' {
75
77
  channel?: ChannelEnum;
76
78
  business_entity_id?: string;
77
79
  site_details_at_creation?: Invoice.SiteDetailsAtCreation;
78
- tax_origin?: Invoice.TaxOrigin;
79
- line_item_addresses?: Invoice.LineItemAddress[];
80
80
  }
81
81
 
82
82
  export namespace Invoice {
@@ -533,19 +533,18 @@ declare module 'chargebee' {
533
533
  entity_id?: string;
534
534
  customer_id?: string;
535
535
  }
536
- export interface Discount {
537
- amount: number;
538
- description?: string;
539
- entity_type:
540
- | 'item_level_coupon'
541
- | 'document_level_coupon'
542
- | 'promotional_credits'
543
- | 'prorated_credits'
544
- | 'item_level_discount'
545
- | 'document_level_discount';
546
- discount_type?: 'fixed_amount' | 'percentage';
547
- entity_id?: string;
548
- coupon_set_code?: string;
536
+ export interface LineItemTier {
537
+ line_item_id?: string;
538
+ starting_unit: number;
539
+ ending_unit?: number;
540
+ quantity_used: number;
541
+ unit_amount: number;
542
+ starting_unit_in_decimal?: string;
543
+ ending_unit_in_decimal?: string;
544
+ quantity_used_in_decimal?: string;
545
+ unit_amount_in_decimal?: string;
546
+ pricing_type?: 'per_unit' | 'flat_fee' | 'package';
547
+ package_size?: number;
549
548
  }
550
549
  export interface LineItemDiscount {
551
550
  line_item_id: string;
@@ -560,11 +559,6 @@ declare module 'chargebee' {
560
559
  entity_id?: string;
561
560
  discount_amount: number;
562
561
  }
563
- export interface Tax {
564
- name: string;
565
- amount: number;
566
- description?: string;
567
- }
568
562
  export interface LineItemTax {
569
563
  line_item_id?: string;
570
564
  tax_name: string;
@@ -595,18 +589,49 @@ declare module 'chargebee' {
595
589
  applied_amount: number;
596
590
  line_item_id?: string;
597
591
  }
598
- export interface LineItemTier {
592
+ export interface LineItemAddress {
599
593
  line_item_id?: string;
600
- starting_unit: number;
601
- ending_unit?: number;
602
- quantity_used: number;
603
- unit_amount: number;
604
- starting_unit_in_decimal?: string;
605
- ending_unit_in_decimal?: string;
606
- quantity_used_in_decimal?: string;
607
- unit_amount_in_decimal?: string;
608
- pricing_type?: 'per_unit' | 'flat_fee' | 'package';
609
- package_size?: number;
594
+ first_name?: string;
595
+ last_name?: string;
596
+ email?: string;
597
+ company?: string;
598
+ phone?: string;
599
+ line1?: string;
600
+ line2?: string;
601
+ line3?: string;
602
+ city?: string;
603
+ state_code?: string;
604
+ state?: string;
605
+ country?: string;
606
+ zip?: string;
607
+ validation_status?:
608
+ | 'not_validated'
609
+ | 'valid'
610
+ | 'partially_valid'
611
+ | 'invalid';
612
+ }
613
+ export interface Discount {
614
+ amount: number;
615
+ description?: string;
616
+ entity_type:
617
+ | 'item_level_coupon'
618
+ | 'document_level_coupon'
619
+ | 'promotional_credits'
620
+ | 'prorated_credits'
621
+ | 'item_level_discount'
622
+ | 'document_level_discount';
623
+ discount_type?: 'fixed_amount' | 'percentage';
624
+ entity_id?: string;
625
+ coupon_set_code?: string;
626
+ }
627
+ export interface Tax {
628
+ name: string;
629
+ amount: number;
630
+ description?: string;
631
+ }
632
+ export interface TaxOrigin {
633
+ country?: string;
634
+ registration_number?: string;
610
635
  }
611
636
  export interface LinkedPayment {
612
637
  txn_id: string;
@@ -753,10 +778,6 @@ declare module 'chargebee' {
753
778
  validation_status?: ValidationStatusEnum;
754
779
  index: number;
755
780
  }
756
- export interface StatementDescriptor {
757
- id: string;
758
- descriptor?: string;
759
- }
760
781
  export interface BillingAddress {
761
782
  first_name?: string;
762
783
  last_name?: string;
@@ -773,6 +794,10 @@ declare module 'chargebee' {
773
794
  zip?: string;
774
795
  validation_status?: ValidationStatusEnum;
775
796
  }
797
+ export interface StatementDescriptor {
798
+ id: string;
799
+ descriptor?: string;
800
+ }
776
801
  export interface Einvoice {
777
802
  id: string;
778
803
  reference_number?: string;
@@ -789,31 +814,6 @@ declare module 'chargebee' {
789
814
  timezone?: string;
790
815
  organization_address?: object;
791
816
  }
792
- export interface TaxOrigin {
793
- country?: string;
794
- registration_number?: string;
795
- }
796
- export interface LineItemAddress {
797
- line_item_id?: string;
798
- first_name?: string;
799
- last_name?: string;
800
- email?: string;
801
- company?: string;
802
- phone?: string;
803
- line1?: string;
804
- line2?: string;
805
- line3?: string;
806
- city?: string;
807
- state_code?: string;
808
- state?: string;
809
- country?: string;
810
- zip?: string;
811
- validation_status?:
812
- | 'not_validated'
813
- | 'valid'
814
- | 'partially_valid'
815
- | 'invalid';
816
- }
817
817
  // REQUEST PARAMS
818
818
  //---------------
819
819
 
@@ -1421,6 +1421,7 @@ declare module 'chargebee' {
1421
1421
  export interface DiscountsCreateForChargeItemsAndChargesInputParam {
1422
1422
  percentage?: number;
1423
1423
  amount?: number;
1424
+ quantity?: number;
1424
1425
  apply_on: ApplyOnEnum;
1425
1426
  item_price_id?: string;
1426
1427
  }
@@ -1524,7 +1525,9 @@ declare module 'chargebee' {
1524
1525
  | 'coupon'
1525
1526
  | 'plan_item_price'
1526
1527
  | 'addon_item_price'
1527
- | 'charge_item_price';
1528
+ | 'charge_item_price'
1529
+ | 'plan'
1530
+ | 'addon';
1528
1531
  entity_id?: string;
1529
1532
  note?: string;
1530
1533
  }
@@ -1540,6 +1543,7 @@ declare module 'chargebee' {
1540
1543
  amount: number;
1541
1544
  }
1542
1545
  export interface PaymentsImportInvoiceInputParam {
1546
+ id?: string;
1543
1547
  amount: number;
1544
1548
  payment_method: PaymentMethodEnum;
1545
1549
  date?: number;
@@ -1606,7 +1610,10 @@ declare module 'chargebee' {
1606
1610
  | 'adhoc'
1607
1611
  | 'plan_item_price'
1608
1612
  | 'addon_item_price'
1609
- | 'charge_item_price';
1613
+ | 'charge_item_price'
1614
+ | 'plan_setup'
1615
+ | 'plan'
1616
+ | 'addon';
1610
1617
  entity_id?: string;
1611
1618
  item_level_discount1_entity_id?: string;
1612
1619
  item_level_discount1_amount?: number;
@@ -0,0 +1,62 @@
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 OmnichannelOneTimeOrder {
6
+ id: string;
7
+ app_id: string;
8
+ customer_id?: string;
9
+ id_at_source: string;
10
+ origin?: string;
11
+ source: 'apple_app_store' | 'google_play_store';
12
+ created_at: number;
13
+ resource_version?: number;
14
+ omnichannel_one_time_order_items: OmnichannelOneTimeOrderItem[];
15
+ purchase_transaction?: OmnichannelOneTimeOrder.OmnichannelTransaction;
16
+ }
17
+
18
+ export namespace OmnichannelOneTimeOrder {
19
+ export class OmnichannelOneTimeOrderResource {
20
+ retrieve(
21
+ omnichannel_one_time_order_id: string,
22
+ headers?: ChargebeeRequestHeader,
23
+ ): Promise<ChargebeeResponse<RetrieveResponse>>;
24
+
25
+ list(
26
+ input?: ListInputParam,
27
+ headers?: ChargebeeRequestHeader,
28
+ ): Promise<ChargebeeResponse<ListResponse>>;
29
+ }
30
+
31
+ export interface RetrieveResponse {
32
+ omnichannel_one_time_order: OmnichannelOneTimeOrder;
33
+ }
34
+
35
+ export interface ListResponse {
36
+ list: { omnichannel_one_time_order: OmnichannelOneTimeOrder }[];
37
+ next_offset?: string;
38
+ }
39
+
40
+ export interface OmnichannelTransaction {
41
+ id: string;
42
+ id_at_source: string;
43
+ app_id: string;
44
+ price_currency?: string;
45
+ price_units?: number;
46
+ price_nanos?: number;
47
+ type: 'purchase' | 'renewal';
48
+ transacted_at?: number;
49
+ created_at: number;
50
+ resource_version?: number;
51
+ }
52
+ // REQUEST PARAMS
53
+ //---------------
54
+
55
+ export interface ListInputParam {
56
+ limit?: number;
57
+ offset?: string;
58
+ source?: filter.Enum;
59
+ customer_id?: filter.String;
60
+ }
61
+ }
62
+ }
@@ -0,0 +1,20 @@
1
+ ///<reference path='./../core.d.ts'/>
2
+ ///<reference path='./../index.d.ts'/>
3
+
4
+ declare module 'chargebee' {
5
+ export interface OmnichannelOneTimeOrderItem {
6
+ id: string;
7
+ item_id_at_source: string;
8
+ item_type_at_source?: string;
9
+ quantity?: number;
10
+ cancelled_at?: number;
11
+ cancellation_reason?:
12
+ | 'customer_cancelled'
13
+ | 'customer_did_not_consent_to_price_increase'
14
+ | 'refunded_due_to_app_issue'
15
+ | 'refunded_for_other_reason'
16
+ | 'merchant_revoked';
17
+ created_at: number;
18
+ resource_version?: number;
19
+ }
20
+ }
@@ -6,7 +6,7 @@ declare module 'chargebee' {
6
6
  id?: string;
7
7
  omnichannel_subscription_item_id?: string;
8
8
  scheduled_at: number;
9
- change_type: 'downgrade';
9
+ change_type: 'downgrade' | 'pause';
10
10
  created_at: number;
11
11
  modified_at: number;
12
12
  resource_version?: number;
@@ -106,6 +106,7 @@ declare module 'chargebee' {
106
106
  period_unit?: PeriodUnitEnum;
107
107
  included_in_mrr?: boolean;
108
108
  item_price_id?: string;
109
+ quantity?: number;
109
110
  label?: string;
110
111
  }
111
112
  export interface PricingPageCreateForExistingSubscriptionInputParam {
@@ -124,6 +125,7 @@ declare module 'chargebee' {
124
125
  period_unit?: PeriodUnitEnum;
125
126
  included_in_mrr?: boolean;
126
127
  item_price_id?: string;
128
+ quantity?: number;
127
129
  label?: string;
128
130
  }
129
131
  }
@@ -15,6 +15,7 @@ declare module 'chargebee' {
15
15
  closing_balance: number;
16
16
  done_by?: string;
17
17
  created_at: number;
18
+ business_entity_id?: string;
18
19
  }
19
20
 
20
21
  export namespace PromotionalCredit {
@@ -126,6 +126,7 @@ declare module 'chargebee' {
126
126
  index?: number;
127
127
  coupon_id?: string;
128
128
  percentage?: number;
129
+ quantity?: number;
129
130
  amount?: number;
130
131
  included_in_mrr?: boolean;
131
132
  }
@@ -199,6 +200,7 @@ declare module 'chargebee' {
199
200
  index?: number;
200
201
  coupon_id?: string;
201
202
  percentage?: number;
203
+ quantity?: number;
202
204
  amount?: number;
203
205
  included_in_mrr?: boolean;
204
206
  }
@@ -1150,6 +1150,7 @@ declare module 'chargebee' {
1150
1150
  period_unit?: PeriodUnitEnum;
1151
1151
  included_in_mrr?: boolean;
1152
1152
  item_price_id?: string;
1153
+ quantity?: number;
1153
1154
  start_date?: number;
1154
1155
  end_date?: number;
1155
1156
  }
@@ -1247,6 +1248,7 @@ declare module 'chargebee' {
1247
1248
  period_unit?: PeriodUnitEnum;
1248
1249
  included_in_mrr?: boolean;
1249
1250
  item_price_id?: string;
1251
+ quantity?: number;
1250
1252
  start_date?: number;
1251
1253
  end_date?: number;
1252
1254
  }
@@ -1354,6 +1356,7 @@ declare module 'chargebee' {
1354
1356
  period_unit?: PeriodUnitEnum;
1355
1357
  included_in_mrr?: boolean;
1356
1358
  item_price_id?: string;
1359
+ quantity?: number;
1357
1360
  operation_type: OperationTypeEnum;
1358
1361
  id?: string;
1359
1362
  start_date?: number;
@@ -1462,6 +1465,7 @@ declare module 'chargebee' {
1462
1465
  period_unit?: PeriodUnitEnum;
1463
1466
  included_in_mrr?: boolean;
1464
1467
  item_price_id?: string;
1468
+ quantity?: number;
1465
1469
  operation_type: OperationTypeEnum;
1466
1470
  id?: string;
1467
1471
  start_date?: number;
@@ -1528,6 +1532,7 @@ declare module 'chargebee' {
1528
1532
  }
1529
1533
  export interface DiscountsCreateForChargeItemsAndChargesInputParam {
1530
1534
  percentage?: number;
1535
+ quantity?: number;
1531
1536
  amount?: number;
1532
1537
  apply_on: ApplyOnEnum;
1533
1538
  item_price_id?: string;
@@ -1600,6 +1605,7 @@ declare module 'chargebee' {
1600
1605
  }
1601
1606
  export interface DiscountsEditForChargeItemsAndChargesInputParam {
1602
1607
  percentage?: number;
1608
+ quantity?: number;
1603
1609
  amount?: number;
1604
1610
  apply_on: ApplyOnEnum;
1605
1611
  item_price_id?: string;
@@ -8,6 +8,7 @@ declare module 'chargebee' {
8
8
  invoice_items?: QuotedCharge.InvoiceItem[];
9
9
  item_tiers?: QuotedCharge.ItemTier[];
10
10
  coupons?: QuotedCharge.Coupon[];
11
+ coupon_applicability_mappings?: QuotedCharge.CouponApplicabilityMapping[];
11
12
  }
12
13
 
13
14
  export namespace QuotedCharge {
@@ -52,6 +53,10 @@ declare module 'chargebee' {
52
53
  export interface Coupon {
53
54
  coupon_id: string;
54
55
  }
56
+ export interface CouponApplicabilityMapping {
57
+ coupon_id?: string;
58
+ applicable_item_price_ids?: string[];
59
+ }
55
60
  // REQUEST PARAMS
56
61
  //---------------
57
62
  }
@@ -12,6 +12,7 @@ declare module 'chargebee' {
12
12
  created_at: number;
13
13
  resource_version?: number;
14
14
  linked_omnichannel_subscriptions?: RecordedPurchase.LinkedOmnichannelSubscription[];
15
+ linked_omnichannel_one_time_orders?: RecordedPurchase.LinkedOmnichannelOneTimeOrder[];
15
16
  error_detail?: RecordedPurchase.ErrorDetail;
16
17
  }
17
18
 
@@ -40,6 +41,9 @@ declare module 'chargebee' {
40
41
  export interface LinkedOmnichannelSubscription {
41
42
  omnichannel_subscription_id?: string;
42
43
  }
44
+ export interface LinkedOmnichannelOneTimeOrder {
45
+ omnichannel_one_time_order_id?: string;
46
+ }
43
47
  export interface ErrorDetail {
44
48
  error_message?: string;
45
49
  }
@@ -58,6 +62,8 @@ declare module 'chargebee' {
58
62
  }
59
63
  export interface GooglePlayStoreCreateInputParam {
60
64
  purchase_token?: string;
65
+ product_id?: string;
66
+ order_id?: string;
61
67
  }
62
68
  export interface AppleAppStoreCreateInputParam {
63
69
  transaction_id?: string;
@@ -689,9 +689,10 @@ declare module 'chargebee' {
689
689
  export interface Discount {
690
690
  id: string;
691
691
  invoice_name?: string;
692
- type: 'fixed_amount' | 'percentage';
692
+ type: 'fixed_amount' | 'percentage' | 'offer_quantity';
693
693
  percentage?: number;
694
694
  amount?: number;
695
+ quantity?: number;
695
696
  currency_code?: string;
696
697
  duration_type: 'one_time' | 'forever' | 'limited_period';
697
698
  period?: number;
@@ -1659,6 +1660,7 @@ declare module 'chargebee' {
1659
1660
  period_unit?: PeriodUnitEnum;
1660
1661
  included_in_mrr?: boolean;
1661
1662
  item_price_id?: string;
1663
+ quantity?: number;
1662
1664
  }
1663
1665
  export interface CouponsCreateWithItemsInputParam {
1664
1666
  /**
@@ -2003,6 +2005,7 @@ declare module 'chargebee' {
2003
2005
  period_unit?: PeriodUnitEnum;
2004
2006
  included_in_mrr?: boolean;
2005
2007
  item_price_id?: string;
2008
+ quantity?: number;
2006
2009
  operation_type: OperationTypeEnum;
2007
2010
  id?: string;
2008
2011
  }
@@ -2341,7 +2344,10 @@ declare module 'chargebee' {
2341
2344
  | 'adhoc'
2342
2345
  | 'plan_item_price'
2343
2346
  | 'addon_item_price'
2344
- | 'charge_item_price';
2347
+ | 'charge_item_price'
2348
+ | 'plan_setup'
2349
+ | 'plan'
2350
+ | 'addon';
2345
2351
  entity_id?: string;
2346
2352
  description?: string;
2347
2353
  unit_amount?: number;
@@ -2412,6 +2418,7 @@ declare module 'chargebee' {
2412
2418
  period_unit?: PeriodUnitEnum;
2413
2419
  included_in_mrr?: boolean;
2414
2420
  item_price_id?: string;
2421
+ quantity?: number;
2415
2422
  }
2416
2423
  export interface CouponsImportForItemsInputParam {
2417
2424
  /**
@@ -0,0 +1,9 @@
1
+ ///<reference path='./../core.d.ts'/>
2
+ ///<reference path='./../index.d.ts'/>
3
+
4
+ declare module 'chargebee' {
5
+ export interface SubscriptionEntitlementsCreatedDetail {
6
+ subscription_id?: string;
7
+ has_next: boolean;
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ ///<reference path='./../core.d.ts'/>
2
+ ///<reference path='./../index.d.ts'/>
3
+
4
+ declare module 'chargebee' {
5
+ export interface SubscriptionEntitlementsUpdatedDetail {
6
+ subscription_id?: string;
7
+ has_next: boolean;
8
+ }
9
+ }