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