@gofynd/fdk-client-javascript 3.26.0 → 3.28.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.
Files changed (42) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +4 -2
  4. package/sdk/application/Configuration/ConfigurationApplicationClient.js +5 -0
  5. package/sdk/application/Payment/PaymentApplicationClient.d.ts +11 -1
  6. package/sdk/application/Payment/PaymentApplicationClient.js +50 -0
  7. package/sdk/platform/Cart/CartPlatformModel.d.ts +61 -1
  8. package/sdk/platform/Cart/CartPlatformModel.js +40 -0
  9. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +10 -0
  10. package/sdk/platform/Catalog/CatalogPlatformClient.js +75 -0
  11. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +203 -1
  12. package/sdk/platform/Catalog/CatalogPlatformModel.js +103 -0
  13. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +5 -1
  14. package/sdk/platform/Catalog/CatalogPlatformValidator.js +7 -0
  15. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +27 -0
  16. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +52 -0
  17. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +20 -0
  18. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +41 -0
  19. package/sdk/platform/Lead/LeadPlatformModel.d.ts +30 -1
  20. package/sdk/platform/Lead/LeadPlatformModel.js +19 -0
  21. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +22 -0
  22. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +163 -0
  23. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +27 -1
  24. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +26 -0
  25. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +106 -1
  26. package/sdk/platform/Payment/PaymentPlatformModel.js +79 -0
  27. package/sdk/platform/PlatformApplicationClient.d.ts +0 -2
  28. package/sdk/platform/PlatformApplicationClient.js +0 -4
  29. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +14 -0
  30. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +83 -0
  31. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +10 -1
  32. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +12 -0
  33. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +121 -1
  34. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +112 -0
  35. package/sdk/platform/index.d.ts +0 -1
  36. package/sdk/platform/index.js +0 -2
  37. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +0 -44
  38. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +0 -263
  39. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +0 -42
  40. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +0 -45
  41. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +0 -136
  42. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +0 -95
package/README.md CHANGED
@@ -234,7 +234,7 @@ console.log("Active Theme: ", response.information.name);
234
234
  The above code will log the curl command in the console
235
235
 
236
236
  ```bash
237
- curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 3.26.0' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
237
+ curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 3.28.0' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
238
238
  Active Theme: Emerge
239
239
  ```
240
240
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gofynd/fdk-client-javascript",
3
- "version": "3.26.0",
3
+ "version": "3.28.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -39,7 +39,7 @@ declare class Configuration {
39
39
  * @summary: List staff members
40
40
  * @description: List all staff members of the sales channel. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/configuration/getAppStaffList/).
41
41
  */
