@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
|
@@ -184,7 +184,7 @@ export = CartPlatformModel;
|
|
|
184
184
|
*/
|
|
185
185
|
/**
|
|
186
186
|
* @typedef Page
|
|
187
|
-
* @property {number} [item_total] - The total number of items
|
|
187
|
+
* @property {number} [item_total] - The total number of all items across all pages.
|
|
188
188
|
* @property {string} [next_id] - The identifier for the next page.
|
|
189
189
|
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
190
190
|
* @property {boolean} [has_next] - Indicates whether there is a next page.
|
|
@@ -944,6 +944,39 @@ export = CartPlatformModel;
|
|
|
944
944
|
* @property {string} [store_code] - A unique code or identifier for the store,
|
|
945
945
|
* often used for internal reference
|
|
946
946
|
*/
|
|
947
|
+
/**
|
|
948
|
+
* @typedef FulfillmentOptionSchema
|
|
949
|
+
* @property {string} [slug] - Unique identifier for the delivery type.
|
|
950
|
+
* @property {string} [description] - Description of the delivery service.
|
|
951
|
+
* @property {boolean} [is_default] - Indicates if this is the default delivery option.
|
|
952
|
+
* @property {string} [id] - Unique ID of the delivery service.
|
|
953
|
+
* @property {string} [type] - Type of fulfillment option.
|
|
954
|
+
* @property {string} [name] - Name of the delivery service.
|
|
955
|
+
*/
|
|
956
|
+
/**
|
|
957
|
+
* @typedef StoreTimingSchema
|
|
958
|
+
* @property {number} [hour] - The hour of the store in 24-hour format (e.g., 9 for 9 AM).
|
|
959
|
+
* @property {number} [minute] - The minute of the store (e.g., 30 for 9:30 AM).
|
|
960
|
+
*/
|
|
961
|
+
/**
|
|
962
|
+
* @typedef StoreHoursSchema
|
|
963
|
+
* @property {string} [weekday] - The day of the week (e.g., "Monday", "Tuesday").
|
|
964
|
+
* @property {StoreTimingSchema} [opening]
|
|
965
|
+
* @property {StoreTimingSchema} [closing]
|
|
966
|
+
* @property {boolean} [open] - Indicates whether the store is open on the
|
|
967
|
+
* specified weekday.
|
|
968
|
+
*/
|
|
969
|
+
/**
|
|
970
|
+
* @typedef PickupStoreDetailSchema
|
|
971
|
+
* @property {number} [store_id] - A unique identifier for the store.
|
|
972
|
+
* @property {string} [name] - The name of the store or pickup location.
|
|
973
|
+
* @property {string} [pincode] - The postal code of the store's location.
|
|
974
|
+
* @property {number} [distance] - The distance between the store and the
|
|
975
|
+
* customer's location.
|
|
976
|
+
* @property {string} [address] - The full address of the store.
|
|
977
|
+
* @property {Object} [store_hours] - The store's operational hours for each day
|
|
978
|
+
* of the week.
|
|
979
|
+
*/
|
|
947
980
|
/**
|
|
948
981
|
* @typedef ProductArticle
|
|
949
982
|
* @property {string} [seller_identifier] - List of identifiers used by sellers
|
|
@@ -975,6 +1008,9 @@ export = CartPlatformModel;
|
|
|
975
1008
|
* @property {Object} [meta] - Meta data of article in cart
|
|
976
1009
|
* @property {string} [size] - Size of the article added in cart
|
|
977
1010
|
* @property {StoreInfo} [store]
|
|
1011
|
+
* @property {FulfillmentOptionSchema} [fulfillment_option]
|
|
1012
|
+
* @property {PickupStoreDetailSchema} [pickup_store_detail]
|
|
1013
|
+
* @property {number} [item_index] - Specify the index of article in cart.
|
|
978
1014
|
* @property {string[]} [tags] - A list of article tags
|
|
979
1015
|
*/
|
|
980
1016
|
/**
|
|
@@ -1380,6 +1416,16 @@ export = CartPlatformModel;
|
|
|
1380
1416
|
* @typedef CartCommonConfig
|
|
1381
1417
|
* @property {DeliveryChargesConfig} [delivery_charges_config]
|
|
1382
1418
|
*/
|
|
1419
|
+
/**
|
|
1420
|
+
* @typedef PlatformAlternatePickupPerson
|
|
1421
|
+
* @property {boolean} [enabled] - Indicates whether an alternate pickup person
|
|
1422
|
+
* is enabled.
|
|
1423
|
+
* @property {string} [name] - Name of the alternate pickup person.
|
|
1424
|
+
* @property {string} [email] - Email address of the alternate pickup person.
|
|
1425
|
+
* @property {string} [phone] - Phone number of the alternate pickup person.
|
|
1426
|
+
* @property {string} [country_phone_code] - Country phone code of the alternate
|
|
1427
|
+
* pickup person (e.g., "+91").
|
|
1428
|
+
*/
|
|
1383
1429
|
/**
|
|
1384
1430
|
* @typedef CartDetailResult
|
|
1385
1431
|
* @property {number} [cart_id] - Unique identifier of the user cart
|
|
@@ -1421,6 +1467,7 @@ export = CartPlatformModel;
|
|
|
1421
1467
|
* @property {string} [pan_no] - Permanent Account Number of the user
|
|
1422
1468
|
* @property {Object} [custom_cart_meta] - Custom meta details added cart
|
|
1423
1469
|
* checkout API payload
|
|
1470
|
+
* @property {PlatformAlternatePickupPerson} [alternate_pickup_person]
|
|
1424
1471
|
* @property {boolean} [free_gift_selection_available] - Determines if the cart
|
|
1425
1472
|
* has available promotion free gift items to choose on its added items
|
|
1426
1473
|
*/
|
|
@@ -1452,6 +1499,10 @@ export = CartPlatformModel;
|
|
|
1452
1499
|
* @property {boolean} [pos] - Filed to determine whether user is making request
|
|
1453
1500
|
* from pos or not
|
|
1454
1501
|
* @property {string} [seller_identifier] - Add items using seller identifier for store os
|
|
1502
|
+
* @property {string} [fulfillment_option_slug] - Specifies the fulfillment
|
|
1503
|
+
* method, indicating whether an order is for home delivery or store pickup
|
|
1504
|
+
* @property {number} [pickup_store_id] - Unique identifier of the pickup store
|
|
1505
|
+
* selected by the user from which user wants to pickup the product.
|
|
1455
1506
|
*/
|
|
1456
1507
|
/**
|
|
1457
1508
|
* @typedef AddCartCreation
|
|
@@ -1498,6 +1549,10 @@ export = CartPlatformModel;
|
|
|
1498
1549
|
* product falls to be updated
|
|
1499
1550
|
* @property {CartProductIdentifer} identifiers
|
|
1500
1551
|
* @property {string} [article_id] - Article id of the product in cart
|
|
1552
|
+
* @property {string} [fulfillment_option_slug] - Specifies the fulfillment
|
|
1553
|
+
* method, indicating whether an order is for home delivery or store pickup
|
|
1554
|
+
* @property {number} [pickup_store_id] - Unique identifier of the pickup store
|
|
1555
|
+
* selected by the user from which user
|
|
1501
1556
|
*/
|
|
1502
1557
|
/**
|
|
1503
1558
|
* @typedef FreeGiftItemCreation
|
|
@@ -1737,10 +1792,16 @@ export = CartPlatformModel;
|
|
|
1737
1792
|
* @typedef CartItemCountResult
|
|
1738
1793
|
* @property {number} [user_cart_items_count] - Item count present in cart
|
|
1739
1794
|
*/
|
|
1795
|
+
/**
|
|
1796
|
+
* @typedef DiscountRules
|
|
1797
|
+
* @property {number} [discounted_price] - Discount will be reflected in the
|
|
1798
|
+
* cart upon adding the product.
|
|
1799
|
+
*/
|
|
1740
1800
|
/**
|
|
1741
1801
|
* @typedef Coupon
|
|
1742
1802
|
* @property {string} [title] - Coupon Title of the coupon applied denotes name
|
|
1743
1803
|
* of the coupon
|
|
1804
|
+
* @property {DiscountRules[]} [rule] - Discount rules of coupons
|
|
1744
1805
|
* @property {number} [max_discount_value] - Maximum discount value of the
|
|
1745
1806
|
* coupon applied to cart
|
|
1746
1807
|
* @property {string} [coupon_code] - Coupon code of the coupon applied on cart
|
|
@@ -1890,6 +1951,7 @@ export = CartPlatformModel;
|
|
|
1890
1951
|
* @property {string} [dp_id] - Delivery partner id of the shipment
|
|
1891
1952
|
* @property {string} [fulfillment_type] - Fulfilment type of shipment
|
|
1892
1953
|
* @property {ShipmentArticle[]} [articles] - List of articles in shipment
|
|
1954
|
+
* @property {FulfillmentOptionSchema} [fulfillment_option]
|
|
1893
1955
|
*/
|
|
1894
1956
|
/**
|
|
1895
1957
|
* @typedef PlatformCartShipmentsResult
|
|
@@ -1932,6 +1994,8 @@ export = CartPlatformModel;
|
|
|
1932
1994
|
* @property {number} [quantity] - Quantity of product in shipment
|
|
1933
1995
|
* @property {string} shipment_type - Shipment delivery type
|
|
1934
1996
|
* @property {string} article_uid - Article unique id for shipment
|
|
1997
|
+
* @property {number} [item_index] - Item index determines the position in the
|
|
1998
|
+
* list where the product should be updated.
|
|
1935
1999
|
*/
|
|
1936
2000
|
/**
|
|
1937
2001
|
* @typedef UpdateCartShipmentCreation
|
|
@@ -1944,6 +2008,7 @@ export = CartPlatformModel;
|
|
|
1944
2008
|
* @property {string} [gstin] - GSTIN number to be added in user cart
|
|
1945
2009
|
* @property {Object} [pick_up_customer_details] - Customer contact details for
|
|
1946
2010
|
* customer pickup at store
|
|
2011
|
+
* @property {PlatformAlternatePickupPerson} [alternate_pickup_person]
|
|
1947
2012
|
* @property {string} [checkout_mode] - Checkout mode of user cart
|
|
1948
2013
|
* @property {Object} [gift_details] - Gift details is open json which can
|
|
1949
2014
|
* include gift message
|
|
@@ -2170,6 +2235,8 @@ export = CartPlatformModel;
|
|
|
2170
2235
|
* mode selected to do the payment
|
|
2171
2236
|
* @property {string} [merchant_code] - Merchant code of the payment mode
|
|
2172
2237
|
* selected to do the payment
|
|
2238
|
+
* @property {string[]} [payment_source_bag_id] - Previous bag IDs for which an
|
|
2239
|
+
* exchange has been performed.
|
|
2173
2240
|
*/
|
|
2174
2241
|
/**
|
|
2175
2242
|
* @typedef PaymentMethod
|
|
@@ -2341,7 +2408,7 @@ export = CartPlatformModel;
|
|
|
2341
2408
|
declare class CartPlatformModel {
|
|
2342
2409
|
}
|
|
2343
2410
|
declare namespace CartPlatformModel {
|
|
2344
|
-
export { CouponDateMeta, Ownership, CouponAuthor, State, PaymentAllowValue, PaymentModes, PriceRange, PostOrder, BulkBundleRestriction, UsesRemaining, UsesRestriction, Restrictions, Validation, CouponAction, CouponSchedule, Rule, DisplayMetaDict, DisplayMeta, Identifier, Validity, RuleDefinition, CouponAdd, Page, CouponsResult, SuccessMessage, OperationErrorResult, CouponUpdate, CouponPartialUpdate, CouponCreateResult, DisplayMeta1, Ownership1, CompareObject, ItemSizeMapping, ItemCriteria, DiscountOffer, DiscountRule, PaymentAllowValue1, PromotionPaymentModes, UserRegistered, PostOrder1, UsesRemaining1, UsesRestriction1, Restrictions1, PromotionSchedule, PromotionAction, PromotionAuthor, Visibility, PromotionDateMeta, PromotionListItem, PromotionsResult, PromotionAdd, PromotionAddResult, PromotionUpdate, PromotionUpdateResult, PromotionPartialUpdate, ActivePromosResult, Charges, DeliveryCharges, CartMetaConfigUpdate, CartMetaConfigAdd, Article, PriceAdjustmentRestrictions, Collection, PriceAdjustmentUpdate, PriceAdjustment, PriceAdjustmentResult, GetPriceAdjustmentResult, PriceAdjustmentAdd, DistributionRule, Distribution, DistributionLogic, CartItem, OpenapiCartDetailsCreation, CouponBreakup, DisplayBreakup, LoyaltyPoints, RawBreakup, CartBreakup, ProductImage, Tags, BaseInfo, ActionQuery, ProductActionParams, ProductActionPage, ProductAction, CategoryInfo, CartProduct, BasePrice, ArticlePriceInfo, StoreInfo, ProductArticle, Ownership2, DiscountRulesApp, AppliedFreeArticles, BuyRules, AppliedPromotion, PromiseFormatted, PromiseISOFormat, PromiseTimestamp, ShipmentPromise, CouponDetails, ProductPrice, ProductPriceInfo, ProductMaxQuantityInfo, CartProductIdentifer, ProductAvailabilitySize, ProductAvailability, PromoMeta, CartProductInfo, OpenapiCartDetailsResult, OpenApiErrorResult, ShippingAddress, OpenApiCartServiceabilityCreation, OpenApiCartServiceabilityResult, OpenApiFiles, CartItemMeta, MultiTenderPaymentMeta, MultiTenderPaymentMethod, OpenApiOrderItem, OpenApiPlatformCheckoutReq, OpenApiCheckoutResult, AbandonedCart, AbandonedCartResult, PaymentSelectionLock, CartCurrency, CartDetailCoupon, ChargesThreshold, DeliveryChargesConfig, CartCommonConfig, CartDetailResult, AddProductCart, AddCartCreation, AddCartDetailResult, CartItemInfo, UpdateProductCart, FreeGiftItemCreation, UpdateCartCreation, UpdateCartDetailResult, OverrideCartItemPromo, OverrideCartItem, OverrideCheckoutReq, OverrideCheckoutResult, GetShareCartLinkCreation, GetShareCartLinkResult, SharedCartDetails, SharedCart, SharedCartResult, CartList, MultiCartResult, UpdateUserCartMapping, UserInfo, UserCartMappingResult, PlatformAddCartDetails, PlatformUpdateCartDetails, DeleteCartDetails, DeleteCartDetailResult, CartItemCountResult, Coupon, PageCoupon, GetCouponResult, ApplyCouponDetails, GeoLocation, PlatformAddress, ValidationConfig, PlatformGetAddressesDetails, SaveAddressDetails, UpdateAddressDetails, DeleteAddressResult, PlatformSelectCartAddress, ShipmentArticle, PlatformShipmentDetails, PlatformCartShipmentsResult, UpdateCartShipmentItem, UpdateCartShipmentCreation, PlatformCartMetaCreation, CartMetaDetails, CartMetaMissingDetails, StaffCheckout, CustomerDetails, Files, CartCheckoutCustomMeta, OrderTag, PlatformCartCheckoutDetailCreation, CheckCart, CartCheckoutDetails, CartCheckoutResult, CartDeliveryModesDetails, PickupStoreDetail, StoreDetails, CartPaymentUpdate, CouponValidity, PaymentCouponValidate, PaymentMeta, PaymentMethod, PlatformCartCheckoutDetailV2Creation, UpdateCartPaymentRequestV2, PriceMinMax, ItemPriceDetails, ArticlePriceDetails, FreeGiftItems, PromotionOffer, PromotionOffersDetails, PromotionPaymentOffer, PromotionPaymentOffersDetails, ValidationError, OrderingSource };
|
|
2411
|
+
export { CouponDateMeta, Ownership, CouponAuthor, State, PaymentAllowValue, PaymentModes, PriceRange, PostOrder, BulkBundleRestriction, UsesRemaining, UsesRestriction, Restrictions, Validation, CouponAction, CouponSchedule, Rule, DisplayMetaDict, DisplayMeta, Identifier, Validity, RuleDefinition, CouponAdd, Page, CouponsResult, SuccessMessage, OperationErrorResult, CouponUpdate, CouponPartialUpdate, CouponCreateResult, DisplayMeta1, Ownership1, CompareObject, ItemSizeMapping, ItemCriteria, DiscountOffer, DiscountRule, PaymentAllowValue1, PromotionPaymentModes, UserRegistered, PostOrder1, UsesRemaining1, UsesRestriction1, Restrictions1, PromotionSchedule, PromotionAction, PromotionAuthor, Visibility, PromotionDateMeta, PromotionListItem, PromotionsResult, PromotionAdd, PromotionAddResult, PromotionUpdate, PromotionUpdateResult, PromotionPartialUpdate, ActivePromosResult, Charges, DeliveryCharges, CartMetaConfigUpdate, CartMetaConfigAdd, Article, PriceAdjustmentRestrictions, Collection, PriceAdjustmentUpdate, PriceAdjustment, PriceAdjustmentResult, GetPriceAdjustmentResult, PriceAdjustmentAdd, DistributionRule, Distribution, DistributionLogic, CartItem, OpenapiCartDetailsCreation, CouponBreakup, DisplayBreakup, LoyaltyPoints, RawBreakup, CartBreakup, ProductImage, Tags, BaseInfo, ActionQuery, ProductActionParams, ProductActionPage, ProductAction, CategoryInfo, CartProduct, BasePrice, ArticlePriceInfo, StoreInfo, FulfillmentOptionSchema, StoreTimingSchema, StoreHoursSchema, PickupStoreDetailSchema, ProductArticle, Ownership2, DiscountRulesApp, AppliedFreeArticles, BuyRules, AppliedPromotion, PromiseFormatted, PromiseISOFormat, PromiseTimestamp, ShipmentPromise, CouponDetails, ProductPrice, ProductPriceInfo, ProductMaxQuantityInfo, CartProductIdentifer, ProductAvailabilitySize, ProductAvailability, PromoMeta, CartProductInfo, OpenapiCartDetailsResult, OpenApiErrorResult, ShippingAddress, OpenApiCartServiceabilityCreation, OpenApiCartServiceabilityResult, OpenApiFiles, CartItemMeta, MultiTenderPaymentMeta, MultiTenderPaymentMethod, OpenApiOrderItem, OpenApiPlatformCheckoutReq, OpenApiCheckoutResult, AbandonedCart, AbandonedCartResult, PaymentSelectionLock, CartCurrency, CartDetailCoupon, ChargesThreshold, DeliveryChargesConfig, CartCommonConfig, PlatformAlternatePickupPerson, CartDetailResult, AddProductCart, AddCartCreation, AddCartDetailResult, CartItemInfo, UpdateProductCart, FreeGiftItemCreation, UpdateCartCreation, UpdateCartDetailResult, OverrideCartItemPromo, OverrideCartItem, OverrideCheckoutReq, OverrideCheckoutResult, GetShareCartLinkCreation, GetShareCartLinkResult, SharedCartDetails, SharedCart, SharedCartResult, CartList, MultiCartResult, UpdateUserCartMapping, UserInfo, UserCartMappingResult, PlatformAddCartDetails, PlatformUpdateCartDetails, DeleteCartDetails, DeleteCartDetailResult, CartItemCountResult, DiscountRules, Coupon, PageCoupon, GetCouponResult, ApplyCouponDetails, GeoLocation, PlatformAddress, ValidationConfig, PlatformGetAddressesDetails, SaveAddressDetails, UpdateAddressDetails, DeleteAddressResult, PlatformSelectCartAddress, ShipmentArticle, PlatformShipmentDetails, PlatformCartShipmentsResult, UpdateCartShipmentItem, UpdateCartShipmentCreation, PlatformCartMetaCreation, CartMetaDetails, CartMetaMissingDetails, StaffCheckout, CustomerDetails, Files, CartCheckoutCustomMeta, OrderTag, PlatformCartCheckoutDetailCreation, CheckCart, CartCheckoutDetails, CartCheckoutResult, CartDeliveryModesDetails, PickupStoreDetail, StoreDetails, CartPaymentUpdate, CouponValidity, PaymentCouponValidate, PaymentMeta, PaymentMethod, PlatformCartCheckoutDetailV2Creation, UpdateCartPaymentRequestV2, PriceMinMax, ItemPriceDetails, ArticlePriceDetails, FreeGiftItems, PromotionOffer, PromotionOffersDetails, PromotionPaymentOffer, PromotionPaymentOffersDetails, ValidationError, OrderingSource };
|
|
2345
2412
|
}
|
|
2346
2413
|
/** @returns {CouponDateMeta} */
|
|
2347
2414
|
declare function CouponDateMeta(): CouponDateMeta;
|
|
@@ -2789,7 +2856,7 @@ type CouponAdd = {
|
|
|
2789
2856
|
declare function Page(): Page;
|
|
2790
2857
|
type Page = {
|
|
2791
2858
|
/**
|
|
2792
|
-
* - The total number of items
|
|
2859
|
+
* - The total number of all items across all pages.
|
|
2793
2860
|
*/
|
|
2794
2861
|
item_total?: number;
|
|
2795
2862
|
/**
|
|
@@ -4647,6 +4714,91 @@ type StoreInfo = {
|
|
|
4647
4714
|
*/
|
|
4648
4715
|
store_code?: string;
|
|
4649
4716
|
};
|
|
4717
|
+
/** @returns {FulfillmentOptionSchema} */
|
|
4718
|
+
declare function FulfillmentOptionSchema(): FulfillmentOptionSchema;
|
|
4719
|
+
type FulfillmentOptionSchema = {
|
|
4720
|
+
/**
|
|
4721
|
+
* - Unique identifier for the delivery type.
|
|
4722
|
+
*/
|
|
4723
|
+
slug?: string;
|
|
4724
|
+
/**
|
|
4725
|
+
* - Description of the delivery service.
|
|
4726
|
+
*/
|
|
4727
|
+
description?: string;
|
|
4728
|
+
/**
|
|
4729
|
+
* - Indicates if this is the default delivery option.
|
|
4730
|
+
*/
|
|
4731
|
+
is_default?: boolean;
|
|
4732
|
+
/**
|
|
4733
|
+
* - Unique ID of the delivery service.
|
|
4734
|
+
*/
|
|
4735
|
+
id?: string;
|
|
4736
|
+
/**
|
|
4737
|
+
* - Type of fulfillment option.
|
|
4738
|
+
*/
|
|
4739
|
+
type?: string;
|
|
4740
|
+
/**
|
|
4741
|
+
* - Name of the delivery service.
|
|
4742
|
+
*/
|
|
4743
|
+
name?: string;
|
|
4744
|
+
};
|
|
4745
|
+
/** @returns {StoreTimingSchema} */
|
|
4746
|
+
declare function StoreTimingSchema(): StoreTimingSchema;
|
|
4747
|
+
type StoreTimingSchema = {
|
|
4748
|
+
/**
|
|
4749
|
+
* - The hour of the store in 24-hour format (e.g., 9 for 9 AM).
|
|
4750
|
+
*/
|
|
4751
|
+
hour?: number;
|
|
4752
|
+
/**
|
|
4753
|
+
* - The minute of the store (e.g., 30 for 9:30 AM).
|
|
4754
|
+
*/
|
|
4755
|
+
minute?: number;
|
|
4756
|
+
};
|
|
4757
|
+
/** @returns {StoreHoursSchema} */
|
|
4758
|
+
declare function StoreHoursSchema(): StoreHoursSchema;
|
|
4759
|
+
type StoreHoursSchema = {
|
|
4760
|
+
/**
|
|
4761
|
+
* - The day of the week (e.g., "Monday", "Tuesday").
|
|
4762
|
+
*/
|
|
4763
|
+
weekday?: string;
|
|
4764
|
+
opening?: StoreTimingSchema;
|
|
4765
|
+
closing?: StoreTimingSchema;
|
|
4766
|
+
/**
|
|
4767
|
+
* - Indicates whether the store is open on the
|
|
4768
|
+
* specified weekday.
|
|
4769
|
+
*/
|
|
4770
|
+
open?: boolean;
|
|
4771
|
+
};
|
|
4772
|
+
/** @returns {PickupStoreDetailSchema} */
|
|
4773
|
+
declare function PickupStoreDetailSchema(): PickupStoreDetailSchema;
|
|
4774
|
+
type PickupStoreDetailSchema = {
|
|
4775
|
+
/**
|
|
4776
|
+
* - A unique identifier for the store.
|
|
4777
|
+
*/
|
|
4778
|
+
store_id?: number;
|
|
4779
|
+
/**
|
|
4780
|
+
* - The name of the store or pickup location.
|
|
4781
|
+
*/
|
|
4782
|
+
name?: string;
|
|
4783
|
+
/**
|
|
4784
|
+
* - The postal code of the store's location.
|
|
4785
|
+
*/
|
|
4786
|
+
pincode?: string;
|
|
4787
|
+
/**
|
|
4788
|
+
* - The distance between the store and the
|
|
4789
|
+
* customer's location.
|
|
4790
|
+
*/
|
|
4791
|
+
distance?: number;
|
|
4792
|
+
/**
|
|
4793
|
+
* - The full address of the store.
|
|
4794
|
+
*/
|
|
4795
|
+
address?: string;
|
|
4796
|
+
/**
|
|
4797
|
+
* - The store's operational hours for each day
|
|
4798
|
+
* of the week.
|
|
4799
|
+
*/
|
|
4800
|
+
store_hours?: any;
|
|
4801
|
+
};
|
|
4650
4802
|
/** @returns {ProductArticle} */
|
|
4651
4803
|
declare function ProductArticle(): ProductArticle;
|
|
4652
4804
|
type ProductArticle = {
|
|
@@ -4727,6 +4879,12 @@ type ProductArticle = {
|
|
|
4727
4879
|
*/
|
|
4728
4880
|
size?: string;
|
|
4729
4881
|
store?: StoreInfo;
|
|
4882
|
+
fulfillment_option?: FulfillmentOptionSchema;
|
|
4883
|
+
pickup_store_detail?: PickupStoreDetailSchema;
|
|
4884
|
+
/**
|
|
4885
|
+
* - Specify the index of article in cart.
|
|
4886
|
+
*/
|
|
4887
|
+
item_index?: number;
|
|
4730
4888
|
/**
|
|
4731
4889
|
* - A list of article tags
|
|
4732
4890
|
*/
|
|
@@ -5797,6 +5955,32 @@ declare function CartCommonConfig(): CartCommonConfig;
|
|
|
5797
5955
|
type CartCommonConfig = {
|
|
5798
5956
|
delivery_charges_config?: DeliveryChargesConfig;
|
|
5799
5957
|
};
|
|
5958
|
+
/** @returns {PlatformAlternatePickupPerson} */
|
|
5959
|
+
declare function PlatformAlternatePickupPerson(): PlatformAlternatePickupPerson;
|
|
5960
|
+
type PlatformAlternatePickupPerson = {
|
|
5961
|
+
/**
|
|
5962
|
+
* - Indicates whether an alternate pickup person
|
|
5963
|
+
* is enabled.
|
|
5964
|
+
*/
|
|
5965
|
+
enabled?: boolean;
|
|
5966
|
+
/**
|
|
5967
|
+
* - Name of the alternate pickup person.
|
|
5968
|
+
*/
|
|
5969
|
+
name?: string;
|
|
5970
|
+
/**
|
|
5971
|
+
* - Email address of the alternate pickup person.
|
|
5972
|
+
*/
|
|
5973
|
+
email?: string;
|
|
5974
|
+
/**
|
|
5975
|
+
* - Phone number of the alternate pickup person.
|
|
5976
|
+
*/
|
|
5977
|
+
phone?: string;
|
|
5978
|
+
/**
|
|
5979
|
+
* - Country phone code of the alternate
|
|
5980
|
+
* pickup person (e.g., "+91").
|
|
5981
|
+
*/
|
|
5982
|
+
country_phone_code?: string;
|
|
5983
|
+
};
|
|
5800
5984
|
/** @returns {CartDetailResult} */
|
|
5801
5985
|
declare function CartDetailResult(): CartDetailResult;
|
|
5802
5986
|
type CartDetailResult = {
|
|
@@ -5902,6 +6086,7 @@ type CartDetailResult = {
|
|
|
5902
6086
|
* checkout API payload
|
|
5903
6087
|
*/
|
|
5904
6088
|
custom_cart_meta?: any;
|
|
6089
|
+
alternate_pickup_person?: PlatformAlternatePickupPerson;
|
|
5905
6090
|
/**
|
|
5906
6091
|
* - Determines if the cart
|
|
5907
6092
|
* has available promotion free gift items to choose on its added items
|
|
@@ -5985,6 +6170,16 @@ type AddProductCart = {
|
|
|
5985
6170
|
* - Add items using seller identifier for store os
|
|
5986
6171
|
*/
|
|
5987
6172
|
seller_identifier?: string;
|
|
6173
|
+
/**
|
|
6174
|
+
* - Specifies the fulfillment
|
|
6175
|
+
* method, indicating whether an order is for home delivery or store pickup
|
|
6176
|
+
*/
|
|
6177
|
+
fulfillment_option_slug?: string;
|
|
6178
|
+
/**
|
|
6179
|
+
* - Unique identifier of the pickup store
|
|
6180
|
+
* selected by the user from which user wants to pickup the product.
|
|
6181
|
+
*/
|
|
6182
|
+
pickup_store_id?: number;
|
|
5988
6183
|
};
|
|
5989
6184
|
/** @returns {AddCartCreation} */
|
|
5990
6185
|
declare function AddCartCreation(): AddCartCreation;
|
|
@@ -6101,6 +6296,16 @@ type UpdateProductCart = {
|
|
|
6101
6296
|
* - Article id of the product in cart
|
|
6102
6297
|
*/
|
|
6103
6298
|
article_id?: string;
|
|
6299
|
+
/**
|
|
6300
|
+
* - Specifies the fulfillment
|
|
6301
|
+
* method, indicating whether an order is for home delivery or store pickup
|
|
6302
|
+
*/
|
|
6303
|
+
fulfillment_option_slug?: string;
|
|
6304
|
+
/**
|
|
6305
|
+
* - Unique identifier of the pickup store
|
|
6306
|
+
* selected by the user from which user
|
|
6307
|
+
*/
|
|
6308
|
+
pickup_store_id?: number;
|
|
6104
6309
|
};
|
|
6105
6310
|
/** @returns {FreeGiftItemCreation} */
|
|
6106
6311
|
declare function FreeGiftItemCreation(): FreeGiftItemCreation;
|
|
@@ -6701,6 +6906,15 @@ type CartItemCountResult = {
|
|
|
6701
6906
|
*/
|
|
6702
6907
|
user_cart_items_count?: number;
|
|
6703
6908
|
};
|
|
6909
|
+
/** @returns {DiscountRules} */
|
|
6910
|
+
declare function DiscountRules(): DiscountRules;
|
|
6911
|
+
type DiscountRules = {
|
|
6912
|
+
/**
|
|
6913
|
+
* - Discount will be reflected in the
|
|
6914
|
+
* cart upon adding the product.
|
|
6915
|
+
*/
|
|
6916
|
+
discounted_price?: number;
|
|
6917
|
+
};
|
|
6704
6918
|
/** @returns {Coupon} */
|
|
6705
6919
|
declare function Coupon(): Coupon;
|
|
6706
6920
|
type Coupon = {
|
|
@@ -6709,6 +6923,10 @@ type Coupon = {
|
|
|
6709
6923
|
* of the coupon
|
|
6710
6924
|
*/
|
|
6711
6925
|
title?: string;
|
|
6926
|
+
/**
|
|
6927
|
+
* - Discount rules of coupons
|
|
6928
|
+
*/
|
|
6929
|
+
rule?: DiscountRules[];
|
|
6712
6930
|
/**
|
|
6713
6931
|
* - Maximum discount value of the
|
|
6714
6932
|
* coupon applied to cart
|
|
@@ -7117,6 +7335,7 @@ type PlatformShipmentDetails = {
|
|
|
7117
7335
|
* - List of articles in shipment
|
|
7118
7336
|
*/
|
|
7119
7337
|
articles?: ShipmentArticle[];
|
|
7338
|
+
fulfillment_option?: FulfillmentOptionSchema;
|
|
7120
7339
|
};
|
|
7121
7340
|
/** @returns {PlatformCartShipmentsResult} */
|
|
7122
7341
|
declare function PlatformCartShipmentsResult(): PlatformCartShipmentsResult;
|
|
@@ -7230,6 +7449,11 @@ type UpdateCartShipmentItem = {
|
|
|
7230
7449
|
* - Article unique id for shipment
|
|
7231
7450
|
*/
|
|
7232
7451
|
article_uid: string;
|
|
7452
|
+
/**
|
|
7453
|
+
* - Item index determines the position in the
|
|
7454
|
+
* list where the product should be updated.
|
|
7455
|
+
*/
|
|
7456
|
+
item_index?: number;
|
|
7233
7457
|
};
|
|
7234
7458
|
/** @returns {UpdateCartShipmentCreation} */
|
|
7235
7459
|
declare function UpdateCartShipmentCreation(): UpdateCartShipmentCreation;
|
|
@@ -7253,6 +7477,7 @@ type PlatformCartMetaCreation = {
|
|
|
7253
7477
|
* customer pickup at store
|
|
7254
7478
|
*/
|
|
7255
7479
|
pick_up_customer_details?: any;
|
|
7480
|
+
alternate_pickup_person?: PlatformAlternatePickupPerson;
|
|
7256
7481
|
/**
|
|
7257
7482
|
* - Checkout mode of user cart
|
|
7258
7483
|
*/
|
|
@@ -7794,6 +8019,11 @@ type PaymentMeta = {
|
|
|
7794
8019
|
* selected to do the payment
|
|
7795
8020
|
*/
|
|
7796
8021
|
merchant_code?: string;
|
|
8022
|
+
/**
|
|
8023
|
+
* - Previous bag IDs for which an
|
|
8024
|
+
* exchange has been performed.
|
|
8025
|
+
*/
|
|
8026
|
+
payment_source_bag_id?: string[];
|
|
7797
8027
|
};
|
|
7798
8028
|
/** @returns {PaymentMethod} */
|
|
7799
8029
|
declare function PaymentMethod(): PaymentMethod;
|