@gofynd/fdk-client-javascript 1.4.10 → 1.4.12-beta.1

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 (51) hide show
  1. package/README.md +1 -1
  2. package/package.json +2 -2
  3. package/sdk/application/Cart/CartApplicationClient.d.ts +8 -19
  4. package/sdk/application/Cart/CartApplicationClient.js +8 -89
  5. package/sdk/application/Cart/CartApplicationModel.d.ts +1 -178
  6. package/sdk/application/Cart/CartApplicationModel.js +0 -92
  7. package/sdk/application/Cart/CartApplicationValidator.d.ts +1 -20
  8. package/sdk/application/Cart/CartApplicationValidator.js +0 -16
  9. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +5 -0
  10. package/sdk/application/Configuration/ConfigurationApplicationModel.js +2 -0
  11. package/sdk/application/Content/ContentApplicationModel.d.ts +3 -2
  12. package/sdk/application/Content/ContentApplicationModel.js +5 -2
  13. package/sdk/application/Logistic/LogisticApplicationModel.js +3 -3
  14. package/sdk/application/Order/OrderApplicationModel.js +1 -1
  15. package/sdk/application/Payment/PaymentApplicationModel.js +2 -2
  16. package/sdk/application/Theme/ThemeApplicationModel.d.ts +3 -2
  17. package/sdk/application/Theme/ThemeApplicationModel.js +5 -2
  18. package/sdk/common/Clickstream.js +46 -15
  19. package/sdk/common/Constant.d.ts +5 -0
  20. package/sdk/common/Constant.js +5 -0
  21. package/sdk/partner/Theme/ThemePartnerModel.d.ts +3 -2
  22. package/sdk/partner/Theme/ThemePartnerModel.js +5 -2
  23. package/sdk/partner/Webhook/WebhookPartnerModel.js +1 -1
  24. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +8 -20
  25. package/sdk/platform/Cart/CartPlatformApplicationClient.js +8 -92
  26. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +1 -15
  27. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +0 -14
  28. package/sdk/platform/Cart/CartPlatformModel.d.ts +1 -87
  29. package/sdk/platform/Cart/CartPlatformModel.js +0 -88
  30. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1 -1
  31. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +14 -3
  32. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +27 -3
  33. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +14 -2
  34. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +10 -51
  35. package/sdk/platform/Catalog/CatalogPlatformClient.js +79 -400
  36. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +8 -242
  37. package/sdk/platform/Catalog/CatalogPlatformModel.js +8 -171
  38. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +15 -61
  39. package/sdk/platform/Catalog/CatalogPlatformValidator.js +13 -65
  40. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +5 -0
  41. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2 -0
  42. package/sdk/platform/Content/ContentPlatformModel.d.ts +3 -2
  43. package/sdk/platform/Content/ContentPlatformModel.js +5 -2
  44. package/sdk/platform/Finance/FinancePlatformModel.js +1 -1
  45. package/sdk/platform/Order/OrderPlatformModel.d.ts +120 -39
  46. package/sdk/platform/Order/OrderPlatformModel.js +88 -38
  47. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +38 -4
  48. package/sdk/platform/Payment/PaymentPlatformModel.js +17 -7
  49. package/sdk/platform/Theme/ThemePlatformModel.d.ts +3 -2
  50. package/sdk/platform/Theme/ThemePlatformModel.js +5 -2
  51. package/sdk/platform/Webhook/WebhookPlatformModel.js +1 -1
@@ -494,6 +494,36 @@ const Joi = require("joi");
494
494
  * @property {AffiliateStoreIdMapping[]} affiliate_store_id_mapping
495
495
  */
496
496
 
