@gofynd/fdk-client-javascript 1.4.2-beta.3 → 1.4.2-beta.5

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 (152) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.d.ts +62 -62
  4. package/sdk/application/Cart/CartApplicationClient.js +82 -71
  5. package/sdk/application/Cart/CartApplicationValidator.d.ts +189 -34
  6. package/sdk/application/Cart/CartApplicationValidator.js +59 -34
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +78 -78
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +78 -78
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
  10. package/sdk/application/Common/CommonApplicationClient.js +4 -4
  11. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -6
  12. package/sdk/application/Communication/CommunicationApplicationClient.js +6 -6
  13. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -67
  14. package/sdk/application/Configuration/ConfigurationApplicationClient.js +32 -106
  15. package/sdk/application/Content/ContentApplicationClient.d.ts +34 -64
  16. package/sdk/application/Content/ContentApplicationClient.js +34 -115
  17. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -42
  18. package/sdk/application/FileStorage/FileStorageApplicationClient.js +6 -42
  19. package/sdk/application/Lead/LeadApplicationClient.d.ts +14 -14
  20. package/sdk/application/Lead/LeadApplicationClient.js +14 -14
  21. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +12 -12
  22. package/sdk/application/Logistic/LogisticApplicationClient.js +12 -12
  23. package/sdk/application/Order/OrderApplicationClient.d.ts +24 -24
  24. package/sdk/application/Order/OrderApplicationClient.js +24 -24
  25. package/sdk/application/Order/OrderApplicationModel.d.ts +29 -1
  26. package/sdk/application/Order/OrderApplicationModel.js +34 -0
  27. package/sdk/application/Payment/PaymentApplicationClient.d.ts +89 -89
  28. package/sdk/application/Payment/PaymentApplicationClient.js +94 -94
  29. package/sdk/application/Payment/PaymentApplicationModel.d.ts +524 -3
  30. package/sdk/application/Payment/PaymentApplicationModel.js +335 -2
  31. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +5 -5
  32. package/sdk/application/Payment/PaymentApplicationValidator.js +3 -3
  33. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +54 -54
  34. package/sdk/application/PosCart/PosCartApplicationClient.js +54 -54
  35. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -25
  36. package/sdk/application/Rewards/RewardsApplicationClient.js +14 -41
  37. package/sdk/application/Share/ShareApplicationClient.d.ts +14 -14
  38. package/sdk/application/Share/ShareApplicationClient.js +14 -14
  39. package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -8
  40. package/sdk/application/Theme/ThemeApplicationClient.js +8 -8
  41. package/sdk/application/User/UserApplicationClient.d.ts +66 -66
  42. package/sdk/application/User/UserApplicationClient.js +68 -71
  43. package/sdk/application/User/UserApplicationModel.d.ts +32 -27
  44. package/sdk/application/User/UserApplicationModel.js +22 -32
  45. package/sdk/partner/Theme/ThemePartnerClient.d.ts +38 -38
  46. package/sdk/partner/Theme/ThemePartnerClient.js +38 -38
  47. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +8 -8
  48. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +8 -8
  49. package/sdk/platform/Billing/BillingPlatformClient.d.ts +34 -36
  50. package/sdk/platform/Billing/BillingPlatformClient.js +34 -36
  51. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +98 -175
  52. package/sdk/platform/Cart/CartPlatformApplicationClient.js +98 -254
  53. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +92 -18
  54. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +28 -18
  55. package/sdk/platform/Cart/CartPlatformModel.d.ts +12 -0
  56. package/sdk/platform/Cart/CartPlatformModel.js +12 -0
  57. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +221 -108
  58. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +460 -113
  59. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +72 -3
  60. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +46 -2
  61. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +335 -136
  62. package/sdk/platform/Catalog/CatalogPlatformClient.js +551 -136
  63. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +38 -5
  64. package/sdk/platform/Catalog/CatalogPlatformModel.js +47 -3
  65. package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -3
  66. package/sdk/platform/Common/CommonPlatformClient.js +3 -3
  67. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +115 -290
  68. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +115 -510
  69. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -13
  70. package/sdk/platform/Communication/CommunicationPlatformClient.js +2 -29
  71. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +32 -32
  72. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +32 -32
  73. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +52 -127
  74. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +52 -204
  75. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +35 -111
  76. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +35 -212
  77. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +142 -1
  78. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +96 -0
  79. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +130 -218
  80. package/sdk/platform/Content/ContentPlatformApplicationClient.js +136 -314
  81. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +4 -4
  82. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +4 -4
  83. package/sdk/platform/Content/ContentPlatformClient.d.ts +1 -1
  84. package/sdk/platform/Content/ContentPlatformClient.js +7 -7
  85. package/sdk/platform/Content/ContentPlatformModel.d.ts +18 -1
  86. package/sdk/platform/Content/ContentPlatformModel.js +20 -0
  87. package/sdk/platform/Content/ContentPlatformValidator.d.ts +4 -4
  88. package/sdk/platform/Content/ContentPlatformValidator.js +4 -4
  89. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +22 -48
  90. package/sdk/platform/Discount/DiscountPlatformClient.js +22 -73
  91. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +20 -56
  92. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +23 -56
  93. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +2 -0
  94. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -0
  95. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +12 -48
  96. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +12 -48
  97. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +15 -1
  98. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +14 -0
  99. package/sdk/platform/Finance/FinancePlatformClient.d.ts +44 -44
  100. package/sdk/platform/Finance/FinancePlatformClient.js +44 -44
  101. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +12 -12
  102. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +12 -12
  103. package/sdk/platform/Lead/LeadPlatformClient.d.ts +22 -48
  104. package/sdk/platform/Lead/LeadPlatformClient.js +22 -72
  105. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -4
  106. package/sdk/platform/Order/OrderPlatformApplicationClient.js +4 -4
  107. package/sdk/platform/Order/OrderPlatformClient.d.ts +79 -208
  108. package/sdk/platform/Order/OrderPlatformClient.js +79 -294
  109. package/sdk/platform/Order/OrderPlatformModel.d.ts +42 -1
  110. package/sdk/platform/Order/OrderPlatformModel.js +44 -0
  111. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -4
  112. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +4 -4
  113. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +4 -4
  114. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +2 -2
  115. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +81 -81
  116. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +81 -81
  117. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
  118. package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
  119. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +27 -1
  120. package/sdk/platform/Payment/PaymentPlatformModel.js +19 -0
  121. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +23 -40
  122. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +23 -61
  123. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +8 -8
  124. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +8 -8
  125. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +10 -9
  126. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +11 -10
  127. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +170 -33
  128. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +171 -38
  129. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +2 -2
  130. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +2 -2
  131. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +11 -11
  132. package/sdk/platform/Share/SharePlatformApplicationClient.js +29 -16
  133. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +13 -3
  134. package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -2
  135. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +56 -56
  136. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +56 -56
  137. package/sdk/platform/Theme/ThemePlatformClient.d.ts +6 -6
  138. package/sdk/platform/Theme/ThemePlatformClient.js +6 -6
  139. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +33 -33
  140. package/sdk/platform/User/UserPlatformApplicationClient.js +33 -33
  141. package/sdk/platform/User/UserPlatformModel.d.ts +81 -11
  142. package/sdk/platform/User/UserPlatformModel.js +80 -10
  143. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +32 -45
  144. package/sdk/platform/Webhook/WebhookPlatformClient.js +32 -45
  145. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +58 -1
  146. package/sdk/platform/Webhook/WebhookPlatformModel.js +66 -0
  147. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -2
  148. package/sdk/public/Configuration/ConfigurationPublicClient.js +2 -2
  149. package/sdk/public/Partner/PartnerPublicClient.d.ts +2 -2
  150. package/sdk/public/Partner/PartnerPublicClient.js +2 -2
  151. package/sdk/public/Webhook/WebhookPublicClient.d.ts +4 -4
  152. package/sdk/public/Webhook/WebhookPublicClient.js +4 -4
