@gofynd/fdk-client-javascript 1.1.6 → 1.2.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 +12 -0
- package/index.js +0 -3
- package/package.json +1 -1
- package/sdk/application/ApplicationAPIClient.d.ts +15 -1
- package/sdk/application/ApplicationAPIClient.js +8 -1
- package/sdk/application/ApplicationClient.d.ts +37 -6
- package/sdk/application/ApplicationClient.js +31 -0
- package/sdk/application/ApplicationConfig.d.ts +52 -12
- package/sdk/application/ApplicationConfig.js +37 -2
- package/sdk/application/ApplicationModels.d.ts +46 -1
- package/sdk/application/ApplicationModels.js +18 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +172 -357
- package/sdk/application/Cart/CartApplicationClient.js +620 -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 +234 -413
- package/sdk/application/Catalog/CatalogApplicationClient.js +777 -630
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2218 -117
- package/sdk/application/Catalog/CatalogApplicationModel.js +1499 -170
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +798 -31
- package/sdk/application/Catalog/CatalogApplicationValidator.js +318 -3
- package/sdk/application/Common/CommonApplicationClient.d.ts +14 -21
- package/sdk/application/Common/CommonApplicationClient.js +50 -33
- package/sdk/application/Common/CommonApplicationModel.d.ts +448 -19
- package/sdk/application/Common/CommonApplicationModel.js +224 -16
- package/sdk/application/Common/CommonApplicationValidator.d.ts +42 -4
- package/sdk/application/Common/CommonApplicationValidator.js +21 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +25 -18
- package/sdk/application/Communication/CommunicationApplicationClient.js +74 -47
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +190 -14
- package/sdk/application/Communication/CommunicationApplicationModel.js +124 -7
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +27 -4
- package/sdk/application/Communication/CommunicationApplicationValidator.js +21 -5
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +113 -112
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +381 -260
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +2453 -110
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1254 -108
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +160 -8
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +88 -4
- package/sdk/application/Content/ContentApplicationClient.d.ts +120 -138
- package/sdk/application/Content/ContentApplicationClient.js +409 -277
- package/sdk/application/Content/ContentApplicationModel.d.ts +1627 -105
- package/sdk/application/Content/ContentApplicationModel.js +1202 -109
- package/sdk/application/Content/ContentApplicationValidator.d.ts +214 -12
- package/sdk/application/Content/ContentApplicationValidator.js +113 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +20 -29
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +68 -47
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +299 -20
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +209 -16
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +55 -5
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +33 -6
- package/sdk/application/Lead/LeadApplicationClient.d.ts +50 -53
- package/sdk/application/Lead/LeadApplicationClient.js +169 -103
- package/sdk/application/Lead/LeadApplicationModel.d.ts +1405 -54
- package/sdk/application/Lead/LeadApplicationModel.js +619 -73
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +91 -9
- package/sdk/application/Lead/LeadApplicationValidator.js +51 -6
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +34 -33
- package/sdk/application/Logistic/LogisticApplicationClient.js +110 -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 +81 -133
- package/sdk/application/Order/OrderApplicationClient.js +297 -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 +341 -356
- package/sdk/application/Payment/PaymentApplicationClient.js +1077 -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 +178 -350
- package/sdk/application/PosCart/PosCartApplicationClient.js +636 -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 +49 -47
- package/sdk/application/Rewards/RewardsApplicationClient.js +160 -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 +44 -50
- package/sdk/application/Share/ShareApplicationClient.js +165 -97
- package/sdk/application/Share/ShareApplicationModel.d.ts +230 -15
- package/sdk/application/Share/ShareApplicationModel.js +154 -16
- package/sdk/application/Share/ShareApplicationValidator.d.ts +86 -8
- package/sdk/application/Share/ShareApplicationValidator.js +48 -4
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +25 -27
- package/sdk/application/Theme/ThemeApplicationClient.js +83 -54
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +621 -48
- package/sdk/application/Theme/ThemeApplicationModel.js +464 -40
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +49 -5
- package/sdk/application/Theme/ThemeApplicationValidator.js +26 -3
- package/sdk/application/User/UserApplicationClient.d.ts +219 -303
- package/sdk/application/User/UserApplicationClient.js +819 -522
- package/sdk/application/User/UserApplicationModel.d.ts +1390 -101
- package/sdk/application/User/UserApplicationModel.js +983 -44
- package/sdk/application/User/UserApplicationValidator.d.ts +457 -33
- package/sdk/application/User/UserApplicationValidator.js +265 -31
- package/sdk/common/AxiosHelper.js +8 -2
- package/sdk/common/Paginator.d.ts +27 -12
- package/sdk/common/Paginator.js +15 -0
- package/sdk/common/RequestSigner.js +0 -1
- package/sdk/partner/PartnerAPIClient.d.ts +15 -1
- package/sdk/partner/PartnerAPIClient.js +8 -1
- package/sdk/partner/PartnerClient.d.ts +20 -3
- package/sdk/partner/PartnerClient.js +17 -0
- package/sdk/partner/PartnerConfig.d.ts +40 -14
- package/sdk/partner/PartnerConfig.js +31 -6
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +26 -25
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +82 -53
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +202 -17
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +139 -10
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +42 -5
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +26 -4
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +88 -97
- package/sdk/platform/Billing/BillingPlatformClient.js +310 -191
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +1211 -68
- package/sdk/platform/Billing/BillingPlatformModel.js +824 -59
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +153 -12
- package/sdk/platform/Billing/BillingPlatformValidator.js +87 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +392 -634
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +1480 -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 +3639 -175
- package/sdk/platform/Cart/CartPlatformModel.js +2368 -212
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +438 -615
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1449 -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 +573 -824
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1773 -1264
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6871 -326
- package/sdk/platform/Catalog/CatalogPlatformModel.js +4215 -349
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1331 -71
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +611 -30
- package/sdk/platform/Common/CommonPlatformClient.d.ts +14 -21
- package/sdk/platform/Common/CommonPlatformClient.js +48 -33
- package/sdk/platform/Common/CommonPlatformModel.d.ts +448 -19
- package/sdk/platform/Common/CommonPlatformModel.js +224 -16
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +42 -4
- package/sdk/platform/Common/CommonPlatformValidator.js +21 -3
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +457 -279
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1423 -553
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +581 -42
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +294 -22
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +18 -5
- package/sdk/platform/Communication/CommunicationPlatformClient.js +58 -19
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1630 -102
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1150 -85
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +16 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +11 -3
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +102 -111
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +321 -225
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +830 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +612 -78
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +180 -13
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +98 -10
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +232 -212
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +737 -438
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +293 -22
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +184 -17
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +166 -178
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +519 -310
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +4504 -188
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2242 -204
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +332 -19
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +153 -10
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +495 -560
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1777 -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 +1661 -108
- package/sdk/platform/Content/ContentPlatformModel.js +1217 -113
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +67 -101
- package/sdk/platform/Discount/DiscountPlatformClient.js +240 -176
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +242 -15
- package/sdk/platform/Discount/DiscountPlatformModel.js +162 -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 +32 -41
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +106 -74
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +77 -6
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +41 -6
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +39 -54
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +124 -99
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +299 -20
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +207 -16
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +98 -8
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +54 -7
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +85 -91
- package/sdk/platform/Finance/FinancePlatformClient.js +272 -180
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +619 -50
- package/sdk/platform/Finance/FinancePlatformModel.js +458 -30
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +123 -15
- package/sdk/platform/Finance/FinancePlatformValidator.js +95 -16
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +99 -97
- package/sdk/platform/Inventory/InventoryPlatformClient.js +288 -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 +86 -106
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +326 -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 +75 -101
- package/sdk/platform/Lead/LeadPlatformClient.js +240 -174
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +1403 -54
- package/sdk/platform/Lead/LeadPlatformModel.js +618 -73
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +173 -12
- package/sdk/platform/Lead/LeadPlatformValidator.js +85 -8
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +18 -14
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +56 -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 +343 -556
- package/sdk/platform/Order/OrderPlatformClient.js +969 -762
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4967 -247
- package/sdk/platform/Order/OrderPlatformModel.js +3249 -259
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +758 -37
- package/sdk/platform/Order/OrderPlatformValidator.js +351 -22
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +28 -36
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +103 -59
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +66 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +32 -4
- package/sdk/platform/Partner/PartnerPlatformClient.d.ts +68 -107
- package/sdk/platform/Partner/PartnerPlatformClient.js +253 -174
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +767 -45
- package/sdk/platform/Partner/PartnerPlatformModel.js +524 -41
- package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +207 -13
- package/sdk/platform/Partner/PartnerPlatformValidator.js +87 -5
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +255 -260
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +860 -504
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +348 -30
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +221 -19
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +73 -73
- package/sdk/platform/Payment/PaymentPlatformClient.js +238 -154
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2658 -93
- package/sdk/platform/Payment/PaymentPlatformModel.js +1035 -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 +29 -12579
- package/sdk/platform/PlatformClient.js +26 -15085
- package/sdk/platform/PlatformConfig.d.ts +37 -11
- package/sdk/platform/PlatformConfig.js +32 -6
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +80 -92
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +307 -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 +371 -23
- package/sdk/platform/Rewards/RewardsPlatformModel.js +246 -16
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +120 -89
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +349 -201
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +128 -12
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +85 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +148 -178
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +454 -329
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1399 -96
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1022 -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 +38 -47
- package/sdk/platform/Share/SharePlatformApplicationClient.js +137 -73
- 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 +165 -17
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +149 -183
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +579 -330
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +308 -24
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +162 -10
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +621 -48
- package/sdk/platform/Theme/ThemePlatformModel.js +464 -40
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +119 -151
- package/sdk/platform/User/UserPlatformApplicationClient.js +411 -244
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +235 -18
- package/sdk/platform/User/UserPlatformApplicationValidator.js +126 -12
- package/sdk/platform/User/UserPlatformModel.d.ts +1390 -101
- package/sdk/platform/User/UserPlatformModel.js +983 -44
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +38 -47
- package/sdk/platform/Webhook/WebhookPlatformClient.js +137 -87
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +242 -16
- package/sdk/platform/Webhook/WebhookPlatformModel.js +167 -18
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +83 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +43 -5
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -21
- package/sdk/public/Configuration/ConfigurationPublicClient.js +46 -33
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +473 -19
- package/sdk/public/Configuration/ConfigurationPublicModel.js +224 -16
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +42 -4
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +21 -3
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +48 -48
- package/sdk/public/Inventory/InventoryPublicClient.js +146 -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/PublicClient.d.ts +19 -3
- package/sdk/public/PublicClient.js +16 -0
- package/sdk/public/PublicConfig.d.ts +27 -6
- package/sdk/public/PublicConfig.js +17 -1
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -11
- package/sdk/public/Webhook/WebhookPublicClient.js +42 -27
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +242 -16
- package/sdk/public/Webhook/WebhookPublicModel.js +167 -18
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +18 -3
- package/sdk/public/Webhook/WebhookPublicValidator.js +14 -4
|
@@ -1,97 +1,2055 @@
|
|
|
1
|
-
export =
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
1
|
+
export = CartApplicationModel;
|
|
2
|
+
/**
|
|
3
|
+
* @typedef ActionQuery
|
|
4
|
+
* @property {string[]} [product_slug] - Contains list of product slug
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @typedef AddCartDetailResponse
|
|
8
|
+
* @property {CartDetailResponse} [cart]
|
|
9
|
+
* @property {string} [message]
|
|
10
|
+
* @property {boolean} [partial] - When adding multiple items check if all
|
|
11
|
+
* added. True if only few are added.
|
|
12
|
+
* @property {boolean} [success] - True if all items are added successfully.
|
|
13
|
+
* False if partially added or not added.
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* @typedef AddCartRequest
|
|
17
|
+
* @property {AddProductCart[]} [items]
|
|
18
|
+
* @property {boolean} [new_cart]
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* @typedef AddProductCart
|
|
22
|
+
* @property {Object} [_custom_json]
|
|
23
|
+
* @property {Object} [article_assignment]
|
|
24
|
+
* @property {string} [article_id]
|
|
25
|
+
* @property {string} [display]
|
|
26
|
+
* @property {Object} [extra_meta]
|
|
27
|
+
* @property {number} [item_id]
|
|
28
|
+
* @property {string} [item_size]
|
|
29
|
+
* @property {Object} [meta]
|
|
30
|
+
* @property {Object[]} [parent_item_identifiers]
|
|
31
|
+
* @property {boolean} [pos]
|
|
32
|
+
* @property {string[]} [product_group_tags]
|
|
33
|
+
* @property {number} [quantity]
|
|
34
|
+
* @property {number} [seller_id]
|
|
35
|
+
* @property {number} [store_id]
|
|
36
|
+
*/
|
|
37
|
+
/**
|
|
38
|
+
* @typedef Address
|
|
39
|
+
* @property {Object} [_custom_json]
|
|
40
|
+
* @property {string} [address]
|
|
41
|
+
* @property {string} [address_type]
|
|
42
|
+
* @property {string} [area]
|
|
43
|
+
* @property {string} [area_code]
|
|
44
|
+
* @property {string} [area_code_slug]
|
|
45
|
+
* @property {string} [checkout_mode]
|
|
46
|
+
* @property {string} [city]
|
|
47
|
+
* @property {string} [country]
|
|
48
|
+
* @property {string} [country_code]
|
|
49
|
+
* @property {string} [country_iso_code]
|
|
50
|
+
* @property {string} [country_phone_code]
|
|
51
|
+
* @property {string} [created_by_user_id]
|
|
52
|
+
* @property {string} [email]
|
|
53
|
+
* @property {GeoLocation} [geo_location]
|
|
54
|
+
* @property {Object} [google_map_point]
|
|
55
|
+
* @property {string} [id]
|
|
56
|
+
* @property {boolean} [is_active]
|
|
57
|
+
* @property {boolean} [is_default_address]
|
|
58
|
+
* @property {string} [landmark]
|
|
59
|
+
* @property {Object} [meta]
|
|
60
|
+
* @property {string} [name]
|
|
61
|
+
* @property {string} [phone]
|
|
62
|
+
* @property {string} [state]
|
|
63
|
+
* @property {string[]} [tags]
|
|
64
|
+
* @property {string} [user_id]
|
|
65
|
+
*/
|
|
66
|
+
/**
|
|
67
|
+
* @typedef AppliedFreeArticles
|
|
68
|
+
* @property {string} [article_id] - Free article id
|
|
69
|
+
* @property {FreeGiftItem} [free_gift_item_details] - Free gift items details
|
|
70
|
+
* @property {string} [parent_item_identifier] - Parent item identifier for free article
|
|
71
|
+
* @property {number} [quantity] - Free article quantity
|
|
72
|
+
*/
|
|
73
|
+
/**
|
|
74
|
+
* @typedef AppliedPromotion
|
|
75
|
+
* @property {number} [amount] - Per unit discount amount applied with current promotion
|
|
76
|
+
* @property {AppliedFreeArticles[]} [applied_free_articles] - Applied free
|
|
77
|
+
* article for free gift item promotions
|
|
78
|
+
* @property {number} [article_quantity] - Quantity of article on which
|
|
79
|
+
* promotion is applicable
|
|
80
|
+
* @property {BuyRules[]} [buy_rules] - Buy rules for promotions
|
|
81
|
+
* @property {DiscountRulesApp[]} [discount_rules] - Discount rules for promotions
|
|
82
|
+
* @property {boolean} [mrp_promotion] - If applied promotion is applied on
|
|
83
|
+
* product MRP or ESP
|
|
84
|
+
* @property {string} [offer_text] - Offer text of current promotion
|
|
85
|
+
* @property {Ownership} [ownership] - Ownership of promotion
|
|
86
|
+
* @property {string} [promo_id] - Promotion id
|
|
87
|
+
* @property {string} [promotion_group] - Promotion group for the promotion
|
|
88
|
+
* @property {string} [promotion_name] - Promotion name of current promotion
|
|
89
|
+
* @property {string} [promotion_type] - Promotion type of current promotion
|
|
90
|
+
*/
|
|
91
|
+
/**
|
|
92
|
+
* @typedef ApplyCouponRequest
|
|
93
|
+
* @property {string} coupon_code - Coupon code to be applied
|
|
94
|
+
*/
|
|
95
|
+
/**
|
|
96
|
+
* @typedef ArticleGiftDetail
|
|
97
|
+
* @property {GiftDetail} [article_id]
|
|
98
|
+
*/
|
|
99
|
+
/**
|
|
100
|
+
* @typedef ArticlePriceInfo
|
|
101
|
+
* @property {BasePrice} [base]
|
|
102
|
+
* @property {BasePrice} [converted]
|
|
103
|
+
*/
|
|
104
|
+
/**
|
|
105
|
+
* @typedef BaseInfo
|
|
106
|
+
* @property {string} [name]
|
|
107
|
+
* @property {number} [uid]
|
|
108
|
+
*/
|
|
109
|
+
/**
|
|
110
|
+
* @typedef BasePrice
|
|
111
|
+
* @property {string} [currency_code]
|
|
112
|
+
* @property {string} [currency_symbol]
|
|
113
|
+
* @property {number} [effective]
|
|
114
|
+
* @property {number} [marked]
|
|
115
|
+
*/
|
|
116
|
+
/**
|
|
117
|
+
* @typedef BulkPriceOffer
|
|
118
|
+
* @property {OfferItem[]} [offers]
|
|
119
|
+
* @property {OfferSeller} [seller]
|
|
120
|
+
*/
|
|
121
|
+
/**
|
|
122
|
+
* @typedef BulkPriceResponse
|
|
123
|
+
* @property {BulkPriceOffer[]} [data] - Consist of offers from multiple seller
|
|
124
|
+
*/
|
|
125
|
+
/**
|
|
126
|
+
* @typedef BuyRules
|
|
127
|
+
* @property {Object} [cart_conditions] - Cart conditions details for promotion
|
|
128
|
+
* @property {Object} [item_criteria] - Item criteria of promotion
|
|
129
|
+
*/
|
|
130
|
+
/**
|
|
131
|
+
* @typedef CartBreakup
|
|
132
|
+
* @property {CouponBreakup} [coupon]
|
|
133
|
+
* @property {DisplayBreakup[]} [display]
|
|
134
|
+
* @property {LoyaltyPoints} [loyalty_points]
|
|
135
|
+
* @property {RawBreakup} [raw]
|
|
136
|
+
*/
|
|
137
|
+
/**
|
|
138
|
+
* @typedef CartCheckoutCustomMeta
|
|
139
|
+
* @property {string} key
|
|
140
|
+
* @property {string} value
|
|
141
|
+
*/
|
|
142
|
+
/**
|
|
143
|
+
* @typedef CartCheckoutDetailRequest
|
|
144
|
+
* @property {string} [address_id]
|
|
145
|
+
* @property {string} [aggregator]
|
|
146
|
+
* @property {Object} [billing_address]
|
|
147
|
+
* @property {string} [billing_address_id]
|
|
148
|
+
* @property {string} [callback_url]
|
|
149
|
+
* @property {CartCheckoutCustomMeta[]} [custom_meta]
|
|
150
|
+
* @property {CustomerDetails} [customer_details] - Customer details
|
|
151
|
+
* @property {Object} [delivery_address]
|
|
152
|
+
* @property {Object} [extra_meta]
|
|
153
|
+
* @property {string} [id]
|
|
154
|
+
* @property {string} [merchant_code]
|
|
155
|
+
* @property {Object} [meta]
|
|
156
|
+
* @property {string} [order_type]
|
|
157
|
+
* @property {number} [ordering_store]
|
|
158
|
+
* @property {boolean} [payment_auto_confirm]
|
|
159
|
+
* @property {string} [payment_identifier]
|
|
160
|
+
* @property {string} payment_mode
|
|
161
|
+
* @property {Object} [payment_params]
|
|
162
|
+
* @property {StaffCheckout} [staff]
|
|
163
|
+
*/
|
|
164
|
+
/**
|
|
165
|
+
* @typedef CartCheckoutDetailV2Request
|
|
166
|
+
* @property {string} [address_id]
|
|
167
|
+
* @property {string} [aggregator]
|
|
168
|
+
* @property {Object} [billing_address]
|
|
169
|
+
* @property {string} [billing_address_id]
|
|
170
|
+
* @property {string} [callback_url]
|
|
171
|
+
* @property {string} [cart_id]
|
|
172
|
+
* @property {Object} [custom_meta]
|
|
173
|
+
* @property {CustomerDetails} [customer_details] - Customer details
|
|
174
|
+
* @property {Object} [delivery_address]
|
|
175
|
+
* @property {Object} [extra_meta]
|
|
176
|
+
* @property {string} [id]
|
|
177
|
+
* @property {string} [merchant_code]
|
|
178
|
+
* @property {Object} [meta]
|
|
179
|
+
* @property {string} [order_type]
|
|
180
|
+
* @property {number} [ordering_store]
|
|
181
|
+
* @property {boolean} [payment_auto_confirm]
|
|
182
|
+
* @property {string} [payment_identifier]
|
|
183
|
+
* @property {PaymentMethod[]} payment_methods
|
|
184
|
+
* @property {string} payment_mode
|
|
185
|
+
* @property {Object} [payment_params]
|
|
186
|
+
* @property {StaffCheckout} [staff]
|
|
187
|
+
*/
|
|
188
|
+
/**
|
|
189
|
+
* @typedef CartCheckoutResponse
|
|
190
|
+
* @property {string} [app_intercept_url]
|
|
191
|
+
* @property {string} [callback_url]
|
|
192
|
+
* @property {CheckCart} [cart]
|
|
193
|
+
* @property {Object} [data]
|
|
194
|
+
* @property {string} [message]
|
|
195
|
+
* @property {string} [order_id]
|
|
196
|
+
* @property {string} [payment_confirm_url]
|
|
197
|
+
* @property {boolean} [success]
|
|
198
|
+
*/
|
|
199
|
+
/**
|
|
200
|
+
* @typedef CartCurrency
|
|
201
|
+
* @property {string} [code] - Currency code defined by ISO 4217:2015
|
|
202
|
+
* @property {string} [symbol]
|
|
203
|
+
*/
|
|
204
|
+
/**
|
|
205
|
+
* @typedef CartDetailResponse
|
|
206
|
+
* @property {AppliedPromotion[]} [applied_promo_details]
|
|
207
|
+
* @property {CartBreakup} [breakup_values]
|
|
208
|
+
* @property {boolean} [buy_now]
|
|
209
|
+
* @property {string} [checkout_mode]
|
|
210
|
+
* @property {string} [comment]
|
|
211
|
+
* @property {string} [coupon_text]
|
|
212
|
+
* @property {CartCurrency} [currency]
|
|
213
|
+
* @property {string} [delivery_charge_info]
|
|
214
|
+
* @property {ShipmentPromise} [delivery_promise]
|
|
215
|
+
* @property {string} [gstin]
|
|
216
|
+
* @property {string} [id]
|
|
217
|
+
* @property {boolean} [is_valid]
|
|
218
|
+
* @property {CartProductInfo[]} [items]
|
|
219
|
+
* @property {string} [last_modified]
|
|
220
|
+
* @property {string} [message]
|
|
221
|
+
* @property {Object} [pan_config]
|
|
222
|
+
* @property {string} [pan_no]
|
|
223
|
+
* @property {PaymentSelectionLock} [payment_selection_lock]
|
|
224
|
+
* @property {boolean} [restrict_checkout]
|
|
225
|
+
*/
|
|
226
|
+
/**
|
|
227
|
+
* @typedef CartItemCountResponse
|
|
228
|
+
* @property {number} [user_cart_items_count] - Item count present in cart
|
|
229
|
+
*/
|
|
230
|
+
/**
|
|
231
|
+
* @typedef CartMetaMissingResponse
|
|
232
|
+
* @property {string[]} [errors]
|
|
233
|
+
*/
|
|
234
|
+
/**
|
|
235
|
+
* @typedef CartMetaRequest
|
|
236
|
+
* @property {string} [checkout_mode]
|
|
237
|
+
* @property {string} [comment]
|
|
238
|
+
* @property {Object} [delivery_slots]
|
|
239
|
+
* @property {ArticleGiftDetail} [gift_details]
|
|
240
|
+
* @property {string} [gstin]
|
|
241
|
+
* @property {Object} [pick_up_customer_details] - Customer contact details for
|
|
242
|
+
* customer pickup at store
|
|
243
|
+
*/
|
|
244
|
+
/**
|
|
245
|
+
* @typedef CartMetaResponse
|
|
246
|
+
* @property {boolean} [is_valid]
|
|
247
|
+
* @property {string} [message]
|
|
248
|
+
*/
|
|
249
|
+
/**
|
|
250
|
+
* @typedef CartProduct
|
|
251
|
+
* @property {Object} [_custom_json]
|
|
252
|
+
* @property {ProductAction} [action]
|
|
253
|
+
* @property {BaseInfo} [brand]
|
|
254
|
+
* @property {CategoryInfo[]} [categories]
|
|
255
|
+
* @property {ProductImage[]} [images]
|
|
256
|
+
* @property {string} [item_code]
|
|
257
|
+
* @property {string} [name]
|
|
258
|
+
* @property {string} [slug] - Unique product url name generated via product
|
|
259
|
+
* name and other meta data
|
|
260
|
+
* @property {string[]} [tags]
|
|
261
|
+
* @property {Tags} [teaser_tag]
|
|
262
|
+
* @property {string} [type]
|
|
263
|
+
* @property {number} [uid]
|
|
264
|
+
*/
|
|
265
|
+
/**
|
|
266
|
+
* @typedef CartProductIdentifer
|
|
267
|
+
* @property {string} [identifier] - Article idenfier generated by cart
|
|
268
|
+
*/
|
|
269
|
+
/**
|
|
270
|
+
* @typedef CartProductInfo
|
|
271
|
+
* @property {ProductArticle} [article]
|
|
272
|
+
* @property {ProductAvailability} [availability]
|
|
273
|
+
* @property {Object} [bulk_offer]
|
|
274
|
+
* @property {CouponDetails} [coupon]
|
|
275
|
+
* @property {string} [coupon_message]
|
|
276
|
+
* @property {Object} [custom_order]
|
|
277
|
+
* @property {ShipmentPromise} [delivery_promise]
|
|
278
|
+
* @property {string} [discount]
|
|
279
|
+
* @property {CartProductIdentifer} identifiers
|
|
280
|
+
* @property {boolean} [is_set]
|
|
281
|
+
* @property {string} [key]
|
|
282
|
+
* @property {string} [message]
|
|
283
|
+
* @property {Object} [moq]
|
|
284
|
+
* @property {Object} [parent_item_identifiers]
|
|
285
|
+
* @property {ProductPriceInfo} [price]
|
|
286
|
+
* @property {ProductPriceInfo} [price_per_unit]
|
|
287
|
+
* @property {CartProduct} [product]
|
|
288
|
+
* @property {PromoMeta} [promo_meta]
|
|
289
|
+
* @property {AppliedPromotion[]} [promotions_applied]
|
|
290
|
+
* @property {number} [quantity]
|
|
291
|
+
*/
|
|
292
|
+
/**
|
|
293
|
+
* @typedef CartShipmentsResponse
|
|
294
|
+
* @property {CartBreakup} [breakup_values]
|
|
295
|
+
* @property {boolean} [buy_now]
|
|
296
|
+
* @property {number} [cart_id]
|
|
297
|
+
* @property {string} [checkout_mode]
|
|
298
|
+
* @property {string} [comment]
|
|
299
|
+
* @property {string} [coupon_text]
|
|
300
|
+
* @property {CartCurrency} [currency]
|
|
301
|
+
* @property {string} [delivery_charge_info]
|
|
302
|
+
* @property {ShipmentPromise} [delivery_promise]
|
|
303
|
+
* @property {boolean} [error]
|
|
304
|
+
* @property {string} [gstin]
|
|
305
|
+
* @property {string} [id]
|
|
306
|
+
* @property {boolean} [is_valid]
|
|
307
|
+
* @property {string} [last_modified]
|
|
308
|
+
* @property {string} [message]
|
|
309
|
+
* @property {PaymentSelectionLock} [payment_selection_lock]
|
|
310
|
+
* @property {boolean} [restrict_checkout]
|
|
311
|
+
* @property {ShipmentResponse[]} [shipments]
|
|
312
|
+
* @property {string} [uid]
|
|
313
|
+
*/
|
|
314
|
+
/**
|
|
315
|
+
* @typedef CategoryInfo
|
|
316
|
+
* @property {string} [name]
|
|
317
|
+
* @property {number} [uid] - Product Category Id
|
|
318
|
+
*/
|
|
319
|
+
/**
|
|
320
|
+
* @typedef CheckCart
|
|
321
|
+
* @property {CartBreakup} [breakup_values]
|
|
322
|
+
* @property {boolean} [buy_now]
|
|
323
|
+
* @property {number} [cart_id]
|
|
324
|
+
* @property {string} [checkout_mode]
|
|
325
|
+
* @property {boolean} [cod_available]
|
|
326
|
+
* @property {number} [cod_charges]
|
|
327
|
+
* @property {string} [cod_message]
|
|
328
|
+
* @property {string} [comment]
|
|
329
|
+
* @property {string} [coupon_text]
|
|
330
|
+
* @property {CartCurrency} [currency]
|
|
331
|
+
* @property {string} [delivery_charge_info]
|
|
332
|
+
* @property {number} [delivery_charge_order_value]
|
|
333
|
+
* @property {number} [delivery_charges]
|
|
334
|
+
* @property {ShipmentPromise} [delivery_promise]
|
|
335
|
+
* @property {string} [error_message]
|
|
336
|
+
* @property {string} [gstin]
|
|
337
|
+
* @property {string} [id]
|
|
338
|
+
* @property {boolean} [is_valid]
|
|
339
|
+
* @property {CartProductInfo[]} [items]
|
|
340
|
+
* @property {string} [last_modified]
|
|
341
|
+
* @property {string} [message]
|
|
342
|
+
* @property {string} [order_id]
|
|
343
|
+
* @property {PaymentSelectionLock} [payment_selection_lock]
|
|
344
|
+
* @property {boolean} [restrict_checkout]
|
|
345
|
+
* @property {string} [store_code]
|
|
346
|
+
* @property {Object[]} [store_emps]
|
|
347
|
+
* @property {boolean} [success]
|
|
348
|
+
* @property {string} [uid]
|
|
349
|
+
* @property {string} [user_type]
|
|
350
|
+
*/
|
|
351
|
+
/**
|
|
352
|
+
* @typedef Coupon
|
|
353
|
+
* @property {string} [coupon_code]
|
|
354
|
+
* @property {string} [coupon_type]
|
|
355
|
+
* @property {number} [coupon_value]
|
|
356
|
+
* @property {string} [description]
|
|
357
|
+
* @property {string} [expires_on]
|
|
358
|
+
* @property {boolean} [is_applicable]
|
|
359
|
+
* @property {boolean} [is_applied]
|
|
360
|
+
* @property {number} [max_discount_value]
|
|
361
|
+
* @property {string} [message]
|
|
362
|
+
* @property {number} [minimum_cart_value]
|
|
363
|
+
* @property {string} [sub_title]
|
|
364
|
+
* @property {string} [title]
|
|
365
|
+
*/
|
|
366
|
+
/**
|
|
367
|
+
* @typedef CouponBreakup
|
|
368
|
+
* @property {string} [code]
|
|
369
|
+
* @property {string} [coupon_type]
|
|
370
|
+
* @property {number} [coupon_value]
|
|
371
|
+
* @property {string} [description]
|
|
372
|
+
* @property {boolean} [is_applied]
|
|
373
|
+
* @property {number} [max_discount_value]
|
|
374
|
+
* @property {string} [message]
|
|
375
|
+
* @property {number} [minimum_cart_value]
|
|
376
|
+
* @property {string} [sub_title]
|
|
377
|
+
* @property {string} [title]
|
|
378
|
+
* @property {string} [type]
|
|
379
|
+
* @property {string} [uid]
|
|
380
|
+
* @property {number} [value]
|
|
381
|
+
*/
|
|
382
|
+
/**
|
|
383
|
+
* @typedef CouponDetails
|
|
384
|
+
* @property {string} [code]
|
|
385
|
+
* @property {number} [discount_single_quantity]
|
|
386
|
+
* @property {number} [discount_total_quantity]
|
|
387
|
+
*/
|
|
388
|
+
/**
|
|
389
|
+
* @typedef CouponValidity
|
|
390
|
+
* @property {string} [code]
|
|
391
|
+
* @property {number} [discount]
|
|
392
|
+
* @property {string} [display_message_en]
|
|
393
|
+
* @property {boolean} [next_validation_required]
|
|
394
|
+
* @property {string} [title]
|
|
395
|
+
* @property {boolean} [valid]
|
|
396
|
+
*/
|
|
397
|
+
/**
|
|
398
|
+
* @typedef CurrencyInfo
|
|
399
|
+
* @property {string} [code]
|
|
400
|
+
* @property {string} [symbol]
|
|
401
|
+
*/
|
|
402
|
+
/**
|
|
403
|
+
* @typedef CustomerDetails
|
|
404
|
+
* @property {string} [email]
|
|
405
|
+
* @property {string} mobile
|
|
406
|
+
* @property {string} [name]
|
|
407
|
+
*/
|
|
408
|
+
/**
|
|
409
|
+
* @typedef DeleteAddressResponse
|
|
410
|
+
* @property {string} [id]
|
|
411
|
+
* @property {boolean} [is_deleted]
|
|
412
|
+
*/
|
|
413
|
+
/**
|
|
414
|
+
* @typedef DeleteCartDetailResponse
|
|
415
|
+
* @property {string} [message]
|
|
416
|
+
* @property {boolean} [success] - True if cart is archived successfully. False
|
|
417
|
+
* if not archived.
|
|
418
|
+
*/
|
|
419
|
+
/**
|
|
420
|
+
* @typedef DiscountRulesApp
|
|
421
|
+
* @property {Object} [item_criteria] - Item criteria of promotion
|
|
422
|
+
* @property {string[]} [matched_buy_rules] - Matched buy rules for promotion
|
|
423
|
+
* @property {Object} [offer] - Offer for promotion
|
|
424
|
+
* @property {Object} [raw_offer] - Raw offer details for promotion
|
|
425
|
+
*/
|
|
426
|
+
/**
|
|
427
|
+
* @typedef DisplayBreakup
|
|
428
|
+
* @property {string} [currency_code]
|
|
429
|
+
* @property {string} [currency_symbol]
|
|
430
|
+
* @property {string} [display]
|
|
431
|
+
* @property {string} [key]
|
|
432
|
+
* @property {string[]} [message]
|
|
433
|
+
* @property {number} [value]
|
|
434
|
+
*/
|
|
435
|
+
/**
|
|
436
|
+
* @typedef FreeGiftItem
|
|
437
|
+
* @property {string} [item_brand_name] - Item brand name
|
|
438
|
+
* @property {number} [item_id] - Item id
|
|
439
|
+
* @property {string[]} [item_images_url] - Item images URL
|
|
440
|
+
* @property {string} [item_name] - Item name
|
|
441
|
+
* @property {Object} [item_price_details] - Item price details
|
|
442
|
+
* @property {string} [item_slug] - Item slug
|
|
443
|
+
*/
|
|
444
|
+
/**
|
|
445
|
+
* @typedef FreeGiftItems
|
|
446
|
+
* @property {string} [item_brand_name] - Item brand name
|
|
447
|
+
* @property {number} [item_id] - Item id
|
|
448
|
+
* @property {string[]} [item_images_url] - Item images URL
|
|
449
|
+
* @property {string} [item_name] - Item name
|
|
450
|
+
* @property {Object} [item_price_details] - Item price details
|
|
451
|
+
* @property {string} [item_slug] - Item slug
|
|
452
|
+
*/
|
|
453
|
+
/**
|
|
454
|
+
* @typedef GeoLocation
|
|
455
|
+
* @property {number} [latitude]
|
|
456
|
+
* @property {number} [longitude]
|
|
457
|
+
*/
|
|
458
|
+
/**
|
|
459
|
+
* @typedef GetAddressesResponse
|
|
460
|
+
* @property {Address[]} [address]
|
|
461
|
+
* @property {boolean} [pii_masking]
|
|
462
|
+
*/
|
|
463
|
+
/**
|
|
464
|
+
* @typedef GetCouponResponse
|
|
465
|
+
* @property {Coupon[]} [available_coupon_list]
|
|
466
|
+
* @property {PageCoupon} [page]
|
|
467
|
+
*/
|
|
468
|
+
/**
|
|
469
|
+
* @typedef GetShareCartLinkRequest
|
|
470
|
+
* @property {string} [id] - Cart uid for generating sharing
|
|
471
|
+
* @property {Object} [meta] - Staff, Ordering store or any other data. This
|
|
472
|
+
* data will be used to generate link as well as sent as shared details.
|
|
473
|
+
*/
|
|
474
|
+
/**
|
|
475
|
+
* @typedef GetShareCartLinkResponse
|
|
476
|
+
* @property {string} [share_url] - Short shareable final url
|
|
477
|
+
* @property {string} [token] - Short url unique id
|
|
478
|
+
*/
|
|
479
|
+
/**
|
|
480
|
+
* @typedef GiftDetail
|
|
481
|
+
* @property {string} [gift_message]
|
|
482
|
+
* @property {boolean} [is_gift_applied]
|
|
483
|
+
*/
|
|
484
|
+
/**
|
|
485
|
+
* @typedef LadderOfferItem
|
|
486
|
+
* @property {number} [margin] - Percentage value of discount
|
|
487
|
+
* @property {number} [max_quantity] - Minimum quantity upto which offer is
|
|
488
|
+
* applicable. If not present that offer is applicable on all quantities
|
|
489
|
+
* @property {number} [min_quantity] - Minimum quantity from which offer is applicable
|
|
490
|
+
* @property {LadderPrice} [price]
|
|
491
|
+
* @property {string} [type] - Offer type
|
|
492
|
+
*/
|
|
493
|
+
/**
|
|
494
|
+
* @typedef LadderPrice
|
|
495
|
+
* @property {string} [currency_code] - Currency code for all amounts
|
|
496
|
+
* @property {string} [currency_symbol] - Currency symbol for currency
|
|
497
|
+
* @property {number} [effective] - Current per unit price of product after
|
|
498
|
+
* existing deductions
|
|
499
|
+
* @property {number} [marked] - Original price of product
|
|
500
|
+
* @property {number} [offer_price] - Discounted per unit price for current offer object
|
|
501
|
+
*/
|
|
502
|
+
/**
|
|
503
|
+
* @typedef LadderPriceOffer
|
|
504
|
+
* @property {Object} [buy_rules] - Buy rules of promotions
|
|
505
|
+
* @property {string} [calculate_on] - If this ladder offer is to be calculated
|
|
506
|
+
* on MRP or ESP price
|
|
507
|
+
* @property {string} [description] - Offer details including T&C
|
|
508
|
+
* @property {Object[]} [discount_rules] - Discount rules of promotions
|
|
509
|
+
* @property {FreeGiftItems[]} [free_gift_items] - Details of free gift items
|
|
510
|
+
* @property {string} [id] - Promotion id
|
|
511
|
+
* @property {LadderOfferItem[]} [offer_prices]
|
|
512
|
+
* @property {string} [offer_text] - Offer title
|
|
513
|
+
* @property {string} [promotion_group] - Group of promotion belongs to
|
|
514
|
+
* @property {string} [valid_till] - Datetime ISOString for promotion end date
|
|
515
|
+
*/
|
|
516
|
+
/**
|
|
517
|
+
* @typedef LadderPriceOffers
|
|
518
|
+
* @property {LadderPriceOffer[]} [available_offers]
|
|
519
|
+
* @property {CurrencyInfo} [currency]
|
|
520
|
+
*/
|
|
521
|
+
/**
|
|
522
|
+
* @typedef LoyaltyPoints
|
|
523
|
+
* @property {number} [applicable]
|
|
524
|
+
* @property {string} [description]
|
|
525
|
+
* @property {boolean} [is_applied]
|
|
526
|
+
* @property {number} [total]
|
|
527
|
+
*/
|
|
528
|
+
/**
|
|
529
|
+
* @typedef OfferItem
|
|
530
|
+
* @property {boolean} [auto_applied] - Whether offer discount is auto applied in cart
|
|
531
|
+
* @property {boolean} [best] - Is true for best offer from all offers present
|
|
532
|
+
* for all sellers
|
|
533
|
+
* @property {number} [margin] - Percentage value of discount
|
|
534
|
+
* @property {OfferPrice} [price]
|
|
535
|
+
* @property {number} [quantity] - Quantity on which offer is applicable
|
|
536
|
+
* @property {number} [total] - Total price of offer quantity with discount
|
|
537
|
+
* @property {string} [type] - Offer type
|
|
538
|
+
*/
|
|
539
|
+
/**
|
|
540
|
+
* @typedef OfferPrice
|
|
541
|
+
* @property {number} [bulk_effective] - Discounted per unit price for current
|
|
542
|
+
* offer object
|
|
543
|
+
* @property {string} [currency_code] - Currency code for all amounts
|
|
544
|
+
* @property {string} [currency_symbol] - Currency symbol for currency
|
|
545
|
+
* @property {number} [effective] - Current per unit price of product after
|
|
546
|
+
* existing deductions
|
|
547
|
+
* @property {number} [marked] - Original price of product
|
|
548
|
+
*/
|
|
549
|
+
/**
|
|
550
|
+
* @typedef OfferSeller
|
|
551
|
+
* @property {string} [name]
|
|
552
|
+
* @property {number} [uid] - Seller id
|
|
553
|
+
*/
|
|
554
|
+
/**
|
|
555
|
+
* @typedef OperationErrorResponse
|
|
556
|
+
* @property {string} [message]
|
|
557
|
+
* @property {boolean} [success]
|
|
558
|
+
*/
|
|
559
|
+
/**
|
|
560
|
+
* @typedef Ownership
|
|
561
|
+
* @property {string} [payable_by] - Promo amount bearable party
|
|
562
|
+
* @property {string} [payable_category] - Promo amount payable category
|
|
563
|
+
*/
|
|
564
|
+
/**
|
|
565
|
+
* @typedef PageCoupon
|
|
566
|
+
* @property {number} [current]
|
|
567
|
+
* @property {boolean} [has_next]
|
|
568
|
+
* @property {boolean} [has_previous]
|
|
569
|
+
* @property {number} [total]
|
|
570
|
+
* @property {number} [total_item_count]
|
|
571
|
+
*/
|
|
572
|
+
/**
|
|
573
|
+
* @typedef PaymentCouponValidate
|
|
574
|
+
* @property {CouponValidity} [coupon_validity]
|
|
575
|
+
* @property {string} [message]
|
|
576
|
+
* @property {boolean} success
|
|
577
|
+
*/
|
|
578
|
+
/**
|
|
579
|
+
* @typedef PaymentMeta
|
|
580
|
+
* @property {string} [merchant_code]
|
|
581
|
+
* @property {string} [payment_gateway]
|
|
582
|
+
* @property {string} [payment_identifier]
|
|
583
|
+
* @property {string} [type]
|
|
584
|
+
*/
|
|
585
|
+
/**
|
|
586
|
+
* @typedef PaymentMethod
|
|
587
|
+
* @property {number} [amount]
|
|
588
|
+
* @property {string} mode
|
|
589
|
+
* @property {string} [name]
|
|
590
|
+
* @property {string} [payment]
|
|
591
|
+
* @property {PaymentMeta} payment_meta
|
|
592
|
+
*/
|
|
593
|
+
/**
|
|
594
|
+
* @typedef PaymentSelectionLock
|
|
595
|
+
* @property {string} [default_options]
|
|
596
|
+
* @property {boolean} [enabled]
|
|
597
|
+
* @property {string} [payment_identifier]
|
|
598
|
+
*/
|
|
599
|
+
/**
|
|
600
|
+
* @typedef ProductAction
|
|
601
|
+
* @property {ActionQuery} [query]
|
|
602
|
+
* @property {string} [type]
|
|
603
|
+
* @property {string} [url]
|
|
604
|
+
*/
|
|
605
|
+
/**
|
|
606
|
+
* @typedef ProductArticle
|
|
607
|
+
* @property {Object} [_custom_json]
|
|
608
|
+
* @property {Object} [cart_item_meta]
|
|
609
|
+
* @property {Object} [extra_meta]
|
|
610
|
+
* @property {Object} [gift_card]
|
|
611
|
+
* @property {Object} [identifier]
|
|
612
|
+
* @property {boolean} [is_gift_visible]
|
|
613
|
+
* @property {Object} [meta]
|
|
614
|
+
* @property {number} [mto_quantity]
|
|
615
|
+
* @property {Object} [parent_item_identifiers]
|
|
616
|
+
* @property {ArticlePriceInfo} [price]
|
|
617
|
+
* @property {string[]} [product_group_tags]
|
|
618
|
+
* @property {number} [quantity]
|
|
619
|
+
* @property {BaseInfo} [seller]
|
|
620
|
+
* @property {string} [seller_identifier]
|
|
621
|
+
* @property {string} [size]
|
|
622
|
+
* @property {StoreInfo} [store]
|
|
623
|
+
* @property {string} [type]
|
|
624
|
+
* @property {string} [uid]
|
|
625
|
+
*/
|
|
626
|
+
/**
|
|
627
|
+
* @typedef ProductAvailability
|
|
628
|
+
* @property {ProductAvailabilitySize[]} [available_sizes]
|
|
629
|
+
* @property {boolean} [deliverable]
|
|
630
|
+
* @property {boolean} [is_valid]
|
|
631
|
+
* @property {number} [other_store_quantity]
|
|
632
|
+
* @property {boolean} [out_of_stock]
|
|
633
|
+
* @property {string[]} [sizes]
|
|
634
|
+
*/
|
|
635
|
+
/**
|
|
636
|
+
* @typedef ProductAvailabilitySize
|
|
637
|
+
* @property {string} [display]
|
|
638
|
+
* @property {boolean} [is_available]
|
|
639
|
+
* @property {string} [value]
|
|
640
|
+
*/
|
|
641
|
+
/**
|
|
642
|
+
* @typedef ProductImage
|
|
643
|
+
* @property {string} [aspect_ratio]
|
|
644
|
+
* @property {string} [secure_url]
|
|
645
|
+
* @property {string} [url]
|
|
646
|
+
*/
|
|
647
|
+
/**
|
|
648
|
+
* @typedef ProductPrice
|
|
649
|
+
* @property {number} [add_on]
|
|
650
|
+
* @property {string} [currency_code]
|
|
651
|
+
* @property {string} [currency_symbol]
|
|
652
|
+
* @property {number} [effective]
|
|
653
|
+
* @property {number} [marked]
|
|
654
|
+
* @property {number} [selling]
|
|
655
|
+
*/
|
|
656
|
+
/**
|
|
657
|
+
* @typedef ProductPriceInfo
|
|
658
|
+
* @property {ProductPrice} [base]
|
|
659
|
+
* @property {ProductPrice} [converted]
|
|
660
|
+
*/
|
|
661
|
+
/**
|
|
662
|
+
* @typedef PromiseFormatted
|
|
663
|
+
* @property {string} [max]
|
|
664
|
+
* @property {string} [min]
|
|
665
|
+
*/
|
|
666
|
+
/**
|
|
667
|
+
* @typedef PromiseTimestamp
|
|
668
|
+
* @property {number} [max]
|
|
669
|
+
* @property {number} [min]
|
|
670
|
+
*/
|
|
671
|
+
/**
|
|
672
|
+
* @typedef PromoMeta
|
|
673
|
+
* @property {string} [message]
|
|
674
|
+
*/
|
|
675
|
+
/**
|
|
676
|
+
* @typedef PromotionOffer
|
|
677
|
+
* @property {Object} [buy_rules] - Buy rules of promotions
|
|
678
|
+
* @property {string} [description] - Offer details including T&C
|
|
679
|
+
* @property {Object[]} [discount_rules] - Discount rules of promotions
|
|
680
|
+
* @property {FreeGiftItems[]} [free_gift_items] - Details of free gift items
|
|
681
|
+
* @property {string} [id] - Promotion id
|
|
682
|
+
* @property {string} [offer_text] - Offer title
|
|
683
|
+
* @property {string} [promotion_group] - Group of promotion belongs to
|
|
684
|
+
* @property {string} [valid_till] - Datetime ISOString for promotion end date
|
|
685
|
+
*/
|
|
686
|
+
/**
|
|
687
|
+
* @typedef PromotionOffersResponse
|
|
688
|
+
* @property {PromotionOffer[]} [available_promotions]
|
|
689
|
+
*/
|
|
690
|
+
/**
|
|
691
|
+
* @typedef RawBreakup
|
|
692
|
+
* @property {number} [cod_charge]
|
|
693
|
+
* @property {number} [convenience_fee]
|
|
694
|
+
* @property {number} [coupon]
|
|
695
|
+
* @property {number} [delivery_charge]
|
|
696
|
+
* @property {number} [discount]
|
|
697
|
+
* @property {number} [fynd_cash]
|
|
698
|
+
* @property {number} [gift_card]
|
|
699
|
+
* @property {number} [gst_charges]
|
|
700
|
+
* @property {number} [mrp_total]
|
|
701
|
+
* @property {number} [subtotal]
|
|
702
|
+
* @property {number} [total]
|
|
703
|
+
* @property {number} [vog]
|
|
704
|
+
* @property {number} [you_saved]
|
|
705
|
+
*/
|
|
706
|
+
/**
|
|
707
|
+
* @typedef RewardPointRequest
|
|
708
|
+
* @property {boolean} points
|
|
709
|
+
*/
|
|
710
|
+
/**
|
|
711
|
+
* @typedef SaveAddressResponse
|
|
712
|
+
* @property {string} [id]
|
|
713
|
+
* @property {boolean} [is_default_address]
|
|
714
|
+
* @property {boolean} [success]
|
|
715
|
+
*/
|
|
716
|
+
/**
|
|
717
|
+
* @typedef SelectCartAddressRequest
|
|
718
|
+
* @property {string} [billing_address_id]
|
|
719
|
+
* @property {string} [cart_id]
|
|
720
|
+
* @property {string} [id]
|
|
721
|
+
*/
|
|
722
|
+
/**
|
|
723
|
+
* @typedef SharedCart
|
|
724
|
+
* @property {CartBreakup} [breakup_values]
|
|
725
|
+
* @property {boolean} [buy_now]
|
|
726
|
+
* @property {number} [cart_id]
|
|
727
|
+
* @property {string} [checkout_mode]
|
|
728
|
+
* @property {string} [comment]
|
|
729
|
+
* @property {string} [coupon_text]
|
|
730
|
+
* @property {CartCurrency} [currency]
|
|
731
|
+
* @property {string} [delivery_charge_info]
|
|
732
|
+
* @property {ShipmentPromise} [delivery_promise]
|
|
733
|
+
* @property {string} [gstin]
|
|
734
|
+
* @property {string} [id]
|
|
735
|
+
* @property {boolean} [is_valid]
|
|
736
|
+
* @property {CartProductInfo[]} [items]
|
|
737
|
+
* @property {string} [last_modified]
|
|
738
|
+
* @property {string} [message]
|
|
739
|
+
* @property {PaymentSelectionLock} [payment_selection_lock]
|
|
740
|
+
* @property {boolean} [restrict_checkout]
|
|
741
|
+
* @property {SharedCartDetails} [shared_cart_details]
|
|
742
|
+
* @property {string} [uid]
|
|
743
|
+
*/
|
|
744
|
+
/**
|
|
745
|
+
* @typedef SharedCartDetails
|
|
746
|
+
* @property {string} [created_on]
|
|
747
|
+
* @property {Object} [meta] - Meta data sent while generating share cart link
|
|
748
|
+
* @property {Object} [source] - Share link device and other source information
|
|
749
|
+
* @property {string} [token] - Short link id
|
|
750
|
+
* @property {Object} [user] - User details of who generated share link
|
|
751
|
+
*/
|
|
752
|
+
/**
|
|
753
|
+
* @typedef SharedCartResponse
|
|
754
|
+
* @property {SharedCart} [cart]
|
|
755
|
+
* @property {string} [error]
|
|
756
|
+
*/
|
|
757
|
+
/**
|
|
758
|
+
* @typedef ShipmentPromise
|
|
759
|
+
* @property {PromiseFormatted} [formatted]
|
|
760
|
+
* @property {PromiseTimestamp} [timestamp]
|
|
761
|
+
*/
|
|
762
|
+
/**
|
|
763
|
+
* @typedef ShipmentResponse
|
|
764
|
+
* @property {string} [box_type]
|
|
765
|
+
* @property {string} [dp_id]
|
|
766
|
+
* @property {Object} [dp_options]
|
|
767
|
+
* @property {number} [fulfillment_id]
|
|
768
|
+
* @property {string} [fulfillment_type]
|
|
769
|
+
* @property {CartProductInfo[]} [items]
|
|
770
|
+
* @property {string} [order_type]
|
|
771
|
+
* @property {ShipmentPromise} [promise]
|
|
772
|
+
* @property {string} [shipment_type]
|
|
773
|
+
* @property {number} [shipments]
|
|
774
|
+
*/
|
|
775
|
+
/**
|
|
776
|
+
* @typedef StaffCheckout
|
|
777
|
+
* @property {string} _id
|
|
778
|
+
* @property {string} [employee_code]
|
|
779
|
+
* @property {string} first_name
|
|
780
|
+
* @property {string} last_name
|
|
781
|
+
* @property {string} user
|
|
782
|
+
*/
|
|
783
|
+
/**
|
|
784
|
+
* @typedef StoreInfo
|
|
785
|
+
* @property {string} [name]
|
|
786
|
+
* @property {string} [store_code]
|
|
787
|
+
* @property {number} [uid]
|
|
788
|
+
*/
|
|
789
|
+
/**
|
|
790
|
+
* @typedef Tags
|
|
791
|
+
* @property {Object} [tags]
|
|
792
|
+
*/
|
|
793
|
+
/**
|
|
794
|
+
* @typedef UpdateAddressResponse
|
|
795
|
+
* @property {string} [id]
|
|
796
|
+
* @property {boolean} [is_default_address]
|
|
797
|
+
* @property {boolean} [is_updated]
|
|
798
|
+
* @property {boolean} [success]
|
|
799
|
+
*/
|
|
800
|
+
/**
|
|
801
|
+
* @typedef UpdateCartDetailResponse
|
|
802
|
+
* @property {CartDetailResponse} [cart]
|
|
803
|
+
* @property {string} [message]
|
|
804
|
+
* @property {boolean} [success] - True if all items are added successfully.
|
|
805
|
+
* False if partially added or not added.
|
|
806
|
+
*/
|
|
807
|
+
/**
|
|
808
|
+
* @typedef UpdateCartPaymentRequest
|
|
809
|
+
* @property {string} [address_id]
|
|
810
|
+
* @property {string} [aggregator_name]
|
|
811
|
+
* @property {string} [id]
|
|
812
|
+
* @property {string} [merchant_code]
|
|
813
|
+
* @property {string} [payment_identifier]
|
|
814
|
+
* @property {string} [payment_mode]
|
|
815
|
+
*/
|
|
816
|
+
/**
|
|
817
|
+
* @typedef UpdateCartRequest
|
|
818
|
+
* @property {UpdateProductCart[]} [items]
|
|
819
|
+
* @property {string} operation
|
|
820
|
+
*/
|
|
821
|
+
/**
|
|
822
|
+
* @typedef UpdateProductCart
|
|
823
|
+
* @property {Object} [_custom_json]
|
|
824
|
+
* @property {string} [article_id]
|
|
825
|
+
* @property {Object} [extra_meta]
|
|
826
|
+
* @property {CartProductIdentifer} identifiers
|
|
827
|
+
* @property {number} [item_id]
|
|
828
|
+
* @property {number} [item_index]
|
|
829
|
+
* @property {string} [item_size]
|
|
830
|
+
* @property {Object} [meta]
|
|
831
|
+
* @property {Object} [parent_item_identifiers]
|
|
832
|
+
* @property {number} [quantity]
|
|
833
|
+
*/
|
|
834
|
+
declare class CartApplicationModel {
|
|
97
835
|
}
|
|
836
|
+
declare namespace CartApplicationModel {
|
|
837
|
+
export { ActionQuery, AddCartDetailResponse, AddCartRequest, AddProductCart, Address, AppliedFreeArticles, AppliedPromotion, ApplyCouponRequest, ArticleGiftDetail, ArticlePriceInfo, BaseInfo, BasePrice, BulkPriceOffer, BulkPriceResponse, BuyRules, CartBreakup, CartCheckoutCustomMeta, CartCheckoutDetailRequest, CartCheckoutDetailV2Request, CartCheckoutResponse, CartCurrency, CartDetailResponse, CartItemCountResponse, CartMetaMissingResponse, CartMetaRequest, CartMetaResponse, CartProduct, CartProductIdentifer, CartProductInfo, CartShipmentsResponse, CategoryInfo, CheckCart, Coupon, CouponBreakup, CouponDetails, CouponValidity, CurrencyInfo, CustomerDetails, DeleteAddressResponse, DeleteCartDetailResponse, DiscountRulesApp, DisplayBreakup, FreeGiftItem, FreeGiftItems, GeoLocation, GetAddressesResponse, GetCouponResponse, GetShareCartLinkRequest, GetShareCartLinkResponse, GiftDetail, LadderOfferItem, LadderPrice, LadderPriceOffer, LadderPriceOffers, LoyaltyPoints, OfferItem, OfferPrice, OfferSeller, OperationErrorResponse, Ownership, PageCoupon, PaymentCouponValidate, PaymentMeta, PaymentMethod, PaymentSelectionLock, ProductAction, ProductArticle, ProductAvailability, ProductAvailabilitySize, ProductImage, ProductPrice, ProductPriceInfo, PromiseFormatted, PromiseTimestamp, PromoMeta, PromotionOffer, PromotionOffersResponse, RawBreakup, RewardPointRequest, SaveAddressResponse, SelectCartAddressRequest, SharedCart, SharedCartDetails, SharedCartResponse, ShipmentPromise, ShipmentResponse, StaffCheckout, StoreInfo, Tags, UpdateAddressResponse, UpdateCartDetailResponse, UpdateCartPaymentRequest, UpdateCartRequest, UpdateProductCart };
|
|
838
|
+
}
|
|
839
|
+
/** @returns {ActionQuery} */
|
|
840
|
+
declare function ActionQuery(): ActionQuery;
|
|
841
|
+
type ActionQuery = {
|
|
842
|
+
/**
|
|
843
|
+
* - Contains list of product slug
|
|
844
|
+
*/
|
|
845
|
+
product_slug?: string[];
|
|
846
|
+
};
|
|
847
|
+
/** @returns {AddCartDetailResponse} */
|
|
848
|
+
declare function AddCartDetailResponse(): AddCartDetailResponse;
|
|
849
|
+
type AddCartDetailResponse = {
|
|
850
|
+
cart?: CartDetailResponse;
|
|
851
|
+
message?: string;
|
|
852
|
+
/**
|
|
853
|
+
* - When adding multiple items check if all
|
|
854
|
+
* added. True if only few are added.
|
|
855
|
+
*/
|
|
856
|
+
partial?: boolean;
|
|
857
|
+
/**
|
|
858
|
+
* - True if all items are added successfully.
|
|
859
|
+
* False if partially added or not added.
|
|
860
|
+
*/
|
|
861
|
+
success?: boolean;
|
|
862
|
+
};
|
|
863
|
+
/** @returns {AddCartRequest} */
|
|
864
|
+
declare function AddCartRequest(): AddCartRequest;
|
|
865
|
+
type AddCartRequest = {
|
|
866
|
+
items?: AddProductCart[];
|
|
867
|
+
new_cart?: boolean;
|
|
868
|
+
};
|
|
869
|
+
/** @returns {AddProductCart} */
|
|
870
|
+
declare function AddProductCart(): AddProductCart;
|
|
871
|
+
type AddProductCart = {
|
|
872
|
+
_custom_json?: any;
|
|
873
|
+
article_assignment?: any;
|
|
874
|
+
article_id?: string;
|
|
875
|
+
display?: string;
|
|
876
|
+
extra_meta?: any;
|
|
877
|
+
item_id?: number;
|
|
878
|
+
item_size?: string;
|
|
879
|
+
meta?: any;
|
|
880
|
+
parent_item_identifiers?: any[];
|
|
881
|
+
pos?: boolean;
|
|
882
|
+
product_group_tags?: string[];
|
|
883
|
+
quantity?: number;
|
|
884
|
+
seller_id?: number;
|
|
885
|
+
store_id?: number;
|
|
886
|
+
};
|
|
887
|
+
/** @returns {Address} */
|
|
888
|
+
declare function Address(): Address;
|
|
889
|
+
type Address = {
|
|
890
|
+
_custom_json?: any;
|
|
891
|
+
address?: string;
|
|
892
|
+
address_type?: string;
|
|
893
|
+
area?: string;
|
|
894
|
+
area_code?: string;
|
|
895
|
+
area_code_slug?: string;
|
|
896
|
+
checkout_mode?: string;
|
|
897
|
+
city?: string;
|
|
898
|
+
country?: string;
|
|
899
|
+
country_code?: string;
|
|
900
|
+
country_iso_code?: string;
|
|
901
|
+
country_phone_code?: string;
|
|
902
|
+
created_by_user_id?: string;
|
|
903
|
+
email?: string;
|
|
904
|
+
geo_location?: GeoLocation;
|
|
905
|
+
google_map_point?: any;
|
|
906
|
+
id?: string;
|
|
907
|
+
is_active?: boolean;
|
|
908
|
+
is_default_address?: boolean;
|
|
909
|
+
landmark?: string;
|
|
910
|
+
meta?: any;
|
|
911
|
+
name?: string;
|
|
912
|
+
phone?: string;
|
|
913
|
+
state?: string;
|
|
914
|
+
tags?: string[];
|
|
915
|
+
user_id?: string;
|
|
916
|
+
};
|
|
917
|
+
/** @returns {AppliedFreeArticles} */
|
|
918
|
+
declare function AppliedFreeArticles(): AppliedFreeArticles;
|
|
919
|
+
type AppliedFreeArticles = {
|
|
920
|
+
/**
|
|
921
|
+
* - Free article id
|
|
922
|
+
*/
|
|
923
|
+
article_id?: string;
|
|
924
|
+
/**
|
|
925
|
+
* - Free gift items details
|
|
926
|
+
*/
|
|
927
|
+
free_gift_item_details?: FreeGiftItem;
|
|
928
|
+
/**
|
|
929
|
+
* - Parent item identifier for free article
|
|
930
|
+
*/
|
|
931
|
+
parent_item_identifier?: string;
|
|
932
|
+
/**
|
|
933
|
+
* - Free article quantity
|
|
934
|
+
*/
|
|
935
|
+
quantity?: number;
|
|
936
|
+
};
|
|
937
|
+
/** @returns {AppliedPromotion} */
|
|
938
|
+
declare function AppliedPromotion(): AppliedPromotion;
|
|
939
|
+
type AppliedPromotion = {
|
|
940
|
+
/**
|
|
941
|
+
* - Per unit discount amount applied with current promotion
|
|
942
|
+
*/
|
|
943
|
+
amount?: number;
|
|
944
|
+
/**
|
|
945
|
+
* - Applied free
|
|
946
|
+
* article for free gift item promotions
|
|
947
|
+
*/
|
|
948
|
+
applied_free_articles?: AppliedFreeArticles[];
|
|
949
|
+
/**
|
|
950
|
+
* - Quantity of article on which
|
|
951
|
+
* promotion is applicable
|
|
952
|
+
*/
|
|
953
|
+
article_quantity?: number;
|
|
954
|
+
/**
|
|
955
|
+
* - Buy rules for promotions
|
|
956
|
+
*/
|
|
957
|
+
buy_rules?: BuyRules[];
|
|
958
|
+
/**
|
|
959
|
+
* - Discount rules for promotions
|
|
960
|
+
*/
|
|
961
|
+
discount_rules?: DiscountRulesApp[];
|
|
962
|
+
/**
|
|
963
|
+
* - If applied promotion is applied on
|
|
964
|
+
* product MRP or ESP
|
|
965
|
+
*/
|
|
966
|
+
mrp_promotion?: boolean;
|
|
967
|
+
/**
|
|
968
|
+
* - Offer text of current promotion
|
|
969
|
+
*/
|
|
970
|
+
offer_text?: string;
|
|
971
|
+
/**
|
|
972
|
+
* - Ownership of promotion
|
|
973
|
+
*/
|
|
974
|
+
ownership?: Ownership;
|
|
975
|
+
/**
|
|
976
|
+
* - Promotion id
|
|
977
|
+
*/
|
|
978
|
+
promo_id?: string;
|
|
979
|
+
/**
|
|
980
|
+
* - Promotion group for the promotion
|
|
981
|
+
*/
|
|
982
|
+
promotion_group?: string;
|
|
983
|
+
/**
|
|
984
|
+
* - Promotion name of current promotion
|
|
985
|
+
*/
|
|
986
|
+
promotion_name?: string;
|
|
987
|
+
/**
|
|
988
|
+
* - Promotion type of current promotion
|
|
989
|
+
*/
|
|
990
|
+
promotion_type?: string;
|
|
991
|
+
};
|
|
992
|
+
/** @returns {ApplyCouponRequest} */
|
|
993
|
+
declare function ApplyCouponRequest(): ApplyCouponRequest;
|
|
994
|
+
type ApplyCouponRequest = {
|
|
995
|
+
/**
|
|
996
|
+
* - Coupon code to be applied
|
|
997
|
+
*/
|
|
998
|
+
coupon_code: string;
|
|
999
|
+
};
|
|
1000
|
+
/** @returns {ArticleGiftDetail} */
|
|
1001
|
+
declare function ArticleGiftDetail(): ArticleGiftDetail;
|
|
1002
|
+
type ArticleGiftDetail = {
|
|
1003
|
+
article_id?: GiftDetail;
|
|
1004
|
+
};
|
|
1005
|
+
/** @returns {ArticlePriceInfo} */
|
|
1006
|
+
declare function ArticlePriceInfo(): ArticlePriceInfo;
|
|
1007
|
+
type ArticlePriceInfo = {
|
|
1008
|
+
base?: BasePrice;
|
|
1009
|
+
converted?: BasePrice;
|
|
1010
|
+
};
|
|
1011
|
+
/** @returns {BaseInfo} */
|
|
1012
|
+
declare function BaseInfo(): BaseInfo;
|
|
1013
|
+
type BaseInfo = {
|
|
1014
|
+
name?: string;
|
|
1015
|
+
uid?: number;
|
|
1016
|
+
};
|
|
1017
|
+
/** @returns {BasePrice} */
|
|
1018
|
+
declare function BasePrice(): BasePrice;
|
|
1019
|
+
type BasePrice = {
|
|
1020
|
+
currency_code?: string;
|
|
1021
|
+
currency_symbol?: string;
|
|
1022
|
+
effective?: number;
|
|
1023
|
+
marked?: number;
|
|
1024
|
+
};
|
|
1025
|
+
/** @returns {BulkPriceOffer} */
|
|
1026
|
+
declare function BulkPriceOffer(): BulkPriceOffer;
|
|
1027
|
+
type BulkPriceOffer = {
|
|
1028
|
+
offers?: OfferItem[];
|
|
1029
|
+
seller?: OfferSeller;
|
|
1030
|
+
};
|
|
1031
|
+
/** @returns {BulkPriceResponse} */
|
|
1032
|
+
declare function BulkPriceResponse(): BulkPriceResponse;
|
|
1033
|
+
type BulkPriceResponse = {
|
|
1034
|
+
/**
|
|
1035
|
+
* - Consist of offers from multiple seller
|
|
1036
|
+
*/
|
|
1037
|
+
data?: BulkPriceOffer[];
|
|
1038
|
+
};
|
|
1039
|
+
/** @returns {BuyRules} */
|
|
1040
|
+
declare function BuyRules(): BuyRules;
|
|
1041
|
+
type BuyRules = {
|
|
1042
|
+
/**
|
|
1043
|
+
* - Cart conditions details for promotion
|
|
1044
|
+
*/
|
|
1045
|
+
cart_conditions?: any;
|
|
1046
|
+
/**
|
|
1047
|
+
* - Item criteria of promotion
|
|
1048
|
+
*/
|
|
1049
|
+
item_criteria?: any;
|
|
1050
|
+
};
|
|
1051
|
+
/** @returns {CartBreakup} */
|
|
1052
|
+
declare function CartBreakup(): CartBreakup;
|
|
1053
|
+
type CartBreakup = {
|
|
1054
|
+
coupon?: CouponBreakup;
|
|
1055
|
+
display?: DisplayBreakup[];
|
|
1056
|
+
loyalty_points?: LoyaltyPoints;
|
|
1057
|
+
raw?: RawBreakup;
|
|
1058
|
+
};
|
|
1059
|
+
/** @returns {CartCheckoutCustomMeta} */
|
|
1060
|
+
declare function CartCheckoutCustomMeta(): CartCheckoutCustomMeta;
|
|
1061
|
+
type CartCheckoutCustomMeta = {
|
|
1062
|
+
key: string;
|
|
1063
|
+
value: string;
|
|
1064
|
+
};
|
|
1065
|
+
/** @returns {CartCheckoutDetailRequest} */
|
|
1066
|
+
declare function CartCheckoutDetailRequest(): CartCheckoutDetailRequest;
|
|
1067
|
+
type CartCheckoutDetailRequest = {
|
|
1068
|
+
address_id?: string;
|
|
1069
|
+
aggregator?: string;
|
|
1070
|
+
billing_address?: any;
|
|
1071
|
+
billing_address_id?: string;
|
|
1072
|
+
callback_url?: string;
|
|
1073
|
+
custom_meta?: CartCheckoutCustomMeta[];
|
|
1074
|
+
/**
|
|
1075
|
+
* - Customer details
|
|
1076
|
+
*/
|
|
1077
|
+
customer_details?: CustomerDetails;
|
|
1078
|
+
delivery_address?: any;
|
|
1079
|
+
extra_meta?: any;
|
|
1080
|
+
id?: string;
|
|
1081
|
+
merchant_code?: string;
|
|
1082
|
+
meta?: any;
|
|
1083
|
+
order_type?: string;
|
|
1084
|
+
ordering_store?: number;
|
|
1085
|
+
payment_auto_confirm?: boolean;
|
|
1086
|
+
payment_identifier?: string;
|
|
1087
|
+
payment_mode: string;
|
|
1088
|
+
payment_params?: any;
|
|
1089
|
+
staff?: StaffCheckout;
|
|
1090
|
+
};
|
|
1091
|
+
/** @returns {CartCheckoutDetailV2Request} */
|
|
1092
|
+
declare function CartCheckoutDetailV2Request(): CartCheckoutDetailV2Request;
|
|
1093
|
+
type CartCheckoutDetailV2Request = {
|
|
1094
|
+
address_id?: string;
|
|
1095
|
+
aggregator?: string;
|
|
1096
|
+
billing_address?: any;
|
|
1097
|
+
billing_address_id?: string;
|
|
1098
|
+
callback_url?: string;
|
|
1099
|
+
cart_id?: string;
|
|
1100
|
+
custom_meta?: any;
|
|
1101
|
+
/**
|
|
1102
|
+
* - Customer details
|
|
1103
|
+
*/
|
|
1104
|
+
customer_details?: CustomerDetails;
|
|
1105
|
+
delivery_address?: any;
|
|
1106
|
+
extra_meta?: any;
|
|
1107
|
+
id?: string;
|
|
1108
|
+
merchant_code?: string;
|
|
1109
|
+
meta?: any;
|
|
1110
|
+
order_type?: string;
|
|
1111
|
+
ordering_store?: number;
|
|
1112
|
+
payment_auto_confirm?: boolean;
|
|
1113
|
+
payment_identifier?: string;
|
|
1114
|
+
payment_methods: PaymentMethod[];
|
|
1115
|
+
payment_mode: string;
|
|
1116
|
+
payment_params?: any;
|
|
1117
|
+
staff?: StaffCheckout;
|
|
1118
|
+
};
|
|
1119
|
+
/** @returns {CartCheckoutResponse} */
|
|
1120
|
+
declare function CartCheckoutResponse(): CartCheckoutResponse;
|
|
1121
|
+
type CartCheckoutResponse = {
|
|
1122
|
+
app_intercept_url?: string;
|
|
1123
|
+
callback_url?: string;
|
|
1124
|
+
cart?: CheckCart;
|
|
1125
|
+
data?: any;
|
|
1126
|
+
message?: string;
|
|
1127
|
+
order_id?: string;
|
|
1128
|
+
payment_confirm_url?: string;
|
|
1129
|
+
success?: boolean;
|
|
1130
|
+
};
|
|
1131
|
+
/** @returns {CartCurrency} */
|
|
1132
|
+
declare function CartCurrency(): CartCurrency;
|
|
1133
|
+
type CartCurrency = {
|
|
1134
|
+
/**
|
|
1135
|
+
* - Currency code defined by ISO 4217:2015
|
|
1136
|
+
*/
|
|
1137
|
+
code?: string;
|
|
1138
|
+
symbol?: string;
|
|
1139
|
+
};
|
|
1140
|
+
/** @returns {CartDetailResponse} */
|
|
1141
|
+
declare function CartDetailResponse(): CartDetailResponse;
|
|
1142
|
+
type CartDetailResponse = {
|
|
1143
|
+
applied_promo_details?: AppliedPromotion[];
|
|
1144
|
+
breakup_values?: CartBreakup;
|
|
1145
|
+
buy_now?: boolean;
|
|
1146
|
+
checkout_mode?: string;
|
|
1147
|
+
comment?: string;
|
|
1148
|
+
coupon_text?: string;
|
|
1149
|
+
currency?: CartCurrency;
|
|
1150
|
+
delivery_charge_info?: string;
|
|
1151
|
+
delivery_promise?: ShipmentPromise;
|
|
1152
|
+
gstin?: string;
|
|
1153
|
+
id?: string;
|
|
1154
|
+
is_valid?: boolean;
|
|
1155
|
+
items?: CartProductInfo[];
|
|
1156
|
+
last_modified?: string;
|
|
1157
|
+
message?: string;
|
|
1158
|
+
pan_config?: any;
|
|
1159
|
+
pan_no?: string;
|
|
1160
|
+
payment_selection_lock?: PaymentSelectionLock;
|
|
1161
|
+
restrict_checkout?: boolean;
|
|
1162
|
+
};
|
|
1163
|
+
/** @returns {CartItemCountResponse} */
|
|
1164
|
+
declare function CartItemCountResponse(): CartItemCountResponse;
|
|
1165
|
+
type CartItemCountResponse = {
|
|
1166
|
+
/**
|
|
1167
|
+
* - Item count present in cart
|
|
1168
|
+
*/
|
|
1169
|
+
user_cart_items_count?: number;
|
|
1170
|
+
};
|
|
1171
|
+
/** @returns {CartMetaMissingResponse} */
|
|
1172
|
+
declare function CartMetaMissingResponse(): CartMetaMissingResponse;
|
|
1173
|
+
type CartMetaMissingResponse = {
|
|
1174
|
+
errors?: string[];
|
|
1175
|
+
};
|
|
1176
|
+
/** @returns {CartMetaRequest} */
|
|
1177
|
+
declare function CartMetaRequest(): CartMetaRequest;
|
|
1178
|
+
type CartMetaRequest = {
|
|
1179
|
+
checkout_mode?: string;
|
|
1180
|
+
comment?: string;
|
|
1181
|
+
delivery_slots?: any;
|
|
1182
|
+
gift_details?: ArticleGiftDetail;
|
|
1183
|
+
gstin?: string;
|
|
1184
|
+
/**
|
|
1185
|
+
* - Customer contact details for
|
|
1186
|
+
* customer pickup at store
|
|
1187
|
+
*/
|
|
1188
|
+
pick_up_customer_details?: any;
|
|
1189
|
+
};
|
|
1190
|
+
/** @returns {CartMetaResponse} */
|
|
1191
|
+
declare function CartMetaResponse(): CartMetaResponse;
|
|
1192
|
+
type CartMetaResponse = {
|
|
1193
|
+
is_valid?: boolean;
|
|
1194
|
+
message?: string;
|
|
1195
|
+
};
|
|
1196
|
+
/** @returns {CartProduct} */
|
|
1197
|
+
declare function CartProduct(): CartProduct;
|
|
1198
|
+
type CartProduct = {
|
|
1199
|
+
_custom_json?: any;
|
|
1200
|
+
action?: ProductAction;
|
|
1201
|
+
brand?: BaseInfo;
|
|
1202
|
+
categories?: CategoryInfo[];
|
|
1203
|
+
images?: ProductImage[];
|
|
1204
|
+
item_code?: string;
|
|
1205
|
+
name?: string;
|
|
1206
|
+
/**
|
|
1207
|
+
* - Unique product url name generated via product
|
|
1208
|
+
* name and other meta data
|
|
1209
|
+
*/
|
|
1210
|
+
slug?: string;
|
|
1211
|
+
tags?: string[];
|
|
1212
|
+
teaser_tag?: Tags;
|
|
1213
|
+
type?: string;
|
|
1214
|
+
uid?: number;
|
|
1215
|
+
};
|
|
1216
|
+
/** @returns {CartProductIdentifer} */
|
|
1217
|
+
declare function CartProductIdentifer(): CartProductIdentifer;
|
|
1218
|
+
type CartProductIdentifer = {
|
|
1219
|
+
/**
|
|
1220
|
+
* - Article idenfier generated by cart
|
|
1221
|
+
*/
|
|
1222
|
+
identifier?: string;
|
|
1223
|
+
};
|
|
1224
|
+
/** @returns {CartProductInfo} */
|
|
1225
|
+
declare function CartProductInfo(): CartProductInfo;
|
|
1226
|
+
type CartProductInfo = {
|
|
1227
|
+
article?: ProductArticle;
|
|
1228
|
+
availability?: ProductAvailability;
|
|
1229
|
+
bulk_offer?: any;
|
|
1230
|
+
coupon?: CouponDetails;
|
|
1231
|
+
coupon_message?: string;
|
|
1232
|
+
custom_order?: any;
|
|
1233
|
+
delivery_promise?: ShipmentPromise;
|
|
1234
|
+
discount?: string;
|
|
1235
|
+
identifiers: CartProductIdentifer;
|
|
1236
|
+
is_set?: boolean;
|
|
1237
|
+
key?: string;
|
|
1238
|
+
message?: string;
|
|
1239
|
+
moq?: any;
|
|
1240
|
+
parent_item_identifiers?: any;
|
|
1241
|
+
price?: ProductPriceInfo;
|
|
1242
|
+
price_per_unit?: ProductPriceInfo;
|
|
1243
|
+
product?: CartProduct;
|
|
1244
|
+
promo_meta?: PromoMeta;
|
|
1245
|
+
promotions_applied?: AppliedPromotion[];
|
|
1246
|
+
quantity?: number;
|
|
1247
|
+
};
|
|
1248
|
+
/** @returns {CartShipmentsResponse} */
|
|
1249
|
+
declare function CartShipmentsResponse(): CartShipmentsResponse;
|
|
1250
|
+
type CartShipmentsResponse = {
|
|
1251
|
+
breakup_values?: CartBreakup;
|
|
1252
|
+
buy_now?: boolean;
|
|
1253
|
+
cart_id?: number;
|
|
1254
|
+
checkout_mode?: string;
|
|
1255
|
+
comment?: string;
|
|
1256
|
+
coupon_text?: string;
|
|
1257
|
+
currency?: CartCurrency;
|
|
1258
|
+
delivery_charge_info?: string;
|
|
1259
|
+
delivery_promise?: ShipmentPromise;
|
|
1260
|
+
error?: boolean;
|
|
1261
|
+
gstin?: string;
|
|
1262
|
+
id?: string;
|
|
1263
|
+
is_valid?: boolean;
|
|
1264
|
+
last_modified?: string;
|
|
1265
|
+
message?: string;
|
|
1266
|
+
payment_selection_lock?: PaymentSelectionLock;
|
|
1267
|
+
restrict_checkout?: boolean;
|
|
1268
|
+
shipments?: ShipmentResponse[];
|
|
1269
|
+
uid?: string;
|
|
1270
|
+
};
|
|
1271
|
+
/** @returns {CategoryInfo} */
|
|
1272
|
+
declare function CategoryInfo(): CategoryInfo;
|
|
1273
|
+
type CategoryInfo = {
|
|
1274
|
+
name?: string;
|
|
1275
|
+
/**
|
|
1276
|
+
* - Product Category Id
|
|
1277
|
+
*/
|
|
1278
|
+
uid?: number;
|
|
1279
|
+
};
|
|
1280
|
+
/** @returns {CheckCart} */
|
|
1281
|
+
declare function CheckCart(): CheckCart;
|
|
1282
|
+
type CheckCart = {
|
|
1283
|
+
breakup_values?: CartBreakup;
|
|
1284
|
+
buy_now?: boolean;
|
|
1285
|
+
cart_id?: number;
|
|
1286
|
+
checkout_mode?: string;
|
|
1287
|
+
cod_available?: boolean;
|
|
1288
|
+
cod_charges?: number;
|
|
1289
|
+
cod_message?: string;
|
|
1290
|
+
comment?: string;
|
|
1291
|
+
coupon_text?: string;
|
|
1292
|
+
currency?: CartCurrency;
|
|
1293
|
+
delivery_charge_info?: string;
|
|
1294
|
+
delivery_charge_order_value?: number;
|
|
1295
|
+
delivery_charges?: number;
|
|
1296
|
+
delivery_promise?: ShipmentPromise;
|
|
1297
|
+
error_message?: string;
|
|
1298
|
+
gstin?: string;
|
|
1299
|
+
id?: string;
|
|
1300
|
+
is_valid?: boolean;
|
|
1301
|
+
items?: CartProductInfo[];
|
|
1302
|
+
last_modified?: string;
|
|
1303
|
+
message?: string;
|
|
1304
|
+
order_id?: string;
|
|
1305
|
+
payment_selection_lock?: PaymentSelectionLock;
|
|
1306
|
+
restrict_checkout?: boolean;
|
|
1307
|
+
store_code?: string;
|
|
1308
|
+
store_emps?: any[];
|
|
1309
|
+
success?: boolean;
|
|
1310
|
+
uid?: string;
|
|
1311
|
+
user_type?: string;
|
|
1312
|
+
};
|
|
1313
|
+
/** @returns {Coupon} */
|
|
1314
|
+
declare function Coupon(): Coupon;
|
|
1315
|
+
type Coupon = {
|
|
1316
|
+
coupon_code?: string;
|
|
1317
|
+
coupon_type?: string;
|
|
1318
|
+
coupon_value?: number;
|
|
1319
|
+
description?: string;
|
|
1320
|
+
expires_on?: string;
|
|
1321
|
+
is_applicable?: boolean;
|
|
1322
|
+
is_applied?: boolean;
|
|
1323
|
+
max_discount_value?: number;
|
|
1324
|
+
message?: string;
|
|
1325
|
+
minimum_cart_value?: number;
|
|
1326
|
+
sub_title?: string;
|
|
1327
|
+
title?: string;
|
|
1328
|
+
};
|
|
1329
|
+
/** @returns {CouponBreakup} */
|
|
1330
|
+
declare function CouponBreakup(): CouponBreakup;
|
|
1331
|
+
type CouponBreakup = {
|
|
1332
|
+
code?: string;
|
|
1333
|
+
coupon_type?: string;
|
|
1334
|
+
coupon_value?: number;
|
|
1335
|
+
description?: string;
|
|
1336
|
+
is_applied?: boolean;
|
|
1337
|
+
max_discount_value?: number;
|
|
1338
|
+
message?: string;
|
|
1339
|
+
minimum_cart_value?: number;
|
|
1340
|
+
sub_title?: string;
|
|
1341
|
+
title?: string;
|
|
1342
|
+
type?: string;
|
|
1343
|
+
uid?: string;
|
|
1344
|
+
value?: number;
|
|
1345
|
+
};
|
|
1346
|
+
/** @returns {CouponDetails} */
|
|
1347
|
+
declare function CouponDetails(): CouponDetails;
|
|
1348
|
+
type CouponDetails = {
|
|
1349
|
+
code?: string;
|
|
1350
|
+
discount_single_quantity?: number;
|
|
1351
|
+
discount_total_quantity?: number;
|
|
1352
|
+
};
|
|
1353
|
+
/** @returns {CouponValidity} */
|
|
1354
|
+
declare function CouponValidity(): CouponValidity;
|
|
1355
|
+
type CouponValidity = {
|
|
1356
|
+
code?: string;
|
|
1357
|
+
discount?: number;
|
|
1358
|
+
display_message_en?: string;
|
|
1359
|
+
next_validation_required?: boolean;
|
|
1360
|
+
title?: string;
|
|
1361
|
+
valid?: boolean;
|
|
1362
|
+
};
|
|
1363
|
+
/** @returns {CurrencyInfo} */
|
|
1364
|
+
declare function CurrencyInfo(): CurrencyInfo;
|
|
1365
|
+
type CurrencyInfo = {
|
|
1366
|
+
code?: string;
|
|
1367
|
+
symbol?: string;
|
|
1368
|
+
};
|
|
1369
|
+
/** @returns {CustomerDetails} */
|
|
1370
|
+
declare function CustomerDetails(): CustomerDetails;
|
|
1371
|
+
type CustomerDetails = {
|
|
1372
|
+
email?: string;
|
|
1373
|
+
mobile: string;
|
|
1374
|
+
name?: string;
|
|
1375
|
+
};
|
|
1376
|
+
/** @returns {DeleteAddressResponse} */
|
|
1377
|
+
declare function DeleteAddressResponse(): DeleteAddressResponse;
|
|
1378
|
+
type DeleteAddressResponse = {
|
|
1379
|
+
id?: string;
|
|
1380
|
+
is_deleted?: boolean;
|
|
1381
|
+
};
|
|
1382
|
+
/** @returns {DeleteCartDetailResponse} */
|
|
1383
|
+
declare function DeleteCartDetailResponse(): DeleteCartDetailResponse;
|
|
1384
|
+
type DeleteCartDetailResponse = {
|
|
1385
|
+
message?: string;
|
|
1386
|
+
/**
|
|
1387
|
+
* - True if cart is archived successfully. False
|
|
1388
|
+
* if not archived.
|
|
1389
|
+
*/
|
|
1390
|
+
success?: boolean;
|
|
1391
|
+
};
|
|
1392
|
+
/** @returns {DiscountRulesApp} */
|
|
1393
|
+
declare function DiscountRulesApp(): DiscountRulesApp;
|
|
1394
|
+
type DiscountRulesApp = {
|
|
1395
|
+
/**
|
|
1396
|
+
* - Item criteria of promotion
|
|
1397
|
+
*/
|
|
1398
|
+
item_criteria?: any;
|
|
1399
|
+
/**
|
|
1400
|
+
* - Matched buy rules for promotion
|
|
1401
|
+
*/
|
|
1402
|
+
matched_buy_rules?: string[];
|
|
1403
|
+
/**
|
|
1404
|
+
* - Offer for promotion
|
|
1405
|
+
*/
|
|
1406
|
+
offer?: any;
|
|
1407
|
+
/**
|
|
1408
|
+
* - Raw offer details for promotion
|
|
1409
|
+
*/
|
|
1410
|
+
raw_offer?: any;
|
|
1411
|
+
};
|
|
1412
|
+
/** @returns {DisplayBreakup} */
|
|
1413
|
+
declare function DisplayBreakup(): DisplayBreakup;
|
|
1414
|
+
type DisplayBreakup = {
|
|
1415
|
+
currency_code?: string;
|
|
1416
|
+
currency_symbol?: string;
|
|
1417
|
+
display?: string;
|
|
1418
|
+
key?: string;
|
|
1419
|
+
message?: string[];
|
|
1420
|
+
value?: number;
|
|
1421
|
+
};
|
|
1422
|
+
/** @returns {FreeGiftItem} */
|
|
1423
|
+
declare function FreeGiftItem(): FreeGiftItem;
|
|
1424
|
+
type FreeGiftItem = {
|
|
1425
|
+
/**
|
|
1426
|
+
* - Item brand name
|
|
1427
|
+
*/
|
|
1428
|
+
item_brand_name?: string;
|
|
1429
|
+
/**
|
|
1430
|
+
* - Item id
|
|
1431
|
+
*/
|
|
1432
|
+
item_id?: number;
|
|
1433
|
+
/**
|
|
1434
|
+
* - Item images URL
|
|
1435
|
+
*/
|
|
1436
|
+
item_images_url?: string[];
|
|
1437
|
+
/**
|
|
1438
|
+
* - Item name
|
|
1439
|
+
*/
|
|
1440
|
+
item_name?: string;
|
|
1441
|
+
/**
|
|
1442
|
+
* - Item price details
|
|
1443
|
+
*/
|
|
1444
|
+
item_price_details?: any;
|
|
1445
|
+
/**
|
|
1446
|
+
* - Item slug
|
|
1447
|
+
*/
|
|
1448
|
+
item_slug?: string;
|
|
1449
|
+
};
|
|
1450
|
+
/** @returns {FreeGiftItems} */
|
|
1451
|
+
declare function FreeGiftItems(): FreeGiftItems;
|
|
1452
|
+
type FreeGiftItems = {
|
|
1453
|
+
/**
|
|
1454
|
+
* - Item brand name
|
|
1455
|
+
*/
|
|
1456
|
+
item_brand_name?: string;
|
|
1457
|
+
/**
|
|
1458
|
+
* - Item id
|
|
1459
|
+
*/
|
|
1460
|
+
item_id?: number;
|
|
1461
|
+
/**
|
|
1462
|
+
* - Item images URL
|
|
1463
|
+
*/
|
|
1464
|
+
item_images_url?: string[];
|
|
1465
|
+
/**
|
|
1466
|
+
* - Item name
|
|
1467
|
+
*/
|
|
1468
|
+
item_name?: string;
|
|
1469
|
+
/**
|
|
1470
|
+
* - Item price details
|
|
1471
|
+
*/
|
|
1472
|
+
item_price_details?: any;
|
|
1473
|
+
/**
|
|
1474
|
+
* - Item slug
|
|
1475
|
+
*/
|
|
1476
|
+
item_slug?: string;
|
|
1477
|
+
};
|
|
1478
|
+
/** @returns {GeoLocation} */
|
|
1479
|
+
declare function GeoLocation(): GeoLocation;
|
|
1480
|
+
type GeoLocation = {
|
|
1481
|
+
latitude?: number;
|
|
1482
|
+
longitude?: number;
|
|
1483
|
+
};
|
|
1484
|
+
/** @returns {GetAddressesResponse} */
|
|
1485
|
+
declare function GetAddressesResponse(): GetAddressesResponse;
|
|
1486
|
+
type GetAddressesResponse = {
|
|
1487
|
+
address?: Address[];
|
|
1488
|
+
pii_masking?: boolean;
|
|
1489
|
+
};
|
|
1490
|
+
/** @returns {GetCouponResponse} */
|
|
1491
|
+
declare function GetCouponResponse(): GetCouponResponse;
|
|
1492
|
+
type GetCouponResponse = {
|
|
1493
|
+
available_coupon_list?: Coupon[];
|
|
1494
|
+
page?: PageCoupon;
|
|
1495
|
+
};
|
|
1496
|
+
/** @returns {GetShareCartLinkRequest} */
|
|
1497
|
+
declare function GetShareCartLinkRequest(): GetShareCartLinkRequest;
|
|
1498
|
+
type GetShareCartLinkRequest = {
|
|
1499
|
+
/**
|
|
1500
|
+
* - Cart uid for generating sharing
|
|
1501
|
+
*/
|
|
1502
|
+
id?: string;
|
|
1503
|
+
/**
|
|
1504
|
+
* - Staff, Ordering store or any other data. This
|
|
1505
|
+
* data will be used to generate link as well as sent as shared details.
|
|
1506
|
+
*/
|
|
1507
|
+
meta?: any;
|
|
1508
|
+
};
|
|
1509
|
+
/** @returns {GetShareCartLinkResponse} */
|
|
1510
|
+
declare function GetShareCartLinkResponse(): GetShareCartLinkResponse;
|
|
1511
|
+
type GetShareCartLinkResponse = {
|
|
1512
|
+
/**
|
|
1513
|
+
* - Short shareable final url
|
|
1514
|
+
*/
|
|
1515
|
+
share_url?: string;
|
|
1516
|
+
/**
|
|
1517
|
+
* - Short url unique id
|
|
1518
|
+
*/
|
|
1519
|
+
token?: string;
|
|
1520
|
+
};
|
|
1521
|
+
/** @returns {GiftDetail} */
|
|
1522
|
+
declare function GiftDetail(): GiftDetail;
|
|
1523
|
+
type GiftDetail = {
|
|
1524
|
+
gift_message?: string;
|
|
1525
|
+
is_gift_applied?: boolean;
|
|
1526
|
+
};
|
|
1527
|
+
/** @returns {LadderOfferItem} */
|
|
1528
|
+
declare function LadderOfferItem(): LadderOfferItem;
|
|
1529
|
+
type LadderOfferItem = {
|
|
1530
|
+
/**
|
|
1531
|
+
* - Percentage value of discount
|
|
1532
|
+
*/
|
|
1533
|
+
margin?: number;
|
|
1534
|
+
/**
|
|
1535
|
+
* - Minimum quantity upto which offer is
|
|
1536
|
+
* applicable. If not present that offer is applicable on all quantities
|
|
1537
|
+
*/
|
|
1538
|
+
max_quantity?: number;
|
|
1539
|
+
/**
|
|
1540
|
+
* - Minimum quantity from which offer is applicable
|
|
1541
|
+
*/
|
|
1542
|
+
min_quantity?: number;
|
|
1543
|
+
price?: LadderPrice;
|
|
1544
|
+
/**
|
|
1545
|
+
* - Offer type
|
|
1546
|
+
*/
|
|
1547
|
+
type?: string;
|
|
1548
|
+
};
|
|
1549
|
+
/** @returns {LadderPrice} */
|
|
1550
|
+
declare function LadderPrice(): LadderPrice;
|
|
1551
|
+
type LadderPrice = {
|
|
1552
|
+
/**
|
|
1553
|
+
* - Currency code for all amounts
|
|
1554
|
+
*/
|
|
1555
|
+
currency_code?: string;
|
|
1556
|
+
/**
|
|
1557
|
+
* - Currency symbol for currency
|
|
1558
|
+
*/
|
|
1559
|
+
currency_symbol?: string;
|
|
1560
|
+
/**
|
|
1561
|
+
* - Current per unit price of product after
|
|
1562
|
+
* existing deductions
|
|
1563
|
+
*/
|
|
1564
|
+
effective?: number;
|
|
1565
|
+
/**
|
|
1566
|
+
* - Original price of product
|
|
1567
|
+
*/
|
|
1568
|
+
marked?: number;
|
|
1569
|
+
/**
|
|
1570
|
+
* - Discounted per unit price for current offer object
|
|
1571
|
+
*/
|
|
1572
|
+
offer_price?: number;
|
|
1573
|
+
};
|
|
1574
|
+
/** @returns {LadderPriceOffer} */
|
|
1575
|
+
declare function LadderPriceOffer(): LadderPriceOffer;
|
|
1576
|
+
type LadderPriceOffer = {
|
|
1577
|
+
/**
|
|
1578
|
+
* - Buy rules of promotions
|
|
1579
|
+
*/
|
|
1580
|
+
buy_rules?: any;
|
|
1581
|
+
/**
|
|
1582
|
+
* - If this ladder offer is to be calculated
|
|
1583
|
+
* on MRP or ESP price
|
|
1584
|
+
*/
|
|
1585
|
+
calculate_on?: string;
|
|
1586
|
+
/**
|
|
1587
|
+
* - Offer details including T&C
|
|
1588
|
+
*/
|
|
1589
|
+
description?: string;
|
|
1590
|
+
/**
|
|
1591
|
+
* - Discount rules of promotions
|
|
1592
|
+
*/
|
|
1593
|
+
discount_rules?: any[];
|
|
1594
|
+
/**
|
|
1595
|
+
* - Details of free gift items
|
|
1596
|
+
*/
|
|
1597
|
+
free_gift_items?: FreeGiftItems[];
|
|
1598
|
+
/**
|
|
1599
|
+
* - Promotion id
|
|
1600
|
+
*/
|
|
1601
|
+
id?: string;
|
|
1602
|
+
offer_prices?: LadderOfferItem[];
|
|
1603
|
+
/**
|
|
1604
|
+
* - Offer title
|
|
1605
|
+
*/
|
|
1606
|
+
offer_text?: string;
|
|
1607
|
+
/**
|
|
1608
|
+
* - Group of promotion belongs to
|
|
1609
|
+
*/
|
|
1610
|
+
promotion_group?: string;
|
|
1611
|
+
/**
|
|
1612
|
+
* - Datetime ISOString for promotion end date
|
|
1613
|
+
*/
|
|
1614
|
+
valid_till?: string;
|
|
1615
|
+
};
|
|
1616
|
+
/** @returns {LadderPriceOffers} */
|
|
1617
|
+
declare function LadderPriceOffers(): LadderPriceOffers;
|
|
1618
|
+
type LadderPriceOffers = {
|
|
1619
|
+
available_offers?: LadderPriceOffer[];
|
|
1620
|
+
currency?: CurrencyInfo;
|
|
1621
|
+
};
|
|
1622
|
+
/** @returns {LoyaltyPoints} */
|
|
1623
|
+
declare function LoyaltyPoints(): LoyaltyPoints;
|
|
1624
|
+
type LoyaltyPoints = {
|
|
1625
|
+
applicable?: number;
|
|
1626
|
+
description?: string;
|
|
1627
|
+
is_applied?: boolean;
|
|
1628
|
+
total?: number;
|
|
1629
|
+
};
|
|
1630
|
+
/** @returns {OfferItem} */
|
|
1631
|
+
declare function OfferItem(): OfferItem;
|
|
1632
|
+
type OfferItem = {
|
|
1633
|
+
/**
|
|
1634
|
+
* - Whether offer discount is auto applied in cart
|
|
1635
|
+
*/
|
|
1636
|
+
auto_applied?: boolean;
|
|
1637
|
+
/**
|
|
1638
|
+
* - Is true for best offer from all offers present
|
|
1639
|
+
* for all sellers
|
|
1640
|
+
*/
|
|
1641
|
+
best?: boolean;
|
|
1642
|
+
/**
|
|
1643
|
+
* - Percentage value of discount
|
|
1644
|
+
*/
|
|
1645
|
+
margin?: number;
|
|
1646
|
+
price?: OfferPrice;
|
|
1647
|
+
/**
|
|
1648
|
+
* - Quantity on which offer is applicable
|
|
1649
|
+
*/
|
|
1650
|
+
quantity?: number;
|
|
1651
|
+
/**
|
|
1652
|
+
* - Total price of offer quantity with discount
|
|
1653
|
+
*/
|
|
1654
|
+
total?: number;
|
|
1655
|
+
/**
|
|
1656
|
+
* - Offer type
|
|
1657
|
+
*/
|
|
1658
|
+
type?: string;
|
|
1659
|
+
};
|
|
1660
|
+
/** @returns {OfferPrice} */
|
|
1661
|
+
declare function OfferPrice(): OfferPrice;
|
|
1662
|
+
type OfferPrice = {
|
|
1663
|
+
/**
|
|
1664
|
+
* - Discounted per unit price for current
|
|
1665
|
+
* offer object
|
|
1666
|
+
*/
|
|
1667
|
+
bulk_effective?: number;
|
|
1668
|
+
/**
|
|
1669
|
+
* - Currency code for all amounts
|
|
1670
|
+
*/
|
|
1671
|
+
currency_code?: string;
|
|
1672
|
+
/**
|
|
1673
|
+
* - Currency symbol for currency
|
|
1674
|
+
*/
|
|
1675
|
+
currency_symbol?: string;
|
|
1676
|
+
/**
|
|
1677
|
+
* - Current per unit price of product after
|
|
1678
|
+
* existing deductions
|
|
1679
|
+
*/
|
|
1680
|
+
effective?: number;
|
|
1681
|
+
/**
|
|
1682
|
+
* - Original price of product
|
|
1683
|
+
*/
|
|
1684
|
+
marked?: number;
|
|
1685
|
+
};
|
|
1686
|
+
/** @returns {OfferSeller} */
|
|
1687
|
+
declare function OfferSeller(): OfferSeller;
|
|
1688
|
+
type OfferSeller = {
|
|
1689
|
+
name?: string;
|
|
1690
|
+
/**
|
|
1691
|
+
* - Seller id
|
|
1692
|
+
*/
|
|
1693
|
+
uid?: number;
|
|
1694
|
+
};
|
|
1695
|
+
/** @returns {OperationErrorResponse} */
|
|
1696
|
+
declare function OperationErrorResponse(): OperationErrorResponse;
|
|
1697
|
+
type OperationErrorResponse = {
|
|
1698
|
+
message?: string;
|
|
1699
|
+
success?: boolean;
|
|
1700
|
+
};
|
|
1701
|
+
/** @returns {Ownership} */
|
|
1702
|
+
declare function Ownership(): Ownership;
|
|
1703
|
+
type Ownership = {
|
|
1704
|
+
/**
|
|
1705
|
+
* - Promo amount bearable party
|
|
1706
|
+
*/
|
|
1707
|
+
payable_by?: string;
|
|
1708
|
+
/**
|
|
1709
|
+
* - Promo amount payable category
|
|
1710
|
+
*/
|
|
1711
|
+
payable_category?: string;
|
|
1712
|
+
};
|
|
1713
|
+
/** @returns {PageCoupon} */
|
|
1714
|
+
declare function PageCoupon(): PageCoupon;
|
|
1715
|
+
type PageCoupon = {
|
|
1716
|
+
current?: number;
|
|
1717
|
+
has_next?: boolean;
|
|
1718
|
+
has_previous?: boolean;
|
|
1719
|
+
total?: number;
|
|
1720
|
+
total_item_count?: number;
|
|
1721
|
+
};
|
|
1722
|
+
/** @returns {PaymentCouponValidate} */
|
|
1723
|
+
declare function PaymentCouponValidate(): PaymentCouponValidate;
|
|
1724
|
+
type PaymentCouponValidate = {
|
|
1725
|
+
coupon_validity?: CouponValidity;
|
|
1726
|
+
message?: string;
|
|
1727
|
+
success: boolean;
|
|
1728
|
+
};
|
|
1729
|
+
/** @returns {PaymentMeta} */
|
|
1730
|
+
declare function PaymentMeta(): PaymentMeta;
|
|
1731
|
+
type PaymentMeta = {
|
|
1732
|
+
merchant_code?: string;
|
|
1733
|
+
payment_gateway?: string;
|
|
1734
|
+
payment_identifier?: string;
|
|
1735
|
+
type?: string;
|
|
1736
|
+
};
|
|
1737
|
+
/** @returns {PaymentMethod} */
|
|
1738
|
+
declare function PaymentMethod(): PaymentMethod;
|
|
1739
|
+
type PaymentMethod = {
|
|
1740
|
+
amount?: number;
|
|
1741
|
+
mode: string;
|
|
1742
|
+
name?: string;
|
|
1743
|
+
payment?: string;
|
|
1744
|
+
payment_meta: PaymentMeta;
|
|
1745
|
+
};
|
|
1746
|
+
/** @returns {PaymentSelectionLock} */
|
|
1747
|
+
declare function PaymentSelectionLock(): PaymentSelectionLock;
|
|
1748
|
+
type PaymentSelectionLock = {
|
|
1749
|
+
default_options?: string;
|
|
1750
|
+
enabled?: boolean;
|
|
1751
|
+
payment_identifier?: string;
|
|
1752
|
+
};
|
|
1753
|
+
/** @returns {ProductAction} */
|
|
1754
|
+
declare function ProductAction(): ProductAction;
|
|
1755
|
+
type ProductAction = {
|
|
1756
|
+
query?: ActionQuery;
|
|
1757
|
+
type?: string;
|
|
1758
|
+
url?: string;
|
|
1759
|
+
};
|
|
1760
|
+
/** @returns {ProductArticle} */
|
|
1761
|
+
declare function ProductArticle(): ProductArticle;
|
|
1762
|
+
type ProductArticle = {
|
|
1763
|
+
_custom_json?: any;
|
|
1764
|
+
cart_item_meta?: any;
|
|
1765
|
+
extra_meta?: any;
|
|
1766
|
+
gift_card?: any;
|
|
1767
|
+
identifier?: any;
|
|
1768
|
+
is_gift_visible?: boolean;
|
|
1769
|
+
meta?: any;
|
|
1770
|
+
mto_quantity?: number;
|
|
1771
|
+
parent_item_identifiers?: any;
|
|
1772
|
+
price?: ArticlePriceInfo;
|
|
1773
|
+
product_group_tags?: string[];
|
|
1774
|
+
quantity?: number;
|
|
1775
|
+
seller?: BaseInfo;
|
|
1776
|
+
seller_identifier?: string;
|
|
1777
|
+
size?: string;
|
|
1778
|
+
store?: StoreInfo;
|
|
1779
|
+
type?: string;
|
|
1780
|
+
uid?: string;
|
|
1781
|
+
};
|
|
1782
|
+
/** @returns {ProductAvailability} */
|
|
1783
|
+
declare function ProductAvailability(): ProductAvailability;
|
|
1784
|
+
type ProductAvailability = {
|
|
1785
|
+
available_sizes?: ProductAvailabilitySize[];
|
|
1786
|
+
deliverable?: boolean;
|
|
1787
|
+
is_valid?: boolean;
|
|
1788
|
+
other_store_quantity?: number;
|
|
1789
|
+
out_of_stock?: boolean;
|
|
1790
|
+
sizes?: string[];
|
|
1791
|
+
};
|
|
1792
|
+
/** @returns {ProductAvailabilitySize} */
|
|
1793
|
+
declare function ProductAvailabilitySize(): ProductAvailabilitySize;
|
|
1794
|
+
type ProductAvailabilitySize = {
|
|
1795
|
+
display?: string;
|
|
1796
|
+
is_available?: boolean;
|
|
1797
|
+
value?: string;
|
|
1798
|
+
};
|
|
1799
|
+
/** @returns {ProductImage} */
|
|
1800
|
+
declare function ProductImage(): ProductImage;
|
|
1801
|
+
type ProductImage = {
|
|
1802
|
+
aspect_ratio?: string;
|
|
1803
|
+
secure_url?: string;
|
|
1804
|
+
url?: string;
|
|
1805
|
+
};
|
|
1806
|
+
/** @returns {ProductPrice} */
|
|
1807
|
+
declare function ProductPrice(): ProductPrice;
|
|
1808
|
+
type ProductPrice = {
|
|
1809
|
+
add_on?: number;
|
|
1810
|
+
currency_code?: string;
|
|
1811
|
+
currency_symbol?: string;
|
|
1812
|
+
effective?: number;
|
|
1813
|
+
marked?: number;
|
|
1814
|
+
selling?: number;
|
|
1815
|
+
};
|
|
1816
|
+
/** @returns {ProductPriceInfo} */
|
|
1817
|
+
declare function ProductPriceInfo(): ProductPriceInfo;
|
|
1818
|
+
type ProductPriceInfo = {
|
|
1819
|
+
base?: ProductPrice;
|
|
1820
|
+
converted?: ProductPrice;
|
|
1821
|
+
};
|
|
1822
|
+
/** @returns {PromiseFormatted} */
|
|
1823
|
+
declare function PromiseFormatted(): PromiseFormatted;
|
|
1824
|
+
type PromiseFormatted = {
|
|
1825
|
+
max?: string;
|
|
1826
|
+
min?: string;
|
|
1827
|
+
};
|
|
1828
|
+
/** @returns {PromiseTimestamp} */
|
|
1829
|
+
declare function PromiseTimestamp(): PromiseTimestamp;
|
|
1830
|
+
type PromiseTimestamp = {
|
|
1831
|
+
max?: number;
|
|
1832
|
+
min?: number;
|
|
1833
|
+
};
|
|
1834
|
+
/** @returns {PromoMeta} */
|
|
1835
|
+
declare function PromoMeta(): PromoMeta;
|
|
1836
|
+
type PromoMeta = {
|
|
1837
|
+
message?: string;
|
|
1838
|
+
};
|
|
1839
|
+
/** @returns {PromotionOffer} */
|
|
1840
|
+
declare function PromotionOffer(): PromotionOffer;
|
|
1841
|
+
type PromotionOffer = {
|
|
1842
|
+
/**
|
|
1843
|
+
* - Buy rules of promotions
|
|
1844
|
+
*/
|
|
1845
|
+
buy_rules?: any;
|
|
1846
|
+
/**
|
|
1847
|
+
* - Offer details including T&C
|
|
1848
|
+
*/
|
|
1849
|
+
description?: string;
|
|
1850
|
+
/**
|
|
1851
|
+
* - Discount rules of promotions
|
|
1852
|
+
*/
|
|
1853
|
+
discount_rules?: any[];
|
|
1854
|
+
/**
|
|
1855
|
+
* - Details of free gift items
|
|
1856
|
+
*/
|
|
1857
|
+
free_gift_items?: FreeGiftItems[];
|
|
1858
|
+
/**
|
|
1859
|
+
* - Promotion id
|
|
1860
|
+
*/
|
|
1861
|
+
id?: string;
|
|
1862
|
+
/**
|
|
1863
|
+
* - Offer title
|
|
1864
|
+
*/
|
|
1865
|
+
offer_text?: string;
|
|
1866
|
+
/**
|
|
1867
|
+
* - Group of promotion belongs to
|
|
1868
|
+
*/
|
|
1869
|
+
promotion_group?: string;
|
|
1870
|
+
/**
|
|
1871
|
+
* - Datetime ISOString for promotion end date
|
|
1872
|
+
*/
|
|
1873
|
+
valid_till?: string;
|
|
1874
|
+
};
|
|
1875
|
+
/** @returns {PromotionOffersResponse} */
|
|
1876
|
+
declare function PromotionOffersResponse(): PromotionOffersResponse;
|
|
1877
|
+
type PromotionOffersResponse = {
|
|
1878
|
+
available_promotions?: PromotionOffer[];
|
|
1879
|
+
};
|
|
1880
|
+
/** @returns {RawBreakup} */
|
|
1881
|
+
declare function RawBreakup(): RawBreakup;
|
|
1882
|
+
type RawBreakup = {
|
|
1883
|
+
cod_charge?: number;
|
|
1884
|
+
convenience_fee?: number;
|
|
1885
|
+
coupon?: number;
|
|
1886
|
+
delivery_charge?: number;
|
|
1887
|
+
discount?: number;
|
|
1888
|
+
fynd_cash?: number;
|
|
1889
|
+
gift_card?: number;
|
|
1890
|
+
gst_charges?: number;
|
|
1891
|
+
mrp_total?: number;
|
|
1892
|
+
subtotal?: number;
|
|
1893
|
+
total?: number;
|
|
1894
|
+
vog?: number;
|
|
1895
|
+
you_saved?: number;
|
|
1896
|
+
};
|
|
1897
|
+
/** @returns {RewardPointRequest} */
|
|
1898
|
+
declare function RewardPointRequest(): RewardPointRequest;
|
|
1899
|
+
type RewardPointRequest = {
|
|
1900
|
+
points: boolean;
|
|
1901
|
+
};
|
|
1902
|
+
/** @returns {SaveAddressResponse} */
|
|
1903
|
+
declare function SaveAddressResponse(): SaveAddressResponse;
|
|
1904
|
+
type SaveAddressResponse = {
|
|
1905
|
+
id?: string;
|
|
1906
|
+
is_default_address?: boolean;
|
|
1907
|
+
success?: boolean;
|
|
1908
|
+
};
|
|
1909
|
+
/** @returns {SelectCartAddressRequest} */
|
|
1910
|
+
declare function SelectCartAddressRequest(): SelectCartAddressRequest;
|
|
1911
|
+
type SelectCartAddressRequest = {
|
|
1912
|
+
billing_address_id?: string;
|
|
1913
|
+
cart_id?: string;
|
|
1914
|
+
id?: string;
|
|
1915
|
+
};
|
|
1916
|
+
/** @returns {SharedCart} */
|
|
1917
|
+
declare function SharedCart(): SharedCart;
|
|
1918
|
+
type SharedCart = {
|
|
1919
|
+
breakup_values?: CartBreakup;
|
|
1920
|
+
buy_now?: boolean;
|
|
1921
|
+
cart_id?: number;
|
|
1922
|
+
checkout_mode?: string;
|
|
1923
|
+
comment?: string;
|
|
1924
|
+
coupon_text?: string;
|
|
1925
|
+
currency?: CartCurrency;
|
|
1926
|
+
delivery_charge_info?: string;
|
|
1927
|
+
delivery_promise?: ShipmentPromise;
|
|
1928
|
+
gstin?: string;
|
|
1929
|
+
id?: string;
|
|
1930
|
+
is_valid?: boolean;
|
|
1931
|
+
items?: CartProductInfo[];
|
|
1932
|
+
last_modified?: string;
|
|
1933
|
+
message?: string;
|
|
1934
|
+
payment_selection_lock?: PaymentSelectionLock;
|
|
1935
|
+
restrict_checkout?: boolean;
|
|
1936
|
+
shared_cart_details?: SharedCartDetails;
|
|
1937
|
+
uid?: string;
|
|
1938
|
+
};
|
|
1939
|
+
/** @returns {SharedCartDetails} */
|
|
1940
|
+
declare function SharedCartDetails(): SharedCartDetails;
|
|
1941
|
+
type SharedCartDetails = {
|
|
1942
|
+
created_on?: string;
|
|
1943
|
+
/**
|
|
1944
|
+
* - Meta data sent while generating share cart link
|
|
1945
|
+
*/
|
|
1946
|
+
meta?: any;
|
|
1947
|
+
/**
|
|
1948
|
+
* - Share link device and other source information
|
|
1949
|
+
*/
|
|
1950
|
+
source?: any;
|
|
1951
|
+
/**
|
|
1952
|
+
* - Short link id
|
|
1953
|
+
*/
|
|
1954
|
+
token?: string;
|
|
1955
|
+
/**
|
|
1956
|
+
* - User details of who generated share link
|
|
1957
|
+
*/
|
|
1958
|
+
user?: any;
|
|
1959
|
+
};
|
|
1960
|
+
/** @returns {SharedCartResponse} */
|
|
1961
|
+
declare function SharedCartResponse(): SharedCartResponse;
|
|
1962
|
+
type SharedCartResponse = {
|
|
1963
|
+
cart?: SharedCart;
|
|
1964
|
+
error?: string;
|
|
1965
|
+
};
|
|
1966
|
+
/** @returns {ShipmentPromise} */
|
|
1967
|
+
declare function ShipmentPromise(): ShipmentPromise;
|
|
1968
|
+
type ShipmentPromise = {
|
|
1969
|
+
formatted?: PromiseFormatted;
|
|
1970
|
+
timestamp?: PromiseTimestamp;
|
|
1971
|
+
};
|
|
1972
|
+
/** @returns {ShipmentResponse} */
|
|
1973
|
+
declare function ShipmentResponse(): ShipmentResponse;
|
|
1974
|
+
type ShipmentResponse = {
|
|
1975
|
+
box_type?: string;
|
|
1976
|
+
dp_id?: string;
|
|
1977
|
+
dp_options?: any;
|
|
1978
|
+
fulfillment_id?: number;
|
|
1979
|
+
fulfillment_type?: string;
|
|
1980
|
+
items?: CartProductInfo[];
|
|
1981
|
+
order_type?: string;
|
|
1982
|
+
promise?: ShipmentPromise;
|
|
1983
|
+
shipment_type?: string;
|
|
1984
|
+
shipments?: number;
|
|
1985
|
+
};
|
|
1986
|
+
/** @returns {StaffCheckout} */
|
|
1987
|
+
declare function StaffCheckout(): StaffCheckout;
|
|
1988
|
+
type StaffCheckout = {
|
|
1989
|
+
_id: string;
|
|
1990
|
+
employee_code?: string;
|
|
1991
|
+
first_name: string;
|
|
1992
|
+
last_name: string;
|
|
1993
|
+
user: string;
|
|
1994
|
+
};
|
|
1995
|
+
/** @returns {StoreInfo} */
|
|
1996
|
+
declare function StoreInfo(): StoreInfo;
|
|
1997
|
+
type StoreInfo = {
|
|
1998
|
+
name?: string;
|
|
1999
|
+
store_code?: string;
|
|
2000
|
+
uid?: number;
|
|
2001
|
+
};
|
|
2002
|
+
/** @returns {Tags} */
|
|
2003
|
+
declare function Tags(): Tags;
|
|
2004
|
+
type Tags = {
|
|
2005
|
+
tags?: any;
|
|
2006
|
+
};
|
|
2007
|
+
/** @returns {UpdateAddressResponse} */
|
|
2008
|
+
declare function UpdateAddressResponse(): UpdateAddressResponse;
|
|
2009
|
+
type UpdateAddressResponse = {
|
|
2010
|
+
id?: string;
|
|
2011
|
+
is_default_address?: boolean;
|
|
2012
|
+
is_updated?: boolean;
|
|
2013
|
+
success?: boolean;
|
|
2014
|
+
};
|
|
2015
|
+
/** @returns {UpdateCartDetailResponse} */
|
|
2016
|
+
declare function UpdateCartDetailResponse(): UpdateCartDetailResponse;
|
|
2017
|
+
type UpdateCartDetailResponse = {
|
|
2018
|
+
cart?: CartDetailResponse;
|
|
2019
|
+
message?: string;
|
|
2020
|
+
/**
|
|
2021
|
+
* - True if all items are added successfully.
|
|
2022
|
+
* False if partially added or not added.
|
|
2023
|
+
*/
|
|
2024
|
+
success?: boolean;
|
|
2025
|
+
};
|
|
2026
|
+
/** @returns {UpdateCartPaymentRequest} */
|
|
2027
|
+
declare function UpdateCartPaymentRequest(): UpdateCartPaymentRequest;
|
|
2028
|
+
type UpdateCartPaymentRequest = {
|
|
2029
|
+
address_id?: string;
|
|
2030
|
+
aggregator_name?: string;
|
|
2031
|
+
id?: string;
|
|
2032
|
+
merchant_code?: string;
|
|
2033
|
+
payment_identifier?: string;
|
|
2034
|
+
payment_mode?: string;
|
|
2035
|
+
};
|
|
2036
|
+
/** @returns {UpdateCartRequest} */
|
|
2037
|
+
declare function UpdateCartRequest(): UpdateCartRequest;
|
|
2038
|
+
type UpdateCartRequest = {
|
|
2039
|
+
items?: UpdateProductCart[];
|
|
2040
|
+
operation: string;
|
|
2041
|
+
};
|
|
2042
|
+
/** @returns {UpdateProductCart} */
|
|
2043
|
+
declare function UpdateProductCart(): UpdateProductCart;
|
|
2044
|
+
type UpdateProductCart = {
|
|
2045
|
+
_custom_json?: any;
|
|
2046
|
+
article_id?: string;
|
|
2047
|
+
extra_meta?: any;
|
|
2048
|
+
identifiers: CartProductIdentifer;
|
|
2049
|
+
item_id?: number;
|
|
2050
|
+
item_index?: number;
|
|
2051
|
+
item_size?: string;
|
|
2052
|
+
meta?: any;
|
|
2053
|
+
parent_item_identifiers?: any;
|
|
2054
|
+
quantity?: number;
|
|
2055
|
+
};
|