@gofynd/fdk-client-javascript 1.4.14 → 1.4.15-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/Cart/CartApplicationClient.d.ts +53 -60
- package/sdk/application/Cart/CartApplicationClient.js +53 -130
- package/sdk/application/Cart/CartApplicationModel.d.ts +143 -489
- package/sdk/application/Cart/CartApplicationModel.js +159 -380
- package/sdk/application/Cart/CartApplicationValidator.d.ts +19 -38
- package/sdk/application/Cart/CartApplicationValidator.js +18 -34
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +68 -88
- package/sdk/application/Catalog/CatalogApplicationClient.js +94 -114
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +142 -194
- package/sdk/application/Catalog/CatalogApplicationModel.js +133 -171
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -3
- package/sdk/application/Common/CommonApplicationClient.js +5 -6
- package/sdk/application/Common/CommonApplicationModel.d.ts +9 -9
- package/sdk/application/Common/CommonApplicationModel.js +6 -6
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +27 -34
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +27 -34
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +57 -45
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +47 -35
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +2 -2
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +2 -2
- package/sdk/application/Content/ContentApplicationClient.d.ts +33 -23
- package/sdk/application/Content/ContentApplicationClient.js +75 -54
- package/sdk/application/Content/ContentApplicationModel.d.ts +37 -93
- package/sdk/application/Content/ContentApplicationModel.js +32 -83
- package/sdk/application/Content/ContentApplicationValidator.d.ts +17 -23
- package/sdk/application/Content/ContentApplicationValidator.js +10 -15
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -9
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +13 -14
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +25 -23
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +18 -16
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +6 -6
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -2
- package/sdk/application/Lead/LeadApplicationClient.js +3 -2
- package/sdk/application/Lead/LeadApplicationModel.d.ts +11 -11
- package/sdk/application/Lead/LeadApplicationModel.js +19 -19
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +16 -39
- package/sdk/application/Logistic/LogisticApplicationClient.js +21 -189
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +173 -532
- package/sdk/application/Logistic/LogisticApplicationModel.js +139 -409
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +9 -54
- package/sdk/application/Logistic/LogisticApplicationValidator.js +8 -42
- package/sdk/application/Order/OrderApplicationClient.d.ts +10 -24
- package/sdk/application/Order/OrderApplicationClient.js +13 -96
- package/sdk/application/Order/OrderApplicationModel.d.ts +120 -436
- package/sdk/application/Order/OrderApplicationModel.js +81 -279
- package/sdk/application/Order/OrderApplicationValidator.d.ts +3 -17
- package/sdk/application/Order/OrderApplicationValidator.js +2 -15
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +99 -96
- package/sdk/application/Payment/PaymentApplicationClient.js +114 -111
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +289 -293
- package/sdk/application/Payment/PaymentApplicationModel.js +241 -243
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +46 -46
- package/sdk/application/Payment/PaymentApplicationValidator.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +16 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +22 -19
- 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 +6 -8
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +17 -48
- package/sdk/application/Theme/ThemeApplicationModel.js +22 -42
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +3 -16
- package/sdk/application/Theme/ThemeApplicationValidator.js +2 -9
- 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 +9 -11
- package/sdk/application/Webhook/WebhookApplicationModel.js +6 -8
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +2 -2
- package/sdk/application/Webhook/WebhookApplicationValidator.js +2 -2
- package/sdk/application/index.d.ts +0 -1
- package/sdk/application/index.js +0 -2
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +19 -116
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +14 -121
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
- 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 +20 -126
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +85 -767
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +76 -429
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +6 -120
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
- package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +37 -96
- package/sdk/partner/Theme/ThemePartnerModel.js +36 -90
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
- package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
- package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +112 -407
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -111
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -106
- package/sdk/platform/Cart/CartPlatformModel.d.ts +1321 -4975
- package/sdk/platform/Cart/CartPlatformModel.js +1226 -1922
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -208
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +358 -383
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +126 -122
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +68 -66
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +118 -141
- package/sdk/platform/Catalog/CatalogPlatformClient.js +170 -193
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1751 -1501
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1224 -1393
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
- package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
- package/sdk/platform/Common/CommonPlatformClient.js +2 -3
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
- package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +124 -283
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +94 -219
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -124
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +422 -449
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -179
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -168
- package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
- package/sdk/platform/Content/ContentPlatformClient.js +336 -523
- package/sdk/platform/Content/ContentPlatformModel.d.ts +395 -1241
- package/sdk/platform/Content/ContentPlatformModel.js +390 -521
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
- package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
- package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
- 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 +36 -94
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +60 -462
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +101 -370
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +84 -313
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- 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 +4 -15
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -83
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +4 -25
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +3 -16
- package/sdk/platform/Order/OrderPlatformClient.d.ts +97 -178
- package/sdk/platform/Order/OrderPlatformClient.js +245 -597
- package/sdk/platform/Order/OrderPlatformModel.d.ts +3071 -5449
- package/sdk/platform/Order/OrderPlatformModel.js +1656 -3501
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +190 -237
- package/sdk/platform/Order/OrderPlatformValidator.js +105 -153
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +106 -94
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +146 -131
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -64
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -62
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +507 -386
- package/sdk/platform/Payment/PaymentPlatformModel.js +376 -323
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +10 -10
- package/sdk/platform/Payment/PaymentPlatformValidator.js +10 -10
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- 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 +35 -45
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +38 -117
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +13 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +12 -24
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +64 -58
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +396 -620
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +326 -501
- 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 +5 -36
- package/sdk/platform/Share/SharePlatformModel.js +4 -27
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +11 -37
- package/sdk/platform/Theme/ThemePlatformModel.js +15 -33
- 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 +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
- package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +5 -6
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
- package/sdk/public/Content/ContentPublicClient.js +5 -791
- package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
- package/sdk/public/Content/ContentPublicModel.js +3 -649
- package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
- package/sdk/public/Content/ContentPublicValidator.js +2 -88
- 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/application/Finance/FinanceApplicationClient.d.ts +0 -36
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -202
- package/sdk/application/Finance/FinanceApplicationModel.d.ts +0 -289
- package/sdk/application/Finance/FinanceApplicationModel.js +0 -208
- package/sdk/application/Finance/FinanceApplicationValidator.d.ts +0 -25
- package/sdk/application/Finance/FinanceApplicationValidator.js +0 -31
|
@@ -18,7 +18,6 @@ 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",
|
|
22
21
|
checkoutCartV2: "/service/application/cart/v2.0/checkout",
|
|
23
22
|
deleteCart: "/service/application/cart/v1.0/cart_archive",
|
|
24
23
|
getAddressById: "/service/application/cart/v1.0/address/{id}",
|
|
@@ -67,7 +66,7 @@ class Cart {
|
|
|
67
66
|
* @param {CartApplicationValidator.AddAddressParam} arg - Arg object.
|
|
68
67
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
69
68
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
70
|
-
* @returns {Promise<CartApplicationModel.
|
|
69
|
+
* @returns {Promise<CartApplicationModel.SaveAddressResponse>} - Success response
|
|
71
70
|
* @name addAddress
|
|
72
71
|
* @summary: Creates a new address for a customer
|
|
73
72
|
* @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/).
|
|
@@ -120,7 +119,7 @@ class Cart {
|
|
|
120
119
|
|
|
121
120
|
const {
|
|
122
121
|
error: res_error,
|
|
123
|
-
} = CartApplicationModel.
|
|
122
|
+
} = CartApplicationModel.SaveAddressResponse().validate(responseData, {
|
|
124
123
|
abortEarly: false,
|
|
125
124
|
allowUnknown: true,
|
|
126
125
|
});
|
|
@@ -143,7 +142,7 @@ class Cart {
|
|
|
143
142
|
* @param {CartApplicationValidator.AddItemsParam} arg - Arg object.
|
|
144
143
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
145
144
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
146
|
-
* @returns {Promise<CartApplicationModel.
|
|
145
|
+
* @returns {Promise<CartApplicationModel.AddCartDetailResponse>} - Success response
|
|
147
146
|
* @name addItems
|
|
148
147
|
* @summary: Add items to a cart
|
|
149
148
|
* @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/).
|
|
@@ -204,7 +203,7 @@ class Cart {
|
|
|
204
203
|
|
|
205
204
|
const {
|
|
206
205
|
error: res_error,
|
|
207
|
-
} = CartApplicationModel.
|
|
206
|
+
} = CartApplicationModel.AddCartDetailResponse().validate(responseData, {
|
|
208
207
|
abortEarly: false,
|
|
209
208
|
allowUnknown: true,
|
|
210
209
|
});
|
|
@@ -227,7 +226,7 @@ class Cart {
|
|
|
227
226
|
* @param {CartApplicationValidator.ApplyCouponParam} arg - Arg object.
|
|
228
227
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
229
228
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
230
|
-
* @returns {Promise<CartApplicationModel.
|
|
229
|
+
* @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
|
|
231
230
|
* @name applyCoupon
|
|
232
231
|
* @summary: Apply coupon
|
|
233
232
|
* @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/).
|
|
@@ -288,7 +287,7 @@ class Cart {
|
|
|
288
287
|
|
|
289
288
|
const {
|
|
290
289
|
error: res_error,
|
|
291
|
-
} = CartApplicationModel.
|
|
290
|
+
} = CartApplicationModel.CartDetailResponse().validate(responseData, {
|
|
292
291
|
abortEarly: false,
|
|
293
292
|
allowUnknown: true,
|
|
294
293
|
});
|
|
@@ -311,7 +310,7 @@ class Cart {
|
|
|
311
310
|
* @param {CartApplicationValidator.ApplyRewardPointsParam} arg - Arg object.
|
|
312
311
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
313
312
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
314
|
-
* @returns {Promise<CartApplicationModel.
|
|
313
|
+
* @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
|
|
315
314
|
* @name applyRewardPoints
|
|
316
315
|
* @summary: Use reward points
|
|
317
316
|
* @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/).
|
|
@@ -370,7 +369,7 @@ class Cart {
|
|
|
370
369
|
|
|
371
370
|
const {
|
|
372
371
|
error: res_error,
|
|
373
|
-
} = CartApplicationModel.
|
|
372
|
+
} = CartApplicationModel.CartDetailResponse().validate(responseData, {
|
|
374
373
|
abortEarly: false,
|
|
375
374
|
allowUnknown: true,
|
|
376
375
|
});
|
|
@@ -389,91 +388,11 @@ class Cart {
|
|
|
389
388
|
return response;
|
|
390
389
|
}
|
|
391
390
|
|
|
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
|
-
|
|
472
391
|
/**
|
|
473
392
|
* @param {CartApplicationValidator.CheckoutCartV2Param} arg - Arg object.
|
|
474
393
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
475
394
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
476
|
-
* @returns {Promise<CartApplicationModel.
|
|
395
|
+
* @returns {Promise<CartApplicationModel.CartCheckoutResponse>} - Success response
|
|
477
396
|
* @name checkoutCartV2
|
|
478
397
|
* @summary: Checkout cart
|
|
479
398
|
* @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/).
|
|
@@ -530,7 +449,7 @@ class Cart {
|
|
|
530
449
|
|
|
531
450
|
const {
|
|
532
451
|
error: res_error,
|
|
533
|
-
} = CartApplicationModel.
|
|
452
|
+
} = CartApplicationModel.CartCheckoutResponse().validate(responseData, {
|
|
534
453
|
abortEarly: false,
|
|
535
454
|
allowUnknown: true,
|
|
536
455
|
});
|
|
@@ -553,7 +472,8 @@ class Cart {
|
|
|
553
472
|
* @param {CartApplicationValidator.DeleteCartParam} arg - Arg object.
|
|
554
473
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
555
474
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
556
|
-
* @returns {Promise<CartApplicationModel.
|
|
475
|
+
* @returns {Promise<CartApplicationModel.DeleteCartDetailResponse>} -
|
|
476
|
+
* Success response
|
|
557
477
|
* @name deleteCart
|
|
558
478
|
* @summary: Delete a cart
|
|
559
479
|
* @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/).
|
|
@@ -607,7 +527,7 @@ class Cart {
|
|
|
607
527
|
|
|
608
528
|
const {
|
|
609
529
|
error: res_error,
|
|
610
|
-
} = CartApplicationModel.
|
|
530
|
+
} = CartApplicationModel.DeleteCartDetailResponse().validate(responseData, {
|
|
611
531
|
abortEarly: false,
|
|
612
532
|
allowUnknown: true,
|
|
613
533
|
});
|
|
@@ -723,7 +643,7 @@ class Cart {
|
|
|
723
643
|
* @param {CartApplicationValidator.GetAddressesParam} arg - Arg object.
|
|
724
644
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
725
645
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
726
|
-
* @returns {Promise<CartApplicationModel.
|
|
646
|
+
* @returns {Promise<CartApplicationModel.GetAddressesResponse>} - Success response
|
|
727
647
|
* @name getAddresses
|
|
728
648
|
* @summary: Get a list of addresses for a customer
|
|
729
649
|
* @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/).
|
|
@@ -792,7 +712,7 @@ class Cart {
|
|
|
792
712
|
|
|
793
713
|
const {
|
|
794
714
|
error: res_error,
|
|
795
|
-
} = CartApplicationModel.
|
|
715
|
+
} = CartApplicationModel.GetAddressesResponse().validate(responseData, {
|
|
796
716
|
abortEarly: false,
|
|
797
717
|
allowUnknown: true,
|
|
798
718
|
});
|
|
@@ -815,7 +735,7 @@ class Cart {
|
|
|
815
735
|
* @param {CartApplicationValidator.GetBulkDiscountOffersParam} arg - Arg object.
|
|
816
736
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
817
737
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
818
|
-
* @returns {Promise<CartApplicationModel.
|
|
738
|
+
* @returns {Promise<CartApplicationModel.BulkPriceResponse>} - Success response
|
|
819
739
|
* @name getBulkDiscountOffers
|
|
820
740
|
* @summary: List bulk discounts
|
|
821
741
|
* @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/).
|
|
@@ -874,7 +794,7 @@ class Cart {
|
|
|
874
794
|
|
|
875
795
|
const {
|
|
876
796
|
error: res_error,
|
|
877
|
-
} = CartApplicationModel.
|
|
797
|
+
} = CartApplicationModel.BulkPriceResponse().validate(responseData, {
|
|
878
798
|
abortEarly: false,
|
|
879
799
|
allowUnknown: true,
|
|
880
800
|
});
|
|
@@ -897,7 +817,7 @@ class Cart {
|
|
|
897
817
|
* @param {CartApplicationValidator.GetCartParam} arg - Arg object.
|
|
898
818
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
899
819
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
900
|
-
* @returns {Promise<CartApplicationModel.
|
|
820
|
+
* @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
|
|
901
821
|
* @name getCart
|
|
902
822
|
* @summary: Get a cart
|
|
903
823
|
* @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/).
|
|
@@ -968,7 +888,7 @@ class Cart {
|
|
|
968
888
|
|
|
969
889
|
const {
|
|
970
890
|
error: res_error,
|
|
971
|
-
} = CartApplicationModel.
|
|
891
|
+
} = CartApplicationModel.CartDetailResponse().validate(responseData, {
|
|
972
892
|
abortEarly: false,
|
|
973
893
|
allowUnknown: true,
|
|
974
894
|
});
|
|
@@ -1067,7 +987,8 @@ class Cart {
|
|
|
1067
987
|
* @param {CartApplicationValidator.GetCartShareLinkParam} arg - Arg object.
|
|
1068
988
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1069
989
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1070
|
-
* @returns {Promise<CartApplicationModel.
|
|
990
|
+
* @returns {Promise<CartApplicationModel.GetShareCartLinkResponse>} -
|
|
991
|
+
* Success response
|
|
1071
992
|
* @name getCartShareLink
|
|
1072
993
|
* @summary: Create share cart link
|
|
1073
994
|
* @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/).
|
|
@@ -1122,7 +1043,7 @@ class Cart {
|
|
|
1122
1043
|
|
|
1123
1044
|
const {
|
|
1124
1045
|
error: res_error,
|
|
1125
|
-
} = CartApplicationModel.
|
|
1046
|
+
} = CartApplicationModel.GetShareCartLinkResponse().validate(responseData, {
|
|
1126
1047
|
abortEarly: false,
|
|
1127
1048
|
allowUnknown: true,
|
|
1128
1049
|
});
|
|
@@ -1145,7 +1066,7 @@ class Cart {
|
|
|
1145
1066
|
* @param {CartApplicationValidator.GetCartSharedItemsParam} arg - Arg object.
|
|
1146
1067
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1147
1068
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1148
|
-
* @returns {Promise<CartApplicationModel.
|
|
1069
|
+
* @returns {Promise<CartApplicationModel.SharedCartResponse>} - Success response
|
|
1149
1070
|
* @name getCartSharedItems
|
|
1150
1071
|
* @summary: List shared cart items
|
|
1151
1072
|
* @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/).
|
|
@@ -1200,7 +1121,7 @@ class Cart {
|
|
|
1200
1121
|
|
|
1201
1122
|
const {
|
|
1202
1123
|
error: res_error,
|
|
1203
|
-
} = CartApplicationModel.
|
|
1124
|
+
} = CartApplicationModel.SharedCartResponse().validate(responseData, {
|
|
1204
1125
|
abortEarly: false,
|
|
1205
1126
|
allowUnknown: true,
|
|
1206
1127
|
});
|
|
@@ -1223,7 +1144,7 @@ class Cart {
|
|
|
1223
1144
|
* @param {CartApplicationValidator.GetCouponsParam} arg - Arg object.
|
|
1224
1145
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1225
1146
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1226
|
-
* @returns {Promise<CartApplicationModel.
|
|
1147
|
+
* @returns {Promise<CartApplicationModel.GetCouponResponse>} - Success response
|
|
1227
1148
|
* @name getCoupons
|
|
1228
1149
|
* @summary: List available coupons
|
|
1229
1150
|
* @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/).
|
|
@@ -1280,7 +1201,7 @@ class Cart {
|
|
|
1280
1201
|
|
|
1281
1202
|
const {
|
|
1282
1203
|
error: res_error,
|
|
1283
|
-
} = CartApplicationModel.
|
|
1204
|
+
} = CartApplicationModel.GetCouponResponse().validate(responseData, {
|
|
1284
1205
|
abortEarly: false,
|
|
1285
1206
|
allowUnknown: true,
|
|
1286
1207
|
});
|
|
@@ -1303,7 +1224,7 @@ class Cart {
|
|
|
1303
1224
|
* @param {CartApplicationValidator.GetItemCountParam} arg - Arg object.
|
|
1304
1225
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1305
1226
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1306
|
-
* @returns {Promise<CartApplicationModel.
|
|
1227
|
+
* @returns {Promise<CartApplicationModel.CartItemCountResponse>} - Success response
|
|
1307
1228
|
* @name getItemCount
|
|
1308
1229
|
* @summary: Get a cart items count
|
|
1309
1230
|
* @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/).
|
|
@@ -1360,7 +1281,7 @@ class Cart {
|
|
|
1360
1281
|
|
|
1361
1282
|
const {
|
|
1362
1283
|
error: res_error,
|
|
1363
|
-
} = CartApplicationModel.
|
|
1284
|
+
} = CartApplicationModel.CartItemCountResponse().validate(responseData, {
|
|
1364
1285
|
abortEarly: false,
|
|
1365
1286
|
allowUnknown: true,
|
|
1366
1287
|
});
|
|
@@ -1467,7 +1388,7 @@ class Cart {
|
|
|
1467
1388
|
* @param {CartApplicationValidator.GetPromotionOffersParam} arg - Arg object.
|
|
1468
1389
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1469
1390
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1470
|
-
* @returns {Promise<CartApplicationModel.
|
|
1391
|
+
* @returns {Promise<CartApplicationModel.PromotionOffersResponse>} - Success response
|
|
1471
1392
|
* @name getPromotionOffers
|
|
1472
1393
|
* @summary: List available promotion offers
|
|
1473
1394
|
* @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/).
|
|
@@ -1529,7 +1450,7 @@ class Cart {
|
|
|
1529
1450
|
|
|
1530
1451
|
const {
|
|
1531
1452
|
error: res_error,
|
|
1532
|
-
} = CartApplicationModel.
|
|
1453
|
+
} = CartApplicationModel.PromotionOffersResponse().validate(responseData, {
|
|
1533
1454
|
abortEarly: false,
|
|
1534
1455
|
allowUnknown: true,
|
|
1535
1456
|
});
|
|
@@ -1552,8 +1473,9 @@ class Cart {
|
|
|
1552
1473
|
* @param {CartApplicationValidator.GetPromotionPaymentOffersParam} arg - Arg object.
|
|
1553
1474
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1554
1475
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1555
|
-
* @returns {Promise<CartApplicationModel.
|
|
1556
|
-
* Success response
|
|
1476
|
+
* @returns {Promise<CartApplicationModel.PromotionPaymentOffersResponse>}
|
|
1477
|
+
* - Success response
|
|
1478
|
+
*
|
|
1557
1479
|
* @name getPromotionPaymentOffers
|
|
1558
1480
|
* @summary: Fetch available promotions payment offers
|
|
1559
1481
|
* @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/).
|
|
@@ -1612,7 +1534,7 @@ class Cart {
|
|
|
1612
1534
|
|
|
1613
1535
|
const {
|
|
1614
1536
|
error: res_error,
|
|
1615
|
-
} = CartApplicationModel.
|
|
1537
|
+
} = CartApplicationModel.PromotionPaymentOffersResponse().validate(
|
|
1616
1538
|
responseData,
|
|
1617
1539
|
{ abortEarly: false, allowUnknown: true }
|
|
1618
1540
|
);
|
|
@@ -1635,7 +1557,7 @@ class Cart {
|
|
|
1635
1557
|
* @param {CartApplicationValidator.GetShipmentsParam} arg - Arg object.
|
|
1636
1558
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1637
1559
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1638
|
-
* @returns {Promise<CartApplicationModel.
|
|
1560
|
+
* @returns {Promise<CartApplicationModel.CartShipmentsResponse>} - Success response
|
|
1639
1561
|
* @name getShipments
|
|
1640
1562
|
* @summary: List shipments
|
|
1641
1563
|
* @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/).
|
|
@@ -1698,7 +1620,7 @@ class Cart {
|
|
|
1698
1620
|
|
|
1699
1621
|
const {
|
|
1700
1622
|
error: res_error,
|
|
1701
|
-
} = CartApplicationModel.
|
|
1623
|
+
} = CartApplicationModel.CartShipmentsResponse().validate(responseData, {
|
|
1702
1624
|
abortEarly: false,
|
|
1703
1625
|
allowUnknown: true,
|
|
1704
1626
|
});
|
|
@@ -1721,7 +1643,7 @@ class Cart {
|
|
|
1721
1643
|
* @param {CartApplicationValidator.RemoveAddressParam} arg - Arg object.
|
|
1722
1644
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1723
1645
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1724
|
-
* @returns {Promise<CartApplicationModel.
|
|
1646
|
+
* @returns {Promise<CartApplicationModel.DeleteAddressResponse>} - Success response
|
|
1725
1647
|
* @name removeAddress
|
|
1726
1648
|
* @summary: Removes an address from a customer's address list
|
|
1727
1649
|
* @description: Delete an existing customer address from the system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/removeAddress/).
|
|
@@ -1776,7 +1698,7 @@ class Cart {
|
|
|
1776
1698
|
|
|
1777
1699
|
const {
|
|
1778
1700
|
error: res_error,
|
|
1779
|
-
} = CartApplicationModel.
|
|
1701
|
+
} = CartApplicationModel.DeleteAddressResponse().validate(responseData, {
|
|
1780
1702
|
abortEarly: false,
|
|
1781
1703
|
allowUnknown: true,
|
|
1782
1704
|
});
|
|
@@ -1799,7 +1721,7 @@ class Cart {
|
|
|
1799
1721
|
* @param {CartApplicationValidator.RemoveCouponParam} arg - Arg object.
|
|
1800
1722
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1801
1723
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1802
|
-
* @returns {Promise<CartApplicationModel.
|
|
1724
|
+
* @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
|
|
1803
1725
|
* @name removeCoupon
|
|
1804
1726
|
* @summary: Remove coupon
|
|
1805
1727
|
* @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/).
|
|
@@ -1856,7 +1778,7 @@ class Cart {
|
|
|
1856
1778
|
|
|
1857
1779
|
const {
|
|
1858
1780
|
error: res_error,
|
|
1859
|
-
} = CartApplicationModel.
|
|
1781
|
+
} = CartApplicationModel.CartDetailResponse().validate(responseData, {
|
|
1860
1782
|
abortEarly: false,
|
|
1861
1783
|
allowUnknown: true,
|
|
1862
1784
|
});
|
|
@@ -1879,7 +1801,7 @@ class Cart {
|
|
|
1879
1801
|
* @param {CartApplicationValidator.SelectAddressParam} arg - Arg object.
|
|
1880
1802
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1881
1803
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1882
|
-
* @returns {Promise<CartApplicationModel.
|
|
1804
|
+
* @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
|
|
1883
1805
|
* @name selectAddress
|
|
1884
1806
|
* @summary: Select customer address for order processing
|
|
1885
1807
|
* @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/).
|
|
@@ -1938,7 +1860,7 @@ class Cart {
|
|
|
1938
1860
|
|
|
1939
1861
|
const {
|
|
1940
1862
|
error: res_error,
|
|
1941
|
-
} = CartApplicationModel.
|
|
1863
|
+
} = CartApplicationModel.CartDetailResponse().validate(responseData, {
|
|
1942
1864
|
abortEarly: false,
|
|
1943
1865
|
allowUnknown: true,
|
|
1944
1866
|
});
|
|
@@ -1961,7 +1883,7 @@ class Cart {
|
|
|
1961
1883
|
* @param {CartApplicationValidator.SelectPaymentModeParam} arg - Arg object.
|
|
1962
1884
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1963
1885
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1964
|
-
* @returns {Promise<CartApplicationModel.
|
|
1886
|
+
* @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
|
|
1965
1887
|
* @name selectPaymentMode
|
|
1966
1888
|
* @summary: Select payment mode
|
|
1967
1889
|
* @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/).
|
|
@@ -2018,7 +1940,7 @@ class Cart {
|
|
|
2018
1940
|
|
|
2019
1941
|
const {
|
|
2020
1942
|
error: res_error,
|
|
2021
|
-
} = CartApplicationModel.
|
|
1943
|
+
} = CartApplicationModel.CartDetailResponse().validate(responseData, {
|
|
2022
1944
|
abortEarly: false,
|
|
2023
1945
|
allowUnknown: true,
|
|
2024
1946
|
});
|
|
@@ -2041,7 +1963,7 @@ class Cart {
|
|
|
2041
1963
|
* @param {CartApplicationValidator.UpdateAddressParam} arg - Arg object.
|
|
2042
1964
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2043
1965
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
2044
|
-
* @returns {Promise<CartApplicationModel.
|
|
1966
|
+
* @returns {Promise<CartApplicationModel.UpdateAddressResponse>} - Success response
|
|
2045
1967
|
* @name updateAddress
|
|
2046
1968
|
* @summary: Updates an existing customer address
|
|
2047
1969
|
* @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/).
|
|
@@ -2096,7 +2018,7 @@ class Cart {
|
|
|
2096
2018
|
|
|
2097
2019
|
const {
|
|
2098
2020
|
error: res_error,
|
|
2099
|
-
} = CartApplicationModel.
|
|
2021
|
+
} = CartApplicationModel.UpdateAddressResponse().validate(responseData, {
|
|
2100
2022
|
abortEarly: false,
|
|
2101
2023
|
allowUnknown: true,
|
|
2102
2024
|
});
|
|
@@ -2119,7 +2041,8 @@ class Cart {
|
|
|
2119
2041
|
* @param {CartApplicationValidator.UpdateCartParam} arg - Arg object.
|
|
2120
2042
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2121
2043
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
2122
|
-
* @returns {Promise<CartApplicationModel.
|
|
2044
|
+
* @returns {Promise<CartApplicationModel.UpdateCartDetailResponse>} -
|
|
2045
|
+
* Success response
|
|
2123
2046
|
* @name updateCart
|
|
2124
2047
|
* @summary: Update cart items
|
|
2125
2048
|
* @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/).
|
|
@@ -2189,7 +2112,7 @@ class Cart {
|
|
|
2189
2112
|
|
|
2190
2113
|
const {
|
|
2191
2114
|
error: res_error,
|
|
2192
|
-
} = CartApplicationModel.
|
|
2115
|
+
} = CartApplicationModel.UpdateCartDetailResponse().validate(responseData, {
|
|
2193
2116
|
abortEarly: false,
|
|
2194
2117
|
allowUnknown: true,
|
|
2195
2118
|
});
|
|
@@ -2212,7 +2135,7 @@ class Cart {
|
|
|
2212
2135
|
* @param {CartApplicationValidator.UpdateCartMetaParam} arg - Arg object.
|
|
2213
2136
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2214
2137
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
2215
|
-
* @returns {Promise<CartApplicationModel.
|
|
2138
|
+
* @returns {Promise<CartApplicationModel.CartMetaResponse>} - Success response
|
|
2216
2139
|
* @name updateCartMeta
|
|
2217
2140
|
* @summary: Update cart metadata
|
|
2218
2141
|
* @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/).
|
|
@@ -2269,7 +2192,7 @@ class Cart {
|
|
|
2269
2192
|
|
|
2270
2193
|
const {
|
|
2271
2194
|
error: res_error,
|
|
2272
|
-
} = CartApplicationModel.
|
|
2195
|
+
} = CartApplicationModel.CartMetaResponse().validate(responseData, {
|
|
2273
2196
|
abortEarly: false,
|
|
2274
2197
|
allowUnknown: true,
|
|
2275
2198
|
});
|
|
@@ -2292,7 +2215,7 @@ class Cart {
|
|
|
2292
2215
|
* @param {CartApplicationValidator.UpdateCartWithSharedItemsParam} arg - Arg object.
|
|
2293
2216
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2294
2217
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
2295
|
-
* @returns {Promise<CartApplicationModel.
|
|
2218
|
+
* @returns {Promise<CartApplicationModel.SharedCartResponse>} - Success response
|
|
2296
2219
|
* @name updateCartWithSharedItems
|
|
2297
2220
|
* @summary: Update with shared items
|
|
2298
2221
|
* @description: Merge or replace shared cart items with existing cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCartWithSharedItems/).
|
|
@@ -2349,7 +2272,7 @@ class Cart {
|
|
|
2349
2272
|
|
|
2350
2273
|
const {
|
|
2351
2274
|
error: res_error,
|
|
2352
|
-
} = CartApplicationModel.
|
|
2275
|
+
} = CartApplicationModel.SharedCartResponse().validate(responseData, {
|
|
2353
2276
|
abortEarly: false,
|
|
2354
2277
|
allowUnknown: true,
|
|
2355
2278
|
});
|