42
- getAppStaffList({ pageNo, pageSize, orderIncent, orderingStore, user, userName, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<AppStaffListResponseSchema>;
42
+ getAppStaffList({ pageNo, pageSize, orderIncent, orderingStore, user, userName, appPermissions, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<AppStaffListResponseSchema>;
43
43
  /**
44
44
  * @param {Object} arg - Arg object.
45
45
  * @param {number} [arg.pageSize] - The number of items to retrieve in each page.
@@ -50,16 +50,18 @@ declare class Configuration {
50
50
  * @param {string} [arg.user] - ID of the staff. Helps in retrieving the
51
51
  * details of a particular staff member.
52
52
  * @param {string} [arg.userName] - Username of the member.
53
+ * @param {string} [arg.appPermissions] - App permissions.
53
54
  * @returns {Paginator<AppStaffListResponseSchema>}
54
55
  * @summary: List staff members
55
56
  * @description: List all staff members of the sales channel.
56
57
  */
57
- getAppStaffListPaginator({ pageSize, orderIncent, orderingStore, user, userName, }?: {
58
+ getAppStaffListPaginator({ pageSize, orderIncent, orderingStore, user, userName, appPermissions, }?: {
58
59
  pageSize?: number;
59
60
  orderIncent?: boolean;
60
61
  orderingStore?: number;
61
62
  user?: string;
62
63
  userName?: string;
64
+ appPermissions?: string;
63
65
  }): Paginator<AppStaffListResponseSchema>;
64
66
  /**
65
67
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -102,6 +102,7 @@ class Configuration {
102
102
  orderingStore,
103
103
  user,
104
104
  userName,
105
+ appPermissions,
105
106
  requestHeaders,
106
107
  } = { requestHeaders: {} },
107
108
  { responseHeaders } = { responseHeaders: false }
@@ -113,6 +114,7 @@ class Configuration {
113
114
  query_params["ordering_store"] = orderingStore;
114
115
  query_params["user"] = user;
115
116
  query_params["user_name"] = userName;
117
+ query_params["app_permissions"] = appPermissions;
116
118
 
117
119
  const xHeaders = {};
118
120
 
@@ -147,6 +149,7 @@ class Configuration {
147
149
  * @param {string} [arg.user] - ID of the staff. Helps in retrieving the
148
150
  * details of a particular staff member.
149
151
  * @param {string} [arg.userName] - Username of the member.
152
+ * @param {string} [arg.appPermissions] - App permissions.
150
153
  * @returns {Paginator<AppStaffListResponseSchema>}
151
154
  * @summary: List staff members
152
155
  * @description: List all staff members of the sales channel.
@@ -157,6 +160,7 @@ class Configuration {
157
160
  orderingStore,
158
161
  user,
159
162
  userName,
163
+ appPermissions,
160
164
  } = {}) {
161
165
  const paginator = new Paginator();
162
166
  const callback = async () => {
@@ -170,6 +174,7 @@ class Configuration {
170
174
  orderingStore: orderingStore,
171
175
  user: user,
172
176
  userName: userName,
177
+ appPermissions: appPermissions,
173
178
  });
174
179
  paginator.setPaginator({
175
180
  hasNext: data.page.has_next ? true : false,
@@ -27,6 +27,7 @@ declare class Payment {
27
27
  getActiveUserCards: string;
28
28
  getAggregatorsConfig: string;
29
29
  getOrderBeneficiariesDetail: string;
30
+ getOrderTransactions: string;
30
31
  getPaymentLink: string;
31
32
  getPaymentModeRoutes: string;
32
33
  getPaymentModeRoutesPaymentLink: string;
@@ -271,6 +272,15 @@ declare class Payment {
271
272
  * @description: Get beneficiary details like bank name , ifsc code , branch name associated with a specific order for refund processing. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/payment/getOrderBeneficiariesDetail/).
272
273
  */
273
274
  getOrderBeneficiariesDetail({ orderId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<OrderBeneficiaryFetchDetails>;
275
+ /**
276
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
277
+ * @param {import("../ApplicationAPIClient").Options} - Options
278
+ * @returns {Promise<OrderTransactionList>} - Success response
279
+ * @name getOrderTransactions
280
+ * @summary: List all transactions for an order
281
+ * @description: Returns all payment transactions for the given order ID, ordered by creation timestamp ascending. Each entry includes merchant transaction ID, payment mode name, logo, amount, latest status, and created_on. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/payment/getOrderTransactions/).
282
+ */
283
+ getOrderTransactions({ orderId, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<OrderTransactionList>;
274
284
  /**
275
285
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
276
286
  * @param {import("../ApplicationAPIClient").Options} - Options
@@ -306,7 +316,7 @@ declare class Payment {
306
316
  * @summary: POS payment modes
307
317
  * @description: Get available payment methods on the payment page for POS, specifying the aggregator for each option, such as 'CARD powered by Juspay' and 'QR powered by Razorpay'. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/payment/getPosPaymentModeRoutes/).
308
318
  */
309
- getPosPaymentModeRoutes({ amount, cartId, pincode, orderType, checkoutMode, refresh, cardReference, fulfillmentOption, userDetails, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<PaymentModeRouteDetails>;
319
+ getPosPaymentModeRoutes({ amount, cartId, pincode, orderType, checkoutMode, refresh, cardReference, fulfillmentOption, userDetails, displaySplit, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<PaymentModeRouteDetails>;
310
320
  /**
311
321
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
312
322
  * @param {import("../ApplicationAPIClient").Options} - Options
@@ -52,6 +52,8 @@ class Payment {
52
52
  "/service/application/payment/v1.0/config/aggregators/key",
53
53
  getOrderBeneficiariesDetail:
54
54
  "/service/application/payment/v1.0/refund/order/beneficiaries",
55
+ getOrderTransactions:
56
+ "/service/application/payment/v1.0/orders/{order_id}/transactions",
55
57
  getPaymentLink: "/service/application/payment/v1.0/create-payment-link/",
56
58
  getPaymentModeRoutes: "/service/application/payment/v1.0/payment/options",
57
59
  getPaymentModeRoutesPaymentLink:
@@ -1026,6 +1028,52 @@ class Payment {
1026
1028
  return response;
1027
1029
  }
1028
1030
 
1031
+ /**
1032
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1033
+ * @param {import("../ApplicationAPIClient").Options} - Options
1034
+ * @returns {Promise<OrderTransactionList>} - Success response
1035
+ * @name getOrderTransactions
1036
+ * @summary: List all transactions for an order
1037
+ * @description: Returns all payment transactions for the given order ID, ordered by creation timestamp ascending. Each entry includes merchant transaction ID, payment mode name, logo, amount, latest status, and created_on. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/payment/getOrderTransactions/).
1038
+ */
1039
+ async getOrderTransactions(
1040
+ { orderId, requestHeaders } = { requestHeaders: {} },
1041
+ { responseHeaders } = { responseHeaders: false }
1042
+ ) {
1043
+ const errors = validateRequiredParams(arguments[0], ["orderId"]);
1044
+ if (errors.length > 0) {
1045
+ const error = new FDKClientValidationError({
1046
+ message: "Missing required field",
1047
+ details: errors,
1048
+ });
1049
+ return Promise.reject(new FDKClientValidationError(error));
1050
+ }
1051
+
1052
+ const query_params = {};
1053
+
1054
+ const xHeaders = {};
1055
+
1056
+ const response = await ApplicationAPIClient.execute(
1057
+ this._conf,
1058
+ "get",
1059
+ constructUrl({
1060
+ url: this._urls["getOrderTransactions"],
1061
+ params: { orderId },
1062
+ }),
1063
+ query_params,
1064
+ undefined,
1065
+ { ...xHeaders, ...requestHeaders },
1066
+ { responseHeaders }
1067
+ );
1068
+
1069
+ let responseData = response;
1070
+ if (responseHeaders) {
1071
+ responseData = response[0];
1072
+ }
1073
+
1074
+ return response;
1075
+ }
1076
+
1029
1077
  /**
1030
1078
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1031
1079
  * @param {import("../ApplicationAPIClient").Options} - Options
@@ -1182,6 +1230,7 @@ class Payment {
1182
1230
  cardReference,
1183
1231
  fulfillmentOption,
1184
1232
  userDetails,
1233
+ displaySplit,
1185
1234
  requestHeaders,
1186
1235
  } = { requestHeaders: {} },
1187
1236
  { responseHeaders } = { responseHeaders: false }
@@ -1196,6 +1245,7 @@ class Payment {
1196
1245
  query_params["order_type"] = orderType;
1197
1246
  query_params["fulfillment_option"] = fulfillmentOption;
1198
1247
  query_params["user_details"] = userDetails;
1248
+ query_params["display_split"] = displaySplit;
1199
1249
 
1200
1250
  const xHeaders = {};
1201
1251
 
@@ -3,6 +3,9 @@ export = CartPlatformModel;
3
3
  * @typedef RedeemLoyaltyPoints
4
4
  * @property {boolean} redeem_points - Marks if engage points are to be redeemed
5
5
  * for the given cart.
6
+ * @property {Object} [meta] - Free-form metadata forwarded to the loyalty
7
+ * engine. Any field can be passed (e.g. points, redeem_rule_id). Engage reads
8
+ * from this dict when processing redemption.
6
9
  */
7
10
  /**
8
11
  * @typedef CouponDateMeta
@@ -945,6 +948,9 @@ export = CartPlatformModel;
945
948
  * @property {string} [title] - Unique title for loyalty program applicable.
946
949
  * @property {number} [discount_amount] - Engage discount amount applied on the
947
950
  * cart as payment mode
951
+ * @property {Object} [meta] - Free-form metadata returned by the loyalty engine
952
+ * in its response. Structure varies; may include rule details, campaign info,
953
+ * or any additional fields Engage sends back.
948
954
  */
949
955
  /**
950
956
  * @typedef RawBreakup
@@ -1608,12 +1614,17 @@ export = CartPlatformModel;
1608
1614
  * @property {boolean} [buy_now] - Buy now flag for the cart which denotes user
1609
1615
  * is doing fast checkout for the cart using buy now
1610
1616
  * @property {string} [gstin] - GSTIN added in user cart
1617
+ * @property {ShipToGstDetails} [ship_to_gst_details]
1611
1618
  * @property {AppliedPromotion[]} [applied_promo_details] - List of applied
1612
1619
  * promotions data to cart which includes promotion id, promotion name, offer
1613
1620
  * text, description, buy rules, discount rules and promotion type
1614
1621
  * @property {string} [pan_no] - Permanent Account Number of the user
1615
1622
  * @property {Object} [custom_cart_meta] - Custom meta details added cart
1616
1623
  * checkout API payload
1624
+ * @property {Object} [loyalty_meta] - Free-form metadata stored against the
1625
+ * loyalty redemption for this cart. Contains fields passed via the
1626
+ * applyLoyaltyPoints meta input (e.g. points, redeem_rule_id) and is
1627
+ * forwarded to the loyalty engine on each cart calculation.
1617
1628
  * @property {PlatformAlternatePickupPerson} [alternate_pickup_person]
1618
1629
  * @property {boolean} [free_gift_selection_available] - Determines if the cart
1619
1630
  * has available promotion free gift items to choose on its added items
@@ -1840,6 +1851,7 @@ export = CartPlatformModel;
1840
1851
  * @property {boolean} [buy_now] - Buy now flag of user cart
1841
1852
  * @property {number} [cart_id] - Cart id of user cart for generating cart sharing token
1842
1853
  * @property {string} [gstin] - GSTIN added in user cart
1854
+ * @property {ShipToGstDetails} [ship_to_gst_details]
1843
1855
  * @property {Object} [custom_cart_meta] - Custom cart meta of user cart added
1844
1856
  * via update cart meta API
1845
1857
  */
@@ -1909,6 +1921,7 @@ export = CartPlatformModel;
1909
1921
  * @property {boolean} [buy_now] - Buy now flag for the cart which denotes user
1910
1922
  * is doing fast checkout for the cart using buy now
1911
1923
  * @property {string} [gstin] - GSTIN added in user cart
1924
+ * @property {ShipToGstDetails} [ship_to_gst_details]
1912
1925
  * @property {Object} [custom_cart_meta] - Custom meta details added cart
1913
1926
  * checkout API payload
1914
1927
  * @property {AppliedPromotion[]} [applied_promo_details] - List of applied
@@ -2155,6 +2168,7 @@ export = CartPlatformModel;
2155
2168
  * @property {string} [last_modified] - Last modified timestamp of cart
2156
2169
  * @property {boolean} [buy_now] - Buy now flag of user cart
2157
2170
  * @property {string} [gstin] - GSTIN number added in cart
2171
+ * @property {ShipToGstDetails} [ship_to_gst_details]
2158
2172
  * @property {AppliedPromotion[]} [applied_promo_details] - List of applied
2159
2173
  * promotions data to cart which includes promotion id, promotion name, offer
2160
2174
  * text, description, buy rules, discount rules and promotion type
@@ -2178,9 +2192,16 @@ export = CartPlatformModel;
2178
2192
  * includes shipment data like shipment items, shipment promise, Shipment
2179
2193
  * type, shipment order type, shipment dp options etc
2180
2194
  */
2195
+ /**
2196
+ * @typedef ShipToGstDetails
2197
+ * @property {string} [gstin] - Ship-to GSTIN for bill-to ship-to e-way bill generation.
2198
+ * @property {string} [trade_name] - Ship-to trade name for bill-to ship-to
2199
+ * e-way bill generation.
2200
+ */
2181
2201
  /**
2182
2202
  * @typedef PlatformCartMetaCreation
2183
2203
  * @property {string} [gstin] - GSTIN number to be added in user cart
2204
+ * @property {ShipToGstDetails} [ship_to_gst_details]
2184
2205
  * @property {Object} [pick_up_customer_details] - Customer contact details for
2185
2206
  * customer pickup at store
2186
2207
  * @property {PlatformAlternatePickupPerson} [alternate_pickup_person]
@@ -2309,6 +2330,7 @@ export = CartPlatformModel;
2309
2330
  * @property {number} [cart_id] - Cart id of the user cart for which the order placed
2310
2331
  * @property {Object[]} [store_emps] - Store employees data
2311
2332
  * @property {string} [gstin] - GSTIN number added in cart
2333
+ * @property {ShipToGstDetails} [ship_to_gst_details]
2312
2334
  * @property {boolean} [cod_available] - Whether Cash On Delivery available
2313
2335
  * @property {number} [delivery_charges] - Delivery charges of the order placed
2314
2336
  * via checkout API
@@ -2856,7 +2878,7 @@ export = CartPlatformModel;
2856
2878
  declare class CartPlatformModel {
2857
2879
  }
2858
2880
  declare namespace CartPlatformModel {
2859
- export { RedeemLoyaltyPoints, 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, BuyRuleItemCriteria, DiscountItemCriteria, 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, CurrencyValue, ChargesAmount, ArticleCharges, 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, OverrideCheckoutData, OverrideCheckoutResult, GetShareCartLinkCreation, GetShareCartLinkResult, SharedCartDetails, SharedCart, SharedCartResult, CartList, MultiCartResult, UpdateUserCartMapping, UserInfo, UserCartMappingResult, PlatformAddCartDetails, PlatformUpdateCartDetails, UpdateCartBreakup, 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, CartCheckoutDetailsData, CartCheckoutDetails, CartCheckoutResult, CartDeliveryModesDetails, PickupStoreDetail, StoreDetails, CartPaymentUpdate, CouponValidity, PaymentCouponValidate, PaymentMeta, PaymentMethod, PlatformCartCheckoutDetailV2Creation, UpdateCartPaymentRequestV2, PriceMinMax, ItemPriceDetails, ArticlePriceDetails, FreeGiftItems, DiscountOfferRule, PromotionOffer, PromotionOffersDetails, PromotionPaymentOffer, PromotionPaymentOffersDetails, ValidationError, OfferUser, OfferItemCriteria, DiscountRuleOffer, OfferDiscountRule, OfferUsesRemaining, OfferUsesRestriction, OfferRestrictionFulfillmentOptions, OfferRestrictions, OfferDisplayMeta, OfferCouponConfiguration, OfferOwnership, OfferSchema, OfferPartialUpdate, OfferAuthor, OfferDateMeta, OfferSchedule, OfferListItem, OfferListResult };
2881
+ export { RedeemLoyaltyPoints, 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, BuyRuleItemCriteria, DiscountItemCriteria, 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, CurrencyValue, ChargesAmount, ArticleCharges, 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, OverrideCheckoutData, OverrideCheckoutResult, GetShareCartLinkCreation, GetShareCartLinkResult, SharedCartDetails, SharedCart, SharedCartResult, CartList, MultiCartResult, UpdateUserCartMapping, UserInfo, UserCartMappingResult, PlatformAddCartDetails, PlatformUpdateCartDetails, UpdateCartBreakup, DeleteCartDetails, DeleteCartDetailResult, CartItemCountResult, DiscountRules, Coupon, PageCoupon, GetCouponResult, ApplyCouponDetails, GeoLocation, PlatformAddress, ValidationConfig, PlatformGetAddressesDetails, SaveAddressDetails, UpdateAddressDetails, DeleteAddressResult, PlatformSelectCartAddress, ShipmentArticle, PlatformShipmentDetails, PlatformCartShipmentsResult, UpdateCartShipmentItem, UpdateCartShipmentCreation, ShipToGstDetails, PlatformCartMetaCreation, CartMetaDetails, CartMetaMissingDetails, StaffCheckout, CustomerDetails, Files, CartCheckoutCustomMeta, OrderTag, PlatformCartCheckoutDetailCreation, CheckCart, CartCheckoutDetailsData, CartCheckoutDetails, CartCheckoutResult, CartDeliveryModesDetails, PickupStoreDetail, StoreDetails, CartPaymentUpdate, CouponValidity, PaymentCouponValidate, PaymentMeta, PaymentMethod, PlatformCartCheckoutDetailV2Creation, UpdateCartPaymentRequestV2, PriceMinMax, ItemPriceDetails, ArticlePriceDetails, FreeGiftItems, DiscountOfferRule, PromotionOffer, PromotionOffersDetails, PromotionPaymentOffer, PromotionPaymentOffersDetails, ValidationError, OfferUser, OfferItemCriteria, DiscountRuleOffer, OfferDiscountRule, OfferUsesRemaining, OfferUsesRestriction, OfferRestrictionFulfillmentOptions, OfferRestrictions, OfferDisplayMeta, OfferCouponConfiguration, OfferOwnership, OfferSchema, OfferPartialUpdate, OfferAuthor, OfferDateMeta, OfferSchedule, OfferListItem, OfferListResult };
2860
2882
  }
2861
2883
  /** @returns {RedeemLoyaltyPoints} */
2862
2884
  declare function RedeemLoyaltyPoints(): RedeemLoyaltyPoints;
@@ -2866,6 +2888,12 @@ type RedeemLoyaltyPoints = {
2866
2888
  * for the given cart.
2867
2889
  */
2868
2890
  redeem_points: boolean;
2891
+ /**
2892
+ * - Free-form metadata forwarded to the loyalty
2893
+ * engine. Any field can be passed (e.g. points, redeem_rule_id). Engage reads
2894
+ * from this dict when processing redemption.
2895
+ */
2896
+ meta?: any;
2869
2897
  };
2870
2898
  /** @returns {CouponDateMeta} */
2871
2899
  declare function CouponDateMeta(): CouponDateMeta;
@@ -5182,6 +5210,12 @@ type LoyaltyPoints = {
5182
5210
  * cart as payment mode
5183
5211
  */
5184
5212
  discount_amount?: number;
5213
+ /**
5214
+ * - Free-form metadata returned by the loyalty engine
5215
+ * in its response. Structure varies; may include rule details, campaign info,
5216
+ * or any additional fields Engage sends back.
5217
+ */
5218
+ meta?: any;
5185
5219
  };
5186
5220
  /** @returns {RawBreakup} */
5187
5221
  declare function RawBreakup(): RawBreakup;
@@ -6879,6 +6913,7 @@ type CartDetailResult = {
6879
6913
  * - GSTIN added in user cart
6880
6914
  */
6881
6915
  gstin?: string;
6916
+ ship_to_gst_details?: ShipToGstDetails;
6882
6917
  /**
6883
6918
  * - List of applied
6884
6919
  * promotions data to cart which includes promotion id, promotion name, offer
@@ -6894,6 +6929,13 @@ type CartDetailResult = {
6894
6929
  * checkout API payload
6895
6930
  */
6896
6931
  custom_cart_meta?: any;
6932
+ /**
6933
+ * - Free-form metadata stored against the
6934
+ * loyalty redemption for this cart. Contains fields passed via the
6935
+ * applyLoyaltyPoints meta input (e.g. points, redeem_rule_id) and is
6936
+ * forwarded to the loyalty engine on each cart calculation.
6937
+ */
6938
+ loyalty_meta?: any;
6897
6939
  alternate_pickup_person?: PlatformAlternatePickupPerson;
6898
6940
  /**
6899
6941
  * - Determines if the cart
@@ -7479,6 +7521,7 @@ type SharedCart = {
7479
7521
  * - GSTIN added in user cart
7480
7522
  */
7481
7523
  gstin?: string;
7524
+ ship_to_gst_details?: ShipToGstDetails;
7482
7525
  /**
7483
7526
  * - Custom cart meta of user cart added
7484
7527
  * via update cart meta API
@@ -7656,6 +7699,7 @@ type UserCartMappingResult = {
7656
7699
  * - GSTIN added in user cart
7657
7700
  */
7658
7701
  gstin?: string;
7702
+ ship_to_gst_details?: ShipToGstDetails;
7659
7703
  /**
7660
7704
  * - Custom meta details added cart
7661
7705
  * checkout API payload
@@ -8278,6 +8322,7 @@ type PlatformCartShipmentsResult = {
8278
8322
  * - GSTIN number added in cart
8279
8323
  */
8280
8324
  gstin?: string;
8325
+ ship_to_gst_details?: ShipToGstDetails;
8281
8326
  /**
8282
8327
  * - List of applied
8283
8328
  * promotions data to cart which includes promotion id, promotion name, offer
@@ -8333,6 +8378,19 @@ type UpdateCartShipmentCreation = {
8333
8378
  */
8334
8379
  shipments: UpdateCartShipmentItem[];
8335
8380
  };
8381
+ /** @returns {ShipToGstDetails} */
8382
+ declare function ShipToGstDetails(): ShipToGstDetails;
8383
+ type ShipToGstDetails = {
8384
+ /**
8385
+ * - Ship-to GSTIN for bill-to ship-to e-way bill generation.
8386
+ */
8387
+ gstin?: string;
8388
+ /**
8389
+ * - Ship-to trade name for bill-to ship-to
8390
+ * e-way bill generation.
8391
+ */
8392
+ trade_name?: string;
8393
+ };
8336
8394
  /** @returns {PlatformCartMetaCreation} */
8337
8395
  declare function PlatformCartMetaCreation(): PlatformCartMetaCreation;
8338
8396
  type PlatformCartMetaCreation = {
@@ -8340,6 +8398,7 @@ type PlatformCartMetaCreation = {
8340
8398
  * - GSTIN number to be added in user cart
8341
8399
  */
8342
8400
  gstin?: string;
8401
+ ship_to_gst_details?: ShipToGstDetails;
8343
8402
  /**
8344
8403
  * - Customer contact details for
8345
8404
  * customer pickup at store
@@ -8630,6 +8689,7 @@ type CheckCart = {
8630
8689
  * - GSTIN number added in cart
8631
8690
  */
8632
8691
  gstin?: string;
8692
+ ship_to_gst_details?: ShipToGstDetails;
8633
8693
  /**
8634
8694
  * - Whether Cash On Delivery available
8635
8695
  */
@@ -4,6 +4,9 @@ const Joi = require("joi");
4
4
  * @typedef RedeemLoyaltyPoints
5
5
  * @property {boolean} redeem_points - Marks if engage points are to be redeemed
6
6
  * for the given cart.
7
+ * @property {Object} [meta] - Free-form metadata forwarded to the loyalty
8
+ * engine. Any field can be passed (e.g. points, redeem_rule_id). Engage reads
9
+ * from this dict when processing redemption.
7
10
  */
8
11
 
9
12
  /**
@@ -1024,6 +1027,9 @@ const Joi = require("joi");
1024
1027
  * @property {string} [title] - Unique title for loyalty program applicable.
1025
1028
  * @property {number} [discount_amount] - Engage discount amount applied on the
1026
1029
  * cart as payment mode
1030
+ * @property {Object} [meta] - Free-form metadata returned by the loyalty engine
1031
+ * in its response. Structure varies; may include rule details, campaign info,
1032
+ * or any additional fields Engage sends back.
1027
1033
  */
1028
1034
 
1029
1035
  /**
@@ -1749,12 +1755,17 @@ const Joi = require("joi");
1749
1755
  * @property {boolean} [buy_now] - Buy now flag for the cart which denotes user
1750
1756
  * is doing fast checkout for the cart using buy now
1751
1757
  * @property {string} [gstin] - GSTIN added in user cart
1758
+ * @property {ShipToGstDetails} [ship_to_gst_details]
1752
1759
  * @property {AppliedPromotion[]} [applied_promo_details] - List of applied
1753
1760
  * promotions data to cart which includes promotion id, promotion name, offer
1754
1761
  * text, description, buy rules, discount rules and promotion type
1755
1762
  * @property {string} [pan_no] - Permanent Account Number of the user
1756
1763
  * @property {Object} [custom_cart_meta] - Custom meta details added cart
1757
1764
  * checkout API payload
1765
+ * @property {Object} [loyalty_meta] - Free-form metadata stored against the
1766
+ * loyalty redemption for this cart. Contains fields passed via the
1767
+ * applyLoyaltyPoints meta input (e.g. points, redeem_rule_id) and is
1768
+ * forwarded to the loyalty engine on each cart calculation.
1758
1769
  * @property {PlatformAlternatePickupPerson} [alternate_pickup_person]
1759
1770
  * @property {boolean} [free_gift_selection_available] - Determines if the cart
1760
1771
  * has available promotion free gift items to choose on its added items
@@ -1998,6 +2009,7 @@ const Joi = require("joi");
1998
2009
  * @property {boolean} [buy_now] - Buy now flag of user cart
1999
2010
  * @property {number} [cart_id] - Cart id of user cart for generating cart sharing token
2000
2011
  * @property {string} [gstin] - GSTIN added in user cart
2012
+ * @property {ShipToGstDetails} [ship_to_gst_details]
2001
2013
  * @property {Object} [custom_cart_meta] - Custom cart meta of user cart added
2002
2014
  * via update cart meta API
2003
2015
  */
@@ -2073,6 +2085,7 @@ const Joi = require("joi");
2073
2085
  * @property {boolean} [buy_now] - Buy now flag for the cart which denotes user
2074
2086
  * is doing fast checkout for the cart using buy now
2075
2087
  * @property {string} [gstin] - GSTIN added in user cart
2088
+ * @property {ShipToGstDetails} [ship_to_gst_details]
2076
2089
  * @property {Object} [custom_cart_meta] - Custom meta details added cart
2077
2090
  * checkout API payload
2078
2091
  * @property {AppliedPromotion[]} [applied_promo_details] - List of applied
@@ -2341,6 +2354,7 @@ const Joi = require("joi");
2341
2354
  * @property {string} [last_modified] - Last modified timestamp of cart
2342
2355
  * @property {boolean} [buy_now] - Buy now flag of user cart
2343
2356
  * @property {string} [gstin] - GSTIN number added in cart
2357
+ * @property {ShipToGstDetails} [ship_to_gst_details]
2344
2358
  * @property {AppliedPromotion[]} [applied_promo_details] - List of applied
2345
2359
  * promotions data to cart which includes promotion id, promotion name, offer
2346
2360
  * text, description, buy rules, discount rules and promotion type
@@ -2367,9 +2381,17 @@ const Joi = require("joi");
2367
2381
  * type, shipment order type, shipment dp options etc
2368
2382
  */
2369
2383
 
2384
+ /**
2385
+ * @typedef ShipToGstDetails
2386
+ * @property {string} [gstin] - Ship-to GSTIN for bill-to ship-to e-way bill generation.
2387
+ * @property {string} [trade_name] - Ship-to trade name for bill-to ship-to
2388
+ * e-way bill generation.
2389
+ */
2390
+
2370
2391
  /**
2371
2392
  * @typedef PlatformCartMetaCreation
2372
2393
  * @property {string} [gstin] - GSTIN number to be added in user cart
2394
+ * @property {ShipToGstDetails} [ship_to_gst_details]
2373
2395
  * @property {Object} [pick_up_customer_details] - Customer contact details for
2374
2396
  * customer pickup at store
2375
2397
  * @property {PlatformAlternatePickupPerson} [alternate_pickup_person]
@@ -2507,6 +2529,7 @@ const Joi = require("joi");
2507
2529
  * @property {number} [cart_id] - Cart id of the user cart for which the order placed
2508
2530
  * @property {Object[]} [store_emps] - Store employees data
2509
2531
  * @property {string} [gstin] - GSTIN number added in cart
2532
+ * @property {ShipToGstDetails} [ship_to_gst_details]
2510
2533
  * @property {boolean} [cod_available] - Whether Cash On Delivery available
2511
2534
  * @property {number} [delivery_charges] - Delivery charges of the order placed
2512
2535
  * via checkout API
@@ -3098,6 +3121,7 @@ class CartPlatformModel {
3098
3121
  static RedeemLoyaltyPoints() {
3099
3122
  return Joi.object({
3100
3123
  redeem_points: Joi.boolean().required(),
3124
+ meta: Joi.object().pattern(/\S/, Joi.any()),
3101
3125
  });
3102
3126
  }
3103
3127
 
@@ -4120,6 +4144,7 @@ class CartPlatformModel {
4120
4144
  earn_title: Joi.string().allow(""),
4121
4145
  title: Joi.string().allow(""),
4122
4146
  discount_amount: Joi.number(),
4147
+ meta: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
4123
4148
  });
4124
4149
  }
4125
4150
 
@@ -4883,11 +4908,13 @@ class CartPlatformModel {
4883
4908
  last_modified: Joi.string().allow(""),
4884
4909
  buy_now: Joi.boolean(),
4885
4910
  gstin: Joi.string().allow(""),
4911
+ ship_to_gst_details: CartPlatformModel.ShipToGstDetails(),
4886
4912
  applied_promo_details: Joi.array().items(
4887
4913
  CartPlatformModel.AppliedPromotion()
4888
4914
  ),
4889
4915
  pan_no: Joi.string().allow(""),
4890
4916
  custom_cart_meta: Joi.object().pattern(/\S/, Joi.any()),
4917
+ loyalty_meta: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
4891
4918
  alternate_pickup_person: CartPlatformModel.PlatformAlternatePickupPerson(),
4892
4919
  free_gift_selection_available: Joi.boolean(),
4893
4920
  });
@@ -5125,6 +5152,7 @@ class CartPlatformModel {
5125
5152
  buy_now: Joi.boolean(),
5126
5153
  cart_id: Joi.number(),
5127
5154
  gstin: Joi.string().allow(""),
5155
+ ship_to_gst_details: CartPlatformModel.ShipToGstDetails(),
5128
5156
  custom_cart_meta: Joi.object().pattern(/\S/, Joi.any()),
5129
5157
  });
5130
5158
  }
@@ -5201,6 +5229,7 @@ class CartPlatformModel {
5201
5229
  last_modified: Joi.string().allow(""),
5202
5230
  buy_now: Joi.boolean(),
5203
5231
  gstin: Joi.string().allow(""),
5232
+ ship_to_gst_details: CartPlatformModel.ShipToGstDetails(),
5204
5233
  custom_cart_meta: Joi.object().pattern(/\S/, Joi.any()),
5205
5234
  applied_promo_details: Joi.array().items(
5206
5235
  CartPlatformModel.AppliedPromotion()
@@ -5464,6 +5493,7 @@ class CartPlatformModel {
5464
5493
  last_modified: Joi.string().allow(""),
5465
5494
  buy_now: Joi.boolean(),
5466
5495
  gstin: Joi.string().allow(""),
5496
+ ship_to_gst_details: CartPlatformModel.ShipToGstDetails(),
5467
5497
  applied_promo_details: Joi.array().items(
5468
5498
  CartPlatformModel.AppliedPromotion()
5469
5499
  ),
@@ -5493,10 +5523,19 @@ class CartPlatformModel {
5493
5523
  });
5494
5524
  }
5495
5525
 
5526
+ /** @returns {ShipToGstDetails} */
5527
+ static ShipToGstDetails() {
5528
+ return Joi.object({
5529
+ gstin: Joi.string().allow("").allow(null),
5530
+ trade_name: Joi.string().allow("").allow(null),
5531
+ }).allow(null);
5532
+ }
5533
+
5496
5534
  /** @returns {PlatformCartMetaCreation} */
5497
5535
  static PlatformCartMetaCreation() {
5498
5536
  return Joi.object({
5499
5537
  gstin: Joi.string().allow(""),
5538
+ ship_to_gst_details: CartPlatformModel.ShipToGstDetails(),
5500
5539
  pick_up_customer_details: Joi.object().pattern(/\S/, Joi.any()),
5501
5540
  alternate_pickup_person: CartPlatformModel.PlatformAlternatePickupPerson(),
5502
5541
  checkout_mode: Joi.string().allow(""),
@@ -5638,6 +5677,7 @@ class CartPlatformModel {
5638
5677
  cart_id: Joi.number(),
5639
5678
  store_emps: Joi.array().items(Joi.any()),
5640
5679
  gstin: Joi.string().allow(""),
5680
+ ship_to_gst_details: CartPlatformModel.ShipToGstDetails(),
5641
5681
  cod_available: Joi.boolean(),
5642
5682
  delivery_charges: Joi.number(),
5643
5683
  custom_cart_meta: Joi.object().pattern(/\S/, Joi.any()),
@@ -32,6 +32,16 @@ declare class Catalog {
32
32
  * @description: Execute bulk updates for HSN codes across multiple products. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/catalog/bulkHsnCode/).
33
33
  */
34
34
  bulkHsnCode({ body, requestHeaders }?: CatalogPlatformValidator.BulkHsnCodeParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.BulkHsnResponseSchema>;
35
+ /**
36
+ * @param {CatalogPlatformValidator.CbsOnboardGetParam} arg - Arg object
37
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
38
+ * @param {import("../PlatformAPIClient").Options} - Options
39
+ * @returns {Promise<CatalogPlatformModel.GetCompanySchema>} - Success response
40
+ * @name cbsOnboardGet
41
+ * @summary: Get company profile
42
+ * @description: Retrieves the seller-facing company profile for the specified company. The response includes onboarding metadata, contact and address details, legal documents, and deployment region metadata for the company. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/catalog/cbsOnboardGet/).
43
+ */
44
+ cbsOnboardGet({ requestHeaders }?: any, { responseHeaders }?: object): Promise<CatalogPlatformModel.GetCompanySchema>;
35
45
  /**
36
46
  * @param {CatalogPlatformValidator.CreateBulkInventoryParam} arg - Arg object
37
47
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`