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.
- package/CHANGELOG.md +11 -15
- package/LICENSE +1 -1
- package/README.md +90 -170
- package/cjs/RequestWrapper.js +84 -0
- package/cjs/asyncApiSupport.js +39 -0
- package/cjs/chargebee.cjs.js +13 -0
- package/cjs/chargebee.cjs.worker.js +9 -0
- package/cjs/chargebeeError.js +17 -0
- package/cjs/coreCommon.js +72 -0
- package/cjs/createChargebee.js +92 -0
- package/cjs/environment.js +18 -0
- package/cjs/filter.js +1 -0
- package/cjs/net/ClientInterface.js +40 -0
- package/cjs/net/FetchClient.js +86 -0
- package/cjs/net/NodeClient.js +61 -0
- package/cjs/package.json +1 -0
- package/cjs/resources/api_endpoints.js +1086 -0
- package/cjs/util.js +218 -0
- package/esm/RequestWrapper.js +80 -0
- package/esm/asyncApiSupport.js +35 -0
- package/esm/chargebee.esm.js +9 -0
- package/esm/chargebee.esm.worker.js +5 -0
- package/esm/chargebeeError.js +13 -0
- package/esm/coreCommon.js +67 -0
- package/esm/createChargebee.js +88 -0
- package/esm/environment.js +15 -0
- package/esm/filter.js +1 -0
- package/esm/net/ClientInterface.js +35 -0
- package/esm/net/FetchClient.js +81 -0
- package/esm/net/NodeClient.js +56 -0
- package/esm/package.json +1 -0
- package/esm/resources/api_endpoints.js +1083 -0
- package/esm/util.js +202 -0
- package/package.json +69 -38
- package/types/core.d.ts +558 -89
- package/types/index.d.ts +90 -55
- package/types/resources/Address.d.ts +57 -272
- package/types/resources/AdvanceInvoiceSchedule.d.ts +21 -94
- package/types/resources/AttachedItem.d.ts +91 -329
- package/types/resources/Attribute.d.ts +5 -5
- package/types/resources/BusinessEntity.d.ts +49 -69
- package/types/resources/BusinessEntityTransfer.d.ts +11 -17
- package/types/resources/Card.d.ts +146 -424
- package/types/resources/Comment.d.ts +72 -189
- package/types/resources/Contact.d.ts +12 -64
- package/types/resources/ContractTerm.d.ts +15 -96
- package/types/resources/Coupon.d.ts +282 -758
- package/types/resources/CouponCode.d.ts +56 -52
- package/types/resources/CouponSet.d.ts +92 -234
- package/types/resources/CreditNote.d.ts +588 -1758
- package/types/resources/CreditNoteEstimate.d.ts +131 -157
- package/types/resources/Currency.d.ts +75 -62
- package/types/resources/Customer.d.ts +892 -835
- package/types/resources/CustomerEntitlement.d.ts +24 -35
- package/types/resources/DifferentialPrice.d.ts +116 -314
- package/types/resources/Discount.d.ts +20 -125
- package/types/resources/Download.d.ts +6 -22
- package/types/resources/Entitlement.d.ts +51 -160
- package/types/resources/EntitlementOverride.d.ts +58 -139
- package/types/resources/Estimate.d.ts +1178 -527
- package/types/resources/Event.d.ts +67 -178
- package/types/resources/Export.d.ts +563 -723
- package/types/resources/Feature.d.ts +117 -433
- package/types/resources/GatewayErrorDetail.d.ts +16 -72
- package/types/resources/Gift.d.ts +265 -432
- package/types/resources/Hierarchy.d.ts +8 -36
- package/types/resources/HostedPage.d.ts +1017 -1153
- package/types/resources/ImpactedItem.d.ts +13 -50
- package/types/resources/ImpactedItemPrice.d.ts +13 -15
- package/types/resources/ImpactedSubscription.d.ts +13 -45
- package/types/resources/InAppSubscription.d.ts +93 -389
- package/types/resources/Installment.d.ts +35 -110
- package/types/resources/InstallmentConfig.d.ts +54 -155
- package/types/resources/InstallmentDetail.d.ts +19 -27
- package/types/resources/Invoice.d.ts +1574 -3157
- package/types/resources/InvoiceEstimate.d.ts +131 -161
- package/types/resources/Item.d.ts +133 -611
- package/types/resources/ItemEntitlement.d.ts +78 -215
- package/types/resources/ItemFamily.d.ts +69 -178
- package/types/resources/ItemPrice.d.ts +291 -1203
- package/types/resources/Metadata.d.ts +3 -5
- package/types/resources/Order.d.ts +538 -1471
- package/types/resources/PaymentIntent.d.ts +163 -347
- package/types/resources/PaymentReferenceNumber.d.ts +7 -29
- package/types/resources/PaymentSource.d.ts +476 -1272
- package/types/resources/PaymentVoucher.d.ts +87 -306
- package/types/resources/PortalSession.d.ts +71 -207
- package/types/resources/PriceVariant.d.ts +91 -279
- package/types/resources/PricingPageSession.d.ts +92 -41
- package/types/resources/PromotionalCredit.d.ts +90 -346
- package/types/resources/Purchase.d.ts +185 -315
- package/types/resources/Quote.d.ts +1406 -887
- package/types/resources/QuoteLineGroup.d.ts +125 -452
- package/types/resources/QuotedCharge.d.ts +45 -274
- package/types/resources/QuotedSubscription.d.ts +100 -488
- package/types/resources/Ramp.d.ts +230 -747
- package/types/resources/ResourceMigration.d.ts +25 -80
- package/types/resources/SiteMigrationDetail.d.ts +34 -112
- package/types/resources/Subscription.d.ts +2390 -4336
- package/types/resources/SubscriptionEntitlement.d.ts +59 -160
- package/types/resources/SubscriptionEstimate.d.ts +51 -75
- package/types/resources/TaxWithheld.d.ts +15 -40
- package/types/resources/ThirdPartyPaymentMethod.d.ts +7 -29
- package/types/resources/TimeMachine.d.ts +43 -97
- package/types/resources/Token.d.ts +15 -85
- package/types/resources/Transaction.d.ts +276 -911
- package/types/resources/UnbilledCharge.d.ts +189 -164
- package/types/resources/Usage.d.ts +89 -279
- package/types/resources/VirtualBankAccount.d.ts +103 -255
- package/types/resources/filter.d.ts +52 -0
- package/.github/ISSUE_TEMPLATE/bug_report.yml +0 -81
- package/.github/ISSUE_TEMPLATE/config.yml +0 -6
- package/.github/ISSUE_TEMPLATE/feature_request.yml +0 -34
- package/.github/PULL_REQUEST_TEMPLATE.md +0 -8
- package/lib/chargebee.js +0 -512
- package/lib/resources/api_endpoints.js +0 -2935
- package/types/resources/NonSubscription.d.ts +0 -30
- 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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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 `true`, 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 `true`, indicates that the gift does not expire. Do not pass or pass as `false` when `auto_claim` 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 `scheduled_at`. If the gift is not claimed within `claim_expiry_date`, it will expire and the subscription will move to `cancelled` state. When not passed, the value specified in the site settings will be used. Pass as `NULL` or do not pass when `auto_claim` or `no_expiry` are set.
|
|
42
|
-
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
|
-
claim_expiry_date?:number;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* @description Version number of this resource. The `resource_version` 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
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
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
|
-
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* @description When `true`, 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 `true`, indicates that the gift does not expire. Do not pass or pass as `false` when `auto_claim` 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 `scheduled_at`. If the gift is not claimed within `claim_expiry_date`, it will expire and the subscription will move to `cancelled` state. When not passed, the value specified in the site settings will be used. Pass as `NULL` or do not pass when `auto_claim` or `no_expiry` 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 `true`, 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 `true`, indicates that the gift does not expire. Do not pass or pass as `false` when `auto_claim` is set. .
|
|
237
63
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
* @description The date until which the gift can be claimed. Must be set to a value after `scheduled_at`. If the gift is not claimed within `claim_expiry_date`, it will expire and the subscription will move to `cancelled` state. When not passed, the value specified in the site settings will be used. Pass as `NULL` or do not pass when `auto_claim` or `no_expiry` 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
|
-
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* @description Parameters for gifter
|
|
70
|
+
export interface RetrieveResponse {
|
|
71
|
+
gift: Gift;
|
|
72
|
+
subscription: Subscription;
|
|
73
|
+
}
|
|
258
74
|
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
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
|
-
|
|
269
|
-
|
|
270
|
-
/**
|
|
271
|
-
* @description Parameters for payment_intent
|
|
80
|
+
export interface ClaimResponse {
|
|
81
|
+
gift: Gift;
|
|
82
|
+
subscription: Subscription;
|
|
83
|
+
}
|
|
272
84
|
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
/**
|
|
278
|
-
* @description Parameters for shipping_address
|
|
85
|
+
export interface CancelResponse {
|
|
86
|
+
gift: Gift;
|
|
87
|
+
subscription: Subscription;
|
|
88
|
+
}
|
|
279
89
|
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
/**
|
|
285
|
-
* @description Parameters for subscription_items
|
|
90
|
+
export interface UpdateGiftResponse {
|
|
91
|
+
gift: Gift;
|
|
92
|
+
subscription: Subscription;
|
|
93
|
+
}
|
|
286
94
|
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
95
|
+
export interface Gifter {
|
|
96
|
+
customer_id: string;
|
|
97
|
+
invoice_id?: string;
|
|
98
|
+
signature?: string;
|
|
99
|
+
note?: string;
|
|
290
100
|
}
|
|
291
|
-
export interface
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
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
|
-
|
|
298
|
-
|
|
299
|
-
|
|
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
|
-
|
|
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
|
-
|
|
314
|
-
|
|
315
|
-
|
|
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
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
subscription:Subscription;
|
|
147
|
+
export interface UpdateGiftInputParam {
|
|
148
|
+
scheduled_at: number;
|
|
149
|
+
comment?: string;
|
|
353
150
|
}
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
151
|
+
export interface GiftReceiverCreateInputParam {
|
|
152
|
+
customer_id: string;
|
|
153
|
+
first_name: string;
|
|
154
|
+
last_name: string;
|
|
155
|
+
email: string;
|
|
359
156
|
}
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
157
|
+
export interface GifterCreateInputParam {
|
|
158
|
+
customer_id: string;
|
|
159
|
+
signature: string;
|
|
160
|
+
note?: string;
|
|
161
|
+
payment_src_id?: string;
|
|
365
162
|
}
|
|
366
|
-
export interface
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
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
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
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
|
|
412
|
-
|
|
413
|
-
|
|
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
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
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
|
-
|
|
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
|
+
}
|