@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,323 +0,0 @@
|
|
|
1
|
-
export = PosCart;
|
|
2
|
-
declare class PosCart {
|
|
3
|
-
constructor(_conf: any);
|
|
4
|
-
_conf: any;
|
|
5
|
-
_relativeUrls: {
|
|
6
|
-
addAddress: string;
|
|
7
|
-
addItems: string;
|
|
8
|
-
applyCoupon: string;
|
|
9
|
-
applyRewardPoints: string;
|
|
10
|
-
checkoutCart: string;
|
|
11
|
-
getAddressById: string;
|
|
12
|
-
getAddresses: string;
|
|
13
|
-
getAvailableDeliveryModes: string;
|
|
14
|
-
getBulkDiscountOffers: string;
|
|
15
|
-
getCart: string;
|
|
16
|
-
getCartLastModified: string;
|
|
17
|
-
getCartShareLink: string;
|
|
18
|
-
getCartSharedItems: string;
|
|
19
|
-
getCoupons: string;
|
|
20
|
-
getItemCount: string;
|
|
21
|
-
getShipments: string;
|
|
22
|
-
getStoreAddressByUid: string;
|
|
23
|
-
removeAddress: string;
|
|
24
|
-
removeCoupon: string;
|
|
25
|
-
selectAddress: string;
|
|
26
|
-
selectPaymentMode: string;
|
|
27
|
-
updateAddress: string;
|
|
28
|
-
updateCart: string;
|
|
29
|
-
updateCartMeta: string;
|
|
30
|
-
updateCartWithSharedItems: string;
|
|
31
|
-
updateShipments: string;
|
|
32
|
-
validateCouponForPayment: string;
|
|
33
|
-
};
|
|
34
|
-
_urls: {};
|
|
35
|
-
updateUrls(urls: any): void;
|
|
36
|
-
/**
|
|
37
|
-
* @param {PosCartApplicationValidator.AddAddressParam} arg - Arg object.
|
|
38
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
39
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
40
|
-
* @returns {Promise<PosCartApplicationModel.SaveAddressResponse>} - Success response
|
|
41
|
-
* @name addAddress
|
|
42
|
-
* @summary: Add new address
|
|
43
|
-
* @description: Saves a new address for the user. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/addAddress/).
|
|
44
|
-
*/
|
|
45
|
-
addAddress({ body, requestHeaders }?: PosCartApplicationValidator.AddAddressParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.SaveAddressResponse>;
|
|
46
|
-
/**
|
|
47
|
-
* @param {PosCartApplicationValidator.AddItemsParam} arg - Arg object.
|
|
48
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
49
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
50
|
-
* @returns {Promise<PosCartApplicationModel.AddCartDetailResponse>} -
|
|
51
|
-
* Success response
|
|
52
|
-
* @name addItems
|
|
53
|
-
* @summary: Add to cart
|
|
54
|
-
* @description: Adds selected items to the shopping cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/addItems/).
|
|
55
|
-
*/
|
|
56
|
-
addItems({ body, i, b, areaCode, buyNow, id, requestHeaders }?: PosCartApplicationValidator.AddItemsParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.AddCartDetailResponse>;
|
|
57
|
-
/**
|
|
58
|
-
* @param {PosCartApplicationValidator.ApplyCouponParam} arg - Arg object.
|
|
59
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
60
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
61
|
-
* @returns {Promise<PosCartApplicationModel.CartDetailResponse>} - Success response
|
|
62
|
-
* @name applyCoupon
|
|
63
|
-
* @summary: Apply coupon
|
|
64
|
-
* @description: Applies a coupon code to get discounts on cart items. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/applyCoupon/).
|
|
65
|
-
*/
|
|
66
|
-
applyCoupon({ body, i, b, p, id, buyNow, requestHeaders }?: PosCartApplicationValidator.ApplyCouponParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.CartDetailResponse>;
|
|
67
|
-
/**
|
|
68
|
-
* @param {PosCartApplicationValidator.ApplyRewardPointsParam} arg - Arg object.
|
|
69
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
70
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
71
|
-
* @returns {Promise<PosCartApplicationModel.CartDetailResponse>} - Success response
|
|
72
|
-
* @name applyRewardPoints
|
|
73
|
-
* @summary: Use reward points
|
|
74
|
-
* @description: Applies user’s reward points to the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/applyRewardPoints/).
|
|
75
|
-
*/
|
|
76
|
-
applyRewardPoints({ body, id, i, b, buyNow, requestHeaders }?: PosCartApplicationValidator.ApplyRewardPointsParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.CartDetailResponse>;
|
|
77
|
-
/**
|
|
78
|
-
* @param {PosCartApplicationValidator.CheckoutCartParam} arg - Arg object.
|
|
79
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
80
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
81
|
-
* @returns {Promise<PosCartApplicationModel.CartCheckoutResponse>} - Success response
|
|
82
|
-
* @name checkoutCart
|
|
83
|
-
* @summary: Checkout cart
|
|
84
|
-
* @description: Initiates the checkout process for the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/checkoutCart/).
|
|
85
|
-
*/
|
|
86
|
-
checkoutCart({ body, id, requestHeaders }?: PosCartApplicationValidator.CheckoutCartParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.CartCheckoutResponse>;
|
|
87
|
-
/**
|
|
88
|
-
* @param {PosCartApplicationValidator.GetAddressByIdParam} arg - Arg object.
|
|
89
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
90
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
91
|
-
* @returns {Promise<PosCartApplicationModel.Address>} - Success response
|
|
92
|
-
* @name getAddressById
|
|
93
|
-
* @summary: Fetch address
|
|
94
|
-
* @description: Retrieves a saved address using its ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/getAddressById/).
|
|
95
|
-
*/
|
|
96
|
-
getAddressById({ id, cartId, buyNow, mobileNo, checkoutMode, tags, isDefault, requestHeaders, }?: PosCartApplicationValidator.GetAddressByIdParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.Address>;
|
|
97
|
-
/**
|
|
98
|
-
* @param {PosCartApplicationValidator.GetAddressesParam} arg - Arg object.
|
|
99
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
100
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
101
|
-
* @returns {Promise<PosCartApplicationModel.GetAddressesResponse>} - Success response
|
|
102
|
-
* @name getAddresses
|
|
103
|
-
* @summary: Get saved addresses
|
|
104
|
-
* @description: Retrieve all saved addresses for the user. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/getAddresses/).
|
|
105
|
-
*/
|
|
106
|
-
getAddresses({ cartId, buyNow, mobileNo, checkoutMode, tags, isDefault, requestHeaders, }?: PosCartApplicationValidator.GetAddressesParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.GetAddressesResponse>;
|
|
107
|
-
/**
|
|
108
|
-
* @param {PosCartApplicationValidator.GetAvailableDeliveryModesParam} arg
|
|
109
|
-
* - Arg object.
|
|
110
|
-
*
|
|
111
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
112
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
113
|
-
* @returns {Promise<PosCartApplicationModel.CartDeliveryModesResponse>} -
|
|
114
|
-
* Success response
|
|
115
|
-
* @name getAvailableDeliveryModes
|
|
116
|
-
* @summary: Delivery options
|
|
117
|
-
* @description: Lists available delivery modes for the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/getAvailableDeliveryModes/).
|
|
118
|
-
*/
|
|
119
|
-
getAvailableDeliveryModes({ areaCode, id, requestHeaders }?: PosCartApplicationValidator.GetAvailableDeliveryModesParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.CartDeliveryModesResponse>;
|
|
120
|
-
/**
|
|
121
|
-
* @param {PosCartApplicationValidator.GetBulkDiscountOffersParam} arg - Arg object.
|
|
122
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
123
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
124
|
-
* @returns {Promise<PosCartApplicationModel.BulkPriceResponse>} - Success response
|
|
125
|
-
* @name getBulkDiscountOffers
|
|
126
|
-
* @summary: Bulk discounts
|
|
127
|
-
* @description: Lists available bulk discount offers for cart items. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/getBulkDiscountOffers/).
|
|
128
|
-
*/
|
|
129
|
-
getBulkDiscountOffers({ itemId, articleId, uid, slug, requestHeaders }?: PosCartApplicationValidator.GetBulkDiscountOffersParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.BulkPriceResponse>;
|
|
130
|
-
/**
|
|
131
|
-
* @param {PosCartApplicationValidator.GetCartParam} arg - Arg object.
|
|
132
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
133
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
134
|
-
* @returns {Promise<PosCartApplicationModel.CartDetailResponse>} - Success response
|
|
135
|
-
* @name getCart
|
|
136
|
-
* @summary: Retrieve cart details
|
|
137
|
-
* @description: Retrieve the current state and items in the shopping cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/getCart/).
|
|
138
|
-
*/
|
|
139
|
-
getCart({ id, i, b, c, assignCardId, areaCode, buyNow, requestHeaders }?: PosCartApplicationValidator.GetCartParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.CartDetailResponse>;
|
|
140
|
-
/**
|
|
141
|
-
* @param {PosCartApplicationValidator.GetCartLastModifiedParam} arg - Arg object.
|
|
142
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
143
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
144
|
-
* @returns {Promise<any>} - Success response
|
|
145
|
-
* @name getCartLastModified
|
|
146
|
-
* @summary: Cart modification time
|
|
147
|
-
* @description: Gets the last modified timestamp for the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/getCartLastModified/).
|
|
148
|
-
*/
|
|
149
|
-
getCartLastModified({ id, requestHeaders }?: PosCartApplicationValidator.GetCartLastModifiedParam, { responseHeaders }?: object): Promise<any>;
|
|
150
|
-
/**
|
|
151
|
-
* @param {PosCartApplicationValidator.GetCartShareLinkParam} arg - Arg object.
|
|
152
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
153
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
154
|
-
* @returns {Promise<PosCartApplicationModel.GetShareCartLinkResponse>} -
|
|
155
|
-
* Success response
|
|
156
|
-
* @name getCartShareLink
|
|
157
|
-
* @summary: Share cart link
|
|
158
|
-
* @description: Generates a shareable link for the current cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/getCartShareLink/).
|
|
159
|
-
*/
|
|
160
|
-
getCartShareLink({ body, requestHeaders }?: PosCartApplicationValidator.GetCartShareLinkParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.GetShareCartLinkResponse>;
|
|
161
|
-
/**
|
|
162
|
-
* @param {PosCartApplicationValidator.GetCartSharedItemsParam} arg - Arg object.
|
|
163
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
164
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
165
|
-
* @returns {Promise<PosCartApplicationModel.SharedCartResponse>} - Success response
|
|
166
|
-
* @name getCartSharedItems
|
|
167
|
-
* @summary: Shared cart items
|
|
168
|
-
* @description: Retrieves items from a shared cart link. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/getCartSharedItems/).
|
|
169
|
-
*/
|
|
170
|
-
getCartSharedItems({ token, requestHeaders }?: PosCartApplicationValidator.GetCartSharedItemsParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.SharedCartResponse>;
|
|
171
|
-
/**
|
|
172
|
-
* @param {PosCartApplicationValidator.GetCouponsParam} arg - Arg object.
|
|
173
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
174
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
175
|
-
* @returns {Promise<PosCartApplicationModel.GetCouponResponse>} - Success response
|
|
176
|
-
* @name getCoupons
|
|
177
|
-
* @summary: List available coupons
|
|
178
|
-
* @description: Retrieve coupons that can be applied to the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/getCoupons/).
|
|
179
|
-
*/
|
|
180
|
-
getCoupons({ id, buyNow, requestHeaders }?: PosCartApplicationValidator.GetCouponsParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.GetCouponResponse>;
|
|
181
|
-
/**
|
|
182
|
-
* @param {PosCartApplicationValidator.GetItemCountParam} arg - Arg object.
|
|
183
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
184
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
185
|
-
* @returns {Promise<PosCartApplicationModel.CartItemCountResponse>} -
|
|
186
|
-
* Success response
|
|
187
|
-
* @name getItemCount
|
|
188
|
-
* @summary: Count cart items
|
|
189
|
-
* @description: Gets the total number of items in the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/getItemCount/).
|
|
190
|
-
*/
|
|
191
|
-
getItemCount({ id, buyNow, requestHeaders }?: PosCartApplicationValidator.GetItemCountParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.CartItemCountResponse>;
|
|
192
|
-
/**
|
|
193
|
-
* @param {PosCartApplicationValidator.GetShipmentsParam} arg - Arg object.
|
|
194
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
195
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
196
|
-
* @returns {Promise<PosCartApplicationModel.CartShipmentsResponse>} -
|
|
197
|
-
* Success response
|
|
198
|
-
* @name getShipments
|
|
199
|
-
* @summary: List shipments
|
|
200
|
-
* @description: Retrieve shipment details for items in the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/getShipments/).
|
|
201
|
-
*/
|
|
202
|
-
getShipments({ pickAtStoreUid, orderingStoreId, p, id, addressId, areaCode, orderType, requestHeaders, }?: PosCartApplicationValidator.GetShipmentsParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.CartShipmentsResponse>;
|
|
203
|
-
/**
|
|
204
|
-
* @param {PosCartApplicationValidator.GetStoreAddressByUidParam} arg - Arg object.
|
|
205
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
206
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
207
|
-
* @returns {Promise<PosCartApplicationModel.StoreDetailsResponse>} - Success response
|
|
208
|
-
* @name getStoreAddressByUid
|
|
209
|
-
* @summary: Store address
|
|
210
|
-
* @description: Gets the address of the store by its UID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/getStoreAddressByUid/).
|
|
211
|
-
*/
|
|
212
|
-
getStoreAddressByUid({ storeUid, requestHeaders }?: PosCartApplicationValidator.GetStoreAddressByUidParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.StoreDetailsResponse>;
|
|
213
|
-
/**
|
|
214
|
-
* @param {PosCartApplicationValidator.RemoveAddressParam} arg - Arg object.
|
|
215
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
216
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
217
|
-
* @returns {Promise<PosCartApplicationModel.DeleteAddressResponse>} -
|
|
218
|
-
* Success response
|
|
219
|
-
* @name removeAddress
|
|
220
|
-
* @summary: Delete address
|
|
221
|
-
* @description: Removes a saved address from the user's profile. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/removeAddress/).
|
|
222
|
-
*/
|
|
223
|
-
removeAddress({ id, requestHeaders }?: PosCartApplicationValidator.RemoveAddressParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.DeleteAddressResponse>;
|
|
224
|
-
/**
|
|
225
|
-
* @param {PosCartApplicationValidator.RemoveCouponParam} arg - Arg object.
|
|
226
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
227
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
228
|
-
* @returns {Promise<PosCartApplicationModel.CartDetailResponse>} - Success response
|
|
229
|
-
* @name removeCoupon
|
|
230
|
-
* @summary: Remove coupon
|
|
231
|
-
* @description: Removes an applied coupon from the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/removeCoupon/).
|
|
232
|
-
*/
|
|
233
|
-
removeCoupon({ id, buyNow, requestHeaders }?: PosCartApplicationValidator.RemoveCouponParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.CartDetailResponse>;
|
|
234
|
-
/**
|
|
235
|
-
* @param {PosCartApplicationValidator.SelectAddressParam} arg - Arg object.
|
|
236
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
237
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
238
|
-
* @returns {Promise<PosCartApplicationModel.CartDetailResponse>} - Success response
|
|
239
|
-
* @name selectAddress
|
|
240
|
-
* @summary: Choose delivery address
|
|
241
|
-
* @description: Selects an address for the cart's delivery. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/selectAddress/).
|
|
242
|
-
*/
|
|
243
|
-
selectAddress({ body, cartId, buyNow, i, b, requestHeaders }?: PosCartApplicationValidator.SelectAddressParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.CartDetailResponse>;
|
|
244
|
-
/**
|
|
245
|
-
* @param {PosCartApplicationValidator.SelectPaymentModeParam} arg - Arg object.
|
|
246
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
247
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
248
|
-
* @returns {Promise<PosCartApplicationModel.CartDetailResponse>} - Success response
|
|
249
|
-
* @name selectPaymentMode
|
|
250
|
-
* @summary: Pick payment method
|
|
251
|
-
* @description: Chooses a payment mode for the checkout process. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/selectPaymentMode/).
|
|
252
|
-
*/
|
|
253
|
-
selectPaymentMode({ body, id, buyNow, requestHeaders }?: PosCartApplicationValidator.SelectPaymentModeParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.CartDetailResponse>;
|
|
254
|
-
/**
|
|
255
|
-
* @param {PosCartApplicationValidator.UpdateAddressParam} arg - Arg object.
|
|
256
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
257
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
258
|
-
* @returns {Promise<PosCartApplicationModel.UpdateAddressResponse>} -
|
|
259
|
-
* Success response
|
|
260
|
-
* @name updateAddress
|
|
261
|
-
* @summary: Update address
|
|
262
|
-
* @description: Modifies a saved address. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/updateAddress/).
|
|
263
|
-
*/
|
|
264
|
-
updateAddress({ id, body, requestHeaders }?: PosCartApplicationValidator.UpdateAddressParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.UpdateAddressResponse>;
|
|
265
|
-
/**
|
|
266
|
-
* @param {PosCartApplicationValidator.UpdateCartParam} arg - Arg object.
|
|
267
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
268
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
269
|
-
* @returns {Promise<PosCartApplicationModel.UpdateCartDetailResponse>} -
|
|
270
|
-
* Success response
|
|
271
|
-
* @name updateCart
|
|
272
|
-
* @summary: Update cart
|
|
273
|
-
* @description: Modifies items and quantities in the existing cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/updateCart/).
|
|
274
|
-
*/
|
|
275
|
-
updateCart({ body, id, i, b, areaCode, buyNow, requestHeaders }?: PosCartApplicationValidator.UpdateCartParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.UpdateCartDetailResponse>;
|
|
276
|
-
/**
|
|
277
|
-
* @param {PosCartApplicationValidator.UpdateCartMetaParam} arg - Arg object.
|
|
278
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
279
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
280
|
-
* @returns {Promise<PosCartApplicationModel.CartMetaResponse>} - Success response
|
|
281
|
-
* @name updateCartMeta
|
|
282
|
-
* @summary: Update cart metadata
|
|
283
|
-
* @description: Adds or modifies metadata for the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/updateCartMeta/).
|
|
284
|
-
*/
|
|
285
|
-
updateCartMeta({ body, id, buyNow, requestHeaders }?: PosCartApplicationValidator.UpdateCartMetaParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.CartMetaResponse>;
|
|
286
|
-
/**
|
|
287
|
-
* @param {PosCartApplicationValidator.UpdateCartWithSharedItemsParam} arg
|
|
288
|
-
* - Arg object.
|
|
289
|
-
*
|
|
290
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
291
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
292
|
-
* @returns {Promise<PosCartApplicationModel.SharedCartResponse>} - Success response
|
|
293
|
-
* @name updateCartWithSharedItems
|
|
294
|
-
* @summary: Update with shared items
|
|
295
|
-
* @description: Updates the cart with items from a shared link. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/updateCartWithSharedItems/).
|
|
296
|
-
*/
|
|
297
|
-
updateCartWithSharedItems({ token, action, requestHeaders }?: PosCartApplicationValidator.UpdateCartWithSharedItemsParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.SharedCartResponse>;
|
|
298
|
-
/**
|
|
299
|
-
* @param {PosCartApplicationValidator.UpdateShipmentsParam} arg - Arg object.
|
|
300
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
301
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
302
|
-
* @returns {Promise<PosCartApplicationModel.CartShipmentsResponse>} -
|
|
303
|
-
* Success response
|
|
304
|
-
* @name updateShipments
|
|
305
|
-
* @summary: Update shipments
|
|
306
|
-
* @description: Modifies shipment details for items in the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/updateShipments/).
|
|
307
|
-
*/
|
|
308
|
-
updateShipments({ body, i, p, id, addressId, areaCode, orderType, requestHeaders }?: PosCartApplicationValidator.UpdateShipmentsParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.CartShipmentsResponse>;
|
|
309
|
-
/**
|
|
310
|
-
* @param {PosCartApplicationValidator.ValidateCouponForPaymentParam} arg -
|
|
311
|
-
* Arg object.
|
|
312
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
313
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
314
|
-
* @returns {Promise<PosCartApplicationModel.PaymentCouponValidate>} -
|
|
315
|
-
* Success response
|
|
316
|
-
* @name validateCouponForPayment
|
|
317
|
-
* @summary: Validate coupon
|
|
318
|
-
* @description: Checks if a coupon is valid for the selected payment mode. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/validateCouponForPayment/).
|
|
319
|
-
*/
|
|
320
|
-
validateCouponForPayment({ id, buyNow, addressId, paymentMode, paymentIdentifier, aggregatorName, merchantCode, iin, network, type, cardId, requestHeaders, }?: PosCartApplicationValidator.ValidateCouponForPaymentParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.PaymentCouponValidate>;
|
|
321
|
-
}
|
|
322
|
-
import PosCartApplicationValidator = require("./PosCartApplicationValidator");
|
|
323
|
-
import PosCartApplicationModel = require("./PosCartApplicationModel");
|