@gofynd/fdk-client-javascript 1.2.0 → 1.3.1-beta.1
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 +44 -7
- package/package.json +1 -2
- package/sdk/application/ApplicationAPIClient.d.ts +3 -3
- package/sdk/application/ApplicationAPIClient.js +6 -4
- package/sdk/application/ApplicationClient.d.ts +2 -3
- package/sdk/application/ApplicationClient.js +1 -45
- package/sdk/application/ApplicationConfig.d.ts +46 -6
- package/sdk/application/ApplicationConfig.js +15 -16
- package/sdk/application/Cart/CartApplicationClient.d.ts +61 -33
- package/sdk/application/Cart/CartApplicationClient.js +225 -134
- package/sdk/application/Cart/CartApplicationModel.d.ts +6 -4
- package/sdk/application/Cart/CartApplicationModel.js +6 -4
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +61 -30
- package/sdk/application/Catalog/CatalogApplicationClient.js +234 -146
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +115 -13
- package/sdk/application/Catalog/CatalogApplicationModel.js +77 -12
- package/sdk/application/Common/CommonApplicationClient.d.ts +5 -3
- package/sdk/application/Common/CommonApplicationClient.js +13 -11
- package/sdk/application/Common/CommonApplicationModel.d.ts +3 -83
- package/sdk/application/Common/CommonApplicationModel.js +2 -58
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +9 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +25 -13
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +1 -34
- package/sdk/application/Communication/CommunicationApplicationModel.js +0 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +46 -16
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +144 -68
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1 -219
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -226
- package/sdk/application/Content/ContentApplicationClient.d.ts +49 -21
- package/sdk/application/Content/ContentApplicationClient.js +159 -80
- package/sdk/application/Content/ContentApplicationModel.d.ts +5 -622
- package/sdk/application/Content/ContentApplicationModel.js +11 -763
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +20 -14
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +1 -152
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -180
- package/sdk/application/Lead/LeadApplicationClient.d.ts +14 -7
- package/sdk/application/Lead/LeadApplicationClient.js +50 -31
- package/sdk/application/Lead/LeadApplicationModel.d.ts +22 -741
- package/sdk/application/Lead/LeadApplicationModel.js +21 -481
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +11 -5
- package/sdk/application/Logistic/LogisticApplicationClient.js +41 -20
- package/sdk/application/Order/OrderApplicationClient.d.ts +24 -12
- package/sdk/application/Order/OrderApplicationClient.js +88 -56
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +91 -42
- package/sdk/application/Payment/PaymentApplicationClient.js +293 -194
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +36 -36
- package/sdk/application/Payment/PaymentApplicationModel.js +36 -36
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +59 -32
- package/sdk/application/PosCart/PosCartApplicationClient.js +214 -130
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +2 -2
- package/sdk/application/PosCart/PosCartApplicationModel.js +2 -2
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +16 -7
- package/sdk/application/Rewards/RewardsApplicationClient.js +56 -29
- package/sdk/application/Share/ShareApplicationClient.d.ts +15 -7
- package/sdk/application/Share/ShareApplicationClient.js +51 -31
- package/sdk/application/Share/ShareApplicationModel.d.ts +1 -33
- package/sdk/application/Share/ShareApplicationModel.js +0 -38
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +9 -4
- package/sdk/application/Theme/ThemeApplicationClient.js +35 -18
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +982 -312
- package/sdk/application/Theme/ThemeApplicationModel.js +621 -284
- package/sdk/application/User/UserApplicationClient.d.ts +74 -35
- package/sdk/application/User/UserApplicationClient.js +252 -161
- package/sdk/application/User/UserApplicationModel.d.ts +3 -401
- package/sdk/application/User/UserApplicationModel.js +2 -490
- package/sdk/common/AxiosHelper.js +1 -2
- package/sdk/common/FDKError.d.ts +3 -0
- package/sdk/common/FDKError.js +8 -0
- package/sdk/common/utils.d.ts +3 -0
- package/sdk/common/utils.js +29 -0
- package/sdk/partner/PartnerAPIClient.d.ts +5 -4
- package/sdk/partner/PartnerAPIClient.js +7 -4
- package/sdk/partner/PartnerClient.d.ts +2 -0
- package/sdk/partner/PartnerClient.js +3 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +299 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +768 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1706 -0
- package/sdk/partner/Theme/ThemePartnerModel.js +1409 -0
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +22 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +157 -0
- package/sdk/partner/index.d.ts +3 -1
- package/sdk/partner/index.js +3 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +8 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +38 -16
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +1 -13
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +0 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +10 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +4 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +59 -14
- package/sdk/platform/Billing/BillingPlatformClient.js +315 -64
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +56 -196
- package/sdk/platform/Billing/BillingPlatformModel.js +63 -217
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +23 -1
- package/sdk/platform/Billing/BillingPlatformValidator.js +31 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +124 -63
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +431 -265
- package/sdk/platform/Cart/CartPlatformModel.d.ts +253 -53
- package/sdk/platform/Cart/CartPlatformModel.js +104 -54
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +120 -53
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +398 -247
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +155 -78
- package/sdk/platform/Catalog/CatalogPlatformClient.js +561 -355
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +10 -12
- package/sdk/platform/Catalog/CatalogPlatformModel.js +10 -12
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +30 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +13 -0
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -3
- package/sdk/platform/Common/CommonPlatformClient.js +13 -11
- package/sdk/platform/Common/CommonPlatformModel.d.ts +39 -64
- package/sdk/platform/Common/CommonPlatformModel.js +23 -57
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +5 -10
- package/sdk/platform/Common/CommonPlatformValidator.js +3 -4
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +370 -120
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +2328 -888
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +143 -24
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +179 -15
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +6 -5
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +386 -308
- package/sdk/platform/Communication/CommunicationPlatformModel.js +415 -355
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +38 -13
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +171 -57
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +53 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +54 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +5 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +7 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +96 -29
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +311 -126
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +5 -1
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +7 -0
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +36 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +121 -86
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +13 -180
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +5 -113
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +162 -70
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +528 -309
- package/sdk/platform/Content/ContentPlatformModel.d.ts +9 -198
- package/sdk/platform/Content/ContentPlatformModel.js +8 -231
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +48 -11
- package/sdk/platform/Discount/DiscountPlatformClient.js +142 -48
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +40 -1
- package/sdk/platform/Discount/DiscountPlatformModel.js +27 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +84 -18
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +486 -53
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +71 -7
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +81 -5
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +13 -18
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +58 -65
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +198 -71
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +212 -64
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +18 -10
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +11 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +177 -40
- package/sdk/platform/Finance/FinancePlatformClient.js +1028 -132
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +670 -22
- package/sdk/platform/Finance/FinancePlatformModel.js +809 -23
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +111 -1
- package/sdk/platform/Finance/FinancePlatformValidator.js +134 -0
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +24 -12
- package/sdk/platform/Inventory/InventoryPlatformClient.js +94 -52
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +27 -13
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +101 -55
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +50 -39
- package/sdk/platform/Lead/LeadPlatformClient.js +171 -112
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +32 -390
- package/sdk/platform/Lead/LeadPlatformModel.js +31 -214
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +33 -33
- package/sdk/platform/Lead/LeadPlatformValidator.js +23 -23
- package/sdk/platform/OAuthClient.js +6 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +12 -10
- package/sdk/platform/Order/OrderPlatformClient.d.ts +165 -71
- package/sdk/platform/Order/OrderPlatformClient.js +738 -205
- package/sdk/platform/Order/OrderPlatformModel.d.ts +261 -3
- package/sdk/platform/Order/OrderPlatformModel.js +225 -2
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +104 -3
- package/sdk/platform/Order/OrderPlatformValidator.js +85 -2
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -22
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +12 -159
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +1 -30
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +0 -26
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -690
- package/sdk/platform/Partner/PartnerPlatformModel.js +0 -809
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +167 -32
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +793 -145
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +91 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +91 -0
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -10
- package/sdk/platform/Payment/PaymentPlatformClient.js +68 -47
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +549 -7
- package/sdk/platform/Payment/PaymentPlatformModel.js +305 -6
- package/sdk/platform/PlatformAPIClient.d.ts +3 -3
- package/sdk/platform/PlatformAPIClient.js +2 -2
- package/sdk/platform/PlatformClient.d.ts +2 -2
- package/sdk/platform/PlatformClient.js +4 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +28 -12
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +90 -53
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +1 -12
- package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -14
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +62 -26
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +210 -93
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +20 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +23 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +36 -18
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +142 -78
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +12 -3
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +14 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -26
- package/sdk/platform/Share/SharePlatformApplicationClient.js +36 -67
- package/sdk/platform/Share/SharePlatformModel.d.ts +4 -4
- package/sdk/platform/Share/SharePlatformModel.js +4 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +127 -57
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +564 -189
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +63 -26
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +62 -22
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +37 -0
- package/sdk/platform/Theme/ThemePlatformClient.js +235 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +1167 -261
- package/sdk/platform/Theme/ThemePlatformModel.js +801 -244
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +32 -0
- package/sdk/platform/Theme/ThemePlatformValidator.js +38 -0
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +35 -17
- package/sdk/platform/User/UserPlatformApplicationClient.js +132 -73
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -0
- package/sdk/platform/User/UserPlatformApplicationValidator.js +3 -0
- package/sdk/platform/User/UserPlatformModel.d.ts +1 -738
- package/sdk/platform/User/UserPlatformModel.js +3 -899
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +120 -7
- package/sdk/platform/Webhook/WebhookPlatformClient.js +799 -41
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +476 -86
- package/sdk/platform/Webhook/WebhookPlatformModel.js +388 -89
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +90 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +113 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +5 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +13 -11
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +3 -106
- package/sdk/public/Configuration/ConfigurationPublicModel.js +2 -59
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +12 -6
- package/sdk/public/Inventory/InventoryPublicClient.js +42 -27
- package/sdk/public/Partner/PartnerPublicClient.d.ts +22 -0
- package/sdk/public/Partner/PartnerPublicClient.js +110 -0
- package/sdk/public/Partner/PartnerPublicModel.d.ts +240 -0
- package/sdk/public/Partner/PartnerPublicModel.js +280 -0
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +18 -0
- package/sdk/public/Partner/PartnerPublicValidator.js +19 -0
- package/sdk/public/PublicAPIClient.d.ts +14 -1
- package/sdk/public/PublicAPIClient.js +7 -1
- package/sdk/public/PublicClient.d.ts +2 -0
- package/sdk/public/PublicClient.js +4 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +5 -2
- package/sdk/public/Webhook/WebhookPublicClient.js +15 -9
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +1 -191
- package/sdk/public/Webhook/WebhookPublicModel.js +0 -229
- package/sdk/public/index.d.ts +1 -0
- package/sdk/public/index.js +2 -0
- package/sdk/application/ApplicationModels.d.ts +0 -48
- package/sdk/application/ApplicationModels.js +0 -38
- package/sdk/platform/Partner/PartnerPlatformClient.d.ts +0 -106
- package/sdk/platform/Partner/PartnerPlatformClient.js +0 -878
- package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +0 -208
- package/sdk/platform/Partner/PartnerPlatformValidator.js +0 -169
|
@@ -35,15 +35,17 @@ declare class PosCart {
|
|
|
35
35
|
updateUrls(urls: any): void;
|
|
36
36
|
/**
|
|
37
37
|
* @param {PosCartApplicationValidator.AddAddressParam} arg - Arg object.
|
|
38
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
38
39
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
39
40
|
* @returns {Promise<PosCartApplicationModel.SaveAddressResponse>} - Success response
|
|
40
41
|
* @name addAddress
|
|
41
42
|
* @summary: Add address to an account
|
|
42
43
|
* @description: Use this API to add an address to an account. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/addAddress/).
|
|
43
44
|
*/
|
|
44
|
-
addAddress({ body }?: PosCartApplicationValidator.AddAddressParam, {
|
|
45
|
+
addAddress({ body, requestHeaders }?: PosCartApplicationValidator.AddAddressParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.SaveAddressResponse>;
|
|
45
46
|
/**
|
|
46
47
|
* @param {PosCartApplicationValidator.AddItemsParam} arg - Arg object.
|
|
48
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
47
49
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
48
50
|
* @returns {Promise<PosCartApplicationModel.AddCartDetailResponse>} -
|
|
49
51
|
* Success response
|
|
@@ -51,56 +53,62 @@ declare class PosCart {
|
|
|
51
53
|
* @summary: Add items to cart
|
|
52
54
|
* @description: Use this API to add items to the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/addItems/).
|
|
53
55
|
*/
|
|
54
|
-
addItems({ body, i, b, areaCode, buyNow, id }?: PosCartApplicationValidator.AddItemsParam, {
|
|
56
|
+
addItems({ body, i, b, areaCode, buyNow, id, requestHeaders }?: PosCartApplicationValidator.AddItemsParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.AddCartDetailResponse>;
|
|
55
57
|
/**
|
|
56
58
|
* @param {PosCartApplicationValidator.ApplyCouponParam} arg - Arg object.
|
|
59
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
57
60
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
58
61
|
* @returns {Promise<PosCartApplicationModel.CartDetailResponse>} - Success response
|
|
59
62
|
* @name applyCoupon
|
|
60
63
|
* @summary: Apply Coupon
|
|
61
64
|
* @description: Use this API to apply coupons on items in the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/applyCoupon/).
|
|
62
65
|
*/
|
|
63
|
-
applyCoupon({ body, i, b, p, id, buyNow }?: PosCartApplicationValidator.ApplyCouponParam, {
|
|
66
|
+
applyCoupon({ body, i, b, p, id, buyNow, requestHeaders }?: PosCartApplicationValidator.ApplyCouponParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.CartDetailResponse>;
|
|
64
67
|
/**
|
|
65
68
|
* @param {PosCartApplicationValidator.ApplyRewardPointsParam} arg - Arg object.
|
|
69
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
66
70
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
67
71
|
* @returns {Promise<PosCartApplicationModel.CartDetailResponse>} - Success response
|
|
68
72
|
* @name applyRewardPoints
|
|
69
73
|
* @summary: Apply reward points at cart
|
|
70
74
|
* @description: Use this API to redeem a fixed no. of reward points by applying it to the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/applyRewardPoints/).
|
|
71
75
|
*/
|
|
72
|
-
applyRewardPoints({ body, id, i, b, buyNow }?: PosCartApplicationValidator.ApplyRewardPointsParam, {
|
|
76
|
+
applyRewardPoints({ body, id, i, b, buyNow, requestHeaders }?: PosCartApplicationValidator.ApplyRewardPointsParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.CartDetailResponse>;
|
|
73
77
|
/**
|
|
74
78
|
* @param {PosCartApplicationValidator.CheckoutCartParam} arg - Arg object.
|
|
79
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
75
80
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
76
81
|
* @returns {Promise<PosCartApplicationModel.CartCheckoutResponse>} - Success response
|
|
77
82
|
* @name checkoutCart
|
|
78
83
|
* @summary: Checkout all items in the cart
|
|
79
84
|
* @description: Use this API to checkout all items in the cart for payment and order generation. For COD, order will be generated directly, whereas for other checkout modes, user will be redirected to a payment gateway. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/checkoutCart/).
|
|
80
85
|
*/
|
|
81
|
-
checkoutCart({ body, id }?: PosCartApplicationValidator.CheckoutCartParam, {
|
|
86
|
+
checkoutCart({ body, id, requestHeaders }?: PosCartApplicationValidator.CheckoutCartParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.CartCheckoutResponse>;
|
|
82
87
|
/**
|
|
83
88
|
* @param {PosCartApplicationValidator.GetAddressByIdParam} arg - Arg object.
|
|
89
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
84
90
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
85
91
|
* @returns {Promise<PosCartApplicationModel.Address>} - Success response
|
|
86
92
|
* @name getAddressById
|
|
87
93
|
* @summary: Fetch a single address by its ID
|
|
88
|
-
* @description: Use this API to get an addresses using its ID. If successful, returns a Address resource in the response body specified in `Address`. Attibutes listed below are optional
|
|
94
|
+
* @description: Use this API to get an addresses using its ID. If successful, returns a Address resource in the response body specified in `Address`. Attibutes listed below are optional - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/getAddressById/).
|
|
89
95
|
*/
|
|
90
|
-
getAddressById({ id, cartId, buyNow, mobileNo, checkoutMode, tags, isDefault }?: PosCartApplicationValidator.GetAddressByIdParam, {
|
|
96
|
+
getAddressById({ id, cartId, buyNow, mobileNo, checkoutMode, tags, isDefault, requestHeaders, }?: PosCartApplicationValidator.GetAddressByIdParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.Address>;
|
|
91
97
|
/**
|
|
92
98
|
* @param {PosCartApplicationValidator.GetAddressesParam} arg - Arg object.
|
|
99
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
93
100
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
94
101
|
* @returns {Promise<PosCartApplicationModel.GetAddressesResponse>} - Success response
|
|
95
102
|
* @name getAddresses
|
|
96
103
|
* @summary: Fetch address
|
|
97
|
-
* @description: Use this API to get all the addresses associated with an account. If successful, returns a Address resource in the response body specified in GetAddressesResponse.attibutes listed below are optional
|
|
104
|
+
* @description: Use this API to get all the addresses associated with an account. If successful, returns a Address resource in the response body specified in GetAddressesResponse.attibutes listed below are optional - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/getAddresses/).
|
|
98
105
|
*/
|
|
99
|
-
getAddresses({ cartId, buyNow, mobileNo, checkoutMode, tags, isDefault }?: PosCartApplicationValidator.GetAddressesParam, {
|
|
106
|
+
getAddresses({ cartId, buyNow, mobileNo, checkoutMode, tags, isDefault, requestHeaders, }?: PosCartApplicationValidator.GetAddressesParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.GetAddressesResponse>;
|
|
100
107
|
/**
|
|
101
108
|
* @param {PosCartApplicationValidator.GetAvailableDeliveryModesParam} arg
|
|
102
109
|
* - Arg object.
|
|
103
110
|
*
|
|
111
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
104
112
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
105
113
|
* @returns {Promise<PosCartApplicationModel.CartDeliveryModesResponse>} -
|
|
106
114
|
* Success response
|
|
@@ -108,36 +116,40 @@ declare class PosCart {
|
|
|
108
116
|
* @summary: Get available delivery modes for cart
|
|
109
117
|
* @description: Use this API to get the delivery modes (home-delivery/store-pickup) along with a list of pickup stores available for a given cart at a given PIN Code. User can then view the address of a pickup store with the help of store-address API. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/getAvailableDeliveryModes/).
|
|
110
118
|
*/
|
|
111
|
-
getAvailableDeliveryModes({ areaCode, id }?: PosCartApplicationValidator.GetAvailableDeliveryModesParam, {
|
|
119
|
+
getAvailableDeliveryModes({ areaCode, id, requestHeaders }?: PosCartApplicationValidator.GetAvailableDeliveryModesParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.CartDeliveryModesResponse>;
|
|
112
120
|
/**
|
|
113
121
|
* @param {PosCartApplicationValidator.GetBulkDiscountOffersParam} arg - Arg object.
|
|
122
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
114
123
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
115
124
|
* @returns {Promise<PosCartApplicationModel.BulkPriceResponse>} - Success response
|
|
116
125
|
* @name getBulkDiscountOffers
|
|
117
126
|
* @summary: Get discount offers based on quantity
|
|
118
127
|
* @description: Use this API to get a list of applicable offers along with current, next and best offer for given product. Either one of uid, item_id, slug should be present. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/getBulkDiscountOffers/).
|
|
119
128
|
*/
|
|
120
|
-
getBulkDiscountOffers({ itemId, articleId, uid, slug }?: PosCartApplicationValidator.GetBulkDiscountOffersParam, {
|
|
129
|
+
getBulkDiscountOffers({ itemId, articleId, uid, slug, requestHeaders }?: PosCartApplicationValidator.GetBulkDiscountOffersParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.BulkPriceResponse>;
|
|
121
130
|
/**
|
|
122
131
|
* @param {PosCartApplicationValidator.GetCartParam} arg - Arg object.
|
|
132
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
123
133
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
124
134
|
* @returns {Promise<PosCartApplicationModel.CartDetailResponse>} - Success response
|
|
125
135
|
* @name getCart
|
|
126
136
|
* @summary: Fetch all items added to the cart
|
|
127
137
|
* @description: Use this API to get details of all the items added to a cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/getCart/).
|
|
128
138
|
*/
|
|
129
|
-
getCart({ id, i, b, assignCardId, areaCode, buyNow }?: PosCartApplicationValidator.GetCartParam, {
|
|
139
|
+
getCart({ id, i, b, assignCardId, areaCode, buyNow, requestHeaders }?: PosCartApplicationValidator.GetCartParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.CartDetailResponse>;
|
|
130
140
|
/**
|
|
131
141
|
* @param {PosCartApplicationValidator.GetCartLastModifiedParam} arg - Arg object.
|
|
142
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
132
143
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
133
144
|
* @returns {Promise<any>} - Success response
|
|
134
145
|
* @name getCartLastModified
|
|
135
146
|
* @summary: Fetch last-modified timestamp
|
|
136
147
|
* @description: Use this API to fetch Last-Modified timestamp in header metadata. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/getCartLastModified/).
|
|
137
148
|
*/
|
|
138
|
-
getCartLastModified({ id }?: PosCartApplicationValidator.GetCartLastModifiedParam, {
|
|
149
|
+
getCartLastModified({ id, requestHeaders }?: PosCartApplicationValidator.GetCartLastModifiedParam, { responseHeaders }?: object): Promise<any>;
|
|
139
150
|
/**
|
|
140
151
|
* @param {PosCartApplicationValidator.GetCartShareLinkParam} arg - Arg object.
|
|
152
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
141
153
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
142
154
|
* @returns {Promise<PosCartApplicationModel.GetShareCartLinkResponse>} -
|
|
143
155
|
* Success response
|
|
@@ -145,27 +157,30 @@ declare class PosCart {
|
|
|
145
157
|
* @summary: Generate token for sharing the cart
|
|
146
158
|
* @description: Use this API to generate a shared cart snapshot and return a shortlink token. The link can be shared with other users for getting the same items in their cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/getCartShareLink/).
|
|
147
159
|
*/
|
|
148
|
-
getCartShareLink({ body }?: PosCartApplicationValidator.GetCartShareLinkParam, {
|
|
160
|
+
getCartShareLink({ body, requestHeaders }?: PosCartApplicationValidator.GetCartShareLinkParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.GetShareCartLinkResponse>;
|
|
149
161
|
/**
|
|
150
162
|
* @param {PosCartApplicationValidator.GetCartSharedItemsParam} arg - Arg object.
|
|
163
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
151
164
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
152
165
|
* @returns {Promise<PosCartApplicationModel.SharedCartResponse>} - Success response
|
|
153
166
|
* @name getCartSharedItems
|
|
154
167
|
* @summary: Get details of a shared cart
|
|
155
168
|
* @description: Use this API to get the shared cart details as per the token generated using the share-cart API. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/getCartSharedItems/).
|
|
156
169
|
*/
|
|
157
|
-
getCartSharedItems({ token }?: PosCartApplicationValidator.GetCartSharedItemsParam, {
|
|
170
|
+
getCartSharedItems({ token, requestHeaders }?: PosCartApplicationValidator.GetCartSharedItemsParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.SharedCartResponse>;
|
|
158
171
|
/**
|
|
159
172
|
* @param {PosCartApplicationValidator.GetCouponsParam} arg - Arg object.
|
|
173
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
160
174
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
161
175
|
* @returns {Promise<PosCartApplicationModel.GetCouponResponse>} - Success response
|
|
162
176
|
* @name getCoupons
|
|
163
177
|
* @summary: Fetch Coupon
|
|
164
178
|
* @description: Use this API to get a list of available coupons along with their details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/getCoupons/).
|
|
165
179
|
*/
|
|
166
|
-
getCoupons({ id, buyNow }?: PosCartApplicationValidator.GetCouponsParam, {
|
|
180
|
+
getCoupons({ id, buyNow, requestHeaders }?: PosCartApplicationValidator.GetCouponsParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.GetCouponResponse>;
|
|
167
181
|
/**
|
|
168
182
|
* @param {PosCartApplicationValidator.GetItemCountParam} arg - Arg object.
|
|
183
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
169
184
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
170
185
|
* @returns {Promise<PosCartApplicationModel.CartItemCountResponse>} -
|
|
171
186
|
* Success response
|
|
@@ -173,9 +188,10 @@ declare class PosCart {
|
|
|
173
188
|
* @summary: Count items in the cart
|
|
174
189
|
* @description: Use this API to get the total number of items present in cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/getItemCount/).
|
|
175
190
|
*/
|
|
176
|
-
getItemCount({ id, buyNow }?: PosCartApplicationValidator.GetItemCountParam, {
|
|
191
|
+
getItemCount({ id, buyNow, requestHeaders }?: PosCartApplicationValidator.GetItemCountParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.CartItemCountResponse>;
|
|
177
192
|
/**
|
|
178
193
|
* @param {PosCartApplicationValidator.GetShipmentsParam} arg - Arg object.
|
|
194
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
179
195
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
180
196
|
* @returns {Promise<PosCartApplicationModel.CartShipmentsResponse>} -
|
|
181
197
|
* Success response
|
|
@@ -183,18 +199,20 @@ declare class PosCart {
|
|
|
183
199
|
* @summary: Get delivery date and options before checkout
|
|
184
200
|
* @description: Use this API to get shipment details, expected delivery date, items and price breakup of the shipment. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/getShipments/).
|
|
185
201
|
*/
|
|
186
|
-
getShipments({ pickAtStoreUid, orderingStoreId, p, id, addressId, areaCode, orderType, }?: PosCartApplicationValidator.GetShipmentsParam, {
|
|
202
|
+
getShipments({ pickAtStoreUid, orderingStoreId, p, id, addressId, areaCode, orderType, requestHeaders, }?: PosCartApplicationValidator.GetShipmentsParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.CartShipmentsResponse>;
|
|
187
203
|
/**
|
|
188
204
|
* @param {PosCartApplicationValidator.GetStoreAddressByUidParam} arg - Arg object.
|
|
205
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
189
206
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
190
207
|
* @returns {Promise<PosCartApplicationModel.StoreDetailsResponse>} - Success response
|
|
191
208
|
* @name getStoreAddressByUid
|
|
192
209
|
* @summary: Get list of stores for give uids
|
|
193
210
|
* @description: Use this API to get the store details by entering the unique identifier of the pickup stores shown in the response of available-delivery-mode API. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/getStoreAddressByUid/).
|
|
194
211
|
*/
|
|
195
|
-
getStoreAddressByUid({ storeUid }?: PosCartApplicationValidator.GetStoreAddressByUidParam, {
|
|
212
|
+
getStoreAddressByUid({ storeUid, requestHeaders }?: PosCartApplicationValidator.GetStoreAddressByUidParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.StoreDetailsResponse>;
|
|
196
213
|
/**
|
|
197
214
|
* @param {PosCartApplicationValidator.RemoveAddressParam} arg - Arg object.
|
|
215
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
198
216
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
199
217
|
* @returns {Promise<PosCartApplicationModel.DeleteAddressResponse>} -
|
|
200
218
|
* Success response
|
|
@@ -202,76 +220,84 @@ declare class PosCart {
|
|
|
202
220
|
* @summary: Remove address associated with an account
|
|
203
221
|
* @description: Use this API to delete an address by its ID. This will returns an object that will indicate whether the address was deleted successfully or not. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/removeAddress/).
|
|
204
222
|
*/
|
|
205
|
-
removeAddress({ id }?: PosCartApplicationValidator.RemoveAddressParam, {
|
|
223
|
+
removeAddress({ id, requestHeaders }?: PosCartApplicationValidator.RemoveAddressParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.DeleteAddressResponse>;
|
|
206
224
|
/**
|
|
207
225
|
* @param {PosCartApplicationValidator.RemoveCouponParam} arg - Arg object.
|
|
226
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
208
227
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
209
228
|
* @returns {Promise<PosCartApplicationModel.CartDetailResponse>} - Success response
|
|
210
229
|
* @name removeCoupon
|
|
211
230
|
* @summary: Remove Coupon Applied
|
|
212
231
|
* @description: Remove Coupon applied on the cart by passing uid in request body. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/removeCoupon/).
|
|
213
232
|
*/
|
|
214
|
-
removeCoupon({ id, buyNow }?: PosCartApplicationValidator.RemoveCouponParam, {
|
|
233
|
+
removeCoupon({ id, buyNow, requestHeaders }?: PosCartApplicationValidator.RemoveCouponParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.CartDetailResponse>;
|
|
215
234
|
/**
|
|
216
235
|
* @param {PosCartApplicationValidator.SelectAddressParam} arg - Arg object.
|
|
236
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
217
237
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
218
238
|
* @returns {Promise<PosCartApplicationModel.CartDetailResponse>} - Success response
|
|
219
239
|
* @name selectAddress
|
|
220
240
|
* @summary: Select an address from available addresses
|
|
221
|
-
* @description:
|
|
241
|
+
* @description: Select Address from all addresses associated with the account in order to ship the cart items to that address, otherwise default address will be selected implicitly. See `SelectCartAddressRequest` in schema of request body for the list of attributes needed to select Address from account. On successful request, this API returns a Cart object. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/selectAddress/).
|
|
222
242
|
*/
|
|
223
|
-
selectAddress({ body, cartId, buyNow, i, b }?: PosCartApplicationValidator.SelectAddressParam, {
|
|
243
|
+
selectAddress({ body, cartId, buyNow, i, b, requestHeaders }?: PosCartApplicationValidator.SelectAddressParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.CartDetailResponse>;
|
|
224
244
|
/**
|
|
225
245
|
* @param {PosCartApplicationValidator.SelectPaymentModeParam} arg - Arg object.
|
|
246
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
226
247
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
227
248
|
* @returns {Promise<PosCartApplicationModel.CartDetailResponse>} - Success response
|
|
228
249
|
* @name selectPaymentMode
|
|
229
250
|
* @summary: Update cart payment
|
|
230
251
|
* @description: Use this API to update cart payment. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/selectPaymentMode/).
|
|
231
252
|
*/
|
|
232
|
-
selectPaymentMode({ body, id, buyNow }?: PosCartApplicationValidator.SelectPaymentModeParam, {
|
|
253
|
+
selectPaymentMode({ body, id, buyNow, requestHeaders }?: PosCartApplicationValidator.SelectPaymentModeParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.CartDetailResponse>;
|
|
233
254
|
/**
|
|
234
255
|
* @param {PosCartApplicationValidator.UpdateAddressParam} arg - Arg object.
|
|
256
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
235
257
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
236
258
|
* @returns {Promise<PosCartApplicationModel.UpdateAddressResponse>} -
|
|
237
259
|
* Success response
|
|
238
260
|
* @name updateAddress
|
|
239
261
|
* @summary: Update address added to an account
|
|
240
|
-
* @description:
|
|
262
|
+
* @description: Use this API to update an existing address in the account. Request object should contain attributes mentioned in Address can be updated. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/updateAddress/).
|
|
241
263
|
*/
|
|
242
|
-
updateAddress({ id, body }?: PosCartApplicationValidator.UpdateAddressParam, {
|
|
264
|
+
updateAddress({ id, body, requestHeaders }?: PosCartApplicationValidator.UpdateAddressParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.UpdateAddressResponse>;
|
|
243
265
|
/**
|
|
244
266
|
* @param {PosCartApplicationValidator.UpdateCartParam} arg - Arg object.
|
|
267
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
245
268
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
246
269
|
* @returns {Promise<PosCartApplicationModel.UpdateCartDetailResponse>} -
|
|
247
270
|
* Success response
|
|
248
271
|
* @name updateCart
|
|
249
272
|
* @summary: Update items in the cart
|
|
250
|
-
* @description:
|
|
273
|
+
* @description: Use this API to update items added to the cart with the help of a request object containing attributes like item_quantity and item_size. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/updateCart/).
|
|
251
274
|
*/
|
|
252
|
-
updateCart({ body, id, i, b, areaCode, buyNow }?: PosCartApplicationValidator.UpdateCartParam, {
|
|
275
|
+
updateCart({ body, id, i, b, areaCode, buyNow, requestHeaders }?: PosCartApplicationValidator.UpdateCartParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.UpdateCartDetailResponse>;
|
|
253
276
|
/**
|
|
254
277
|
* @param {PosCartApplicationValidator.UpdateCartMetaParam} arg - Arg object.
|
|
278
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
255
279
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
256
280
|
* @returns {Promise<PosCartApplicationModel.CartMetaResponse>} - Success response
|
|
257
281
|
* @name updateCartMeta
|
|
258
282
|
* @summary: Update the cart meta
|
|
259
283
|
* @description: Use this API to update cart meta like checkout_mode and gstin. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/updateCartMeta/).
|
|
260
284
|
*/
|
|
261
|
-
updateCartMeta({ body, id, buyNow }?: PosCartApplicationValidator.UpdateCartMetaParam, {
|
|
285
|
+
updateCartMeta({ body, id, buyNow, requestHeaders }?: PosCartApplicationValidator.UpdateCartMetaParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.CartMetaResponse>;
|
|
262
286
|
/**
|
|
263
287
|
* @param {PosCartApplicationValidator.UpdateCartWithSharedItemsParam} arg
|
|
264
288
|
* - Arg object.
|
|
265
289
|
*
|
|
290
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
266
291
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
267
292
|
* @returns {Promise<PosCartApplicationModel.SharedCartResponse>} - Success response
|
|
268
293
|
* @name updateCartWithSharedItems
|
|
269
294
|
* @summary: Merge or replace existing cart
|
|
270
295
|
* @description: Use this API to merge the shared cart with existing cart, or replace the existing cart with the shared cart. The `action` parameter is used to indicate the operation Merge or Replace. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/updateCartWithSharedItems/).
|
|
271
296
|
*/
|
|
272
|
-
updateCartWithSharedItems({ token, action }?: PosCartApplicationValidator.UpdateCartWithSharedItemsParam, {
|
|
297
|
+
updateCartWithSharedItems({ token, action, requestHeaders }?: PosCartApplicationValidator.UpdateCartWithSharedItemsParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.SharedCartResponse>;
|
|
273
298
|
/**
|
|
274
299
|
* @param {PosCartApplicationValidator.UpdateShipmentsParam} arg - Arg object.
|
|
300
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
275
301
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
276
302
|
* @returns {Promise<PosCartApplicationModel.CartShipmentsResponse>} -
|
|
277
303
|
* Success response
|
|
@@ -279,10 +305,11 @@ declare class PosCart {
|
|
|
279
305
|
* @summary: Update shipment delivery type and quantity before checkout
|
|
280
306
|
* @description: Use this API to update the delivery type and quantity as per customer's preference for either store pick-up or home-delivery. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/updateShipments/).
|
|
281
307
|
*/
|
|
282
|
-
updateShipments({ body, i, p, id, addressId, areaCode, orderType }?: PosCartApplicationValidator.UpdateShipmentsParam, {
|
|
308
|
+
updateShipments({ body, i, p, id, addressId, areaCode, orderType, requestHeaders }?: PosCartApplicationValidator.UpdateShipmentsParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.CartShipmentsResponse>;
|
|
283
309
|
/**
|
|
284
310
|
* @param {PosCartApplicationValidator.ValidateCouponForPaymentParam} arg -
|
|
285
311
|
* Arg object.
|
|
312
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
286
313
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
287
314
|
* @returns {Promise<PosCartApplicationModel.PaymentCouponValidate>} -
|
|
288
315
|
* Success response
|
|
@@ -290,7 +317,7 @@ declare class PosCart {
|
|
|
290
317
|
* @summary: Verify the coupon eligibility against the payment mode
|
|
291
318
|
* @description: Use this API to validate a coupon against the payment mode such as NetBanking, Wallet, UPI etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/poscart/validateCouponForPayment/).
|
|
292
319
|
*/
|
|
293
|
-
validateCouponForPayment({ id, buyNow, addressId, paymentMode, paymentIdentifier, aggregatorName, merchantCode, iin, network, type, cardId, }?: PosCartApplicationValidator.ValidateCouponForPaymentParam, {
|
|
320
|
+
validateCouponForPayment({ id, buyNow, addressId, paymentMode, paymentIdentifier, aggregatorName, merchantCode, iin, network, type, cardId, requestHeaders, }?: PosCartApplicationValidator.ValidateCouponForPaymentParam, { responseHeaders }?: object): Promise<PosCartApplicationModel.PaymentCouponValidate>;
|
|
294
321
|
}
|
|
295
322
|
import PosCartApplicationValidator = require("./PosCartApplicationValidator");
|
|
296
323
|
import PosCartApplicationModel = require("./PosCartApplicationModel");
|