chargebee 2.51.0 → 2.53.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 (89) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/lib/chargebee.js +1 -1
  3. package/lib/resources/api_endpoints.js +103 -5
  4. package/package.json +1 -1
  5. package/types/core.d.ts +6 -6
  6. package/types/index.d.ts +10 -0
  7. package/types/resources/Addon.d.ts +3 -3
  8. package/types/resources/Address.d.ts +2 -194
  9. package/types/resources/AdvanceInvoiceSchedule.d.ts +5 -67
  10. package/types/resources/AttachedItem.d.ts +1 -1
  11. package/types/resources/Attribute.d.ts +4 -1
  12. package/types/resources/BillingConfiguration.d.ts +21 -0
  13. package/types/resources/Brand.d.ts +12 -0
  14. package/types/resources/BusinessEntity.d.ts +10 -8
  15. package/types/resources/BusinessEntityTransfer.d.ts +10 -7
  16. package/types/resources/Card.d.ts +11 -311
  17. package/types/resources/Comment.d.ts +10 -125
  18. package/types/resources/Contact.d.ts +2 -44
  19. package/types/resources/ContractTerm.d.ts +4 -72
  20. package/types/resources/Coupon.d.ts +4 -41
  21. package/types/resources/CouponCode.d.ts +67 -35
  22. package/types/resources/CouponSet.d.ts +12 -121
  23. package/types/resources/CreditNote.d.ts +89 -95
  24. package/types/resources/Currency.d.ts +8 -5
  25. package/types/resources/Customer.d.ts +96 -95
  26. package/types/resources/CustomerEntitlement.d.ts +3 -1
  27. package/types/resources/DifferentialPrice.d.ts +1 -1
  28. package/types/resources/Discount.d.ts +5 -90
  29. package/types/resources/Download.d.ts +2 -14
  30. package/types/resources/Entitlement.d.ts +15 -103
  31. package/types/resources/EntitlementOverride.d.ts +4 -89
  32. package/types/resources/Estimate.d.ts +6 -14
  33. package/types/resources/Event.d.ts +24 -109
  34. package/types/resources/Export.d.ts +116 -432
  35. package/types/resources/Feature.d.ts +19 -321
  36. package/types/resources/GatewayErrorDetail.d.ts +6 -48
  37. package/types/resources/Gift.d.ts +34 -294
  38. package/types/resources/Hierarchy.d.ts +4 -24
  39. package/types/resources/HostedPage.d.ts +4 -4
  40. package/types/resources/ImpactedCustomer.d.ts +23 -0
  41. package/types/resources/ImpactedItem.d.ts +4 -36
  42. package/types/resources/ImpactedItemPrice.d.ts +5 -2
  43. package/types/resources/ImpactedSubscription.d.ts +3 -30
  44. package/types/resources/InAppSubscription.d.ts +13 -355
  45. package/types/resources/Invoice.d.ts +112 -126
  46. package/types/resources/InvoiceEstimate.d.ts +1 -1
  47. package/types/resources/Item.d.ts +4 -11
  48. package/types/resources/ItemEntitlement.d.ts +15 -155
  49. package/types/resources/ItemFamily.d.ts +3 -3
  50. package/types/resources/ItemPrice.d.ts +7 -7
  51. package/types/resources/NonSubscription.d.ts +9 -6
  52. package/types/resources/OmnichannelOneTimeOrder.d.ts +90 -0
  53. package/types/resources/OmnichannelOneTimeOrderItem.d.ts +24 -0
  54. package/types/resources/OmnichannelSubscription.d.ts +2 -2
  55. package/types/resources/OmnichannelSubscriptionItem.d.ts +1 -1
  56. package/types/resources/OmnichannelSubscriptionItemScheduledChange.d.ts +1 -1
  57. package/types/resources/Order.d.ts +3 -3
  58. package/types/resources/PaymentIntent.d.ts +9 -255
  59. package/types/resources/PaymentReferenceNumber.d.ts +3 -20
  60. package/types/resources/PaymentSource.d.ts +4 -4
  61. package/types/resources/PaymentVoucher.d.ts +22 -205
  62. package/types/resources/Plan.d.ts +3 -3
  63. package/types/resources/PortalSession.d.ts +4 -146
  64. package/types/resources/PriceVariant.d.ts +2 -2
  65. package/types/resources/PricingPageSession.d.ts +2 -2
  66. package/types/resources/PromotionalCredit.d.ts +12 -215
  67. package/types/resources/Purchase.d.ts +5 -3
  68. package/types/resources/Quote.d.ts +32 -14
  69. package/types/resources/QuotedCharge.d.ts +7 -0
  70. package/types/resources/QuotedRamp.d.ts +11 -16
  71. package/types/resources/Ramp.d.ts +7 -7
  72. package/types/resources/RecordedPurchase.d.ts +8 -1
  73. package/types/resources/ResourceMigration.d.ts +2 -54
  74. package/types/resources/SiteMigrationDetail.d.ts +13 -55
  75. package/types/resources/Subscription.d.ts +33 -29
  76. package/types/resources/SubscriptionEntitlement.d.ts +6 -106
  77. package/types/resources/SubscriptionEntitlementsCreatedDetail.d.ts +12 -0
  78. package/types/resources/SubscriptionEntitlementsUpdatedDetail.d.ts +12 -0
  79. package/types/resources/SubscriptionEstimate.d.ts +14 -11
  80. package/types/resources/TaxWithheld.d.ts +14 -26
  81. package/types/resources/ThirdPartyPaymentMethod.d.ts +2 -19
  82. package/types/resources/TimeMachine.d.ts +3 -64
  83. package/types/resources/Token.d.ts +3 -60
  84. package/types/resources/Transaction.d.ts +8 -8
  85. package/types/resources/UnbilledCharge.d.ts +1 -1
  86. package/types/resources/Usage.d.ts +21 -165
  87. package/types/resources/UsageFile.d.ts +5 -5
  88. package/types/resources/VirtualBankAccount.d.ts +1 -1
  89. package/types/resources/WebhookEndpoint.d.ts +117 -0
