@gofynd/fdk-client-javascript 1.3.11-beta.7 → 1.4.0-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 (231) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
  4. package/sdk/application/Cart/CartApplicationClient.js +5 -3
  5. package/sdk/application/Cart/CartApplicationModel.d.ts +107 -1
  6. package/sdk/application/Cart/CartApplicationModel.js +74 -0
  7. package/sdk/application/Cart/CartApplicationValidator.d.ts +4 -0
  8. package/sdk/application/Cart/CartApplicationValidator.js +4 -0
  9. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +3 -6
  10. package/sdk/application/Catalog/CatalogApplicationClient.js +7 -20
  11. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2 -2
  12. package/sdk/application/Catalog/CatalogApplicationModel.js +2 -2
  13. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -14
  14. package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -6
  15. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +183 -49
  16. package/sdk/application/Configuration/ConfigurationApplicationModel.js +173 -31
  17. package/sdk/application/Content/ContentApplicationClient.d.ts +36 -0
  18. package/sdk/application/Content/ContentApplicationClient.js +246 -0
  19. package/sdk/application/Content/ContentApplicationModel.d.ts +208 -1
  20. package/sdk/application/Content/ContentApplicationModel.js +252 -0
  21. package/sdk/application/Content/ContentApplicationValidator.d.ts +40 -1
  22. package/sdk/application/Content/ContentApplicationValidator.js +41 -0
  23. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +67 -0
  24. package/sdk/application/Logistic/LogisticApplicationClient.js +547 -0
  25. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +456 -1
  26. package/sdk/application/Logistic/LogisticApplicationModel.js +488 -0
  27. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +211 -1
  28. package/sdk/application/Logistic/LogisticApplicationValidator.js +131 -0
  29. package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
  30. package/sdk/application/Order/OrderApplicationClient.js +32 -8
  31. package/sdk/application/Order/OrderApplicationModel.d.ts +6 -0
  32. package/sdk/application/Order/OrderApplicationModel.js +6 -0
  33. package/sdk/application/Order/OrderApplicationValidator.d.ts +20 -0
  34. package/sdk/application/Order/OrderApplicationValidator.js +8 -0
  35. package/sdk/application/Payment/PaymentApplicationClient.d.ts +46 -2
  36. package/sdk/application/Payment/PaymentApplicationClient.js +341 -10
  37. package/sdk/application/Payment/PaymentApplicationModel.d.ts +493 -186
  38. package/sdk/application/Payment/PaymentApplicationModel.js +341 -70
  39. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +59 -14
  40. package/sdk/application/Payment/PaymentApplicationValidator.js +64 -10
  41. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +34 -1
  42. package/sdk/application/PosCart/PosCartApplicationModel.js +24 -0
  43. package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
  44. package/sdk/application/Theme/ThemeApplicationClient.js +7 -3
  45. package/sdk/application/Theme/ThemeApplicationModel.d.ts +222 -36
  46. package/sdk/application/Theme/ThemeApplicationModel.js +322 -26
  47. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +10 -0
  48. package/sdk/application/Theme/ThemeApplicationValidator.js +4 -0
  49. package/sdk/application/User/UserApplicationClient.d.ts +33 -0
  50. package/sdk/application/User/UserApplicationClient.js +239 -0
  51. package/sdk/application/User/UserApplicationModel.d.ts +28 -13
  52. package/sdk/application/User/UserApplicationModel.js +36 -12
  53. package/sdk/application/User/UserApplicationValidator.d.ts +34 -1
  54. package/sdk/application/User/UserApplicationValidator.js +36 -0
  55. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +3 -15
  56. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +2 -14
  57. package/sdk/partner/Lead/LeadPartnerClient.d.ts +125 -0
  58. package/sdk/partner/Lead/LeadPartnerClient.js +785 -0
  59. package/sdk/partner/Lead/LeadPartnerModel.d.ts +1127 -0
  60. package/sdk/partner/Lead/LeadPartnerModel.js +896 -0
  61. package/sdk/partner/Lead/LeadPartnerValidator.d.ts +12 -0
  62. package/sdk/partner/Lead/LeadPartnerValidator.js +67 -0
  63. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +155 -0
  64. package/sdk/partner/Logistics/LogisticsPartnerClient.js +1195 -0
  65. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +372 -0
  66. package/sdk/partner/Logistics/LogisticsPartnerModel.js +442 -0
  67. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +16 -0
  68. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +123 -0
  69. package/sdk/partner/PartnerClient.d.ts +6 -0
  70. package/sdk/partner/PartnerClient.js +9 -0
  71. package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -0
  72. package/sdk/partner/Theme/ThemePartnerClient.js +80 -0
  73. package/sdk/partner/Theme/ThemePartnerModel.d.ts +100 -43
  74. package/sdk/partner/Theme/ThemePartnerModel.js +74 -30
  75. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -0
  76. package/sdk/partner/Theme/ThemePartnerValidator.js +9 -0
  77. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +99 -0
  78. package/sdk/partner/Webhook/WebhookPartnerClient.js +753 -0
  79. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +566 -0
  80. package/sdk/partner/Webhook/WebhookPartnerModel.js +583 -0
  81. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +12 -0
  82. package/sdk/partner/Webhook/WebhookPartnerValidator.js +74 -0
  83. package/sdk/partner/index.d.ts +3 -0
  84. package/sdk/partner/index.js +6 -0
  85. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
  86. package/sdk/platform/Billing/BillingPlatformClient.d.ts +11 -1
  87. package/sdk/platform/Billing/BillingPlatformClient.js +110 -3
  88. package/sdk/platform/Billing/BillingPlatformModel.d.ts +67 -1
  89. package/sdk/platform/Billing/BillingPlatformModel.js +78 -0
  90. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +43 -4
  91. package/sdk/platform/Billing/BillingPlatformValidator.js +29 -2
  92. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +1 -1
  93. package/sdk/platform/Cart/CartPlatformApplicationClient.js +7 -1
  94. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +4 -0
  95. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +4 -0
  96. package/sdk/platform/Cart/CartPlatformModel.d.ts +100 -5
  97. package/sdk/platform/Cart/CartPlatformModel.js +71 -4
  98. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +15 -11
  99. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +52 -21
  100. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +27 -0
  101. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +11 -0
  102. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +26 -4
  103. package/sdk/platform/Catalog/CatalogPlatformClient.js +173 -7
  104. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +304 -1
  105. package/sdk/platform/Catalog/CatalogPlatformModel.js +335 -0
  106. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -3
  107. package/sdk/platform/Catalog/CatalogPlatformValidator.js +27 -2
  108. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +138 -36
  109. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +739 -57
  110. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +128 -3
  111. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +111 -1
  112. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +150 -1
  113. package/sdk/platform/Communication/CommunicationPlatformModel.js +172 -0
  114. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +8 -2
  115. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +32 -4
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +38 -9
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +42 -8
  118. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +14 -0
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +6 -0
  120. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
  121. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
  122. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +371 -132
  123. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +288 -77
  124. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
  125. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
  126. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +391 -0
  127. package/sdk/platform/Content/ContentPlatformApplicationClient.js +3641 -1059
  128. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +351 -1
  129. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +410 -0
  130. package/sdk/platform/Content/ContentPlatformClient.d.ts +277 -0
  131. package/sdk/platform/Content/ContentPlatformClient.js +2011 -0
  132. package/sdk/platform/Content/ContentPlatformModel.d.ts +1100 -1
  133. package/sdk/platform/Content/ContentPlatformModel.js +1362 -46
  134. package/sdk/platform/Content/ContentPlatformValidator.d.ts +247 -0
  135. package/sdk/platform/Content/ContentPlatformValidator.js +319 -0
  136. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
  137. package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
  138. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +96 -13
  139. package/sdk/platform/Discount/DiscountPlatformModel.js +104 -12
  140. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +16 -6
  141. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +117 -8
  142. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +55 -4
  143. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +39 -2
  144. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +18 -19
  145. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +20 -18
  146. package/sdk/platform/Finance/FinancePlatformClient.d.ts +33 -0
  147. package/sdk/platform/Finance/FinancePlatformClient.js +240 -0
  148. package/sdk/platform/Finance/FinancePlatformModel.d.ts +151 -5
  149. package/sdk/platform/Finance/FinancePlatformModel.js +190 -4
  150. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +38 -1
  151. package/sdk/platform/Finance/FinancePlatformValidator.js +38 -0
  152. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +38 -28
  153. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +137 -56
  154. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +41 -29
  155. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +33 -21
  156. package/sdk/platform/Lead/LeadPlatformModel.d.ts +12 -3
  157. package/sdk/platform/Lead/LeadPlatformModel.js +16 -2
  158. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +23 -1
  159. package/sdk/platform/Order/OrderPlatformApplicationClient.js +178 -1
  160. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +39 -1
  161. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -0
  162. package/sdk/platform/Order/OrderPlatformClient.d.ts +202 -31
  163. package/sdk/platform/Order/OrderPlatformClient.js +2010 -586
  164. package/sdk/platform/Order/OrderPlatformModel.d.ts +1032 -470
  165. package/sdk/platform/Order/OrderPlatformModel.js +1187 -534
  166. package/sdk/platform/Order/OrderPlatformValidator.d.ts +318 -35
  167. package/sdk/platform/Order/OrderPlatformValidator.js +292 -29
  168. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +119 -13
  169. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +749 -39
  170. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +143 -7
  171. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +133 -6
  172. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
  173. package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
  174. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +996 -134
  175. package/sdk/platform/Payment/PaymentPlatformModel.js +721 -58
  176. package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
  177. package/sdk/platform/PlatformApplicationClient.js +4 -4
  178. package/sdk/platform/PlatformClient.d.ts +4 -2
  179. package/sdk/platform/PlatformClient.js +8 -4
  180. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +142 -66
  181. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +645 -147
  182. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +131 -63
  183. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +126 -47
  184. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +217 -105
  185. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +1136 -347
  186. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +912 -313
  187. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1071 -355
  188. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +382 -133
  189. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +266 -102
  190. package/sdk/platform/Theme/ThemePlatformClient.d.ts +11 -1
  191. package/sdk/platform/Theme/ThemePlatformClient.js +87 -3
  192. package/sdk/platform/Theme/ThemePlatformModel.d.ts +333 -47
  193. package/sdk/platform/Theme/ThemePlatformModel.js +395 -35
  194. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +28 -4
  195. package/sdk/platform/Theme/ThemePlatformValidator.js +21 -2
  196. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +116 -1
  197. package/sdk/platform/User/UserPlatformApplicationClient.js +931 -85
  198. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +224 -7
  199. package/sdk/platform/User/UserPlatformApplicationValidator.js +173 -5
  200. package/sdk/platform/User/UserPlatformModel.d.ts +344 -7
  201. package/sdk/platform/User/UserPlatformModel.js +256 -5
  202. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +47 -39
  203. package/sdk/platform/Webhook/WebhookPlatformClient.js +63 -61
  204. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +264 -156
  205. package/sdk/platform/Webhook/WebhookPlatformModel.js +276 -153
  206. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +7 -10
  207. package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
  208. package/sdk/platform/index.d.ts +1 -1
  209. package/sdk/platform/index.js +2 -2
  210. package/sdk/public/Billing/BillingPublicClient.d.ts +23 -0
  211. package/sdk/public/Billing/BillingPublicClient.js +116 -0
  212. package/sdk/public/Billing/BillingPublicModel.d.ts +92 -0
  213. package/sdk/public/Billing/BillingPublicModel.js +96 -0
  214. package/sdk/public/Billing/BillingPublicValidator.d.ts +18 -0
  215. package/sdk/public/Billing/BillingPublicValidator.js +19 -0
  216. package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
  217. package/sdk/public/Content/ContentPublicClient.js +114 -0
  218. package/sdk/public/Content/ContentPublicModel.d.ts +53 -0
  219. package/sdk/public/Content/ContentPublicModel.js +60 -0
  220. package/sdk/public/Content/ContentPublicValidator.d.ts +18 -0
  221. package/sdk/public/Content/ContentPublicValidator.js +19 -0
  222. package/sdk/public/PublicClient.d.ts +4 -0
  223. package/sdk/public/PublicClient.js +8 -0
  224. package/sdk/public/Webhook/WebhookPublicClient.d.ts +33 -0
  225. package/sdk/public/Webhook/WebhookPublicClient.js +242 -0
  226. package/sdk/public/Webhook/WebhookPublicModel.d.ts +147 -1
  227. package/sdk/public/Webhook/WebhookPublicModel.js +177 -1
  228. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +23 -1
  229. package/sdk/public/Webhook/WebhookPublicValidator.js +31 -0
  230. package/sdk/public/index.d.ts +2 -0
  231. package/sdk/public/index.js +4 -0
