chargebee 2.41.0 → 3.0.0-beta.2

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 (118) hide show
  1. package/CHANGELOG.md +11 -15
  2. package/LICENSE +1 -1
  3. package/README.md +90 -170
  4. package/cjs/RequestWrapper.js +84 -0
  5. package/cjs/asyncApiSupport.js +39 -0
  6. package/cjs/chargebee.cjs.js +13 -0
  7. package/cjs/chargebee.cjs.worker.js +9 -0
  8. package/cjs/chargebeeError.js +17 -0
  9. package/cjs/coreCommon.js +72 -0
  10. package/cjs/createChargebee.js +92 -0
  11. package/cjs/environment.js +18 -0
  12. package/cjs/filter.js +1 -0
  13. package/cjs/net/ClientInterface.js +40 -0
  14. package/cjs/net/FetchClient.js +86 -0
  15. package/cjs/net/NodeClient.js +61 -0
  16. package/cjs/package.json +1 -0
  17. package/cjs/resources/api_endpoints.js +1086 -0
  18. package/cjs/util.js +218 -0
  19. package/esm/RequestWrapper.js +80 -0
  20. package/esm/asyncApiSupport.js +35 -0
  21. package/esm/chargebee.esm.js +9 -0
  22. package/esm/chargebee.esm.worker.js +5 -0
  23. package/esm/chargebeeError.js +13 -0
  24. package/esm/coreCommon.js +67 -0
  25. package/esm/createChargebee.js +88 -0
  26. package/esm/environment.js +15 -0
  27. package/esm/filter.js +1 -0
  28. package/esm/net/ClientInterface.js +35 -0
  29. package/esm/net/FetchClient.js +81 -0
  30. package/esm/net/NodeClient.js +56 -0
  31. package/esm/package.json +1 -0
  32. package/esm/resources/api_endpoints.js +1083 -0
  33. package/esm/util.js +202 -0
  34. package/package.json +69 -38
  35. package/types/core.d.ts +558 -89
  36. package/types/index.d.ts +90 -55
  37. package/types/resources/Address.d.ts +57 -272
  38. package/types/resources/AdvanceInvoiceSchedule.d.ts +21 -94
  39. package/types/resources/AttachedItem.d.ts +91 -329
  40. package/types/resources/Attribute.d.ts +5 -5
  41. package/types/resources/BusinessEntity.d.ts +49 -69
  42. package/types/resources/BusinessEntityTransfer.d.ts +11 -17
  43. package/types/resources/Card.d.ts +146 -424
  44. package/types/resources/Comment.d.ts +72 -189
  45. package/types/resources/Contact.d.ts +12 -64
  46. package/types/resources/ContractTerm.d.ts +15 -96
  47. package/types/resources/Coupon.d.ts +282 -758
  48. package/types/resources/CouponCode.d.ts +56 -52
  49. package/types/resources/CouponSet.d.ts +92 -234
  50. package/types/resources/CreditNote.d.ts +588 -1758
  51. package/types/resources/CreditNoteEstimate.d.ts +131 -157
  52. package/types/resources/Currency.d.ts +75 -62
  53. package/types/resources/Customer.d.ts +892 -835
  54. package/types/resources/CustomerEntitlement.d.ts +24 -35
  55. package/types/resources/DifferentialPrice.d.ts +116 -314
  56. package/types/resources/Discount.d.ts +20 -125
  57. package/types/resources/Download.d.ts +6 -22
  58. package/types/resources/Entitlement.d.ts +51 -160
  59. package/types/resources/EntitlementOverride.d.ts +58 -139
  60. package/types/resources/Estimate.d.ts +1178 -527
  61. package/types/resources/Event.d.ts +67 -178
  62. package/types/resources/Export.d.ts +563 -723
  63. package/types/resources/Feature.d.ts +117 -433
  64. package/types/resources/GatewayErrorDetail.d.ts +16 -72
  65. package/types/resources/Gift.d.ts +265 -432
  66. package/types/resources/Hierarchy.d.ts +8 -36
  67. package/types/resources/HostedPage.d.ts +1017 -1153
  68. package/types/resources/ImpactedItem.d.ts +13 -50
  69. package/types/resources/ImpactedItemPrice.d.ts +13 -15
  70. package/types/resources/ImpactedSubscription.d.ts +13 -45
  71. package/types/resources/InAppSubscription.d.ts +93 -389
  72. package/types/resources/Installment.d.ts +35 -110
  73. package/types/resources/InstallmentConfig.d.ts +54 -155
  74. package/types/resources/InstallmentDetail.d.ts +19 -27
  75. package/types/resources/Invoice.d.ts +1574 -3157
  76. package/types/resources/InvoiceEstimate.d.ts +131 -161
  77. package/types/resources/Item.d.ts +133 -611
  78. package/types/resources/ItemEntitlement.d.ts +78 -215
  79. package/types/resources/ItemFamily.d.ts +69 -178
  80. package/types/resources/ItemPrice.d.ts +291 -1203
  81. package/types/resources/Metadata.d.ts +3 -5
  82. package/types/resources/Order.d.ts +538 -1471
  83. package/types/resources/PaymentIntent.d.ts +163 -347
  84. package/types/resources/PaymentReferenceNumber.d.ts +7 -29
  85. package/types/resources/PaymentSource.d.ts +476 -1272
  86. package/types/resources/PaymentVoucher.d.ts +87 -306
  87. package/types/resources/PortalSession.d.ts +71 -207
  88. package/types/resources/PriceVariant.d.ts +91 -279
  89. package/types/resources/PricingPageSession.d.ts +92 -41
  90. package/types/resources/PromotionalCredit.d.ts +90 -346
  91. package/types/resources/Purchase.d.ts +185 -315
  92. package/types/resources/Quote.d.ts +1406 -887
  93. package/types/resources/QuoteLineGroup.d.ts +125 -452
  94. package/types/resources/QuotedCharge.d.ts +45 -274
  95. package/types/resources/QuotedSubscription.d.ts +100 -488
  96. package/types/resources/Ramp.d.ts +230 -747
  97. package/types/resources/ResourceMigration.d.ts +25 -80
  98. package/types/resources/SiteMigrationDetail.d.ts +34 -112
  99. package/types/resources/Subscription.d.ts +2390 -4336
  100. package/types/resources/SubscriptionEntitlement.d.ts +59 -160
  101. package/types/resources/SubscriptionEstimate.d.ts +51 -75
  102. package/types/resources/TaxWithheld.d.ts +15 -40
  103. package/types/resources/ThirdPartyPaymentMethod.d.ts +7 -29
  104. package/types/resources/TimeMachine.d.ts +43 -97
  105. package/types/resources/Token.d.ts +15 -85
  106. package/types/resources/Transaction.d.ts +276 -911
  107. package/types/resources/UnbilledCharge.d.ts +189 -164
  108. package/types/resources/Usage.d.ts +89 -279
  109. package/types/resources/VirtualBankAccount.d.ts +103 -255
  110. package/types/resources/filter.d.ts +52 -0
  111. package/.github/ISSUE_TEMPLATE/bug_report.yml +0 -81
  112. package/.github/ISSUE_TEMPLATE/config.yml +0 -6
  113. package/.github/ISSUE_TEMPLATE/feature_request.yml +0 -34
  114. package/.github/PULL_REQUEST_TEMPLATE.md +0 -8
  115. package/lib/chargebee.js +0 -512
  116. package/lib/resources/api_endpoints.js +0 -2935
  117. package/types/resources/NonSubscription.d.ts +0 -30
  118. package/types/resources/Session.d.ts +0 -41