497
+ /**
498
+ * @typedef DPConfiguration
499
+ * @property {string} [shipping_by] - Shipping_by denotes dp assignment
500
+ * strategy- if shipping_by is fynd dp assignment would be handled by OMS
501
+ */
502
+
503
+ /**
504
+ * @typedef PaymentConfig
505
+ * @property {string} [mode_of_payment] - Specifies the mode through which the
506
+ * payment was collected, serving as an identifier for the payment's origin.
507
+ * @property {string} [source] - The source field identifies the channel through
508
+ * which the order was placed, such as MARKETPLACE, ECOMM.
509
+ */
510
+
511
+ /**
512
+ * @typedef CreateOrderConfig
513
+ * @property {DPConfiguration} [dp_configuration]
514
+ * @property {string} [integration_type] - Flag denotes integration type which
515
+ * is used to retrieve specific configurations and application details
516
+ * relevant to channel fulfillment.
517
+ * @property {boolean} [location_reassignment] - Flag denotes if the location
518
+ * for the store needs to be reassigned post cancellation.
519
+ * @property {PaymentConfig} [payment]
520
+ * @property {boolean} [optimal_shipment_creation] - Denotes the shipment
521
+ * breaking strategy. If the flag is set true, the shipment is created using
522
+ * optimal shipment creation strategy based on the servicability & packaging
523
+ * dimensions by OMS .If false, shipment details, including location_id, must
524
+ * be passed to FDK for processing.
525
+ */
526
+
497
527
  /**
498
528
  * @typedef CreateOrderPayload
499
529
  * @property {string} affiliate_id
@@ -693,6 +723,14 @@ const Joi = require("joi");
693
723
  * @property {OrderDetails} order_details
694
724
  * @property {string[]} [errors]
695
725
  * @property {ShipmentDetail[]} [shipment_details]
726
+ * @property {string} [text] - A label or description of the delivery status,
727
+ * such as 'Expected Delivery Date'.
728
+ * @property {string} [value] - The detailed delivery status or time
729
+ * information, such as 'Arriving on 24 Nov 2022 15:54:00'.
730
+ * @property {string} [color_code] - Hex code for the color representing the
731
+ * delivery status.
732
+ * @property {string} [expected_delivery_date] - The ISO 8601 formatted date and
733
+ * time when the delivery is expected, e.g., '2022-11-24T22:15:54+00:00'.
696
734
  */
697
735
 
698
736
  /**
@@ -770,8 +808,12 @@ const Joi = require("joi");
770
808
  * @property {ProcessingDates} [processing_dates]
771
809
  * @property {Object} [meta] - Meta data of the shipment.
772
810
  * @property {number} [priority] - Integer value indicating high and low priority.
773
- * @property {number} location_id - Location Identifier or Store/Fulfillment
774
- * Identifier of the shipment.
811
+ * @property {number} [location_id] - Location Identifier or Store/Fulfillment
812
+ * Identifier of the shipment- This field is mandatory when
813
+ * optimal_shipment_creation flag is set to false, indicating that shipments
814
+ * must be associated with a specific location. When
815
+ * `optimal_shipment_creation` is true, the optimal location for order
816
+ * creation would be assigned, location_id becomes optional.
775
817
  * @property {string} [order_type] - The order type of shipment HomeDelivery -
776
818
  * If the customer wants the order home-delivered PickAtStore - If the
777
819
  * customer wants the handover of an order at the store itself.
@@ -804,17 +846,6 @@ const Joi = require("joi");
804
846
  * @property {ShipmentGstDetails} [gst]
805
847
  */
806
848
 
