@gofynd/fdk-client-javascript 1.4.5 → 1.4.6
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/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +5 -5
- package/sdk/application/Catalog/CatalogApplicationClient.js +5 -5
- package/sdk/application/Logistic/LogisticApplicationModel.js +2 -2
- package/sdk/application/Order/OrderApplicationClient.d.ts +1 -1
- package/sdk/application/Order/OrderApplicationClient.js +1 -1
- package/sdk/application/Order/OrderApplicationValidator.d.ts +2 -2
- package/sdk/application/Order/OrderApplicationValidator.js +1 -1
- package/sdk/application/Payment/PaymentApplicationModel.js +23 -17
- package/sdk/application/index.d.ts +0 -1
- package/sdk/application/index.js +0 -2
- package/sdk/partner/Webhook/WebhookPartnerModel.js +1 -1
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +25 -2
- package/sdk/platform/Catalog/CatalogPlatformClient.js +69 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +2 -0
- package/sdk/platform/Catalog/CatalogPlatformModel.js +16 -12
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +59 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +25 -0
- package/sdk/platform/Order/OrderPlatformModel.js +65 -41
- package/sdk/platform/Payment/PaymentPlatformModel.js +22 -16
- package/sdk/platform/Webhook/WebhookPlatformModel.js +1 -1
- package/sdk/public/Webhook/WebhookPublicModel.js +1 -1
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +0 -323
- package/sdk/application/PosCart/PosCartApplicationClient.js +0 -2364
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +0 -1857
- package/sdk/application/PosCart/PosCartApplicationModel.js +0 -1906
- package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +0 -483
- package/sdk/application/PosCart/PosCartApplicationValidator.js +0 -492
|
@@ -1,483 +0,0 @@
|
|
|
1
|
-
export = PosCartApplicationValidator;
|
|
2
|
-
/**
|
|
3
|
-
* @typedef AddAddressParam
|
|
4
|
-
* @property {PosCartApplicationModel.Address} body
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* @typedef AddItemsParam
|
|
8
|
-
* @property {boolean} [i]
|
|
9
|
-
* @property {boolean} [b]
|
|
10
|
-
* @property {string} [areaCode]
|
|
11
|
-
* @property {boolean} [buyNow]
|
|
12
|
-
* @property {string} [id]
|
|
13
|
-
* @property {PosCartApplicationModel.AddCartRequest} body
|
|
14
|
-
*/
|
|
15
|
-
/**
|
|
16
|
-
* @typedef ApplyCouponParam
|
|
17
|
-
* @property {boolean} [i]
|
|
18
|
-
* @property {boolean} [b]
|
|
19
|
-
* @property {boolean} [p]
|
|
20
|
-
* @property {string} [id]
|
|
21
|
-
* @property {boolean} [buyNow]
|
|
22
|
-
* @property {PosCartApplicationModel.ApplyCouponRequest} body
|
|
23
|
-
*/
|
|
24
|
-
/**
|
|
25
|
-
* @typedef ApplyRewardPointsParam
|
|
26
|
-
* @property {string} [id]
|
|
27
|
-
* @property {boolean} [i]
|
|
28
|
-
* @property {boolean} [b]
|
|
29
|
-
* @property {boolean} [buyNow]
|
|
30
|
-
* @property {PosCartApplicationModel.RewardPointRequest} body
|
|
31
|
-
*/
|
|
32
|
-
/**
|
|
33
|
-
* @typedef CheckoutCartParam
|
|
34
|
-
* @property {string} [id]
|
|
35
|
-
* @property {PosCartApplicationModel.CartPosCheckoutDetailRequest} body
|
|
36
|
-
*/
|
|
37
|
-
/**
|
|
38
|
-
* @typedef GetAddressByIdParam
|
|
39
|
-
* @property {string} id
|
|
40
|
-
* @property {string} [cartId]
|
|
41
|
-
* @property {boolean} [buyNow]
|
|
42
|
-
* @property {string} [mobileNo]
|
|
43
|
-
* @property {string} [checkoutMode]
|
|
44
|
-
* @property {string} [tags]
|
|
45
|
-
* @property {boolean} [isDefault]
|
|
46
|
-
*/
|
|
47
|
-
/**
|
|
48
|
-
* @typedef GetAddressesParam
|
|
49
|
-
* @property {string} [cartId]
|
|
50
|
-
* @property {boolean} [buyNow]
|
|
51
|
-
* @property {string} [mobileNo]
|
|
52
|
-
* @property {string} [checkoutMode]
|
|
53
|
-
* @property {string} [tags]
|
|
54
|
-
* @property {boolean} [isDefault]
|
|
55
|
-
*/
|
|
56
|
-
/**
|
|
57
|
-
* @typedef GetAvailableDeliveryModesParam
|
|
58
|
-
* @property {string} areaCode
|
|
59
|
-
* @property {string} [id]
|
|
60
|
-
*/
|
|
61
|
-
/**
|
|
62
|
-
* @typedef GetBulkDiscountOffersParam
|
|
63
|
-
* @property {number} [itemId] - The Item ID of the product
|
|
64
|
-
* @property {string} [articleId] - Article Mongo ID
|
|
65
|
-
* @property {number} [uid] - UID of the product
|
|
66
|
-
* @property {string} [slug] - A short, human-readable, URL-friendly identifier
|
|
67
|
-
* of a product. You can get slug value from the endpoint
|
|
68
|
-
* /service/application/catalog/v1.0/products/
|
|
69
|
-
*/
|
|
70
|
-
/**
|
|
71
|
-
* @typedef GetCartParam
|
|
72
|
-
* @property {string} [id]
|
|
73
|
-
* @property {boolean} [i]
|
|
74
|
-
* @property {boolean} [b]
|
|
75
|
-
* @property {boolean} [c]
|
|
76
|
-
* @property {number} [assignCardId]
|
|
77
|
-
* @property {string} [areaCode]
|
|
78
|
-
* @property {boolean} [buyNow]
|
|
79
|
-
*/
|
|
80
|
-
/**
|
|
81
|
-
* @typedef GetCartLastModifiedParam
|
|
82
|
-
* @property {string} [id]
|
|
83
|
-
*/
|
|
84
|
-
/**
|
|
85
|
-
* @typedef GetCartShareLinkParam
|
|
86
|
-
* @property {PosCartApplicationModel.GetShareCartLinkRequest} body
|
|
87
|
-
*/
|
|
88
|
-
/**
|
|
89
|
-
* @typedef GetCartSharedItemsParam
|
|
90
|
-
* @property {string} token - Token of the shared short link
|
|
91
|
-
*/
|
|
92
|
-
/**
|
|
93
|
-
* @typedef GetCouponsParam
|
|
94
|
-
* @property {string} [id]
|
|
95
|
-
* @property {boolean} [buyNow]
|
|
96
|
-
*/
|
|
97
|
-
/**
|
|
98
|
-
* @typedef GetItemCountParam
|
|
99
|
-
* @property {string} [id] - The unique identifier of the cart.
|
|
100
|
-
* @property {boolean} [buyNow]
|
|
101
|
-
*/
|
|
102
|
-
/**
|
|
103
|
-
* @typedef GetShipmentsParam
|
|
104
|
-
* @property {number} [pickAtStoreUid]
|
|
105
|
-
* @property {number} [orderingStoreId]
|
|
106
|
-
* @property {boolean} [p] - This is a boolean value. Select `true` for getting
|
|
107
|
-
* a payment option in response.
|
|
108
|
-
* @property {string} [id] - The unique identifier of the cart
|
|
109
|
-
* @property {string} [addressId] - ID allotted to the selected address
|
|
110
|
-
* @property {string} [areaCode] - The PIN Code of the destination address, e.g. 400059
|
|
111
|
-
* @property {string} [orderType] - The order type of shipment HomeDelivery - If
|
|
112
|
-
* the customer wants the order home-delivered PickAtStore - If the customer
|
|
113
|
-
* wants the handover of an order at the store itself.
|
|
114
|
-
*/
|
|
115
|
-
/**
|
|
116
|
-
* @typedef GetStoreAddressByUidParam
|
|
117
|
-
* @property {number} storeUid
|
|
118
|
-
*/
|
|
119
|
-
/**
|
|
120
|
-
* @typedef RemoveAddressParam
|
|
121
|
-
* @property {string} id - ID allotted to the selected address
|
|
122
|
-
*/
|
|
123
|
-
/**
|
|
124
|
-
* @typedef RemoveCouponParam
|
|
125
|
-
* @property {string} [id]
|
|
126
|
-
* @property {boolean} [buyNow]
|
|
127
|
-
*/
|
|
128
|
-
/**
|
|
129
|
-
* @typedef SelectAddressParam
|
|
130
|
-
* @property {string} [cartId]
|
|
131
|
-
* @property {boolean} [buyNow]
|
|
132
|
-
* @property {boolean} [i]
|
|
133
|
-
* @property {boolean} [b]
|
|
134
|
-
* @property {PosCartApplicationModel.SelectCartAddressRequest} body
|
|
135
|
-
*/
|
|
136
|
-
/**
|
|
137
|
-
* @typedef SelectPaymentModeParam
|
|
138
|
-
* @property {string} [id]
|
|
139
|
-
* @property {boolean} [buyNow]
|
|
140
|
-
* @property {PosCartApplicationModel.UpdateCartPaymentRequest} body
|
|
141
|
-
*/
|
|
142
|
-
/**
|
|
143
|
-
* @typedef UpdateAddressParam
|
|
144
|
-
* @property {string} id - ID allotted to the selected address
|
|
145
|
-
* @property {PosCartApplicationModel.Address} body
|
|
146
|
-
*/
|
|
147
|
-
/**
|
|
148
|
-
* @typedef UpdateCartParam
|
|
149
|
-
* @property {string} [id]
|
|
150
|
-
* @property {boolean} [i]
|
|
151
|
-
* @property {boolean} [b]
|
|
152
|
-
* @property {string} [areaCode]
|
|
153
|
-
* @property {boolean} [buyNow]
|
|
154
|
-
* @property {PosCartApplicationModel.UpdateCartRequest} body
|
|
155
|
-
*/
|
|
156
|
-
/**
|
|
157
|
-
* @typedef UpdateCartMetaParam
|
|
158
|
-
* @property {string} [id]
|
|
159
|
-
* @property {boolean} [buyNow]
|
|
160
|
-
* @property {PosCartApplicationModel.CartMetaRequest} body
|
|
161
|
-
*/
|
|
162
|
-
/**
|
|
163
|
-
* @typedef UpdateCartWithSharedItemsParam
|
|
164
|
-
* @property {string} token - Token of the shared short link
|
|
165
|
-
* @property {string} action - Operation to perform on the existing cart merge or replace.
|
|
166
|
-
*/
|
|
167
|
-
/**
|
|
168
|
-
* @typedef UpdateShipmentsParam
|
|
169
|
-
* @property {boolean} [i] - This is a boolean value. Select `true` to retrieve
|
|
170
|
-
* all the items added in the cart.
|
|
171
|
-
* @property {boolean} [p] - This is a boolean value. Select `true` for getting
|
|
172
|
-
* a payment option in response.
|
|
173
|
-
* @property {string} [id] - The unique identifier of the cart
|
|
174
|
-
* @property {string} [addressId] - ID allotted to an address
|
|
175
|
-
* @property {string} [areaCode] - The PIN Code of the destination address, e.g. 400059
|
|
176
|
-
* @property {string} [orderType] - The order type of shipment HomeDelivery - If
|
|
177
|
-
* the customer wants the order home-delivered PickAtStore - If the customer
|
|
178
|
-
* wants the handover of an order at the store itself.
|
|
179
|
-
* @property {PosCartApplicationModel.UpdateCartShipmentRequest} body
|
|
180
|
-
*/
|
|
181
|
-
/**
|
|
182
|
-
* @typedef ValidateCouponForPaymentParam
|
|
183
|
-
* @property {string} [id]
|
|
184
|
-
* @property {boolean} [buyNow]
|
|
185
|
-
* @property {string} [addressId]
|
|
186
|
-
* @property {string} [paymentMode]
|
|
187
|
-
* @property {string} [paymentIdentifier]
|
|
188
|
-
* @property {string} [aggregatorName]
|
|
189
|
-
* @property {string} [merchantCode]
|
|
190
|
-
* @property {string} [iin]
|
|
191
|
-
* @property {string} [network]
|
|
192
|
-
* @property {string} [type]
|
|
193
|
-
* @property {string} [cardId]
|
|
194
|
-
*/
|
|
195
|
-
declare class PosCartApplicationValidator {
|
|
196
|
-
/** @returns {AddAddressParam} */
|
|
197
|
-
static addAddress(): AddAddressParam;
|
|
198
|
-
/** @returns {AddItemsParam} */
|
|
199
|
-
static addItems(): AddItemsParam;
|
|
200
|
-
/** @returns {ApplyCouponParam} */
|
|
201
|
-
static applyCoupon(): ApplyCouponParam;
|
|
202
|
-
/** @returns {ApplyRewardPointsParam} */
|
|
203
|
-
static applyRewardPoints(): ApplyRewardPointsParam;
|
|
204
|
-
/** @returns {CheckoutCartParam} */
|
|
205
|
-
static checkoutCart(): CheckoutCartParam;
|
|
206
|
-
/** @returns {GetAddressByIdParam} */
|
|
207
|
-
static getAddressById(): GetAddressByIdParam;
|
|
208
|
-
/** @returns {GetAddressesParam} */
|
|
209
|
-
static getAddresses(): GetAddressesParam;
|
|
210
|
-
/** @returns {GetAvailableDeliveryModesParam} */
|
|
211
|
-
static getAvailableDeliveryModes(): GetAvailableDeliveryModesParam;
|
|
212
|
-
/** @returns {GetBulkDiscountOffersParam} */
|
|
213
|
-
static getBulkDiscountOffers(): GetBulkDiscountOffersParam;
|
|
214
|
-
/** @returns {GetCartParam} */
|
|
215
|
-
static getCart(): GetCartParam;
|
|
216
|
-
/** @returns {GetCartLastModifiedParam} */
|
|
217
|
-
static getCartLastModified(): GetCartLastModifiedParam;
|
|
218
|
-
/** @returns {GetCartShareLinkParam} */
|
|
219
|
-
static getCartShareLink(): GetCartShareLinkParam;
|
|
220
|
-
/** @returns {GetCartSharedItemsParam} */
|
|
221
|
-
static getCartSharedItems(): GetCartSharedItemsParam;
|
|
222
|
-
/** @returns {GetCouponsParam} */
|
|
223
|
-
static getCoupons(): GetCouponsParam;
|
|
224
|
-
/** @returns {GetItemCountParam} */
|
|
225
|
-
static getItemCount(): GetItemCountParam;
|
|
226
|
-
/** @returns {GetShipmentsParam} */
|
|
227
|
-
static getShipments(): GetShipmentsParam;
|
|
228
|
-
/** @returns {GetStoreAddressByUidParam} */
|
|
229
|
-
static getStoreAddressByUid(): GetStoreAddressByUidParam;
|
|
230
|
-
/** @returns {RemoveAddressParam} */
|
|
231
|
-
static removeAddress(): RemoveAddressParam;
|
|
232
|
-
/** @returns {RemoveCouponParam} */
|
|
233
|
-
static removeCoupon(): RemoveCouponParam;
|
|
234
|
-
/** @returns {SelectAddressParam} */
|
|
235
|
-
static selectAddress(): SelectAddressParam;
|
|
236
|
-
/** @returns {SelectPaymentModeParam} */
|
|
237
|
-
static selectPaymentMode(): SelectPaymentModeParam;
|
|
238
|
-
/** @returns {UpdateAddressParam} */
|
|
239
|
-
static updateAddress(): UpdateAddressParam;
|
|
240
|
-
/** @returns {UpdateCartParam} */
|
|
241
|
-
static updateCart(): UpdateCartParam;
|
|
242
|
-
/** @returns {UpdateCartMetaParam} */
|
|
243
|
-
static updateCartMeta(): UpdateCartMetaParam;
|
|
244
|
-
/** @returns {UpdateCartWithSharedItemsParam} */
|
|
245
|
-
static updateCartWithSharedItems(): UpdateCartWithSharedItemsParam;
|
|
246
|
-
/** @returns {UpdateShipmentsParam} */
|
|
247
|
-
static updateShipments(): UpdateShipmentsParam;
|
|
248
|
-
/** @returns {ValidateCouponForPaymentParam} */
|
|
249
|
-
static validateCouponForPayment(): ValidateCouponForPaymentParam;
|
|
250
|
-
}
|
|
251
|
-
declare namespace PosCartApplicationValidator {
|
|
252
|
-
export { AddAddressParam, AddItemsParam, ApplyCouponParam, ApplyRewardPointsParam, CheckoutCartParam, GetAddressByIdParam, GetAddressesParam, GetAvailableDeliveryModesParam, GetBulkDiscountOffersParam, GetCartParam, GetCartLastModifiedParam, GetCartShareLinkParam, GetCartSharedItemsParam, GetCouponsParam, GetItemCountParam, GetShipmentsParam, GetStoreAddressByUidParam, RemoveAddressParam, RemoveCouponParam, SelectAddressParam, SelectPaymentModeParam, UpdateAddressParam, UpdateCartParam, UpdateCartMetaParam, UpdateCartWithSharedItemsParam, UpdateShipmentsParam, ValidateCouponForPaymentParam };
|
|
253
|
-
}
|
|
254
|
-
type AddAddressParam = {
|
|
255
|
-
body: PosCartApplicationModel.Address;
|
|
256
|
-
};
|
|
257
|
-
type AddItemsParam = {
|
|
258
|
-
i?: boolean;
|
|
259
|
-
b?: boolean;
|
|
260
|
-
areaCode?: string;
|
|
261
|
-
buyNow?: boolean;
|
|
262
|
-
id?: string;
|
|
263
|
-
body: PosCartApplicationModel.AddCartRequest;
|
|
264
|
-
};
|
|
265
|
-
type ApplyCouponParam = {
|
|
266
|
-
i?: boolean;
|
|
267
|
-
b?: boolean;
|
|
268
|
-
p?: boolean;
|
|
269
|
-
id?: string;
|
|
270
|
-
buyNow?: boolean;
|
|
271
|
-
body: PosCartApplicationModel.ApplyCouponRequest;
|
|
272
|
-
};
|
|
273
|
-
type ApplyRewardPointsParam = {
|
|
274
|
-
id?: string;
|
|
275
|
-
i?: boolean;
|
|
276
|
-
b?: boolean;
|
|
277
|
-
buyNow?: boolean;
|
|
278
|
-
body: PosCartApplicationModel.RewardPointRequest;
|
|
279
|
-
};
|
|
280
|
-
type CheckoutCartParam = {
|
|
281
|
-
id?: string;
|
|
282
|
-
body: PosCartApplicationModel.CartPosCheckoutDetailRequest;
|
|
283
|
-
};
|
|
284
|
-
type GetAddressByIdParam = {
|
|
285
|
-
id: string;
|
|
286
|
-
cartId?: string;
|
|
287
|
-
buyNow?: boolean;
|
|
288
|
-
mobileNo?: string;
|
|
289
|
-
checkoutMode?: string;
|
|
290
|
-
tags?: string;
|
|
291
|
-
isDefault?: boolean;
|
|
292
|
-
};
|
|
293
|
-
type GetAddressesParam = {
|
|
294
|
-
cartId?: string;
|
|
295
|
-
buyNow?: boolean;
|
|
296
|
-
mobileNo?: string;
|
|
297
|
-
checkoutMode?: string;
|
|
298
|
-
tags?: string;
|
|
299
|
-
isDefault?: boolean;
|
|
300
|
-
};
|
|
301
|
-
type GetAvailableDeliveryModesParam = {
|
|
302
|
-
areaCode: string;
|
|
303
|
-
id?: string;
|
|
304
|
-
};
|
|
305
|
-
type GetBulkDiscountOffersParam = {
|
|
306
|
-
/**
|
|
307
|
-
* - The Item ID of the product
|
|
308
|
-
*/
|
|
309
|
-
itemId?: number;
|
|
310
|
-
/**
|
|
311
|
-
* - Article Mongo ID
|
|
312
|
-
*/
|
|
313
|
-
articleId?: string;
|
|
314
|
-
/**
|
|
315
|
-
* - UID of the product
|
|
316
|
-
*/
|
|
317
|
-
uid?: number;
|
|
318
|
-
/**
|
|
319
|
-
* - A short, human-readable, URL-friendly identifier
|
|
320
|
-
* of a product. You can get slug value from the endpoint
|
|
321
|
-
* /service/application/catalog/v1.0/products/
|
|
322
|
-
*/
|
|
323
|
-
slug?: string;
|
|
324
|
-
};
|
|
325
|
-
type GetCartParam = {
|
|
326
|
-
id?: string;
|
|
327
|
-
i?: boolean;
|
|
328
|
-
b?: boolean;
|
|
329
|
-
c?: boolean;
|
|
330
|
-
assignCardId?: number;
|
|
331
|
-
areaCode?: string;
|
|
332
|
-
buyNow?: boolean;
|
|
333
|
-
};
|
|
334
|
-
type GetCartLastModifiedParam = {
|
|
335
|
-
id?: string;
|
|
336
|
-
};
|
|
337
|
-
type GetCartShareLinkParam = {
|
|
338
|
-
body: PosCartApplicationModel.GetShareCartLinkRequest;
|
|
339
|
-
};
|
|
340
|
-
type GetCartSharedItemsParam = {
|
|
341
|
-
/**
|
|
342
|
-
* - Token of the shared short link
|
|
343
|
-
*/
|
|
344
|
-
token: string;
|
|
345
|
-
};
|
|
346
|
-
type GetCouponsParam = {
|
|
347
|
-
id?: string;
|
|
348
|
-
buyNow?: boolean;
|
|
349
|
-
};
|
|
350
|
-
type GetItemCountParam = {
|
|
351
|
-
/**
|
|
352
|
-
* - The unique identifier of the cart.
|
|
353
|
-
*/
|
|
354
|
-
id?: string;
|
|
355
|
-
buyNow?: boolean;
|
|
356
|
-
};
|
|
357
|
-
type GetShipmentsParam = {
|
|
358
|
-
pickAtStoreUid?: number;
|
|
359
|
-
orderingStoreId?: number;
|
|
360
|
-
/**
|
|
361
|
-
* - This is a boolean value. Select `true` for getting
|
|
362
|
-
* a payment option in response.
|
|
363
|
-
*/
|
|
364
|
-
p?: boolean;
|
|
365
|
-
/**
|
|
366
|
-
* - The unique identifier of the cart
|
|
367
|
-
*/
|
|
368
|
-
id?: string;
|
|
369
|
-
/**
|
|
370
|
-
* - ID allotted to the selected address
|
|
371
|
-
*/
|
|
372
|
-
addressId?: string;
|
|
373
|
-
/**
|
|
374
|
-
* - The PIN Code of the destination address, e.g. 400059
|
|
375
|
-
*/
|
|
376
|
-
areaCode?: string;
|
|
377
|
-
/**
|
|
378
|
-
* - The order type of shipment HomeDelivery - If
|
|
379
|
-
* the customer wants the order home-delivered PickAtStore - If the customer
|
|
380
|
-
* wants the handover of an order at the store itself.
|
|
381
|
-
*/
|
|
382
|
-
orderType?: string;
|
|
383
|
-
};
|
|
384
|
-
type GetStoreAddressByUidParam = {
|
|
385
|
-
storeUid: number;
|
|
386
|
-
};
|
|
387
|
-
type RemoveAddressParam = {
|
|
388
|
-
/**
|
|
389
|
-
* - ID allotted to the selected address
|
|
390
|
-
*/
|
|
391
|
-
id: string;
|
|
392
|
-
};
|
|
393
|
-
type RemoveCouponParam = {
|
|
394
|
-
id?: string;
|
|
395
|
-
buyNow?: boolean;
|
|
396
|
-
};
|
|
397
|
-
type SelectAddressParam = {
|
|
398
|
-
cartId?: string;
|
|
399
|
-
buyNow?: boolean;
|
|
400
|
-
i?: boolean;
|
|
401
|
-
b?: boolean;
|
|
402
|
-
body: PosCartApplicationModel.SelectCartAddressRequest;
|
|
403
|
-
};
|
|
404
|
-
type SelectPaymentModeParam = {
|
|
405
|
-
id?: string;
|
|
406
|
-
buyNow?: boolean;
|
|
407
|
-
body: PosCartApplicationModel.UpdateCartPaymentRequest;
|
|
408
|
-
};
|
|
409
|
-
type UpdateAddressParam = {
|
|
410
|
-
/**
|
|
411
|
-
* - ID allotted to the selected address
|
|
412
|
-
*/
|
|
413
|
-
id: string;
|
|
414
|
-
body: PosCartApplicationModel.Address;
|
|
415
|
-
};
|
|
416
|
-
type UpdateCartParam = {
|
|
417
|
-
id?: string;
|
|
418
|
-
i?: boolean;
|
|
419
|
-
b?: boolean;
|
|
420
|
-
areaCode?: string;
|
|
421
|
-
buyNow?: boolean;
|
|
422
|
-
body: PosCartApplicationModel.UpdateCartRequest;
|
|
423
|
-
};
|
|
424
|
-
type UpdateCartMetaParam = {
|
|
425
|
-
id?: string;
|
|
426
|
-
buyNow?: boolean;
|
|
427
|
-
body: PosCartApplicationModel.CartMetaRequest;
|
|
428
|
-
};
|
|
429
|
-
type UpdateCartWithSharedItemsParam = {
|
|
430
|
-
/**
|
|
431
|
-
* - Token of the shared short link
|
|
432
|
-
*/
|
|
433
|
-
token: string;
|
|
434
|
-
/**
|
|
435
|
-
* - Operation to perform on the existing cart merge or replace.
|
|
436
|
-
*/
|
|
437
|
-
action: string;
|
|
438
|
-
};
|
|
439
|
-
type UpdateShipmentsParam = {
|
|
440
|
-
/**
|
|
441
|
-
* - This is a boolean value. Select `true` to retrieve
|
|
442
|
-
* all the items added in the cart.
|
|
443
|
-
*/
|
|
444
|
-
i?: boolean;
|
|
445
|
-
/**
|
|
446
|
-
* - This is a boolean value. Select `true` for getting
|
|
447
|
-
* a payment option in response.
|
|
448
|
-
*/
|
|
449
|
-
p?: boolean;
|
|
450
|
-
/**
|
|
451
|
-
* - The unique identifier of the cart
|
|
452
|
-
*/
|
|
453
|
-
id?: string;
|
|
454
|
-
/**
|
|
455
|
-
* - ID allotted to an address
|
|
456
|
-
*/
|
|
457
|
-
addressId?: string;
|
|
458
|
-
/**
|
|
459
|
-
* - The PIN Code of the destination address, e.g. 400059
|
|
460
|
-
*/
|
|
461
|
-
areaCode?: string;
|
|
462
|
-
/**
|
|
463
|
-
* - The order type of shipment HomeDelivery - If
|
|
464
|
-
* the customer wants the order home-delivered PickAtStore - If the customer
|
|
465
|
-
* wants the handover of an order at the store itself.
|
|
466
|
-
*/
|
|
467
|
-
orderType?: string;
|
|
468
|
-
body: PosCartApplicationModel.UpdateCartShipmentRequest;
|
|
469
|
-
};
|
|
470
|
-
type ValidateCouponForPaymentParam = {
|
|
471
|
-
id?: string;
|
|
472
|
-
buyNow?: boolean;
|
|
473
|
-
addressId?: string;
|
|
474
|
-
paymentMode?: string;
|
|
475
|
-
paymentIdentifier?: string;
|
|
476
|
-
aggregatorName?: string;
|
|
477
|
-
merchantCode?: string;
|
|
478
|
-
iin?: string;
|
|
479
|
-
network?: string;
|
|
480
|
-
type?: string;
|
|
481
|
-
cardId?: string;
|
|
482
|
-
};
|
|
483
|
-
import PosCartApplicationModel = require("./PosCartApplicationModel");
|