@@ -62,8 +62,8 @@ class Order {
62
62
  * @returns {Promise<OrderApplicationModel.CustomerDetailsResponse>} -
63
63
  * Success response
64
64
  * @name getCustomerDetailsByShipmentId
65
- * @summary: Get Customer Details by Shipment Id
66
- * @description: Use this API to retrieve customer details such as mobileno using Shipment ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getCustomerDetailsByShipmentId/).
65
+ * @summary: Retrieves shipment customer.
66
+ * @description: Retrieve customer details such as mobile number using Shipment ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getCustomerDetailsByShipmentId/).
67
67
  */
68
68
  async getCustomerDetailsByShipmentId(
69
69
  { orderId, shipmentId, requestHeaders } = { requestHeaders: {} },
@@ -143,8 +143,8 @@ class Order {
143
143
  * @returns {Promise<OrderApplicationModel.ResponseGetInvoiceShipment>} -
144
144
  * Success response
145
145
  * @name getInvoiceByShipmentId
146
- * @summary: Get Invoice of a shipment
147
- * @description: Use this API to retrieve shipment invoice. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getInvoiceByShipmentId/).
146
+ * @summary: Retrieves invoice for shipment.
147
+ * @description: Retrieve the invoice corresponding to a specific shipment ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getInvoiceByShipmentId/).
148
148
  */