807
- /**
808
- * @typedef ShipmentRequestData
809
- * @property {LineItem[]} line_items
810
- * @property {ProcessingDates} [processing_dates]
811
- * @property {Object} [meta] - Meta data of the shipment.
812
- * @property {number} [priority] - Integer value indicating high and low priority.
813
- * @property {string} [order_type] - The order type of shipment HomeDelivery -
814
- * If the customer wants the order home-delivered PickAtStore - If the
815
- * customer wants the handover of an order at the store itself.
816
- */
817
-
818
849
  /**
819
850
  * @typedef ShippingInfo
820
851
  * @property {string} [alternate_mobile_number]
@@ -915,7 +946,6 @@ const Joi = require("joi");
915
946
  /**
916
947
  * @typedef CreateOrderAPI
917
948
  * @property {Shipment[]} shipments
918
- * @property {ShipmentRequestData} [shipment_request_data]
919
949
  * @property {ShippingInfo} shipping_info
920
950
  * @property {BillingInfo} billing_info
921
951
  * @property {Object} [currency_info]
@@ -924,7 +954,7 @@ const Joi = require("joi");
924
954
  * @property {string} [external_creation_date]
925
955
  * @property {Object} [meta]
926
956
  * @property {TaxInfo} [tax_info]
927
- * @property {Object} [config]
957
+ * @property {CreateOrderConfig} [config]
928
958
  * @property {PaymentInfo} payment_info
929
959
  * @property {UserInfo} [user_info]
930
960
  * @property {number} [ordering_store_id]
@@ -2784,6 +2814,7 @@ const Joi = require("joi");
2784
2814
  * @property {InvoiceInfo} [invoice]
2785
2815
  * @property {string} [shipment_status]
2786
2816
  * @property {GSTDetailsData} [gst_details]
2817
+ * @property {OrderStatusData} [order_status]
2787
2818
  * @property {Object} [delivery_slot]
2788
2819
  * @property {OrderDetailsData} [order]
2789
2820
  * @property {UserDataInfo} [user]
@@ -3814,7 +3845,7 @@ class OrderPlatformModel {
3814
3845
  dp_options: Joi.any().allow(null),
3815
3846
  lock_status: Joi.boolean().allow(null),
3816
3847
  action_to_status: Joi.any().allow(null),
3817
- });
3848
+ }).allow(null);
3818
3849
  }
3819
3850
 
3820
3851
  /** @returns {ShipmentConfig} */
@@ -4016,6 +4047,32 @@ class OrderPlatformModel {
4016
4047
  });
4017
4048
  }
4018
4049
 
4050
+ /** @returns {DPConfiguration} */
4051
+ static DPConfiguration() {
4052
+ return Joi.object({
4053
+ shipping_by: Joi.string().allow(""),
4054
+ });
4055
+ }
4056
+
4057
+ /** @returns {PaymentConfig} */
4058
+ static PaymentConfig() {
4059
+ return Joi.object({
4060
+ mode_of_payment: Joi.string().allow(""),
4061
+ source: Joi.string().allow(""),
4062
+ });
4063
+ }
4064
+
4065
+ /** @returns {CreateOrderConfig} */
4066
+ static CreateOrderConfig() {
4067
+ return Joi.object({
4068
+ dp_configuration: OrderPlatformModel.DPConfiguration(),
4069
+ integration_type: Joi.string().allow(""),
4070
+ location_reassignment: Joi.boolean(),
4071
+ payment: OrderPlatformModel.PaymentConfig(),
4072
+ optimal_shipment_creation: Joi.boolean(),
4073
+ });
4074
+ }
4075
+
4019
4076
  /** @returns {CreateOrderPayload} */
4020
4077
  static CreateOrderPayload() {
4021
4078
  return Joi.object({
@@ -4255,6 +4312,10 @@ class OrderPlatformModel {
4255
4312
  order_details: OrderPlatformModel.OrderDetails().required(),
4256
4313
  errors: Joi.array().items(Joi.string().allow("")),
4257
4314
  shipment_details: Joi.array().items(OrderPlatformModel.ShipmentDetail()),
4315
+ text: Joi.string().allow(""),
4316
+ value: Joi.string().allow(""),
4317
+ color_code: Joi.string().allow(""),
4318
+ expected_delivery_date: Joi.string().allow(""),
4258
4319
  });
4259
4320
  }
4260
4321
 
@@ -4346,7 +4407,7 @@ class OrderPlatformModel {
4346
4407
  processing_dates: OrderPlatformModel.ProcessingDates(),
4347
4408
  meta: Joi.any().allow(null),
4348
4409
  priority: Joi.number(),
4349
- location_id: Joi.number().required(),
4410
+ location_id: Joi.number(),
4350
4411
  order_type: Joi.string().allow(""),
4351
4412
  parent_type: Joi.string().allow("").allow(null),
4352
4413
  store_invoice_id: Joi.string().allow("").allow(null),
@@ -4378,17 +4439,6 @@ class OrderPlatformModel {
4378
4439
  });
4379
4440
  }