@@ -1,174 +1,86 @@
1
1
  ///<reference path='./../core.d.ts'/>
2
+ ///<reference path='./../index.d.ts'/>
2
3
  declare module 'chargebee' {
3
4
  export interface Entitlement {
4
5
 
5
- /**
6
- * @description A unique identifier for the entitlement. This is auto-generated.
7
6
 
8
- */
9
-
10
7
  id:string;
11
-
12
- /**
13
- * @description The unique identifier of the entity being granted entitlement to a specific &#x60;feature&#x60;.
14
8
 
15
- */
16
-
17
9
  entity_id?:string;
18
-
19
- /**
20
- * @description The type of the entity that holds this entitlement. \* plan -
21
-
22
- Indicates that the entity is an &#x60;item&#x60; with [type](items?prod_cat_ver&#x3D;2#item_type) set to &#x60;plan&#x60;.
23
- \* addon -
24
-
25
- Indicates that the entity is an &#x60;item&#x60; with [type](items?prod_cat_ver&#x3D;2#item_type) set to &#x60;addon&#x60;.
26
- \* addon_price -
27
10
 
28
- Indicates that the entity is an &#x60;item_price&#x60; associated with an &#x60;item&#x60; with [type](items?prod_cat_ver&#x3D;2#item_type) set to &#x60;addon&#x60;.
29
- \* charge -
11
+ entity_type?:'plan' | 'addon' | 'charge' | 'plan_price' | 'addon_price';
30
12
 
31
- Indicates that the entity is an &#x60;item&#x60; with [type](items?prod_cat_ver&#x3D;2#item_type) set to &#x60;charge&#x60;.
32
- \* plan_price -
33
-
34
- Indicates that the entity is an &#x60;item_price&#x60; associated with an &#x60;item&#x60; of [type](items?prod_cat_ver&#x3D;2#item_type) &#x60;plan&#x60;.
35
-
36
- */
37
-
38
- entity_type?:'charge' | 'addon' | 'addon_price' | 'plan_price' | 'plan';
39
-
40
- /**
41
- * @description The unique identifier of the &#x60;feature&#x60; to which the entity gains entitlement.
42
-
43
- */
44
-
45
13
  feature_id?:string;
46
-
47
- /**
48
- * @description The &#x60;name&#x60; of the feature associated with this entitlement.
49
14
 
50
- */
51
-
52
15
  feature_name?:string;
53
-
54
- /**
55
- * @description The level of entitlement that the entity has towards the feature. The possible values depend on the value of &#x60;feature.type&#x60;:
56
16
 
57
- * When &#x60;feature.type&#x60; is &#x60;quantity&#x60; and:
58
- * If &#x60;feature.levels[is_unlimited]&#x60; is not &#x60;true&#x60; for any one of &#x60;feature.levels[]&#x60;, then the value can be any one of &#x60;feature.levels[value][]&#x60;.
59
- * If &#x60;feature.levels[is_unlimited]&#x60; is &#x60;true&#x60; for one of the &#x60;feature.levels[]&#x60;, then the value can be:
60
- * any one of &#x60;feature.levels[value][]&#x60;
61
- * or it can be &#x60;unlimited&#x60; (case-insensitive), indicating unlimited entitlement.
62
- * When &#x60;type&#x60; is &#x60;range&#x60; and:
63
- * If &#x60;feature.levels[is_unlimited]&#x60; is not &#x60;true&#x60; for any one of &#x60;feature.levels[]&#x60;, then the value can be any whole number between &#x60;levels[value][0]&#x60; and &#x60;levels[value][1]&#x60; (inclusive).
64
- * If &#x60;feature.levels[is_unlimited]&#x60; is &#x60;true&#x60; for one of the &#x60;feature.levels[]&#x60;, then the value can be:
65
- * any whole number equal to or greater than &#x60;levels[value][0]&#x60;
66
- * or it can be &#x60;unlimited&#x60; (case-insensitive), indicating unlimited entitlement.
67
- * When &#x60;type&#x60; is &#x60;custom&#x60;, then the value can be any one of &#x60;feature.levels[value][]&#x60;.
68
- * When &#x60;type&#x60; is &#x60;switch&#x60;, then the value is set as &#x60;available&#x60; or &#x60;true&#x60;.
69
-
70
- */
71
-
72
17
  value?:string;
73
-
74
- /**
75
- * @description The display name for the entitlement level. The value is automatically generated based on &#x60;feature.type&#x60;:
76
18
 
77
- * When &#x60;feature.type&#x60; is &#x60;quantity&#x60; or &#x60;range&#x60;, the &#x60;name&#x60; is the space-separated concatenation of &#x60;value&#x60; and the plural form of &#x60;feature.unit&#x60;. For instance, if &#x60;value&#x60; is &#x60;20&#x60; and &#x60;feature.unit&#x60; is &#x60;user&#x60;, the &#x60;name&#x60; will be &#x60;20 users&#x60;.
78
- * When &#x60;feature.type&#x60; is &#x60;custom&#x60;, the &#x60;name&#x60; matches the &#x60;value&#x60;.
79
-
80
- */
81
-
82
19
  name?:string;
20
+
83
21
  }
84
22
  export namespace Entitlement {
85
23
  export class EntitlementResource {
86
- /**
87
- * @description Retrieves a list of all the &#x60;entitlement&#x60;s associated with the specified &#x60;feature&#x60;.
88
-
89
- */
90
-
91
24
  list(input?:ListInputParam):ChargebeeRequest<ListResponse>;
92
25
 
93
- /**
94
- * @description Create, update, or remove a set of &#x60;entitlement&#x60;s for a feature.
95
-
96
- The behavior depends on the specified &#x60;action&#x60;. It tries to create, update, or delete &#x60;entitlement&#x60; objects. If any of the entitlement objects fail to process, the entire operation stops with an error, and no entitlements are processed. In essence, the request processes either all the provided entitlements or none of them.
97
-
98
- */
99
-
100
26
  create(input:CreateInputParam):ChargebeeRequest<CreateResponse>;
101
27
  }
102
28
  export interface ListResponse {
103
- /**
104
- * @description Retrieves a list of all the &#x60;entitlement&#x60;s associated with the specified &#x60;feature&#x60;.
105
-
106
- */
107
-
108
29
  list:{entitlement:Entitlement}[];
109
30
 
110
- /**
111
- * @description Retrieves a list of all the &#x60;entitlement&#x60;s associated with the specified &#x60;feature&#x60;.
112
-
113
- */
114
-
115
31
  next_offset?:string;
116
32
  }
117
33
  export interface ListInputParam {
118
34
  [key : string]: any;
119
35
  /**
120
- * @description Retrieves a list of all the &#x60;entitlement&#x60;s associated with the specified &#x60;feature&#x60;.
36
+ * @description The number of resources to be returned.
121
37
 
122
38
  */
123
39
 
124
40
  limit?:number;
125
41
 
126
42
  /**
127
- * @description Retrieves a list of all the &#x60;entitlement&#x60;s associated with the specified &#x60;feature&#x60;.
43
+ * @description Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set &#x27;offset&#x27; to the value of &#x27;next_offset&#x27; obtained in the previous iteration of the API call.
128
44
 
129
45
  */
130
46
 
131
47
  offset?:string;
132
48
 
133
49
  /**
134
- * @description Retrieves a list of all the &#x60;entitlement&#x60;s associated with the specified &#x60;feature&#x60;.
50
+ * @description The &#x60;id&#x60; of the feature towards which this entitlement has been granted.
135
51
 
136
52
  */
137
53
 
138
54
  feature_id?:{in?:string,is?:string};
139
55
 
140
56
  /**
141
- * @description Retrieves a list of all the &#x60;entitlement&#x60;s associated with the specified &#x60;feature&#x60;.
57
+ * @description The &#x60;type&#x60; of the &#x60;entity&#x60; to which this entitlement belongs.
142
58
 
143
59
  */
144
60
 
145
- entity_type?:{in?:string,is?:'charge' | 'addon' | 'addon_price' | 'plan_price' | 'plan'};
61
+ entity_type?:{in?:string,is?:'plan' | 'addon' | 'charge' | 'plan_price' | 'addon_price'};
146
62
 
147
63
  /**
148
- * @description Retrieves a list of all the &#x60;entitlement&#x60;s associated with the specified &#x60;feature&#x60;.
64
+ * @description The &#x60;id&#x60; of the &#x60;entity&#x60; to which this entitlement belongs.
149
65
 
150
66
  */
151
67
 
152
68
  entity_id?:{in?:string,is?:string};
69
+
70
+ include_drafts?:boolean;
71
+
72
+ embed?:string;
153
73
  }
154
74
  export interface CreateResponse {
155
75
  entitlement:Entitlement;
156
76
  }
157
77
  export interface CreateInputParam {
158
78
 
159
- /**
160
- * @description The specific action to be performed for each &#x60;entitlement&#x60; specified. \* upsert - If the &#x60;entitlement&#x60; already exists for the &#x60;feature_id&#x60; and &#x60;entity_id&#x60; combination, the &#x60;value&#x60; of the &#x60;entitlement&#x60; is updated. If it doesn&#x27;t exist, a new &#x60;entitlement&#x60; is created. \* remove - Deletes the &#x60;entitlement&#x60; for the &#x60;feature_id&#x60; and &#x60;entity_id&#x60; combination, if it exists.
161
-
162
- */
79
+ entitlements:{apply_grandfathering?:boolean,entity_id:string,entity_type?:'plan' | 'addon' | 'charge' | 'plan_price' | 'addon_price',feature_id:string,value?:string}[];
163
80
 
164
81
  action:Action;
165
82
 
166
- /**
167
- * @description Parameters for entitlements
168
-
169
- */
170
-
171
- entitlements:{entity_id:string,entity_type?:'charge' | 'addon' | 'addon_price' | 'plan_price' | 'plan',feature_id:string,value?:string}[];
83
+ change_reason?:string;
172
84
  }
173
85
 
174
86
  }
@@ -3,76 +3,21 @@
3
3
  declare module 'chargebee' {
4
4
  export interface EntitlementOverride {
5
5
 
6
- /**
7
- * @description Unique identifier for the entitlement override. This is always auto-generated.
8
6
 
9
- */
10
-
11
7
  id:string;
12
-
13
- /**
14
- * @description The &#x60;id&#x60; of the subscription to which this entitlement override belongs.
15
8
 
16
- */
17
-
18
9
  entity_id?:string;
19
-
20
- /**
21
- * @description The name of Chargebee resource that this entitlement override is associated with. The value is always &#x60;subscription&#x60;.
22
10
 
23
- */
24
-
25
11
  entity_type?:string;
26
-
27
- /**
28
- * @description The &#x60;id&#x60; of the &#x60;feature&#x60; towards which this entitlement override has been granted.
29
12
 
30
- */
31
-
32
13
  feature_id?:string;
33
-
34
- /**
35
- * @description The &#x60;name&#x60; of the &#x60;feature&#x60; towards which this entitlement override has been granted.
36
14
 
37
- */
38
-
39
15
  feature_name?:string;
40
-
41
- /**
42
- * @description The level of entitlement that the item has towards the feature. The possible values depend on the value of &#x60;feature.type&#x60;:
43
16
 
44
- * When &#x60;feature.type&#x60; is &#x60;quantity&#x60; and:
45
- * If &#x60;feature.levels[is_unlimited]&#x60; is not &#x60;true&#x60; for any one of &#x60;feature.levels[]&#x60;, then the value can be any one of &#x60;feature.levels[value][]&#x60;.
46
- * If &#x60;feature.levels[is_unlimited]&#x60; is &#x60;true&#x60; for one of the &#x60;feature.levels[]&#x60;, then the value can also be:
47
- * any one of &#x60;feature.levels[value][]&#x60;
48
- * or it can be &#x60;unlimited&#x60; (case-insensitive), indicating unlimited entitlement.
49
- * When &#x60;type&#x60; is &#x60;range&#x60; and:
50
- * If &#x60;feature.levels[is_unlimited]&#x60; is not &#x60;true&#x60; for any one of &#x60;feature.levels[]&#x60;, then the value can be any whole number between &#x60;levels[value][0]&#x60; and &#x60;levels[value][1]&#x60; (inclusive).
51
- * If &#x60;feature.levels[is_unlimited]&#x60; is &#x60;true&#x60; for one of the &#x60;feature.levels[]&#x60;, then the value can be:
52
- * any whole number equal to or greater than &#x60;levels[value][0]&#x60;
53
- * or it can be &#x60;unlimited&#x60; (case-insensitive), indicating unlimited entitlement.
54
- * When &#x60;type&#x60; is &#x60;custom&#x60;, then the value can be any one of &#x60;feature.levels[value][]&#x60;.
55
- * When &#x60;type&#x60; is &#x60;switch&#x60;, then the value is set as &#x60;true&#x60; if the feature is available; it is set as &#x60;false&#x60; when the feature is unavailable.
56
-
57
- */
58
-
59
17
  value?:string;
60
-
61
- /**
62
- * @description The display name for the entitlement level. The default values are auto-generated based on &#x60;feature.type&#x60; as follows:
63
18
 
64
- * When &#x60;feature.type&#x60; is &#x60;quantity&#x60; or &#x60;range&#x60;, then &#x60;name&#x60; is the space-separated concatenation of &#x60;value&#x60; and the pluralized version of &#x60;feature.unit&#x60;. For example, if &#x60;value&#x60; is &#x60;20&#x60; and &#x60;feature.unit&#x60; is &#x60;user&#x60;, then &#x60;name&#x60; becomes &#x60;20 users&#x60;.
65
- * When &#x60;feature.type&#x60; is &#x60;custom&#x60;, then &#x60;name&#x60; is the same as &#x60;value&#x60;
66
-
67
- */
68
-
69
19
  name?:string;
70
-
71
- /**
72
- * @description The expiry date for the &#x60;entitlement_override&#x60;. Once expired, the &#x60;entitlement_override&#x60; object is no longer returned.
73
20
 
74
- */
75
-
76
21
  expires_at?:number;
77
22
 
78
23
  effective_from?:number;
@@ -82,18 +27,8 @@ declare module 'chargebee' {
82
27
  }
83
28
  export namespace EntitlementOverride {
84
29
  export class EntitlementOverrideResource {
85
- /**
86
- * @description Upserts or removes a set of &#x60;entitlement_overrides&#x60; for a &#x60;subscription&#x60; depending on the &#x60;action&#x60; specified. The API returns the upserted or deleted &#x60;entitlement_overrides&#x60; after successfully completing the operation. The operation returns an error when the first &#x60;entitlement_override&#x60; fails to be processed. Either all the &#x60;entitlement_overrides&#x60; provided in the request are processed or none.
87
-
88
- */
89
-
90
- add_entitlement_override_for_subscription(subscription_id:string, input?:AddEntitlementOverrideForSubscriptionInputParam):ChargebeeRequest<AddEntitlementOverrideForSubscriptionResponse>;
30
+ add_entitlement_override_for_subscription(subscription_id:string, input:AddEntitlementOverrideForSubscriptionInputParam):ChargebeeRequest<AddEntitlementOverrideForSubscriptionResponse>;
91
31
 
92
- /**
93
- * @description Retrieve the list of entitlement overrides for a subscription.
94
-
95
- */
96
-
97
32
  list_entitlement_override_for_subscription(subscription_id:string, input?:ListEntitlementOverrideForSubscriptionInputParam):ChargebeeRequest<ListEntitlementOverrideForSubscriptionResponse>;
98
33
  }
99
34
  export interface AddEntitlementOverrideForSubscriptionResponse {
@@ -101,46 +36,26 @@ declare module 'chargebee' {
101
36
  }
102
37
  export interface AddEntitlementOverrideForSubscriptionInputParam {
103
38
 
104
- /**
105
- * @description The specific action to be performed for each &#x60;entitlement_override&#x60; specified. . \* remove - Deletes the &#x60;entitlement_override&#x60; for the &#x60;feature_id&#x60; and &#x60;item_id&#x60; combination, if it exists. \* upsert - If the &#x60;entitlement_override&#x60; already exists for the &#x60;feature_id&#x60; and &#x60;{subscription_id}&#x60; combination, the &#x60;value&#x60; of the &#x60;entitlement_override&#x60; is updated. If it doesn&#x27;t exist, a new &#x60;entitlement_override&#x60; is created.
106
-
107
- */
39
+ entitlement_overrides:{effective_from?:number,expires_at?:number,feature_id:string,value?:string}[];
108
40
 
109
41
  action?:Action;
110
-
111
- /**
112
- * @description Parameters for entitlement_overrides
113
-
114
- */
115
-
116
- entitlement_overrides?:{expires_at?:number,feature_id:string,value?:string}[];
117
42
  }
118
43
  export interface ListEntitlementOverrideForSubscriptionResponse {
119
- /**
120
- * @description Retrieve the list of entitlement overrides for a subscription.
121
-
122
- */
123
-
124
44
  list:{entitlement_override:EntitlementOverride}[];
125
45
 
126
- /**
127
- * @description Retrieve the list of entitlement overrides for a subscription.
128
-
129
- */
130
-
131
46
  next_offset?:string;
132
47
  }
133
48
  export interface ListEntitlementOverrideForSubscriptionInputParam {
134
49
  [key : string]: any;
135
50
  /**
136
- * @description Retrieve the list of entitlement overrides for a subscription.
51
+ * @description The number of resources to be returned.
137
52
 
138
53
  */
139
54
 
140
55
  limit?:number;
141
56
 
142
57
  /**
143
- * @description Retrieve the list of entitlement overrides for a subscription.
58
+ * @description Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set &#x27;offset&#x27; to the value of &#x27;next_offset&#x27; obtained in the previous iteration of the API call.
144
59
 
145
60
  */
146
61
 
@@ -119,7 +119,7 @@ declare module 'chargebee' {
119
119
 
120
120
  subscription_items:{billing_cycles?:number,charge_on_event?:ChargeOnEvent,charge_on_option?:ChargeOnOption,charge_once?:boolean,item_price_id:string,item_type?:ItemType,quantity?:number,quantity_in_decimal?:string,service_period_days?:number,trial_end?:number,unit_price?:number,unit_price_in_decimal?:string}[];
121
121
 
122
- discounts:{amount?:number,apply_on?:ApplyOn,duration_type:DurationType,included_in_mrr?:boolean,item_price_id?:string,percentage?:number,period?:number,period_unit?:PeriodUnit}[];
122
+ discounts:{amount?:number,apply_on?:ApplyOn,duration_type:DurationType,included_in_mrr?:boolean,item_price_id?:string,percentage?:number,period?:number,period_unit?:PeriodUnit,quantity?:number}[];
123
123
 
124
124
  item_tiers?:{ending_unit?:number,ending_unit_in_decimal?:string,item_price_id?:string,package_size?:number,price?:number,price_in_decimal?:string,pricing_type?:PricingType,starting_unit?:number,starting_unit_in_decimal?:string}[];
125
125
 
@@ -166,19 +166,11 @@ declare module 'chargebee' {
166
166
 
167
167
  terms_to_charge?:number;
168
168
 
169
- next_renewal_date?:number;
170
-
171
- charge_model?:'full_charge' | 'prorate';
172
-
173
169
  billing_alignment_mode?:'immediate' | 'delayed';
174
170
 
175
- referral_details?:string;
176
-
177
171
  invoice_date?:number;
178
172
 
179
173
  coupon_ids?:string[];
180
-
181
- allow_gift_plan?:boolean;
182
174
  }
183
175
  export interface CreateSubItemForCustomerEstimateResponse {
184
176
  estimate:Estimate;
@@ -197,7 +189,7 @@ declare module 'chargebee' {
197
189
 
198
190
  subscription_items:{billing_cycles?:number,charge_on_event?:ChargeOnEvent,charge_on_option?:ChargeOnOption,charge_once?:boolean,item_price_id:string,item_type?:ItemType,quantity?:number,quantity_in_decimal?:string,service_period_days?:number,trial_end?:number,unit_price?:number,unit_price_in_decimal?:string}[];
199
191
 
200
- discounts:{amount?:number,apply_on?:ApplyOn,duration_type:DurationType,included_in_mrr?:boolean,item_price_id?:string,percentage?:number,period?:number,period_unit?:PeriodUnit}[];
192
+ discounts:{amount?:number,apply_on?:ApplyOn,duration_type:DurationType,included_in_mrr?:boolean,item_price_id?:string,percentage?:number,period?:number,period_unit?:PeriodUnit,quantity?:number}[];
201
193
 
202
194
  item_tiers?:{ending_unit?:number,ending_unit_in_decimal?:string,item_price_id?:string,package_size?:number,price?:number,price_in_decimal?:string,pricing_type?:PricingType,starting_unit?:number,starting_unit_in_decimal?:string}[];
203
195
 
@@ -287,7 +279,7 @@ declare module 'chargebee' {
287
279
 
288
280
  subscription_items:{billing_cycles?:number,charge_on_event?:ChargeOnEvent,charge_on_option?:ChargeOnOption,charge_once?:boolean,item_price_id:string,item_type?:ItemType,proration_type?:ProrationType,quantity?:number,quantity_in_decimal?:string,service_period_days?:number,trial_end?:number,unit_price?:number,unit_price_in_decimal?:string}[];
289
281
 
290
- discounts:{amount?:number,apply_on?:ApplyOn,duration_type:DurationType,id?:string,included_in_mrr?:boolean,item_price_id?:string,operation_type:OperationType,percentage?:number,period?:number,period_unit?:PeriodUnit}[];
282
+ discounts:{amount?:number,apply_on?:ApplyOn,duration_type:DurationType,id?:string,included_in_mrr?:boolean,item_price_id?:string,operation_type:OperationType,percentage?:number,period?:number,period_unit?:PeriodUnit,quantity?:number}[];
291
283
 
292
284
  item_tiers?:{ending_unit?:number,ending_unit_in_decimal?:string,item_price_id?:string,package_size?:number,price?:number,price_in_decimal?:string,pricing_type?:PricingType,starting_unit?:number,starting_unit_in_decimal?:string}[];
293
285
 
@@ -472,7 +464,7 @@ declare module 'chargebee' {
472
464
 
473
465
  gift_receiver:{customer_id:string,email:string,first_name:string,last_name:string};
474
466
 
475
- payment_intent?:{additional_information?:object,gateway_account_id?:string,gw_payment_method_id?:string,gw_token?:string,id?:string,payment_method_type?:'card' | 'ideal' | 'sofort' | 'bancontact' | 'google_pay' | 'dotpay' | 'giropay' | 'apple_pay' | 'upi' | 'netbanking_emandates' | 'paypal_express_checkout' | 'direct_debit' | 'boleto' | 'venmo' | 'amazon_payments' | 'pay_to' | 'faster_payments' | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland',reference_id?:string};
467
+ payment_intent?:{additional_information?:object,gateway_account_id?:string,gw_payment_method_id?:string,gw_token?:string,id?:string,payment_method_type?:'card' | 'ideal' | 'sofort' | 'bancontact' | 'google_pay' | 'dotpay' | 'giropay' | 'apple_pay' | 'upi' | 'netbanking_emandates' | 'paypal_express_checkout' | 'direct_debit' | 'boleto' | 'venmo' | 'amazon_payments' | 'pay_to' | 'faster_payments' | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland' | 'payconiq_by_bancontact',reference_id?:string};
476
468
 
477
469
  shipping_address?:{city?:string,company?:string,country?:string,email?:string,first_name?:string,last_name?:string,line1?:string,line2?:string,line3?:string,phone?:string,state?:string,state_code?:string,validation_status?:ValidationStatus,zip?:string};
478
470
 
@@ -493,7 +485,7 @@ declare module 'chargebee' {
493
485
 
494
486
  gift_receiver:{customer_id:string,email:string,first_name:string,last_name:string};
495
487
 
496
- payment_intent?:{additional_information?:object,gateway_account_id?:string,gw_payment_method_id?:string,gw_token?:string,id?:string,payment_method_type?:'card' | 'ideal' | 'sofort' | 'bancontact' | 'google_pay' | 'dotpay' | 'giropay' | 'apple_pay' | 'upi' | 'netbanking_emandates' | 'paypal_express_checkout' | 'direct_debit' | 'boleto' | 'venmo' | 'amazon_payments' | 'pay_to' | 'faster_payments' | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland',reference_id?:string};
488
+ payment_intent?:{additional_information?:object,gateway_account_id?:string,gw_payment_method_id?:string,gw_token?:string,id?:string,payment_method_type?:'card' | 'ideal' | 'sofort' | 'bancontact' | 'google_pay' | 'dotpay' | 'giropay' | 'apple_pay' | 'upi' | 'netbanking_emandates' | 'paypal_express_checkout' | 'direct_debit' | 'boleto' | 'venmo' | 'amazon_payments' | 'pay_to' | 'faster_payments' | 'sepa_instant_transfer' | 'klarna_pay_now' | 'online_banking_poland' | 'payconiq_by_bancontact',reference_id?:string};
497
489
 
498
490
  shipping_address?:{city?:string,company?:string,country?:string,email?:string,first_name?:string,last_name?:string,line1?:string,line2?:string,line3?:string,phone?:string,state?:string,state_code?:string,validation_status?:ValidationStatus,zip?:string};
499
491
 
@@ -555,7 +547,7 @@ declare module 'chargebee' {
555
547
 
556
548
  notes_to_remove?:{entity_id?:string,entity_type?:EntityType}[];
557
549
 
558
- discounts:{amount?:number,apply_on:ApplyOn,item_price_id?:string,percentage?:number}[];
550
+ discounts:{amount?:number,apply_on:ApplyOn,item_price_id?:string,percentage?:number,quantity?:number}[];
559
551
 
560
552
  tax_providers_fields?:{field_id?:string,field_value?:string,provider_name?:string}[];
561
553