149
149
  async getInvoiceByShipmentId(
150
150
  { shipmentId, requestHeaders } = { requestHeaders: {} },
@@ -223,8 +223,8 @@ class Order {
223
223
  * @param {import("../ApplicationAPIClient").Options} - Options
224
224
  * @returns {Promise<OrderApplicationModel.OrderById>} - Success response
225
225
  * @name getOrderById
226
- * @summary: Get details of an order
227
- * @description: Use this API to retrieve order details such as tracking details, shipment, store information using Fynd Order ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getOrderById/).
226
+ * @summary: Fetches order by ID.
227
+ * @description: Retrieve order details such as tracking details, shipment, store information using Fynd Order ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getOrderById/).
228
228
  */
229
229
  async getOrderById(
230
230
  { orderId, allowInactive, requestHeaders } = { requestHeaders: {} },
@@ -302,8 +302,8 @@ class Order {
302
302
  * @param {import("../ApplicationAPIClient").Options} - Options
303
303
  * @returns {Promise<OrderApplicationModel.OrderList>} - Success response
304
304
  * @name getOrders
305
- * @summary: Get all orders
306
- * @description: Use this API to retrieve all the orders. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getOrders/).
305
+ * @summary: Lists customer orders.
306
+ * @description: Retrieves all orders associated with a customer account. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getOrders/).
307
307
  */