4380
4441
 
4381
- /** @returns {ShipmentRequestData} */
4382
- static ShipmentRequestData() {
4383
- return Joi.object({
4384
- line_items: Joi.array().items(OrderPlatformModel.LineItem()).required(),
4385
- processing_dates: OrderPlatformModel.ProcessingDates(),
4386
- meta: Joi.any(),
4387
- priority: Joi.number(),
4388
- order_type: Joi.string().allow(""),
4389
- });
4390
- }
4391
-
4392
4442
  /** @returns {ShippingInfo} */
4393
4443
  static ShippingInfo() {
4394
4444
  return Joi.object({
@@ -4502,7 +4552,6 @@ class OrderPlatformModel {
4502
4552
  static CreateOrderAPI() {
4503
4553
  return Joi.object({
4504
4554
  shipments: Joi.array().items(OrderPlatformModel.Shipment()).required(),
4505
- shipment_request_data: OrderPlatformModel.ShipmentRequestData(),
4506
4555
  shipping_info: OrderPlatformModel.ShippingInfo().required(),
4507
4556
  billing_info: OrderPlatformModel.BillingInfo().required(),
4508
4557
  currency_info: Joi.any(),
@@ -4511,7 +4560,7 @@ class OrderPlatformModel {
4511
4560
  external_creation_date: Joi.string().allow(""),
4512
4561
  meta: Joi.any(),
4513
4562
  tax_info: OrderPlatformModel.TaxInfo(),
4514
- config: Joi.any(),
4563
+ config: OrderPlatformModel.CreateOrderConfig(),
4515
4564
  payment_info: OrderPlatformModel.PaymentInfo().required(),
4516
4565
  user_info: OrderPlatformModel.UserInfo(),
4517
4566
  ordering_store_id: Joi.number(),
@@ -5710,7 +5759,7 @@ class OrderPlatformModel {
5710
5759
  contact_person: Joi.string().allow("").allow(null),
5711
5760
  state: Joi.string().allow("").allow(null),
5712
5761
  city: Joi.string().allow("").allow(null),
5713
- });
5762
+ }).allow(null);
5714
5763
  }
5715
5764
 
5716
5765
  /** @returns {ShipmentListingChannel} */
@@ -6638,6 +6687,7 @@ class OrderPlatformModel {
6638
6687
  invoice: OrderPlatformModel.InvoiceInfo(),
6639
6688
  shipment_status: Joi.string().allow("").allow(null),
6640
6689
  gst_details: OrderPlatformModel.GSTDetailsData(),
6690
+ order_status: OrderPlatformModel.OrderStatusData(),
6641
6691
  delivery_slot: Joi.any().allow(null),
6642
6692
  order: OrderPlatformModel.OrderDetailsData(),
6643
6693
  user: OrderPlatformModel.UserDataInfo(),
@@ -7099,7 +7149,7 @@ class OrderPlatformModel {
7099
7149
  mall_name: Joi.string().allow("").allow(null),
7100
7150
  latitude: Joi.number().allow(null),
7101
7151
  address2: Joi.string().allow("").allow(null),
7102
- });
7152
+ }).allow(null);
7103
7153
  }
7104
7154
 
7105
7155
  /** @returns {Brand} */
@@ -7183,7 +7233,7 @@ class OrderPlatformModel {
7183
7233
  brand_calculated_amount: Joi.number().allow(null),
7184
7234
  tax_collected_at_source: Joi.number().allow(null),
7185
7235
  gstin_code: Joi.string().allow("").allow(null),
7186
- });
7236
+ }).allow(null);
7187
7237
  }
7188
7238
 
7189
7239
  /** @returns {DeliverySlotDetails} */
@@ -7194,7 +7244,7 @@ class OrderPlatformModel {
7194
7244
  lower_bound: Joi.string().allow("").allow(null),
7195
7245
  date: Joi.string().allow("").allow(null),
7196
7246
  type: Joi.string().allow("").allow(null),
7197
- });
7247
+ }).allow(null);
7198
7248
  }