@@ -13,23 +13,24 @@ class Serviceability {
13
13
  }
14
14
 
15
15
  /**
16
- * @param {ServiceabilityPlatformApplicationValidator.AddAppDpParam} arg - Arg object
16
+ * @param {ServiceabilityPlatformApplicationValidator.CreateCourierPartnerRuleParam} arg
17
+ * - Arg object
18
+ *
17
19
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
18
20
  * @param {import("../PlatformAPIClient").Options} - Options
19
- * @returns {Promise<ServiceabilityPlatformModel.ApplicationCompanyDpViewResponse>}
20
- * - Success response
21
- *
22
- * @name addAppDp
23
- * @summary: Add application dp data
24
- * @description: This API add application dp data. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/addAppDp/).
21
+ * @returns {Promise<ServiceabilityPlatformModel.CourierPartnerRule>} -
22
+ * Success response
23
+ * @name createCourierPartnerRule
24
+ * @summary: Create Courier Rules.
25
+ * @description: Creates Courier Rules with rule configuration and dp priority - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/createCourierPartnerRule/).
25
26
  */
26
- async addAppDp(
27
+ async createCourierPartnerRule(
27
28
  { body, requestHeaders } = { requestHeaders: {} },
28
29
  { responseHeaders } = { responseHeaders: false }
29
30
  ) {
30
31
  const {
31
32
  error,
32
- } = ServiceabilityPlatformApplicationValidator.addAppDp().validate(
33
+ } = ServiceabilityPlatformApplicationValidator.createCourierPartnerRule().validate(
33
34
  {
34
35
  body,
35
36
  },
@@ -42,7 +43,7 @@ class Serviceability {
42
43
  // Showing warrnings if extra unknown parameters are found
43
44
  const {
44
45
  error: warrning,
45
- } = ServiceabilityPlatformApplicationValidator.addAppDp().validate(
46
+ } = ServiceabilityPlatformApplicationValidator.createCourierPartnerRule().validate(
46
47
  {
47
48
  body,
48
49
  },
@@ -51,7 +52,7 @@ class Serviceability {
51
52
  if (warrning) {
52
53
  Logger({
53
54
  level: "WARN",
54
- message: `Parameter Validation warrnings for platform > Serviceability > addAppDp \n ${warrning}`,
55
+ message: `Parameter Validation warrnings for platform > Serviceability > createCourierPartnerRule \n ${warrning}`,
55
56
  });
56
57
  }
57
58
 
@@ -60,7 +61,7 @@ class Serviceability {
60
61
  const response = await PlatformAPIClient.execute(
61
62
  this.config,
62
63
  "post",
63
- `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}`,
64
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/courier-partner/rules`,
64
65
  query_params,
65
66
  body,
66
67
  requestHeaders,
@@ -74,7 +75,7 @@ class Serviceability {
74
75
 
75
76
  const {
76
77
  error: res_error,
77
- } = ServiceabilityPlatformModel.ApplicationCompanyDpViewResponse().validate(
78
+ } = ServiceabilityPlatformModel.CourierPartnerRule().validate(
78
79
  responseData,
79
80
  { abortEarly: false, allowUnknown: true }
80
81
  );
@@ -85,7 +86,7 @@ class Serviceability {
85
86
  } else {
86
87
  Logger({
87
88
  level: "WARN",
88
- message: `Response Validation Warnings for platform > Serviceability > addAppDp \n ${res_error}`,
89
+ message: `Response Validation Warnings for platform > Serviceability > createCourierPartnerRule \n ${res_error}`,
89
90
  });
90
91
  }
91
92
  }
@@ -94,27 +95,27 @@ class Serviceability {
94
95
  }
95
96
 
96
97
  /**
97
- * @param {ServiceabilityPlatformApplicationValidator.DeleteAppDpParam} arg
98
+ * @param {ServiceabilityPlatformApplicationValidator.CreateStoreRulesParam} arg
98
99
  * - Arg object
99
100
  *
100
101
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
101
102
  * @param {import("../PlatformAPIClient").Options} - Options
102
- * @returns {Promise<ServiceabilityPlatformModel.ApplicationCompanyDpViewResponse>}
103
+ * @returns {Promise<ServiceabilityPlatformModel.StoreRuleResponseSchema>}
103
104
  * - Success response
104
105
  *
105
- * @name deleteAppDp
106
- * @summary: Delete application dp data
107
- * @description: This API remove application dp data. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/deleteAppDp/).
106
+ * @name createStoreRules
107
+ * @summary: Create Store Rule
108
+ * @description: Create Store Rule - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/createStoreRules/).
108
109
  */
109
- async deleteAppDp(
110
- { courierPartnerId, requestHeaders } = { requestHeaders: {} },
110
+ async createStoreRules(
111
+ { body, requestHeaders } = { requestHeaders: {} },
111
112
  { responseHeaders } = { responseHeaders: false }
112
113
  ) {
113
114
  const {
114
115
  error,
115
- } = ServiceabilityPlatformApplicationValidator.deleteAppDp().validate(
116
+ } = ServiceabilityPlatformApplicationValidator.createStoreRules().validate(
116
117
  {
117
- courierPartnerId,
118
+ body,
118
119
  },
119
120
  { abortEarly: false, allowUnknown: true }
120
121
  );
@@ -125,16 +126,16 @@ class Serviceability {
125
126
  // Showing warrnings if extra unknown parameters are found
126
127
  const {
127
128
  error: warrning,
128
- } = ServiceabilityPlatformApplicationValidator.deleteAppDp().validate(
129
+ } = ServiceabilityPlatformApplicationValidator.createStoreRules().validate(
129
130
  {
130
- courierPartnerId,
131
+ body,
131
132
  },
132
133
  { abortEarly: false, allowUnknown: false }
133
134
  );
134
135
  if (warrning) {
135
136
  Logger({
136
137
  level: "WARN",
137
- message: `Parameter Validation warrnings for platform > Serviceability > deleteAppDp \n ${warrning}`,
138
+ message: `Parameter Validation warrnings for platform > Serviceability > createStoreRules \n ${warrning}`,
138
139
  });
139
140
  }
140
141
 
@@ -142,10 +143,10 @@ class Serviceability {
142
143
 
143
144
  const response = await PlatformAPIClient.execute(
144
145
  this.config,
145
- "delete",
146
- `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/courier-partner/${courierPartnerId}`,
146
+ "post",
147
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/store/rules`,
147
148
  query_params,
148
- undefined,
149
+ body,
149
150
  requestHeaders,
150
151
  { responseHeaders }
151
152
  );
@@ -157,7 +158,7 @@ class Serviceability {
157
158
 
158
159
  const {
159
160
  error: res_error,
160
- } = ServiceabilityPlatformModel.ApplicationCompanyDpViewResponse().validate(
161
+ } = ServiceabilityPlatformModel.StoreRuleResponseSchema().validate(
161
162
  responseData,
162
163
  { abortEarly: false, allowUnknown: true }
163
164
  );
@@ -168,7 +169,7 @@ class Serviceability {
168
169
  } else {
169
170
  Logger({
170
171
  level: "WARN",
171
- message: `Response Validation Warnings for platform > Serviceability > deleteAppDp \n ${res_error}`,
172
+ message: `Response Validation Warnings for platform > Serviceability > createStoreRules \n ${res_error}`,
172
173
  });
173
174
  }
174
175
  }
@@ -177,25 +178,24 @@ class Serviceability {
177
178
  }
178
179
 
179
180
  /**
180
- * @param {ServiceabilityPlatformApplicationValidator.GetApplicationServiceabilityParam} arg
181
+ * @param {ServiceabilityPlatformApplicationValidator.GetApplicationConfigParam} arg
181
182
  * - Arg object
182
183
  *
183
184
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
184
185
  * @param {import("../PlatformAPIClient").Options} - Options
185
- * @returns {Promise<ServiceabilityPlatformModel.ApplicationServiceabilityConfigResponse>}
186
- * - Success response
187
- *
188
- * @name getApplicationServiceability
189
- * @summary: Zone configuration of application.
190
- * @description: This API returns serviceability config of the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getApplicationServiceability/).
186
+ * @returns {Promise<ServiceabilityPlatformModel.StoreRuleConfigData>} -
187
+ * Success response
188
+ * @name getApplicationConfig
189
+ * @summary: Get Application Configuration
190
+ * @description: Get Application Configuration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getApplicationConfig/).
191
191
  */
192
- async getApplicationServiceability(
192
+ async getApplicationConfig(
193
193
  { requestHeaders } = { requestHeaders: {} },
194
194
  { responseHeaders } = { responseHeaders: false }
195
195
  ) {
196
196
  const {
197
197
  error,
198
- } = ServiceabilityPlatformApplicationValidator.getApplicationServiceability().validate(
198
+ } = ServiceabilityPlatformApplicationValidator.getApplicationConfig().validate(
199
199
  {},
200
200
  { abortEarly: false, allowUnknown: true }
201
201
  );
@@ -206,14 +206,14 @@ class Serviceability {
206
206
  // Showing warrnings if extra unknown parameters are found
207
207
  const {
208
208
  error: warrning,
209
- } = ServiceabilityPlatformApplicationValidator.getApplicationServiceability().validate(
209
+ } = ServiceabilityPlatformApplicationValidator.getApplicationConfig().validate(
210
210
  {},
211
211
  { abortEarly: false, allowUnknown: false }
212
212
  );
213
213
  if (warrning) {
214
214
  Logger({
215
215
  level: "WARN",
216
- message: `Parameter Validation warrnings for platform > Serviceability > getApplicationServiceability \n ${warrning}`,
216
+ message: `Parameter Validation warrnings for platform > Serviceability > getApplicationConfig \n ${warrning}`,
217
217
  });
218
218
  }
219
219
 
@@ -222,7 +222,7 @@ class Serviceability {
222
222
  const response = await PlatformAPIClient.execute(
223
223
  this.config,
224
224
  "get",
225
- `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/serviceability`,
225
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/store/configuration`,
226
226
  query_params,
227
227
  undefined,
228
228
  requestHeaders,
@@ -236,7 +236,7 @@ class Serviceability {
236
236
 
237
237
  const {
238
238
  error: res_error,
239
- } = ServiceabilityPlatformModel.ApplicationServiceabilityConfigResponse().validate(
239
+ } = ServiceabilityPlatformModel.StoreRuleConfigData().validate(
240
240
  responseData,
241
241
  { abortEarly: false, allowUnknown: true }
242
242
  );
@@ -247,7 +247,7 @@ class Serviceability {
247
247
  } else {
248
248
  Logger({
249
249
  level: "WARN",
250
- message: `Response Validation Warnings for platform > Serviceability > getApplicationServiceability \n ${res_error}`,
250
+ message: `Response Validation Warnings for platform > Serviceability > getApplicationConfig \n ${res_error}`,
251
251
  });
252
252
  }
253
253
  }
@@ -256,25 +256,24 @@ class Serviceability {
256
256
  }
257
257
 
258
258
  /**
259
- * @param {ServiceabilityPlatformApplicationValidator.GetDpApplicationRulesParam} arg
259
+ * @param {ServiceabilityPlatformApplicationValidator.GetApplicationConfigurationParam} arg
260
260
  * - Arg object
261
261
  *
262
262
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
263
263
  * @param {import("../PlatformAPIClient").Options} - Options
264
- * @returns {Promise<ServiceabilityPlatformModel.DPApplicationRuleResponse>}
265
- * - Success response
266
- *
267
- * @name getDpApplicationRules
268
- * @summary: Get All DpApplicationRules rules added at application level from database.
269
- * @description: This API returns response of all rules of DpApplicationRules from mongo database. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getDpApplicationRules/).
264
+ * @returns {Promise<ServiceabilityPlatformModel.ApplicationConfig>} -
265
+ * Success response
266
+ * @name getApplicationConfiguration
267
+ * @summary: Get All Courier Rules applied to application
268
+ * @description: This API returns all the Courier Rules applied to an application - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getApplicationConfiguration/).
270
269
  */
271
- async getDpApplicationRules(
270
+ async getApplicationConfiguration(
272
271
  { requestHeaders } = { requestHeaders: {} },
273
272
  { responseHeaders } = { responseHeaders: false }
274
273
  ) {
275
274
  const {
276
275
  error,
277
- } = ServiceabilityPlatformApplicationValidator.getDpApplicationRules().validate(
276
+ } = ServiceabilityPlatformApplicationValidator.getApplicationConfiguration().validate(
278
277
  {},
279
278
  { abortEarly: false, allowUnknown: true }
280
279
  );
@@ -285,14 +284,14 @@ class Serviceability {
285
284
  // Showing warrnings if extra unknown parameters are found
286
285
  const {
287
286
  error: warrning,
288
- } = ServiceabilityPlatformApplicationValidator.getDpApplicationRules().validate(
287
+ } = ServiceabilityPlatformApplicationValidator.getApplicationConfiguration().validate(
289
288
  {},
290
289
  { abortEarly: false, allowUnknown: false }
291
290
  );
292
291
  if (warrning) {
293
292
  Logger({
294
293
  level: "WARN",
295
- message: `Parameter Validation warrnings for platform > Serviceability > getDpApplicationRules \n ${warrning}`,
294
+ message: `Parameter Validation warrnings for platform > Serviceability > getApplicationConfiguration \n ${warrning}`,
296
295
  });
297
296
  }
298
297
 
@@ -301,7 +300,7 @@ class Serviceability {
301
300
  const response = await PlatformAPIClient.execute(
302
301
  this.config,
303
302
  "get",
304
- `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/courier/priority`,
303
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/configuration`,
305
304
  query_params,
306
305
  undefined,
307
306
  requestHeaders,
@@ -315,10 +314,10 @@ class Serviceability {
315
314
 
316
315
  const {
317
316
  error: res_error,
318
- } = ServiceabilityPlatformModel.DPApplicationRuleResponse().validate(
319
- responseData,
320
- { abortEarly: false, allowUnknown: true }
321
- );
317
+ } = ServiceabilityPlatformModel.ApplicationConfig().validate(responseData, {
318
+ abortEarly: false,
319
+ allowUnknown: true,
320
+ });
322
321
 
323
322
  if (res_error) {
324
323
  if (this.config.options.strictResponseCheck === true) {
@@ -326,7 +325,7 @@ class Serviceability {
326
325
  } else {
327
326
  Logger({
328
327
  level: "WARN",
329
- message: `Response Validation Warnings for platform > Serviceability > getDpApplicationRules \n ${res_error}`,
328
+ message: `Response Validation Warnings for platform > Serviceability > getApplicationConfiguration \n ${res_error}`,
330
329
  });
331
330
  }
332
331
  }
@@ -335,7 +334,7 @@ class Serviceability {
335
334
  }
336
335
 
337
336
  /**
338
- * @param {ServiceabilityPlatformApplicationValidator.GetSelfShipParam} arg
337
+ * @param {ServiceabilityPlatformApplicationValidator.GetApplicationServiceabilitySelfShipmentParam} arg
339
338
  * - Arg object
340
339
  *
341
340
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -343,17 +342,17 @@ class Serviceability {
343
342
  * @returns {Promise<ServiceabilityPlatformModel.ApplicationSelfShipConfigResponse>}
344
343
  * - Success response
345
344
  *
346
- * @name getSelfShip
345
+ * @name getApplicationServiceabilitySelfShipment
347
346
  * @summary: Self-ship configuration of application.
348
- * @description: This API returns Self-ship configuration of the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getSelfShip/).
347
+ * @description: This API returns Self-ship configuration of the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getApplicationServiceabilitySelfShipment/).
349
348
  */
350
- async getSelfShip(
349
+ async getApplicationServiceabilitySelfShipment(
351
350
  { requestHeaders } = { requestHeaders: {} },
352
351
  { responseHeaders } = { responseHeaders: false }
353
352
  ) {
354
353
  const {
355
354
  error,
356
- } = ServiceabilityPlatformApplicationValidator.getSelfShip().validate(
355
+ } = ServiceabilityPlatformApplicationValidator.getApplicationServiceabilitySelfShipment().validate(
357
356
  {},
358
357
  { abortEarly: false, allowUnknown: true }
359
358
  );
@@ -364,14 +363,14 @@ class Serviceability {
364
363
  // Showing warrnings if extra unknown parameters are found
365
364
  const {
366
365
  error: warrning,
367
- } = ServiceabilityPlatformApplicationValidator.getSelfShip().validate(
366
+ } = ServiceabilityPlatformApplicationValidator.getApplicationServiceabilitySelfShipment().validate(
368
367
  {},
369
368
  { abortEarly: false, allowUnknown: false }
370
369
  );
371
370
  if (warrning) {
372
371
  Logger({
373
372
  level: "WARN",
374
- message: `Parameter Validation warrnings for platform > Serviceability > getSelfShip \n ${warrning}`,
373
+ message: `Parameter Validation warrnings for platform > Serviceability > getApplicationServiceabilitySelfShipment \n ${warrning}`,
375
374
  });
376
375
  }
377
376
 
@@ -405,7 +404,7 @@ class Serviceability {
405
404
  } else {
406
405
  Logger({
407
406
  level: "WARN",
408
- message: `Response Validation Warnings for platform > Serviceability > getSelfShip \n ${res_error}`,
407
+ message: `Response Validation Warnings for platform > Serviceability > getApplicationServiceabilitySelfShipment \n ${res_error}`,
409
408
  });
410
409
  }
411
410
  }
@@ -414,27 +413,111 @@ class Serviceability {
414
413
  }
415
414
 
416
415
  /**
417
- * @param {ServiceabilityPlatformApplicationValidator.GetZoneFromPincodeViewParam} arg
416
+ * @param {ServiceabilityPlatformApplicationValidator.GetCourierPartnerRuleParam} arg
418
417
  * - Arg object
419
418
  *
420
419
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
421
420
  * @param {import("../PlatformAPIClient").Options} - Options
422
- * @returns {Promise<ServiceabilityPlatformModel.GetZoneFromPincodeViewResponse>}
421
+ * @returns {Promise<ServiceabilityPlatformModel.CourierPartnerRule>} -
422
+ * Success response
423
+ * @name getCourierPartnerRule
424
+ * @summary: Fetch of Courier Rule.
425
+ * @description: This API returns Courier Rule. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getCourierPartnerRule/).
426
+ */
427
+ async getCourierPartnerRule(
428
+ { ruleId, requestHeaders } = { requestHeaders: {} },
429
+ { responseHeaders } = { responseHeaders: false }
430
+ ) {
431
+ const {
432
+ error,
433
+ } = ServiceabilityPlatformApplicationValidator.getCourierPartnerRule().validate(
434
+ {
435
+ ruleId,
436
+ },
437
+ { abortEarly: false, allowUnknown: true }
438
+ );
439
+ if (error) {
440
+ return Promise.reject(new FDKClientValidationError(error));
441
+ }
442
+
443
+ // Showing warrnings if extra unknown parameters are found
444
+ const {
445
+ error: warrning,
446
+ } = ServiceabilityPlatformApplicationValidator.getCourierPartnerRule().validate(
447
+ {
448
+ ruleId,
449
+ },
450
+ { abortEarly: false, allowUnknown: false }
451
+ );
452
+ if (warrning) {
453
+ Logger({
454
+ level: "WARN",
455
+ message: `Parameter Validation warrnings for platform > Serviceability > getCourierPartnerRule \n ${warrning}`,
456
+ });
457
+ }
458
+
459
+ const query_params = {};
460
+
461
+ const response = await PlatformAPIClient.execute(
462
+ this.config,
463
+ "get",
464
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/courier-partner/rules/${ruleId}`,
465
+ query_params,
466
+ undefined,
467
+ requestHeaders,
468
+ { responseHeaders }
469
+ );
470
+
471
+ let responseData = response;
472
+ if (responseHeaders) {
473
+ responseData = response[0];
474
+ }
475
+
476
+ const {
477
+ error: res_error,
478
+ } = ServiceabilityPlatformModel.CourierPartnerRule().validate(
479
+ responseData,
480
+ { abortEarly: false, allowUnknown: true }
481
+ );
482
+
483
+ if (res_error) {
484
+ if (this.config.options.strictResponseCheck === true) {
485
+ return Promise.reject(new FDKResponseValidationError(res_error));
486
+ } else {
487
+ Logger({
488
+ level: "WARN",
489
+ message: `Response Validation Warnings for platform > Serviceability > getCourierPartnerRule \n ${res_error}`,
490
+ });
491
+ }
492
+ }
493
+
494
+ return response;
495
+ }
496
+
497
+ /**
498
+ * @param {ServiceabilityPlatformApplicationValidator.GetCourierPartnerRulesParam} arg
499
+ * - Arg object
500
+ *
501
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
502
+ * @param {import("../PlatformAPIClient").Options} - Options
503
+ * @returns {Promise<ServiceabilityPlatformModel.CourierPartnerRulesListResponse>}
423
504
  * - Success response
424
505
  *
425
- * @name getZoneFromPincodeView
426
- * @summary: GET zone from the Pincode.
427
- * @description: This API returns zone from the Pincode View. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getZoneFromPincodeView/).
506
+ * @name getCourierPartnerRules
507
+ * @summary: Fetch Courier Rules List
508
+ * @description: This API returns Courier Rules List - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getCourierPartnerRules/).
428
509
  */
429
- async getZoneFromPincodeView(
430
- { body, requestHeaders } = { requestHeaders: {} },
510
+ async getCourierPartnerRules(
511
+ { pageNo, pageSize, status, requestHeaders } = { requestHeaders: {} },
431
512
  { responseHeaders } = { responseHeaders: false }
432
513
  ) {
433
514
  const {
434
515
  error,
435
- } = ServiceabilityPlatformApplicationValidator.getZoneFromPincodeView().validate(
516
+ } = ServiceabilityPlatformApplicationValidator.getCourierPartnerRules().validate(
436
517
  {
437
- body,
518
+ pageNo,
519
+ pageSize,
520
+ status,
438
521
  },
439
522
  { abortEarly: false, allowUnknown: true }
440
523
  );
@@ -445,27 +528,114 @@ class Serviceability {
445
528
  // Showing warrnings if extra unknown parameters are found
446
529
  const {
447
530
  error: warrning,
448
- } = ServiceabilityPlatformApplicationValidator.getZoneFromPincodeView().validate(
531
+ } = ServiceabilityPlatformApplicationValidator.getCourierPartnerRules().validate(
449
532
  {
450
- body,
533
+ pageNo,
534
+ pageSize,
535
+ status,
451
536
  },
452
537
  { abortEarly: false, allowUnknown: false }
453
538
  );
454
539
  if (warrning) {
455
540
  Logger({
456
541
  level: "WARN",
457
- message: `Parameter Validation warrnings for platform > Serviceability > getZoneFromPincodeView \n ${warrning}`,
542
+ message: `Parameter Validation warrnings for platform > Serviceability > getCourierPartnerRules \n ${warrning}`,
458
543
  });
459
544
  }
460
545
 
461
546
  const query_params = {};
547
+ query_params["page_no"] = pageNo;
548
+ query_params["page_size"] = pageSize;
549
+ query_params["status"] = status;
462
550
 
463
551
  const response = await PlatformAPIClient.execute(
464
552
  this.config,
465
- "post",
466
- `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/zones`,
553
+ "get",
554
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/courier-partner/rules`,
467
555
  query_params,
468
- body,
556
+ undefined,
557
+ requestHeaders,
558
+ { responseHeaders }
559
+ );
560
+
561
+ let responseData = response;
562
+ if (responseHeaders) {
563
+ responseData = response[0];
564
+ }
565
+
566
+ const {
567
+ error: res_error,
568
+ } = ServiceabilityPlatformModel.CourierPartnerRulesListResponse().validate(
569
+ responseData,
570
+ { abortEarly: false, allowUnknown: true }
571
+ );
572
+
573
+ if (res_error) {
574
+ if (this.config.options.strictResponseCheck === true) {
575
+ return Promise.reject(new FDKResponseValidationError(res_error));
576
+ } else {
577
+ Logger({
578
+ level: "WARN",
579
+ message: `Response Validation Warnings for platform > Serviceability > getCourierPartnerRules \n ${res_error}`,
580
+ });
581
+ }
582
+ }
583
+
584
+ return response;
585
+ }
586
+
587
+ /**
588
+ * @param {ServiceabilityPlatformApplicationValidator.GetStoreRuleParam} arg
589
+ * - Arg object
590
+ *
591
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
592
+ * @param {import("../PlatformAPIClient").Options} - Options
593
+ * @returns {Promise<ServiceabilityPlatformModel.StoreRuleDataSchema>} -
594
+ * Success response
595
+ * @name getStoreRule
596
+ * @summary: Get Single Store Rule
597
+ * @description: Get Single Store Rule - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getStoreRule/).
598
+ */
599
+ async getStoreRule(
600
+ { ruleUid, requestHeaders } = { requestHeaders: {} },
601
+ { responseHeaders } = { responseHeaders: false }
602
+ ) {
603
+ const {
604
+ error,
605
+ } = ServiceabilityPlatformApplicationValidator.getStoreRule().validate(
606
+ {
607
+ ruleUid,
608
+ },
609
+ { abortEarly: false, allowUnknown: true }
610
+ );
611
+ if (error) {
612
+ return Promise.reject(new FDKClientValidationError(error));
613
+ }
614
+
615
+ // Showing warrnings if extra unknown parameters are found
616
+ const {
617
+ error: warrning,
618
+ } = ServiceabilityPlatformApplicationValidator.getStoreRule().validate(
619
+ {
620
+ ruleUid,
621
+ },
622
+ { abortEarly: false, allowUnknown: false }
623
+ );
624
+ if (warrning) {
625
+ Logger({
626
+ level: "WARN",
627
+ message: `Parameter Validation warrnings for platform > Serviceability > getStoreRule \n ${warrning}`,
628
+ });
629
+ }
630
+
631
+ const query_params = {};
632
+
633
+ const response = await PlatformAPIClient.execute(
634
+ this.config,
635
+ "get",
636
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/store/rules/${ruleUid}`,
637
+ query_params,
638
+ undefined,
469
639
  requestHeaders,
470
640
  { responseHeaders }
471
641
  );
@@ -477,7 +647,7 @@ class Serviceability {
477
647
 
478
648
  const {
479
649
  error: res_error,
480
- } = ServiceabilityPlatformModel.GetZoneFromPincodeViewResponse().validate(
650
+ } = ServiceabilityPlatformModel.StoreRuleDataSchema().validate(
481
651
  responseData,
482
652
  { abortEarly: false, allowUnknown: true }
483
653
  );
@@ -488,7 +658,7 @@ class Serviceability {
488
658
  } else {
489
659
  Logger({
490
660
  level: "WARN",
491
- message: `Response Validation Warnings for platform > Serviceability > getZoneFromPincodeView \n ${res_error}`,
661
+ message: `Response Validation Warnings for platform > Serviceability > getStoreRule \n ${res_error}`,
492
662
  });
493
663
  }
494
664
  }
@@ -497,30 +667,29 @@ class Serviceability {
497
667
  }
498
668
 
499
669
  /**
500
- * @param {ServiceabilityPlatformApplicationValidator.GetZonesFromApplicationIdViewParam} arg
670
+ * @param {ServiceabilityPlatformApplicationValidator.GetStoreRulesParam} arg
501
671
  * - Arg object
502
672
  *
503
673
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
504
674
  * @param {import("../PlatformAPIClient").Options} - Options
505
- * @returns {Promise<ServiceabilityPlatformModel.GetZoneFromApplicationIdViewResponse>}
675
+ * @returns {Promise<ServiceabilityPlatformModel.GetStoreRulesApiResponse>}
506
676
  * - Success response
507
677
  *
508
- * @name getZonesFromApplicationIdView
509
- * @summary: GET zones from the application_id.
510
- * @description: This API returns zones from the application_id View. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getZonesFromApplicationIdView/).
678
+ * @name getStoreRules
679
+ * @summary: Get Multiple Store Rules
680
+ * @description: Get Multiple Store Rules - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/getStoreRules/).
511
681
  */
512
- async getZonesFromApplicationIdView(
513
- { pageNo, pageSize, zoneId, q, requestHeaders } = { requestHeaders: {} },
682
+ async getStoreRules(
683
+ { pageNo, pageSize, status, requestHeaders } = { requestHeaders: {} },
514
684
  { responseHeaders } = { responseHeaders: false }
515
685
  ) {
516
686
  const {
517
687
  error,
518
- } = ServiceabilityPlatformApplicationValidator.getZonesFromApplicationIdView().validate(
688
+ } = ServiceabilityPlatformApplicationValidator.getStoreRules().validate(
519
689
  {
520
690
  pageNo,
521
691
  pageSize,
522
- zoneId,
523
- q,
692
+ status,
524
693
  },
525
694
  { abortEarly: false, allowUnknown: true }
526
695
  );
@@ -531,32 +700,30 @@ class Serviceability {
531
700
  // Showing warrnings if extra unknown parameters are found
532
701
  const {
533
702
  error: warrning,
534
- } = ServiceabilityPlatformApplicationValidator.getZonesFromApplicationIdView().validate(
703
+ } = ServiceabilityPlatformApplicationValidator.getStoreRules().validate(
535
704
  {
536
705
  pageNo,
537
706
  pageSize,
538
- zoneId,
539
- q,
707
+ status,
540
708
  },
541
709
  { abortEarly: false, allowUnknown: false }
542
710
  );
543
711
  if (warrning) {
544
712
  Logger({
545
713
  level: "WARN",
546
- message: `Parameter Validation warrnings for platform > Serviceability > getZonesFromApplicationIdView \n ${warrning}`,
714
+ message: `Parameter Validation warrnings for platform > Serviceability > getStoreRules \n ${warrning}`,
547
715
  });
548
716
  }
549
717
 
550
718
  const query_params = {};
551
719
  query_params["page_no"] = pageNo;
552
720
  query_params["page_size"] = pageSize;
553
- query_params["zone_id"] = zoneId;
554
- query_params["q"] = q;
721
+ query_params["status"] = status;
555
722
 
556
723
  const response = await PlatformAPIClient.execute(
557
724
  this.config,
558
725
  "get",
559
- `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/zones`,
726
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/store/rules`,
560
727
  query_params,
561
728
  undefined,
562
729
  requestHeaders,
@@ -570,7 +737,7 @@ class Serviceability {
570
737
 
571
738
  const {
572
739
  error: res_error,
573
- } = ServiceabilityPlatformModel.GetZoneFromApplicationIdViewResponse().validate(
740
+ } = ServiceabilityPlatformModel.GetStoreRulesApiResponse().validate(
574
741
  responseData,
575
742
  { abortEarly: false, allowUnknown: true }
576
743
  );
@@ -581,7 +748,7 @@ class Serviceability {
581
748
  } else {
582
749
  Logger({
583
750
  level: "WARN",
584
- message: `Response Validation Warnings for platform > Serviceability > getZonesFromApplicationIdView \n ${res_error}`,
751
+ message: `Response Validation Warnings for platform > Serviceability > getStoreRules \n ${res_error}`,
585
752
  });
586
753
  }
587
754
  }
@@ -590,25 +757,107 @@ class Serviceability {
590
757
  }
591
758
 
592
759
  /**
593
- * @param {ServiceabilityPlatformApplicationValidator.UpdateApplicationServiceabilityParam} arg
760
+ * @param {ServiceabilityPlatformApplicationValidator.InsertApplicationConfigParam} arg
594
761
  * - Arg object
595
762
  *
596
763
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
597
764
  * @param {import("../PlatformAPIClient").Options} - Options
598
- * @returns {Promise<ServiceabilityPlatformModel.ApplicationServiceabilityConfigResponse>}
765
+ * @returns {Promise<ServiceabilityPlatformModel.StoreRuleConfigData>} -
766
+ * Success response
767
+ * @name insertApplicationConfig
768
+ * @summary: Insert Application Configuration
769
+ * @description: Insert Application Configuration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/insertApplicationConfig/).
770
+ */
771
+ async insertApplicationConfig(
772
+ { body, requestHeaders } = { requestHeaders: {} },
773
+ { responseHeaders } = { responseHeaders: false }
774
+ ) {
775
+ const {
776
+ error,
777
+ } = ServiceabilityPlatformApplicationValidator.insertApplicationConfig().validate(
778
+ {
779
+ body,
780
+ },
781
+ { abortEarly: false, allowUnknown: true }
782
+ );
783
+ if (error) {
784
+ return Promise.reject(new FDKClientValidationError(error));
785
+ }
786
+
787
+ // Showing warrnings if extra unknown parameters are found
788
+ const {
789
+ error: warrning,
790
+ } = ServiceabilityPlatformApplicationValidator.insertApplicationConfig().validate(
791
+ {
792
+ body,
793
+ },
794
+ { abortEarly: false, allowUnknown: false }
795
+ );
796
+ if (warrning) {
797
+ Logger({
798
+ level: "WARN",
799
+ message: `Parameter Validation warrnings for platform > Serviceability > insertApplicationConfig \n ${warrning}`,
800
+ });
801
+ }
802
+
803
+ const query_params = {};
804
+
805
+ const response = await PlatformAPIClient.execute(
806
+ this.config,
807
+ "post",
808
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/store/configuration`,
809
+ query_params,
810
+ body,
811
+ requestHeaders,
812
+ { responseHeaders }
813
+ );
814
+
815
+ let responseData = response;
816
+ if (responseHeaders) {
817
+ responseData = response[0];
818
+ }
819
+
820
+ const {
821
+ error: res_error,
822
+ } = ServiceabilityPlatformModel.StoreRuleConfigData().validate(
823
+ responseData,
824
+ { abortEarly: false, allowUnknown: true }
825
+ );
826
+
827
+ if (res_error) {
828
+ if (this.config.options.strictResponseCheck === true) {
829
+ return Promise.reject(new FDKResponseValidationError(res_error));
830
+ } else {
831
+ Logger({
832
+ level: "WARN",
833
+ message: `Response Validation Warnings for platform > Serviceability > insertApplicationConfig \n ${res_error}`,
834
+ });
835
+ }
836
+ }
837
+
838
+ return response;
839
+ }
840
+
841
+ /**
842
+ * @param {ServiceabilityPlatformApplicationValidator.PatchApplicationServiceabilitySelfShipmentParam} arg
843
+ * - Arg object
844
+ *
845
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
846
+ * @param {import("../PlatformAPIClient").Options} - Options
847
+ * @returns {Promise<ServiceabilityPlatformModel.ApplicationSelfShipConfigResponse>}
599
848
  * - Success response
600
849
  *
601
- * @name updateApplicationServiceability
602
- * @summary: Zone configuration of application.
603
- * @description: This API updates serviceability config of the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updateApplicationServiceability/).
850
+ * @name patchApplicationServiceabilitySelfShipment
851
+ * @summary: Self-ship configuration of application.
852
+ * @description: This API updates Self-ship configuration of the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/patchApplicationServiceabilitySelfShipment/).
604
853
  */
605
- async updateApplicationServiceability(
854
+ async patchApplicationServiceabilitySelfShipment(
606
855
  { body, requestHeaders } = { requestHeaders: {} },
607
856
  { responseHeaders } = { responseHeaders: false }
608
857
  ) {
609
858
  const {
610
859
  error,
611
- } = ServiceabilityPlatformApplicationValidator.updateApplicationServiceability().validate(
860
+ } = ServiceabilityPlatformApplicationValidator.patchApplicationServiceabilitySelfShipment().validate(
612
861
  {
613
862
  body,
614
863
  },
@@ -621,7 +870,7 @@ class Serviceability {
621
870
  // Showing warrnings if extra unknown parameters are found
622
871
  const {
623
872
  error: warrning,
624
- } = ServiceabilityPlatformApplicationValidator.updateApplicationServiceability().validate(
873
+ } = ServiceabilityPlatformApplicationValidator.patchApplicationServiceabilitySelfShipment().validate(
625
874
  {
626
875
  body,
627
876
  },
@@ -630,7 +879,7 @@ class Serviceability {
630
879
  if (warrning) {
631
880
  Logger({
632
881
  level: "WARN",
633
- message: `Parameter Validation warrnings for platform > Serviceability > updateApplicationServiceability \n ${warrning}`,
882
+ message: `Parameter Validation warrnings for platform > Serviceability > patchApplicationServiceabilitySelfShipment \n ${warrning}`,
634
883
  });
635
884
  }
636
885
 
@@ -638,8 +887,8 @@ class Serviceability {
638
887
 
639
888
  const response = await PlatformAPIClient.execute(
640
889
  this.config,
641
- "post",
642
- `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/serviceability`,
890
+ "patch",
891
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/selfship`,
643
892
  query_params,
644
893
  body,
645
894
  requestHeaders,
@@ -653,7 +902,7 @@ class Serviceability {
653
902
 
654
903
  const {
655
904
  error: res_error,
656
- } = ServiceabilityPlatformModel.ApplicationServiceabilityConfigResponse().validate(
905
+ } = ServiceabilityPlatformModel.ApplicationSelfShipConfigResponse().validate(
657
906
  responseData,
658
907
  { abortEarly: false, allowUnknown: true }
659
908
  );
@@ -664,7 +913,255 @@ class Serviceability {
664
913
  } else {
665
914
  Logger({
666
915
  level: "WARN",
667
- message: `Response Validation Warnings for platform > Serviceability > updateApplicationServiceability \n ${res_error}`,
916
+ message: `Response Validation Warnings for platform > Serviceability > patchApplicationServiceabilitySelfShipment \n ${res_error}`,
917
+ });
918
+ }
919
+ }
920
+
921
+ return response;
922
+ }
923
+
924
+ /**
925
+ * @param {ServiceabilityPlatformApplicationValidator.UpdateApplicationConfigurationParam} arg
926
+ * - Arg object
927
+ *
928
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
929
+ * @param {import("../PlatformAPIClient").Options} - Options
930
+ * @returns {Promise<ServiceabilityPlatformModel.ApplicationConfig>} -
931
+ * Success response
932
+ * @name updateApplicationConfiguration
933
+ * @summary: Apply configuration to an application
934
+ * @description: Apply configuration to application to set DP rules and Zone configuration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updateApplicationConfiguration/).
935
+ */
936
+ async updateApplicationConfiguration(
937
+ { body, requestHeaders } = { requestHeaders: {} },
938
+ { responseHeaders } = { responseHeaders: false }
939
+ ) {
940
+ const {
941
+ error,
942
+ } = ServiceabilityPlatformApplicationValidator.updateApplicationConfiguration().validate(
943
+ {
944
+ body,
945
+ },
946
+ { abortEarly: false, allowUnknown: true }
947
+ );
948
+ if (error) {
949
+ return Promise.reject(new FDKClientValidationError(error));
950
+ }
951
+
952
+ // Showing warrnings if extra unknown parameters are found
953
+ const {
954
+ error: warrning,
955
+ } = ServiceabilityPlatformApplicationValidator.updateApplicationConfiguration().validate(
956
+ {
957
+ body,
958
+ },
959
+ { abortEarly: false, allowUnknown: false }
960
+ );
961
+ if (warrning) {
962
+ Logger({
963
+ level: "WARN",
964
+ message: `Parameter Validation warrnings for platform > Serviceability > updateApplicationConfiguration \n ${warrning}`,
965
+ });
966
+ }
967
+
968
+ const query_params = {};
969
+
970
+ const response = await PlatformAPIClient.execute(
971
+ this.config,
972
+ "put",
973
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/configuration`,
974
+ query_params,
975
+ body,
976
+ requestHeaders,
977
+ { responseHeaders }
978
+ );
979
+
980
+ let responseData = response;
981
+ if (responseHeaders) {
982
+ responseData = response[0];
983
+ }
984
+
985
+ const {
986
+ error: res_error,
987
+ } = ServiceabilityPlatformModel.ApplicationConfig().validate(responseData, {
988
+ abortEarly: false,
989
+ allowUnknown: true,
990
+ });
991
+
992
+ if (res_error) {
993
+ if (this.config.options.strictResponseCheck === true) {
994
+ return Promise.reject(new FDKResponseValidationError(res_error));
995
+ } else {
996
+ Logger({
997
+ level: "WARN",
998
+ message: `Response Validation Warnings for platform > Serviceability > updateApplicationConfiguration \n ${res_error}`,
999
+ });
1000
+ }
1001
+ }
1002
+
1003
+ return response;
1004
+ }
1005
+
1006
+ /**
1007
+ * @param {ServiceabilityPlatformApplicationValidator.UpdateCourierPartnerRulePriorityParam} arg
1008
+ * - Arg object
1009
+ *
1010
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1011
+ * @param {import("../PlatformAPIClient").Options} - Options
1012
+ * @returns {Promise<ServiceabilityPlatformModel.RulePriorityResponse>} -
1013
+ * Success response
1014
+ * @name updateCourierPartnerRulePriority
1015
+ * @summary: Updates Courier Partner Rules Priority for a sales channel
1016
+ * @description: Updates Courier Partner Rules Priority for a sales channel - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updateCourierPartnerRulePriority/).
1017
+ */
1018
+ async updateCourierPartnerRulePriority(
1019
+ { body, requestHeaders } = { requestHeaders: {} },
1020
+ { responseHeaders } = { responseHeaders: false }
1021
+ ) {
1022
+ const {
1023
+ error,
1024
+ } = ServiceabilityPlatformApplicationValidator.updateCourierPartnerRulePriority().validate(
1025
+ {
1026
+ body,
1027
+ },
1028
+ { abortEarly: false, allowUnknown: true }
1029
+ );
1030
+ if (error) {
1031
+ return Promise.reject(new FDKClientValidationError(error));
1032
+ }
1033
+
1034
+ // Showing warrnings if extra unknown parameters are found
1035
+ const {
1036
+ error: warrning,
1037
+ } = ServiceabilityPlatformApplicationValidator.updateCourierPartnerRulePriority().validate(
1038
+ {
1039
+ body,
1040
+ },
1041
+ { abortEarly: false, allowUnknown: false }
1042
+ );
1043
+ if (warrning) {
1044
+ Logger({
1045
+ level: "WARN",
1046
+ message: `Parameter Validation warrnings for platform > Serviceability > updateCourierPartnerRulePriority \n ${warrning}`,
1047
+ });
1048
+ }
1049
+
1050
+ const query_params = {};
1051
+
1052
+ const response = await PlatformAPIClient.execute(
1053
+ this.config,
1054
+ "put",
1055
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/courier-partner/rules/priority`,
1056
+ query_params,
1057
+ body,
1058
+ requestHeaders,
1059
+ { responseHeaders }
1060
+ );
1061
+
1062
+ let responseData = response;
1063
+ if (responseHeaders) {
1064
+ responseData = response[0];
1065
+ }
1066
+
1067
+ const {
1068
+ error: res_error,
1069
+ } = ServiceabilityPlatformModel.RulePriorityResponse().validate(
1070
+ responseData,
1071
+ { abortEarly: false, allowUnknown: true }
1072
+ );
1073
+
1074
+ if (res_error) {
1075
+ if (this.config.options.strictResponseCheck === true) {
1076
+ return Promise.reject(new FDKResponseValidationError(res_error));
1077
+ } else {
1078
+ Logger({
1079
+ level: "WARN",
1080
+ message: `Response Validation Warnings for platform > Serviceability > updateCourierPartnerRulePriority \n ${res_error}`,
1081
+ });
1082
+ }
1083
+ }
1084
+
1085
+ return response;
1086
+ }
1087
+
1088
+ /**
1089
+ * @param {ServiceabilityPlatformApplicationValidator.UpdateCourierRuleParam} arg
1090
+ * - Arg object
1091
+ *
1092
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1093
+ * @param {import("../PlatformAPIClient").Options} - Options
1094
+ * @returns {Promise<ServiceabilityPlatformModel.CourierPartnerRule>} -
1095
+ * Success response
1096
+ * @name updateCourierRule
1097
+ * @summary: Updating of Courier Rule.
1098
+ * @description: This API updates and returns Courier Rule. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updateCourierRule/).
1099
+ */
1100
+ async updateCourierRule(
1101
+ { ruleId, body, requestHeaders } = { requestHeaders: {} },
1102
+ { responseHeaders } = { responseHeaders: false }
1103
+ ) {
1104
+ const {
1105
+ error,
1106
+ } = ServiceabilityPlatformApplicationValidator.updateCourierRule().validate(
1107
+ {
1108
+ ruleId,
1109
+ body,
1110
+ },
1111
+ { abortEarly: false, allowUnknown: true }
1112
+ );
1113
+ if (error) {
1114
+ return Promise.reject(new FDKClientValidationError(error));
1115
+ }
1116
+
1117
+ // Showing warrnings if extra unknown parameters are found
1118
+ const {
1119
+ error: warrning,
1120
+ } = ServiceabilityPlatformApplicationValidator.updateCourierRule().validate(
1121
+ {
1122
+ ruleId,
1123
+ body,
1124
+ },
1125
+ { abortEarly: false, allowUnknown: false }
1126
+ );
1127
+ if (warrning) {
1128
+ Logger({
1129
+ level: "WARN",
1130
+ message: `Parameter Validation warrnings for platform > Serviceability > updateCourierRule \n ${warrning}`,
1131
+ });
1132
+ }
1133
+
1134
+ const query_params = {};
1135
+
1136
+ const response = await PlatformAPIClient.execute(
1137
+ this.config,
1138
+ "put",
1139
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/courier-partner/rules/${ruleId}`,
1140
+ query_params,
1141
+ body,
1142
+ requestHeaders,
1143
+ { responseHeaders }
1144
+ );
1145
+
1146
+ let responseData = response;
1147
+ if (responseHeaders) {
1148
+ responseData = response[0];
1149
+ }
1150
+
1151
+ const {
1152
+ error: res_error,
1153
+ } = ServiceabilityPlatformModel.CourierPartnerRule().validate(
1154
+ responseData,
1155
+ { abortEarly: false, allowUnknown: true }
1156
+ );
1157
+
1158
+ if (res_error) {
1159
+ if (this.config.options.strictResponseCheck === true) {
1160
+ return Promise.reject(new FDKResponseValidationError(res_error));
1161
+ } else {
1162
+ Logger({
1163
+ level: "WARN",
1164
+ message: `Response Validation Warnings for platform > Serviceability > updateCourierRule \n ${res_error}`,
668
1165
  });
669
1166
  }
670
1167
  }
@@ -1004,26 +1501,27 @@ class Serviceability {
1004
1501
  }
1005
1502
 
1006
1503
  /**
1007
- * @param {ServiceabilityPlatformApplicationValidator.UpdateSelfShipParam} arg
1504
+ * @param {ServiceabilityPlatformApplicationValidator.UpdateStoreRulesParam} arg
1008
1505
  * - Arg object
1009
1506
  *
1010
1507
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1011
1508
  * @param {import("../PlatformAPIClient").Options} - Options
1012
- * @returns {Promise<ServiceabilityPlatformModel.ApplicationSelfShipConfigResponse>}
1509
+ * @returns {Promise<ServiceabilityPlatformModel.StoreRuleUpdateResponseSchema>}
1013
1510
  * - Success response
1014
1511
  *
1015
- * @name updateSelfShip
1016
- * @summary: Self-ship configuration of application.
1017
- * @description: This API updates Self-ship configuration of the application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updateSelfShip/).
1512
+ * @name updateStoreRules
1513
+ * @summary: Update Store Rule
1514
+ * @description: Update Store Rule - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updateStoreRules/).
1018
1515
  */
1019
- async updateSelfShip(
1020
- { body, requestHeaders } = { requestHeaders: {} },
1516
+ async updateStoreRules(
1517
+ { ruleUid, body, requestHeaders } = { requestHeaders: {} },
1021
1518
  { responseHeaders } = { responseHeaders: false }
1022
1519
  ) {
1023
1520
  const {
1024
1521
  error,
1025
- } = ServiceabilityPlatformApplicationValidator.updateSelfShip().validate(
1522
+ } = ServiceabilityPlatformApplicationValidator.updateStoreRules().validate(
1026
1523
  {
1524
+ ruleUid,
1027
1525
  body,
1028
1526
  },
1029
1527
  { abortEarly: false, allowUnknown: true }
@@ -1035,8 +1533,9 @@ class Serviceability {
1035
1533
  // Showing warrnings if extra unknown parameters are found
1036
1534
  const {
1037
1535
  error: warrning,
1038
- } = ServiceabilityPlatformApplicationValidator.updateSelfShip().validate(
1536
+ } = ServiceabilityPlatformApplicationValidator.updateStoreRules().validate(
1039
1537
  {
1538
+ ruleUid,
1040
1539
  body,
1041
1540
  },
1042
1541
  { abortEarly: false, allowUnknown: false }
@@ -1044,7 +1543,7 @@ class Serviceability {
1044
1543
  if (warrning) {
1045
1544
  Logger({
1046
1545
  level: "WARN",
1047
- message: `Parameter Validation warrnings for platform > Serviceability > updateSelfShip \n ${warrning}`,
1546
+ message: `Parameter Validation warrnings for platform > Serviceability > updateStoreRules \n ${warrning}`,
1048
1547
  });
1049
1548
  }
1050
1549
 
@@ -1052,8 +1551,8 @@ class Serviceability {
1052
1551
 
1053
1552
  const response = await PlatformAPIClient.execute(
1054
1553
  this.config,
1055
- "patch",
1056
- `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/selfship`,
1554
+ "put",
1555
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/store/rules/${ruleUid}`,
1057
1556
  query_params,
1058
1557
  body,
1059
1558
  requestHeaders,
@@ -1067,7 +1566,7 @@ class Serviceability {
1067
1566
 
1068
1567
  const {
1069
1568
  error: res_error,
1070
- } = ServiceabilityPlatformModel.ApplicationSelfShipConfigResponse().validate(
1569
+ } = ServiceabilityPlatformModel.StoreRuleUpdateResponseSchema().validate(
1071
1570
  responseData,
1072
1571
  { abortEarly: false, allowUnknown: true }
1073
1572
  );
@@ -1078,7 +1577,7 @@ class Serviceability {
1078
1577
  } else {
1079
1578
  Logger({
1080
1579
  level: "WARN",
1081
- message: `Response Validation Warnings for platform > Serviceability > updateSelfShip \n ${res_error}`,
1580
+ message: `Response Validation Warnings for platform > Serviceability > updateStoreRules \n ${res_error}`,
1082
1581
  });
1083
1582
  }
1084
1583
  }
@@ -1087,25 +1586,24 @@ class Serviceability {
1087
1586
  }
1088
1587
 
1089
1588
  /**
1090
- * @param {ServiceabilityPlatformApplicationValidator.UpsertDpApplicationRulesParam} arg
1589
+ * @param {ServiceabilityPlatformApplicationValidator.UpdateStoreRulesConfigParam} arg
1091
1590
  * - Arg object
1092
1591
  *
1093
1592
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1094
1593
  * @param {import("../PlatformAPIClient").Options} - Options
1095
- * @returns {Promise<ServiceabilityPlatformModel.DPApplicationRuleResponse>}
1096
- * - Success response
1097
- *
1098
- * @name upsertDpApplicationRules
1099
- * @summary: Upsert of DpApplicationRules in database.
1100
- * @description: This API returns response of upsert of DpApplicationRules in mongo database. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/upsertDpApplicationRules/).
1594
+ * @returns {Promise<ServiceabilityPlatformModel.StoreRuleConfigData>} -
1595
+ * Success response
1596
+ * @name updateStoreRulesConfig
1597
+ * @summary: Update Store Rule Configuration
1598
+ * @description: Update Store Rule Configuration - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updateStoreRulesConfig/).
1101
1599
  */
1102
- async upsertDpApplicationRules(
1600
+ async updateStoreRulesConfig(
1103
1601
  { body, requestHeaders } = { requestHeaders: {} },
1104
1602
  { responseHeaders } = { responseHeaders: false }
1105
1603
  ) {
1106
1604
  const {
1107
1605
  error,
1108
- } = ServiceabilityPlatformApplicationValidator.upsertDpApplicationRules().validate(
1606
+ } = ServiceabilityPlatformApplicationValidator.updateStoreRulesConfig().validate(
1109
1607
  {
1110
1608
  body,
1111
1609
  },
@@ -1118,7 +1616,7 @@ class Serviceability {
1118
1616
  // Showing warrnings if extra unknown parameters are found
1119
1617
  const {
1120
1618
  error: warrning,
1121
- } = ServiceabilityPlatformApplicationValidator.upsertDpApplicationRules().validate(
1619
+ } = ServiceabilityPlatformApplicationValidator.updateStoreRulesConfig().validate(
1122
1620
  {
1123
1621
  body,
1124
1622
  },
@@ -1127,7 +1625,7 @@ class Serviceability {
1127
1625
  if (warrning) {
1128
1626
  Logger({
1129
1627
  level: "WARN",
1130
- message: `Parameter Validation warrnings for platform > Serviceability > upsertDpApplicationRules \n ${warrning}`,
1628
+ message: `Parameter Validation warrnings for platform > Serviceability > updateStoreRulesConfig \n ${warrning}`,
1131
1629
  });
1132
1630
  }
1133
1631
 
@@ -1136,7 +1634,7 @@ class Serviceability {
1136
1634
  const response = await PlatformAPIClient.execute(
1137
1635
  this.config,
1138
1636
  "put",
1139
- `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/courier/priority`,
1637
+ `/service/platform/logistics/v1.0/company/${this.config.companyId}/application/${this.applicationId}/store/configuration`,
1140
1638
  query_params,
1141
1639
  body,
1142
1640
  requestHeaders,
@@ -1150,7 +1648,7 @@ class Serviceability {
1150
1648
 
1151
1649
  const {
1152
1650
  error: res_error,
1153
- } = ServiceabilityPlatformModel.DPApplicationRuleResponse().validate(
1651
+ } = ServiceabilityPlatformModel.StoreRuleConfigData().validate(
1154
1652
  responseData,
1155
1653
  { abortEarly: false, allowUnknown: true }
1156
1654
  );
@@ -1161,7 +1659,7 @@ class Serviceability {
1161
1659
  } else {
1162
1660
  Logger({
1163
1661
  level: "WARN",
1164
- message: `Response Validation Warnings for platform > Serviceability > upsertDpApplicationRules \n ${res_error}`,
1662
+ message: `Response Validation Warnings for platform > Serviceability > updateStoreRulesConfig \n ${res_error}`,
1165
1663
  });
1166
1664
  }
1167
1665
  }