308
308
  async getOrders(
309
309
  {
@@ -414,8 +414,8 @@ class Order {
414
414
  * @param {import("../ApplicationAPIClient").Options} - Options
415
415
  * @returns {Promise<OrderApplicationModel.OrderById>} - Success response
416
416
  * @name getPosOrderById
417
- * @summary: Get POS Order
418
- * @description: Use this API to retrieve a POS order and all its details such as tracking details, shipment, store information using Fynd Order ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getPosOrderById/).
417
+ * @summary: Retrieves POS order details.
418
+ * @description: Retrieve a POS order and all its details such as tracking details, shipment, store information using Fynd Order ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getPosOrderById/).
419
419
  */
420
420
  async getPosOrderById(
421
421
  { orderId, requestHeaders } = { requestHeaders: {} },
@@ -492,8 +492,8 @@ class Order {
492
492
  * @param {import("../ApplicationAPIClient").Options} - Options
493
493
  * @returns {Promise<OrderApplicationModel.ShipmentBagReasons>} - Success response
494
494
  * @name getShipmentBagReasons
495
- * @summary: Get reasons behind full or partial cancellation of a shipment
496
- * @description: Use this API to retrieve the issues that led to the cancellation of bags within a shipment. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getShipmentBagReasons/).
495
+ * @summary: Lists bag reasons.
496
+ * @description: Retrieves reasons that led to the cancellation for the status of shipment bags. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getShipmentBagReasons/).
497
497
  */
498
498
  async getShipmentBagReasons(
499
499
  { shipmentId, bagId, requestHeaders } = { requestHeaders: {} },
@@ -572,8 +572,8 @@ class Order {
572
572
  * @param {import("../ApplicationAPIClient").Options} - Options
573
573
  * @returns {Promise<OrderApplicationModel.ShipmentById>} - Success response
574
574
  * @name getShipmentById
575
- * @summary: Get details of a shipment
576
- * @description: Use this API to retrieve shipment details such as price breakup, tracking details, store information, etc. using Shipment ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getShipmentById/).
575
+ * @summary: Fetches shipment by ID.
576
+ * @description: Retrieve shipment details such as price breakup, tracking details, store information, etc. using Shipment ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getShipmentById/).
577
577
  */
578
578
  async getShipmentById(
579
579
  { shipmentId, allowInactive, requestHeaders } = { requestHeaders: {} },
@@ -651,8 +651,8 @@ class Order {
651
651
  * @param {import("../ApplicationAPIClient").Options} - Options
652
652
  * @returns {Promise<OrderApplicationModel.ShipmentReasons>} - Success response
653
653
  * @name getShipmentReasons
654
- * @summary: Get reasons behind full or partial cancellation of a shipment
655
- * @description: Use this API to retrieve the issues that led to the cancellation of bags within a shipment. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getShipmentReasons/).
654
+ * @summary: Lists shipment reasons.
655
+ * @description: Retrieve reasons explaining various shipment statuses. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/getShipmentReasons/).
656
656
  */
657
657
  async getShipmentReasons(
658
658
  { shipmentId, requestHeaders } = { requestHeaders: {} },
@@ -730,8 +730,8 @@ class Order {
730
730
  * @returns {Promise<OrderApplicationModel.SendOtpToCustomerResponse>} -
731
731
  * Success response
732
732
  * @name sendOtpToShipmentCustomer
733
- * @summary: Send and Resend Otp code to Order-Shipment customer
734
- * @description: Use this API to send OTP to the customer of the mapped Shipment. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/sendOtpToShipmentCustomer/).
733
+ * @summary: Sends OTP to customer.
734
+ * @description: Sends a one-time password (OTP) to the customer for shipment verification. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/sendOtpToShipmentCustomer/).
735
735
  */
736
736
  async sendOtpToShipmentCustomer(
737
737
  { orderId, shipmentId, requestHeaders } = { requestHeaders: {} },
@@ -810,8 +810,8 @@ class Order {
810
810
  * @param {import("../ApplicationAPIClient").Options} - Options
811
811
  * @returns {Promise<OrderApplicationModel.ShipmentTrack>} - Success response
812
812
  * @name trackShipment
813
- * @summary: Track shipment
814
- * @description: Track Shipment by shipment id, for application based on application Id - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/trackShipment/).
813
+ * @summary: Tracks shipment status.
814
+ * @description: Track Shipment by shipment id, for application based on application Id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/trackShipment/).
815
815
  */
816
816
  async trackShipment(
817
817
  { shipmentId, requestHeaders } = { requestHeaders: {} },
@@ -890,8 +890,8 @@ class Order {
890
890
  * - Success response
891
891
  *
892
892
  * @name updateShipmentStatus
893
- * @summary: Update the shipment status
894
- * @description: Use this API to update the status of a shipment using its shipment ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/updateShipmentStatus/).
893
+ * @summary: Updates shipment status.
894
+ * @description: Modifies the current status of a specific shipment using its shipment ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/updateShipmentStatus/).
895
895
  */
896
896
  async updateShipmentStatus(
897
897
  { shipmentId, body, requestHeaders } = { requestHeaders: {} },
@@ -968,8 +968,8 @@ class Order {
968
968
  * @param {import("../ApplicationAPIClient").Options} - Options
969
969
  * @returns {Promise<OrderApplicationModel.VerifyOtpResponse>} - Success response
970
970
  * @name verifyOtpShipmentCustomer
971
- * @summary: Verify Otp code
972
- * @description: Use this API to verify OTP and create a session token with custom payload. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/verifyOtpShipmentCustomer/).
971
+ * @summary: Verifies OTP.
972
+ * @description: Confirms the OTP sent to the shipment customer for verification. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/order/verifyOtpShipmentCustomer/).
973
973
  */
974
974
  async verifyOtpShipmentCustomer(
975
975
  { orderId, shipmentId, body, requestHeaders } = { requestHeaders: {} },
@@ -119,6 +119,7 @@ export = OrderApplicationModel;
119
119
  * @property {number} [refund_amount]
120
120
  * @property {string} [currency_code]
121
121
  * @property {number} [fynd_credits]
122
+ * @property {number} [amount_to_be_collected]
122
123
  */
123
124
  /**
124
125
  * @typedef ItemBrand
@@ -191,6 +192,7 @@ export = OrderApplicationModel;
191
192
  * @property {number} [gst_fee]
192
193
  * @property {number} [refund_amount]
193
194
  * @property {number} [fynd_credits]
195
+ * @property {number} [amount_to_be_collected]
194
196
  */
195
197
  /**
196
198
  * @typedef CurrentStatus
@@ -218,12 +220,17 @@ export = OrderApplicationModel;
218
220
  * @property {string} [currency_code]
219
221
  * @property {string} [seller_identifier]
220
222
  * @property {CurrentStatus} [current_status]
223
+ * @property {Article} [article]
221
224
  */
222
225
  /**
223
226
  * @typedef FulfillingCompany
224
227
  * @property {number} [id]
225
228
  * @property {string} [name]
226
229
  */
230
+ /**
231
+ * @typedef Article
232
+ * @property {string[]} [tags]
233
+ */
227
234
  /**
228
235
  * @typedef DeliveryAddress
229
236
  * @property {string} [pincode]
@@ -253,6 +260,7 @@ export = OrderApplicationModel;
253
260
  /**
254
261
  * @typedef Shipments
255
262
  * @property {ShipmentPayment} [payment]
263
+ * @property {ShipmentPayment[]} [payment_info]
256
264
  * @property {string} [order_type]
257
265
  * @property {boolean} [show_download_invoice]
258
266
  * @property {boolean} [can_cancel]
@@ -289,6 +297,7 @@ export = OrderApplicationModel;
289
297
  * @property {string} [need_help_url]
290
298
  * @property {Object} [return_meta]
291
299
  * @property {string} [delivery_date]
300
+ * @property {OrderRequest} [order]
292
301
  */
293
302
  /**
294
303
  * @typedef BagsForReorderArticleAssignment
@@ -496,6 +505,10 @@ export = OrderApplicationModel;
496
505
  * @property {string} [exclude_bags_next_state]
497
506
  * @property {string} [status]
498
507
  */
508
+ /**
509
+ * @typedef OrderRequest
510
+ * @property {Object} [meta]
511
+ */
499
512
  /**
500
513
  * @typedef UpdateShipmentStatusRequest
501
514
  * @property {StatuesRequest[]} [statuses]
@@ -523,7 +536,7 @@ export = OrderApplicationModel;
523
536
  declare class OrderApplicationModel {
524
537
  }
525
538
  declare namespace OrderApplicationModel {
526
- export { OrderPage, UserInfo, BreakupValues, ShipmentPayment, ShipmentUserInfo, FulfillingStore, ShipmentStatus, Invoice, NestedTrackingDetails, TrackingDetails, TimeStampData, Promise, ShipmentTotalDetails, Prices, ItemBrand, Item, AppliedFreeArticles, AppliedPromos, Identifiers, FinancialBreakup, CurrentStatus, Bags, FulfillingCompany, DeliveryAddress, Shipments, BagsForReorderArticleAssignment, BagsForReorder, OrderSchema, OrderStatuses, OrderFilters, OrderList, ApefaceApiError, OrderById, ShipmentById, ResponseGetInvoiceShipment, Track, ShipmentTrack, CustomerDetailsResponse, SendOtpToCustomerResponse, VerifyOtp, VerifyOtpResponse, BagReasonMeta, QuestionSet, BagReasons, ShipmentBagReasons, ShipmentReason, ShipmentReasons, ProductsReasonsData, ProductsReasonsFilters, ProductsReasons, EntityReasonData, EntitiesReasons, ReasonsData, Products, ProductsDataUpdatesFilters, ProductsDataUpdates, EntitiesDataUpdates, DataUpdates, ShipmentsRequest, StatuesRequest, UpdateShipmentStatusRequest, StatusesBodyResponse, ShipmentApplicationStatusResponse, ErrorResponse };
539
+ export { OrderPage, UserInfo, BreakupValues, ShipmentPayment, ShipmentUserInfo, FulfillingStore, ShipmentStatus, Invoice, NestedTrackingDetails, TrackingDetails, TimeStampData, Promise, ShipmentTotalDetails, Prices, ItemBrand, Item, AppliedFreeArticles, AppliedPromos, Identifiers, FinancialBreakup, CurrentStatus, Bags, FulfillingCompany, Article, DeliveryAddress, Shipments, BagsForReorderArticleAssignment, BagsForReorder, OrderSchema, OrderStatuses, OrderFilters, OrderList, ApefaceApiError, OrderById, ShipmentById, ResponseGetInvoiceShipment, Track, ShipmentTrack, CustomerDetailsResponse, SendOtpToCustomerResponse, VerifyOtp, VerifyOtpResponse, BagReasonMeta, QuestionSet, BagReasons, ShipmentBagReasons, ShipmentReason, ShipmentReasons, ProductsReasonsData, ProductsReasonsFilters, ProductsReasons, EntityReasonData, EntitiesReasons, ReasonsData, Products, ProductsDataUpdatesFilters, ProductsDataUpdates, EntitiesDataUpdates, DataUpdates, ShipmentsRequest, StatuesRequest, OrderRequest, UpdateShipmentStatusRequest, StatusesBodyResponse, ShipmentApplicationStatusResponse, ErrorResponse };
527
540
  }
528
541
  /** @returns {OrderPage} */
529
542
  declare function OrderPage(): OrderPage;
@@ -659,6 +672,7 @@ type Prices = {
659
672
  refund_amount?: number;
660
673
  currency_code?: string;
661
674
  fynd_credits?: number;
675
+ amount_to_be_collected?: number;
662
676
  };
663
677
  /** @returns {ItemBrand} */
664
678
  declare function ItemBrand(): ItemBrand;
@@ -737,6 +751,7 @@ type FinancialBreakup = {
737
751
  gst_fee?: number;
738
752
  refund_amount?: number;
739
753
  fynd_credits?: number;
754
+ amount_to_be_collected?: number;
740
755
  };
741
756
  /** @returns {CurrentStatus} */
742
757
  declare function CurrentStatus(): CurrentStatus;
@@ -766,6 +781,7 @@ type Bags = {
766
781
  currency_code?: string;
767
782
  seller_identifier?: string;
768
783
  current_status?: CurrentStatus;
784
+ article?: Article;
769
785
  };
770
786
  /** @returns {FulfillingCompany} */
771
787
  declare function FulfillingCompany(): FulfillingCompany;
@@ -773,6 +789,11 @@ type FulfillingCompany = {
773
789
  id?: number;
774
790
  name?: string;
775
791
  };
792
+ /** @returns {Article} */
793
+ declare function Article(): Article;
794
+ type Article = {
795
+ tags?: string[];
796
+ };
776
797
  /** @returns {DeliveryAddress} */
777
798
  declare function DeliveryAddress(): DeliveryAddress;
778
799
  type DeliveryAddress = {
@@ -804,6 +825,7 @@ type DeliveryAddress = {
804
825
  declare function Shipments(): Shipments;
805
826
  type Shipments = {
806
827
  payment?: ShipmentPayment;
828
+ payment_info?: ShipmentPayment[];
807
829
  order_type?: string;
808
830
  show_download_invoice?: boolean;
809
831
  can_cancel?: boolean;
@@ -840,6 +862,7 @@ type Shipments = {
840
862
  need_help_url?: string;
841
863
  return_meta?: any;
842
864
  delivery_date?: string;
865
+ order?: OrderRequest;
843
866
  };
844
867
  /** @returns {BagsForReorderArticleAssignment} */
845
868
  declare function BagsForReorderArticleAssignment(): BagsForReorderArticleAssignment;
@@ -1082,6 +1105,11 @@ type StatuesRequest = {
1082
1105
  exclude_bags_next_state?: string;
1083
1106
  status?: string;
1084
1107
  };
1108
+ /** @returns {OrderRequest} */
1109
+ declare function OrderRequest(): OrderRequest;
1110
+ type OrderRequest = {
1111
+ meta?: any;
1112
+ };
1085
1113
  /** @returns {UpdateShipmentStatusRequest} */
1086
1114
  declare function UpdateShipmentStatusRequest(): UpdateShipmentStatusRequest;
1087
1115
  type UpdateShipmentStatusRequest = {
@@ -133,6 +133,7 @@ const Joi = require("joi");
133
133
  * @property {number} [refund_amount]
134
134
  * @property {string} [currency_code]
135
135
  * @property {number} [fynd_credits]
136
+ * @property {number} [amount_to_be_collected]
136
137
  */
137
138
 
138
139
  /**
@@ -211,6 +212,7 @@ const Joi = require("joi");
211
212
  * @property {number} [gst_fee]
212
213
  * @property {number} [refund_amount]
213
214
  * @property {number} [fynd_credits]
215
+ * @property {number} [amount_to_be_collected]
214
216
  */
215
217
 
216
218
  /**
@@ -240,6 +242,7 @@ const Joi = require("joi");
240
242
  * @property {string} [currency_code]
241
243
  * @property {string} [seller_identifier]
242
244
  * @property {CurrentStatus} [current_status]
245
+ * @property {Article} [article]
243
246
  */
244
247
 
245
248
  /**
@@ -248,6 +251,11 @@ const Joi = require("joi");
248
251
  * @property {string} [name]
249
252
  */
250
253
 
254
+ /**
255
+ * @typedef Article
256
+ * @property {string[]} [tags]
257
+ */
258
+
251
259
  /**
252
260
  * @typedef DeliveryAddress
253
261
  * @property {string} [pincode]
@@ -278,6 +286,7 @@ const Joi = require("joi");
278
286
  /**
279
287
  * @typedef Shipments
280
288
  * @property {ShipmentPayment} [payment]
289
+ * @property {ShipmentPayment[]} [payment_info]
281
290
  * @property {string} [order_type]
282
291
  * @property {boolean} [show_download_invoice]
283
292
  * @property {boolean} [can_cancel]
@@ -314,6 +323,7 @@ const Joi = require("joi");
314
323
  * @property {string} [need_help_url]
315
324
  * @property {Object} [return_meta]
316
325
  * @property {string} [delivery_date]
326
+ * @property {OrderRequest} [order]
317
327
  */
318
328
 
319
329
  /**
@@ -557,6 +567,11 @@ const Joi = require("joi");
557
567
  * @property {string} [status]
558
568
  */
559
569
 
570
+ /**
571
+ * @typedef OrderRequest
572
+ * @property {Object} [meta]
573
+ */
574
+
560
575
  /**
561
576
  * @typedef UpdateShipmentStatusRequest
562
577
  * @property {StatuesRequest[]} [statuses]
@@ -748,6 +763,7 @@ class OrderApplicationModel {
748
763
  refund_amount: Joi.number(),
749
764
  currency_code: Joi.string().allow(""),
750
765
  fynd_credits: Joi.number(),
766
+ amount_to_be_collected: Joi.number(),
751
767
  });
752
768
  }
753
769
 
@@ -840,6 +856,7 @@ class OrderApplicationModel {
840
856
  gst_fee: Joi.number(),
841
857
  refund_amount: Joi.number(),
842
858
  fynd_credits: Joi.number(),
859
+ amount_to_be_collected: Joi.number(),
843
860
  });
844
861
  }
845
862
 
@@ -875,6 +892,7 @@ class OrderApplicationModel {
875
892
  currency_code: Joi.string().allow(""),
876
893
  seller_identifier: Joi.string().allow(""),
877
894
  current_status: OrderApplicationModel.CurrentStatus(),
895
+ article: OrderApplicationModel.Article(),
878
896
  });
879
897
  }
880
898
 
@@ -886,6 +904,13 @@ class OrderApplicationModel {
886
904
  });
887
905
  }
888
906
 
907
+ /** @returns {Article} */
908
+ static Article() {
909
+ return Joi.object({
910
+ tags: Joi.array().items(Joi.string().allow("")),
911
+ });
912
+ }
913
+
889
914
  /** @returns {DeliveryAddress} */
890
915
  static DeliveryAddress() {
891
916
  return Joi.object({
@@ -919,6 +944,7 @@ class OrderApplicationModel {
919
944
  static Shipments() {
920
945
  return Joi.object({
921
946
  payment: OrderApplicationModel.ShipmentPayment(),
947
+ payment_info: Joi.array().items(OrderApplicationModel.ShipmentPayment()),
922
948
  order_type: Joi.string().allow("").allow(null),
923
949
  show_download_invoice: Joi.boolean(),
924
950
  can_cancel: Joi.boolean(),
@@ -957,6 +983,7 @@ class OrderApplicationModel {
957
983
  need_help_url: Joi.string().allow(""),
958
984
  return_meta: Joi.any(),
959
985
  delivery_date: Joi.string().allow("").allow(null),
986
+ order: OrderApplicationModel.OrderRequest(),
960
987
  });
961
988
  }
962
989
 
@@ -1277,6 +1304,13 @@ class OrderApplicationModel {
1277
1304
  });
1278
1305
  }
1279
1306
 
1307
+ /** @returns {OrderRequest} */
1308
+ static OrderRequest() {
1309
+ return Joi.object({
1310
+ meta: Joi.any(),
1311
+ });
1312
+ }
1313
+
1280
1314
  /** @returns {UpdateShipmentStatusRequest} */
1281
1315
  static UpdateShipmentStatusRequest() {
1282
1316
  return Joi.object({