7199
7249
 
7200
7250
  /** @returns {InvoiceDetails} */
@@ -7204,7 +7254,7 @@ class OrderPlatformModel {
7204
7254
  store_invoice_id: Joi.string().allow("").allow(null),
7205
7255
  invoice_url: Joi.string().allow("").allow(null),
7206
7256
  label_url: Joi.string().allow("").allow(null),
7207
- });
7257
+ }).allow(null);
7208
7258
  }
7209
7259
 
7210
7260
  /** @returns {UserDetails} */
@@ -7220,7 +7270,7 @@ class OrderPlatformModel {
7220
7270
  gender: Joi.string().allow("").allow(null),
7221
7271
  mongo_user_id: Joi.string().allow("").allow(null),
7222
7272
  meta: Joi.any().allow(null),
7223
- });
7273
+ }).allow(null);
7224
7274
  }
7225
7275
 
7226
7276
  /** @returns {WeightData} */
@@ -7228,7 +7278,7 @@ class OrderPlatformModel {
7228
7278
  return Joi.object({
7229
7279
  value: Joi.number().allow(null),
7230
7280
  unit: Joi.string().allow("").allow(null),
7231
- });
7281
+ }).allow(null);
7232
7282
  }
7233
7283
 
7234
7284
  /** @returns {BagDetails} */
@@ -7335,7 +7385,7 @@ class OrderPlatformModel {
7335
7385
  return Joi.object({
7336
7386
  items: Joi.array().items(OrderPlatformModel.BagDetails()),
7337
7387
  page: OrderPlatformModel.BagsPage(),
7338
- });
7388
+ }).allow(null);
7339
7389
  }
7340
7390
 
7341
7391
  /** @returns {GetBagsPlatformResponse} */
@@ -387,10 +387,16 @@ export = PaymentPlatformModel;
387
387
  /**
388
388
  * @typedef MultiTenderPaymentMeta
389
389
  * @property {Object} [extra_meta]
390
- * @property {string} [order_id]
391
- * @property {string} [payment_id]
392
- * @property {string} [current_status]
393
- * @property {string} [payment_gateway]
390
+ * @property {string} [order_id] - Fynd Platform order ID
391
+ * @property {string} [payment_id] - A unique identifier associated with a
392
+ * specific payment transaction
393
+ * @property {string} [current_status] - Represents the current state or
394
+ * condition of an object, such as an order or payment.
395
+ * @property {string} [payment_gateway] - Specifies the name or identifier of
396
+ * the payment gateway. This will deprecated in future version. We recommend
397
+ * switching to `payment_gateway_slug` to ensure uninterrupted payment processing.
398
+ * @property {string} [payment_gateway_slug] - A simplified, URL-friendly string
399
+ * that represents the name of the payment gateway and it will used for refund PG.
394
400
  */
395
401
  /**
396
402
  * @typedef MultiTenderPaymentMethod
@@ -1003,6 +1009,8 @@ export = PaymentPlatformModel;
1003
1009
  * @property {Object[]} articles - List of articles that are added in cart
1004
1010
  * @property {number} cart_value - Total cart value i.e. amount to be paid
1005
1011
  * @property {number} [total_quantity] - Total number of items in cart
1012
+ * @property {Object} [custom_cart_meta] - This field is used to add and
1013
+ * retrieve custom data fields to cart items.
1006
1014
  */
1007
1015
  /**
1008
1016
  * @typedef RefundDetailsSerializer
@@ -2193,10 +2201,31 @@ type OrderBeneficiaryResponse = {
2193
2201
  declare function MultiTenderPaymentMeta(): MultiTenderPaymentMeta;
2194
2202
  type MultiTenderPaymentMeta = {
2195
2203
  extra_meta?: any;
2204
+ /**
2205
+ * - Fynd Platform order ID
2206
+ */
2196
2207
  order_id?: string;
2208
+ /**
2209
+ * - A unique identifier associated with a
2210
+ * specific payment transaction
2211
+ */
2197
2212
  payment_id?: string;
