@gofynd/fdk-client-javascript 1.4.15-beta.2 → 1.4.15
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 +2 -2
- package/application.d.ts +1 -2
- package/application.js +2 -3
- package/index.d.ts +1 -2
- package/index.js +7 -1
- package/package.json +2 -3
- package/sdk/application/ApplicationClient.d.ts +2 -0
- package/sdk/application/ApplicationClient.js +2 -18
- package/sdk/application/Cart/CartApplicationClient.d.ts +75 -90
- package/sdk/application/Cart/CartApplicationClient.js +108 -1199
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +81 -142
- package/sdk/application/Catalog/CatalogApplicationClient.js +41 -1344
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -8
- package/sdk/application/Common/CommonApplicationClient.js +2 -92
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
- package/sdk/application/Communication/CommunicationApplicationClient.js +3 -148
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -73
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +16 -727
- package/sdk/application/Content/ContentApplicationClient.d.ts +48 -111
- package/sdk/application/Content/ContentApplicationClient.js +43 -1065
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -13
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +8 -138
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +105 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -18
- package/sdk/application/Lead/LeadApplicationClient.js +5 -217
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +42 -39
- package/sdk/application/Logistic/LogisticApplicationClient.js +91 -493
- package/sdk/application/Order/OrderApplicationClient.d.ts +36 -46
- package/sdk/application/Order/OrderApplicationClient.js +52 -507
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +103 -213
- package/sdk/application/Payment/PaymentApplicationClient.js +84 -2105
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +15 -29
- package/sdk/application/Rewards/RewardsApplicationClient.js +8 -312
- package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
- package/sdk/application/Share/ShareApplicationClient.js +7 -309
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
- package/sdk/application/Theme/ThemeApplicationClient.js +8 -176
- package/sdk/application/User/UserApplicationClient.d.ts +87 -138
- package/sdk/application/User/UserApplicationClient.js +44 -1820
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -7
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -52
- package/sdk/application/index.d.ts +0 -18
- package/sdk/application/index.js +0 -33
- 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 +157 -30
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +1177 -56
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1662 -249
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +774 -162
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +13 -1
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +141 -12
- 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 +5060 -1300
- package/sdk/platform/Cart/CartPlatformModel.js +1985 -1217
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +209 -183
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +452 -395
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +185 -142
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +96 -78
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +178 -117
- package/sdk/platform/Catalog/CatalogPlatformClient.js +468 -172
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6554 -1772
- package/sdk/platform/Catalog/CatalogPlatformModel.js +3264 -1690
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +116 -31
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +85 -24
- 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 +122 -191
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +447 -831
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +174 -220
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +164 -199
- package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
- package/sdk/platform/Content/ContentPlatformClient.js +523 -336
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1233 -476
- package/sdk/platform/Content/ContentPlatformModel.js +514 -487
- 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 +17 -6
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +85 -7
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +95 -24
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +39 -19
- package/sdk/platform/Order/OrderPlatformClient.d.ts +153 -96
- package/sdk/platform/Order/OrderPlatformClient.js +424 -198
- package/sdk/platform/Order/OrderPlatformModel.d.ts +7747 -1342
- package/sdk/platform/Order/OrderPlatformModel.js +3960 -1262
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +292 -109
- package/sdk/platform/Order/OrderPlatformValidator.js +145 -77
- 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 +333 -319
- package/sdk/platform/Payment/PaymentPlatformModel.js +288 -278
- 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 +46 -36
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +132 -41
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +46 -17
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +34 -14
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +132 -44
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +681 -64
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +2458 -650
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1266 -572
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +176 -47
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -28
- 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 +10 -7
- 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 +795 -7
- 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/Partner/PartnerPublicClient.js +4 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +12 -10
- 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/Cart/CartApplicationModel.d.ts +0 -3994
- package/sdk/application/Cart/CartApplicationModel.js +0 -2497
- package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -769
- package/sdk/application/Cart/CartApplicationValidator.js +0 -530
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3857
- package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2629
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -791
- package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -551
- package/sdk/application/Common/CommonApplicationModel.d.ts +0 -449
- package/sdk/application/Common/CommonApplicationModel.js +0 -308
- package/sdk/application/Common/CommonApplicationValidator.d.ts +0 -46
- package/sdk/application/Common/CommonApplicationValidator.js +0 -38
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +0 -293
- package/sdk/application/Communication/CommunicationApplicationModel.js +0 -201
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +0 -29
- package/sdk/application/Communication/CommunicationApplicationValidator.js +0 -38
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +0 -2556
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1887
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +0 -179
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +0 -176
- package/sdk/application/Content/ContentApplicationModel.d.ts +0 -2133
- package/sdk/application/Content/ContentApplicationModel.js +0 -1589
- package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -284
- package/sdk/application/Content/ContentApplicationValidator.js +0 -264
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -272
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -190
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
- package/sdk/application/Lead/LeadApplicationModel.d.ts +0 -590
- package/sdk/application/Lead/LeadApplicationModel.js +0 -480
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +0 -68
- package/sdk/application/Lead/LeadApplicationValidator.js +0 -71
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +0 -1675
- package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1121
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -254
- package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -190
- package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2296
- package/sdk/application/Order/OrderApplicationModel.js +0 -1471
- package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -265
- package/sdk/application/Order/OrderApplicationValidator.js +0 -197
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4058
- package/sdk/application/Payment/PaymentApplicationModel.js +0 -2630
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +0 -576
- package/sdk/application/Payment/PaymentApplicationValidator.js +0 -594
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +0 -365
- package/sdk/application/Rewards/RewardsApplicationModel.js +0 -396
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +0 -73
- package/sdk/application/Rewards/RewardsApplicationValidator.js +0 -84
- package/sdk/application/Share/ShareApplicationModel.d.ts +0 -339
- package/sdk/application/Share/ShareApplicationModel.js +0 -234
- package/sdk/application/Share/ShareApplicationValidator.d.ts +0 -90
- package/sdk/application/Share/ShareApplicationValidator.js +0 -91
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +0 -1713
- package/sdk/application/Theme/ThemeApplicationModel.js +0 -1426
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -66
- package/sdk/application/Theme/ThemeApplicationValidator.js +0 -58
- package/sdk/application/User/UserApplicationModel.d.ts +0 -1943
- package/sdk/application/User/UserApplicationModel.js +0 -1382
- package/sdk/application/User/UserApplicationValidator.d.ts +0 -560
- package/sdk/application/User/UserApplicationValidator.js +0 -573
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +0 -52
- package/sdk/application/Webhook/WebhookApplicationModel.js +0 -46
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +0 -16
- package/sdk/application/Webhook/WebhookApplicationValidator.js +0 -19
- package/sdk/common/Clickstream.d.ts +0 -1
- package/sdk/common/Clickstream.js +0 -464
- 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
|
@@ -19,7 +19,7 @@ class Cart {
|
|
|
19
19
|
* @param {CartPlatformApplicationValidator.AddAddressParam} arg - Arg object
|
|
20
20
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
21
21
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
22
|
-
* @returns {Promise<CartPlatformModel.
|
|
22
|
+
* @returns {Promise<CartPlatformModel.SaveAddressDetails>} - Success response
|
|
23
23
|
* @name addAddress
|
|
24
24
|
* @summary: Creates a new address for a customer
|
|
25
25
|
* @description: Customers can 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/platform/cart/addAddress/).
|
|
@@ -73,7 +73,7 @@ class Cart {
|
|
|
73
73
|
|
|
74
74
|
const {
|
|
75
75
|
error: res_error,
|
|
76
|
-
} = CartPlatformModel.
|
|
76
|
+
} = CartPlatformModel.SaveAddressDetails().validate(responseData, {
|
|
77
77
|
abortEarly: false,
|
|
78
78
|
allowUnknown: true,
|
|
79
79
|
});
|
|
@@ -96,7 +96,7 @@ class Cart {
|
|
|
96
96
|
* @param {CartPlatformApplicationValidator.AddItemsParam} arg - Arg object
|
|
97
97
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
98
98
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
99
|
-
* @returns {Promise<CartPlatformModel.
|
|
99
|
+
* @returns {Promise<CartPlatformModel.AddCartDetailResult>} - Success response
|
|
100
100
|
* @name addItems
|
|
101
101
|
* @summary: Add items to cart
|
|
102
102
|
* @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/platform/cart/addItems/).
|
|
@@ -155,7 +155,7 @@ class Cart {
|
|
|
155
155
|
|
|
156
156
|
const {
|
|
157
157
|
error: res_error,
|
|
158
|
-
} = CartPlatformModel.
|
|
158
|
+
} = CartPlatformModel.AddCartDetailResult().validate(responseData, {
|
|
159
159
|
abortEarly: false,
|
|
160
160
|
allowUnknown: true,
|
|
161
161
|
});
|
|
@@ -178,7 +178,7 @@ class Cart {
|
|
|
178
178
|
* @param {CartPlatformApplicationValidator.AddPriceAdjustmentParam} arg - Arg object
|
|
179
179
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
180
180
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
181
|
-
* @returns {Promise<CartPlatformModel.
|
|
181
|
+
* @returns {Promise<CartPlatformModel.GetPriceAdjustmentResult>} - Success response
|
|
182
182
|
* @name addPriceAdjustment
|
|
183
183
|
* @summary: Create price adjustments
|
|
184
184
|
* @description: Create custom price adjustments for items in the cart, facilitating the application of discounts or promotions. Price adjustments can be tailored based on specific sales channel contexts, enhancing flexibility in pricing strategies. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/addPriceAdjustment/).
|
|
@@ -234,7 +234,7 @@ class Cart {
|
|
|
234
234
|
|
|
235
235
|
const {
|
|
236
236
|
error: res_error,
|
|
237
|
-
} = CartPlatformModel.
|
|
237
|
+
} = CartPlatformModel.GetPriceAdjustmentResult().validate(responseData, {
|
|
238
238
|
abortEarly: false,
|
|
239
239
|
allowUnknown: true,
|
|
240
240
|
});
|
|
@@ -257,7 +257,7 @@ class Cart {
|
|
|
257
257
|
* @param {CartPlatformApplicationValidator.ApplyCouponParam} arg - Arg object
|
|
258
258
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
259
259
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
260
|
-
* @returns {Promise<CartPlatformModel.
|
|
260
|
+
* @returns {Promise<CartPlatformModel.CartDetailResult>} - Success response
|
|
261
261
|
* @name applyCoupon
|
|
262
262
|
* @summary: Apply coupon
|
|
263
263
|
* @description: Apply a coupon code to the customer's cart to trigger discounts on eligible items - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/applyCoupon/).
|
|
@@ -326,7 +326,7 @@ class Cart {
|
|
|
326
326
|
|
|
327
327
|
const {
|
|
328
328
|
error: res_error,
|
|
329
|
-
} = CartPlatformModel.
|
|
329
|
+
} = CartPlatformModel.CartDetailResult().validate(responseData, {
|
|
330
330
|
abortEarly: false,
|
|
331
331
|
allowUnknown: true,
|
|
332
332
|
});
|
|
@@ -351,9 +351,8 @@ class Cart {
|
|
|
351
351
|
*
|
|
352
352
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
353
353
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
354
|
-
* @returns {Promise<CartPlatformModel.
|
|
355
|
-
*
|
|
356
|
-
*
|
|
354
|
+
* @returns {Promise<CartPlatformModel.OpenApiCartServiceabilityResult>} -
|
|
355
|
+
* Success response
|
|
357
356
|
* @name checkCartServiceability
|
|
358
357
|
* @summary: Check cart serviceability
|
|
359
358
|
* @description: Verify the serviceability of items in the cart at a specific pin code and ensure accurate delivery promises. System checks each item's availability and delivery feasibility, providing real-time information on serviceability and estimated delivery times. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/checkCartServiceability/).
|
|
@@ -409,7 +408,7 @@ class Cart {
|
|
|
409
408
|
|
|
410
409
|
const {
|
|
411
410
|
error: res_error,
|
|
412
|
-
} = CartPlatformModel.
|
|
411
|
+
} = CartPlatformModel.OpenApiCartServiceabilityResult().validate(
|
|
413
412
|
responseData,
|
|
414
413
|
{ abortEarly: false, allowUnknown: true }
|
|
415
414
|
);
|
|
@@ -432,7 +431,7 @@ class Cart {
|
|
|
432
431
|
* @param {CartPlatformApplicationValidator.CheckoutCartParam} arg - Arg object
|
|
433
432
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
434
433
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
435
|
-
* @returns {Promise<CartPlatformModel.
|
|
434
|
+
* @returns {Promise<CartPlatformModel.OpenApiCheckoutResult>} - Success response
|
|
436
435
|
* @name checkoutCart
|
|
437
436
|
* @summary: Checkout cart
|
|
438
437
|
* @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/platform/cart/checkoutCart/).
|
|
@@ -486,7 +485,7 @@ class Cart {
|
|
|
486
485
|
|
|
487
486
|
const {
|
|
488
487
|
error: res_error,
|
|
489
|
-
} = CartPlatformModel.
|
|
488
|
+
} = CartPlatformModel.OpenApiCheckoutResult().validate(responseData, {
|
|
490
489
|
abortEarly: false,
|
|
491
490
|
allowUnknown: true,
|
|
492
491
|
});
|
|
@@ -590,7 +589,7 @@ class Cart {
|
|
|
590
589
|
* @param {CartPlatformApplicationValidator.CreateCouponParam} arg - Arg object
|
|
591
590
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
592
591
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
593
|
-
* @returns {Promise<CartPlatformModel.
|
|
592
|
+
* @returns {Promise<CartPlatformModel.CouponCreateResult>} - Success response
|
|
594
593
|
* @name createCoupon
|
|
595
594
|
* @summary: Create a coupon
|
|
596
595
|
* @description: Creates a new coupon based on the selected coupon type. Sellers can choose from multiple supported coupon types, including percentage value, fixed amount value, bundled discount, buy X get Y items, and more, along with customizable coupon criteria to meet specific business requirements. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/createCoupon/).
|
|
@@ -644,7 +643,7 @@ class Cart {
|
|
|
644
643
|
|
|
645
644
|
const {
|
|
646
645
|
error: res_error,
|
|
647
|
-
} = CartPlatformModel.
|
|
646
|
+
} = CartPlatformModel.CouponCreateResult().validate(responseData, {
|
|
648
647
|
abortEarly: false,
|
|
649
648
|
allowUnknown: true,
|
|
650
649
|
});
|
|
@@ -667,7 +666,7 @@ class Cart {
|
|
|
667
666
|
* @param {CartPlatformApplicationValidator.CreatePromotionParam} arg - Arg object
|
|
668
667
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
669
668
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
670
|
-
* @returns {Promise<CartPlatformModel.
|
|
669
|
+
* @returns {Promise<CartPlatformModel.PromotionAddResult>} - Success response
|
|
671
670
|
* @name createPromotion
|
|
672
671
|
* @summary: Create a promotion
|
|
673
672
|
* @description: Creates a new promotion based on the selected promotion type. Sellers can choose from multiple supported promotion types, including percentage value, fixed amount value, bundled discount, buy X get Y items, and more, along with customizable promotion criteria to meet specific business requirements. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/createPromotion/).
|
|
@@ -723,7 +722,7 @@ class Cart {
|
|
|
723
722
|
|
|
724
723
|
const {
|
|
725
724
|
error: res_error,
|
|
726
|
-
} = CartPlatformModel.
|
|
725
|
+
} = CartPlatformModel.PromotionAddResult().validate(responseData, {
|
|
727
726
|
abortEarly: false,
|
|
728
727
|
allowUnknown: true,
|
|
729
728
|
});
|
|
@@ -746,7 +745,7 @@ class Cart {
|
|
|
746
745
|
* @param {CartPlatformApplicationValidator.DeleteCartParam} arg - Arg object
|
|
747
746
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
748
747
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
749
|
-
* @returns {Promise<CartPlatformModel.
|
|
748
|
+
* @returns {Promise<CartPlatformModel.DeleteCartDetailResult>} - Success response
|
|
750
749
|
* @name deleteCart
|
|
751
750
|
* @summary: Delete a cart
|
|
752
751
|
* @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/platform/cart/deleteCart/).
|
|
@@ -803,7 +802,7 @@ class Cart {
|
|
|
803
802
|
|
|
804
803
|
const {
|
|
805
804
|
error: res_error,
|
|
806
|
-
} = CartPlatformModel.
|
|
805
|
+
} = CartPlatformModel.DeleteCartDetailResult().validate(responseData, {
|
|
807
806
|
abortEarly: false,
|
|
808
807
|
allowUnknown: true,
|
|
809
808
|
});
|
|
@@ -822,13 +821,169 @@ class Cart {
|
|
|
822
821
|
return response;
|
|
823
822
|
}
|
|
824
823
|
|
|
824
|
+
/**
|
|
825
|
+
* @param {CartPlatformApplicationValidator.DeleteCouponParam} arg - Arg object
|
|
826
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
827
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
828
|
+
* @returns {Promise<CartPlatformModel.SuccessMessage>} - Success response
|
|
829
|
+
* @name deleteCoupon
|
|
830
|
+
* @summary: Delete a coupon which is in draft state
|
|
831
|
+
* @description: Delete details of a draft coupon by providing its unique identifier to delete information such as coupon type, rules, validity period and other related information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/deleteCoupon/).
|
|
832
|
+
*/
|
|
833
|
+
async deleteCoupon(
|
|
834
|
+
{ id, requestHeaders } = { requestHeaders: {} },
|
|
835
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
836
|
+
) {
|
|
837
|
+
const { error } = CartPlatformApplicationValidator.deleteCoupon().validate(
|
|
838
|
+
{
|
|
839
|
+
id,
|
|
840
|
+
},
|
|
841
|
+
{ abortEarly: false, allowUnknown: true }
|
|
842
|
+
);
|
|
843
|
+
if (error) {
|
|
844
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
// Showing warrnings if extra unknown parameters are found
|
|
848
|
+
const {
|
|
849
|
+
error: warrning,
|
|
850
|
+
} = CartPlatformApplicationValidator.deleteCoupon().validate(
|
|
851
|
+
{
|
|
852
|
+
id,
|
|
853
|
+
},
|
|
854
|
+
{ abortEarly: false, allowUnknown: false }
|
|
855
|
+
);
|
|
856
|
+
if (warrning) {
|
|
857
|
+
Logger({
|
|
858
|
+
level: "WARN",
|
|
859
|
+
message: `Parameter Validation warrnings for platform > Cart > deleteCoupon \n ${warrning}`,
|
|
860
|
+
});
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
const query_params = {};
|
|
864
|
+
|
|
865
|
+
const response = await PlatformAPIClient.execute(
|
|
866
|
+
this.config,
|
|
867
|
+
"delete",
|
|
868
|
+
`/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/coupon/${id}`,
|
|
869
|
+
query_params,
|
|
870
|
+
undefined,
|
|
871
|
+
requestHeaders,
|
|
872
|
+
{ responseHeaders }
|
|
873
|
+
);
|
|
874
|
+
|
|
875
|
+
let responseData = response;
|
|
876
|
+
if (responseHeaders) {
|
|
877
|
+
responseData = response[0];
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
const {
|
|
881
|
+
error: res_error,
|
|
882
|
+
} = CartPlatformModel.SuccessMessage().validate(responseData, {
|
|
883
|
+
abortEarly: false,
|
|
884
|
+
allowUnknown: true,
|
|
885
|
+
});
|
|
886
|
+
|
|
887
|
+
if (res_error) {
|
|
888
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
889
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
890
|
+
} else {
|
|
891
|
+
Logger({
|
|
892
|
+
level: "WARN",
|
|
893
|
+
message: `Response Validation Warnings for platform > Cart > deleteCoupon \n ${res_error}`,
|
|
894
|
+
});
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
return response;
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
/**
|
|
902
|
+
* @param {CartPlatformApplicationValidator.DeletePromotionParam} arg - Arg object
|
|
903
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
904
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
905
|
+
* @returns {Promise<CartPlatformModel.SuccessMessage>} - Success response
|
|
906
|
+
* @name deletePromotion
|
|
907
|
+
* @summary: Delete a promotion which is in draft state
|
|
908
|
+
* @description: Delete details of a draft promotion by providing its unique identifier to delete information such as promotion type, rules, validity period and other related information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/deletePromotion/).
|
|
909
|
+
*/
|
|
910
|
+
async deletePromotion(
|
|
911
|
+
{ id, requestHeaders } = { requestHeaders: {} },
|
|
912
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
913
|
+
) {
|
|
914
|
+
const {
|
|
915
|
+
error,
|
|
916
|
+
} = CartPlatformApplicationValidator.deletePromotion().validate(
|
|
917
|
+
{
|
|
918
|
+
id,
|
|
919
|
+
},
|
|
920
|
+
{ abortEarly: false, allowUnknown: true }
|
|
921
|
+
);
|
|
922
|
+
if (error) {
|
|
923
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
// Showing warrnings if extra unknown parameters are found
|
|
927
|
+
const {
|
|
928
|
+
error: warrning,
|
|
929
|
+
} = CartPlatformApplicationValidator.deletePromotion().validate(
|
|
930
|
+
{
|
|
931
|
+
id,
|
|
932
|
+
},
|
|
933
|
+
{ abortEarly: false, allowUnknown: false }
|
|
934
|
+
);
|
|
935
|
+
if (warrning) {
|
|
936
|
+
Logger({
|
|
937
|
+
level: "WARN",
|
|
938
|
+
message: `Parameter Validation warrnings for platform > Cart > deletePromotion \n ${warrning}`,
|
|
939
|
+
});
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
const query_params = {};
|
|
943
|
+
|
|
944
|
+
const response = await PlatformAPIClient.execute(
|
|
945
|
+
this.config,
|
|
946
|
+
"delete",
|
|
947
|
+
`/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/promotion/${id}`,
|
|
948
|
+
query_params,
|
|
949
|
+
undefined,
|
|
950
|
+
requestHeaders,
|
|
951
|
+
{ responseHeaders }
|
|
952
|
+
);
|
|
953
|
+
|
|
954
|
+
let responseData = response;
|
|
955
|
+
if (responseHeaders) {
|
|
956
|
+
responseData = response[0];
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
const {
|
|
960
|
+
error: res_error,
|
|
961
|
+
} = CartPlatformModel.SuccessMessage().validate(responseData, {
|
|
962
|
+
abortEarly: false,
|
|
963
|
+
allowUnknown: true,
|
|
964
|
+
});
|
|
965
|
+
|
|
966
|
+
if (res_error) {
|
|
967
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
968
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
969
|
+
} else {
|
|
970
|
+
Logger({
|
|
971
|
+
level: "WARN",
|
|
972
|
+
message: `Response Validation Warnings for platform > Cart > deletePromotion \n ${res_error}`,
|
|
973
|
+
});
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
return response;
|
|
978
|
+
}
|
|
979
|
+
|
|
825
980
|
/**
|
|
826
981
|
* @param {CartPlatformApplicationValidator.FetchAndvalidateCartItemsParam} arg
|
|
827
982
|
* - Arg object
|
|
828
983
|
*
|
|
829
984
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
830
985
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
831
|
-
* @returns {Promise<CartPlatformModel.
|
|
986
|
+
* @returns {Promise<CartPlatformModel.OpenapiCartDetailsResult>} - Success response
|
|
832
987
|
* @name fetchAndvalidateCartItems
|
|
833
988
|
* @summary: Get and validate cart items
|
|
834
989
|
* @description: Retrieve cart details for a provided list of cart items and validate its contents. This ensures accuracy and completeness in cart information, including item quantities, prices, discounts, and applicable taxes. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/fetchAndvalidateCartItems/).
|
|
@@ -884,7 +1039,7 @@ class Cart {
|
|
|
884
1039
|
|
|
885
1040
|
const {
|
|
886
1041
|
error: res_error,
|
|
887
|
-
} = CartPlatformModel.
|
|
1042
|
+
} = CartPlatformModel.OpenapiCartDetailsResult().validate(responseData, {
|
|
888
1043
|
abortEarly: false,
|
|
889
1044
|
allowUnknown: true,
|
|
890
1045
|
});
|
|
@@ -982,7 +1137,7 @@ class Cart {
|
|
|
982
1137
|
* @param {CartPlatformApplicationValidator.GetAbandonedCartParam} arg - Arg object
|
|
983
1138
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
984
1139
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
985
|
-
* @returns {Promise<CartPlatformModel.
|
|
1140
|
+
* @returns {Promise<CartPlatformModel.AbandonedCartResult>} - Success response
|
|
986
1141
|
* @name getAbandonedCart
|
|
987
1142
|
* @summary: Get abandoned carts
|
|
988
1143
|
* @description: Retrieve the list of abandoned carts that have been active for the specified period of time and have not yet been archived for the specific sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getAbandonedCart/).
|
|
@@ -1066,7 +1221,7 @@ class Cart {
|
|
|
1066
1221
|
|
|
1067
1222
|
const {
|
|
1068
1223
|
error: res_error,
|
|
1069
|
-
} = CartPlatformModel.
|
|
1224
|
+
} = CartPlatformModel.AbandonedCartResult().validate(responseData, {
|
|
1070
1225
|
abortEarly: false,
|
|
1071
1226
|
allowUnknown: true,
|
|
1072
1227
|
});
|
|
@@ -1091,7 +1246,7 @@ class Cart {
|
|
|
1091
1246
|
*
|
|
1092
1247
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1093
1248
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1094
|
-
* @returns {Promise<CartPlatformModel.
|
|
1249
|
+
* @returns {Promise<CartPlatformModel.CartDetailResult>} - Success response
|
|
1095
1250
|
* @name getAbandonedCartDetails
|
|
1096
1251
|
* @summary: Get abandoned cart details
|
|
1097
1252
|
* @description: Retrieves abandoned cart details 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/platform/cart/getAbandonedCartDetails/).
|
|
@@ -1157,7 +1312,7 @@ class Cart {
|
|
|
1157
1312
|
|
|
1158
1313
|
const {
|
|
1159
1314
|
error: res_error,
|
|
1160
|
-
} = CartPlatformModel.
|
|
1315
|
+
} = CartPlatformModel.CartDetailResult().validate(responseData, {
|
|
1161
1316
|
abortEarly: false,
|
|
1162
1317
|
allowUnknown: true,
|
|
1163
1318
|
});
|
|
@@ -1290,7 +1445,7 @@ class Cart {
|
|
|
1290
1445
|
* @param {CartPlatformApplicationValidator.GetAddressesParam} arg - Arg object
|
|
1291
1446
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1292
1447
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1293
|
-
* @returns {Promise<CartPlatformModel.
|
|
1448
|
+
* @returns {Promise<CartPlatformModel.PlatformGetAddressesDetails>} -
|
|
1294
1449
|
* Success response
|
|
1295
1450
|
* @name getAddresses
|
|
1296
1451
|
* @summary: Get a list of addresses for a customer
|
|
@@ -1373,10 +1528,10 @@ class Cart {
|
|
|
1373
1528
|
|
|
1374
1529
|
const {
|
|
1375
1530
|
error: res_error,
|
|
1376
|
-
} = CartPlatformModel.
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
);
|
|
1531
|
+
} = CartPlatformModel.PlatformGetAddressesDetails().validate(responseData, {
|
|
1532
|
+
abortEarly: false,
|
|
1533
|
+
allowUnknown: true,
|
|
1534
|
+
});
|
|
1380
1535
|
|
|
1381
1536
|
if (res_error) {
|
|
1382
1537
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1396,9 +1551,9 @@ class Cart {
|
|
|
1396
1551
|
* @param {CartPlatformApplicationValidator.GetAppCouponsParam} arg - Arg object
|
|
1397
1552
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1398
1553
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1399
|
-
* @returns {Promise<CartPlatformModel.
|
|
1554
|
+
* @returns {Promise<CartPlatformModel.GetCouponResult>} - Success response
|
|
1400
1555
|
* @name getAppCoupons
|
|
1401
|
-
* @summary: List coupons
|
|
1556
|
+
* @summary: List of coupons
|
|
1402
1557
|
* @description: Retrieve a list of 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/platform/cart/getAppCoupons/).
|
|
1403
1558
|
*/
|
|
1404
1559
|
async getAppCoupons(
|
|
@@ -1460,7 +1615,7 @@ class Cart {
|
|
|
1460
1615
|
|
|
1461
1616
|
const {
|
|
1462
1617
|
error: res_error,
|
|
1463
|
-
} = CartPlatformModel.
|
|
1618
|
+
} = CartPlatformModel.GetCouponResult().validate(responseData, {
|
|
1464
1619
|
abortEarly: false,
|
|
1465
1620
|
allowUnknown: true,
|
|
1466
1621
|
});
|
|
@@ -1485,7 +1640,7 @@ class Cart {
|
|
|
1485
1640
|
*
|
|
1486
1641
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1487
1642
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1488
|
-
* @returns {Promise<CartPlatformModel.
|
|
1643
|
+
* @returns {Promise<CartPlatformModel.CartDeliveryModesDetails>} - Success response
|
|
1489
1644
|
* @name getAvailableDeliveryModes
|
|
1490
1645
|
* @summary: Get delivery modes
|
|
1491
1646
|
* @description: Retrieve a list of delivery modes (home delivery/store pickup) along with a list of available pickup stores for a given cart at a specified PIN Code. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getAvailableDeliveryModes/).
|
|
@@ -1545,7 +1700,7 @@ class Cart {
|
|
|
1545
1700
|
|
|
1546
1701
|
const {
|
|
1547
1702
|
error: res_error,
|
|
1548
|
-
} = CartPlatformModel.
|
|
1703
|
+
} = CartPlatformModel.CartDeliveryModesDetails().validate(responseData, {
|
|
1549
1704
|
abortEarly: false,
|
|
1550
1705
|
allowUnknown: true,
|
|
1551
1706
|
});
|
|
@@ -1568,7 +1723,7 @@ class Cart {
|
|
|
1568
1723
|
* @param {CartPlatformApplicationValidator.GetCartParam} arg - Arg object
|
|
1569
1724
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1570
1725
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1571
|
-
* @returns {Promise<CartPlatformModel.
|
|
1726
|
+
* @returns {Promise<CartPlatformModel.CartDetailResult>} - Success response
|
|
1572
1727
|
* @name getCart
|
|
1573
1728
|
* @summary: Get a cart
|
|
1574
1729
|
* @description: Retrieve details of a cart linked to a specific customer using either the customer's ID or 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/platform/cart/getCart/).
|
|
@@ -1643,7 +1798,7 @@ class Cart {
|
|
|
1643
1798
|
|
|
1644
1799
|
const {
|
|
1645
1800
|
error: res_error,
|
|
1646
|
-
} = CartPlatformModel.
|
|
1801
|
+
} = CartPlatformModel.CartDetailResult().validate(responseData, {
|
|
1647
1802
|
abortEarly: false,
|
|
1648
1803
|
allowUnknown: true,
|
|
1649
1804
|
});
|
|
@@ -1666,10 +1821,10 @@ class Cart {
|
|
|
1666
1821
|
* @param {CartPlatformApplicationValidator.GetCartListParam} arg - Arg object
|
|
1667
1822
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1668
1823
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1669
|
-
* @returns {Promise<CartPlatformModel.
|
|
1824
|
+
* @returns {Promise<CartPlatformModel.MultiCartResult>} - Success response
|
|
1670
1825
|
* @name getCartList
|
|
1671
|
-
* @summary: List carts
|
|
1672
|
-
* @description: Retrieve the list of active carts associated with a specific customer.
|
|
1826
|
+
* @summary: List of carts
|
|
1827
|
+
* @description: Retrieve the list of active carts associated with a specific customer. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCartList/).
|
|
1673
1828
|
*/
|
|
1674
1829
|
async getCartList(
|
|
1675
1830
|
{ fromDate, toDate, filterOn, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1727,7 +1882,7 @@ class Cart {
|
|
|
1727
1882
|
|
|
1728
1883
|
const {
|
|
1729
1884
|
error: res_error,
|
|
1730
|
-
} = CartPlatformModel.
|
|
1885
|
+
} = CartPlatformModel.MultiCartResult().validate(responseData, {
|
|
1731
1886
|
abortEarly: false,
|
|
1732
1887
|
allowUnknown: true,
|
|
1733
1888
|
});
|
|
@@ -1750,7 +1905,7 @@ class Cart {
|
|
|
1750
1905
|
* @param {CartPlatformApplicationValidator.GetCartShareLinkParam} arg - Arg object
|
|
1751
1906
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1752
1907
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1753
|
-
* @returns {Promise<CartPlatformModel.
|
|
1908
|
+
* @returns {Promise<CartPlatformModel.GetShareCartLinkResult>} - Success response
|
|
1754
1909
|
* @name getCartShareLink
|
|
1755
1910
|
* @summary: Share cart link
|
|
1756
1911
|
* @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/platform/cart/getCartShareLink/).
|
|
@@ -1806,7 +1961,7 @@ class Cart {
|
|
|
1806
1961
|
|
|
1807
1962
|
const {
|
|
1808
1963
|
error: res_error,
|
|
1809
|
-
} = CartPlatformModel.
|
|
1964
|
+
} = CartPlatformModel.GetShareCartLinkResult().validate(responseData, {
|
|
1810
1965
|
abortEarly: false,
|
|
1811
1966
|
allowUnknown: true,
|
|
1812
1967
|
});
|
|
@@ -1829,7 +1984,7 @@ class Cart {
|
|
|
1829
1984
|
* @param {CartPlatformApplicationValidator.GetCartSharedItemsParam} arg - Arg object
|
|
1830
1985
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1831
1986
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1832
|
-
* @returns {Promise<CartPlatformModel.
|
|
1987
|
+
* @returns {Promise<CartPlatformModel.SharedCartResult>} - Success response
|
|
1833
1988
|
* @name getCartSharedItems
|
|
1834
1989
|
* @summary: List shared cart items
|
|
1835
1990
|
* @description: Retrieve the cart items from the shared cart link based on unique token. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCartSharedItems/).
|
|
@@ -1885,7 +2040,7 @@ class Cart {
|
|
|
1885
2040
|
|
|
1886
2041
|
const {
|
|
1887
2042
|
error: res_error,
|
|
1888
|
-
} = CartPlatformModel.
|
|
2043
|
+
} = CartPlatformModel.SharedCartResult().validate(responseData, {
|
|
1889
2044
|
abortEarly: false,
|
|
1890
2045
|
allowUnknown: true,
|
|
1891
2046
|
});
|
|
@@ -2138,9 +2293,9 @@ class Cart {
|
|
|
2138
2293
|
* @param {CartPlatformApplicationValidator.GetCouponsParam} arg - Arg object
|
|
2139
2294
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2140
2295
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2141
|
-
* @returns {Promise<CartPlatformModel.
|
|
2296
|
+
* @returns {Promise<CartPlatformModel.CouponsResult>} - Success response
|
|
2142
2297
|
* @name getCoupons
|
|
2143
|
-
* @summary: List coupons
|
|
2298
|
+
* @summary: List of coupons
|
|
2144
2299
|
* @description: Retrieve a list of all created coupons for specific sales channel. It also supports searching based on text search, pagination and other flags to filter coupons. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getCoupons/).
|
|
2145
2300
|
*/
|
|
2146
2301
|
async getCoupons(
|
|
@@ -2153,6 +2308,13 @@ class Cart {
|
|
|
2153
2308
|
isDisplay,
|
|
2154
2309
|
typeSlug,
|
|
2155
2310
|
code,
|
|
2311
|
+
createdBy,
|
|
2312
|
+
reviewedBy,
|
|
2313
|
+
approvedStartTime,
|
|
2314
|
+
approvedEndTime,
|
|
2315
|
+
reviewStartTime,
|
|
2316
|
+
reviewEndTime,
|
|
2317
|
+
status,
|
|
2156
2318
|
requestHeaders,
|
|
2157
2319
|
} = { requestHeaders: {} },
|
|
2158
2320
|
{ responseHeaders } = { responseHeaders: false }
|
|
@@ -2167,6 +2329,13 @@ class Cart {
|
|
|
2167
2329
|
isDisplay,
|
|
2168
2330
|
typeSlug,
|
|
2169
2331
|
code,
|
|
2332
|
+
createdBy,
|
|
2333
|
+
reviewedBy,
|
|
2334
|
+
approvedStartTime,
|
|
2335
|
+
approvedEndTime,
|
|
2336
|
+
reviewStartTime,
|
|
2337
|
+
reviewEndTime,
|
|
2338
|
+
status,
|
|
2170
2339
|
},
|
|
2171
2340
|
{ abortEarly: false, allowUnknown: true }
|
|
2172
2341
|
);
|
|
@@ -2187,6 +2356,13 @@ class Cart {
|
|
|
2187
2356
|
isDisplay,
|
|
2188
2357
|
typeSlug,
|
|
2189
2358
|
code,
|
|
2359
|
+
createdBy,
|
|
2360
|
+
reviewedBy,
|
|
2361
|
+
approvedStartTime,
|
|
2362
|
+
approvedEndTime,
|
|
2363
|
+
reviewStartTime,
|
|
2364
|
+
reviewEndTime,
|
|
2365
|
+
status,
|
|
2190
2366
|
},
|
|
2191
2367
|
{ abortEarly: false, allowUnknown: false }
|
|
2192
2368
|
);
|
|
@@ -2206,6 +2382,13 @@ class Cart {
|
|
|
2206
2382
|
query_params["is_display"] = isDisplay;
|
|
2207
2383
|
query_params["type_slug"] = typeSlug;
|
|
2208
2384
|
query_params["code"] = code;
|
|
2385
|
+
query_params["created_by"] = createdBy;
|
|
2386
|
+
query_params["reviewed_by"] = reviewedBy;
|
|
2387
|
+
query_params["approved_start_time"] = approvedStartTime;
|
|
2388
|
+
query_params["approved_end_time"] = approvedEndTime;
|
|
2389
|
+
query_params["review_start_time"] = reviewStartTime;
|
|
2390
|
+
query_params["review_end_time"] = reviewEndTime;
|
|
2391
|
+
query_params["status"] = status;
|
|
2209
2392
|
|
|
2210
2393
|
const response = await PlatformAPIClient.execute(
|
|
2211
2394
|
this.config,
|
|
@@ -2224,7 +2407,7 @@ class Cart {
|
|
|
2224
2407
|
|
|
2225
2408
|
const {
|
|
2226
2409
|
error: res_error,
|
|
2227
|
-
} = CartPlatformModel.
|
|
2410
|
+
} = CartPlatformModel.CouponsResult().validate(responseData, {
|
|
2228
2411
|
abortEarly: false,
|
|
2229
2412
|
allowUnknown: true,
|
|
2230
2413
|
});
|
|
@@ -2247,7 +2430,7 @@ class Cart {
|
|
|
2247
2430
|
* @param {CartPlatformApplicationValidator.GetItemCountParam} arg - Arg object
|
|
2248
2431
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2249
2432
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2250
|
-
* @returns {Promise<CartPlatformModel.
|
|
2433
|
+
* @returns {Promise<CartPlatformModel.CartItemCountResult>} - Success response
|
|
2251
2434
|
* @name getItemCount
|
|
2252
2435
|
* @summary: Get a cart items count
|
|
2253
2436
|
* @description: Retrieve the total count of items currently present in the customer's cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getItemCount/).
|
|
@@ -2305,7 +2488,7 @@ class Cart {
|
|
|
2305
2488
|
|
|
2306
2489
|
const {
|
|
2307
2490
|
error: res_error,
|
|
2308
|
-
} = CartPlatformModel.
|
|
2491
|
+
} = CartPlatformModel.CartItemCountResult().validate(responseData, {
|
|
2309
2492
|
abortEarly: false,
|
|
2310
2493
|
allowUnknown: true,
|
|
2311
2494
|
});
|
|
@@ -2328,7 +2511,7 @@ class Cart {
|
|
|
2328
2511
|
* @param {CartPlatformApplicationValidator.GetPriceAdjustmentsParam} arg - Arg object
|
|
2329
2512
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2330
2513
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2331
|
-
* @returns {Promise<CartPlatformModel.
|
|
2514
|
+
* @returns {Promise<CartPlatformModel.GetPriceAdjustmentResult>} - Success response
|
|
2332
2515
|
* @name getPriceAdjustments
|
|
2333
2516
|
* @summary: Get a list of all price adjustments associated with a cart
|
|
2334
2517
|
* @description: This API helps to get price adjustments data associated to a particular cart - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getPriceAdjustments/).
|
|
@@ -2385,7 +2568,7 @@ class Cart {
|
|
|
2385
2568
|
|
|
2386
2569
|
const {
|
|
2387
2570
|
error: res_error,
|
|
2388
|
-
} = CartPlatformModel.
|
|
2571
|
+
} = CartPlatformModel.GetPriceAdjustmentResult().validate(responseData, {
|
|
2389
2572
|
abortEarly: false,
|
|
2390
2573
|
allowUnknown: true,
|
|
2391
2574
|
});
|
|
@@ -2410,7 +2593,7 @@ class Cart {
|
|
|
2410
2593
|
*
|
|
2411
2594
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2412
2595
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2413
|
-
* @returns {Promise<CartPlatformModel.
|
|
2596
|
+
* @returns {Promise<CartPlatformModel.ActivePromosResult>} - Success response
|
|
2414
2597
|
* @name getPromosCouponConfig
|
|
2415
2598
|
* @summary: Get promotion and coupon type
|
|
2416
2599
|
* @description: Retrieve the configuration settings related to promotions and coupons for a specific seller. It provides details of the supported types of coupons and promotions along with their descriptions, examples, and related attributes. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getPromosCouponConfig/).
|
|
@@ -2470,7 +2653,7 @@ class Cart {
|
|
|
2470
2653
|
|
|
2471
2654
|
const {
|
|
2472
2655
|
error: res_error,
|
|
2473
|
-
} = CartPlatformModel.
|
|
2656
|
+
} = CartPlatformModel.ActivePromosResult().validate(responseData, {
|
|
2474
2657
|
abortEarly: false,
|
|
2475
2658
|
allowUnknown: true,
|
|
2476
2659
|
});
|
|
@@ -2493,9 +2676,9 @@ class Cart {
|
|
|
2493
2676
|
* @param {CartPlatformApplicationValidator.GetPromotionByIdParam} arg - Arg object
|
|
2494
2677
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2495
2678
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2496
|
-
* @returns {Promise<CartPlatformModel.
|
|
2679
|
+
* @returns {Promise<CartPlatformModel.PromotionUpdateResult>} - Success response
|
|
2497
2680
|
* @name getPromotionById
|
|
2498
|
-
* @summary: Get a promotion
|
|
2681
|
+
* @summary: Get a specific promotion
|
|
2499
2682
|
* @description: Retrieve details of a specific promotion by providing its unique identifier to obtain information such as promotion type, rules, validity period and other related information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getPromotionById/).
|
|
2500
2683
|
*/
|
|
2501
2684
|
async getPromotionById(
|
|
@@ -2549,7 +2732,7 @@ class Cart {
|
|
|
2549
2732
|
|
|
2550
2733
|
const {
|
|
2551
2734
|
error: res_error,
|
|
2552
|
-
} = CartPlatformModel.
|
|
2735
|
+
} = CartPlatformModel.PromotionUpdateResult().validate(responseData, {
|
|
2553
2736
|
abortEarly: false,
|
|
2554
2737
|
allowUnknown: true,
|
|
2555
2738
|
});
|
|
@@ -2652,9 +2835,9 @@ class Cart {
|
|
|
2652
2835
|
* @param {CartPlatformApplicationValidator.GetPromotionOffersParam} arg - Arg object
|
|
2653
2836
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2654
2837
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2655
|
-
* @returns {Promise<CartPlatformModel.
|
|
2838
|
+
* @returns {Promise<CartPlatformModel.PromotionOffersDetails>} - Success response
|
|
2656
2839
|
* @name getPromotionOffers
|
|
2657
|
-
* @summary: List available promotion offers
|
|
2840
|
+
* @summary: List of all available promotion offers
|
|
2658
2841
|
* @description: Retrieve a list of 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/platform/cart/getPromotionOffers/).
|
|
2659
2842
|
*/
|
|
2660
2843
|
async getPromotionOffers(
|
|
@@ -2723,7 +2906,7 @@ class Cart {
|
|
|
2723
2906
|
|
|
2724
2907
|
const {
|
|
2725
2908
|
error: res_error,
|
|
2726
|
-
} = CartPlatformModel.
|
|
2909
|
+
} = CartPlatformModel.PromotionOffersDetails().validate(responseData, {
|
|
2727
2910
|
abortEarly: false,
|
|
2728
2911
|
allowUnknown: true,
|
|
2729
2912
|
});
|
|
@@ -2748,7 +2931,7 @@ class Cart {
|
|
|
2748
2931
|
*
|
|
2749
2932
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2750
2933
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2751
|
-
* @returns {Promise<CartPlatformModel.
|
|
2934
|
+
* @returns {Promise<CartPlatformModel.PromotionPaymentOffersDetails>} -
|
|
2752
2935
|
* Success response
|
|
2753
2936
|
* @name getPromotionPaymentOffers
|
|
2754
2937
|
* @summary: Fetch available promotions payment offers
|
|
@@ -2809,7 +2992,7 @@ class Cart {
|
|
|
2809
2992
|
|
|
2810
2993
|
const {
|
|
2811
2994
|
error: res_error,
|
|
2812
|
-
} = CartPlatformModel.
|
|
2995
|
+
} = CartPlatformModel.PromotionPaymentOffersDetails().validate(
|
|
2813
2996
|
responseData,
|
|
2814
2997
|
{ abortEarly: false, allowUnknown: true }
|
|
2815
2998
|
);
|
|
@@ -2832,9 +3015,9 @@ class Cart {
|
|
|
2832
3015
|
* @param {CartPlatformApplicationValidator.GetPromotionsParam} arg - Arg object
|
|
2833
3016
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2834
3017
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2835
|
-
* @returns {Promise<CartPlatformModel.
|
|
3018
|
+
* @returns {Promise<CartPlatformModel.PromotionsResult>} - Success response
|
|
2836
3019
|
* @name getPromotions
|
|
2837
|
-
* @summary: List promotions
|
|
3020
|
+
* @summary: List of promotions
|
|
2838
3021
|
* @description: Retrieve a list of all created promotions for specific sales channel. It also supports efficient text search and pagination functionalities, ensuring optimized promotion listing for streamlined navigation and management. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getPromotions/).
|
|
2839
3022
|
*/
|
|
2840
3023
|
async getPromotions(
|
|
@@ -2847,6 +3030,13 @@ class Cart {
|
|
|
2847
3030
|
promotionType,
|
|
2848
3031
|
fpPanel,
|
|
2849
3032
|
promotionId,
|
|
3033
|
+
createdBy,
|
|
3034
|
+
reviewedBy,
|
|
3035
|
+
approvedStartTime,
|
|
3036
|
+
approvedEndTime,
|
|
3037
|
+
reviewStartTime,
|
|
3038
|
+
reviewEndTime,
|
|
3039
|
+
status,
|
|
2850
3040
|
requestHeaders,
|
|
2851
3041
|
} = { requestHeaders: {} },
|
|
2852
3042
|
{ responseHeaders } = { responseHeaders: false }
|
|
@@ -2861,6 +3051,13 @@ class Cart {
|
|
|
2861
3051
|
promotionType,
|
|
2862
3052
|
fpPanel,
|
|
2863
3053
|
promotionId,
|
|
3054
|
+
createdBy,
|
|
3055
|
+
reviewedBy,
|
|
3056
|
+
approvedStartTime,
|
|
3057
|
+
approvedEndTime,
|
|
3058
|
+
reviewStartTime,
|
|
3059
|
+
reviewEndTime,
|
|
3060
|
+
status,
|
|
2864
3061
|
},
|
|
2865
3062
|
{ abortEarly: false, allowUnknown: true }
|
|
2866
3063
|
);
|
|
@@ -2881,6 +3078,13 @@ class Cart {
|
|
|
2881
3078
|
promotionType,
|
|
2882
3079
|
fpPanel,
|
|
2883
3080
|
promotionId,
|
|
3081
|
+
createdBy,
|
|
3082
|
+
reviewedBy,
|
|
3083
|
+
approvedStartTime,
|
|
3084
|
+
approvedEndTime,
|
|
3085
|
+
reviewStartTime,
|
|
3086
|
+
reviewEndTime,
|
|
3087
|
+
status,
|
|
2884
3088
|
},
|
|
2885
3089
|
{ abortEarly: false, allowUnknown: false }
|
|
2886
3090
|
);
|
|
@@ -2900,6 +3104,13 @@ class Cart {
|
|
|
2900
3104
|
query_params["promotion_type"] = promotionType;
|
|
2901
3105
|
query_params["fp_panel"] = fpPanel;
|
|
2902
3106
|
query_params["promotion_id"] = promotionId;
|
|
3107
|
+
query_params["created_by"] = createdBy;
|
|
3108
|
+
query_params["reviewed_by"] = reviewedBy;
|
|
3109
|
+
query_params["approved_start_time"] = approvedStartTime;
|
|
3110
|
+
query_params["approved_end_time"] = approvedEndTime;
|
|
3111
|
+
query_params["review_start_time"] = reviewStartTime;
|
|
3112
|
+
query_params["review_end_time"] = reviewEndTime;
|
|
3113
|
+
query_params["status"] = status;
|
|
2903
3114
|
|
|
2904
3115
|
const response = await PlatformAPIClient.execute(
|
|
2905
3116
|
this.config,
|
|
@@ -2918,7 +3129,7 @@ class Cart {
|
|
|
2918
3129
|
|
|
2919
3130
|
const {
|
|
2920
3131
|
error: res_error,
|
|
2921
|
-
} = CartPlatformModel.
|
|
3132
|
+
} = CartPlatformModel.PromotionsResult().validate(responseData, {
|
|
2922
3133
|
abortEarly: false,
|
|
2923
3134
|
allowUnknown: true,
|
|
2924
3135
|
});
|
|
@@ -2941,7 +3152,7 @@ class Cart {
|
|
|
2941
3152
|
* @param {CartPlatformApplicationValidator.GetShipmentsParam} arg - Arg object
|
|
2942
3153
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2943
3154
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2944
|
-
* @returns {Promise<CartPlatformModel.
|
|
3155
|
+
* @returns {Promise<CartPlatformModel.PlatformCartShipmentsResult>} -
|
|
2945
3156
|
* Success response
|
|
2946
3157
|
* @name getShipments
|
|
2947
3158
|
* @summary: Get shipments details
|
|
@@ -3028,10 +3239,10 @@ class Cart {
|
|
|
3028
3239
|
|
|
3029
3240
|
const {
|
|
3030
3241
|
error: res_error,
|
|
3031
|
-
} = CartPlatformModel.
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
);
|
|
3242
|
+
} = CartPlatformModel.PlatformCartShipmentsResult().validate(responseData, {
|
|
3243
|
+
abortEarly: false,
|
|
3244
|
+
allowUnknown: true,
|
|
3245
|
+
});
|
|
3035
3246
|
|
|
3036
3247
|
if (res_error) {
|
|
3037
3248
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -3053,7 +3264,7 @@ class Cart {
|
|
|
3053
3264
|
*
|
|
3054
3265
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3055
3266
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3056
|
-
* @returns {Promise<CartPlatformModel.
|
|
3267
|
+
* @returns {Promise<CartPlatformModel.StoreDetails>} - Success response
|
|
3057
3268
|
* @name getStoreAddressByUid
|
|
3058
3269
|
* @summary: Get Store Address
|
|
3059
3270
|
* @description: Retrieve store details by entering the unique identifier of the pickup stores. Store details include the seller's name, contact information such as email address or phone number and business address. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/getStoreAddressByUid/).
|
|
@@ -3110,7 +3321,7 @@ class Cart {
|
|
|
3110
3321
|
|
|
3111
3322
|
const {
|
|
3112
3323
|
error: res_error,
|
|
3113
|
-
} = CartPlatformModel.
|
|
3324
|
+
} = CartPlatformModel.StoreDetails().validate(responseData, {
|
|
3114
3325
|
abortEarly: false,
|
|
3115
3326
|
allowUnknown: true,
|
|
3116
3327
|
});
|
|
@@ -3133,7 +3344,7 @@ class Cart {
|
|
|
3133
3344
|
* @param {CartPlatformApplicationValidator.OverrideCartParam} arg - Arg object
|
|
3134
3345
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3135
3346
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3136
|
-
* @returns {Promise<CartPlatformModel.
|
|
3347
|
+
* @returns {Promise<CartPlatformModel.OverrideCheckoutResult>} - Success response
|
|
3137
3348
|
* @name overrideCart
|
|
3138
3349
|
* @summary: Update cart checkout
|
|
3139
3350
|
* @description: Overrides the cart's checkout process with a new provided cart items. It provides flexibility in customizing checkout flows to meet specific business requirements, enhancing the user experience and optimizing order processing workflows. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/overrideCart/).
|
|
@@ -3187,7 +3398,7 @@ class Cart {
|
|
|
3187
3398
|
|
|
3188
3399
|
const {
|
|
3189
3400
|
error: res_error,
|
|
3190
|
-
} = CartPlatformModel.
|
|
3401
|
+
} = CartPlatformModel.OverrideCheckoutResult().validate(responseData, {
|
|
3191
3402
|
abortEarly: false,
|
|
3192
3403
|
allowUnknown: true,
|
|
3193
3404
|
});
|
|
@@ -3210,7 +3421,7 @@ class Cart {
|
|
|
3210
3421
|
* @param {CartPlatformApplicationValidator.PlatformAddItemsParam} arg - Arg object
|
|
3211
3422
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3212
3423
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3213
|
-
* @returns {Promise<CartPlatformModel.
|
|
3424
|
+
* @returns {Promise<CartPlatformModel.AddCartDetailResult>} - Success response
|
|
3214
3425
|
* @name platformAddItems
|
|
3215
3426
|
* @summary: Add items to cart
|
|
3216
3427
|
* @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/platform/cart/platformAddItems/).
|
|
@@ -3283,7 +3494,7 @@ class Cart {
|
|
|
3283
3494
|
|
|
3284
3495
|
const {
|
|
3285
3496
|
error: res_error,
|
|
3286
|
-
} = CartPlatformModel.
|
|
3497
|
+
} = CartPlatformModel.AddCartDetailResult().validate(responseData, {
|
|
3287
3498
|
abortEarly: false,
|
|
3288
3499
|
allowUnknown: true,
|
|
3289
3500
|
});
|
|
@@ -3302,13 +3513,97 @@ class Cart {
|
|
|
3302
3513
|
return response;
|
|
3303
3514
|
}
|
|
3304
3515
|
|
|
3516
|
+
/**
|
|
3517
|
+
* @param {CartPlatformApplicationValidator.PlatformCheckoutCartParam} arg
|
|
3518
|
+
* - Arg object
|
|
3519
|
+
*
|
|
3520
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3521
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3522
|
+
* @returns {Promise<CartPlatformModel.CartCheckoutResult>} - Success response
|
|
3523
|
+
* @name platformCheckoutCart
|
|
3524
|
+
* @summary: Checkout cart
|
|
3525
|
+
* @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/platform/cart/platformCheckoutCart/).
|
|
3526
|
+
*/
|
|
3527
|
+
async platformCheckoutCart(
|
|
3528
|
+
{ body, id, requestHeaders } = { requestHeaders: {} },
|
|
3529
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
3530
|
+
) {
|
|
3531
|
+
const {
|
|
3532
|
+
error,
|
|
3533
|
+
} = CartPlatformApplicationValidator.platformCheckoutCart().validate(
|
|
3534
|
+
{
|
|
3535
|
+
body,
|
|
3536
|
+
id,
|
|
3537
|
+
},
|
|
3538
|
+
{ abortEarly: false, allowUnknown: true }
|
|
3539
|
+
);
|
|
3540
|
+
if (error) {
|
|
3541
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
3542
|
+
}
|
|
3543
|
+
|
|
3544
|
+
// Showing warrnings if extra unknown parameters are found
|
|
3545
|
+
const {
|
|
3546
|
+
error: warrning,
|
|
3547
|
+
} = CartPlatformApplicationValidator.platformCheckoutCart().validate(
|
|
3548
|
+
{
|
|
3549
|
+
body,
|
|
3550
|
+
id,
|
|
3551
|
+
},
|
|
3552
|
+
{ abortEarly: false, allowUnknown: false }
|
|
3553
|
+
);
|
|
3554
|
+
if (warrning) {
|
|
3555
|
+
Logger({
|
|
3556
|
+
level: "WARN",
|
|
3557
|
+
message: `Parameter Validation warrnings for platform > Cart > platformCheckoutCart \n ${warrning}`,
|
|
3558
|
+
});
|
|
3559
|
+
}
|
|
3560
|
+
|
|
3561
|
+
const query_params = {};
|
|
3562
|
+
query_params["id"] = id;
|
|
3563
|
+
|
|
3564
|
+
const response = await PlatformAPIClient.execute(
|
|
3565
|
+
this.config,
|
|
3566
|
+
"post",
|
|
3567
|
+
`/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/checkout`,
|
|
3568
|
+
query_params,
|
|
3569
|
+
body,
|
|
3570
|
+
requestHeaders,
|
|
3571
|
+
{ responseHeaders }
|
|
3572
|
+
);
|
|
3573
|
+
|
|
3574
|
+
let responseData = response;
|
|
3575
|
+
if (responseHeaders) {
|
|
3576
|
+
responseData = response[0];
|
|
3577
|
+
}
|
|
3578
|
+
|
|
3579
|
+
const {
|
|
3580
|
+
error: res_error,
|
|
3581
|
+
} = CartPlatformModel.CartCheckoutResult().validate(responseData, {
|
|
3582
|
+
abortEarly: false,
|
|
3583
|
+
allowUnknown: true,
|
|
3584
|
+
});
|
|
3585
|
+
|
|
3586
|
+
if (res_error) {
|
|
3587
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3588
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3589
|
+
} else {
|
|
3590
|
+
Logger({
|
|
3591
|
+
level: "WARN",
|
|
3592
|
+
message: `Response Validation Warnings for platform > Cart > platformCheckoutCart \n ${res_error}`,
|
|
3593
|
+
});
|
|
3594
|
+
}
|
|
3595
|
+
}
|
|
3596
|
+
|
|
3597
|
+
return response;
|
|
3598
|
+
}
|
|
3599
|
+
|
|
3305
3600
|
/**
|
|
3306
3601
|
* @param {CartPlatformApplicationValidator.PlatformCheckoutCartV2Param} arg
|
|
3307
3602
|
* - Arg object
|
|
3308
3603
|
*
|
|
3309
3604
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3310
3605
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3311
|
-
* @returns {Promise<CartPlatformModel.
|
|
3606
|
+
* @returns {Promise<CartPlatformModel.CartCheckoutDetails>} - Success response
|
|
3312
3607
|
* @name platformCheckoutCartV2
|
|
3313
3608
|
* @summary: Checkout cart
|
|
3314
3609
|
* @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/platform/cart/platformCheckoutCartV2/).
|
|
@@ -3367,7 +3662,7 @@ class Cart {
|
|
|
3367
3662
|
|
|
3368
3663
|
const {
|
|
3369
3664
|
error: res_error,
|
|
3370
|
-
} = CartPlatformModel.
|
|
3665
|
+
} = CartPlatformModel.CartCheckoutDetails().validate(responseData, {
|
|
3371
3666
|
abortEarly: false,
|
|
3372
3667
|
allowUnknown: true,
|
|
3373
3668
|
});
|
|
@@ -3390,7 +3685,7 @@ class Cart {
|
|
|
3390
3685
|
* @param {CartPlatformApplicationValidator.PlatformUpdateCartParam} arg - Arg object
|
|
3391
3686
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3392
3687
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3393
|
-
* @returns {Promise<CartPlatformModel.
|
|
3688
|
+
* @returns {Promise<CartPlatformModel.UpdateCartDetailResult>} - Success response
|
|
3394
3689
|
* @name platformUpdateCart
|
|
3395
3690
|
* @summary: Update cart items
|
|
3396
3691
|
* @description: 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/platform/cart/platformUpdateCart/).
|
|
@@ -3463,7 +3758,7 @@ class Cart {
|
|
|
3463
3758
|
|
|
3464
3759
|
const {
|
|
3465
3760
|
error: res_error,
|
|
3466
|
-
} = CartPlatformModel.
|
|
3761
|
+
} = CartPlatformModel.UpdateCartDetailResult().validate(responseData, {
|
|
3467
3762
|
abortEarly: false,
|
|
3468
3763
|
allowUnknown: true,
|
|
3469
3764
|
});
|
|
@@ -3486,7 +3781,7 @@ class Cart {
|
|
|
3486
3781
|
* @param {CartPlatformApplicationValidator.RemoveAddressParam} arg - Arg object
|
|
3487
3782
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3488
3783
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3489
|
-
* @returns {Promise<CartPlatformModel.
|
|
3784
|
+
* @returns {Promise<CartPlatformModel.DeleteAddressResult>} - Success response
|
|
3490
3785
|
* @name removeAddress
|
|
3491
3786
|
* @summary: Removes an address from a customer's address list
|
|
3492
3787
|
* @description: Remove an existing customer address from the system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/removeAddress/).
|
|
@@ -3543,7 +3838,7 @@ class Cart {
|
|
|
3543
3838
|
|
|
3544
3839
|
const {
|
|
3545
3840
|
error: res_error,
|
|
3546
|
-
} = CartPlatformModel.
|
|
3841
|
+
} = CartPlatformModel.DeleteAddressResult().validate(responseData, {
|
|
3547
3842
|
abortEarly: false,
|
|
3548
3843
|
allowUnknown: true,
|
|
3549
3844
|
});
|
|
@@ -3566,7 +3861,7 @@ class Cart {
|
|
|
3566
3861
|
* @param {CartPlatformApplicationValidator.RemoveCouponParam} arg - Arg object
|
|
3567
3862
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3568
3863
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3569
|
-
* @returns {Promise<CartPlatformModel.
|
|
3864
|
+
* @returns {Promise<CartPlatformModel.CartDetailResult>} - Success response
|
|
3570
3865
|
* @name removeCoupon
|
|
3571
3866
|
* @summary: Remove coupon
|
|
3572
3867
|
* @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/platform/cart/removeCoupon/).
|
|
@@ -3624,7 +3919,7 @@ class Cart {
|
|
|
3624
3919
|
|
|
3625
3920
|
const {
|
|
3626
3921
|
error: res_error,
|
|
3627
|
-
} = CartPlatformModel.
|
|
3922
|
+
} = CartPlatformModel.CartDetailResult().validate(responseData, {
|
|
3628
3923
|
abortEarly: false,
|
|
3629
3924
|
allowUnknown: true,
|
|
3630
3925
|
});
|
|
@@ -3728,7 +4023,7 @@ class Cart {
|
|
|
3728
4023
|
* @param {CartPlatformApplicationValidator.SelectAddressParam} arg - Arg object
|
|
3729
4024
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3730
4025
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3731
|
-
* @returns {Promise<CartPlatformModel.
|
|
4026
|
+
* @returns {Promise<CartPlatformModel.CartDetailResult>} - Success response
|
|
3732
4027
|
* @name selectAddress
|
|
3733
4028
|
* @summary: Select customer address for order processing
|
|
3734
4029
|
* @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/platform/cart/selectAddress/).
|
|
@@ -3794,7 +4089,7 @@ class Cart {
|
|
|
3794
4089
|
|
|
3795
4090
|
const {
|
|
3796
4091
|
error: res_error,
|
|
3797
|
-
} = CartPlatformModel.
|
|
4092
|
+
} = CartPlatformModel.CartDetailResult().validate(responseData, {
|
|
3798
4093
|
abortEarly: false,
|
|
3799
4094
|
allowUnknown: true,
|
|
3800
4095
|
});
|
|
@@ -3817,7 +4112,7 @@ class Cart {
|
|
|
3817
4112
|
* @param {CartPlatformApplicationValidator.SelectPaymentModeParam} arg - Arg object
|
|
3818
4113
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3819
4114
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3820
|
-
* @returns {Promise<CartPlatformModel.
|
|
4115
|
+
* @returns {Promise<CartPlatformModel.CartDetailResult>} - Success response
|
|
3821
4116
|
* @name selectPaymentMode
|
|
3822
4117
|
* @summary: Select payment mode
|
|
3823
4118
|
* @description: Customers can 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/platform/cart/selectPaymentMode/).
|
|
@@ -3882,7 +4177,7 @@ class Cart {
|
|
|
3882
4177
|
|
|
3883
4178
|
const {
|
|
3884
4179
|
error: res_error,
|
|
3885
|
-
} = CartPlatformModel.
|
|
4180
|
+
} = CartPlatformModel.CartDetailResult().validate(responseData, {
|
|
3886
4181
|
abortEarly: false,
|
|
3887
4182
|
allowUnknown: true,
|
|
3888
4183
|
});
|
|
@@ -3905,7 +4200,7 @@ class Cart {
|
|
|
3905
4200
|
* @param {CartPlatformApplicationValidator.SelectPaymentModeV2Param} arg - Arg object
|
|
3906
4201
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3907
4202
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3908
|
-
* @returns {Promise<CartPlatformModel.
|
|
4203
|
+
* @returns {Promise<CartPlatformModel.CartDetailResult>} - Success response
|
|
3909
4204
|
* @name selectPaymentModeV2
|
|
3910
4205
|
* @summary: Select payment mode (latest)
|
|
3911
4206
|
* @description: Selection of payment mode that supports multiple MOP(mode of payment). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/selectPaymentModeV2/).
|
|
@@ -3970,7 +4265,7 @@ class Cart {
|
|
|
3970
4265
|
|
|
3971
4266
|
const {
|
|
3972
4267
|
error: res_error,
|
|
3973
|
-
} = CartPlatformModel.
|
|
4268
|
+
} = CartPlatformModel.CartDetailResult().validate(responseData, {
|
|
3974
4269
|
abortEarly: false,
|
|
3975
4270
|
allowUnknown: true,
|
|
3976
4271
|
});
|
|
@@ -3993,7 +4288,7 @@ class Cart {
|
|
|
3993
4288
|
* @param {CartPlatformApplicationValidator.UpdateAddressParam} arg - Arg object
|
|
3994
4289
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3995
4290
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3996
|
-
* @returns {Promise<CartPlatformModel.
|
|
4291
|
+
* @returns {Promise<CartPlatformModel.UpdateAddressDetails>} - Success response
|
|
3997
4292
|
* @name updateAddress
|
|
3998
4293
|
* @summary: Updates an existing customer address
|
|
3999
4294
|
* @description: Update the user address - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updateAddress/).
|
|
@@ -4049,7 +4344,7 @@ class Cart {
|
|
|
4049
4344
|
|
|
4050
4345
|
const {
|
|
4051
4346
|
error: res_error,
|
|
4052
|
-
} = CartPlatformModel.
|
|
4347
|
+
} = CartPlatformModel.UpdateAddressDetails().validate(responseData, {
|
|
4053
4348
|
abortEarly: false,
|
|
4054
4349
|
allowUnknown: true,
|
|
4055
4350
|
});
|
|
@@ -4072,7 +4367,7 @@ class Cart {
|
|
|
4072
4367
|
* @param {CartPlatformApplicationValidator.UpdateCartParam} arg - Arg object
|
|
4073
4368
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4074
4369
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4075
|
-
* @returns {Promise<CartPlatformModel.
|
|
4370
|
+
* @returns {Promise<CartPlatformModel.UpdateCartDetailResult>} - Success response
|
|
4076
4371
|
* @name updateCart
|
|
4077
4372
|
* @summary: Update cart items
|
|
4078
4373
|
* @description: 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/platform/cart/updateCart/).
|
|
@@ -4131,7 +4426,7 @@ class Cart {
|
|
|
4131
4426
|
|
|
4132
4427
|
const {
|
|
4133
4428
|
error: res_error,
|
|
4134
|
-
} = CartPlatformModel.
|
|
4429
|
+
} = CartPlatformModel.UpdateCartDetailResult().validate(responseData, {
|
|
4135
4430
|
abortEarly: false,
|
|
4136
4431
|
allowUnknown: true,
|
|
4137
4432
|
});
|
|
@@ -4154,7 +4449,7 @@ class Cart {
|
|
|
4154
4449
|
* @param {CartPlatformApplicationValidator.UpdateCartMetaParam} arg - Arg object
|
|
4155
4450
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4156
4451
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4157
|
-
* @returns {Promise<CartPlatformModel.
|
|
4452
|
+
* @returns {Promise<CartPlatformModel.CartMetaDetails>} - Success response
|
|
4158
4453
|
* @name updateCartMeta
|
|
4159
4454
|
* @summary: Update cart metadata
|
|
4160
4455
|
* @description: Add or modify 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/platform/cart/updateCartMeta/).
|
|
@@ -4216,7 +4511,7 @@ class Cart {
|
|
|
4216
4511
|
|
|
4217
4512
|
const {
|
|
4218
4513
|
error: res_error,
|
|
4219
|
-
} = CartPlatformModel.
|
|
4514
|
+
} = CartPlatformModel.CartMetaDetails().validate(responseData, {
|
|
4220
4515
|
abortEarly: false,
|
|
4221
4516
|
allowUnknown: true,
|
|
4222
4517
|
});
|
|
@@ -4322,7 +4617,7 @@ class Cart {
|
|
|
4322
4617
|
* @param {CartPlatformApplicationValidator.UpdateCartUserParam} arg - Arg object
|
|
4323
4618
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4324
4619
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4325
|
-
* @returns {Promise<CartPlatformModel.
|
|
4620
|
+
* @returns {Promise<CartPlatformModel.UserCartMappingResult>} - Success response
|
|
4326
4621
|
* @name updateCartUser
|
|
4327
4622
|
* @summary: Update user of a cart
|
|
4328
4623
|
* @description: Modify the cart user to a new valid customer for the provided customer ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updateCartUser/).
|
|
@@ -4381,7 +4676,7 @@ class Cart {
|
|
|
4381
4676
|
|
|
4382
4677
|
const {
|
|
4383
4678
|
error: res_error,
|
|
4384
|
-
} = CartPlatformModel.
|
|
4679
|
+
} = CartPlatformModel.UserCartMappingResult().validate(responseData, {
|
|
4385
4680
|
abortEarly: false,
|
|
4386
4681
|
allowUnknown: true,
|
|
4387
4682
|
});
|
|
@@ -4406,7 +4701,7 @@ class Cart {
|
|
|
4406
4701
|
*
|
|
4407
4702
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4408
4703
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4409
|
-
* @returns {Promise<CartPlatformModel.
|
|
4704
|
+
* @returns {Promise<CartPlatformModel.SharedCartResult>} - Success response
|
|
4410
4705
|
* @name updateCartWithSharedItems
|
|
4411
4706
|
* @summary: Update shared cart items
|
|
4412
4707
|
* @description: Customer can either merge or replace shared cart items with existing cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updateCartWithSharedItems/).
|
|
@@ -4467,7 +4762,7 @@ class Cart {
|
|
|
4467
4762
|
|
|
4468
4763
|
const {
|
|
4469
4764
|
error: res_error,
|
|
4470
|
-
} = CartPlatformModel.
|
|
4765
|
+
} = CartPlatformModel.SharedCartResult().validate(responseData, {
|
|
4471
4766
|
abortEarly: false,
|
|
4472
4767
|
allowUnknown: true,
|
|
4473
4768
|
});
|
|
@@ -4490,7 +4785,7 @@ class Cart {
|
|
|
4490
4785
|
* @param {CartPlatformApplicationValidator.UpdateCouponParam} arg - Arg object
|
|
4491
4786
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4492
4787
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4493
|
-
* @returns {Promise<CartPlatformModel.
|
|
4788
|
+
* @returns {Promise<CartPlatformModel.CouponCreateResult>} - Success response
|
|
4494
4789
|
* @name updateCoupon
|
|
4495
4790
|
* @summary: Update a coupon
|
|
4496
4791
|
* @description: Update the details of an existing coupon by specifying its unique identifier. This includes modifying coupon attributes such as discount percentage, validity period, and associated conditions. Leveraging this functionality allows businesses to quickly adapt their promotional strategies to changing market dynamics. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updateCoupon/).
|
|
@@ -4546,7 +4841,7 @@ class Cart {
|
|
|
4546
4841
|
|
|
4547
4842
|
const {
|
|
4548
4843
|
error: res_error,
|
|
4549
|
-
} = CartPlatformModel.
|
|
4844
|
+
} = CartPlatformModel.CouponCreateResult().validate(responseData, {
|
|
4550
4845
|
abortEarly: false,
|
|
4551
4846
|
allowUnknown: true,
|
|
4552
4847
|
});
|
|
@@ -4654,7 +4949,7 @@ class Cart {
|
|
|
4654
4949
|
*
|
|
4655
4950
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4656
4951
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4657
|
-
* @returns {Promise<CartPlatformModel.
|
|
4952
|
+
* @returns {Promise<CartPlatformModel.GetPriceAdjustmentResult>} - Success response
|
|
4658
4953
|
* @name updatePriceAdjustment
|
|
4659
4954
|
* @summary: Update price adjustments
|
|
4660
4955
|
* @description: Modify price adjustments for specific items in the cart. By providing the seller ID, sales channel ID, and price adjustment ID, seller can apply discounts or other adjustments to the prices of cart items, facilitating dynamic pricing strategies. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updatePriceAdjustment/).
|
|
@@ -4712,7 +5007,7 @@ class Cart {
|
|
|
4712
5007
|
|
|
4713
5008
|
const {
|
|
4714
5009
|
error: res_error,
|
|
4715
|
-
} = CartPlatformModel.
|
|
5010
|
+
} = CartPlatformModel.GetPriceAdjustmentResult().validate(responseData, {
|
|
4716
5011
|
abortEarly: false,
|
|
4717
5012
|
allowUnknown: true,
|
|
4718
5013
|
});
|
|
@@ -4735,7 +5030,7 @@ class Cart {
|
|
|
4735
5030
|
* @param {CartPlatformApplicationValidator.UpdatePromotionParam} arg - Arg object
|
|
4736
5031
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4737
5032
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4738
|
-
* @returns {Promise<CartPlatformModel.
|
|
5033
|
+
* @returns {Promise<CartPlatformModel.PromotionUpdateResult>} - Success response
|
|
4739
5034
|
* @name updatePromotion
|
|
4740
5035
|
* @summary: Update a promotion
|
|
4741
5036
|
* @description: Update the details of an existing promotion by specifying its unique identifier. This includes modifying promotion attributes such as discount percentage, validity period, and associated conditions. Leveraging this functionality allows businesses to quickly adapt their promotional strategies to changing market dynamics. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updatePromotion/).
|
|
@@ -4793,7 +5088,7 @@ class Cart {
|
|
|
4793
5088
|
|
|
4794
5089
|
const {
|
|
4795
5090
|
error: res_error,
|
|
4796
|
-
} = CartPlatformModel.
|
|
5091
|
+
} = CartPlatformModel.PromotionUpdateResult().validate(responseData, {
|
|
4797
5092
|
abortEarly: false,
|
|
4798
5093
|
allowUnknown: true,
|
|
4799
5094
|
});
|
|
@@ -4899,7 +5194,7 @@ class Cart {
|
|
|
4899
5194
|
* @param {CartPlatformApplicationValidator.UpdateShipmentsParam} arg - Arg object
|
|
4900
5195
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4901
5196
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4902
|
-
* @returns {Promise<CartPlatformModel.
|
|
5197
|
+
* @returns {Promise<CartPlatformModel.PlatformCartShipmentsResult>} -
|
|
4903
5198
|
* Success response
|
|
4904
5199
|
* @name updateShipments
|
|
4905
5200
|
* @summary: Update shipments
|
|
@@ -4976,10 +5271,10 @@ class Cart {
|
|
|
4976
5271
|
|
|
4977
5272
|
const {
|
|
4978
5273
|
error: res_error,
|
|
4979
|
-
} = CartPlatformModel.
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
);
|
|
5274
|
+
} = CartPlatformModel.PlatformCartShipmentsResult().validate(responseData, {
|
|
5275
|
+
abortEarly: false,
|
|
5276
|
+
allowUnknown: true,
|
|
5277
|
+
});
|
|
4983
5278
|
|
|
4984
5279
|
if (res_error) {
|
|
4985
5280
|
if (this.config.options.strictResponseCheck === true) {
|