chargebee 3.12.0-beta.1 → 3.13.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 (40) hide show
  1. package/CHANGELOG.md +71 -0
  2. package/README.md +30 -1
  3. package/cjs/environment.js +1 -1
  4. package/cjs/resources/api_endpoints.js +75 -4
  5. package/esm/environment.js +1 -1
  6. package/esm/resources/api_endpoints.js +75 -4
  7. package/package.json +2 -2
  8. package/types/core.d.ts +8 -1
  9. package/types/index.d.ts +17 -0
  10. package/types/resources/BusinessEntityChange.d.ts +16 -0
  11. package/types/resources/Comment.d.ts +4 -0
  12. package/types/resources/Content.d.ts +106 -0
  13. package/types/resources/CreditNote.d.ts +83 -76
  14. package/types/resources/Customer.d.ts +1 -0
  15. package/types/resources/CustomerEntitlement.d.ts +1 -0
  16. package/types/resources/Discount.d.ts +2 -1
  17. package/types/resources/Estimate.d.ts +4 -0
  18. package/types/resources/Event.d.ts +206 -1
  19. package/types/resources/HostedPage.d.ts +4 -1
  20. package/types/resources/ImpactedCustomer.d.ts +19 -0
  21. package/types/resources/Invoice.d.ts +86 -79
  22. package/types/resources/OmnichannelOneTimeOrder.d.ts +62 -0
  23. package/types/resources/OmnichannelOneTimeOrderItem.d.ts +20 -0
  24. package/types/resources/OmnichannelSubscriptionItemScheduledChange.d.ts +1 -1
  25. package/types/resources/PricingPageSession.d.ts +2 -0
  26. package/types/resources/Product.d.ts +135 -0
  27. package/types/resources/PromotionalCredit.d.ts +1 -0
  28. package/types/resources/Purchase.d.ts +2 -0
  29. package/types/resources/Quote.d.ts +6 -0
  30. package/types/resources/QuotedCharge.d.ts +5 -0
  31. package/types/resources/RecordedPurchase.d.ts +6 -0
  32. package/types/resources/SalesOrder.d.ts +143 -0
  33. package/types/resources/Subscription.d.ts +9 -2
  34. package/types/resources/SubscriptionEntitlementsCreatedDetail.d.ts +9 -0
  35. package/types/resources/SubscriptionEntitlementsUpdatedDetail.d.ts +9 -0
  36. package/types/resources/UsageFile.d.ts +8 -8
  37. package/types/resources/UsageReminderInfo.d.ts +9 -0
  38. package/types/resources/Variant.d.ts +116 -0
  39. package/types/resources/WebhookEndpoint.d.ts +98 -0
  40. package/types/resources/WebhookEvent.d.ts +1607 -0
@@ -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
  }
@@ -0,0 +1,135 @@
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 Product {
6
+ id: string;
7
+ name: string;
8
+ external_name: string;
9
+ description?: string;
10
+ has_variant: boolean;
11
+ status: 'active' | 'inactive';
12
+ shippable: boolean;
13
+ sku?: string;
14
+ created_at: number;
15
+ resource_version?: number;
16
+ updated_at?: number;
17
+ deleted: boolean;
18
+ options?: Product.Option[];
19
+ metadata?: any;
20
+ }
21
+
22
+ export namespace Product {
23
+ export class ProductResource {
24
+ create(
25
+ input: CreateInputParam,
26
+ headers?: ChargebeeRequestHeader,
27
+ ): Promise<ChargebeeResponse<CreateResponse>>;
28
+
29
+ retrieve(
30
+ product_id: string,
31
+ headers?: ChargebeeRequestHeader,
32
+ ): Promise<ChargebeeResponse<RetrieveResponse>>;
33
+
34
+ update(
35
+ product_id: string,
36
+ input?: UpdateInputParam,
37
+ headers?: ChargebeeRequestHeader,
38
+ ): Promise<ChargebeeResponse<UpdateResponse>>;
39
+
40
+ delete(
41
+ product_id: string,
42
+ headers?: ChargebeeRequestHeader,
43
+ ): Promise<ChargebeeResponse<DeleteResponse>>;
44
+
45
+ updateOptions(
46
+ product_id: string,
47
+ input: UpdateOptionsInputParam,
48
+ headers?: ChargebeeRequestHeader,
49
+ ): Promise<ChargebeeResponse<UpdateOptionsResponse>>;
50
+
51
+ list(
52
+ input?: ListInputParam,
53
+ headers?: ChargebeeRequestHeader,
54
+ ): Promise<ChargebeeResponse<ListResponse>>;
55
+ }
56
+
57
+ export interface CreateResponse {
58
+ product: Product;
59
+ }
60
+
61
+ export interface RetrieveResponse {
62
+ product: Product;
63
+ }
64
+
65
+ export interface UpdateResponse {
66
+ product: Product;
67
+ }
68
+
69
+ export interface DeleteResponse {
70
+ product: Product;
71
+ }
72
+
73
+ export interface UpdateOptionsResponse {
74
+ product: Product;
75
+ }
76
+
77
+ export interface ListResponse {
78
+ list: { product: Product }[];
79
+ next_offset?: string;
80
+ }
81
+
82
+ export interface Option {
83
+ id?: string;
84
+ name?: string;
85
+ values?: any[];
86
+ default_value?: string;
87
+ type?: 'select';
88
+ }
89
+ // REQUEST PARAMS
90
+ //---------------
91
+
92
+ export interface CreateInputParam {
93
+ name: string;
94
+ external_name: string;
95
+ status: 'active' | 'inactive';
96
+ id?: string;
97
+ description?: string;
98
+ sku?: string;
99
+ metadata?: any;
100
+ shippable?: boolean;
101
+ }
102
+ export interface UpdateInputParam {
103
+ name?: string;
104
+ external_name?: string;
105
+ description?: string;
106
+ status?: 'active' | 'inactive';
107
+ sku?: string;
108
+ shippable?: boolean;
109
+ metadata?: any;
110
+ }
111
+ export interface UpdateOptionsInputParam {
112
+ remove_options?: string[];
113
+ options?: OptionsUpdateOptionsInputParam[];
114
+ }
115
+ export interface ListInputParam {
116
+ limit?: number;
117
+ offset?: string;
118
+ include_deleted?: boolean;
119
+ id?: filter.String;
120
+ name?: filter.String;
121
+ status?: filter.Enum;
122
+ shippable?: filter.Boolean;
123
+ has_variant?: filter.Boolean;
124
+ created_at?: filter.Timestamp;
125
+ updated_at?: filter.Timestamp;
126
+ 'sort_by[asc]'?: string;
127
+ 'sort_by[desc]'?: string;
128
+ }
129
+ export interface OptionsUpdateOptionsInputParam {
130
+ name: string;
131
+ values?: any;
132
+ default_value?: string;
133
+ }
134
+ }
135
+ }
@@ -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;