@gofynd/fdk-client-javascript 1.4.15-beta.1 → 1.4.15-beta.3
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 +111 -1200
- 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 +52 -95
- package/sdk/application/Content/ContentApplicationClient.js +46 -990
- 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 +89 -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 +93 -213
- package/sdk/application/Payment/PaymentApplicationClient.js +49 -2109
- 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 +126 -20
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +970 -20
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1200 -167
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +571 -160
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +10 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +121 -7
- 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 +419 -115
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +118 -65
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +109 -44
- package/sdk/platform/Cart/CartPlatformModel.d.ts +5067 -1300
- package/sdk/platform/Cart/CartPlatformModel.js +1988 -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 +154 -117
- package/sdk/platform/Catalog/CatalogPlatformClient.js +292 -172
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6506 -1775
- package/sdk/platform/Catalog/CatalogPlatformModel.js +3224 -1690
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +72 -31
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +50 -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 +124 -141
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +449 -422
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +179 -141
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +168 -130
- package/sdk/platform/Content/ContentPlatformClient.d.ts +142 -106
- package/sdk/platform/Content/ContentPlatformClient.js +523 -336
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1241 -395
- package/sdk/platform/Content/ContentPlatformModel.js +521 -390
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +168 -117
- package/sdk/platform/Content/ContentPlatformValidator.js +162 -108
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +14 -12
- package/sdk/platform/Discount/DiscountPlatformClient.js +14 -12
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +94 -36
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +462 -60
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +62 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +75 -13
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +370 -101
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +313 -84
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +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 +416 -198
- package/sdk/platform/Order/OrderPlatformModel.d.ts +7602 -1269
- package/sdk/platform/Order/OrderPlatformModel.js +3926 -1269
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +270 -109
- package/sdk/platform/Order/OrderPlatformValidator.js +135 -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 +40 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +58 -64
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1893 -623
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +924 -568
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +42 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +26 -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,15 +2835,21 @@ 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(
|
|
2661
|
-
{
|
|
2662
|
-
|
|
2663
|
-
|
|
2844
|
+
{
|
|
2845
|
+
slug,
|
|
2846
|
+
pageSize,
|
|
2847
|
+
promotionGroup,
|
|
2848
|
+
storeId,
|
|
2849
|
+
cartType,
|
|
2850
|
+
sortBy,
|
|
2851
|
+
requestHeaders,
|
|
2852
|
+
} = { requestHeaders: {} },
|
|
2664
2853
|
{ responseHeaders } = { responseHeaders: false }
|
|
2665
2854
|
) {
|
|
2666
2855
|
const {
|
|
@@ -2672,6 +2861,7 @@ class Cart {
|
|
|
2672
2861
|
promotionGroup,
|
|
2673
2862
|
storeId,
|
|
2674
2863
|
cartType,
|
|
2864
|
+
sortBy,
|
|
2675
2865
|
},
|
|
2676
2866
|
{ abortEarly: false, allowUnknown: true }
|
|
2677
2867
|
);
|
|
@@ -2689,6 +2879,7 @@ class Cart {
|
|
|
2689
2879
|
promotionGroup,
|
|
2690
2880
|
storeId,
|
|
2691
2881
|
cartType,
|
|
2882
|
+
sortBy,
|
|
2692
2883
|
},
|
|
2693
2884
|
{ abortEarly: false, allowUnknown: false }
|
|
2694
2885
|
);
|
|
@@ -2705,6 +2896,7 @@ class Cart {
|
|
|
2705
2896
|
query_params["promotion_group"] = promotionGroup;
|
|
2706
2897
|
query_params["store_id"] = storeId;
|
|
2707
2898
|
query_params["cart_type"] = cartType;
|
|
2899
|
+
query_params["sort_by"] = sortBy;
|
|
2708
2900
|
|
|
2709
2901
|
const response = await PlatformAPIClient.execute(
|
|
2710
2902
|
this.config,
|
|
@@ -2723,7 +2915,7 @@ class Cart {
|
|
|
2723
2915
|
|
|
2724
2916
|
const {
|
|
2725
2917
|
error: res_error,
|
|
2726
|
-
} = CartPlatformModel.
|
|
2918
|
+
} = CartPlatformModel.PromotionOffersDetails().validate(responseData, {
|
|
2727
2919
|
abortEarly: false,
|
|
2728
2920
|
allowUnknown: true,
|
|
2729
2921
|
});
|
|
@@ -2748,7 +2940,7 @@ class Cart {
|
|
|
2748
2940
|
*
|
|
2749
2941
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2750
2942
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2751
|
-
* @returns {Promise<CartPlatformModel.
|
|
2943
|
+
* @returns {Promise<CartPlatformModel.PromotionPaymentOffersDetails>} -
|
|
2752
2944
|
* Success response
|
|
2753
2945
|
* @name getPromotionPaymentOffers
|
|
2754
2946
|
* @summary: Fetch available promotions payment offers
|
|
@@ -2809,7 +3001,7 @@ class Cart {
|
|
|
2809
3001
|
|
|
2810
3002
|
const {
|
|
2811
3003
|
error: res_error,
|
|
2812
|
-
} = CartPlatformModel.
|
|
3004
|
+
} = CartPlatformModel.PromotionPaymentOffersDetails().validate(
|
|
2813
3005
|
responseData,
|
|
2814
3006
|
{ abortEarly: false, allowUnknown: true }
|
|
2815
3007
|
);
|
|
@@ -2832,9 +3024,9 @@ class Cart {
|
|
|
2832
3024
|
* @param {CartPlatformApplicationValidator.GetPromotionsParam} arg - Arg object
|
|
2833
3025
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2834
3026
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2835
|
-
* @returns {Promise<CartPlatformModel.
|
|
3027
|
+
* @returns {Promise<CartPlatformModel.PromotionsResult>} - Success response
|
|
2836
3028
|
* @name getPromotions
|
|
2837
|
-
* @summary: List promotions
|
|
3029
|
+
* @summary: List of promotions
|
|
2838
3030
|
* @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
3031
|
*/
|
|
2840
3032
|
async getPromotions(
|
|
@@ -2847,6 +3039,13 @@ class Cart {
|
|
|
2847
3039
|
promotionType,
|
|
2848
3040
|
fpPanel,
|
|
2849
3041
|
promotionId,
|
|
3042
|
+
createdBy,
|
|
3043
|
+
reviewedBy,
|
|
3044
|
+
approvedStartTime,
|
|
3045
|
+
approvedEndTime,
|
|
3046
|
+
reviewStartTime,
|
|
3047
|
+
reviewEndTime,
|
|
3048
|
+
status,
|
|
2850
3049
|
requestHeaders,
|
|
2851
3050
|
} = { requestHeaders: {} },
|
|
2852
3051
|
{ responseHeaders } = { responseHeaders: false }
|
|
@@ -2861,6 +3060,13 @@ class Cart {
|
|
|
2861
3060
|
promotionType,
|
|
2862
3061
|
fpPanel,
|
|
2863
3062
|
promotionId,
|
|
3063
|
+
createdBy,
|
|
3064
|
+
reviewedBy,
|
|
3065
|
+
approvedStartTime,
|
|
3066
|
+
approvedEndTime,
|
|
3067
|
+
reviewStartTime,
|
|
3068
|
+
reviewEndTime,
|
|
3069
|
+
status,
|
|
2864
3070
|
},
|
|
2865
3071
|
{ abortEarly: false, allowUnknown: true }
|
|
2866
3072
|
);
|
|
@@ -2881,6 +3087,13 @@ class Cart {
|
|
|
2881
3087
|
promotionType,
|
|
2882
3088
|
fpPanel,
|
|
2883
3089
|
promotionId,
|
|
3090
|
+
createdBy,
|
|
3091
|
+
reviewedBy,
|
|
3092
|
+
approvedStartTime,
|
|
3093
|
+
approvedEndTime,
|
|
3094
|
+
reviewStartTime,
|
|
3095
|
+
reviewEndTime,
|
|
3096
|
+
status,
|
|
2884
3097
|
},
|
|
2885
3098
|
{ abortEarly: false, allowUnknown: false }
|
|
2886
3099
|
);
|
|
@@ -2900,6 +3113,13 @@ class Cart {
|
|
|
2900
3113
|
query_params["promotion_type"] = promotionType;
|
|
2901
3114
|
query_params["fp_panel"] = fpPanel;
|
|
2902
3115
|
query_params["promotion_id"] = promotionId;
|
|
3116
|
+
query_params["created_by"] = createdBy;
|
|
3117
|
+
query_params["reviewed_by"] = reviewedBy;
|
|
3118
|
+
query_params["approved_start_time"] = approvedStartTime;
|
|
3119
|
+
query_params["approved_end_time"] = approvedEndTime;
|
|
3120
|
+
query_params["review_start_time"] = reviewStartTime;
|
|
3121
|
+
query_params["review_end_time"] = reviewEndTime;
|
|
3122
|
+
query_params["status"] = status;
|
|
2903
3123
|
|
|
2904
3124
|
const response = await PlatformAPIClient.execute(
|
|
2905
3125
|
this.config,
|
|
@@ -2918,7 +3138,7 @@ class Cart {
|
|
|
2918
3138
|
|
|
2919
3139
|
const {
|
|
2920
3140
|
error: res_error,
|
|
2921
|
-
} = CartPlatformModel.
|
|
3141
|
+
} = CartPlatformModel.PromotionsResult().validate(responseData, {
|
|
2922
3142
|
abortEarly: false,
|
|
2923
3143
|
allowUnknown: true,
|
|
2924
3144
|
});
|
|
@@ -2941,7 +3161,7 @@ class Cart {
|
|
|
2941
3161
|
* @param {CartPlatformApplicationValidator.GetShipmentsParam} arg - Arg object
|
|
2942
3162
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2943
3163
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2944
|
-
* @returns {Promise<CartPlatformModel.
|
|
3164
|
+
* @returns {Promise<CartPlatformModel.PlatformCartShipmentsResult>} -
|
|
2945
3165
|
* Success response
|
|
2946
3166
|
* @name getShipments
|
|
2947
3167
|
* @summary: Get shipments details
|
|
@@ -3028,10 +3248,10 @@ class Cart {
|
|
|
3028
3248
|
|
|
3029
3249
|
const {
|
|
3030
3250
|
error: res_error,
|
|
3031
|
-
} = CartPlatformModel.
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
);
|
|
3251
|
+
} = CartPlatformModel.PlatformCartShipmentsResult().validate(responseData, {
|
|
3252
|
+
abortEarly: false,
|
|
3253
|
+
allowUnknown: true,
|
|
3254
|
+
});
|
|
3035
3255
|
|
|
3036
3256
|
if (res_error) {
|
|
3037
3257
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -3053,7 +3273,7 @@ class Cart {
|
|
|
3053
3273
|
*
|
|
3054
3274
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3055
3275
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3056
|
-
* @returns {Promise<CartPlatformModel.
|
|
3276
|
+
* @returns {Promise<CartPlatformModel.StoreDetails>} - Success response
|
|
3057
3277
|
* @name getStoreAddressByUid
|
|
3058
3278
|
* @summary: Get Store Address
|
|
3059
3279
|
* @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 +3330,7 @@ class Cart {
|
|
|
3110
3330
|
|
|
3111
3331
|
const {
|
|
3112
3332
|
error: res_error,
|
|
3113
|
-
} = CartPlatformModel.
|
|
3333
|
+
} = CartPlatformModel.StoreDetails().validate(responseData, {
|
|
3114
3334
|
abortEarly: false,
|
|
3115
3335
|
allowUnknown: true,
|
|
3116
3336
|
});
|
|
@@ -3133,7 +3353,7 @@ class Cart {
|
|
|
3133
3353
|
* @param {CartPlatformApplicationValidator.OverrideCartParam} arg - Arg object
|
|
3134
3354
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3135
3355
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3136
|
-
* @returns {Promise<CartPlatformModel.
|
|
3356
|
+
* @returns {Promise<CartPlatformModel.OverrideCheckoutResult>} - Success response
|
|
3137
3357
|
* @name overrideCart
|
|
3138
3358
|
* @summary: Update cart checkout
|
|
3139
3359
|
* @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 +3407,7 @@ class Cart {
|
|
|
3187
3407
|
|
|
3188
3408
|
const {
|
|
3189
3409
|
error: res_error,
|
|
3190
|
-
} = CartPlatformModel.
|
|
3410
|
+
} = CartPlatformModel.OverrideCheckoutResult().validate(responseData, {
|
|
3191
3411
|
abortEarly: false,
|
|
3192
3412
|
allowUnknown: true,
|
|
3193
3413
|
});
|
|
@@ -3210,7 +3430,7 @@ class Cart {
|
|
|
3210
3430
|
* @param {CartPlatformApplicationValidator.PlatformAddItemsParam} arg - Arg object
|
|
3211
3431
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3212
3432
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3213
|
-
* @returns {Promise<CartPlatformModel.
|
|
3433
|
+
* @returns {Promise<CartPlatformModel.AddCartDetailResult>} - Success response
|
|
3214
3434
|
* @name platformAddItems
|
|
3215
3435
|
* @summary: Add items to cart
|
|
3216
3436
|
* @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 +3503,7 @@ class Cart {
|
|
|
3283
3503
|
|
|
3284
3504
|
const {
|
|
3285
3505
|
error: res_error,
|
|
3286
|
-
} = CartPlatformModel.
|
|
3506
|
+
} = CartPlatformModel.AddCartDetailResult().validate(responseData, {
|
|
3287
3507
|
abortEarly: false,
|
|
3288
3508
|
allowUnknown: true,
|
|
3289
3509
|
});
|
|
@@ -3302,13 +3522,97 @@ class Cart {
|
|
|
3302
3522
|
return response;
|
|
3303
3523
|
}
|
|
3304
3524
|
|
|
3525
|
+
/**
|
|
3526
|
+
* @param {CartPlatformApplicationValidator.PlatformCheckoutCartParam} arg
|
|
3527
|
+
* - Arg object
|
|
3528
|
+
*
|
|
3529
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3530
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3531
|
+
* @returns {Promise<CartPlatformModel.CartCheckoutResult>} - Success response
|
|
3532
|
+
* @name platformCheckoutCart
|
|
3533
|
+
* @summary: Checkout cart
|
|
3534
|
+
* @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/).
|
|
3535
|
+
*/
|
|
3536
|
+
async platformCheckoutCart(
|
|
3537
|
+
{ body, id, requestHeaders } = { requestHeaders: {} },
|
|
3538
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
3539
|
+
) {
|
|
3540
|
+
const {
|
|
3541
|
+
error,
|
|
3542
|
+
} = CartPlatformApplicationValidator.platformCheckoutCart().validate(
|
|
3543
|
+
{
|
|
3544
|
+
body,
|
|
3545
|
+
id,
|
|
3546
|
+
},
|
|
3547
|
+
{ abortEarly: false, allowUnknown: true }
|
|
3548
|
+
);
|
|
3549
|
+
if (error) {
|
|
3550
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
3551
|
+
}
|
|
3552
|
+
|
|
3553
|
+
// Showing warrnings if extra unknown parameters are found
|
|
3554
|
+
const {
|
|
3555
|
+
error: warrning,
|
|
3556
|
+
} = CartPlatformApplicationValidator.platformCheckoutCart().validate(
|
|
3557
|
+
{
|
|
3558
|
+
body,
|
|
3559
|
+
id,
|
|
3560
|
+
},
|
|
3561
|
+
{ abortEarly: false, allowUnknown: false }
|
|
3562
|
+
);
|
|
3563
|
+
if (warrning) {
|
|
3564
|
+
Logger({
|
|
3565
|
+
level: "WARN",
|
|
3566
|
+
message: `Parameter Validation warrnings for platform > Cart > platformCheckoutCart \n ${warrning}`,
|
|
3567
|
+
});
|
|
3568
|
+
}
|
|
3569
|
+
|
|
3570
|
+
const query_params = {};
|
|
3571
|
+
query_params["id"] = id;
|
|
3572
|
+
|
|
3573
|
+
const response = await PlatformAPIClient.execute(
|
|
3574
|
+
this.config,
|
|
3575
|
+
"post",
|
|
3576
|
+
`/service/platform/cart/v1.0/company/${this.config.companyId}/application/${this.applicationId}/checkout`,
|
|
3577
|
+
query_params,
|
|
3578
|
+
body,
|
|
3579
|
+
requestHeaders,
|
|
3580
|
+
{ responseHeaders }
|
|
3581
|
+
);
|
|
3582
|
+
|
|
3583
|
+
let responseData = response;
|
|
3584
|
+
if (responseHeaders) {
|
|
3585
|
+
responseData = response[0];
|
|
3586
|
+
}
|
|
3587
|
+
|
|
3588
|
+
const {
|
|
3589
|
+
error: res_error,
|
|
3590
|
+
} = CartPlatformModel.CartCheckoutResult().validate(responseData, {
|
|
3591
|
+
abortEarly: false,
|
|
3592
|
+
allowUnknown: true,
|
|
3593
|
+
});
|
|
3594
|
+
|
|
3595
|
+
if (res_error) {
|
|
3596
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3597
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3598
|
+
} else {
|
|
3599
|
+
Logger({
|
|
3600
|
+
level: "WARN",
|
|
3601
|
+
message: `Response Validation Warnings for platform > Cart > platformCheckoutCart \n ${res_error}`,
|
|
3602
|
+
});
|
|
3603
|
+
}
|
|
3604
|
+
}
|
|
3605
|
+
|
|
3606
|
+
return response;
|
|
3607
|
+
}
|
|
3608
|
+
|
|
3305
3609
|
/**
|
|
3306
3610
|
* @param {CartPlatformApplicationValidator.PlatformCheckoutCartV2Param} arg
|
|
3307
3611
|
* - Arg object
|
|
3308
3612
|
*
|
|
3309
3613
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3310
3614
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3311
|
-
* @returns {Promise<CartPlatformModel.
|
|
3615
|
+
* @returns {Promise<CartPlatformModel.CartCheckoutDetails>} - Success response
|
|
3312
3616
|
* @name platformCheckoutCartV2
|
|
3313
3617
|
* @summary: Checkout cart
|
|
3314
3618
|
* @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 +3671,7 @@ class Cart {
|
|
|
3367
3671
|
|
|
3368
3672
|
const {
|
|
3369
3673
|
error: res_error,
|
|
3370
|
-
} = CartPlatformModel.
|
|
3674
|
+
} = CartPlatformModel.CartCheckoutDetails().validate(responseData, {
|
|
3371
3675
|
abortEarly: false,
|
|
3372
3676
|
allowUnknown: true,
|
|
3373
3677
|
});
|
|
@@ -3390,7 +3694,7 @@ class Cart {
|
|
|
3390
3694
|
* @param {CartPlatformApplicationValidator.PlatformUpdateCartParam} arg - Arg object
|
|
3391
3695
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3392
3696
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3393
|
-
* @returns {Promise<CartPlatformModel.
|
|
3697
|
+
* @returns {Promise<CartPlatformModel.UpdateCartDetailResult>} - Success response
|
|
3394
3698
|
* @name platformUpdateCart
|
|
3395
3699
|
* @summary: Update cart items
|
|
3396
3700
|
* @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 +3767,7 @@ class Cart {
|
|
|
3463
3767
|
|
|
3464
3768
|
const {
|
|
3465
3769
|
error: res_error,
|
|
3466
|
-
} = CartPlatformModel.
|
|
3770
|
+
} = CartPlatformModel.UpdateCartDetailResult().validate(responseData, {
|
|
3467
3771
|
abortEarly: false,
|
|
3468
3772
|
allowUnknown: true,
|
|
3469
3773
|
});
|
|
@@ -3486,7 +3790,7 @@ class Cart {
|
|
|
3486
3790
|
* @param {CartPlatformApplicationValidator.RemoveAddressParam} arg - Arg object
|
|
3487
3791
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3488
3792
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3489
|
-
* @returns {Promise<CartPlatformModel.
|
|
3793
|
+
* @returns {Promise<CartPlatformModel.DeleteAddressResult>} - Success response
|
|
3490
3794
|
* @name removeAddress
|
|
3491
3795
|
* @summary: Removes an address from a customer's address list
|
|
3492
3796
|
* @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 +3847,7 @@ class Cart {
|
|
|
3543
3847
|
|
|
3544
3848
|
const {
|
|
3545
3849
|
error: res_error,
|
|
3546
|
-
} = CartPlatformModel.
|
|
3850
|
+
} = CartPlatformModel.DeleteAddressResult().validate(responseData, {
|
|
3547
3851
|
abortEarly: false,
|
|
3548
3852
|
allowUnknown: true,
|
|
3549
3853
|
});
|
|
@@ -3566,7 +3870,7 @@ class Cart {
|
|
|
3566
3870
|
* @param {CartPlatformApplicationValidator.RemoveCouponParam} arg - Arg object
|
|
3567
3871
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3568
3872
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3569
|
-
* @returns {Promise<CartPlatformModel.
|
|
3873
|
+
* @returns {Promise<CartPlatformModel.CartDetailResult>} - Success response
|
|
3570
3874
|
* @name removeCoupon
|
|
3571
3875
|
* @summary: Remove coupon
|
|
3572
3876
|
* @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 +3928,7 @@ class Cart {
|
|
|
3624
3928
|
|
|
3625
3929
|
const {
|
|
3626
3930
|
error: res_error,
|
|
3627
|
-
} = CartPlatformModel.
|
|
3931
|
+
} = CartPlatformModel.CartDetailResult().validate(responseData, {
|
|
3628
3932
|
abortEarly: false,
|
|
3629
3933
|
allowUnknown: true,
|
|
3630
3934
|
});
|
|
@@ -3728,7 +4032,7 @@ class Cart {
|
|
|
3728
4032
|
* @param {CartPlatformApplicationValidator.SelectAddressParam} arg - Arg object
|
|
3729
4033
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3730
4034
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3731
|
-
* @returns {Promise<CartPlatformModel.
|
|
4035
|
+
* @returns {Promise<CartPlatformModel.CartDetailResult>} - Success response
|
|
3732
4036
|
* @name selectAddress
|
|
3733
4037
|
* @summary: Select customer address for order processing
|
|
3734
4038
|
* @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 +4098,7 @@ class Cart {
|
|
|
3794
4098
|
|
|
3795
4099
|
const {
|
|
3796
4100
|
error: res_error,
|
|
3797
|
-
} = CartPlatformModel.
|
|
4101
|
+
} = CartPlatformModel.CartDetailResult().validate(responseData, {
|
|
3798
4102
|
abortEarly: false,
|
|
3799
4103
|
allowUnknown: true,
|
|
3800
4104
|
});
|
|
@@ -3817,7 +4121,7 @@ class Cart {
|
|
|
3817
4121
|
* @param {CartPlatformApplicationValidator.SelectPaymentModeParam} arg - Arg object
|
|
3818
4122
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3819
4123
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3820
|
-
* @returns {Promise<CartPlatformModel.
|
|
4124
|
+
* @returns {Promise<CartPlatformModel.CartDetailResult>} - Success response
|
|
3821
4125
|
* @name selectPaymentMode
|
|
3822
4126
|
* @summary: Select payment mode
|
|
3823
4127
|
* @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 +4186,7 @@ class Cart {
|
|
|
3882
4186
|
|
|
3883
4187
|
const {
|
|
3884
4188
|
error: res_error,
|
|
3885
|
-
} = CartPlatformModel.
|
|
4189
|
+
} = CartPlatformModel.CartDetailResult().validate(responseData, {
|
|
3886
4190
|
abortEarly: false,
|
|
3887
4191
|
allowUnknown: true,
|
|
3888
4192
|
});
|
|
@@ -3905,7 +4209,7 @@ class Cart {
|
|
|
3905
4209
|
* @param {CartPlatformApplicationValidator.SelectPaymentModeV2Param} arg - Arg object
|
|
3906
4210
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3907
4211
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3908
|
-
* @returns {Promise<CartPlatformModel.
|
|
4212
|
+
* @returns {Promise<CartPlatformModel.CartDetailResult>} - Success response
|
|
3909
4213
|
* @name selectPaymentModeV2
|
|
3910
4214
|
* @summary: Select payment mode (latest)
|
|
3911
4215
|
* @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 +4274,7 @@ class Cart {
|
|
|
3970
4274
|
|
|
3971
4275
|
const {
|
|
3972
4276
|
error: res_error,
|
|
3973
|
-
} = CartPlatformModel.
|
|
4277
|
+
} = CartPlatformModel.CartDetailResult().validate(responseData, {
|
|
3974
4278
|
abortEarly: false,
|
|
3975
4279
|
allowUnknown: true,
|
|
3976
4280
|
});
|
|
@@ -3993,7 +4297,7 @@ class Cart {
|
|
|
3993
4297
|
* @param {CartPlatformApplicationValidator.UpdateAddressParam} arg - Arg object
|
|
3994
4298
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3995
4299
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3996
|
-
* @returns {Promise<CartPlatformModel.
|
|
4300
|
+
* @returns {Promise<CartPlatformModel.UpdateAddressDetails>} - Success response
|
|
3997
4301
|
* @name updateAddress
|
|
3998
4302
|
* @summary: Updates an existing customer address
|
|
3999
4303
|
* @description: Update the user address - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/cart/updateAddress/).
|
|
@@ -4049,7 +4353,7 @@ class Cart {
|
|
|
4049
4353
|
|
|
4050
4354
|
const {
|
|
4051
4355
|
error: res_error,
|
|
4052
|
-
} = CartPlatformModel.
|
|
4356
|
+
} = CartPlatformModel.UpdateAddressDetails().validate(responseData, {
|
|
4053
4357
|
abortEarly: false,
|
|
4054
4358
|
allowUnknown: true,
|
|
4055
4359
|
});
|
|
@@ -4072,7 +4376,7 @@ class Cart {
|
|
|
4072
4376
|
* @param {CartPlatformApplicationValidator.UpdateCartParam} arg - Arg object
|
|
4073
4377
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4074
4378
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4075
|
-
* @returns {Promise<CartPlatformModel.
|
|
4379
|
+
* @returns {Promise<CartPlatformModel.UpdateCartDetailResult>} - Success response
|
|
4076
4380
|
* @name updateCart
|
|
4077
4381
|
* @summary: Update cart items
|
|
4078
4382
|
* @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 +4435,7 @@ class Cart {
|
|
|
4131
4435
|
|
|
4132
4436
|
const {
|
|
4133
4437
|
error: res_error,
|
|
4134
|
-
} = CartPlatformModel.
|
|
4438
|
+
} = CartPlatformModel.UpdateCartDetailResult().validate(responseData, {
|
|
4135
4439
|
abortEarly: false,
|
|
4136
4440
|
allowUnknown: true,
|
|
4137
4441
|
});
|
|
@@ -4154,7 +4458,7 @@ class Cart {
|
|
|
4154
4458
|
* @param {CartPlatformApplicationValidator.UpdateCartMetaParam} arg - Arg object
|
|
4155
4459
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4156
4460
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4157
|
-
* @returns {Promise<CartPlatformModel.
|
|
4461
|
+
* @returns {Promise<CartPlatformModel.CartMetaDetails>} - Success response
|
|
4158
4462
|
* @name updateCartMeta
|
|
4159
4463
|
* @summary: Update cart metadata
|
|
4160
4464
|
* @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 +4520,7 @@ class Cart {
|
|
|
4216
4520
|
|
|
4217
4521
|
const {
|
|
4218
4522
|
error: res_error,
|
|
4219
|
-
} = CartPlatformModel.
|
|
4523
|
+
} = CartPlatformModel.CartMetaDetails().validate(responseData, {
|
|
4220
4524
|
abortEarly: false,
|
|
4221
4525
|
allowUnknown: true,
|
|
4222
4526
|
});
|
|
@@ -4322,7 +4626,7 @@ class Cart {
|
|
|
4322
4626
|
* @param {CartPlatformApplicationValidator.UpdateCartUserParam} arg - Arg object
|
|
4323
4627
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4324
4628
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4325
|
-
* @returns {Promise<CartPlatformModel.
|
|
4629
|
+
* @returns {Promise<CartPlatformModel.UserCartMappingResult>} - Success response
|
|
4326
4630
|
* @name updateCartUser
|
|
4327
4631
|
* @summary: Update user of a cart
|
|
4328
4632
|
* @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 +4685,7 @@ class Cart {
|
|
|
4381
4685
|
|
|
4382
4686
|
const {
|
|
4383
4687
|
error: res_error,
|
|
4384
|
-
} = CartPlatformModel.
|
|
4688
|
+
} = CartPlatformModel.UserCartMappingResult().validate(responseData, {
|
|
4385
4689
|
abortEarly: false,
|
|
4386
4690
|
allowUnknown: true,
|
|
4387
4691
|
});
|
|
@@ -4406,7 +4710,7 @@ class Cart {
|
|
|
4406
4710
|
*
|
|
4407
4711
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4408
4712
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4409
|
-
* @returns {Promise<CartPlatformModel.
|
|
4713
|
+
* @returns {Promise<CartPlatformModel.SharedCartResult>} - Success response
|
|
4410
4714
|
* @name updateCartWithSharedItems
|
|
4411
4715
|
* @summary: Update shared cart items
|
|
4412
4716
|
* @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 +4771,7 @@ class Cart {
|
|
|
4467
4771
|
|
|
4468
4772
|
const {
|
|
4469
4773
|
error: res_error,
|
|
4470
|
-
} = CartPlatformModel.
|
|
4774
|
+
} = CartPlatformModel.SharedCartResult().validate(responseData, {
|
|
4471
4775
|
abortEarly: false,
|
|
4472
4776
|
allowUnknown: true,
|
|
4473
4777
|
});
|
|
@@ -4490,7 +4794,7 @@ class Cart {
|
|
|
4490
4794
|
* @param {CartPlatformApplicationValidator.UpdateCouponParam} arg - Arg object
|
|
4491
4795
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4492
4796
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4493
|
-
* @returns {Promise<CartPlatformModel.
|
|
4797
|
+
* @returns {Promise<CartPlatformModel.CouponCreateResult>} - Success response
|
|
4494
4798
|
* @name updateCoupon
|
|
4495
4799
|
* @summary: Update a coupon
|
|
4496
4800
|
* @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 +4850,7 @@ class Cart {
|
|
|
4546
4850
|
|
|
4547
4851
|
const {
|
|
4548
4852
|
error: res_error,
|
|
4549
|
-
} = CartPlatformModel.
|
|
4853
|
+
} = CartPlatformModel.CouponCreateResult().validate(responseData, {
|
|
4550
4854
|
abortEarly: false,
|
|
4551
4855
|
allowUnknown: true,
|
|
4552
4856
|
});
|
|
@@ -4654,7 +4958,7 @@ class Cart {
|
|
|
4654
4958
|
*
|
|
4655
4959
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4656
4960
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4657
|
-
* @returns {Promise<CartPlatformModel.
|
|
4961
|
+
* @returns {Promise<CartPlatformModel.GetPriceAdjustmentResult>} - Success response
|
|
4658
4962
|
* @name updatePriceAdjustment
|
|
4659
4963
|
* @summary: Update price adjustments
|
|
4660
4964
|
* @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 +5016,7 @@ class Cart {
|
|
|
4712
5016
|
|
|
4713
5017
|
const {
|
|
4714
5018
|
error: res_error,
|
|
4715
|
-
} = CartPlatformModel.
|
|
5019
|
+
} = CartPlatformModel.GetPriceAdjustmentResult().validate(responseData, {
|
|
4716
5020
|
abortEarly: false,
|
|
4717
5021
|
allowUnknown: true,
|
|
4718
5022
|
});
|
|
@@ -4735,7 +5039,7 @@ class Cart {
|
|
|
4735
5039
|
* @param {CartPlatformApplicationValidator.UpdatePromotionParam} arg - Arg object
|
|
4736
5040
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4737
5041
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4738
|
-
* @returns {Promise<CartPlatformModel.
|
|
5042
|
+
* @returns {Promise<CartPlatformModel.PromotionUpdateResult>} - Success response
|
|
4739
5043
|
* @name updatePromotion
|
|
4740
5044
|
* @summary: Update a promotion
|
|
4741
5045
|
* @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 +5097,7 @@ class Cart {
|
|
|
4793
5097
|
|
|
4794
5098
|
const {
|
|
4795
5099
|
error: res_error,
|
|
4796
|
-
} = CartPlatformModel.
|
|
5100
|
+
} = CartPlatformModel.PromotionUpdateResult().validate(responseData, {
|
|
4797
5101
|
abortEarly: false,
|
|
4798
5102
|
allowUnknown: true,
|
|
4799
5103
|
});
|
|
@@ -4899,7 +5203,7 @@ class Cart {
|
|
|
4899
5203
|
* @param {CartPlatformApplicationValidator.UpdateShipmentsParam} arg - Arg object
|
|
4900
5204
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4901
5205
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4902
|
-
* @returns {Promise<CartPlatformModel.
|
|
5206
|
+
* @returns {Promise<CartPlatformModel.PlatformCartShipmentsResult>} -
|
|
4903
5207
|
* Success response
|
|
4904
5208
|
* @name updateShipments
|
|
4905
5209
|
* @summary: Update shipments
|
|
@@ -4976,10 +5280,10 @@ class Cart {
|
|
|
4976
5280
|
|
|
4977
5281
|
const {
|
|
4978
5282
|
error: res_error,
|
|
4979
|
-
} = CartPlatformModel.
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
);
|
|
5283
|
+
} = CartPlatformModel.PlatformCartShipmentsResult().validate(responseData, {
|
|
5284
|
+
abortEarly: false,
|
|
5285
|
+
allowUnknown: true,
|
|
5286
|
+
});
|
|
4983
5287
|
|
|
4984
5288
|
if (res_error) {
|
|
4985
5289
|
if (this.config.options.strictResponseCheck === true) {
|