2213
+ /**
2214
+ * - Represents the current state or
2215
+ * condition of an object, such as an order or payment.
2216
+ */
2198
2217
  current_status?: string;
2218
+ /**
2219
+ * - Specifies the name or identifier of
2220
+ * the payment gateway. This will deprecated in future version. We recommend
2221
+ * switching to `payment_gateway_slug` to ensure uninterrupted payment processing.
2222
+ */
2199
2223
  payment_gateway?: string;
2224
+ /**
2225
+ * - A simplified, URL-friendly string
2226
+ * that represents the name of the payment gateway and it will used for refund PG.
2227
+ */
2228
+ payment_gateway_slug?: string;
2200
2229
  };
2201
2230
  /** @returns {MultiTenderPaymentMethod} */
2202
2231
  declare function MultiTenderPaymentMethod(): MultiTenderPaymentMethod;
@@ -3849,6 +3878,11 @@ type CartDetailsSerializer = {
3849
3878
  * - Total number of items in cart
3850
3879
  */
3851
3880
  total_quantity?: number;
3881
+ /**
3882
+ * - This field is used to add and
3883
+ * retrieve custom data fields to cart items.
3884
+ */
3885
+ custom_cart_meta?: any;
3852
3886
  };
3853
3887
  /** @returns {RefundDetailsSerializer} */
3854
3888
  declare function RefundDetailsSerializer(): RefundDetailsSerializer;
@@ -435,10 +435,16 @@ const Joi = require("joi");
435
435
  /**
436
436
  * @typedef MultiTenderPaymentMeta
437
437
  * @property {Object} [extra_meta]
438
- * @property {string} [order_id]
439
- * @property {string} [payment_id]
440
- * @property {string} [current_status]
441
- * @property {string} [payment_gateway]
438
+ * @property {string} [order_id] - Fynd Platform order ID
439
+ * @property {string} [payment_id] - A unique identifier associated with a
440
+ * specific payment transaction
441
+ * @property {string} [current_status] - Represents the current state or
442
+ * condition of an object, such as an order or payment.
443
+ * @property {string} [payment_gateway] - Specifies the name or identifier of
444
+ * the payment gateway. This will deprecated in future version. We recommend
445
+ * switching to `payment_gateway_slug` to ensure uninterrupted payment processing.
446
+ * @property {string} [payment_gateway_slug] - A simplified, URL-friendly string
447
+ * that represents the name of the payment gateway and it will used for refund PG.
442
448
  */
443
449
 
444
450
  /**
@@ -1116,6 +1122,8 @@ const Joi = require("joi");
1116
1122
  * @property {Object[]} articles - List of articles that are added in cart
1117
1123
  * @property {number} cart_value - Total cart value i.e. amount to be paid
1118
1124
  * @property {number} [total_quantity] - Total number of items in cart
1125
+ * @property {Object} [custom_cart_meta] - This field is used to add and
1126
+ * retrieve custom data fields to cart items.
1119
1127
  */
1120
1128
 
1121
1129
  /**
@@ -1506,7 +1514,7 @@ class PaymentPlatformModel {
1506
1514
  payment_flow_data: Joi.any().allow(null),
1507
1515
  payment_flow: Joi.string().allow("").allow(null),
1508
1516
  api_link: Joi.string().allow("").allow(null),
1509
- });
1517
+ }).allow(null);
1510
1518
  }
1511
1519
 
1512
1520
  /** @returns {PaymentDefaultSelection} */
@@ -1564,7 +1572,7 @@ class PaymentPlatformModel {
1564
1572
  .items(Joi.string().allow("").allow(null))
1565
1573
  .allow(null, ""),
1566
1574
  allow_custom_advance_amount: Joi.boolean().allow(null),
1567
- });
1575
+ }).allow(null);
1568
1576
  }
1569
1577
 
1570
1578
  /** @returns {SplitObject} */
@@ -1573,7 +1581,7 @@ class PaymentPlatformModel {
1573
1581
  total_number_of_splits: Joi.number().allow(null),
1574
1582
  splits_remaining: Joi.number().allow(null),
1575
1583
  amount_remaining: Joi.number().allow(null),
1576
- });
1584
+ }).allow(null);
1577
1585
  }
