@gofynd/fdk-client-javascript 1.1.6 → 1.3.0
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 +52 -3
- package/index.js +0 -3
- package/package.json +1 -2
- package/sdk/application/ApplicationAPIClient.d.ts +15 -1
- package/sdk/application/ApplicationAPIClient.js +12 -3
- package/sdk/application/ApplicationClient.d.ts +36 -6
- package/sdk/application/ApplicationClient.js +30 -43
- package/sdk/application/ApplicationConfig.d.ts +92 -12
- package/sdk/application/ApplicationConfig.js +48 -14
- package/sdk/application/Cart/CartApplicationClient.d.ts +200 -357
- package/sdk/application/Cart/CartApplicationClient.js +711 -483
- package/sdk/application/Cart/CartApplicationModel.d.ts +2054 -96
- package/sdk/application/Cart/CartApplicationModel.js +1224 -93
- package/sdk/application/Cart/CartApplicationValidator.d.ts +508 -30
- package/sdk/application/Cart/CartApplicationValidator.js +270 -15
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +274 -422
- package/sdk/application/Catalog/CatalogApplicationClient.js +865 -630
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2320 -117
- package/sdk/application/Catalog/CatalogApplicationModel.js +1566 -172
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +798 -31
- package/sdk/application/Catalog/CatalogApplicationValidator.js +318 -3
- package/sdk/application/Common/CommonApplicationClient.d.ts +16 -21
- package/sdk/application/Common/CommonApplicationClient.js +52 -33
- package/sdk/application/Common/CommonApplicationModel.d.ts +368 -19
- package/sdk/application/Common/CommonApplicationModel.js +192 -40
- package/sdk/application/Common/CommonApplicationValidator.d.ts +42 -4
- package/sdk/application/Common/CommonApplicationValidator.js +21 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +31 -18
- package/sdk/application/Communication/CommunicationApplicationClient.js +86 -47
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +157 -14
- package/sdk/application/Communication/CommunicationApplicationModel.js +104 -23
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +27 -4
- package/sdk/application/Communication/CommunicationApplicationValidator.js +21 -5
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +149 -118
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +457 -260
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +2235 -110
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1113 -193
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +160 -8
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +88 -4
- package/sdk/application/Content/ContentApplicationClient.d.ts +149 -139
- package/sdk/application/Content/ContentApplicationClient.js +489 -278
- package/sdk/application/Content/ContentApplicationModel.d.ts +1010 -105
- package/sdk/application/Content/ContentApplicationModel.js +737 -396
- package/sdk/application/Content/ContentApplicationValidator.d.ts +214 -12
- package/sdk/application/Content/ContentApplicationValidator.js +113 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +23 -29
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +74 -47
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +148 -20
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +100 -87
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +55 -5
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +33 -6
- package/sdk/application/Lead/LeadApplicationClient.d.ts +57 -53
- package/sdk/application/Lead/LeadApplicationClient.js +188 -103
- package/sdk/application/Lead/LeadApplicationModel.d.ts +686 -54
- package/sdk/application/Lead/LeadApplicationModel.js +330 -244
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +91 -9
- package/sdk/application/Lead/LeadApplicationValidator.js +51 -6
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +40 -33
- package/sdk/application/Logistic/LogisticApplicationClient.js +131 -73
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +399 -28
- package/sdk/application/Logistic/LogisticApplicationModel.js +293 -24
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +48 -6
- package/sdk/application/Logistic/LogisticApplicationValidator.js +34 -6
- package/sdk/application/Order/OrderApplicationClient.d.ts +93 -133
- package/sdk/application/Order/OrderApplicationClient.js +329 -217
- package/sdk/application/Order/OrderApplicationModel.d.ts +1101 -66
- package/sdk/application/Order/OrderApplicationModel.js +776 -57
- package/sdk/application/Order/OrderApplicationValidator.d.ts +249 -14
- package/sdk/application/Order/OrderApplicationValidator.js +114 -5
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +400 -366
- package/sdk/application/Payment/PaymentApplicationClient.js +1176 -703
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +3125 -99
- package/sdk/application/Payment/PaymentApplicationModel.js +1158 -62
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +494 -41
- package/sdk/application/Payment/PaymentApplicationValidator.js +297 -25
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +205 -350
- package/sdk/application/PosCart/PosCartApplicationClient.js +720 -491
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1823 -89
- package/sdk/application/PosCart/PosCartApplicationModel.js +1117 -85
- package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +480 -29
- package/sdk/application/PosCart/PosCartApplicationValidator.js +262 -15
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +58 -47
- package/sdk/application/Rewards/RewardsApplicationClient.js +187 -102
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +343 -22
- package/sdk/application/Rewards/RewardsApplicationModel.js +230 -15
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +70 -7
- package/sdk/application/Rewards/RewardsApplicationValidator.js +45 -6
- package/sdk/application/Share/ShareApplicationClient.d.ts +52 -50
- package/sdk/application/Share/ShareApplicationClient.js +185 -97
- package/sdk/application/Share/ShareApplicationModel.d.ts +198 -15
- package/sdk/application/Share/ShareApplicationModel.js +131 -31
- package/sdk/application/Share/ShareApplicationValidator.d.ts +86 -8
- package/sdk/application/Share/ShareApplicationValidator.js +48 -4
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +30 -27
- package/sdk/application/Theme/ThemeApplicationClient.js +102 -56
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +1291 -48
- package/sdk/application/Theme/ThemeApplicationModel.js +895 -134
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +49 -5
- package/sdk/application/Theme/ThemeApplicationValidator.js +26 -3
- package/sdk/application/User/UserApplicationClient.d.ts +260 -305
- package/sdk/application/User/UserApplicationClient.js +910 -522
- package/sdk/application/User/UserApplicationModel.d.ts +992 -101
- package/sdk/application/User/UserApplicationModel.js +699 -248
- package/sdk/application/User/UserApplicationValidator.d.ts +457 -33
- package/sdk/application/User/UserApplicationValidator.js +265 -31
- package/sdk/common/AxiosHelper.js +7 -2
- package/sdk/common/FDKError.d.ts +3 -0
- package/sdk/common/FDKError.js +8 -0
- package/sdk/common/Paginator.d.ts +27 -12
- package/sdk/common/Paginator.js +15 -0
- package/sdk/common/RequestSigner.js +0 -1
- package/sdk/common/utils.d.ts +3 -0
- package/sdk/common/utils.js +29 -0
- package/sdk/partner/PartnerAPIClient.d.ts +16 -1
- package/sdk/partner/PartnerAPIClient.js +12 -2
- package/sdk/partner/PartnerClient.d.ts +22 -3
- package/sdk/partner/PartnerClient.js +20 -0
- package/sdk/partner/PartnerConfig.d.ts +40 -14
- package/sdk/partner/PartnerConfig.js +31 -6
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +299 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +768 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1706 -0
- package/sdk/partner/Theme/ThemePartnerModel.js +1409 -0
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +22 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +157 -0
- package/sdk/partner/index.d.ts +3 -1
- package/sdk/partner/index.js +3 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +30 -25
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +104 -53
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +190 -17
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +132 -15
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +52 -5
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +30 -4
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +133 -97
- package/sdk/platform/Billing/BillingPlatformClient.js +561 -191
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +1071 -68
- package/sdk/platform/Billing/BillingPlatformModel.js +762 -151
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +175 -12
- package/sdk/platform/Billing/BillingPlatformValidator.js +118 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +454 -635
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +1646 -957
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +827 -57
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +492 -34
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3839 -175
- package/sdk/platform/Cart/CartPlatformModel.js +2423 -217
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +528 -638
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1600 -984
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1081 -49
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +482 -23
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +652 -826
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1979 -1264
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6869 -326
- package/sdk/platform/Catalog/CatalogPlatformModel.js +4215 -351
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1361 -71
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +624 -30
- package/sdk/platform/Common/CommonPlatformClient.d.ts +16 -21
- package/sdk/platform/Common/CommonPlatformClient.js +50 -33
- package/sdk/platform/Common/CommonPlatformModel.d.ts +423 -19
- package/sdk/platform/Common/CommonPlatformModel.js +214 -40
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +37 -4
- package/sdk/platform/Common/CommonPlatformValidator.js +20 -3
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +731 -303
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +3095 -785
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +699 -41
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +463 -27
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +19 -5
- package/sdk/platform/Communication/CommunicationPlatformClient.js +59 -19
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1708 -102
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1360 -235
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +16 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +11 -3
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +127 -111
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +435 -225
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +882 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +666 -78
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +184 -13
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +105 -10
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +327 -240
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +922 -438
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +297 -22
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +191 -17
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +184 -178
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +555 -311
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +4337 -188
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2178 -248
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +332 -19
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +153 -10
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +605 -578
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1996 -987
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +872 -62
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +487 -35
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1472 -108
- package/sdk/platform/Content/ContentPlatformModel.js +1085 -204
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +85 -82
- package/sdk/platform/Discount/DiscountPlatformClient.js +333 -175
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +281 -15
- package/sdk/platform/Discount/DiscountPlatformModel.js +189 -10
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +185 -13
- package/sdk/platform/Discount/DiscountPlatformValidator.js +88 -8
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +109 -52
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +570 -105
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +141 -6
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +118 -7
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +43 -63
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +153 -135
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +426 -20
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +379 -40
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +106 -8
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +60 -8
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +260 -129
- package/sdk/platform/Finance/FinancePlatformClient.js +1182 -194
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +1267 -50
- package/sdk/platform/Finance/FinancePlatformModel.js +1252 -38
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +233 -15
- package/sdk/platform/Finance/FinancePlatformValidator.js +229 -16
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +111 -97
- package/sdk/platform/Inventory/InventoryPlatformClient.js +330 -199
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +1354 -61
- package/sdk/platform/Inventory/InventoryPlatformModel.js +916 -83
- package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +168 -12
- package/sdk/platform/Inventory/InventoryPlatformValidator.js +82 -6
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +100 -106
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +372 -186
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +180 -14
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +94 -9
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +89 -104
- package/sdk/platform/Lead/LeadPlatformClient.js +305 -180
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +1045 -54
- package/sdk/platform/Lead/LeadPlatformModel.js +504 -142
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +173 -12
- package/sdk/platform/Lead/LeadPlatformValidator.js +92 -15
- package/sdk/platform/OAuthClient.js +6 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +20 -14
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +58 -29
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +26 -4
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
- package/sdk/platform/Order/OrderPlatformClient.d.ts +437 -556
- package/sdk/platform/Order/OrderPlatformClient.js +1500 -760
- package/sdk/platform/Order/OrderPlatformModel.d.ts +5225 -247
- package/sdk/platform/Order/OrderPlatformModel.js +3473 -260
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +859 -37
- package/sdk/platform/Order/OrderPlatformValidator.js +435 -23
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +16 -42
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +52 -155
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +37 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +19 -17
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +78 -45
- package/sdk/platform/Partner/PartnerPlatformModel.js +43 -369
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +418 -288
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +1509 -505
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +438 -30
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +312 -19
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +83 -73
- package/sdk/platform/Payment/PaymentPlatformClient.js +259 -154
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3200 -93
- package/sdk/platform/Payment/PaymentPlatformModel.js +1334 -36
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +111 -11
- package/sdk/platform/Payment/PaymentPlatformValidator.js +68 -7
- package/sdk/platform/PlatformAPIClient.d.ts +16 -1
- package/sdk/platform/PlatformAPIClient.js +9 -1
- package/sdk/platform/PlatformApplicationClient.d.ts +22 -1798
- package/sdk/platform/PlatformApplicationClient.js +17 -1899
- package/sdk/platform/PlatformClient.d.ts +31 -12581
- package/sdk/platform/PlatformClient.js +30 -15089
- package/sdk/platform/PlatformConfig.d.ts +37 -11
- package/sdk/platform/PlatformConfig.js +32 -6
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +96 -92
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +344 -177
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +149 -12
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +82 -8
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +360 -23
- package/sdk/platform/Rewards/RewardsPlatformModel.js +238 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +159 -92
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +473 -208
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +138 -13
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +100 -14
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +166 -178
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +518 -329
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1408 -96
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1034 -71
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +280 -18
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -11
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +41 -66
- package/sdk/platform/Share/SharePlatformApplicationClient.js +149 -116
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +87 -7
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +42 -5
- package/sdk/platform/Share/SharePlatformModel.d.ts +250 -16
- package/sdk/platform/Share/SharePlatformModel.js +167 -19
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +229 -193
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +976 -352
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +345 -24
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +206 -14
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +37 -0
- package/sdk/platform/Theme/ThemePlatformClient.js +235 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +1527 -48
- package/sdk/platform/Theme/ThemePlatformModel.js +1099 -118
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +32 -0
- package/sdk/platform/Theme/ThemePlatformValidator.js +38 -0
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +138 -152
- package/sdk/platform/User/UserPlatformApplicationClient.js +470 -244
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +242 -18
- package/sdk/platform/User/UserPlatformApplicationValidator.js +129 -12
- package/sdk/platform/User/UserPlatformModel.d.ts +653 -101
- package/sdk/platform/User/UserPlatformModel.js +467 -424
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +153 -49
- package/sdk/platform/Webhook/WebhookPlatformClient.js +896 -88
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +632 -16
- package/sdk/platform/Webhook/WebhookPlatformModel.js +502 -54
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +170 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +157 -7
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +16 -21
- package/sdk/public/Configuration/ConfigurationPublicClient.js +48 -33
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +370 -19
- package/sdk/public/Configuration/ConfigurationPublicModel.js +191 -40
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +42 -4
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +21 -3
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +54 -48
- package/sdk/public/Inventory/InventoryPublicClient.js +161 -98
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +392 -21
- package/sdk/public/Inventory/InventoryPublicModel.js +267 -27
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +90 -8
- package/sdk/public/Inventory/InventoryPublicValidator.js +44 -4
- package/sdk/public/Partner/PartnerPublicClient.d.ts +22 -0
- package/sdk/public/Partner/PartnerPublicClient.js +110 -0
- package/sdk/public/Partner/PartnerPublicModel.d.ts +240 -0
- package/sdk/public/Partner/PartnerPublicModel.js +280 -0
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +18 -0
- package/sdk/public/Partner/PartnerPublicValidator.js +19 -0
- package/sdk/public/PublicAPIClient.d.ts +14 -1
- package/sdk/public/PublicAPIClient.js +7 -1
- package/sdk/public/PublicClient.d.ts +21 -3
- package/sdk/public/PublicClient.js +20 -0
- package/sdk/public/PublicConfig.d.ts +27 -6
- package/sdk/public/PublicConfig.js +17 -1
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +16 -11
- package/sdk/public/Webhook/WebhookPublicClient.js +48 -27
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +52 -16
- package/sdk/public/Webhook/WebhookPublicModel.js +33 -113
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +18 -3
- package/sdk/public/Webhook/WebhookPublicValidator.js +14 -4
- package/sdk/public/index.d.ts +1 -0
- package/sdk/public/index.js +2 -0
- package/sdk/application/ApplicationModels.d.ts +0 -3
- package/sdk/application/ApplicationModels.js +0 -20
- package/sdk/platform/Partner/PartnerPlatformClient.d.ts +0 -145
- package/sdk/platform/Partner/PartnerPlatformClient.js +0 -799
- package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +0 -14
- package/sdk/platform/Partner/PartnerPlatformValidator.js +0 -87
|
@@ -35,445 +35,288 @@ declare class Cart {
|
|
|
35
35
|
_urls: {};
|
|
36
36
|
updateUrls(urls: any): void;
|
|
37
37
|
/**
|
|
38
|
-
* @param {
|
|
39
|
-
* @param {
|
|
40
|
-
* @
|
|
38
|
+
* @param {CartApplicationValidator.AddAddressParam} arg - Arg object.
|
|
39
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
40
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
41
|
+
* @returns {Promise<CartApplicationModel.SaveAddressResponse>} - Success response
|
|
42
|
+
* @name addAddress
|
|
41
43
|
* @summary: Add address to an account
|
|
42
|
-
* @description: Use this API to add an address to an account.
|
|
44
|
+
* @description: Use this API to add an address to an account. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/addAddress/).
|
|
43
45
|
*/
|
|
44
|
-
addAddress({ body }?: {
|
|
45
|
-
body: Address;
|
|
46
|
-
}): Promise<SaveAddressResponse>;
|
|
46
|
+
addAddress({ body, requestHeaders }?: CartApplicationValidator.AddAddressParam, { responseHeaders }?: object): Promise<CartApplicationModel.SaveAddressResponse>;
|
|
47
47
|
/**
|
|
48
|
-
* @param {
|
|
49
|
-
* @param {
|
|
50
|
-
* @param {
|
|
51
|
-
* @
|
|
52
|
-
* @
|
|
53
|
-
* @param {string} [arg.id] -
|
|
54
|
-
* @param {AddCartRequest} arg.body
|
|
55
|
-
* @returns {Promise<AddCartDetailResponse>} - Success response
|
|
48
|
+
* @param {CartApplicationValidator.AddItemsParam} arg - Arg object.
|
|
49
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
50
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
51
|
+
* @returns {Promise<CartApplicationModel.AddCartDetailResponse>} - Success response
|
|
52
|
+
* @name addItems
|
|
56
53
|
* @summary: Add items to cart
|
|
57
|
-
* @description: Use this API to add items to the cart.
|
|
54
|
+
* @description: Use this API to add items to the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/addItems/).
|
|
58
55
|
*/
|
|
59
|
-
addItems({ body, i, b, areaCode, buyNow, id }?: {
|
|
60
|
-
i?: boolean;
|
|
61
|
-
b?: boolean;
|
|
62
|
-
areaCode?: string;
|
|
63
|
-
buyNow?: boolean;
|
|
64
|
-
id?: string;
|
|
65
|
-
body: AddCartRequest;
|
|
66
|
-
}): Promise<AddCartDetailResponse>;
|
|
56
|
+
addItems({ body, i, b, areaCode, buyNow, id, requestHeaders }?: CartApplicationValidator.AddItemsParam, { responseHeaders }?: object): Promise<CartApplicationModel.AddCartDetailResponse>;
|
|
67
57
|
/**
|
|
68
|
-
* @param {
|
|
69
|
-
* @param {
|
|
70
|
-
* @param {
|
|
71
|
-
* @
|
|
72
|
-
* @
|
|
73
|
-
* @param {boolean} [arg.buyNow] -
|
|
74
|
-
* @param {ApplyCouponRequest} arg.body
|
|
75
|
-
* @returns {Promise<CartDetailResponse>} - Success response
|
|
58
|
+
* @param {CartApplicationValidator.ApplyCouponParam} arg - Arg object.
|
|
59
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
60
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
61
|
+
* @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
|
|
62
|
+
* @name applyCoupon
|
|
76
63
|
* @summary: Apply Coupon
|
|
77
|
-
* @description: Use this API to apply coupons on items in the cart.
|
|
64
|
+
* @description: Use this API to apply coupons on items in the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/applyCoupon/).
|
|
78
65
|
*/
|
|
79
|
-
applyCoupon({ body, i, b, p, id, buyNow }?: {
|
|
80
|
-
i?: boolean;
|
|
81
|
-
b?: boolean;
|
|
82
|
-
p?: boolean;
|
|
83
|
-
id?: string;
|
|
84
|
-
buyNow?: boolean;
|
|
85
|
-
body: ApplyCouponRequest;
|
|
86
|
-
}): Promise<CartDetailResponse>;
|
|
66
|
+
applyCoupon({ body, i, b, p, id, buyNow, requestHeaders }?: CartApplicationValidator.ApplyCouponParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartDetailResponse>;
|
|
87
67
|
/**
|
|
88
|
-
* @param {
|
|
89
|
-
* @param {
|
|
90
|
-
* @param {
|
|
91
|
-
* @
|
|
92
|
-
* @
|
|
93
|
-
* @param {RewardPointRequest} arg.body
|
|
94
|
-
* @returns {Promise<CartDetailResponse>} - Success response
|
|
68
|
+
* @param {CartApplicationValidator.ApplyRewardPointsParam} arg - Arg object.
|
|
69
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
70
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
71
|
+
* @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
|
|
72
|
+
* @name applyRewardPoints
|
|
95
73
|
* @summary: Apply reward points at cart
|
|
96
|
-
* @description: Use this API to redeem a fixed no. of reward points by applying it to the cart.
|
|
74
|
+
* @description: Use this API to redeem a fixed no. of reward points by applying it to the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/applyRewardPoints/).
|
|
97
75
|
*/
|
|
98
|
-
applyRewardPoints({ body, id, i, b, buyNow }?: {
|
|
99
|
-
id?: string;
|
|
100
|
-
i?: boolean;
|
|
101
|
-
b?: boolean;
|
|
102
|
-
buyNow?: boolean;
|
|
103
|
-
body: RewardPointRequest;
|
|
104
|
-
}): Promise<CartDetailResponse>;
|
|
76
|
+
applyRewardPoints({ body, id, i, b, buyNow, requestHeaders }?: CartApplicationValidator.ApplyRewardPointsParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartDetailResponse>;
|
|
105
77
|
/**
|
|
106
|
-
* @param {
|
|
107
|
-
* @param {
|
|
108
|
-
* @param {
|
|
109
|
-
* @returns {Promise<CartCheckoutResponse>} - Success response
|
|
78
|
+
* @param {CartApplicationValidator.CheckoutCartParam} arg - Arg object.
|
|
79
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
80
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
81
|
+
* @returns {Promise<CartApplicationModel.CartCheckoutResponse>} - Success response
|
|
82
|
+
* @name checkoutCart
|
|
110
83
|
* @summary: Checkout all items in the cart
|
|
111
|
-
* @description: Use this API to checkout all items in the cart for payment and order generation. For COD, order will be directly generated, whereas for other checkout modes, user will be redirected to a payment gateway.
|
|
84
|
+
* @description: Use this API to checkout all items in the cart for payment and order generation. For COD, order will be directly generated, whereas for other checkout modes, user will be redirected to a payment gateway. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/checkoutCart/).
|
|
112
85
|
*/
|
|
113
|
-
checkoutCart({ body, buyNow }?: {
|
|
114
|
-
buyNow?: boolean;
|
|
115
|
-
body: CartCheckoutDetailRequest;
|
|
116
|
-
}): Promise<CartCheckoutResponse>;
|
|
86
|
+
checkoutCart({ body, buyNow, requestHeaders }?: CartApplicationValidator.CheckoutCartParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartCheckoutResponse>;
|
|
117
87
|
/**
|
|
118
|
-
* @param {
|
|
119
|
-
* @param {
|
|
120
|
-
* @param {
|
|
121
|
-
* @returns {Promise<CartCheckoutResponse>} - Success response
|
|
88
|
+
* @param {CartApplicationValidator.CheckoutCartV2Param} arg - Arg object.
|
|
89
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
90
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
91
|
+
* @returns {Promise<CartApplicationModel.CartCheckoutResponse>} - Success response
|
|
92
|
+
* @name checkoutCartV2
|
|
122
93
|
* @summary: Checkout all items in the cart
|
|
123
|
-
* @description: Use this API to checkout all items in the cart for payment and order generation. For COD, order will be directly generated, whereas for other checkout modes, user will be redirected to a payment gateway.
|
|
94
|
+
* @description: Use this API to checkout all items in the cart for payment and order generation. For COD, order will be directly generated, whereas for other checkout modes, user will be redirected to a payment gateway. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/checkoutCartV2/).
|
|
124
95
|
*/
|
|
125
|
-
checkoutCartV2({ body, buyNow }?: {
|
|
126
|
-
buyNow?: boolean;
|
|
127
|
-
body: CartCheckoutDetailV2Request;
|
|
128
|
-
}): Promise<CartCheckoutResponse>;
|
|
96
|
+
checkoutCartV2({ body, buyNow, requestHeaders }?: CartApplicationValidator.CheckoutCartV2Param, { responseHeaders }?: object): Promise<CartApplicationModel.CartCheckoutResponse>;
|
|
129
97
|
/**
|
|
130
|
-
* @param {
|
|
131
|
-
* @param {
|
|
132
|
-
* @
|
|
98
|
+
* @param {CartApplicationValidator.DeleteCartParam} arg - Arg object.
|
|
99
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
100
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
101
|
+
* @returns {Promise<CartApplicationModel.DeleteCartDetailResponse>} -
|
|
102
|
+
* Success response
|
|
103
|
+
* @name deleteCart
|
|
133
104
|
* @summary: Delete cart once user made successful checkout
|
|
134
|
-
* @description: Use this API to delete the cart.
|
|
105
|
+
* @description: Use this API to delete the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/deleteCart/).
|
|
135
106
|
*/
|
|
136
|
-
deleteCart({ id }?: {
|
|
137
|
-
id?: string;
|
|
138
|
-
}): Promise<DeleteCartDetailResponse>;
|
|
107
|
+
deleteCart({ id, requestHeaders }?: CartApplicationValidator.DeleteCartParam, { responseHeaders }?: object): Promise<CartApplicationModel.DeleteCartDetailResponse>;
|
|
139
108
|
/**
|
|
140
|
-
* @param {
|
|
141
|
-
* @param {
|
|
142
|
-
* @param {
|
|
143
|
-
* @
|
|
144
|
-
* @
|
|
145
|
-
* @param {string} [arg.checkoutMode] -
|
|
146
|
-
* @param {string} [arg.tags] -
|
|
147
|
-
* @param {boolean} [arg.isDefault] -
|
|
148
|
-
* @returns {Promise<Address>} - Success response
|
|
109
|
+
* @param {CartApplicationValidator.GetAddressByIdParam} arg - Arg object.
|
|
110
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
111
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
112
|
+
* @returns {Promise<CartApplicationModel.Address>} - Success response
|
|
113
|
+
* @name getAddressById
|
|
149
114
|
* @summary: Fetch a single address by its ID
|
|
150
|
-
* @description: Use this API to get an addresses using its ID. If successful, returns a Address resource in the response body specified in `Address`. Attibutes listed below are optional
|
|
115
|
+
* @description: Use this API to get an addresses using its ID. If successful, returns a Address resource in the response body specified in `Address`. Attibutes listed below are optional mobile_no checkout_mode tags default - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getAddressById/).
|
|
151
116
|
*/
|
|
152
|
-
getAddressById({ id, cartId, buyNow, mobileNo, checkoutMode, tags, isDefault, }?: {
|
|
153
|
-
id: string;
|
|
154
|
-
cartId?: string;
|
|
155
|
-
buyNow?: boolean;
|
|
156
|
-
mobileNo?: string;
|
|
157
|
-
checkoutMode?: string;
|
|
158
|
-
tags?: string;
|
|
159
|
-
isDefault?: boolean;
|
|
160
|
-
}): Promise<Address>;
|
|
117
|
+
getAddressById({ id, cartId, buyNow, mobileNo, checkoutMode, tags, isDefault, requestHeaders, }?: CartApplicationValidator.GetAddressByIdParam, { responseHeaders }?: object): Promise<CartApplicationModel.Address>;
|
|
161
118
|
/**
|
|
162
|
-
* @param {
|
|
163
|
-
* @param {
|
|
164
|
-
* @param {
|
|
165
|
-
* @
|
|
166
|
-
* @
|
|
167
|
-
* @param {string} [arg.tags] -
|
|
168
|
-
* @param {boolean} [arg.isDefault] -
|
|
169
|
-
* @returns {Promise<GetAddressesResponse>} - Success response
|
|
119
|
+
* @param {CartApplicationValidator.GetAddressesParam} arg - Arg object.
|
|
120
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
121
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
122
|
+
* @returns {Promise<CartApplicationModel.GetAddressesResponse>} - Success response
|
|
123
|
+
* @name getAddresses
|
|
170
124
|
* @summary: Fetch address
|
|
171
|
-
* @description: Use this API to get all the addresses associated with an account. If successful, returns a Address resource in the response body specified in GetAddressesResponse.attibutes listed below are optional
|
|
125
|
+
* @description: Use this API to get all the addresses associated with an account. If successful, returns a Address resource in the response body specified in GetAddressesResponse.attibutes listed below are optional uid address_id mobile_no checkout_mode tags default - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getAddresses/).
|
|
172
126
|
*/
|
|
173
|
-
getAddresses({ cartId, buyNow, mobileNo, checkoutMode, tags, isDefault, }?: {
|
|
174
|
-
cartId?: string;
|
|
175
|
-
buyNow?: boolean;
|
|
176
|
-
mobileNo?: string;
|
|
177
|
-
checkoutMode?: string;
|
|
178
|
-
tags?: string;
|
|
179
|
-
isDefault?: boolean;
|
|
180
|
-
}): Promise<GetAddressesResponse>;
|
|
127
|
+
getAddresses({ cartId, buyNow, mobileNo, checkoutMode, tags, isDefault, requestHeaders, }?: CartApplicationValidator.GetAddressesParam, { responseHeaders }?: object): Promise<CartApplicationModel.GetAddressesResponse>;
|
|
181
128
|
/**
|
|
182
|
-
* @param {
|
|
183
|
-
* @param {
|
|
184
|
-
* @param {
|
|
185
|
-
* @
|
|
186
|
-
* @
|
|
187
|
-
* identifier of a product. You can get slug value from the endpoint
|
|
188
|
-
* /service/application/catalog/v1.0/products/
|
|
189
|
-
* @returns {Promise<BulkPriceResponse>} - Success response
|
|
129
|
+
* @param {CartApplicationValidator.GetBulkDiscountOffersParam} arg - Arg object.
|
|
130
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
131
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
132
|
+
* @returns {Promise<CartApplicationModel.BulkPriceResponse>} - Success response
|
|
133
|
+
* @name getBulkDiscountOffers
|
|
190
134
|
* @summary: Get discount offers based on quantity
|
|
191
|
-
* @description: Use this API to get a list of applicable offers along with current, next and best offer for given product. Either one of uid, item_id, slug should be present.
|
|
135
|
+
* @description: Use this API to get a list of applicable offers along with current, next and best offer for given product. Either one of uid, item_id, slug should be present. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getBulkDiscountOffers/).
|
|
192
136
|
*/
|
|
193
|
-
getBulkDiscountOffers({ itemId, articleId, uid, slug }?: {
|
|
194
|
-
itemId?: number;
|
|
195
|
-
articleId?: string;
|
|
196
|
-
uid?: number;
|
|
197
|
-
slug?: string;
|
|
198
|
-
}): Promise<BulkPriceResponse>;
|
|
137
|
+
getBulkDiscountOffers({ itemId, articleId, uid, slug, requestHeaders }?: CartApplicationValidator.GetBulkDiscountOffersParam, { responseHeaders }?: object): Promise<CartApplicationModel.BulkPriceResponse>;
|
|
199
138
|
/**
|
|
200
|
-
* @param {
|
|
201
|
-
* @param {
|
|
202
|
-
* @param {
|
|
203
|
-
* @
|
|
204
|
-
* @
|
|
205
|
-
* @param {string} [arg.areaCode] -
|
|
206
|
-
* @param {boolean} [arg.buyNow] -
|
|
207
|
-
* @returns {Promise<CartDetailResponse>} - Success response
|
|
139
|
+
* @param {CartApplicationValidator.GetCartParam} arg - Arg object.
|
|
140
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
141
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
142
|
+
* @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
|
|
143
|
+
* @name getCart
|
|
208
144
|
* @summary: Fetch all items added to the cart
|
|
209
|
-
* @description: Use this API to get details of all the items added to a cart.
|
|
145
|
+
* @description: Use this API to get details of all the items added to a cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCart/).
|
|
210
146
|
*/
|
|
211
|
-
getCart({ id, i, b, assignCardId, areaCode, buyNow }?: {
|
|
212
|
-
id?: string;
|
|
213
|
-
i?: boolean;
|
|
214
|
-
b?: boolean;
|
|
215
|
-
assignCardId?: number;
|
|
216
|
-
areaCode?: string;
|
|
217
|
-
buyNow?: boolean;
|
|
218
|
-
}): Promise<CartDetailResponse>;
|
|
147
|
+
getCart({ id, i, b, assignCardId, areaCode, buyNow, requestHeaders }?: CartApplicationValidator.GetCartParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartDetailResponse>;
|
|
219
148
|
/**
|
|
220
|
-
* @param {
|
|
221
|
-
* @param {
|
|
149
|
+
* @param {CartApplicationValidator.GetCartLastModifiedParam} arg - Arg object.
|
|
150
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
151
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
222
152
|
* @returns {Promise<any>} - Success response
|
|
153
|
+
* @name getCartLastModified
|
|
223
154
|
* @summary: Fetch last-modified timestamp
|
|
224
|
-
* @description: Use this API to fetch Last-Modified timestamp in header metadata.
|
|
155
|
+
* @description: Use this API to fetch Last-Modified timestamp in header metadata. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCartLastModified/).
|
|
225
156
|
*/
|
|
226
|
-
getCartLastModified({ id }?: {
|
|
227
|
-
id?: string;
|
|
228
|
-
}): Promise<any>;
|
|
157
|
+
getCartLastModified({ id, requestHeaders }?: CartApplicationValidator.GetCartLastModifiedParam, { responseHeaders }?: object): Promise<any>;
|
|
229
158
|
/**
|
|
230
|
-
* @param {
|
|
231
|
-
* @param {
|
|
232
|
-
* @
|
|
159
|
+
* @param {CartApplicationValidator.GetCartShareLinkParam} arg - Arg object.
|
|
160
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
161
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
162
|
+
* @returns {Promise<CartApplicationModel.GetShareCartLinkResponse>} -
|
|
163
|
+
* Success response
|
|
164
|
+
* @name getCartShareLink
|
|
233
165
|
* @summary: Generate token for sharing the cart
|
|
234
|
-
* @description: Use this API to generate a shared cart snapshot and return a shortlink token. The link can be shared with other users for getting the same items in their cart.
|
|
166
|
+
* @description: Use this API to generate a shared cart snapshot and return a shortlink token. The link can be shared with other users for getting the same items in their cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCartShareLink/).
|
|
235
167
|
*/
|
|
236
|
-
getCartShareLink({ body }?: {
|
|
237
|
-
body: GetShareCartLinkRequest;
|
|
238
|
-
}): Promise<GetShareCartLinkResponse>;
|
|
168
|
+
getCartShareLink({ body, requestHeaders }?: CartApplicationValidator.GetCartShareLinkParam, { responseHeaders }?: object): Promise<CartApplicationModel.GetShareCartLinkResponse>;
|
|
239
169
|
/**
|
|
240
|
-
* @param {
|
|
241
|
-
* @param {
|
|
242
|
-
* @
|
|
170
|
+
* @param {CartApplicationValidator.GetCartSharedItemsParam} arg - Arg object.
|
|
171
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
172
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
173
|
+
* @returns {Promise<CartApplicationModel.SharedCartResponse>} - Success response
|
|
174
|
+
* @name getCartSharedItems
|
|
243
175
|
* @summary: Get details of a shared cart
|
|
244
|
-
* @description: Use this API to get the shared cart details as per the token generated using the share-cart API.
|
|
176
|
+
* @description: Use this API to get the shared cart details as per the token generated using the share-cart API. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCartSharedItems/).
|
|
245
177
|
*/
|
|
246
|
-
getCartSharedItems({ token }?: {
|
|
247
|
-
token: string;
|
|
248
|
-
}): Promise<SharedCartResponse>;
|
|
178
|
+
getCartSharedItems({ token, requestHeaders }?: CartApplicationValidator.GetCartSharedItemsParam, { responseHeaders }?: object): Promise<CartApplicationModel.SharedCartResponse>;
|
|
249
179
|
/**
|
|
250
|
-
* @param {
|
|
251
|
-
* @param {
|
|
252
|
-
* @param {
|
|
253
|
-
* @returns {Promise<GetCouponResponse>} - Success response
|
|
180
|
+
* @param {CartApplicationValidator.GetCouponsParam} arg - Arg object.
|
|
181
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
182
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
183
|
+
* @returns {Promise<CartApplicationModel.GetCouponResponse>} - Success response
|
|
184
|
+
* @name getCoupons
|
|
254
185
|
* @summary: Fetch Coupon
|
|
255
|
-
* @description: Use this API to get a list of available coupons along with their details.
|
|
186
|
+
* @description: Use this API to get a list of available coupons along with their details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCoupons/).
|
|
256
187
|
*/
|
|
257
|
-
getCoupons({ id, buyNow }?: {
|
|
258
|
-
id?: string;
|
|
259
|
-
buyNow?: boolean;
|
|
260
|
-
}): Promise<GetCouponResponse>;
|
|
188
|
+
getCoupons({ id, buyNow, requestHeaders }?: CartApplicationValidator.GetCouponsParam, { responseHeaders }?: object): Promise<CartApplicationModel.GetCouponResponse>;
|
|
261
189
|
/**
|
|
262
|
-
* @param {
|
|
263
|
-
* @param {
|
|
264
|
-
* @param {
|
|
265
|
-
* @returns {Promise<CartItemCountResponse>} - Success response
|
|
190
|
+
* @param {CartApplicationValidator.GetItemCountParam} arg - Arg object.
|
|
191
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
192
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
193
|
+
* @returns {Promise<CartApplicationModel.CartItemCountResponse>} - Success response
|
|
194
|
+
* @name getItemCount
|
|
266
195
|
* @summary: Count items in the cart
|
|
267
|
-
* @description: Use this API to get the total number of items present in cart.
|
|
196
|
+
* @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/getItemCount/).
|
|
268
197
|
*/
|
|
269
|
-
getItemCount({ id, buyNow }?: {
|
|
270
|
-
id?: string;
|
|
271
|
-
buyNow?: boolean;
|
|
272
|
-
}): Promise<CartItemCountResponse>;
|
|
198
|
+
getItemCount({ id, buyNow, requestHeaders }?: CartApplicationValidator.GetItemCountParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartItemCountResponse>;
|
|
273
199
|
/**
|
|
274
|
-
* @param {
|
|
275
|
-
* @param {
|
|
276
|
-
*
|
|
277
|
-
*
|
|
278
|
-
* @
|
|
279
|
-
* If not passed default first created ladder will be returned
|
|
280
|
-
* @param {string} [arg.promotionId] - Get ladder information of given
|
|
281
|
-
* promotion id explicitely
|
|
282
|
-
* @param {number} [arg.pageSize] - Number of offers to be fetched to show
|
|
283
|
-
* @returns {Promise<LadderPriceOffers>} - Success response
|
|
200
|
+
* @param {CartApplicationValidator.GetLadderOffersParam} arg - Arg object.
|
|
201
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
202
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
203
|
+
* @returns {Promise<CartApplicationModel.LadderPriceOffers>} - Success response
|
|
204
|
+
* @name getLadderOffers
|
|
284
205
|
* @summary: Fetch ladder price promotion
|
|
285
|
-
* @description: Use this API to get applicable ladder price promotion for current product
|
|
206
|
+
* @description: Use this API to get applicable ladder price promotion for current product - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getLadderOffers/).
|
|
286
207
|
*/
|
|
287
|
-
getLadderOffers({ slug, storeId, promotionId, pageSize }?: {
|
|
288
|
-
slug: string;
|
|
289
|
-
storeId?: string;
|
|
290
|
-
promotionId?: string;
|
|
291
|
-
pageSize?: number;
|
|
292
|
-
}): Promise<LadderPriceOffers>;
|
|
208
|
+
getLadderOffers({ slug, storeId, promotionId, pageSize, requestHeaders }?: CartApplicationValidator.GetLadderOffersParam, { responseHeaders }?: object): Promise<CartApplicationModel.LadderPriceOffers>;
|
|
293
209
|
/**
|
|
294
|
-
* @param {
|
|
295
|
-
* @param {
|
|
296
|
-
*
|
|
297
|
-
*
|
|
298
|
-
* @
|
|
299
|
-
* @param {string} [arg.promotionGroup] - Type of promotion groups
|
|
300
|
-
* @param {number} [arg.storeId] - Store id
|
|
301
|
-
* @returns {Promise<PromotionOffersResponse>} - Success response
|
|
210
|
+
* @param {CartApplicationValidator.GetPromotionOffersParam} arg - Arg object.
|
|
211
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
212
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
213
|
+
* @returns {Promise<CartApplicationModel.PromotionOffersResponse>} - Success response
|
|
214
|
+
* @name getPromotionOffers
|
|
302
215
|
* @summary: Fetch available promotions
|
|
303
|
-
* @description: Use this API to get top 5 offers available for current product
|
|
216
|
+
* @description: Use this API to get top 5 offers available for current product - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getPromotionOffers/).
|
|
304
217
|
*/
|
|
305
|
-
getPromotionOffers({ slug, pageSize, promotionGroup, storeId }?: {
|
|
306
|
-
slug?: string;
|
|
307
|
-
pageSize?: number;
|
|
308
|
-
promotionGroup?: string;
|
|
309
|
-
storeId?: number;
|
|
310
|
-
}): Promise<PromotionOffersResponse>;
|
|
218
|
+
getPromotionOffers({ slug, pageSize, promotionGroup, storeId, requestHeaders }?: CartApplicationValidator.GetPromotionOffersParam, { responseHeaders }?: object): Promise<CartApplicationModel.PromotionOffersResponse>;
|
|
311
219
|
/**
|
|
312
|
-
* @param {
|
|
313
|
-
* @param {
|
|
314
|
-
*
|
|
315
|
-
* @
|
|
316
|
-
* @
|
|
317
|
-
* @param {string} [arg.addressId] - ID allotted to the selected address
|
|
318
|
-
* @param {string} [arg.areaCode] - The PIN Code of the destination address,
|
|
319
|
-
* e.g. 400059
|
|
320
|
-
* @param {string} [arg.orderType] - The order type of shipment HomeDelivery
|
|
321
|
-
* - If the customer wants the order home-delivered PickAtStore - If the
|
|
322
|
-
* customer wants the handover of an order at the store itself. Digital -
|
|
323
|
-
* If the customer wants to buy digital voucher ( for jiogames )
|
|
324
|
-
* @returns {Promise<CartShipmentsResponse>} - Success response
|
|
220
|
+
* @param {CartApplicationValidator.GetShipmentsParam} arg - Arg object.
|
|
221
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
222
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
223
|
+
* @returns {Promise<CartApplicationModel.CartShipmentsResponse>} - Success response
|
|
224
|
+
* @name getShipments
|
|
325
225
|
* @summary: Get delivery date and options before checkout
|
|
326
|
-
* @description: Use this API to get shipment details, expected delivery date, items and price breakup of the shipment.
|
|
226
|
+
* @description: Use this API to get shipment details, expected delivery date, items and price breakup of the shipment. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getShipments/).
|
|
327
227
|
*/
|
|
328
|
-
getShipments({ p, id, buyNow, addressId, areaCode, orderType }?: {
|
|
329
|
-
p?: boolean;
|
|
330
|
-
id?: string;
|
|
331
|
-
buyNow?: boolean;
|
|
332
|
-
addressId?: string;
|
|
333
|
-
areaCode?: string;
|
|
334
|
-
orderType?: string;
|
|
335
|
-
}): Promise<CartShipmentsResponse>;
|
|
228
|
+
getShipments({ p, id, buyNow, addressId, areaCode, orderType, requestHeaders }?: CartApplicationValidator.GetShipmentsParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartShipmentsResponse>;
|
|
336
229
|
/**
|
|
337
|
-
* @param {
|
|
338
|
-
* @param {
|
|
339
|
-
* @
|
|
230
|
+
* @param {CartApplicationValidator.RemoveAddressParam} arg - Arg object.
|
|
231
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
232
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
233
|
+
* @returns {Promise<CartApplicationModel.DeleteAddressResponse>} - Success response
|
|
234
|
+
* @name removeAddress
|
|
340
235
|
* @summary: Remove address associated with an account
|
|
341
|
-
* @description: Use this API to delete an address by its ID. This will returns an object that will indicate whether the address was deleted successfully or not.
|
|
236
|
+
* @description: Use this API to delete an address by its ID. This will returns an object that will indicate whether the address was deleted successfully or not. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/removeAddress/).
|
|
342
237
|
*/
|
|
343
|
-
removeAddress({ id }?: {
|
|
344
|
-
id: string;
|
|
345
|
-
}): Promise<DeleteAddressResponse>;
|
|
238
|
+
removeAddress({ id, requestHeaders }?: CartApplicationValidator.RemoveAddressParam, { responseHeaders }?: object): Promise<CartApplicationModel.DeleteAddressResponse>;
|
|
346
239
|
/**
|
|
347
|
-
* @param {
|
|
348
|
-
* @param {
|
|
349
|
-
* @param {
|
|
350
|
-
* @returns {Promise<CartDetailResponse>} - Success response
|
|
240
|
+
* @param {CartApplicationValidator.RemoveCouponParam} arg - Arg object.
|
|
241
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
242
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
243
|
+
* @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
|
|
244
|
+
* @name removeCoupon
|
|
351
245
|
* @summary: Remove Coupon Applied
|
|
352
|
-
* @description: Remove Coupon applied on the cart by passing uid in request body.
|
|
246
|
+
* @description: Remove Coupon applied on the cart by passing uid in request body. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/removeCoupon/).
|
|
353
247
|
*/
|
|
354
|
-
removeCoupon({ id, buyNow }?: {
|
|
355
|
-
id?: string;
|
|
356
|
-
buyNow?: boolean;
|
|
357
|
-
}): Promise<CartDetailResponse>;
|
|
248
|
+
removeCoupon({ id, buyNow, requestHeaders }?: CartApplicationValidator.RemoveCouponParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartDetailResponse>;
|
|
358
249
|
/**
|
|
359
|
-
* @param {
|
|
360
|
-
* @param {
|
|
361
|
-
* @param {
|
|
362
|
-
* @
|
|
363
|
-
* @
|
|
364
|
-
* @param {SelectCartAddressRequest} arg.body
|
|
365
|
-
* @returns {Promise<CartDetailResponse>} - Success response
|
|
250
|
+
* @param {CartApplicationValidator.SelectAddressParam} arg - Arg object.
|
|
251
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
252
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
253
|
+
* @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
|
|
254
|
+
* @name selectAddress
|
|
366
255
|
* @summary: Select an address from available addresses
|
|
367
|
-
* @description:
|
|
256
|
+
* @description: Select Address from all addresses associated with the account in order to ship the cart items to that address, otherwise default address will be selected implicitly. See `SelectCartAddressRequest` in schema of request body for the list of attributes needed to select Address from account. On successful request, this API returns a Cart object. Below address attributes are required. address_id billing_address_id uid - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/selectAddress/).
|
|
368
257
|
*/
|
|
369
|
-
selectAddress({ body, cartId, buyNow, i, b }?: {
|
|
370
|
-
cartId?: string;
|
|
371
|
-
buyNow?: boolean;
|
|
372
|
-
i?: boolean;
|
|
373
|
-
b?: boolean;
|
|
374
|
-
body: SelectCartAddressRequest;
|
|
375
|
-
}): Promise<CartDetailResponse>;
|
|
258
|
+
selectAddress({ body, cartId, buyNow, i, b, requestHeaders }?: CartApplicationValidator.SelectAddressParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartDetailResponse>;
|
|
376
259
|
/**
|
|
377
|
-
* @param {
|
|
378
|
-
* @param {
|
|
379
|
-
* @param {
|
|
380
|
-
* @
|
|
381
|
-
* @
|
|
260
|
+
* @param {CartApplicationValidator.SelectPaymentModeParam} arg - Arg object.
|
|
261
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
262
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
263
|
+
* @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
|
|
264
|
+
* @name selectPaymentMode
|
|
382
265
|
* @summary: Update cart payment
|
|
383
|
-
* @description: Use this API to update cart payment.
|
|
266
|
+
* @description: Use this API to update cart payment. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/selectPaymentMode/).
|
|
384
267
|
*/
|
|
385
|
-
selectPaymentMode({ body, id, buyNow }?: {
|
|
386
|
-
id?: string;
|
|
387
|
-
buyNow?: boolean;
|
|
388
|
-
body: UpdateCartPaymentRequest;
|
|
389
|
-
}): Promise<CartDetailResponse>;
|
|
268
|
+
selectPaymentMode({ body, id, buyNow, requestHeaders }?: CartApplicationValidator.SelectPaymentModeParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartDetailResponse>;
|
|
390
269
|
/**
|
|
391
|
-
* @param {
|
|
392
|
-
* @param {
|
|
393
|
-
* @param {
|
|
394
|
-
* @returns {Promise<UpdateAddressResponse>} - Success response
|
|
270
|
+
* @param {CartApplicationValidator.UpdateAddressParam} arg - Arg object.
|
|
271
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
272
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
273
|
+
* @returns {Promise<CartApplicationModel.UpdateAddressResponse>} - Success response
|
|
274
|
+
* @name updateAddress
|
|
395
275
|
* @summary: Update address added to an account
|
|
396
|
-
* @description:
|
|
276
|
+
* @description: Use this API to update an existing address in the account. Request object should contain attributes mentioned in Address can be updated. These attributes are: is_default_address landmark area pincode email address_type name address_id address - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateAddress/).
|
|
397
277
|
*/
|
|
398
|
-
updateAddress({ id, body }?: {
|
|
399
|
-
id: string;
|
|
400
|
-
body: Address;
|
|
401
|
-
}): Promise<UpdateAddressResponse>;
|
|
278
|
+
updateAddress({ id, body, requestHeaders }?: CartApplicationValidator.UpdateAddressParam, { responseHeaders }?: object): Promise<CartApplicationModel.UpdateAddressResponse>;
|
|
402
279
|
/**
|
|
403
|
-
* @param {
|
|
404
|
-
* @param {
|
|
405
|
-
* @param {
|
|
406
|
-
* @
|
|
407
|
-
*
|
|
408
|
-
* @
|
|
409
|
-
* @param {UpdateCartRequest} arg.body
|
|
410
|
-
* @returns {Promise<UpdateCartDetailResponse>} - Success response
|
|
280
|
+
* @param {CartApplicationValidator.UpdateCartParam} arg - Arg object.
|
|
281
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
282
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
283
|
+
* @returns {Promise<CartApplicationModel.UpdateCartDetailResponse>} -
|
|
284
|
+
* Success response
|
|
285
|
+
* @name updateCart
|
|
411
286
|
* @summary: Update items in the cart
|
|
412
|
-
* @description:
|
|
287
|
+
* @description: Use this API to update items added to the cart with the help of a request object containing attributes like item_quantity and item_size. These attributes will be fetched from the following APIs operation: Operation for current api call. update_item for update items. remove_item for removing items. item_id "/platform/content/v1/products/" item_size "/platform/content/v1/products/:slug/sizes/" quantity item quantity (must be greater than or equal to 1) article_id "/content/v1/products/:identifier/sizes/price/" item_index item position in the cart (must be greater than or equal to 0) - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCart/).
|
|
413
288
|
*/
|
|
414
|
-
updateCart({ body, id, i, b, areaCode, buyNow }?: {
|
|
415
|
-
id?: string;
|
|
416
|
-
i?: boolean;
|
|
417
|
-
b?: boolean;
|
|
418
|
-
areaCode?: string;
|
|
419
|
-
buyNow?: boolean;
|
|
420
|
-
body: UpdateCartRequest;
|
|
421
|
-
}): Promise<UpdateCartDetailResponse>;
|
|
289
|
+
updateCart({ body, id, i, b, areaCode, buyNow, requestHeaders }?: CartApplicationValidator.UpdateCartParam, { responseHeaders }?: object): Promise<CartApplicationModel.UpdateCartDetailResponse>;
|
|
422
290
|
/**
|
|
423
|
-
* @param {
|
|
424
|
-
* @param {
|
|
425
|
-
* @param {
|
|
426
|
-
* @
|
|
427
|
-
* @
|
|
291
|
+
* @param {CartApplicationValidator.UpdateCartMetaParam} arg - Arg object.
|
|
292
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
293
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
294
|
+
* @returns {Promise<CartApplicationModel.CartMetaResponse>} - Success response
|
|
295
|
+
* @name updateCartMeta
|
|
428
296
|
* @summary: Update the cart meta
|
|
429
|
-
* @description: Use this API to update cart meta like checkout_mode and gstin.
|
|
297
|
+
* @description: Use this API to update cart meta like checkout_mode and gstin. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCartMeta/).
|
|
430
298
|
*/
|
|
431
|
-
updateCartMeta({ body, id, buyNow }?: {
|
|
432
|
-
id?: string;
|
|
433
|
-
buyNow?: boolean;
|
|
434
|
-
body: CartMetaRequest;
|
|
435
|
-
}): Promise<CartMetaResponse>;
|
|
299
|
+
updateCartMeta({ body, id, buyNow, requestHeaders }?: CartApplicationValidator.UpdateCartMetaParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartMetaResponse>;
|
|
436
300
|
/**
|
|
437
|
-
* @param {
|
|
438
|
-
* @param {
|
|
439
|
-
* @param {
|
|
440
|
-
*
|
|
441
|
-
* @
|
|
301
|
+
* @param {CartApplicationValidator.UpdateCartWithSharedItemsParam} arg - Arg object.
|
|
302
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
303
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
304
|
+
* @returns {Promise<CartApplicationModel.SharedCartResponse>} - Success response
|
|
305
|
+
* @name updateCartWithSharedItems
|
|
442
306
|
* @summary: Merge or replace existing cart
|
|
443
|
-
* @description: Use this API to merge the shared cart with existing cart, or replace the existing cart with the shared cart. The `action` parameter is used to indicate the operation Merge or Replace.
|
|
307
|
+
* @description: Use this API to merge the shared cart with existing cart, or replace the existing cart with the shared cart. The `action` parameter is used to indicate the operation Merge or Replace. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCartWithSharedItems/).
|
|
444
308
|
*/
|
|
445
|
-
updateCartWithSharedItems({ token, action }?: {
|
|
446
|
-
token: string;
|
|
447
|
-
action: string;
|
|
448
|
-
}): Promise<SharedCartResponse>;
|
|
309
|
+
updateCartWithSharedItems({ token, action, requestHeaders }?: CartApplicationValidator.UpdateCartWithSharedItemsParam, { responseHeaders }?: object): Promise<CartApplicationModel.SharedCartResponse>;
|
|
449
310
|
/**
|
|
450
|
-
* @param {
|
|
451
|
-
* @param {
|
|
452
|
-
* @param {
|
|
453
|
-
* @
|
|
454
|
-
* @
|
|
455
|
-
* @param {string} [arg.paymentIdentifier] -
|
|
456
|
-
* @param {string} [arg.aggregatorName] -
|
|
457
|
-
* @param {string} [arg.merchantCode] -
|
|
458
|
-
* @param {string} [arg.iin] -
|
|
459
|
-
* @param {string} [arg.network] -
|
|
460
|
-
* @param {string} [arg.type] -
|
|
461
|
-
* @param {string} [arg.cardId] -
|
|
462
|
-
* @returns {Promise<PaymentCouponValidate>} - Success response
|
|
311
|
+
* @param {CartApplicationValidator.ValidateCouponForPaymentParam} arg - Arg object.
|
|
312
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
313
|
+
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
314
|
+
* @returns {Promise<CartApplicationModel.PaymentCouponValidate>} - Success response
|
|
315
|
+
* @name validateCouponForPayment
|
|
463
316
|
* @summary: Verify the coupon eligibility against the payment mode
|
|
464
|
-
* @description: Use this API to validate a coupon against the payment mode such as NetBanking, Wallet, UPI etc.
|
|
317
|
+
* @description: Use this API to validate a coupon against the payment mode such as NetBanking, Wallet, UPI etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/validateCouponForPayment/).
|
|
465
318
|
*/
|
|
466
|
-
validateCouponForPayment({ id, buyNow, addressId, paymentMode, paymentIdentifier, aggregatorName, merchantCode, iin, network, type, cardId, }?: {
|
|
467
|
-
id?: string;
|
|
468
|
-
buyNow?: boolean;
|
|
469
|
-
addressId?: string;
|
|
470
|
-
paymentMode?: string;
|
|
471
|
-
paymentIdentifier?: string;
|
|
472
|
-
aggregatorName?: string;
|
|
473
|
-
merchantCode?: string;
|
|
474
|
-
iin?: string;
|
|
475
|
-
network?: string;
|
|
476
|
-
type?: string;
|
|
477
|
-
cardId?: string;
|
|
478
|
-
}): Promise<PaymentCouponValidate>;
|
|
319
|
+
validateCouponForPayment({ id, buyNow, addressId, paymentMode, paymentIdentifier, aggregatorName, merchantCode, iin, network, type, cardId, requestHeaders, }?: CartApplicationValidator.ValidateCouponForPaymentParam, { responseHeaders }?: object): Promise<CartApplicationModel.PaymentCouponValidate>;
|
|
479
320
|
}
|
|
321
|
+
import CartApplicationValidator = require("./CartApplicationValidator");
|
|
322
|
+
import CartApplicationModel = require("./CartApplicationModel");
|