@gofynd/fdk-client-javascript 3.3.5 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +30 -30
- package/sdk/application/Cart/CartApplicationClient.js +30 -30
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +36 -33
- package/sdk/application/Catalog/CatalogApplicationClient.js +54 -35
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/Common/CommonApplicationClient.js +2 -2
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +3 -3
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +16 -16
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +16 -16
- package/sdk/application/Content/ContentApplicationClient.d.ts +24 -24
- package/sdk/application/Content/ContentApplicationClient.js +24 -24
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +3 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +2 -2
- package/sdk/application/Finance/FinanceApplicationClient.js +2 -2
- package/sdk/application/Lead/LeadApplicationClient.d.ts +5 -5
- package/sdk/application/Lead/LeadApplicationClient.js +5 -5
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +19 -9
- package/sdk/application/Logistic/LogisticApplicationClient.js +53 -9
- package/sdk/application/Order/OrderApplicationClient.d.ts +12 -12
- package/sdk/application/Order/OrderApplicationClient.js +12 -12
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +46 -46
- package/sdk/application/Payment/PaymentApplicationClient.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +7 -7
- package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
- package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
- package/sdk/application/Share/ShareApplicationClient.js +7 -7
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +4 -4
- package/sdk/application/Theme/ThemeApplicationClient.js +4 -4
- package/sdk/application/User/UserApplicationClient.d.ts +47 -47
- package/sdk/application/User/UserApplicationClient.js +47 -47
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +1 -1
- package/sdk/application/Webhook/WebhookApplicationClient.js +1 -1
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +6 -6
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +6 -6
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +7 -7
- package/sdk/partner/Lead/LeadPartnerClient.js +7 -7
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +25 -25
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +25 -25
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +6 -6
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +3 -3
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +24 -24
- package/sdk/partner/Theme/ThemePartnerClient.js +24 -24
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +10 -10
- package/sdk/partner/Webhook/WebhookPartnerClient.js +10 -10
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +7 -2
- package/sdk/partner/Webhook/WebhookPartnerModel.js +3 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +3 -3
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +2 -2
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +1 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +1 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +1 -1
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +5 -5
- package/sdk/platform/Billing/BillingPlatformClient.js +5 -5
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +62 -62
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +62 -62
- package/sdk/platform/Cart/CartPlatformModel.d.ts +233 -3
- package/sdk/platform/Cart/CartPlatformModel.js +147 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +66 -66
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +66 -66
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +81 -79
- package/sdk/platform/Catalog/CatalogPlatformClient.js +93 -80
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +89 -5
- package/sdk/platform/Catalog/CatalogPlatformModel.js +57 -3
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +7 -2
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +4 -2
- package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -2
- package/sdk/platform/Common/CommonPlatformClient.js +2 -2
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +67 -67
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +67 -67
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +1 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +1 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +2 -2
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +14 -14
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +14 -14
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +2 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +1 -1
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +32 -32
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +32 -32
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +11 -11
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +11 -11
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +19 -3
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +16 -1
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +107 -107
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +107 -107
- package/sdk/platform/Content/ContentPlatformClient.d.ts +40 -40
- package/sdk/platform/Content/ContentPlatformClient.js +40 -40
- package/sdk/platform/Content/ContentPlatformModel.d.ts +2 -2
- package/sdk/platform/Content/ContentPlatformModel.js +1 -1
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +11 -11
- package/sdk/platform/Discount/DiscountPlatformClient.js +11 -11
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformModel.js +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +6 -6
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +10 -10
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +10 -10
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +9 -9
- package/sdk/platform/Lead/LeadPlatformClient.js +9 -9
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.js +1 -1
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +5 -5
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -5
- package/sdk/platform/Order/OrderPlatformClient.d.ts +58 -58
- package/sdk/platform/Order/OrderPlatformClient.js +58 -58
- package/sdk/platform/Order/OrderPlatformModel.d.ts +29 -10
- package/sdk/platform/Order/OrderPlatformModel.js +28 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +2 -2
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +51 -51
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +51 -51
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +10 -10
- package/sdk/platform/Payment/PaymentPlatformClient.js +10 -10
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2 -2
- package/sdk/platform/Payment/PaymentPlatformModel.js +1 -1
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +12 -12
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.js +1 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +162 -39
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +840 -73
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +139 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +125 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +30 -30
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +36 -30
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +936 -62
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +591 -33
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +12 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +5 -0
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +5 -5
- package/sdk/platform/Share/SharePlatformApplicationClient.js +5 -5
- package/sdk/platform/Share/SharePlatformModel.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformModel.js +1 -1
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +22 -22
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +22 -22
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +4 -4
- package/sdk/platform/Theme/ThemePlatformClient.js +4 -4
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +70 -34
- package/sdk/platform/User/UserPlatformApplicationClient.js +285 -34
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +38 -1
- package/sdk/platform/User/UserPlatformApplicationValidator.js +42 -0
- package/sdk/platform/User/UserPlatformModel.d.ts +430 -10
- package/sdk/platform/User/UserPlatformModel.js +276 -7
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +9 -9
- package/sdk/platform/Webhook/WebhookPlatformClient.js +9 -9
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +12 -2
- package/sdk/platform/Webhook/WebhookPlatformModel.js +5 -1
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +1 -1
- package/sdk/public/Catalog/CatalogPublicClient.js +1 -1
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.js +2 -2
- package/sdk/public/Content/ContentPublicClient.d.ts +14 -14
- package/sdk/public/Content/ContentPublicClient.js +14 -14
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +1 -1
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +5 -5
- package/sdk/public/Webhook/WebhookPublicClient.js +5 -5
|
@@ -207,7 +207,7 @@ const Joi = require("joi");
|
|
|
207
207
|
|
|
208
208
|
/**
|
|
209
209
|
* @typedef Page
|
|
210
|
-
* @property {number} [item_total] - The total number of items
|
|
210
|
+
* @property {number} [item_total] - The total number of all items across all pages.
|
|
211
211
|
* @property {string} [next_id] - The identifier for the next page.
|
|
212
212
|
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
213
213
|
* @property {boolean} [has_next] - Indicates whether there is a next page.
|
|
@@ -1035,6 +1035,43 @@ const Joi = require("joi");
|
|
|
1035
1035
|
* often used for internal reference
|
|
1036
1036
|
*/
|
|
1037
1037
|
|
|
1038
|
+
/**
|
|
1039
|
+
* @typedef FulfillmentOptionSchema
|
|
1040
|
+
* @property {string} [slug] - Unique identifier for the delivery type.
|
|
1041
|
+
* @property {string} [description] - Description of the delivery service.
|
|
1042
|
+
* @property {boolean} [is_default] - Indicates if this is the default delivery option.
|
|
1043
|
+
* @property {string} [id] - Unique ID of the delivery service.
|
|
1044
|
+
* @property {string} [type] - Type of fulfillment option.
|
|
1045
|
+
* @property {string} [name] - Name of the delivery service.
|
|
1046
|
+
*/
|
|
1047
|
+
|
|
1048
|
+
/**
|
|
1049
|
+
* @typedef StoreTimingSchema
|
|
1050
|
+
* @property {number} [hour] - The hour of the store in 24-hour format (e.g., 9 for 9 AM).
|
|
1051
|
+
* @property {number} [minute] - The minute of the store (e.g., 30 for 9:30 AM).
|
|
1052
|
+
*/
|
|
1053
|
+
|
|
1054
|
+
/**
|
|
1055
|
+
* @typedef StoreHoursSchema
|
|
1056
|
+
* @property {string} [weekday] - The day of the week (e.g., "Monday", "Tuesday").
|
|
1057
|
+
* @property {StoreTimingSchema} [opening]
|
|
1058
|
+
* @property {StoreTimingSchema} [closing]
|
|
1059
|
+
* @property {boolean} [open] - Indicates whether the store is open on the
|
|
1060
|
+
* specified weekday.
|
|
1061
|
+
*/
|
|
1062
|
+
|
|
1063
|
+
/**
|
|
1064
|
+
* @typedef PickupStoreDetailSchema
|
|
1065
|
+
* @property {number} [store_id] - A unique identifier for the store.
|
|
1066
|
+
* @property {string} [name] - The name of the store or pickup location.
|
|
1067
|
+
* @property {string} [pincode] - The postal code of the store's location.
|
|
1068
|
+
* @property {number} [distance] - The distance between the store and the
|
|
1069
|
+
* customer's location.
|
|
1070
|
+
* @property {string} [address] - The full address of the store.
|
|
1071
|
+
* @property {Object} [store_hours] - The store's operational hours for each day
|
|
1072
|
+
* of the week.
|
|
1073
|
+
*/
|
|
1074
|
+
|
|
1038
1075
|
/**
|
|
1039
1076
|
* @typedef ProductArticle
|
|
1040
1077
|
* @property {string} [seller_identifier] - List of identifiers used by sellers
|
|
@@ -1066,6 +1103,9 @@ const Joi = require("joi");
|
|
|
1066
1103
|
* @property {Object} [meta] - Meta data of article in cart
|
|
1067
1104
|
* @property {string} [size] - Size of the article added in cart
|
|
1068
1105
|
* @property {StoreInfo} [store]
|
|
1106
|
+
* @property {FulfillmentOptionSchema} [fulfillment_option]
|
|
1107
|
+
* @property {PickupStoreDetailSchema} [pickup_store_detail]
|
|
1108
|
+
* @property {number} [item_index] - Specify the index of article in cart.
|
|
1069
1109
|
* @property {string[]} [tags] - A list of article tags
|
|
1070
1110
|
*/
|
|
1071
1111
|
|
|
@@ -1510,6 +1550,17 @@ const Joi = require("joi");
|
|
|
1510
1550
|
* @property {DeliveryChargesConfig} [delivery_charges_config]
|
|
1511
1551
|
*/
|
|
1512
1552
|
|
|
1553
|
+
/**
|
|
1554
|
+
* @typedef PlatformAlternatePickupPerson
|
|
1555
|
+
* @property {boolean} [enabled] - Indicates whether an alternate pickup person
|
|
1556
|
+
* is enabled.
|
|
1557
|
+
* @property {string} [name] - Name of the alternate pickup person.
|
|
1558
|
+
* @property {string} [email] - Email address of the alternate pickup person.
|
|
1559
|
+
* @property {string} [phone] - Phone number of the alternate pickup person.
|
|
1560
|
+
* @property {string} [country_phone_code] - Country phone code of the alternate
|
|
1561
|
+
* pickup person (e.g., "+91").
|
|
1562
|
+
*/
|
|
1563
|
+
|
|
1513
1564
|
/**
|
|
1514
1565
|
* @typedef CartDetailResult
|
|
1515
1566
|
* @property {number} [cart_id] - Unique identifier of the user cart
|
|
@@ -1551,6 +1602,7 @@ const Joi = require("joi");
|
|
|
1551
1602
|
* @property {string} [pan_no] - Permanent Account Number of the user
|
|
1552
1603
|
* @property {Object} [custom_cart_meta] - Custom meta details added cart
|
|
1553
1604
|
* checkout API payload
|
|
1605
|
+
* @property {PlatformAlternatePickupPerson} [alternate_pickup_person]
|
|
1554
1606
|
* @property {boolean} [free_gift_selection_available] - Determines if the cart
|
|
1555
1607
|
* has available promotion free gift items to choose on its added items
|
|
1556
1608
|
*/
|
|
@@ -1583,6 +1635,10 @@ const Joi = require("joi");
|
|
|
1583
1635
|
* @property {boolean} [pos] - Filed to determine whether user is making request
|
|
1584
1636
|
* from pos or not
|
|
1585
1637
|
* @property {string} [seller_identifier] - Add items using seller identifier for store os
|
|
1638
|
+
* @property {string} [fulfillment_option_slug] - Specifies the fulfillment
|
|
1639
|
+
* method, indicating whether an order is for home delivery or store pickup
|
|
1640
|
+
* @property {number} [pickup_store_id] - Unique identifier of the pickup store
|
|
1641
|
+
* selected by the user from which user wants to pickup the product.
|
|
1586
1642
|
*/
|
|
1587
1643
|
|
|
1588
1644
|
/**
|
|
@@ -1633,6 +1689,10 @@ const Joi = require("joi");
|
|
|
1633
1689
|
* product falls to be updated
|
|
1634
1690
|
* @property {CartProductIdentifer} identifiers
|
|
1635
1691
|
* @property {string} [article_id] - Article id of the product in cart
|
|
1692
|
+
* @property {string} [fulfillment_option_slug] - Specifies the fulfillment
|
|
1693
|
+
* method, indicating whether an order is for home delivery or store pickup
|
|
1694
|
+
* @property {number} [pickup_store_id] - Unique identifier of the pickup store
|
|
1695
|
+
* selected by the user from which user
|
|
1636
1696
|
*/
|
|
1637
1697
|
|
|
1638
1698
|
/**
|
|
@@ -1895,10 +1955,17 @@ const Joi = require("joi");
|
|
|
1895
1955
|
* @property {number} [user_cart_items_count] - Item count present in cart
|
|
1896
1956
|
*/
|
|
1897
1957
|
|
|
1958
|
+
/**
|
|
1959
|
+
* @typedef DiscountRules
|
|
1960
|
+
* @property {number} [discounted_price] - Discount will be reflected in the
|
|
1961
|
+
* cart upon adding the product.
|
|
1962
|
+
*/
|
|
1963
|
+
|
|
1898
1964
|
/**
|
|
1899
1965
|
* @typedef Coupon
|
|
1900
1966
|
* @property {string} [title] - Coupon Title of the coupon applied denotes name
|
|
1901
1967
|
* of the coupon
|
|
1968
|
+
* @property {DiscountRules[]} [rule] - Discount rules of coupons
|
|
1902
1969
|
* @property {number} [max_discount_value] - Maximum discount value of the
|
|
1903
1970
|
* coupon applied to cart
|
|
1904
1971
|
* @property {string} [coupon_code] - Coupon code of the coupon applied on cart
|
|
@@ -2061,6 +2128,7 @@ const Joi = require("joi");
|
|
|
2061
2128
|
* @property {string} [dp_id] - Delivery partner id of the shipment
|
|
2062
2129
|
* @property {string} [fulfillment_type] - Fulfilment type of shipment
|
|
2063
2130
|
* @property {ShipmentArticle[]} [articles] - List of articles in shipment
|
|
2131
|
+
* @property {FulfillmentOptionSchema} [fulfillment_option]
|
|
2064
2132
|
*/
|
|
2065
2133
|
|
|
2066
2134
|
/**
|
|
@@ -2105,6 +2173,8 @@ const Joi = require("joi");
|
|
|
2105
2173
|
* @property {number} [quantity] - Quantity of product in shipment
|
|
2106
2174
|
* @property {string} shipment_type - Shipment delivery type
|
|
2107
2175
|
* @property {string} article_uid - Article unique id for shipment
|
|
2176
|
+
* @property {number} [item_index] - Item index determines the position in the
|
|
2177
|
+
* list where the product should be updated.
|
|
2108
2178
|
*/
|
|
2109
2179
|
|
|
2110
2180
|
/**
|
|
@@ -2119,6 +2189,7 @@ const Joi = require("joi");
|
|
|
2119
2189
|
* @property {string} [gstin] - GSTIN number to be added in user cart
|
|
2120
2190
|
* @property {Object} [pick_up_customer_details] - Customer contact details for
|
|
2121
2191
|
* customer pickup at store
|
|
2192
|
+
* @property {PlatformAlternatePickupPerson} [alternate_pickup_person]
|
|
2122
2193
|
* @property {string} [checkout_mode] - Checkout mode of user cart
|
|
2123
2194
|
* @property {Object} [gift_details] - Gift details is open json which can
|
|
2124
2195
|
* include gift message
|
|
@@ -2363,6 +2434,8 @@ const Joi = require("joi");
|
|
|
2363
2434
|
* mode selected to do the payment
|
|
2364
2435
|
* @property {string} [merchant_code] - Merchant code of the payment mode
|
|
2365
2436
|
* selected to do the payment
|
|
2437
|
+
* @property {string[]} [payment_source_bag_id] - Previous bag IDs for which an
|
|
2438
|
+
* exchange has been performed.
|
|
2366
2439
|
*/
|
|
2367
2440
|
|
|
2368
2441
|
/**
|
|
@@ -3636,6 +3709,48 @@ class CartPlatformModel {
|
|
|
3636
3709
|
});
|
|
3637
3710
|
}
|
|
3638
3711
|
|
|
3712
|
+
/** @returns {FulfillmentOptionSchema} */
|
|
3713
|
+
static FulfillmentOptionSchema() {
|
|
3714
|
+
return Joi.object({
|
|
3715
|
+
slug: Joi.string().allow(""),
|
|
3716
|
+
description: Joi.string().allow(""),
|
|
3717
|
+
is_default: Joi.boolean(),
|
|
3718
|
+
id: Joi.string().allow(""),
|
|
3719
|
+
type: Joi.string().allow(""),
|
|
3720
|
+
name: Joi.string().allow(""),
|
|
3721
|
+
});
|
|
3722
|
+
}
|
|
3723
|
+
|
|
3724
|
+
/** @returns {StoreTimingSchema} */
|
|
3725
|
+
static StoreTimingSchema() {
|
|
3726
|
+
return Joi.object({
|
|
3727
|
+
hour: Joi.number(),
|
|
3728
|
+
minute: Joi.number(),
|
|
3729
|
+
});
|
|
3730
|
+
}
|
|
3731
|
+
|
|
3732
|
+
/** @returns {StoreHoursSchema} */
|
|
3733
|
+
static StoreHoursSchema() {
|
|
3734
|
+
return Joi.object({
|
|
3735
|
+
weekday: Joi.string().allow(""),
|
|
3736
|
+
opening: CartPlatformModel.StoreTimingSchema(),
|
|
3737
|
+
closing: CartPlatformModel.StoreTimingSchema(),
|
|
3738
|
+
open: Joi.boolean(),
|
|
3739
|
+
});
|
|
3740
|
+
}
|
|
3741
|
+
|
|
3742
|
+
/** @returns {PickupStoreDetailSchema} */
|
|
3743
|
+
static PickupStoreDetailSchema() {
|
|
3744
|
+
return Joi.object({
|
|
3745
|
+
store_id: Joi.number(),
|
|
3746
|
+
name: Joi.string().allow(""),
|
|
3747
|
+
pincode: Joi.string().allow(""),
|
|
3748
|
+
distance: Joi.number(),
|
|
3749
|
+
address: Joi.string().allow(""),
|
|
3750
|
+
store_hours: Joi.any(),
|
|
3751
|
+
});
|
|
3752
|
+
}
|
|
3753
|
+
|
|
3639
3754
|
/** @returns {ProductArticle} */
|
|
3640
3755
|
static ProductArticle() {
|
|
3641
3756
|
return Joi.object({
|
|
@@ -3658,6 +3773,9 @@ class CartPlatformModel {
|
|
|
3658
3773
|
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
3659
3774
|
size: Joi.string().allow(""),
|
|
3660
3775
|
store: CartPlatformModel.StoreInfo(),
|
|
3776
|
+
fulfillment_option: CartPlatformModel.FulfillmentOptionSchema(),
|
|
3777
|
+
pickup_store_detail: CartPlatformModel.PickupStoreDetailSchema(),
|
|
3778
|
+
item_index: Joi.number(),
|
|
3661
3779
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
3662
3780
|
});
|
|
3663
3781
|
}
|
|
@@ -4138,6 +4256,17 @@ class CartPlatformModel {
|
|
|
4138
4256
|
});
|
|
4139
4257
|
}
|
|
4140
4258
|
|
|
4259
|
+
/** @returns {PlatformAlternatePickupPerson} */
|
|
4260
|
+
static PlatformAlternatePickupPerson() {
|
|
4261
|
+
return Joi.object({
|
|
4262
|
+
enabled: Joi.boolean(),
|
|
4263
|
+
name: Joi.string().allow(""),
|
|
4264
|
+
email: Joi.string().allow(""),
|
|
4265
|
+
phone: Joi.string().allow(""),
|
|
4266
|
+
country_phone_code: Joi.string().allow(""),
|
|
4267
|
+
});
|
|
4268
|
+
}
|
|
4269
|
+
|
|
4141
4270
|
/** @returns {CartDetailResult} */
|
|
4142
4271
|
static CartDetailResult() {
|
|
4143
4272
|
return Joi.object({
|
|
@@ -4170,6 +4299,7 @@ class CartPlatformModel {
|
|
|
4170
4299
|
),
|
|
4171
4300
|
pan_no: Joi.string().allow(""),
|
|
4172
4301
|
custom_cart_meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
4302
|
+
alternate_pickup_person: CartPlatformModel.PlatformAlternatePickupPerson(),
|
|
4173
4303
|
free_gift_selection_available: Joi.boolean(),
|
|
4174
4304
|
});
|
|
4175
4305
|
}
|
|
@@ -4195,6 +4325,8 @@ class CartPlatformModel {
|
|
|
4195
4325
|
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
4196
4326
|
pos: Joi.boolean(),
|
|
4197
4327
|
seller_identifier: Joi.string().allow(""),
|
|
4328
|
+
fulfillment_option_slug: Joi.string().allow(""),
|
|
4329
|
+
pickup_store_id: Joi.number(),
|
|
4198
4330
|
});
|
|
4199
4331
|
}
|
|
4200
4332
|
|
|
@@ -4243,6 +4375,8 @@ class CartPlatformModel {
|
|
|
4243
4375
|
item_index: Joi.number(),
|
|
4244
4376
|
identifiers: CartPlatformModel.CartProductIdentifer().required(),
|
|
4245
4377
|
article_id: Joi.string().allow(""),
|
|
4378
|
+
fulfillment_option_slug: Joi.string().allow(""),
|
|
4379
|
+
pickup_store_id: Joi.number(),
|
|
4246
4380
|
});
|
|
4247
4381
|
}
|
|
4248
4382
|
|
|
@@ -4513,10 +4647,18 @@ class CartPlatformModel {
|
|
|
4513
4647
|
});
|
|
4514
4648
|
}
|
|
4515
4649
|
|
|
4650
|
+
/** @returns {DiscountRules} */
|
|
4651
|
+
static DiscountRules() {
|
|
4652
|
+
return Joi.object({
|
|
4653
|
+
discounted_price: Joi.number(),
|
|
4654
|
+
});
|
|
4655
|
+
}
|
|
4656
|
+
|
|
4516
4657
|
/** @returns {Coupon} */
|
|
4517
4658
|
static Coupon() {
|
|
4518
4659
|
return Joi.object({
|
|
4519
4660
|
title: Joi.string().allow(""),
|
|
4661
|
+
rule: Joi.array().items(CartPlatformModel.DiscountRules()),
|
|
4520
4662
|
max_discount_value: Joi.number(),
|
|
4521
4663
|
coupon_code: Joi.string().allow(""),
|
|
4522
4664
|
is_applied: Joi.boolean(),
|
|
@@ -4681,6 +4823,7 @@ class CartPlatformModel {
|
|
|
4681
4823
|
dp_id: Joi.string().allow("").allow(null),
|
|
4682
4824
|
fulfillment_type: Joi.string().allow(""),
|
|
4683
4825
|
articles: Joi.array().items(CartPlatformModel.ShipmentArticle()),
|
|
4826
|
+
fulfillment_option: CartPlatformModel.FulfillmentOptionSchema(),
|
|
4684
4827
|
});
|
|
4685
4828
|
}
|
|
4686
4829
|
|
|
@@ -4722,6 +4865,7 @@ class CartPlatformModel {
|
|
|
4722
4865
|
quantity: Joi.number(),
|
|
4723
4866
|
shipment_type: Joi.string().allow("").required(),
|
|
4724
4867
|
article_uid: Joi.string().allow("").required(),
|
|
4868
|
+
item_index: Joi.number(),
|
|
4725
4869
|
});
|
|
4726
4870
|
}
|
|
4727
4871
|
|
|
@@ -4739,6 +4883,7 @@ class CartPlatformModel {
|
|
|
4739
4883
|
return Joi.object({
|
|
4740
4884
|
gstin: Joi.string().allow(""),
|
|
4741
4885
|
pick_up_customer_details: Joi.object().pattern(/\S/, Joi.any()),
|
|
4886
|
+
alternate_pickup_person: CartPlatformModel.PlatformAlternatePickupPerson(),
|
|
4742
4887
|
checkout_mode: Joi.string().allow(""),
|
|
4743
4888
|
gift_details: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
|
|
4744
4889
|
pan_no: Joi.string().allow(""),
|
|
@@ -4991,6 +5136,7 @@ class CartPlatformModel {
|
|
|
4991
5136
|
type: Joi.string().allow(""),
|
|
4992
5137
|
payment_identifier: Joi.string().allow("").allow(null),
|
|
4993
5138
|
merchant_code: Joi.string().allow(""),
|
|
5139
|
+
payment_source_bag_id: Joi.array().items(Joi.string().allow("")),
|
|
4994
5140
|
});
|
|
4995
5141
|
}
|
|
4996
5142
|
|