1578
1586
 
1579
1587
  /** @returns {AdvancePaymentObject} */
@@ -1868,6 +1876,7 @@ class PaymentPlatformModel {
1868
1876
  payment_id: Joi.string().allow(""),
1869
1877
  current_status: Joi.string().allow(""),
1870
1878
  payment_gateway: Joi.string().allow(""),
1879
+ payment_gateway_slug: Joi.string().allow(""),
1871
1880
  });
1872
1881
  }
1873
1882
 
@@ -2642,6 +2651,7 @@ class PaymentPlatformModel {
2642
2651
  articles: Joi.array().items(Joi.any()).required(),
2643
2652
  cart_value: Joi.number().required(),
2644
2653
  total_quantity: Joi.number(),
2654
+ custom_cart_meta: Joi.object().pattern(/\S/, Joi.any()),
2645
2655
  });
2646
2656
  }
2647
2657
 
@@ -584,7 +584,8 @@ export = ThemePlatformModel;
584
584
  * | "register"
585
585
  * | "shipping-policy"
586
586
  * | "return-policy"
587
- * | "order-status"} PageType
587
+ * | "order-status"
588
+ * | "locate-us"} PageType
588
589
  */
589
590
  declare class ThemePlatformModel {
590
591
  }
@@ -1617,4 +1618,4 @@ type ActionPage = {
1617
1618
  * @returns {PageType}
1618
1619
  */
1619
1620
  declare function PageType(): PageType;
1620
- type PageType = "about-us" | "addresses" | "blog" | "brands" | "cards" | "cart" | "categories" | "brand" | "category" | "collection" | "collections" | "custom" | "contact-us" | "external" | "faq" | "freshchat" | "home" | "notification-settings" | "orders" | "page" | "policy" | "product" | "product-request" | "products" | "profile" | "profile-order-shipment" | "profile-basic" | "profile-company" | "profile-emails" | "profile-phones" | "rate-us" | "refer-earn" | "settings" | "shared-cart" | "tnc" | "track-order" | "wishlist" | "sections" | "form" | "cart-delivery" | "cart-payment" | "cart-review" | "login" | "register" | "shipping-policy" | "return-policy" | "order-status";
1621
+ type PageType = "about-us" | "addresses" | "blog" | "brands" | "cards" | "cart" | "categories" | "brand" | "category" | "collection" | "collections" | "custom" | "contact-us" | "external" | "faq" | "freshchat" | "home" | "notification-settings" | "orders" | "page" | "policy" | "product" | "product-request" | "products" | "profile" | "profile-order-shipment" | "profile-basic" | "profile-company" | "profile-emails" | "profile-phones" | "rate-us" | "refer-earn" | "settings" | "shared-cart" | "tnc" | "track-order" | "wishlist" | "sections" | "form" | "cart-delivery" | "cart-payment" | "cart-review" | "login" | "register" | "shipping-policy" | "return-policy" | "order-status" | "locate-us";
@@ -665,7 +665,8 @@ const Joi = require("joi");
665
665
  * | "register"
666
666
  * | "shipping-policy"
667
667
  * | "return-policy"
668
- * | "order-status"} PageType
668
+ * | "order-status"
669
+ * | "locate-us"} PageType
669
670
  */
670
671
 
671
672
  class ThemePlatformModel {
@@ -1551,7 +1552,9 @@ class ThemePlatformModel {
1551
1552
 
1552
1553
  "return-policy",
1553
1554
 
1554
- "order-status"
1555
+ "order-status",
1556
+
1557
+ "locate-us"
1555
1558
  );
1556
1559
  }
1557
1560
  }
@@ -483,7 +483,7 @@ class WebhookPlatformModel {
483
483
  static UploadServiceObject() {
484
484
  return Joi.object({
485
485
  cdn: WebhookPlatformModel.CdnObject(),
486
- });
486
+ }).allow(null);
487
487
  }
488
488
 
489
489
  /** @returns {HistoryAssociation} */