@gofynd/fdk-client-javascript 1.6.3 → 3.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/Cart/CartApplicationClient.d.ts +113 -93
- package/sdk/application/Cart/CartApplicationClient.js +270 -139
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
- package/sdk/application/Catalog/CatalogApplicationClient.js +122 -138
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +43 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +190 -3
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +71 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +103 -29
- package/sdk/application/Content/ContentApplicationClient.d.ts +51 -21
- package/sdk/application/Content/ContentApplicationClient.js +197 -36
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
- package/sdk/application/Lead/LeadApplicationClient.js +3 -3
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +79 -64
- package/sdk/application/Logistic/LogisticApplicationClient.js +246 -264
- package/sdk/application/Order/OrderApplicationClient.d.ts +44 -24
- package/sdk/application/Order/OrderApplicationClient.js +140 -21
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +211 -111
- package/sdk/application/Payment/PaymentApplicationClient.js +610 -109
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
- package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
- package/sdk/application/Share/ShareApplicationClient.js +14 -14
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +23 -3
- package/sdk/application/Theme/ThemeApplicationClient.js +103 -5
- package/sdk/application/User/UserApplicationClient.d.ts +13 -23
- package/sdk/application/User/UserApplicationClient.js +9 -57
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
- package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +66 -0
- package/sdk/partner/Authorization/AuthorizationPartnerClient.js +431 -0
- package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +231 -0
- package/sdk/partner/Authorization/AuthorizationPartnerModel.js +152 -0
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +8 -0
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +39 -0
- package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +26 -0
- package/sdk/partner/Catalog/CatalogPartnerClient.js +173 -0
- package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +238 -0
- package/sdk/partner/Catalog/CatalogPartnerModel.js +248 -0
- package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +5 -0
- package/sdk/partner/Catalog/CatalogPartnerValidator.js +19 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -22
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +12 -87
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +33 -99
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +25 -84
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -10
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +100 -49
- package/sdk/partner/Lead/LeadPartnerModel.js +100 -74
- package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +33 -160
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +66 -1180
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +288 -1685
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +226 -824
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +1 -13
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +14 -141
- package/sdk/partner/PartnerClient.d.ts +6 -0
- package/sdk/partner/PartnerClient.js +9 -0
- package/sdk/partner/Payment/PaymentPartnerClient.d.ts +116 -0
- package/sdk/partner/Payment/PaymentPartnerClient.js +857 -0
- package/sdk/partner/Payment/PaymentPartnerModel.d.ts +388 -0
- package/sdk/partner/Payment/PaymentPartnerModel.js +442 -0
- package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +14 -0
- package/sdk/partner/Payment/PaymentPartnerValidator.js +74 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +63 -21
- package/sdk/partner/Theme/ThemePartnerClient.js +396 -71
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +104 -72
- package/sdk/partner/Theme/ThemePartnerModel.js +101 -75
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +5 -1
- package/sdk/partner/Theme/ThemePartnerValidator.js +42 -12
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +191 -612
- package/sdk/partner/Webhook/WebhookPartnerModel.js +159 -234
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
- package/sdk/partner/index.d.ts +3 -0
- package/sdk/partner/index.js +6 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +1 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +145 -49
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +171 -20
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +406 -15
- package/sdk/platform/Billing/BillingPlatformClient.js +3214 -76
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +3798 -459
- package/sdk/platform/Billing/BillingPlatformModel.js +2577 -342
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +465 -24
- package/sdk/platform/Billing/BillingPlatformValidator.js +490 -14
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +284 -205
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +671 -553
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +108 -132
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3136 -4788
- package/sdk/platform/Cart/CartPlatformModel.js +2850 -2031
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1015 -419
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +6450 -2010
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1121 -230
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +919 -127
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +372 -574
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1238 -1317
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +8351 -9825
- package/sdk/platform/Catalog/CatalogPlatformModel.js +9662 -6881
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +288 -235
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +241 -183
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -6
- package/sdk/platform/Common/CommonPlatformClient.js +5 -6
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +374 -234
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +875 -583
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +170 -139
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +145 -126
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +56 -3
- package/sdk/platform/Communication/CommunicationPlatformClient.js +307 -4
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +424 -252
- package/sdk/platform/Communication/CommunicationPlatformModel.js +540 -320
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +62 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +48 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +68 -99
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +84 -140
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +238 -256
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +222 -244
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -20
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -20
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +333 -118
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1470 -409
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +158 -55
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +163 -41
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +151 -61
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +595 -101
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +1199 -462
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1008 -321
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +80 -34
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +79 -24
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +253 -140
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1087 -458
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +221 -178
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +220 -157
- package/sdk/platform/Content/ContentPlatformClient.d.ts +124 -123
- package/sdk/platform/Content/ContentPlatformClient.js +459 -379
- package/sdk/platform/Content/ContentPlatformModel.d.ts +833 -1307
- package/sdk/platform/Content/ContentPlatformModel.js +893 -582
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +140 -150
- package/sdk/platform/Content/ContentPlatformValidator.js +131 -135
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +60 -36
- package/sdk/platform/Discount/DiscountPlatformClient.js +85 -36
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +46 -47
- package/sdk/platform/Discount/DiscountPlatformModel.js +42 -46
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +18 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +24 -22
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +75 -86
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +60 -74
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2895 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2150 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +4 -24
- package/sdk/platform/Lead/LeadPlatformClient.js +4 -160
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +142 -57
- package/sdk/platform/Lead/LeadPlatformModel.js +162 -79
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +3 -29
- package/sdk/platform/Lead/LeadPlatformValidator.js +2 -28
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +94 -25
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +600 -57
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +115 -115
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +120 -43
- package/sdk/platform/Order/OrderPlatformClient.d.ts +502 -293
- package/sdk/platform/Order/OrderPlatformClient.js +1466 -913
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4111 -9093
- package/sdk/platform/Order/OrderPlatformModel.js +3202 -4230
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +445 -612
- package/sdk/platform/Order/OrderPlatformValidator.js +316 -326
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +7 -7
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +382 -135
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +2453 -935
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +306 -93
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +305 -70
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +66 -56
- package/sdk/platform/Payment/PaymentPlatformClient.js +269 -124
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3525 -1313
- package/sdk/platform/Payment/PaymentPlatformModel.js +3813 -1511
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +64 -35
- package/sdk/platform/Payment/PaymentPlatformValidator.js +60 -34
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +14 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +344 -56
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +2180 -302
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +380 -54
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +336 -37
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +127 -213
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +538 -1306
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +3429 -2979
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3642 -1785
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +218 -392
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +151 -290
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +4 -16
- package/sdk/platform/Share/SharePlatformApplicationClient.js +8 -86
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -23
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +3 -16
- package/sdk/platform/Share/SharePlatformModel.d.ts +6 -50
- package/sdk/platform/Share/SharePlatformModel.js +3 -43
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +157 -10
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +21 -10
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +23 -6
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +18 -8
- package/sdk/platform/Theme/ThemePlatformClient.js +85 -8
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +425 -17
- package/sdk/platform/Theme/ThemePlatformModel.js +329 -23
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +7 -3
- package/sdk/platform/Theme/ThemePlatformValidator.js +9 -2
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +22 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +91 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +15 -3
- package/sdk/platform/User/UserPlatformApplicationValidator.js +14 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +223 -59
- package/sdk/platform/User/UserPlatformModel.js +204 -65
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +434 -758
- package/sdk/platform/Webhook/WebhookPlatformModel.js +395 -410
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Billing/BillingPublicClient.d.ts +56 -0
- package/sdk/public/Billing/BillingPublicClient.js +397 -0
- package/sdk/public/Billing/BillingPublicModel.d.ts +919 -0
- package/sdk/public/Billing/BillingPublicModel.js +560 -0
- package/sdk/public/Billing/BillingPublicValidator.d.ts +43 -0
- package/sdk/public/Billing/BillingPublicValidator.js +50 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -4
- package/sdk/public/Configuration/ConfigurationPublicClient.js +97 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +102 -40
- package/sdk/public/Configuration/ConfigurationPublicModel.js +111 -29
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +11 -1
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +12 -0
- package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
- package/sdk/public/Content/ContentPublicClient.js +183 -0
- package/sdk/public/Content/ContentPublicModel.d.ts +38 -1
- package/sdk/public/Content/ContentPublicModel.js +47 -1
- package/sdk/public/Content/ContentPublicValidator.d.ts +17 -1
- package/sdk/public/Content/ContentPublicValidator.js +19 -0
- package/sdk/public/PublicClient.d.ts +2 -2
- package/sdk/public/PublicClient.js +2 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +67 -215
- package/sdk/public/Webhook/WebhookPublicModel.js +61 -66
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/public/index.d.ts +1 -1
- package/sdk/public/index.js +1 -1
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -126
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +0 -22
- package/sdk/public/Catalog/CatalogPublicClient.js +0 -138
- package/sdk/public/Catalog/CatalogPublicModel.d.ts +0 -155
- package/sdk/public/Catalog/CatalogPublicModel.js +0 -116
- package/sdk/public/Catalog/CatalogPublicValidator.d.ts +0 -55
- package/sdk/public/Catalog/CatalogPublicValidator.js +0 -35
|
@@ -23,14 +23,18 @@ class Cart {
|
|
|
23
23
|
getBulkDiscountOffers: "/service/application/cart/v1.0/bulk-price",
|
|
24
24
|
getCart: "/service/application/cart/v1.0/detail",
|
|
25
25
|
getCartLastModified: "/service/application/cart/v1.0/detail",
|
|
26
|
+
getCartMetaConfig:
|
|
27
|
+
"/service/application/cart/v1.0/cart/configuration/{cart_meta_id}",
|
|
28
|
+
getCartMetaConfigs: "/service/application/cart/v1.0/cart/configuration",
|
|
26
29
|
getCartShareLink: "/service/application/cart/v1.0/share-cart",
|
|
27
30
|
getCartSharedItems: "/service/application/cart/v1.0/share-cart/{token}",
|
|
28
31
|
getCoupons: "/service/application/cart/v1.0/coupon",
|
|
29
32
|
getItemCount: "/service/application/cart/v1.0/basic",
|
|
33
|
+
getItemCountV2: "/service/application/cart/v2.0/basic",
|
|
30
34
|
getLadderOffers: "/service/application/cart/v1.0/available-ladder-prices",
|
|
31
|
-
|
|
32
|
-
getPromotionPaymentOffers:
|
|
35
|
+
getPaymentPromotionOffers:
|
|
33
36
|
"/service/application/cart/v1.0/available-payment-offers",
|
|
37
|
+
getPromotionOffers: "/service/application/cart/v1.0/available-promotions",
|
|
34
38
|
getShipments: "/service/application/cart/v1.0/shipment",
|
|
35
39
|
removeAddress: "/service/application/cart/v1.0/address/{id}",
|
|
36
40
|
removeCoupon: "/service/application/cart/v1.0/coupon",
|
|
@@ -38,7 +42,6 @@ class Cart {
|
|
|
38
42
|
selectPaymentMode: "/service/application/cart/v1.0/payment",
|
|
39
43
|
updateAddress: "/service/application/cart/v1.0/address/{id}",
|
|
40
44
|
updateCart: "/service/application/cart/v1.0/detail",
|
|
41
|
-
updateCartBreakup: "/service/application/cart/v1.0/detail",
|
|
42
45
|
updateCartMeta: "/service/application/cart/v1.0/meta",
|
|
43
46
|
updateCartWithSharedItems:
|
|
44
47
|
"/service/application/cart/v1.0/share-cart/{token}/{action}",
|
|
@@ -64,9 +67,9 @@ class Cart {
|
|
|
64
67
|
/**
|
|
65
68
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
66
69
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
67
|
-
* @returns {Promise<
|
|
70
|
+
* @returns {Promise<SaveAddressResponse>} - Success response
|
|
68
71
|
* @name addAddress
|
|
69
|
-
* @summary:
|
|
72
|
+
* @summary: Create a new address
|
|
70
73
|
* @description: Add a new address to their cart to save details such as name, email, contact information, and address. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/addAddress/).
|
|
71
74
|
*/
|
|
72
75
|
async addAddress(
|
|
@@ -109,15 +112,23 @@ class Cart {
|
|
|
109
112
|
/**
|
|
110
113
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
111
114
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
112
|
-
* @returns {Promise<
|
|
115
|
+
* @returns {Promise<AddCartDetailResponse>} - Success response
|
|
113
116
|
* @name addItems
|
|
114
117
|
* @summary: Add items to a cart
|
|
115
118
|
* @description: Add product items to the customer's existing shopping cart. If there is no existing cart associated with the customer, it creates a new one and adds the items to it. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/addItems/).
|
|
116
119
|
*/
|
|
117
120
|
async addItems(
|
|
118
|
-
{
|
|
119
|
-
|
|
120
|
-
|
|
121
|
+
{
|
|
122
|
+
body,
|
|
123
|
+
i,
|
|
124
|
+
b,
|
|
125
|
+
areaCode,
|
|
126
|
+
buyNow,
|
|
127
|
+
id,
|
|
128
|
+
cartType,
|
|
129
|
+
orderType,
|
|
130
|
+
requestHeaders,
|
|
131
|
+
} = { requestHeaders: {} },
|
|
121
132
|
{ responseHeaders } = { responseHeaders: false }
|
|
122
133
|
) {
|
|
123
134
|
let invalidInput = [];
|
|
@@ -134,6 +145,7 @@ class Cart {
|
|
|
134
145
|
query_params["area_code"] = areaCode;
|
|
135
146
|
query_params["buy_now"] = buyNow;
|
|
136
147
|
query_params["id"] = id;
|
|
148
|
+
query_params["cart_type"] = cartType;
|
|
137
149
|
query_params["order_type"] = orderType;
|
|
138
150
|
|
|
139
151
|
const xHeaders = {};
|
|
@@ -162,9 +174,9 @@ class Cart {
|
|
|
162
174
|
/**
|
|
163
175
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
164
176
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
165
|
-
* @returns {Promise<
|
|
177
|
+
* @returns {Promise<CartDetailResponse>} - Success response
|
|
166
178
|
* @name applyCoupon
|
|
167
|
-
* @summary: Apply coupon
|
|
179
|
+
* @summary: Apply coupon.
|
|
168
180
|
* @description: Apply a coupon code to the cart to trigger discounts on eligible items. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/applyCoupon/).
|
|
169
181
|
*/
|
|
170
182
|
async applyCoupon(
|
|
@@ -215,13 +227,15 @@ class Cart {
|
|
|
215
227
|
/**
|
|
216
228
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
217
229
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
218
|
-
* @returns {Promise<
|
|
230
|
+
* @returns {Promise<CartDetailResponse>} - Success response
|
|
219
231
|
* @name applyRewardPoints
|
|
220
|
-
* @summary: Use reward points
|
|
232
|
+
* @summary: Use reward points.
|
|
221
233
|
* @description: Users can redeem their accumulated reward points and apply them to the items in their cart, thereby availing discounts on their current purchases. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/applyRewardPoints/).
|
|
222
234
|
*/
|
|
223
235
|
async applyRewardPoints(
|
|
224
|
-
{ body, id, i, b, buyNow, requestHeaders } = {
|
|
236
|
+
{ body, id, i, b, buyNow, cartType, requestHeaders } = {
|
|
237
|
+
requestHeaders: {},
|
|
238
|
+
},
|
|
225
239
|
{ responseHeaders } = { responseHeaders: false }
|
|
226
240
|
) {
|
|
227
241
|
let invalidInput = [];
|
|
@@ -237,6 +251,7 @@ class Cart {
|
|
|
237
251
|
query_params["i"] = i;
|
|
238
252
|
query_params["b"] = b;
|
|
239
253
|
query_params["buy_now"] = buyNow;
|
|
254
|
+
query_params["cart_type"] = cartType;
|
|
240
255
|
|
|
241
256
|
const xHeaders = {};
|
|
242
257
|
|
|
@@ -264,7 +279,7 @@ class Cart {
|
|
|
264
279
|
/**
|
|
265
280
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
266
281
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
267
|
-
* @returns {Promise<
|
|
282
|
+
* @returns {Promise<CartCheckoutResponse>} - Success response
|
|
268
283
|
* @name checkoutCart
|
|
269
284
|
* @summary: Checkout cart
|
|
270
285
|
* @description: The checkout cart initiates the order creation process based on the selected address and payment method. It revalidates the cart details to ensure safe and seamless order placement. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/checkoutCart/).
|
|
@@ -311,10 +326,10 @@ class Cart {
|
|
|
311
326
|
/**
|
|
312
327
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
313
328
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
314
|
-
* @returns {Promise<
|
|
329
|
+
* @returns {Promise<CartCheckoutResponse>} - Success response
|
|
315
330
|
* @name checkoutCartV2
|
|
316
|
-
* @summary:
|
|
317
|
-
* @description:
|
|
331
|
+
* @summary: Enhanced cart checkout process
|
|
332
|
+
* @description: Enhanced version of checkout process that supports multiple mode of payment(MOP). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/checkoutCartV2/).
|
|
318
333
|
*/
|
|
319
334
|
async checkoutCartV2(
|
|
320
335
|
{ body, buyNow, cartType, requestHeaders } = { requestHeaders: {} },
|
|
@@ -358,13 +373,13 @@ class Cart {
|
|
|
358
373
|
/**
|
|
359
374
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
360
375
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
361
|
-
* @returns {Promise<
|
|
376
|
+
* @returns {Promise<DeleteCartDetailResponse>} - Success response
|
|
362
377
|
* @name deleteCart
|
|
363
|
-
* @summary:
|
|
378
|
+
* @summary: Clears the cart
|
|
364
379
|
* @description: Delete all items from the user's cart and resets it to its initial state, providing a clean slate for new selections. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/deleteCart/).
|
|
365
380
|
*/
|
|
366
381
|
async deleteCart(
|
|
367
|
-
{ id, requestHeaders } = { requestHeaders: {} },
|
|
382
|
+
{ body, id, cartType, requestHeaders } = { requestHeaders: {} },
|
|
368
383
|
{ responseHeaders } = { responseHeaders: false }
|
|
369
384
|
) {
|
|
370
385
|
let invalidInput = [];
|
|
@@ -377,6 +392,7 @@ class Cart {
|
|
|
377
392
|
|
|
378
393
|
const query_params = {};
|
|
379
394
|
query_params["id"] = id;
|
|
395
|
+
query_params["cart_type"] = cartType;
|
|
380
396
|
|
|
381
397
|
const xHeaders = {};
|
|
382
398
|
|
|
@@ -388,7 +404,7 @@ class Cart {
|
|
|
388
404
|
params: {},
|
|
389
405
|
}),
|
|
390
406
|
query_params,
|
|
391
|
-
|
|
407
|
+
body,
|
|
392
408
|
{ ...xHeaders, ...requestHeaders },
|
|
393
409
|
{ responseHeaders }
|
|
394
410
|
);
|
|
@@ -406,7 +422,7 @@ class Cart {
|
|
|
406
422
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
407
423
|
* @returns {Promise<Address>} - Success response
|
|
408
424
|
* @name getAddressById
|
|
409
|
-
* @summary:
|
|
425
|
+
* @summary: Fetch address.
|
|
410
426
|
* @description: Get a specific customer address stored in the system by providing its unique identifier. This API provides detailed information about the address, including the recipient's name, address, city, postal code, and other relevant details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getAddressById/).
|
|
411
427
|
*/
|
|
412
428
|
async getAddressById(
|
|
@@ -418,6 +434,7 @@ class Cart {
|
|
|
418
434
|
checkoutMode,
|
|
419
435
|
tags,
|
|
420
436
|
isDefault,
|
|
437
|
+
userId,
|
|
421
438
|
requestHeaders,
|
|
422
439
|
} = { requestHeaders: {} },
|
|
423
440
|
{ responseHeaders } = { responseHeaders: false }
|
|
@@ -444,6 +461,7 @@ class Cart {
|
|
|
444
461
|
query_params["checkout_mode"] = checkoutMode;
|
|
445
462
|
query_params["tags"] = tags;
|
|
446
463
|
query_params["is_default"] = isDefault;
|
|
464
|
+
query_params["user_id"] = userId;
|
|
447
465
|
|
|
448
466
|
const xHeaders = {};
|
|
449
467
|
|
|
@@ -471,9 +489,9 @@ class Cart {
|
|
|
471
489
|
/**
|
|
472
490
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
473
491
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
474
|
-
* @returns {Promise<
|
|
492
|
+
* @returns {Promise<GetAddressesResponse>} - Success response
|
|
475
493
|
* @name getAddresses
|
|
476
|
-
* @summary: Get
|
|
494
|
+
* @summary: Get saved addresses.
|
|
477
495
|
* @description: List all addresses saved by the customer, simplifying the checkout process by offering pre-saved address options for delivery. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getAddresses/).
|
|
478
496
|
*/
|
|
479
497
|
async getAddresses(
|
|
@@ -484,6 +502,7 @@ class Cart {
|
|
|
484
502
|
checkoutMode,
|
|
485
503
|
tags,
|
|
486
504
|
isDefault,
|
|
505
|
+
userId,
|
|
487
506
|
requestHeaders,
|
|
488
507
|
} = { requestHeaders: {} },
|
|
489
508
|
{ responseHeaders } = { responseHeaders: false }
|
|
@@ -503,6 +522,7 @@ class Cart {
|
|
|
503
522
|
query_params["checkout_mode"] = checkoutMode;
|
|
504
523
|
query_params["tags"] = tags;
|
|
505
524
|
query_params["is_default"] = isDefault;
|
|
525
|
+
query_params["user_id"] = userId;
|
|
506
526
|
|
|
507
527
|
const xHeaders = {};
|
|
508
528
|
|
|
@@ -530,13 +550,15 @@ class Cart {
|
|
|
530
550
|
/**
|
|
531
551
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
532
552
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
533
|
-
* @returns {Promise<
|
|
553
|
+
* @returns {Promise<BulkPriceResponse>} - Success response
|
|
534
554
|
* @name getBulkDiscountOffers
|
|
535
|
-
* @summary:
|
|
555
|
+
* @summary: Bulk discounts.
|
|
536
556
|
* @description: List offer discounts with information about quantity and seller. One offer is marked with a "best" flag, indicating it as the best offer among the list. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getBulkDiscountOffers/).
|
|
537
557
|
*/
|
|
538
558
|
async getBulkDiscountOffers(
|
|
539
|
-
{ itemId, articleId, uid, slug, requestHeaders } = {
|
|
559
|
+
{ itemId, articleId, uid, slug, cartType, requestHeaders } = {
|
|
560
|
+
requestHeaders: {},
|
|
561
|
+
},
|
|
540
562
|
{ responseHeaders } = { responseHeaders: false }
|
|
541
563
|
) {
|
|
542
564
|
let invalidInput = [];
|
|
@@ -552,6 +574,7 @@ class Cart {
|
|
|
552
574
|
query_params["article_id"] = articleId;
|
|
553
575
|
query_params["uid"] = uid;
|
|
554
576
|
query_params["slug"] = slug;
|
|
577
|
+
query_params["cart_type"] = cartType;
|
|
555
578
|
|
|
556
579
|
const xHeaders = {};
|
|
557
580
|
|
|
@@ -579,9 +602,9 @@ class Cart {
|
|
|
579
602
|
/**
|
|
580
603
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
581
604
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
582
|
-
* @returns {Promise<
|
|
605
|
+
* @returns {Promise<CartDetailResponse>} - Success response
|
|
583
606
|
* @name getCart
|
|
584
|
-
* @summary:
|
|
607
|
+
* @summary: Retrieve cart details.
|
|
585
608
|
* @description: Get details of a cart linked to a specific customer using a unique cart ID. It offers an overview of the items, quantities, prices, and other relevant information associated with the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCart/).
|
|
586
609
|
*/
|
|
587
610
|
async getCart(
|
|
@@ -593,6 +616,7 @@ class Cart {
|
|
|
593
616
|
assignCardId,
|
|
594
617
|
areaCode,
|
|
595
618
|
buyNow,
|
|
619
|
+
cartType,
|
|
596
620
|
orderType,
|
|
597
621
|
requestHeaders,
|
|
598
622
|
} = { requestHeaders: {} },
|
|
@@ -614,6 +638,7 @@ class Cart {
|
|
|
614
638
|
query_params["assign_card_id"] = assignCardId;
|
|
615
639
|
query_params["area_code"] = areaCode;
|
|
616
640
|
query_params["buy_now"] = buyNow;
|
|
641
|
+
query_params["cart_type"] = cartType;
|
|
617
642
|
query_params["order_type"] = orderType;
|
|
618
643
|
|
|
619
644
|
const xHeaders = {};
|
|
@@ -688,9 +713,106 @@ class Cart {
|
|
|
688
713
|
/**
|
|
689
714
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
690
715
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
691
|
-
* @returns {Promise<
|
|
716
|
+
* @returns {Promise<CartConfigDetailResponse>} - Success response
|
|
717
|
+
* @name getCartMetaConfig
|
|
718
|
+
* @summary: Get cart configuration by id
|
|
719
|
+
* @description: Get cart configuration by id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCartMetaConfig/).
|
|
720
|
+
*/
|
|
721
|
+
async getCartMetaConfig(
|
|
722
|
+
{ cartMetaId, requestHeaders } = { requestHeaders: {} },
|
|
723
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
724
|
+
) {
|
|
725
|
+
let invalidInput = [];
|
|
726
|
+
|
|
727
|
+
if (!cartMetaId) {
|
|
728
|
+
invalidInput.push({
|
|
729
|
+
message: `The 'cartMetaId' field is required.`,
|
|
730
|
+
path: ["cartMetaId"],
|
|
731
|
+
});
|
|
732
|
+
}
|
|
733
|
+
if (invalidInput.length) {
|
|
734
|
+
const error = new Error();
|
|
735
|
+
error.message = "Missing required field";
|
|
736
|
+
error.details = invalidInput;
|
|
737
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
const query_params = {};
|
|
741
|
+
|
|
742
|
+
const xHeaders = {};
|
|
743
|
+
|
|
744
|
+
const response = await ApplicationAPIClient.execute(
|
|
745
|
+
this._conf,
|
|
746
|
+
"get",
|
|
747
|
+
constructUrl({
|
|
748
|
+
url: this._urls["getCartMetaConfig"],
|
|
749
|
+
params: { cartMetaId },
|
|
750
|
+
}),
|
|
751
|
+
query_params,
|
|
752
|
+
undefined,
|
|
753
|
+
{ ...xHeaders, ...requestHeaders },
|
|
754
|
+
{ responseHeaders }
|
|
755
|
+
);
|
|
756
|
+
|
|
757
|
+
let responseData = response;
|
|
758
|
+
if (responseHeaders) {
|
|
759
|
+
responseData = response[0];
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
return response;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
/**
|
|
766
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
767
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
768
|
+
* @returns {Promise<CartMetaConfigListResponse>} - Success response
|
|
769
|
+
* @name getCartMetaConfigs
|
|
770
|
+
* @summary: Get cart configuration
|
|
771
|
+
* @description: Get cart configuration. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCartMetaConfigs/).
|
|
772
|
+
*/
|
|
773
|
+
async getCartMetaConfigs(
|
|
774
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
775
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
776
|
+
) {
|
|
777
|
+
let invalidInput = [];
|
|
778
|
+
if (invalidInput.length) {
|
|
779
|
+
const error = new Error();
|
|
780
|
+
error.message = "Missing required field";
|
|
781
|
+
error.details = invalidInput;
|
|
782
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
const query_params = {};
|
|
786
|
+
|
|
787
|
+
const xHeaders = {};
|
|
788
|
+
|
|
789
|
+
const response = await ApplicationAPIClient.execute(
|
|
790
|
+
this._conf,
|
|
791
|
+
"get",
|
|
792
|
+
constructUrl({
|
|
793
|
+
url: this._urls["getCartMetaConfigs"],
|
|
794
|
+
params: {},
|
|
795
|
+
}),
|
|
796
|
+
query_params,
|
|
797
|
+
undefined,
|
|
798
|
+
{ ...xHeaders, ...requestHeaders },
|
|
799
|
+
{ responseHeaders }
|
|
800
|
+
);
|
|
801
|
+
|
|
802
|
+
let responseData = response;
|
|
803
|
+
if (responseHeaders) {
|
|
804
|
+
responseData = response[0];
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
return response;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
/**
|
|
811
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
812
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
813
|
+
* @returns {Promise<GetShareCartLinkResponse>} - Success response
|
|
692
814
|
* @name getCartShareLink
|
|
693
|
-
* @summary:
|
|
815
|
+
* @summary: Share cart link.
|
|
694
816
|
* @description: Generate a unique shareable link for the customer's cart for a specific sales channel. This link enables easy sharing of the cart contents with other users, facilitating collaborative shopping experiences. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCartShareLink/).
|
|
695
817
|
*/
|
|
696
818
|
async getCartShareLink(
|
|
@@ -733,9 +855,9 @@ class Cart {
|
|
|
733
855
|
/**
|
|
734
856
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
735
857
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
736
|
-
* @returns {Promise<
|
|
858
|
+
* @returns {Promise<SharedCartResponse>} - Success response
|
|
737
859
|
* @name getCartSharedItems
|
|
738
|
-
* @summary:
|
|
860
|
+
* @summary: Shared cart items.
|
|
739
861
|
* @description: Get cart items from the shared cart link based on unique token. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCartSharedItems/).
|
|
740
862
|
*/
|
|
741
863
|
async getCartSharedItems(
|
|
@@ -785,9 +907,9 @@ class Cart {
|
|
|
785
907
|
/**
|
|
786
908
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
787
909
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
788
|
-
* @returns {Promise<
|
|
910
|
+
* @returns {Promise<GetCouponResponse>} - Success response
|
|
789
911
|
* @name getCoupons
|
|
790
|
-
* @summary: List available coupons
|
|
912
|
+
* @summary: List available coupons.
|
|
791
913
|
* @description: List all available coupons that customer can apply to their carts. It provides details about each coupon, including its code, discount amount, and applicable conditions. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCoupons/).
|
|
792
914
|
*/
|
|
793
915
|
async getCoupons(
|
|
@@ -834,9 +956,9 @@ class Cart {
|
|
|
834
956
|
/**
|
|
835
957
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
836
958
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
837
|
-
* @returns {Promise<
|
|
959
|
+
* @returns {Promise<CartItemCountResponse>} - Success response
|
|
838
960
|
* @name getItemCount
|
|
839
|
-
* @summary:
|
|
961
|
+
* @summary: Count cart items.
|
|
840
962
|
* @description: Get total count of items currently present in the customer's cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getItemCount/).
|
|
841
963
|
*/
|
|
842
964
|
async getItemCount(
|
|
@@ -878,12 +1000,59 @@ class Cart {
|
|
|
878
1000
|
return response;
|
|
879
1001
|
}
|
|
880
1002
|
|
|
1003
|
+
/**
|
|
1004
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1005
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1006
|
+
* @returns {Promise<CartItemCountResponseV2>} - Success response
|
|
1007
|
+
* @name getItemCountV2
|
|
1008
|
+
* @summary: Count items in the cart according to cart_type
|
|
1009
|
+
* @description: Use this API to get the total number of items present in cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getItemCountV2/).
|
|
1010
|
+
*/
|
|
1011
|
+
async getItemCountV2(
|
|
1012
|
+
{ id, buyNow, requestHeaders } = { requestHeaders: {} },
|
|
1013
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1014
|
+
) {
|
|
1015
|
+
let invalidInput = [];
|
|
1016
|
+
if (invalidInput.length) {
|
|
1017
|
+
const error = new Error();
|
|
1018
|
+
error.message = "Missing required field";
|
|
1019
|
+
error.details = invalidInput;
|
|
1020
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
const query_params = {};
|
|
1024
|
+
query_params["id"] = id;
|
|
1025
|
+
query_params["buy_now"] = buyNow;
|
|
1026
|
+
|
|
1027
|
+
const xHeaders = {};
|
|
1028
|
+
|
|
1029
|
+
const response = await ApplicationAPIClient.execute(
|
|
1030
|
+
this._conf,
|
|
1031
|
+
"get",
|
|
1032
|
+
constructUrl({
|
|
1033
|
+
url: this._urls["getItemCountV2"],
|
|
1034
|
+
params: {},
|
|
1035
|
+
}),
|
|
1036
|
+
query_params,
|
|
1037
|
+
undefined,
|
|
1038
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1039
|
+
{ responseHeaders }
|
|
1040
|
+
);
|
|
1041
|
+
|
|
1042
|
+
let responseData = response;
|
|
1043
|
+
if (responseHeaders) {
|
|
1044
|
+
responseData = response[0];
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
return response;
|
|
1048
|
+
}
|
|
1049
|
+
|
|
881
1050
|
/**
|
|
882
1051
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
883
1052
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
884
1053
|
* @returns {Promise<LadderPriceOffers>} - Success response
|
|
885
1054
|
* @name getLadderOffers
|
|
886
|
-
* @summary:
|
|
1055
|
+
* @summary: Fetches ladder offers.
|
|
887
1056
|
* @description: Get ladder offers associated for the items in the cart. Ladder offers provide discounts or special pricing based on item quantity, allowing users to benefit from bulk purchases or promotional deals. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getLadderOffers/).
|
|
888
1057
|
*/
|
|
889
1058
|
async getLadderOffers(
|
|
@@ -939,15 +1108,13 @@ class Cart {
|
|
|
939
1108
|
/**
|
|
940
1109
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
941
1110
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
942
|
-
* @returns {Promise<
|
|
943
|
-
* @name
|
|
944
|
-
* @summary:
|
|
945
|
-
* @description:
|
|
1111
|
+
* @returns {Promise<PromotionPaymentOffersResponse>} - Success response
|
|
1112
|
+
* @name getPaymentPromotionOffers
|
|
1113
|
+
* @summary: Fetch available promotions payment offers
|
|
1114
|
+
* @description: Use this API to get top 5 payment offers available for current cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getPaymentPromotionOffers/).
|
|
946
1115
|
*/
|
|
947
|
-
async
|
|
948
|
-
{
|
|
949
|
-
requestHeaders: {},
|
|
950
|
-
},
|
|
1116
|
+
async getPaymentPromotionOffers(
|
|
1117
|
+
{ id, uid, requestHeaders } = { requestHeaders: {} },
|
|
951
1118
|
{ responseHeaders } = { responseHeaders: false }
|
|
952
1119
|
) {
|
|
953
1120
|
let invalidInput = [];
|
|
@@ -959,11 +1126,8 @@ class Cart {
|
|
|
959
1126
|
}
|
|
960
1127
|
|
|
961
1128
|
const query_params = {};
|
|
962
|
-
query_params["
|
|
963
|
-
query_params["
|
|
964
|
-
query_params["promotion_group"] = promotionGroup;
|
|
965
|
-
query_params["store_id"] = storeId;
|
|
966
|
-
query_params["cart_type"] = cartType;
|
|
1129
|
+
query_params["id"] = id;
|
|
1130
|
+
query_params["uid"] = uid;
|
|
967
1131
|
|
|
968
1132
|
const xHeaders = {};
|
|
969
1133
|
|
|
@@ -971,7 +1135,7 @@ class Cart {
|
|
|
971
1135
|
this._conf,
|
|
972
1136
|
"get",
|
|
973
1137
|
constructUrl({
|
|
974
|
-
url: this._urls["
|
|
1138
|
+
url: this._urls["getPaymentPromotionOffers"],
|
|
975
1139
|
params: {},
|
|
976
1140
|
}),
|
|
977
1141
|
query_params,
|
|
@@ -991,13 +1155,15 @@ class Cart {
|
|
|
991
1155
|
/**
|
|
992
1156
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
993
1157
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
994
|
-
* @returns {Promise<
|
|
995
|
-
* @name
|
|
996
|
-
* @summary:
|
|
997
|
-
* @description:
|
|
1158
|
+
* @returns {Promise<PromotionOffersResponse>} - Success response
|
|
1159
|
+
* @name getPromotionOffers
|
|
1160
|
+
* @summary: Retrieves promotional offers
|
|
1161
|
+
* @description: List all promotional offers available for the items in the cart, including details such as offer text, unique promotion ID, and validity period. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getPromotionOffers/).
|
|
998
1162
|
*/
|
|
999
|
-
async
|
|
1000
|
-
{
|
|
1163
|
+
async getPromotionOffers(
|
|
1164
|
+
{ slug, pageSize, promotionGroup, storeId, requestHeaders } = {
|
|
1165
|
+
requestHeaders: {},
|
|
1166
|
+
},
|
|
1001
1167
|
{ responseHeaders } = { responseHeaders: false }
|
|
1002
1168
|
) {
|
|
1003
1169
|
let invalidInput = [];
|
|
@@ -1009,8 +1175,10 @@ class Cart {
|
|
|
1009
1175
|
}
|
|
1010
1176
|
|
|
1011
1177
|
const query_params = {};
|
|
1012
|
-
query_params["
|
|
1013
|
-
query_params["
|
|
1178
|
+
query_params["slug"] = slug;
|
|
1179
|
+
query_params["page_size"] = pageSize;
|
|
1180
|
+
query_params["promotion_group"] = promotionGroup;
|
|
1181
|
+
query_params["store_id"] = storeId;
|
|
1014
1182
|
|
|
1015
1183
|
const xHeaders = {};
|
|
1016
1184
|
|
|
@@ -1018,7 +1186,7 @@ class Cart {
|
|
|
1018
1186
|
this._conf,
|
|
1019
1187
|
"get",
|
|
1020
1188
|
constructUrl({
|
|
1021
|
-
url: this._urls["
|
|
1189
|
+
url: this._urls["getPromotionOffers"],
|
|
1022
1190
|
params: {},
|
|
1023
1191
|
}),
|
|
1024
1192
|
query_params,
|
|
@@ -1038,15 +1206,24 @@ class Cart {
|
|
|
1038
1206
|
/**
|
|
1039
1207
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1040
1208
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1041
|
-
* @returns {Promise<
|
|
1209
|
+
* @returns {Promise<CartShipmentsResponse>} - Success response
|
|
1042
1210
|
* @name getShipments
|
|
1043
|
-
* @summary: List shipments
|
|
1211
|
+
* @summary: List shipments.
|
|
1044
1212
|
* @description: Get shipment details for the items in a cart, specific to the selected address. Shipment details include delivery promises, seller information, item details, and other relevant information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getShipments/).
|
|
1045
1213
|
*/
|
|
1046
1214
|
async getShipments(
|
|
1047
|
-
{
|
|
1048
|
-
|
|
1049
|
-
|
|
1215
|
+
{
|
|
1216
|
+
pickAtStoreUid,
|
|
1217
|
+
orderingStoreId,
|
|
1218
|
+
i,
|
|
1219
|
+
p,
|
|
1220
|
+
id,
|
|
1221
|
+
buyNow,
|
|
1222
|
+
addressId,
|
|
1223
|
+
areaCode,
|
|
1224
|
+
orderType,
|
|
1225
|
+
requestHeaders,
|
|
1226
|
+
} = { requestHeaders: {} },
|
|
1050
1227
|
{ responseHeaders } = { responseHeaders: false }
|
|
1051
1228
|
) {
|
|
1052
1229
|
let invalidInput = [];
|
|
@@ -1058,6 +1235,9 @@ class Cart {
|
|
|
1058
1235
|
}
|
|
1059
1236
|
|
|
1060
1237
|
const query_params = {};
|
|
1238
|
+
query_params["pick_at_store_uid"] = pickAtStoreUid;
|
|
1239
|
+
query_params["ordering_store_id"] = orderingStoreId;
|
|
1240
|
+
query_params["i"] = i;
|
|
1061
1241
|
query_params["p"] = p;
|
|
1062
1242
|
query_params["id"] = id;
|
|
1063
1243
|
query_params["buy_now"] = buyNow;
|
|
@@ -1091,9 +1271,9 @@ class Cart {
|
|
|
1091
1271
|
/**
|
|
1092
1272
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1093
1273
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1094
|
-
* @returns {Promise<
|
|
1274
|
+
* @returns {Promise<DeleteAddressResponse>} - Success response
|
|
1095
1275
|
* @name removeAddress
|
|
1096
|
-
* @summary:
|
|
1276
|
+
* @summary: Delete a address
|
|
1097
1277
|
* @description: Delete an existing customer address from the system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/removeAddress/).
|
|
1098
1278
|
*/
|
|
1099
1279
|
async removeAddress(
|
|
@@ -1143,13 +1323,13 @@ class Cart {
|
|
|
1143
1323
|
/**
|
|
1144
1324
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1145
1325
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1146
|
-
* @returns {Promise<
|
|
1326
|
+
* @returns {Promise<CartDetailResponse>} - Success response
|
|
1147
1327
|
* @name removeCoupon
|
|
1148
|
-
* @summary: Remove coupon
|
|
1328
|
+
* @summary: Remove coupon.
|
|
1149
1329
|
* @description: Remove an applied coupon from the customer's cart, thereby removing the associated discount from the cart total. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/removeCoupon/).
|
|
1150
1330
|
*/
|
|
1151
1331
|
async removeCoupon(
|
|
1152
|
-
{ id, buyNow, requestHeaders } = { requestHeaders: {} },
|
|
1332
|
+
{ id, buyNow, cartType, requestHeaders } = { requestHeaders: {} },
|
|
1153
1333
|
{ responseHeaders } = { responseHeaders: false }
|
|
1154
1334
|
) {
|
|
1155
1335
|
let invalidInput = [];
|
|
@@ -1163,6 +1343,7 @@ class Cart {
|
|
|
1163
1343
|
const query_params = {};
|
|
1164
1344
|
query_params["id"] = id;
|
|
1165
1345
|
query_params["buy_now"] = buyNow;
|
|
1346
|
+
query_params["cart_type"] = cartType;
|
|
1166
1347
|
|
|
1167
1348
|
const xHeaders = {};
|
|
1168
1349
|
|
|
@@ -1190,9 +1371,9 @@ class Cart {
|
|
|
1190
1371
|
/**
|
|
1191
1372
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1192
1373
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1193
|
-
* @returns {Promise<
|
|
1374
|
+
* @returns {Promise<CartDetailResponse>} - Success response
|
|
1194
1375
|
* @name selectAddress
|
|
1195
|
-
* @summary: Select
|
|
1376
|
+
* @summary: Select a delivery address
|
|
1196
1377
|
* @description: Select an address from the saved customer addresses and validates the availability of items in the cart. Additionally, it verifies and updates the delivery promise based on the selected address. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/selectAddress/).
|
|
1197
1378
|
*/
|
|
1198
1379
|
async selectAddress(
|
|
@@ -1239,13 +1420,13 @@ class Cart {
|
|
|
1239
1420
|
/**
|
|
1240
1421
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1241
1422
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1242
|
-
* @returns {Promise<
|
|
1423
|
+
* @returns {Promise<CartDetailResponse>} - Success response
|
|
1243
1424
|
* @name selectPaymentMode
|
|
1244
|
-
* @summary:
|
|
1425
|
+
* @summary: Pick payment method.
|
|
1245
1426
|
* @description: Select a preferred payment mode from available options during the cart checkout process to securely and efficiently complete their transaction. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/selectPaymentMode/).
|
|
1246
1427
|
*/
|
|
1247
1428
|
async selectPaymentMode(
|
|
1248
|
-
{ body, id, buyNow, requestHeaders } = { requestHeaders: {} },
|
|
1429
|
+
{ body, id, buyNow, orderType, requestHeaders } = { requestHeaders: {} },
|
|
1249
1430
|
{ responseHeaders } = { responseHeaders: false }
|
|
1250
1431
|
) {
|
|
1251
1432
|
let invalidInput = [];
|
|
@@ -1259,6 +1440,7 @@ class Cart {
|
|
|
1259
1440
|
const query_params = {};
|
|
1260
1441
|
query_params["id"] = id;
|
|
1261
1442
|
query_params["buy_now"] = buyNow;
|
|
1443
|
+
query_params["order_type"] = orderType;
|
|
1262
1444
|
|
|
1263
1445
|
const xHeaders = {};
|
|
1264
1446
|
|
|
@@ -1286,9 +1468,9 @@ class Cart {
|
|
|
1286
1468
|
/**
|
|
1287
1469
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1288
1470
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1289
|
-
* @returns {Promise<
|
|
1471
|
+
* @returns {Promise<UpdateAddressResponse>} - Success response
|
|
1290
1472
|
* @name updateAddress
|
|
1291
|
-
* @summary:
|
|
1473
|
+
* @summary: Update address.
|
|
1292
1474
|
* @description: Customer can modify the details of a previously saved addresses. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateAddress/).
|
|
1293
1475
|
*/
|
|
1294
1476
|
async updateAddress(
|
|
@@ -1338,9 +1520,9 @@ class Cart {
|
|
|
1338
1520
|
/**
|
|
1339
1521
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1340
1522
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1341
|
-
* @returns {Promise<
|
|
1523
|
+
* @returns {Promise<UpdateCartDetailResponse>} - Success response
|
|
1342
1524
|
* @name updateCart
|
|
1343
|
-
* @summary: Update cart
|
|
1525
|
+
* @summary: Update items in the cart
|
|
1344
1526
|
* @description: Update cart. Customers can modify added product attributes such as quantity and size, as well as remove items from the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCart/).
|
|
1345
1527
|
*/
|
|
1346
1528
|
async updateCart(
|
|
@@ -1400,61 +1582,9 @@ class Cart {
|
|
|
1400
1582
|
/**
|
|
1401
1583
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1402
1584
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1403
|
-
* @returns {Promise<
|
|
1404
|
-
* @name updateCartBreakup
|
|
1405
|
-
* @summary: Update store credits into cart and their items
|
|
1406
|
-
* @description: Update cart. Customers can adjust the cart breakup by applying or removing store credits as needed. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCartBreakup/).
|
|
1407
|
-
*/
|
|
1408
|
-
async updateCartBreakup(
|
|
1409
|
-
{ body, id, i, b, buyNow, cartType, requestHeaders } = {
|
|
1410
|
-
requestHeaders: {},
|
|
1411
|
-
},
|
|
1412
|
-
{ responseHeaders } = { responseHeaders: false }
|
|
1413
|
-
) {
|
|
1414
|
-
let invalidInput = [];
|
|
1415
|
-
if (invalidInput.length) {
|
|
1416
|
-
const error = new Error();
|
|
1417
|
-
error.message = "Missing required field";
|
|
1418
|
-
error.details = invalidInput;
|
|
1419
|
-
return Promise.reject(new FDKClientValidationError(error));
|
|
1420
|
-
}
|
|
1421
|
-
|
|
1422
|
-
const query_params = {};
|
|
1423
|
-
query_params["id"] = id;
|
|
1424
|
-
query_params["i"] = i;
|
|
1425
|
-
query_params["b"] = b;
|
|
1426
|
-
query_params["buy_now"] = buyNow;
|
|
1427
|
-
query_params["cart_type"] = cartType;
|
|
1428
|
-
|
|
1429
|
-
const xHeaders = {};
|
|
1430
|
-
|
|
1431
|
-
const response = await ApplicationAPIClient.execute(
|
|
1432
|
-
this._conf,
|
|
1433
|
-
"patch",
|
|
1434
|
-
constructUrl({
|
|
1435
|
-
url: this._urls["updateCartBreakup"],
|
|
1436
|
-
params: {},
|
|
1437
|
-
}),
|
|
1438
|
-
query_params,
|
|
1439
|
-
body,
|
|
1440
|
-
{ ...xHeaders, ...requestHeaders },
|
|
1441
|
-
{ responseHeaders }
|
|
1442
|
-
);
|
|
1443
|
-
|
|
1444
|
-
let responseData = response;
|
|
1445
|
-
if (responseHeaders) {
|
|
1446
|
-
responseData = response[0];
|
|
1447
|
-
}
|
|
1448
|
-
|
|
1449
|
-
return response;
|
|
1450
|
-
}
|
|
1451
|
-
|
|
1452
|
-
/**
|
|
1453
|
-
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1454
|
-
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1455
|
-
* @returns {Promise<CartMetaResult>} - Success response
|
|
1585
|
+
* @returns {Promise<CartMetaResponse>} - Success response
|
|
1456
1586
|
* @name updateCartMeta
|
|
1457
|
-
* @summary: Update cart metadata
|
|
1587
|
+
* @summary: Update cart metadata.
|
|
1458
1588
|
* @description: Update metadata associated with a cart, which includes customer preferences, delivery instructions, or any special requirements related to the cart items. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCartMeta/).
|
|
1459
1589
|
*/
|
|
1460
1590
|
async updateCartMeta(
|
|
@@ -1499,13 +1629,13 @@ class Cart {
|
|
|
1499
1629
|
/**
|
|
1500
1630
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1501
1631
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1502
|
-
* @returns {Promise<
|
|
1632
|
+
* @returns {Promise<SharedCartResponse>} - Success response
|
|
1503
1633
|
* @name updateCartWithSharedItems
|
|
1504
|
-
* @summary:
|
|
1634
|
+
* @summary: Merge or replace existing cart
|
|
1505
1635
|
* @description: Merge or replace shared cart items with existing cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCartWithSharedItems/).
|
|
1506
1636
|
*/
|
|
1507
1637
|
async updateCartWithSharedItems(
|
|
1508
|
-
{ token, action, requestHeaders } = { requestHeaders: {} },
|
|
1638
|
+
{ token, action, cartId, requestHeaders } = { requestHeaders: {} },
|
|
1509
1639
|
{ responseHeaders } = { responseHeaders: false }
|
|
1510
1640
|
) {
|
|
1511
1641
|
let invalidInput = [];
|
|
@@ -1530,6 +1660,7 @@ class Cart {
|
|
|
1530
1660
|
}
|
|
1531
1661
|
|
|
1532
1662
|
const query_params = {};
|
|
1663
|
+
query_params["cart_id"] = cartId;
|
|
1533
1664
|
|
|
1534
1665
|
const xHeaders = {};
|
|
1535
1666
|
|
|
@@ -1559,7 +1690,7 @@ class Cart {
|
|
|
1559
1690
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1560
1691
|
* @returns {Promise<PaymentCouponValidate>} - Success response
|
|
1561
1692
|
* @name validateCouponForPayment
|
|
1562
|
-
* @summary: Validate
|
|
1693
|
+
* @summary: Validate coupon.
|
|
1563
1694
|
* @description: Validate the applicability of a coupon code for the selected payment mode for the existing cart. This ensures the coupon's validity before proceeding with the payment process, enhancing user experience and preventing potential errors during transactions. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/validateCouponForPayment/).
|
|
1564
1695
|
*/
|
|
1565
1696
|
async validateCouponForPayment(
|