@gofynd/fdk-client-javascript 1.4.13 → 1.4.14
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 +2 -0
- package/sdk/application/ApplicationClient.js +2 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +60 -53
- package/sdk/application/Cart/CartApplicationClient.js +130 -53
- package/sdk/application/Cart/CartApplicationModel.d.ts +489 -143
- package/sdk/application/Cart/CartApplicationModel.js +380 -159
- package/sdk/application/Cart/CartApplicationValidator.d.ts +38 -19
- package/sdk/application/Cart/CartApplicationValidator.js +34 -18
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +88 -68
- package/sdk/application/Catalog/CatalogApplicationClient.js +114 -94
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +194 -142
- package/sdk/application/Catalog/CatalogApplicationModel.js +171 -133
- package/sdk/application/Common/CommonApplicationClient.d.ts +3 -2
- package/sdk/application/Common/CommonApplicationClient.js +6 -5
- package/sdk/application/Common/CommonApplicationModel.d.ts +9 -9
- package/sdk/application/Common/CommonApplicationModel.js +6 -6
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +34 -27
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +34 -27
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +45 -57
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +35 -47
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +2 -2
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +2 -2
- package/sdk/application/Content/ContentApplicationClient.d.ts +23 -33
- package/sdk/application/Content/ContentApplicationClient.js +54 -75
- package/sdk/application/Content/ContentApplicationModel.d.ts +93 -37
- package/sdk/application/Content/ContentApplicationModel.js +83 -32
- package/sdk/application/Content/ContentApplicationValidator.d.ts +23 -17
- package/sdk/application/Content/ContentApplicationValidator.js +15 -10
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +9 -8
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +14 -13
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +23 -25
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +16 -18
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +6 -6
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +36 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +202 -0
- package/sdk/application/Finance/FinanceApplicationModel.d.ts +289 -0
- package/sdk/application/Finance/FinanceApplicationModel.js +208 -0
- package/sdk/application/Finance/FinanceApplicationValidator.d.ts +25 -0
- package/sdk/application/Finance/FinanceApplicationValidator.js +31 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -3
- package/sdk/application/Lead/LeadApplicationClient.js +2 -3
- package/sdk/application/Lead/LeadApplicationModel.d.ts +11 -11
- package/sdk/application/Lead/LeadApplicationModel.js +19 -19
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +39 -16
- package/sdk/application/Logistic/LogisticApplicationClient.js +189 -21
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +532 -173
- package/sdk/application/Logistic/LogisticApplicationModel.js +409 -139
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +54 -9
- package/sdk/application/Logistic/LogisticApplicationValidator.js +42 -8
- package/sdk/application/Order/OrderApplicationClient.d.ts +24 -10
- package/sdk/application/Order/OrderApplicationClient.js +96 -13
- package/sdk/application/Order/OrderApplicationModel.d.ts +434 -102
- package/sdk/application/Order/OrderApplicationModel.js +278 -73
- package/sdk/application/Order/OrderApplicationValidator.d.ts +17 -3
- package/sdk/application/Order/OrderApplicationValidator.js +15 -2
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +96 -99
- package/sdk/application/Payment/PaymentApplicationClient.js +111 -114
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +293 -289
- package/sdk/application/Payment/PaymentApplicationModel.js +243 -241
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +46 -46
- package/sdk/application/Payment/PaymentApplicationValidator.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -16
- package/sdk/application/Rewards/RewardsApplicationClient.js +19 -22
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +37 -37
- package/sdk/application/Rewards/RewardsApplicationModel.js +29 -29
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +6 -6
- package/sdk/application/Rewards/RewardsApplicationValidator.js +6 -6
- package/sdk/application/Share/ShareApplicationModel.js +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +8 -6
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +48 -17
- package/sdk/application/Theme/ThemeApplicationModel.js +42 -22
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +16 -3
- package/sdk/application/Theme/ThemeApplicationValidator.js +9 -2
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +10 -10
- package/sdk/application/User/UserApplicationModel.d.ts +17 -17
- package/sdk/application/User/UserApplicationModel.js +16 -16
- package/sdk/application/User/UserApplicationValidator.d.ts +2 -2
- package/sdk/application/User/UserApplicationValidator.js +2 -2
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -4
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +11 -9
- package/sdk/application/Webhook/WebhookApplicationModel.js +8 -6
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +2 -2
- package/sdk/application/Webhook/WebhookApplicationValidator.js +2 -2
- package/sdk/application/index.d.ts +1 -0
- package/sdk/application/index.js +2 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +86 -12
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +582 -24
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +116 -19
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +121 -14
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +8 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +51 -4
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +126 -20
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +767 -85
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +429 -76
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +120 -6
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +8 -10
- package/sdk/partner/Theme/ThemePartnerClient.js +14 -16
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +96 -37
- package/sdk/partner/Theme/ThemePartnerModel.js +90 -36
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +28 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +103 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +612 -179
- package/sdk/partner/Webhook/WebhookPartnerModel.js +253 -150
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +1 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +11 -3
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +5 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +14 -8
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +59 -9
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +40 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +11 -130
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +12 -152
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
- package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +134 -103
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +407 -112
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +111 -65
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +106 -44
- package/sdk/platform/Cart/CartPlatformModel.d.ts +4978 -1303
- package/sdk/platform/Cart/CartPlatformModel.js +1922 -1217
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +208 -183
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +383 -358
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +122 -126
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +66 -68
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +141 -118
- package/sdk/platform/Catalog/CatalogPlatformClient.js +193 -170
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1516 -1766
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1393 -1224
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
- package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -2
- package/sdk/platform/Common/CommonPlatformClient.js +3 -2
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +16 -17
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +43 -33
- package/sdk/platform/Communication/CommunicationPlatformModel.js +38 -34
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +46 -42
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +47 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +210 -212
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +46 -33
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +67 -54
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +45 -24
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +134 -30
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +283 -124
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +219 -94
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +124 -141
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
- package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
- package/sdk/platform/Content/ContentPlatformClient.js +523 -336
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1241 -395
- package/sdk/platform/Content/ContentPlatformModel.js +521 -390
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
- package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
- package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +94 -36
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +15 -4
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +83 -5
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +25 -4
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
- package/sdk/platform/Order/OrderPlatformClient.d.ts +178 -97
- package/sdk/platform/Order/OrderPlatformClient.js +589 -229
- package/sdk/platform/Order/OrderPlatformModel.d.ts +5447 -3071
- package/sdk/platform/Order/OrderPlatformModel.js +3496 -1653
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +241 -176
- package/sdk/platform/Order/OrderPlatformValidator.js +153 -97
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +93 -105
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +129 -141
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +327 -313
- package/sdk/platform/Payment/PaymentPlatformModel.js +283 -273
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- package/sdk/platform/PlatformClient.d.ts +0 -2
- package/sdk/platform/PlatformClient.js +0 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +45 -35
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +117 -38
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +22 -13
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +24 -12
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +40 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +602 -341
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +483 -284
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +8 -8
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +36 -5
- package/sdk/platform/Share/SharePlatformModel.js +27 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +8 -4
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +5 -0
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +2 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +37 -11
- package/sdk/platform/Theme/ThemePlatformModel.js +33 -15
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
- package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +720 -427
- package/sdk/platform/Webhook/WebhookPlatformModel.js +410 -386
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
- package/sdk/platform/index.d.ts +0 -1
- package/sdk/platform/index.js +0 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +3 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.js +6 -5
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +112 -2
- package/sdk/public/Content/ContentPublicClient.js +791 -5
- package/sdk/public/Content/ContentPublicModel.d.ts +549 -3
- package/sdk/public/Content/ContentPublicModel.js +649 -3
- package/sdk/public/Content/ContentPublicValidator.d.ts +69 -3
- package/sdk/public/Content/ContentPublicValidator.js +88 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
- package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
|
@@ -18,6 +18,7 @@ class Cart {
|
|
|
18
18
|
addItems: "/service/application/cart/v1.0/detail",
|
|
19
19
|
applyCoupon: "/service/application/cart/v1.0/coupon",
|
|
20
20
|
applyRewardPoints: "/service/application/cart/v1.0/redeem/points/",
|
|
21
|
+
checkoutCart: "/service/application/cart/v1.0/checkout",
|
|
21
22
|
checkoutCartV2: "/service/application/cart/v2.0/checkout",
|
|
22
23
|
deleteCart: "/service/application/cart/v1.0/cart_archive",
|
|
23
24
|
getAddressById: "/service/application/cart/v1.0/address/{id}",
|
|
@@ -66,7 +67,7 @@ class Cart {
|
|
|
66
67
|
* @param {CartApplicationValidator.AddAddressParam} arg - Arg object.
|
|
67
68
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
68
69
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
69
|
-
* @returns {Promise<CartApplicationModel.
|
|
70
|
+
* @returns {Promise<CartApplicationModel.SaveAddressResult>} - Success response
|
|
70
71
|
* @name addAddress
|
|
71
72
|
* @summary: Creates a new address for a customer
|
|
72
73
|
* @description: Add a new address to their cart to save details such as name, email, contact information, and address. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/addAddress/).
|
|
@@ -119,7 +120,7 @@ class Cart {
|
|
|
119
120
|
|
|
120
121
|
const {
|
|
121
122
|
error: res_error,
|
|
122
|
-
} = CartApplicationModel.
|
|
123
|
+
} = CartApplicationModel.SaveAddressResult().validate(responseData, {
|
|
123
124
|
abortEarly: false,
|
|
124
125
|
allowUnknown: true,
|
|
125
126
|
});
|
|
@@ -142,7 +143,7 @@ class Cart {
|
|
|
142
143
|
* @param {CartApplicationValidator.AddItemsParam} arg - Arg object.
|
|
143
144
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
144
145
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
145
|
-
* @returns {Promise<CartApplicationModel.
|
|
146
|
+
* @returns {Promise<CartApplicationModel.AddCartDetailResult>} - Success response
|
|
146
147
|
* @name addItems
|
|
147
148
|
* @summary: Add items to a cart
|
|
148
149
|
* @description: Add product items to the customer's existing shopping cart. If there is no existing cart associated with the customer, it creates a new one and adds the items to it. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/addItems/).
|
|
@@ -203,7 +204,7 @@ class Cart {
|
|
|
203
204
|
|
|
204
205
|
const {
|
|
205
206
|
error: res_error,
|
|
206
|
-
} = CartApplicationModel.
|
|
207
|
+
} = CartApplicationModel.AddCartDetailResult().validate(responseData, {
|
|
207
208
|
abortEarly: false,
|
|
208
209
|
allowUnknown: true,
|
|
209
210
|
});
|
|
@@ -226,7 +227,7 @@ class Cart {
|
|
|
226
227
|
* @param {CartApplicationValidator.ApplyCouponParam} arg - Arg object.
|
|
227
228
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
228
229
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
229
|
-
* @returns {Promise<CartApplicationModel.
|
|
230
|
+
* @returns {Promise<CartApplicationModel.CartDetailResult>} - Success response
|
|
230
231
|
* @name applyCoupon
|
|
231
232
|
* @summary: Apply coupon
|
|
232
233
|
* @description: Apply a coupon code to the cart to trigger discounts on eligible items. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/applyCoupon/).
|
|
@@ -287,7 +288,7 @@ class Cart {
|
|
|
287
288
|
|
|
288
289
|
const {
|
|
289
290
|
error: res_error,
|
|
290
|
-
} = CartApplicationModel.
|
|
291
|
+
} = CartApplicationModel.CartDetailResult().validate(responseData, {
|
|
291
292
|
abortEarly: false,
|
|
292
293
|
allowUnknown: true,
|
|
293
294
|
});
|
|
@@ -310,7 +311,7 @@ class Cart {
|
|
|
310
311
|
* @param {CartApplicationValidator.ApplyRewardPointsParam} arg - Arg object.
|
|
311
312
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
312
313
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
313
|
-
* @returns {Promise<CartApplicationModel.
|
|
314
|
+
* @returns {Promise<CartApplicationModel.CartDetailResult>} - Success response
|
|
314
315
|
* @name applyRewardPoints
|
|
315
316
|
* @summary: Use reward points
|
|
316
317
|
* @description: Users can redeem their accumulated reward points and apply them to the items in their cart, thereby availing discounts on their current purchases. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/applyRewardPoints/).
|
|
@@ -369,7 +370,7 @@ class Cart {
|
|
|
369
370
|
|
|
370
371
|
const {
|
|
371
372
|
error: res_error,
|
|
372
|
-
} = CartApplicationModel.
|
|
373
|
+
} = CartApplicationModel.CartDetailResult().validate(responseData, {
|
|
373
374
|
abortEarly: false,
|
|
374
375
|
allowUnknown: true,
|
|
375
376
|
});
|
|
@@ -388,11 +389,91 @@ class Cart {
|
|
|
388
389
|
return response;
|
|
389
390
|
}
|
|
390
391
|
|
|
392
|
+
/**
|
|
393
|
+
* @param {CartApplicationValidator.CheckoutCartParam} arg - Arg object.
|
|
394
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
395
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
396
|
+
* @returns {Promise<CartApplicationModel.CartCheckoutResult>} - Success response
|
|
397
|
+
* @name checkoutCart
|
|
398
|
+
* @summary: Checkout cart
|
|
399
|
+
* @description: The checkout cart initiates the order creation process based on the selected address and payment method. It revalidates the cart details to ensure safe and seamless order placement. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/checkoutCart/).
|
|
400
|
+
*/
|
|
401
|
+
async checkoutCart(
|
|
402
|
+
{ body, buyNow, cartType, requestHeaders } = { requestHeaders: {} },
|
|
403
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
404
|
+
) {
|
|
405
|
+
const { error } = CartApplicationValidator.checkoutCart().validate(
|
|
406
|
+
{ body, buyNow, cartType },
|
|
407
|
+
{ abortEarly: false, allowUnknown: true }
|
|
408
|
+
);
|
|
409
|
+
if (error) {
|
|
410
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
// Showing warrnings if extra unknown parameters are found
|
|
414
|
+
const {
|
|
415
|
+
error: warrning,
|
|
416
|
+
} = CartApplicationValidator.checkoutCart().validate(
|
|
417
|
+
{ body, buyNow, cartType },
|
|
418
|
+
{ abortEarly: false, allowUnknown: false }
|
|
419
|
+
);
|
|
420
|
+
if (warrning) {
|
|
421
|
+
Logger({
|
|
422
|
+
level: "WARN",
|
|
423
|
+
message: `Parameter Validation warrnings for application > Cart > checkoutCart \n ${warrning}`,
|
|
424
|
+
});
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
const query_params = {};
|
|
428
|
+
query_params["buy_now"] = buyNow;
|
|
429
|
+
query_params["cart_type"] = cartType;
|
|
430
|
+
|
|
431
|
+
const xHeaders = {};
|
|
432
|
+
|
|
433
|
+
const response = await ApplicationAPIClient.execute(
|
|
434
|
+
this._conf,
|
|
435
|
+
"post",
|
|
436
|
+
constructUrl({
|
|
437
|
+
url: this._urls["checkoutCart"],
|
|
438
|
+
params: {},
|
|
439
|
+
}),
|
|
440
|
+
query_params,
|
|
441
|
+
body,
|
|
442
|
+
{ ...xHeaders, ...requestHeaders },
|
|
443
|
+
{ responseHeaders }
|
|
444
|
+
);
|
|
445
|
+
|
|
446
|
+
let responseData = response;
|
|
447
|
+
if (responseHeaders) {
|
|
448
|
+
responseData = response[0];
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
const {
|
|
452
|
+
error: res_error,
|
|
453
|
+
} = CartApplicationModel.CartCheckoutResult().validate(responseData, {
|
|
454
|
+
abortEarly: false,
|
|
455
|
+
allowUnknown: true,
|
|
456
|
+
});
|
|
457
|
+
|
|
458
|
+
if (res_error) {
|
|
459
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
460
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
461
|
+
} else {
|
|
462
|
+
Logger({
|
|
463
|
+
level: "WARN",
|
|
464
|
+
message: `Response Validation Warnings for application > Cart > checkoutCart \n ${res_error}`,
|
|
465
|
+
});
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
return response;
|
|
470
|
+
}
|
|
471
|
+
|
|
391
472
|
/**
|
|
392
473
|
* @param {CartApplicationValidator.CheckoutCartV2Param} arg - Arg object.
|
|
393
474
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
394
475
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
395
|
-
* @returns {Promise<CartApplicationModel.
|
|
476
|
+
* @returns {Promise<CartApplicationModel.CartCheckoutResult>} - Success response
|
|
396
477
|
* @name checkoutCartV2
|
|
397
478
|
* @summary: Checkout cart
|
|
398
479
|
* @description: The checkout cart initiates the order creation process based on the items in the user’s cart, their selected address, and chosen payment methods. It also supports multiple payment method options and revalidates the cart details to ensure a secure and seamless order placement. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/checkoutCartV2/).
|
|
@@ -449,7 +530,7 @@ class Cart {
|
|
|
449
530
|
|
|
450
531
|
const {
|
|
451
532
|
error: res_error,
|
|
452
|
-
} = CartApplicationModel.
|
|
533
|
+
} = CartApplicationModel.CartCheckoutResult().validate(responseData, {
|
|
453
534
|
abortEarly: false,
|
|
454
535
|
allowUnknown: true,
|
|
455
536
|
});
|
|
@@ -472,8 +553,7 @@ class Cart {
|
|
|
472
553
|
* @param {CartApplicationValidator.DeleteCartParam} arg - Arg object.
|
|
473
554
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
474
555
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
475
|
-
* @returns {Promise<CartApplicationModel.
|
|
476
|
-
* Success response
|
|
556
|
+
* @returns {Promise<CartApplicationModel.DeleteCartDetailResult>} - Success response
|
|
477
557
|
* @name deleteCart
|
|
478
558
|
* @summary: Delete a cart
|
|
479
559
|
* @description: Delete all items from the user's cart and resets it to its initial state, providing a clean slate for new selections. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/deleteCart/).
|
|
@@ -527,7 +607,7 @@ class Cart {
|
|
|
527
607
|
|
|
528
608
|
const {
|
|
529
609
|
error: res_error,
|
|
530
|
-
} = CartApplicationModel.
|
|
610
|
+
} = CartApplicationModel.DeleteCartDetailResult().validate(responseData, {
|
|
531
611
|
abortEarly: false,
|
|
532
612
|
allowUnknown: true,
|
|
533
613
|
});
|
|
@@ -643,7 +723,7 @@ class Cart {
|
|
|
643
723
|
* @param {CartApplicationValidator.GetAddressesParam} arg - Arg object.
|
|
644
724
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
645
725
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
646
|
-
* @returns {Promise<CartApplicationModel.
|
|
726
|
+
* @returns {Promise<CartApplicationModel.GetAddressesResult>} - Success response
|
|
647
727
|
* @name getAddresses
|
|
648
728
|
* @summary: Get a list of addresses for a customer
|
|
649
729
|
* @description: List all addresses saved by the customer, simplifying the checkout process by offering pre-saved address options for delivery. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getAddresses/).
|
|
@@ -712,7 +792,7 @@ class Cart {
|
|
|
712
792
|
|
|
713
793
|
const {
|
|
714
794
|
error: res_error,
|
|
715
|
-
} = CartApplicationModel.
|
|
795
|
+
} = CartApplicationModel.GetAddressesResult().validate(responseData, {
|
|
716
796
|
abortEarly: false,
|
|
717
797
|
allowUnknown: true,
|
|
718
798
|
});
|
|
@@ -735,7 +815,7 @@ class Cart {
|
|
|
735
815
|
* @param {CartApplicationValidator.GetBulkDiscountOffersParam} arg - Arg object.
|
|
736
816
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
737
817
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
738
|
-
* @returns {Promise<CartApplicationModel.
|
|
818
|
+
* @returns {Promise<CartApplicationModel.BulkPriceResult>} - Success response
|
|
739
819
|
* @name getBulkDiscountOffers
|
|
740
820
|
* @summary: List bulk discounts
|
|
741
821
|
* @description: List offer discounts with information about quantity and seller. One offer is marked with a "best" flag, indicating it as the best offer among the list. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getBulkDiscountOffers/).
|
|
@@ -794,7 +874,7 @@ class Cart {
|
|
|
794
874
|
|
|
795
875
|
const {
|
|
796
876
|
error: res_error,
|
|
797
|
-
} = CartApplicationModel.
|
|
877
|
+
} = CartApplicationModel.BulkPriceResult().validate(responseData, {
|
|
798
878
|
abortEarly: false,
|
|
799
879
|
allowUnknown: true,
|
|
800
880
|
});
|
|
@@ -817,7 +897,7 @@ class Cart {
|
|
|
817
897
|
* @param {CartApplicationValidator.GetCartParam} arg - Arg object.
|
|
818
898
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
819
899
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
820
|
-
* @returns {Promise<CartApplicationModel.
|
|
900
|
+
* @returns {Promise<CartApplicationModel.CartDetailResult>} - Success response
|
|
821
901
|
* @name getCart
|
|
822
902
|
* @summary: Get a cart
|
|
823
903
|
* @description: Get details of a cart linked to a specific customer using a unique cart ID. It offers an overview of the items, quantities, prices, and other relevant information associated with the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCart/).
|
|
@@ -888,7 +968,7 @@ class Cart {
|
|
|
888
968
|
|
|
889
969
|
const {
|
|
890
970
|
error: res_error,
|
|
891
|
-
} = CartApplicationModel.
|
|
971
|
+
} = CartApplicationModel.CartDetailResult().validate(responseData, {
|
|
892
972
|
abortEarly: false,
|
|
893
973
|
allowUnknown: true,
|
|
894
974
|
});
|
|
@@ -987,8 +1067,7 @@ class Cart {
|
|
|
987
1067
|
* @param {CartApplicationValidator.GetCartShareLinkParam} arg - Arg object.
|
|
988
1068
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
989
1069
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
990
|
-
* @returns {Promise<CartApplicationModel.
|
|
991
|
-
* Success response
|
|
1070
|
+
* @returns {Promise<CartApplicationModel.GetShareCartLinkResult>} - Success response
|
|
992
1071
|
* @name getCartShareLink
|
|
993
1072
|
* @summary: Create share cart link
|
|
994
1073
|
* @description: Generate a unique shareable link for the customer's cart for a specific sales channel. This link enables easy sharing of the cart contents with other users, facilitating collaborative shopping experiences. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCartShareLink/).
|
|
@@ -1043,7 +1122,7 @@ class Cart {
|
|
|
1043
1122
|
|
|
1044
1123
|
const {
|
|
1045
1124
|
error: res_error,
|
|
1046
|
-
} = CartApplicationModel.
|
|
1125
|
+
} = CartApplicationModel.GetShareCartLinkResult().validate(responseData, {
|
|
1047
1126
|
abortEarly: false,
|
|
1048
1127
|
allowUnknown: true,
|
|
1049
1128
|
});
|
|
@@ -1066,7 +1145,7 @@ class Cart {
|
|
|
1066
1145
|
* @param {CartApplicationValidator.GetCartSharedItemsParam} arg - Arg object.
|
|
1067
1146
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1068
1147
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1069
|
-
* @returns {Promise<CartApplicationModel.
|
|
1148
|
+
* @returns {Promise<CartApplicationModel.SharedCartResult>} - Success response
|
|
1070
1149
|
* @name getCartSharedItems
|
|
1071
1150
|
* @summary: List shared cart items
|
|
1072
1151
|
* @description: Get cart items from the shared cart link based on unique token. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCartSharedItems/).
|
|
@@ -1121,7 +1200,7 @@ class Cart {
|
|
|
1121
1200
|
|
|
1122
1201
|
const {
|
|
1123
1202
|
error: res_error,
|
|
1124
|
-
} = CartApplicationModel.
|
|
1203
|
+
} = CartApplicationModel.SharedCartResult().validate(responseData, {
|
|
1125
1204
|
abortEarly: false,
|
|
1126
1205
|
allowUnknown: true,
|
|
1127
1206
|
});
|
|
@@ -1144,7 +1223,7 @@ class Cart {
|
|
|
1144
1223
|
* @param {CartApplicationValidator.GetCouponsParam} arg - Arg object.
|
|
1145
1224
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1146
1225
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1147
|
-
* @returns {Promise<CartApplicationModel.
|
|
1226
|
+
* @returns {Promise<CartApplicationModel.GetCouponResult>} - Success response
|
|
1148
1227
|
* @name getCoupons
|
|
1149
1228
|
* @summary: List available coupons
|
|
1150
1229
|
* @description: List all available coupons that customer can apply to their carts. It provides details about each coupon, including its code, discount amount, and applicable conditions. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCoupons/).
|
|
@@ -1201,7 +1280,7 @@ class Cart {
|
|
|
1201
1280
|
|
|
1202
1281
|
const {
|
|
1203
1282
|
error: res_error,
|
|
1204
|
-
} = CartApplicationModel.
|
|
1283
|
+
} = CartApplicationModel.GetCouponResult().validate(responseData, {
|
|
1205
1284
|
abortEarly: false,
|
|
1206
1285
|
allowUnknown: true,
|
|
1207
1286
|
});
|
|
@@ -1224,7 +1303,7 @@ class Cart {
|
|
|
1224
1303
|
* @param {CartApplicationValidator.GetItemCountParam} arg - Arg object.
|
|
1225
1304
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1226
1305
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1227
|
-
* @returns {Promise<CartApplicationModel.
|
|
1306
|
+
* @returns {Promise<CartApplicationModel.CartItemCountResult>} - Success response
|
|
1228
1307
|
* @name getItemCount
|
|
1229
1308
|
* @summary: Get a cart items count
|
|
1230
1309
|
* @description: Get total count of items currently present in the customer's cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getItemCount/).
|
|
@@ -1281,7 +1360,7 @@ class Cart {
|
|
|
1281
1360
|
|
|
1282
1361
|
const {
|
|
1283
1362
|
error: res_error,
|
|
1284
|
-
} = CartApplicationModel.
|
|
1363
|
+
} = CartApplicationModel.CartItemCountResult().validate(responseData, {
|
|
1285
1364
|
abortEarly: false,
|
|
1286
1365
|
allowUnknown: true,
|
|
1287
1366
|
});
|
|
@@ -1388,7 +1467,7 @@ class Cart {
|
|
|
1388
1467
|
* @param {CartApplicationValidator.GetPromotionOffersParam} arg - Arg object.
|
|
1389
1468
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1390
1469
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1391
|
-
* @returns {Promise<CartApplicationModel.
|
|
1470
|
+
* @returns {Promise<CartApplicationModel.PromotionOffersResult>} - Success response
|
|
1392
1471
|
* @name getPromotionOffers
|
|
1393
1472
|
* @summary: List available promotion offers
|
|
1394
1473
|
* @description: List all promotional offers available for the items in the cart, including details such as offer text, unique promotion ID, and validity period. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getPromotionOffers/).
|
|
@@ -1450,7 +1529,7 @@ class Cart {
|
|
|
1450
1529
|
|
|
1451
1530
|
const {
|
|
1452
1531
|
error: res_error,
|
|
1453
|
-
} = CartApplicationModel.
|
|
1532
|
+
} = CartApplicationModel.PromotionOffersResult().validate(responseData, {
|
|
1454
1533
|
abortEarly: false,
|
|
1455
1534
|
allowUnknown: true,
|
|
1456
1535
|
});
|
|
@@ -1473,9 +1552,8 @@ class Cart {
|
|
|
1473
1552
|
* @param {CartApplicationValidator.GetPromotionPaymentOffersParam} arg - Arg object.
|
|
1474
1553
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1475
1554
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1476
|
-
* @returns {Promise<CartApplicationModel.
|
|
1477
|
-
*
|
|
1478
|
-
*
|
|
1555
|
+
* @returns {Promise<CartApplicationModel.PromotionPaymentOffersResult>} -
|
|
1556
|
+
* Success response
|
|
1479
1557
|
* @name getPromotionPaymentOffers
|
|
1480
1558
|
* @summary: Fetch available promotions payment offers
|
|
1481
1559
|
* @description: Use this API to get top 5 payment offers available for current product. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getPromotionPaymentOffers/).
|
|
@@ -1534,7 +1612,7 @@ class Cart {
|
|
|
1534
1612
|
|
|
1535
1613
|
const {
|
|
1536
1614
|
error: res_error,
|
|
1537
|
-
} = CartApplicationModel.
|
|
1615
|
+
} = CartApplicationModel.PromotionPaymentOffersResult().validate(
|
|
1538
1616
|
responseData,
|
|
1539
1617
|
{ abortEarly: false, allowUnknown: true }
|
|
1540
1618
|
);
|
|
@@ -1557,7 +1635,7 @@ class Cart {
|
|
|
1557
1635
|
* @param {CartApplicationValidator.GetShipmentsParam} arg - Arg object.
|
|
1558
1636
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1559
1637
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1560
|
-
* @returns {Promise<CartApplicationModel.
|
|
1638
|
+
* @returns {Promise<CartApplicationModel.CartShipmentsResult>} - Success response
|
|
1561
1639
|
* @name getShipments
|
|
1562
1640
|
* @summary: List shipments
|
|
1563
1641
|
* @description: Get shipment details for the items in a cart, specific to the selected address. Shipment details include delivery promises, seller information, item details, and other relevant information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getShipments/).
|
|
@@ -1620,7 +1698,7 @@ class Cart {
|
|
|
1620
1698
|
|
|
1621
1699
|
const {
|
|
1622
1700
|
error: res_error,
|
|
1623
|
-
} = CartApplicationModel.
|
|
1701
|
+
} = CartApplicationModel.CartShipmentsResult().validate(responseData, {
|
|
1624
1702
|
abortEarly: false,
|
|
1625
1703
|
allowUnknown: true,
|
|
1626
1704
|
});
|
|
@@ -1643,7 +1721,7 @@ class Cart {
|
|
|
1643
1721
|
* @param {CartApplicationValidator.RemoveAddressParam} arg - Arg object.
|
|
1644
1722
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1645
1723
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1646
|
-
* @returns {Promise<CartApplicationModel.
|
|
1724
|
+
* @returns {Promise<CartApplicationModel.DeleteAddressResult>} - Success response
|
|
1647
1725
|
* @name removeAddress
|
|
1648
1726
|
* @summary: Removes an address from a customer's address list
|
|
1649
1727
|
* @description: Delete an existing customer address from the system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/removeAddress/).
|
|
@@ -1698,7 +1776,7 @@ class Cart {
|
|
|
1698
1776
|
|
|
1699
1777
|
const {
|
|
1700
1778
|
error: res_error,
|
|
1701
|
-
} = CartApplicationModel.
|
|
1779
|
+
} = CartApplicationModel.DeleteAddressResult().validate(responseData, {
|
|
1702
1780
|
abortEarly: false,
|
|
1703
1781
|
allowUnknown: true,
|
|
1704
1782
|
});
|
|
@@ -1721,7 +1799,7 @@ class Cart {
|
|
|
1721
1799
|
* @param {CartApplicationValidator.RemoveCouponParam} arg - Arg object.
|
|
1722
1800
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1723
1801
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1724
|
-
* @returns {Promise<CartApplicationModel.
|
|
1802
|
+
* @returns {Promise<CartApplicationModel.CartDetailResult>} - Success response
|
|
1725
1803
|
* @name removeCoupon
|
|
1726
1804
|
* @summary: Remove coupon
|
|
1727
1805
|
* @description: Remove an applied coupon from the customer's cart, thereby removing the associated discount from the cart total. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/removeCoupon/).
|
|
@@ -1778,7 +1856,7 @@ class Cart {
|
|
|
1778
1856
|
|
|
1779
1857
|
const {
|
|
1780
1858
|
error: res_error,
|
|
1781
|
-
} = CartApplicationModel.
|
|
1859
|
+
} = CartApplicationModel.CartDetailResult().validate(responseData, {
|
|
1782
1860
|
abortEarly: false,
|
|
1783
1861
|
allowUnknown: true,
|
|
1784
1862
|
});
|
|
@@ -1801,7 +1879,7 @@ class Cart {
|
|
|
1801
1879
|
* @param {CartApplicationValidator.SelectAddressParam} arg - Arg object.
|
|
1802
1880
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1803
1881
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1804
|
-
* @returns {Promise<CartApplicationModel.
|
|
1882
|
+
* @returns {Promise<CartApplicationModel.CartDetailResult>} - Success response
|
|
1805
1883
|
* @name selectAddress
|
|
1806
1884
|
* @summary: Select customer address for order processing
|
|
1807
1885
|
* @description: Select an address from the saved customer addresses and validates the availability of items in the cart. Additionally, it verifies and updates the delivery promise based on the selected address. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/selectAddress/).
|
|
@@ -1860,7 +1938,7 @@ class Cart {
|
|
|
1860
1938
|
|
|
1861
1939
|
const {
|
|
1862
1940
|
error: res_error,
|
|
1863
|
-
} = CartApplicationModel.
|
|
1941
|
+
} = CartApplicationModel.CartDetailResult().validate(responseData, {
|
|
1864
1942
|
abortEarly: false,
|
|
1865
1943
|
allowUnknown: true,
|
|
1866
1944
|
});
|
|
@@ -1883,7 +1961,7 @@ class Cart {
|
|
|
1883
1961
|
* @param {CartApplicationValidator.SelectPaymentModeParam} arg - Arg object.
|
|
1884
1962
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1885
1963
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1886
|
-
* @returns {Promise<CartApplicationModel.
|
|
1964
|
+
* @returns {Promise<CartApplicationModel.CartDetailResult>} - Success response
|
|
1887
1965
|
* @name selectPaymentMode
|
|
1888
1966
|
* @summary: Select payment mode
|
|
1889
1967
|
* @description: Select a preferred payment mode from available options during the cart checkout process to securely and efficiently complete their transaction. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/selectPaymentMode/).
|
|
@@ -1940,7 +2018,7 @@ class Cart {
|
|
|
1940
2018
|
|
|
1941
2019
|
const {
|
|
1942
2020
|
error: res_error,
|
|
1943
|
-
} = CartApplicationModel.
|
|
2021
|
+
} = CartApplicationModel.CartDetailResult().validate(responseData, {
|
|
1944
2022
|
abortEarly: false,
|
|
1945
2023
|
allowUnknown: true,
|
|
1946
2024
|
});
|
|
@@ -1963,7 +2041,7 @@ class Cart {
|
|
|
1963
2041
|
* @param {CartApplicationValidator.UpdateAddressParam} arg - Arg object.
|
|
1964
2042
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1965
2043
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1966
|
-
* @returns {Promise<CartApplicationModel.
|
|
2044
|
+
* @returns {Promise<CartApplicationModel.UpdateAddressResult>} - Success response
|
|
1967
2045
|
* @name updateAddress
|
|
1968
2046
|
* @summary: Updates an existing customer address
|
|
1969
2047
|
* @description: Customer can modify the details of a previously saved addresses. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateAddress/).
|
|
@@ -2018,7 +2096,7 @@ class Cart {
|
|
|
2018
2096
|
|
|
2019
2097
|
const {
|
|
2020
2098
|
error: res_error,
|
|
2021
|
-
} = CartApplicationModel.
|
|
2099
|
+
} = CartApplicationModel.UpdateAddressResult().validate(responseData, {
|
|
2022
2100
|
abortEarly: false,
|
|
2023
2101
|
allowUnknown: true,
|
|
2024
2102
|
});
|
|
@@ -2041,8 +2119,7 @@ class Cart {
|
|
|
2041
2119
|
* @param {CartApplicationValidator.UpdateCartParam} arg - Arg object.
|
|
2042
2120
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2043
2121
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
2044
|
-
* @returns {Promise<CartApplicationModel.
|
|
2045
|
-
* Success response
|
|
2122
|
+
* @returns {Promise<CartApplicationModel.UpdateCartDetailResult>} - Success response
|
|
2046
2123
|
* @name updateCart
|
|
2047
2124
|
* @summary: Update cart items
|
|
2048
2125
|
* @description: Update cart. Customers can modify added product attributes such as quantity and size, as well as remove items from the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCart/).
|
|
@@ -2112,7 +2189,7 @@ class Cart {
|
|
|
2112
2189
|
|
|
2113
2190
|
const {
|
|
2114
2191
|
error: res_error,
|
|
2115
|
-
} = CartApplicationModel.
|
|
2192
|
+
} = CartApplicationModel.UpdateCartDetailResult().validate(responseData, {
|
|
2116
2193
|
abortEarly: false,
|
|
2117
2194
|
allowUnknown: true,
|
|
2118
2195
|
});
|
|
@@ -2135,7 +2212,7 @@ class Cart {
|
|
|
2135
2212
|
* @param {CartApplicationValidator.UpdateCartMetaParam} arg - Arg object.
|
|
2136
2213
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2137
2214
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
2138
|
-
* @returns {Promise<CartApplicationModel.
|
|
2215
|
+
* @returns {Promise<CartApplicationModel.CartMetaResult>} - Success response
|
|
2139
2216
|
* @name updateCartMeta
|
|
2140
2217
|
* @summary: Update cart metadata
|
|
2141
2218
|
* @description: Update metadata associated with a cart, which includes customer preferences, delivery instructions, or any special requirements related to the cart items. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCartMeta/).
|
|
@@ -2192,7 +2269,7 @@ class Cart {
|
|
|
2192
2269
|
|
|
2193
2270
|
const {
|
|
2194
2271
|
error: res_error,
|
|
2195
|
-
} = CartApplicationModel.
|
|
2272
|
+
} = CartApplicationModel.CartMetaResult().validate(responseData, {
|
|
2196
2273
|
abortEarly: false,
|
|
2197
2274
|
allowUnknown: true,
|
|
2198
2275
|
});
|
|
@@ -2215,7 +2292,7 @@ class Cart {
|
|
|
2215
2292
|
* @param {CartApplicationValidator.UpdateCartWithSharedItemsParam} arg - Arg object.
|
|
2216
2293
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2217
2294
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
2218
|
-
* @returns {Promise<CartApplicationModel.
|
|
2295
|
+
* @returns {Promise<CartApplicationModel.SharedCartResult>} - Success response
|
|
2219
2296
|
* @name updateCartWithSharedItems
|
|
2220
2297
|
* @summary: Update with shared items
|
|
2221
2298
|
* @description: Merge or replace shared cart items with existing cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCartWithSharedItems/).
|
|
@@ -2272,7 +2349,7 @@ class Cart {
|
|
|
2272
2349
|
|
|
2273
2350
|
const {
|
|
2274
2351
|
error: res_error,
|
|
2275
|
-
} = CartApplicationModel.
|
|
2352
|
+
} = CartApplicationModel.SharedCartResult().validate(responseData, {
|
|
2276
2353
|
abortEarly: false,
|
|
2277
2354
|
allowUnknown: true,
|
|
2278
2355
|
});
|