@@ -1,463 +1,296 @@
1
1
  ///<reference path='./../core.d.ts'/>
2
+ ///<reference path='./../index.d.ts'/>
3
+ ///<reference path='./filter.d.ts'/>
2
4
  declare module 'chargebee' {
3
5
  export interface Gift {
4
-
5
- /**
6
- * @description Uniquely identifies a gift
7
-
8
- */
9
-
10
- id:string;
11
-
12
- /**
13
- * @description Status of the gift. \* claimed - Gift is claimed. \* cancelled - Gift is cancelled. \* unclaimed - Gift is not yet claimed and is ready to be claimed. \* scheduled - Gift has been scheduled. \* expired - Gift is expired.
14
-
15
- */
16
-
17
- status:'expired' | 'scheduled' | 'unclaimed' | 'claimed' | 'cancelled';
18
-
19
- /**
20
- * @description Indicates the date on which the gift notification is sent to the receiver. If not passed, the receiver is notified immediately.
21
-
22
- */
23
-
24
- scheduled_at?:number;
25
-
26
- /**
27
- * @description When &#x60;true&#x60;, the claim happens automatically. When not passed, the default value in the site settings is used.
28
-
29
- */
30
-
31
- auto_claim:boolean;
32
-
33
- /**
34
- * @description When &#x60;true&#x60;, indicates that the gift does not expire. Do not pass or pass as &#x60;false&#x60; when &#x60;auto_claim&#x60; is set.
35
-
36
- */
37
-
38
- no_expiry:boolean;
39
-
40
- /**
41
- * @description The date until which the gift can be claimed. Must be set to a value after &#x60;scheduled_at&#x60;. If the gift is not claimed within &#x60;claim_expiry_date&#x60;, it will expire and the subscription will move to &#x60;cancelled&#x60; state. When not passed, the value specified in the site settings will be used. Pass as &#x60;NULL&#x60; or do not pass when &#x60;auto_claim&#x60; or &#x60;no_expiry&#x60; are set.
42
-
43
- */
44
-
45
- claim_expiry_date?:number;
46
-
47
- /**
48
- * @description Version number of this resource. The &#x60;resource_version&#x60; is updated with a new timestamp in milliseconds for every change made to the resource. This attribute will be present only if the resource has been updated after 2016-09-28.
49
-
50
- */
51
-
52
- resource_version?:number;
53
-
54
- /**
55
- * @description Timestamp indicating when this gift resource was last updated.
56
-
57
- */
58
-
59
- updated_at?:number;
60
-
61
- /**
62
- * @description Gifter details
63
-
64
- */
65
-
66
- gifter:Gift.Gifter;
67
-
68
- /**
69
- * @description Receiver details
70
-
71
- */
72
-
73
- gift_receiver:Gift.GiftReceiver;
74
-
75
- /**
76
- * @description Gift timeline details
77
-
78
- */
79
-
80
- gift_timelines?:Gift.GiftTimeline[];
6
+ id: string;
7
+ status: 'scheduled' | 'unclaimed' | 'claimed' | 'cancelled' | 'expired';
8
+ scheduled_at?: number;
9
+ auto_claim: boolean;
10
+ no_expiry: boolean;
11
+ claim_expiry_date?: number;
12
+ resource_version?: number;
13
+ updated_at?: number;
14
+ gifter: Gift.Gifter;
15
+ gift_receiver: Gift.GiftReceiver;
16
+ gift_timelines?: Gift.GiftTimeline[];
81
17
  }
82
- export namespace Gift {
83
- export class GiftResource {
84
- /**
85
- * @description Create a gift subscription with items like plans, addons, or charges and gift it to an existing customer.
86
18
 
87
- */
88
-
89
- create_for_items(input?:CreateForItemsInputParam):ChargebeeRequest<CreateForItemsResponse>;
90
-
91
- /**
92
- * @description Retrieves a gift subscription. This API accepts the gift &#x27;id&#x27; and returns the gift along with the subscription.
93
-
94
- */
95
-
96
- retrieve(gift_id:string):ChargebeeRequest<RetrieveResponse>;
97
-
98
- /**
99
- * @description Retrieves the list of gifts.
100
-
101
- */
102
-
103
- list(input?:ListInputParam):ChargebeeRequest<ListResponse>;
104
-
105
- /**
106
- * @description Claiming a gift will move the status to &#x27;claimed&#x27;. Only gifts in &#x27;unclaimed&#x27; state can be claimed.
107
-
108
- */
109
-
110
- claim(gift_id:string):ChargebeeRequest<ClaimResponse>;
111
-
112
- /**
113
- * @description This API allows to cancel gifts. Only gift in &#x27;scheduled&#x27; and &#x27;unclaimed&#x27; states can be cancelled.
114
-
115
- */
116
-
117
- cancel(gift_id:string):ChargebeeRequest<CancelResponse>;
118
-
119
- /**
120
- * @description Change the date/time at which the gift notification email is to be sent. This only applies to gifts in the scheduled [status](https://apidocs.chargebee.com/docs/api/gifts#gift_status).
121
-
122
- */
123
-
124
- update_gift(gift_id:string, input:UpdateGiftInputParam):ChargebeeRequest<UpdateGiftResponse>;
125
- }
126
- export interface CreateResponse {
127
- gift:Gift;
128
-
129
- subscription:Subscription;
130
-
131
- invoice?:Invoice;
19
+ export namespace Gift {
20
+ export class GiftResource {
21
+ create(
22
+ input: CreateInputParam,
23
+ headers?: ChargebeeRequestHeader,
24
+ ): Promise<ChargebeeResponse<CreateResponse>>;
25
+
26
+ createForItems(
27
+ input: CreateForItemsInputParam,
28
+ headers?: ChargebeeRequestHeader,
29
+ ): Promise<ChargebeeResponse<CreateForItemsResponse>>;
30
+
31
+ retrieve(
32
+ gift_id: string,
33
+ headers?: ChargebeeRequestHeader,
34
+ ): Promise<ChargebeeResponse<RetrieveResponse>>;
35
+
36
+ list(
37
+ input?: ListInputParam,
38
+ headers?: ChargebeeRequestHeader,
39
+ ): Promise<ChargebeeResponse<ListResponse>>;
40
+
41
+ claim(
42
+ gift_id: string,
43
+ headers?: ChargebeeRequestHeader,
44
+ ): Promise<ChargebeeResponse<ClaimResponse>>;
45
+
46
+ cancel(
47
+ gift_id: string,
48
+ headers?: ChargebeeRequestHeader,
49
+ ): Promise<ChargebeeResponse<CancelResponse>>;
50
+
51
+ updateGift(
52
+ gift_id: string,
53
+ input: UpdateGiftInputParam,
54
+ headers?: ChargebeeRequestHeader,
55
+ ): Promise<ChargebeeResponse<UpdateGiftResponse>>;
132
56
  }
133
- export interface CreateInputParam {
134
-
135
- /**
136
- * @description Indicates the date on which the gift notification is sent to the receiver. If not passed, the receiver is notified immediately.
137
57
 
138
- */
139
-
140
- scheduled_at?:number;
141
-
142
- /**
143
- * @description When &#x60;true&#x60;, the claim happens automatically. When not passed, the default value in the site settings is used.
144
-
145
- */
146
-
147
- auto_claim?:boolean;
148
-
149
- /**
150
- * @description When &#x60;true&#x60;, indicates that the gift does not expire. Do not pass or pass as &#x60;false&#x60; when &#x60;auto_claim&#x60; is set. .
151
-
152
- */
153
-
154
- no_expiry?:boolean;
155
-
156
- /**
157
- * @description The date until which the gift can be claimed. Must be set to a value after &#x60;scheduled_at&#x60;. If the gift is not claimed within &#x60;claim_expiry_date&#x60;, it will expire and the subscription will move to &#x60;cancelled&#x60; state. When not passed, the value specified in the site settings will be used. Pass as &#x60;NULL&#x60; or do not pass when &#x60;auto_claim&#x60; or &#x60;no_expiry&#x60; are set.
158
-
159
- */
160
-
161
- claim_expiry_date?:number;
162
-
163
- /**
164
- * @description List of coupons to be applied to this subscription. You can provide coupon ids or coupon codes.
165
-
166
- */
167
-
168
- coupon_ids?:string[];
169
-
170
- /**
171
- * @description Parameters for gifter
172
-
173
- */
174
-
175
- gifter:{customer_id:string,note?:string,payment_src_id?:string,signature:string};
176
-
177
- /**
178
- * @description Parameters for gift_receiver
179
-
180
- */
181
-
182
- gift_receiver:{customer_id:string,email:string,first_name:string,last_name:string};
183
-
184
- /**
185
- * @description Parameters for payment_intent
186
-
187
- */
188
-
189
- payment_intent?:{additional_information?:object,gateway_account_id?:string,gw_token?:string,id?:string,payment_method_type?:'giropay' | 'ideal' | 'sepa_instant_transfer' | 'google_pay' | 'netbanking_emandates' | 'klarna_pay_now' | 'dotpay' | 'boleto' | 'direct_debit' | 'faster_payments' | 'sofort' | 'upi' | 'venmo' | 'amazon_payments' | 'apple_pay' | 'bancontact' | 'paypal_express_checkout' | 'pay_to' | 'card',reference_id?:string};
190
-
191
- /**
192
- * @description Parameters for shipping_address
193
-
194
- */
195
-
196
- 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};
197
-
198
- /**
199
- * @description Parameters for subscription
200
-
201
- */
202
-
203
- subscription:object;
204
-
205
- /**
206
- * @description Parameters for addons
207
-
208
- */
209
-
210
- addons?:{id?:string,quantity?:number,quantity_in_decimal?:string}[];
211
- }
212
- export interface CreateForItemsResponse {
213
- gift:Gift;
214
-
215
- subscription:Subscription;
216
-
217
- invoice?:Invoice;
58
+ export interface CreateResponse {
59
+ gift: Gift;
60
+ subscription: Subscription;
61
+ invoice?: Invoice;
218
62
  }
219
- export interface CreateForItemsInputParam {
220
-
221
- /**
222
- * @description Indicates the date on which the gift notification is sent to the receiver. If not passed, the receiver is notified immediately.
223
-
224
- */
225
-
226
- scheduled_at?:number;
227
-
228
- /**
229
- * @description When &#x60;true&#x60;, the claim happens automatically. When not passed, the default value in the site settings is used.
230
-
231
- */
232
-
233
- auto_claim?:boolean;
234
-
235
- /**
236
- * @description When &#x60;true&#x60;, indicates that the gift does not expire. Do not pass or pass as &#x60;false&#x60; when &#x60;auto_claim&#x60; is set. .
237
63
 
238
- */
239
-
240
- no_expiry?:boolean;
241
-
242
- /**
243
- * @description The date until which the gift can be claimed. Must be set to a value after &#x60;scheduled_at&#x60;. If the gift is not claimed within &#x60;claim_expiry_date&#x60;, it will expire and the subscription will move to &#x60;cancelled&#x60; state. When not passed, the value specified in the site settings will be used. Pass as &#x60;NULL&#x60; or do not pass when &#x60;auto_claim&#x60; or &#x60;no_expiry&#x60; are set.
244
-
245
- */
246
-
247
- claim_expiry_date?:number;
248
-
249
- /**
250
- * @description List of coupons to be applied to this subscription. You can provide coupon ids or coupon codes.
64
+ export interface CreateForItemsResponse {
65
+ gift: Gift;
66
+ subscription: Subscription;
67
+ invoice?: Invoice;
68
+ }
251
69
 
252
- */
253
-
254
- coupon_ids?:string[];
255
-
256
- /**
257
- * @description Parameters for gifter
70
+ export interface RetrieveResponse {
71
+ gift: Gift;
72
+ subscription: Subscription;
73
+ }
258
74
 
259
- */
260
-
261
- gifter?:{customer_id:string,note?:string,payment_src_id?:string,signature:string};
262
-
263
- /**
264
- * @description Parameters for gift_receiver
75
+ export interface ListResponse {
76
+ list: { gift: Gift; subscription: Subscription }[];
77
+ next_offset?: string;
78
+ }
265
79
 
266
- */
267
-
268
- gift_receiver?:{customer_id:string,email:string,first_name:string,last_name:string};
269
-
270
- /**
271
- * @description Parameters for payment_intent
80
+ export interface ClaimResponse {
81
+ gift: Gift;
82
+ subscription: Subscription;
83
+ }
272
84
 
273
- */
274
-
275
- payment_intent?:{additional_information?:object,gateway_account_id?:string,gw_token?:string,id?:string,payment_method_type?:'giropay' | 'ideal' | 'sepa_instant_transfer' | 'google_pay' | 'netbanking_emandates' | 'klarna_pay_now' | 'dotpay' | 'boleto' | 'direct_debit' | 'faster_payments' | 'sofort' | 'upi' | 'venmo' | 'amazon_payments' | 'apple_pay' | 'bancontact' | 'paypal_express_checkout' | 'pay_to' | 'card',reference_id?:string};
276
-
277
- /**
278
- * @description Parameters for shipping_address
85
+ export interface CancelResponse {
86
+ gift: Gift;
87
+ subscription: Subscription;
88
+ }
279
89
 
280
- */
281
-
282
- 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};
283
-
284
- /**
285
- * @description Parameters for subscription_items
90
+ export interface UpdateGiftResponse {
91
+ gift: Gift;
92
+ subscription: Subscription;
93
+ }
286
94
 
287
- */
288
-
289
- subscription_items?:{item_price_id?:string,quantity?:number,quantity_in_decimal?:string}[];
95
+ export interface Gifter {
96
+ customer_id: string;
97
+ invoice_id?: string;
98
+ signature?: string;
99
+ note?: string;
290
100
  }
291
- export interface RetrieveResponse {
292
- gift:Gift;
293
-
294
- subscription:Subscription;
101
+ export interface GiftReceiver {
102
+ customer_id: string;
103
+ subscription_id: string;
104
+ first_name?: string;
105
+ last_name?: string;
106
+ email?: string;
295
107
  }
296
-
297
- export interface ListResponse {
298
- /**
299
- * @description Retrieves the list of gifts.
300
-
301
- */
302
-
303
- list:{gift:Gift,subscription:Subscription}[];
304
-
305
- /**
306
- * @description Retrieves the list of gifts.
108
+ export interface GiftTimeline {
109
+ status: 'scheduled' | 'unclaimed' | 'claimed' | 'cancelled' | 'expired';
110
+ occurred_at?: number;
111
+ }
112
+ // REQUEST PARAMS
113
+ //---------------
307
114
 
308
- */
309
-
310
- next_offset?:string;
115
+ export interface CreateInputParam {
116
+ scheduled_at?: number;
117
+ auto_claim?: boolean;
118
+ no_expiry?: boolean;
119
+ claim_expiry_date?: number;
120
+ coupon_ids?: string[];
121
+ gifter?: GifterCreateInputParam;
122
+ gift_receiver?: GiftReceiverCreateInputParam;
123
+ payment_intent?: PaymentIntentCreateInputParam;
124
+ shipping_address?: ShippingAddressCreateInputParam;
125
+ subscription?: SubscriptionCreateInputParam;
126
+ addons?: AddonsCreateInputParam[];
127
+ }
128
+ export interface CreateForItemsInputParam {
129
+ scheduled_at?: number;
130
+ auto_claim?: boolean;
131
+ no_expiry?: boolean;
132
+ claim_expiry_date?: number;
133
+ coupon_ids?: string[];
134
+ gifter?: GifterCreateForItemsInputParam;
135
+ gift_receiver?: GiftReceiverCreateForItemsInputParam;
136
+ payment_intent?: PaymentIntentCreateForItemsInputParam;
137
+ shipping_address?: ShippingAddressCreateForItemsInputParam;
138
+ subscription_items?: SubscriptionItemsCreateForItemsInputParam[];
311
139
  }
312
140
  export interface ListInputParam {
313
- [key : string]: any;
314
- /**
315
- * @description Retrieves the list of gifts.
316
-
317
- */
318
-
319
- limit?:number;
320
-
321
- /**
322
- * @description Retrieves the list of gifts.
323
-
324
- */
325
-
326
- offset?:string;
327
-
328
- /**
329
- * @description Retrieves the list of gifts.
330
-
331
- */
332
-
333
- status?:{in?:string,is?:'expired' | 'scheduled' | 'unclaimed' | 'claimed' | 'cancelled',is_not?:'expired' | 'scheduled' | 'unclaimed' | 'claimed' | 'cancelled',not_in?:string};
334
-
335
- /**
336
- * @description Retrieves the list of gifts.
337
-
338
- */
339
-
340
- gift_receiver?:{customer_id?:{is?:string,is_not?:string,starts_with?:string},email?:{is?:string,is_not?:string,starts_with?:string}};
341
-
342
- /**
343
- * @description Retrieves the list of gifts.
344
-
345
- */
346
-
347
- gifter?:{customer_id?:{is?:string,is_not?:string,starts_with?:string}};
141
+ limit?: number;
142
+ offset?: string;
143
+ gift_receiver?: GiftReceiverGiftListInputParam;
144
+ gifter?: GifterGiftListInputParam;
145
+ status?: filter.Enum;
348
146
  }
349
- export interface ClaimResponse {
350
- gift:Gift;
351
-
352
- subscription:Subscription;
147
+ export interface UpdateGiftInputParam {
148
+ scheduled_at: number;
149
+ comment?: string;
353
150
  }
354
-
355
- export interface CancelResponse {
356
- gift:Gift;
357
-
358
- subscription:Subscription;
151
+ export interface GiftReceiverCreateInputParam {
152
+ customer_id: string;
153
+ first_name: string;
154
+ last_name: string;
155
+ email: string;
359
156
  }
360
-
361
- export interface UpdateGiftResponse {
362
- gift:Gift;
363
-
364
- subscription:Subscription;
157
+ export interface GifterCreateInputParam {
158
+ customer_id: string;
159
+ signature: string;
160
+ note?: string;
161
+ payment_src_id?: string;
365
162
  }
366
- export interface UpdateGiftInputParam {
367
-
368
- /**
369
- * @description The new date/time at which the gift notification email is to be sent. The value must be greater than current time. If [no_expiry](https://apidocs.chargebee.com/docs/api/gifts#gift_no_expiry) is false then the value must also be less than [claim_expiry_date](https://apidocs.chargebee.com/docs/api/gifts#gift_claim_expiry_date).
370
-
371
- */
372
-
373
- scheduled_at:number;
374
-
375
- /**
376
- * @description An internal comment for this action. The comments are not retrievable via API and are only available on request via [Chargebee Support](https://chargebee.freshdesk.com/support/home).
377
-
378
- */
379
-
380
- comment?:string;
163
+ export interface ShippingAddressCreateInputParam {
164
+ first_name?: string;
165
+ last_name?: string;
166
+ email?: string;
167
+ company?: string;
168
+ phone?: string;
169
+ line1?: string;
170
+ line2?: string;
171
+ line3?: string;
172
+ city?: string;
173
+ state_code?: string;
174
+ state?: string;
175
+ zip?: string;
176
+ country?: string;
177
+ validation_status?: ValidationStatus;
381
178
  }
382
- export interface Gifter {
383
- /**
384
- * @description Gifter customer id.
385
-
386
- */
387
-
388
- customer_id:string;
389
-
390
- /**
391
- * @description Invoice raised on the gifter.
392
-
393
- */
394
-
395
- invoice_id?:string;
396
-
397
- /**
398
- * @description Gifter sign-off name
399
-
400
- */
401
-
402
- signature?:string;
403
-
404
- /**
405
- * @description Personalized message for the gift.
406
-
407
- */
408
-
409
- note?:string;
179
+ export interface PaymentIntentCreateInputParam {
180
+ id?: string;
181
+ gateway_account_id?: string;
182
+ gw_token?: string;
183
+ payment_method_type?:
184
+ | 'card'
185
+ | 'ideal'
186
+ | 'sofort'
187
+ | 'bancontact'
188
+ | 'google_pay'
189
+ | 'dotpay'
190
+ | 'giropay'
191
+ | 'apple_pay'
192
+ | 'upi'
193
+ | 'netbanking_emandates'
194
+ | 'paypal_express_checkout'
195
+ | 'direct_debit'
196
+ | 'boleto'
197
+ | 'venmo'
198
+ | 'amazon_payments'
199
+ | 'pay_to'
200
+ | 'faster_payments'
201
+ | 'sepa_instant_transfer'
202
+ | 'klarna_pay_now'
203
+ | 'online_banking_poland';
204
+ reference_id?: string;
205
+ /**
206
+ * @deprecated Please refer API docs to use other attributes
207
+ */
208
+ gw_payment_method_id?: string;
209
+ additional_information?: any;
410
210
  }
411
- export interface GiftReceiver {
412
- /**
413
- * @description Receiver customer id.
414
-
415
- */
416
-
417
- customer_id:string;
418
-
419
- /**
420
- * @description Subscription created for the gift.
421
-
422
- */
423
-
424
- subscription_id:string;
425
-
426
- /**
427
- * @description First name of the receiver as given by the gifter.
428
-
429
- */
430
-
431
- first_name?:string;
432
-
433
- /**
434
- * @description Last name of the receiver as given by the gifter,
435
-
436
- */
437
-
438
- last_name?:string;
439
-
440
- /**
441
- * @description Email of the receiver. All gift related emails are sent to this email.
442
-
443
- */
444
-
445
- email?:string;
211
+ export interface SubscriptionCreateInputParam {
212
+ plan_id: string;
213
+ plan_quantity?: number;
214
+ plan_quantity_in_decimal?: string;
446
215
  }
447
- export interface GiftTimeline {
448
- /**
449
- * @description Status of the gift. \* cancelled - Gift is cancelled. \* expired - Gift is expired. \* scheduled - Gift has been scheduled. \* claimed - Gift is claimed. \* unclaimed - Gift is not yet claimed and is ready to be claimed.
450
216
 
451
- */
452
-
453
- status:'expired' | 'scheduled' | 'unclaimed' | 'claimed' | 'cancelled';
454
-
455
- /**
456
- * @description Timestamp indicating when this event occurred.
217
+ export interface AddonsCreateInputParam {
218
+ id?: string;
219
+ quantity?: number;
220
+ quantity_in_decimal?: string;
221
+ }
222
+ export interface GiftReceiverCreateForItemsInputParam {
223
+ customer_id: string;
224
+ first_name: string;
225
+ last_name: string;
226
+ email: string;
227
+ }
228
+ export interface GifterCreateForItemsInputParam {
229
+ customer_id: string;
230
+ signature: string;
231
+ note?: string;
232
+ payment_src_id?: string;
233
+ }
234
+ export interface ShippingAddressCreateForItemsInputParam {
235
+ first_name?: string;
236
+ last_name?: string;
237
+ email?: string;
238
+ company?: string;
239
+ phone?: string;
240
+ line1?: string;
241
+ line2?: string;
242
+ line3?: string;
243
+ city?: string;
244
+ state_code?: string;
245
+ state?: string;
246
+ zip?: string;
247
+ country?: string;
248
+ validation_status?: ValidationStatus;
249
+ }
250
+ export interface PaymentIntentCreateForItemsInputParam {
251
+ id?: string;
252
+ gateway_account_id?: string;
253
+ gw_token?: string;
254
+ payment_method_type?:
255
+ | 'card'
256
+ | 'ideal'
257
+ | 'sofort'
258
+ | 'bancontact'
259
+ | 'google_pay'
260
+ | 'dotpay'
261
+ | 'giropay'
262
+ | 'apple_pay'
263
+ | 'upi'
264
+ | 'netbanking_emandates'
265
+ | 'paypal_express_checkout'
266
+ | 'direct_debit'
267
+ | 'boleto'
268
+ | 'venmo'
269
+ | 'amazon_payments'
270
+ | 'pay_to'
271
+ | 'faster_payments'
272
+ | 'sepa_instant_transfer'
273
+ | 'klarna_pay_now'
274
+ | 'online_banking_poland';
275
+ reference_id?: string;
276
+ /**
277
+ * @deprecated Please refer API docs to use other attributes
278
+ */
279
+ gw_payment_method_id?: string;
280
+ additional_information?: any;
281
+ }
457
282
 
458
- */
459
-
460
- occurred_at?:number;
283
+ export interface SubscriptionItemsCreateForItemsInputParam {
284
+ item_price_id?: string;
285
+ quantity?: number;
286
+ quantity_in_decimal?: string;
287
+ }
288
+ export interface GifterGiftListInputParam {
289
+ customer_id?: filter.String;
290
+ }
291
+ export interface GiftReceiverGiftListInputParam {
292
+ email?: filter.String;
293
+ customer_id?: filter.String;
461
294
  }
462
295
  }
463
- }
296
+ }