@gofynd/fdk-client-javascript 1.4.4 → 1.4.6

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 (153) hide show
  1. package/README.md +1 -1
  2. package/application.d.ts +3 -3
  3. package/common.d.ts +3 -3
  4. package/index.d.ts +15 -15
  5. package/package.json +1 -1
  6. package/partner.d.ts +3 -3
  7. package/platform.d.ts +3 -3
  8. package/public.d.ts +2 -2
  9. package/sdk/application/ApplicationAPIClient.d.ts +1 -1
  10. package/sdk/application/ApplicationClient.d.ts +16 -18
  11. package/sdk/application/ApplicationClient.js +0 -2
  12. package/sdk/application/ApplicationConfig.d.ts +3 -3
  13. package/sdk/application/Cart/CartApplicationClient.d.ts +2 -2
  14. package/sdk/application/Cart/CartApplicationValidator.d.ts +1 -1
  15. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +8 -8
  16. package/sdk/application/Catalog/CatalogApplicationClient.js +5 -5
  17. package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
  18. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +2 -2
  19. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +1 -1
  20. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +2 -2
  21. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +1 -1
  22. package/sdk/application/Content/ContentApplicationClient.d.ts +3 -3
  23. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
  24. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +1 -1
  25. package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
  26. package/sdk/application/Lead/LeadApplicationValidator.d.ts +1 -1
  27. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +2 -2
  28. package/sdk/application/Logistic/LogisticApplicationModel.js +2 -2
  29. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +1 -1
  30. package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
  31. package/sdk/application/Order/OrderApplicationClient.js +1 -1
  32. package/sdk/application/Order/OrderApplicationValidator.d.ts +3 -3
  33. package/sdk/application/Order/OrderApplicationValidator.js +1 -1
  34. package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -2
  35. package/sdk/application/Payment/PaymentApplicationModel.js +23 -17
  36. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +1 -1
  37. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +2 -2
  38. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +1 -1
  39. package/sdk/application/Share/ShareApplicationClient.d.ts +2 -2
  40. package/sdk/application/Share/ShareApplicationModel.d.ts +2 -0
  41. package/sdk/application/Share/ShareApplicationModel.js +2 -0
  42. package/sdk/application/Share/ShareApplicationValidator.d.ts +1 -1
  43. package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
  44. package/sdk/application/User/UserApplicationClient.d.ts +2 -2
  45. package/sdk/application/User/UserApplicationValidator.d.ts +1 -1
  46. package/sdk/application/index.d.ts +17 -18
  47. package/sdk/application/index.js +0 -2
  48. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +1 -1
  49. package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
  50. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +1 -1
  51. package/sdk/partner/OAuthClient.d.ts +4 -4
  52. package/sdk/partner/PartnerAPIClient.d.ts +1 -1
  53. package/sdk/partner/PartnerClient.d.ts +6 -6
  54. package/sdk/partner/PartnerConfig.d.ts +4 -4
  55. package/sdk/partner/Theme/ThemePartnerClient.d.ts +1 -1
  56. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +1 -1
  57. package/sdk/partner/Webhook/WebhookPartnerModel.js +1 -1
  58. package/sdk/partner/index.d.ts +7 -7
  59. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -2
  60. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -1
  61. package/sdk/platform/Billing/BillingPlatformClient.d.ts +2 -2
  62. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +1 -1
  63. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +2 -2
  64. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +1 -1
  65. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +3 -3
  66. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1 -1
  67. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +28 -5
  68. package/sdk/platform/Catalog/CatalogPlatformClient.js +69 -1
  69. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +2 -0
  70. package/sdk/platform/Catalog/CatalogPlatformModel.js +16 -12
  71. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +60 -1
  72. package/sdk/platform/Catalog/CatalogPlatformValidator.js +25 -0
  73. package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -2
  74. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +2 -2
  75. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +1 -1
  76. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -2
  77. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +3 -3
  78. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +34 -7
  79. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +35 -5
  80. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +5 -5
  81. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +4 -4
  82. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +2 -2
  83. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +1 -1
  84. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +2 -2
  85. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +1 -1
  86. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +3 -3
  87. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -1
  88. package/sdk/platform/Content/ContentPlatformClient.d.ts +2 -2
  89. package/sdk/platform/Content/ContentPlatformValidator.d.ts +1 -1
  90. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
  91. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +1 -1
  92. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +2 -2
  93. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
  94. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +2 -2
  95. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +1 -1
  96. package/sdk/platform/Finance/FinancePlatformClient.d.ts +2 -2
  97. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +1 -1
  98. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +2 -2
  99. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +1 -1
  100. package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
  101. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +1 -1
  102. package/sdk/platform/OAuthClient.d.ts +3 -3
  103. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +2 -2
  104. package/sdk/platform/Order/OrderPlatformClient.d.ts +2 -2
  105. package/sdk/platform/Order/OrderPlatformModel.js +65 -41
  106. package/sdk/platform/Order/OrderPlatformValidator.d.ts +1 -1
  107. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +2 -2
  108. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +1 -1
  109. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +2 -2
  110. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +1 -1
  111. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +2 -2
  112. package/sdk/platform/Payment/PaymentPlatformModel.js +22 -16
  113. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +1 -1
  114. package/sdk/platform/PlatformAPIClient.d.ts +1 -1
  115. package/sdk/platform/PlatformApplicationClient.d.ts +16 -16
  116. package/sdk/platform/PlatformClient.d.ts +19 -19
  117. package/sdk/platform/PlatformConfig.d.ts +4 -4
  118. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  119. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +1 -1
  120. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +2 -2
  121. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +1 -1
  122. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +2 -2
  123. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +1 -1
  124. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
  125. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -1
  126. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +2 -2
  127. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +1 -1
  128. package/sdk/platform/Theme/ThemePlatformClient.d.ts +2 -2
  129. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +1 -1
  130. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +2 -2
  131. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +1 -1
  132. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +2 -2
  133. package/sdk/platform/Webhook/WebhookPlatformModel.js +1 -1
  134. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +1 -1
  135. package/sdk/platform/index.d.ts +24 -24
  136. package/sdk/public/Billing/BillingPublicClient.d.ts +2 -2
  137. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -2
  138. package/sdk/public/Content/ContentPublicClient.d.ts +2 -2
  139. package/sdk/public/Inventory/InventoryPublicClient.d.ts +2 -2
  140. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +1 -1
  141. package/sdk/public/Partner/PartnerPublicClient.d.ts +2 -2
  142. package/sdk/public/PublicAPIClient.d.ts +1 -1
  143. package/sdk/public/PublicClient.d.ts +7 -7
  144. package/sdk/public/Webhook/WebhookPublicClient.d.ts +2 -2
  145. package/sdk/public/Webhook/WebhookPublicModel.js +1 -1
  146. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +1 -1
  147. package/sdk/public/index.d.ts +8 -8
  148. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +0 -323
  149. package/sdk/application/PosCart/PosCartApplicationClient.js +0 -2364
  150. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +0 -1857
  151. package/sdk/application/PosCart/PosCartApplicationModel.js +0 -1906
  152. package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +0 -483
  153. package/sdk/application/PosCart/PosCartApplicationValidator.js +0 -492
package/README.md CHANGED
@@ -214,7 +214,7 @@ console.log("Active Theme: ", response.information.name);
214
214
  The above code will log the curl command in the console
215
215
 
216
216
  ```bash
217
- curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 1.4.4' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
217
+ curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 1.4.6' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
218
218
  Active Theme: Emerge
219
219
  ```
220
220
 
package/application.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ApplicationConfig } from "sdk/output/javascript/code/sdk/application";
2
- import { ApplicationClient } from "sdk/output/javascript/code/sdk/application";
3
- import { ApplicationModel } from "sdk/output/javascript/code/sdk/application";
1
+ import { ApplicationConfig } from "./sdk/application";
2
+ import { ApplicationClient } from "./sdk/application";
3
+ import { ApplicationModel } from "./sdk/application";
4
4
  export { ApplicationConfig, ApplicationClient, ApplicationModel };
package/common.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { fdkAxios } from "sdk/output/javascript/code/sdk/common/AxiosHelper";
2
- import Utility = require("sdk/output/javascript/code/sdk/common/Utility");
3
- import Constant = require("sdk/output/javascript/code/sdk/common/Constant");
1
+ import { fdkAxios } from "./sdk/common/AxiosHelper";
2
+ import Utility = require("./sdk/common/Utility");
3
+ import Constant = require("./sdk/common/Constant");
4
4
  export { fdkAxios as FdkAxios, Utility, Constant };
package/index.d.ts CHANGED
@@ -1,16 +1,16 @@
1
- import { ApplicationConfig } from "sdk/output/javascript/code/sdk/application";
2
- import { ApplicationClient } from "sdk/output/javascript/code/sdk/application";
3
- import { ApplicationModel } from "sdk/output/javascript/code/sdk/application";
4
- import { PartnerConfig } from "sdk/output/javascript/code/sdk/partner";
5
- import { PartnerClient } from "sdk/output/javascript/code/sdk/partner";
6
- import { PartnerModel } from "sdk/output/javascript/code/sdk/partner";
7
- import { PlatformConfig } from "sdk/output/javascript/code/sdk/platform";
8
- import { PlatformClient } from "sdk/output/javascript/code/sdk/platform";
9
- import { PlatformModel } from "sdk/output/javascript/code/sdk/platform";
10
- import { PublicConfig } from "sdk/output/javascript/code/sdk/public";
11
- import { PublicClient } from "sdk/output/javascript/code/sdk/public";
12
- import { PublicModel } from "sdk/output/javascript/code/sdk/public";
13
- import { fdkAxios } from "sdk/output/javascript/code/sdk/common/AxiosHelper";
14
- import Utility = require("sdk/output/javascript/code/sdk/common/Utility");
15
- import Constant = require("sdk/output/javascript/code/sdk/common/Constant");
1
+ import { ApplicationConfig } from "./sdk/application";
2
+ import { ApplicationClient } from "./sdk/application";
3
+ import { ApplicationModel } from "./sdk/application";
4
+ import { PartnerConfig } from "./sdk/partner";
5
+ import { PartnerClient } from "./sdk/partner";
6
+ import { PartnerModel } from "./sdk/partner";
7
+ import { PlatformConfig } from "./sdk/platform";
8
+ import { PlatformClient } from "./sdk/platform";
9
+ import { PlatformModel } from "./sdk/platform";
10
+ import { PublicConfig } from "./sdk/public";
11
+ import { PublicClient } from "./sdk/public";
12
+ import { PublicModel } from "./sdk/public";
13
+ import { fdkAxios } from "./sdk/common/AxiosHelper";
14
+ import Utility = require("./sdk/common/Utility");
15
+ import Constant = require("./sdk/common/Constant");
16
16
  export { ApplicationConfig, ApplicationClient, ApplicationModel, PartnerConfig, PartnerClient, PartnerModel, PlatformConfig, PlatformClient, PlatformModel, PublicConfig, PublicClient, PublicModel, fdkAxios as FdkAxios, Utility, Constant };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gofynd/fdk-client-javascript",
3
- "version": "1.4.4",
3
+ "version": "1.4.6",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/partner.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { PartnerConfig } from "sdk/output/javascript/code/sdk/partner";
2
- import { PartnerClient } from "sdk/output/javascript/code/sdk/partner";
3
- import { PartnerModel } from "sdk/output/javascript/code/sdk/partner";
1
+ import { PartnerConfig } from "./sdk/partner";
2
+ import { PartnerClient } from "./sdk/partner";
3
+ import { PartnerModel } from "./sdk/partner";
4
4
  export { PartnerConfig, PartnerClient, PartnerModel };
package/platform.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { PlatformConfig } from "sdk/output/javascript/code/sdk/platform";
2
- import { PlatformClient } from "sdk/output/javascript/code/sdk/platform";
3
- import { PlatformModel } from "sdk/output/javascript/code/sdk/platform";
1
+ import { PlatformConfig } from "./sdk/platform";
2
+ import { PlatformClient } from "./sdk/platform";
3
+ import { PlatformModel } from "./sdk/platform";
4
4
  export { PlatformConfig, PlatformClient, PlatformModel };
package/public.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { PublicConfig } from "sdk/output/javascript/code/sdk/public";
2
- import { PublicClient } from "sdk/output/javascript/code/sdk/public";
1
+ import { PublicConfig } from "./sdk/public";
2
+ import { PublicClient } from "./sdk/public";
3
3
  export declare const PublicModel: any;
4
4
  export { PublicConfig, PublicClient };
@@ -12,7 +12,7 @@ declare class APIClient {
12
12
  * @param {object} body
13
13
  * @param {object} xHeaders
14
14
  */
15
- static execute(conf: object, method: string, url: string, query: object, body: object, xHeaders: object, options: any): Promise<import("sdk/node_modules/axios").AxiosResponse<any, any>>;
15
+ static execute(conf: object, method: string, url: string, query: object, body: object, xHeaders: object, options: any): Promise<import("axios").AxiosResponse<any, any>>;
16
16
  }
17
17
  declare namespace APIClient {
18
18
  export { Options };
@@ -7,7 +7,7 @@ export = ApplicationClient;
7
7
  declare class ApplicationClient {
8
8
  /** @param {import("./ApplicationConfig")} config - The application configuration. */
9
9
  constructor(config: import("./ApplicationConfig"));
10
- config: import("sdk/output/javascript/code/sdk/application/ApplicationConfig");
10
+ config: import("./ApplicationConfig");
11
11
  cart: Cart;
12
12
  catalog: Catalog;
13
13
  common: Common;
@@ -19,7 +19,6 @@ declare class ApplicationClient {
19
19
  logistic: Logistic;
20
20
  order: Order;
21
21
  payment: Payment;
22
- posCart: PosCart;
23
22
  rewards: Rewards;
24
23
  share: Share;
25
24
  theme: Theme;
@@ -56,19 +55,18 @@ declare class ApplicationClient {
56
55
  */
57
56
  setExtraHeaders(header: object): void;
58
57
  }
59
- import Cart = require("sdk/output/javascript/code/sdk/application/Cart/CartApplicationClient");
60
- import Catalog = require("sdk/output/javascript/code/sdk/application/Catalog/CatalogApplicationClient");
61
- import Common = require("sdk/output/javascript/code/sdk/application/Common/CommonApplicationClient");
62
- import Communication = require("sdk/output/javascript/code/sdk/application/Communication/CommunicationApplicationClient");
63
- import Configuration = require("sdk/output/javascript/code/sdk/application/Configuration/ConfigurationApplicationClient");
64
- import Content = require("sdk/output/javascript/code/sdk/application/Content/ContentApplicationClient");
65
- import FileStorage = require("sdk/output/javascript/code/sdk/application/FileStorage/FileStorageApplicationClient");
66
- import Lead = require("sdk/output/javascript/code/sdk/application/Lead/LeadApplicationClient");
67
- import Logistic = require("sdk/output/javascript/code/sdk/application/Logistic/LogisticApplicationClient");
68
- import Order = require("sdk/output/javascript/code/sdk/application/Order/OrderApplicationClient");
69
- import Payment = require("sdk/output/javascript/code/sdk/application/Payment/PaymentApplicationClient");
70
- import PosCart = require("sdk/output/javascript/code/sdk/application/PosCart/PosCartApplicationClient");
71
- import Rewards = require("sdk/output/javascript/code/sdk/application/Rewards/RewardsApplicationClient");
72
- import Share = require("sdk/output/javascript/code/sdk/application/Share/ShareApplicationClient");
73
- import Theme = require("sdk/output/javascript/code/sdk/application/Theme/ThemeApplicationClient");
74
- import User = require("sdk/output/javascript/code/sdk/application/User/UserApplicationClient");
58
+ import Cart = require("./Cart/CartApplicationClient");
59
+ import Catalog = require("./Catalog/CatalogApplicationClient");
60
+ import Common = require("./Common/CommonApplicationClient");
61
+ import Communication = require("./Communication/CommunicationApplicationClient");
62
+ import Configuration = require("./Configuration/ConfigurationApplicationClient");
63
+ import Content = require("./Content/ContentApplicationClient");
64
+ import FileStorage = require("./FileStorage/FileStorageApplicationClient");
65
+ import Lead = require("./Lead/LeadApplicationClient");
66
+ import Logistic = require("./Logistic/LogisticApplicationClient");
67
+ import Order = require("./Order/OrderApplicationClient");
68
+ import Payment = require("./Payment/PaymentApplicationClient");
69
+ import Rewards = require("./Rewards/RewardsApplicationClient");
70
+ import Share = require("./Share/ShareApplicationClient");
71
+ import Theme = require("./Theme/ThemeApplicationClient");
72
+ import User = require("./User/UserApplicationClient");
@@ -9,7 +9,6 @@ const Lead = require("./Lead/LeadApplicationClient");
9
9
  const Logistic = require("./Logistic/LogisticApplicationClient");
10
10
  const Order = require("./Order/OrderApplicationClient");
11
11
  const Payment = require("./Payment/PaymentApplicationClient");
12
- const PosCart = require("./PosCart/PosCartApplicationClient");
13
12
  const Rewards = require("./Rewards/RewardsApplicationClient");
14
13
  const Share = require("./Share/ShareApplicationClient");
15
14
  const Theme = require("./Theme/ThemeApplicationClient");
@@ -38,7 +37,6 @@ class ApplicationClient {
38
37
  this.logistic = new Logistic(config);
39
38
  this.order = new Order(config);
40
39
  this.payment = new Payment(config);
41
- this.posCart = new PosCart(config);
42
40
  this.rewards = new Rewards(config);
43
41
  this.share = new Share(config);
44
42
  this.theme = new Theme(config);
@@ -38,7 +38,7 @@ declare class ApplicationConfig {
38
38
  applicationID: string;
39
39
  applicationToken?: string;
40
40
  domain?: string;
41
- logLevel?: "DEBUG" | "TRACE" | "INFO" | "WARN" | "ERROR";
41
+ logLevel?: "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR";
42
42
  locationDetails?: LocationObject;
43
43
  currencyCode?: string;
44
44
  }, options?: {
@@ -50,7 +50,7 @@ declare class ApplicationConfig {
50
50
  strictResponseCheck: boolean;
51
51
  };
52
52
  domain: string;
53
- logLevel: "DEBUG" | "TRACE" | "INFO" | "WARN" | "ERROR";
53
+ logLevel: "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR";
54
54
  extraHeaders: any[];
55
55
  locationDetails: LocationObject;
56
56
  currencyCode: string;
@@ -59,7 +59,7 @@ declare class ApplicationConfig {
59
59
  *
60
60
  * @param {logLevelEnum} level - The log level to set.
61
61
  */
62
- setLogLevel(level: "DEBUG" | "TRACE" | "INFO" | "WARN" | "ERROR"): void;
62
+ setLogLevel(level: "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR"): void;
63
63
  /**
64
64
  * Sets the cookie for the application.
65
65
  *
@@ -318,5 +318,5 @@ declare class Cart {
318
318
  */
319
319
  validateCouponForPayment({ id, buyNow, addressId, paymentMode, paymentIdentifier, aggregatorName, merchantCode, iin, network, type, cardId, cartType, requestHeaders, }?: CartApplicationValidator.ValidateCouponForPaymentParam, { responseHeaders }?: object): Promise<CartApplicationModel.PaymentCouponValidate>;
320
320
  }
321
- import CartApplicationValidator = require("sdk/output/javascript/code/sdk/application/Cart/CartApplicationValidator");
322
- import CartApplicationModel = require("sdk/output/javascript/code/sdk/application/Cart/CartApplicationModel");
321
+ import CartApplicationValidator = require("./CartApplicationValidator");
322
+ import CartApplicationModel = require("./CartApplicationModel");
@@ -667,4 +667,4 @@ type ValidateCouponForPaymentParam = {
667
667
  */
668
668
  cartType?: string;
669
669
  };
670
- import CartApplicationModel = require("sdk/output/javascript/code/sdk/application/Cart/CartApplicationModel");
670
+ import CartApplicationModel = require("./CartApplicationModel");
@@ -164,7 +164,7 @@ declare class Catalog {
164
164
  * - Success response
165
165
  *
166
166
  * @name getCollections
167
- * @summary: List Collection
167
+ * @summary: List collections
168
168
  * @description: Retrieve a list of curated product collections with filtering options based on tags and collection names. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getCollections/).
169
169
  */
170
170
  getCollections({ pageNo, pageSize, tag, q, requestHeaders }?: CatalogApplicationValidator.GetCollectionsParam, { responseHeaders }?: object): Promise<CatalogApplicationModel.GetCollectionListingResponse>;
@@ -174,7 +174,7 @@ declare class Catalog {
174
174
  * @param {string[]} [arg.tag] - List of tags to filter collections
175
175
  * @param {string} [arg.q] - Name of the collection to filter collection
176
176
  * @returns {Paginator<CatalogApplicationModel.GetCollectionListingResponse>}
177
- * @summary: List Collection
177
+ * @summary: List collections
178
178
  * @description: Retrieve a list of curated product collections with filtering options based on tags and collection names.
179
179
  */
180
180
  getCollectionsPaginator({ pageSize, tag, q }?: {
@@ -223,7 +223,7 @@ declare class Catalog {
223
223
  * @returns {Promise<CatalogApplicationModel.GetFollowListingResponse>} -
224
224
  * Success response
225
225
  * @name getFollowedListing
226
- * @summary: List followed products/brands
226
+ * @summary: List followed products, brands
227
227
  * @description: Retrieve a list of products or brands the user is following. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getFollowedListing/).
228
228
  */
229
229
  getFollowedListing({ collectionType, pageId, pageSize, requestHeaders }?: CatalogApplicationValidator.GetFollowedListingParam, { responseHeaders }?: object): Promise<CatalogApplicationModel.GetFollowListingResponse>;
@@ -233,7 +233,7 @@ declare class Catalog {
233
233
  * products, brands, or collections.
234
234
  * @param {number} [arg.pageSize] - Page ID to retrieve next set of results.
235
235
  * @returns {Paginator<CatalogApplicationModel.GetFollowListingResponse>}
236
- * @summary: List followed products/brands
236
+ * @summary: List followed products, brands
237
237
  * @description: Retrieve a list of products or brands the user is following.
238
238
  */
239
239
  getFollowedListingPaginator({ collectionType, pageSize }?: {
@@ -449,7 +449,7 @@ declare class Catalog {
449
449
  * @returns {Promise<CatalogApplicationModel.ProductVariantsResponse>} -
450
450
  * Success response
451
451
  * @name getProductVariantsBySlug
452
- * @summary: List product variant
452
+ * @summary: List product variants
453
453
  * @description: Retrieves all available variants of a specific product identified by its slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getProductVariantsBySlug/).
454
454
  */
455
455
  getProductVariantsBySlug({ slug, requestHeaders }?: CatalogApplicationValidator.GetProductVariantsBySlugParam, { responseHeaders }?: object): Promise<CatalogApplicationModel.ProductVariantsResponse>;
@@ -558,6 +558,6 @@ declare class Catalog {
558
558
  */
559
559
  unfollowById({ collectionType, collectionId, requestHeaders }?: CatalogApplicationValidator.UnfollowByIdParam, { responseHeaders }?: object): Promise<CatalogApplicationModel.FollowPostResponse>;
560
560
  }
561
- import CatalogApplicationValidator = require("sdk/output/javascript/code/sdk/application/Catalog/CatalogApplicationValidator");
562
- import CatalogApplicationModel = require("sdk/output/javascript/code/sdk/application/Catalog/CatalogApplicationModel");
563
- import Paginator = require("sdk/output/javascript/code/sdk/common/Paginator");
561
+ import CatalogApplicationValidator = require("./CatalogApplicationValidator");
562
+ import CatalogApplicationModel = require("./CatalogApplicationModel");
563
+ import Paginator = require("../../common/Paginator");
@@ -759,7 +759,7 @@ class Catalog {
759
759
  * - Success response
760
760
  *
761
761
  * @name getCollections
762
- * @summary: List Collection
762
+ * @summary: List collections
763
763
  * @description: Retrieve a list of curated product collections with filtering options based on tags and collection names. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getCollections/).
764
764
  */
765
765
  async getCollections(
@@ -841,7 +841,7 @@ class Catalog {
841
841
  * @param {string[]} [arg.tag] - List of tags to filter collections
842
842
  * @param {string} [arg.q] - Name of the collection to filter collection
843
843
  * @returns {Paginator<CatalogApplicationModel.GetCollectionListingResponse>}
844
- * @summary: List Collection
844
+ * @summary: List collections
845
845
  * @description: Retrieve a list of curated product collections with filtering options based on tags and collection names.
846
846
  */
847
847
  getCollectionsPaginator({ pageSize, tag, q } = {}) {
@@ -1114,7 +1114,7 @@ class Catalog {
1114
1114
  * @returns {Promise<CatalogApplicationModel.GetFollowListingResponse>} -
1115
1115
  * Success response
1116
1116
  * @name getFollowedListing
1117
- * @summary: List followed products/brands
1117
+ * @summary: List followed products, brands
1118
1118
  * @description: Retrieve a list of products or brands the user is following. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getFollowedListing/).
1119
1119
  */
1120
1120
  async getFollowedListing(
@@ -1196,7 +1196,7 @@ class Catalog {
1196
1196
  * products, brands, or collections.
1197
1197
  * @param {number} [arg.pageSize] - Page ID to retrieve next set of results.
1198
1198
  * @returns {Paginator<CatalogApplicationModel.GetFollowListingResponse>}
1199
- * @summary: List followed products/brands
1199
+ * @summary: List followed products, brands
1200
1200
  * @description: Retrieve a list of products or brands the user is following.
1201
1201
  */
1202
1202
  getFollowedListingPaginator({ collectionType, pageSize } = {}) {
@@ -2380,7 +2380,7 @@ class Catalog {
2380
2380
  * @returns {Promise<CatalogApplicationModel.ProductVariantsResponse>} -
2381
2381
  * Success response
2382
2382
  * @name getProductVariantsBySlug
2383
- * @summary: List product variant
2383
+ * @summary: List product variants
2384
2384
  * @description: Retrieves all available variants of a specific product identified by its slug. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/catalog/getProductVariantsBySlug/).
2385
2385
  */
2386
2386
  async getProductVariantsBySlug(
@@ -29,5 +29,5 @@ declare class Common {
29
29
  */
30
30
  searchApplication({ authorization, query, requestHeaders }?: CommonApplicationValidator.SearchApplicationParam, { responseHeaders }?: object): Promise<CommonApplicationModel.ApplicationResponse>;
31
31
  }
32
- import CommonApplicationValidator = require("sdk/output/javascript/code/sdk/application/Common/CommonApplicationValidator");
33
- import CommonApplicationModel = require("sdk/output/javascript/code/sdk/application/Common/CommonApplicationModel");
32
+ import CommonApplicationValidator = require("./CommonApplicationValidator");
33
+ import CommonApplicationModel = require("./CommonApplicationModel");
@@ -48,5 +48,5 @@ declare class Communication {
48
48
  */
49
49
  upsertCommunicationConsent({ body, requestHeaders }?: CommunicationApplicationValidator.UpsertCommunicationConsentParam, { responseHeaders }?: object): Promise<CommunicationApplicationModel.CommunicationConsentRes>;
50
50
  }
51
- import CommunicationApplicationModel = require("sdk/output/javascript/code/sdk/application/Communication/CommunicationApplicationModel");
52
- import CommunicationApplicationValidator = require("sdk/output/javascript/code/sdk/application/Communication/CommunicationApplicationValidator");
51
+ import CommunicationApplicationModel = require("./CommunicationApplicationModel");
52
+ import CommunicationApplicationValidator = require("./CommunicationApplicationValidator");
@@ -26,4 +26,4 @@ type UpsertCommunicationConsentParam = {
26
26
  body: CommunicationApplicationModel.CommunicationConsentReq;
27
27
  };
28
28
  type GetCommunicationConsentParam = any;
29
- import CommunicationApplicationModel = require("sdk/output/javascript/code/sdk/application/Communication/CommunicationApplicationModel");
29
+ import CommunicationApplicationModel = require("./CommunicationApplicationModel");
@@ -206,5 +206,5 @@ declare class Configuration {
206
206
  */
207
207
  removeOrderingStoreCookie({ requestHeaders }?: any, { responseHeaders }?: object): Promise<ConfigurationApplicationModel.SuccessMessageResponse>;
208
208
  }
209
- import ConfigurationApplicationModel = require("sdk/output/javascript/code/sdk/application/Configuration/ConfigurationApplicationModel");
210
- import ConfigurationApplicationValidator = require("sdk/output/javascript/code/sdk/application/Configuration/ConfigurationApplicationValidator");
209
+ import ConfigurationApplicationModel = require("./ConfigurationApplicationModel");
210
+ import ConfigurationApplicationValidator = require("./ConfigurationApplicationValidator");
@@ -168,4 +168,4 @@ type GetIntegrationTokensParam = any;
168
168
  type GetLanguagesParam = any;
169
169
  type GetOwnerInfoParam = any;
170
170
  type RemoveOrderingStoreCookieParam = any;
171
- import ConfigurationApplicationModel = require("sdk/output/javascript/code/sdk/application/Configuration/ConfigurationApplicationModel");
171
+ import ConfigurationApplicationModel = require("./ConfigurationApplicationModel");
@@ -267,6 +267,6 @@ declare class Content {
267
267
  */
268
268
  getTags({ requestHeaders }?: any, { responseHeaders }?: object): Promise<ContentApplicationModel.TagsSchema>;
269
269
  }
270
- import ContentApplicationModel = require("sdk/output/javascript/code/sdk/application/Content/ContentApplicationModel");
271
- import ContentApplicationValidator = require("sdk/output/javascript/code/sdk/application/Content/ContentApplicationValidator");
272
- import Paginator = require("sdk/output/javascript/code/sdk/common/Paginator");
270
+ import ContentApplicationModel = require("./ContentApplicationModel");
271
+ import ContentApplicationValidator = require("./ContentApplicationValidator");
272
+ import Paginator = require("../../common/Paginator");
@@ -56,5 +56,5 @@ declare class FileStorage {
56
56
  tags: any;
57
57
  }): Promise<any>;
58
58
  }
59
- import FileStorageApplicationValidator = require("sdk/output/javascript/code/sdk/application/FileStorage/FileStorageApplicationValidator");
60
- import FileStorageApplicationModel = require("sdk/output/javascript/code/sdk/application/FileStorage/FileStorageApplicationModel");
59
+ import FileStorageApplicationValidator = require("./FileStorageApplicationValidator");
60
+ import FileStorageApplicationModel = require("./FileStorageApplicationModel");
@@ -53,4 +53,4 @@ type StartUploadParam = {
53
53
  namespace: string;
54
54
  body: FileStorageApplicationModel.StartRequest;
55
55
  };
56
- import FileStorageApplicationModel = require("sdk/output/javascript/code/sdk/application/FileStorage/FileStorageApplicationModel");
56
+ import FileStorageApplicationModel = require("./FileStorageApplicationModel");
@@ -90,5 +90,5 @@ declare class Lead {
90
90
  */
91
91
  submitCustomForm({ slug, body, requestHeaders }?: LeadApplicationValidator.SubmitCustomFormParam, { responseHeaders }?: object): Promise<LeadApplicationModel.SubmitCustomFormResponse>;
92
92
  }
93
- import LeadApplicationValidator = require("sdk/output/javascript/code/sdk/application/Lead/LeadApplicationValidator");
94
- import LeadApplicationModel = require("sdk/output/javascript/code/sdk/application/Lead/LeadApplicationModel");
93
+ import LeadApplicationValidator = require("./LeadApplicationValidator");
94
+ import LeadApplicationModel = require("./LeadApplicationModel");
@@ -89,4 +89,4 @@ type SubmitCustomFormParam = {
89
89
  slug: string;
90
90
  body: LeadApplicationModel.CustomFormSubmissionPayload;
91
91
  };
92
- import LeadApplicationModel = require("sdk/output/javascript/code/sdk/application/Lead/LeadApplicationModel");
92
+ import LeadApplicationModel = require("./LeadApplicationModel");
@@ -132,5 +132,5 @@ declare class Logistic {
132
132
  */
133
133
  validateAddress({ countryIsoCode, templateName, body, requestHeaders }?: LogisticApplicationValidator.ValidateAddressParam, { responseHeaders }?: object): Promise<LogisticApplicationModel.ValidateAddressRequest>;
134
134
  }
135
- import LogisticApplicationModel = require("sdk/output/javascript/code/sdk/application/Logistic/LogisticApplicationModel");
136
- import LogisticApplicationValidator = require("sdk/output/javascript/code/sdk/application/Logistic/LogisticApplicationValidator");
135
+ import LogisticApplicationModel = require("./LogisticApplicationModel");
136
+ import LogisticApplicationValidator = require("./LogisticApplicationValidator");
@@ -772,7 +772,7 @@ class LogisticApplicationModel {
772
772
  display_name: Joi.string().allow(""),
773
773
  iso2: Joi.string().allow(""),
774
774
  iso3: Joi.string().allow(""),
775
- timezones: Joi.array().items(Joi.string().allow("")),
775
+ timezones: Joi.array().items(Joi.string().allow("")).allow(null, ""),
776
776
  hierarchy: Joi.array().items(LogisticApplicationModel.CountryHierarchy()),
777
777
  phone_code: Joi.string().allow(""),
778
778
  latitude: Joi.string().allow(""),
@@ -900,7 +900,7 @@ class LogisticApplicationModel {
900
900
  display_name: Joi.string().allow(""),
901
901
  iso2: Joi.string().allow(""),
902
902
  iso3: Joi.string().allow(""),
903
- timezones: Joi.array().items(Joi.string().allow("")),
903
+ timezones: Joi.array().items(Joi.string().allow("")).allow(null, ""),
904
904
  hierarchy: Joi.array().items(LogisticApplicationModel.CountryHierarchy()),
905
905
  phone_code: Joi.string().allow(""),
906
906
  latitude: Joi.string().allow(""),
@@ -257,4 +257,4 @@ type ValidateAddressParam = {
257
257
  body: LogisticApplicationModel.ValidateAddressRequest;
258
258
  };
259
259
  type GetAllCountriesParam = any;
260
- import LogisticApplicationModel = require("sdk/output/javascript/code/sdk/application/Logistic/LogisticApplicationModel");
260
+ import LogisticApplicationModel = require("./LogisticApplicationModel");
@@ -47,7 +47,7 @@ declare class Order {
47
47
  * @param {import("../ApplicationAPIClient").Options} - Options
48
48
  * @returns {Promise<OrderApplicationModel.OrderById>} - Success response
49
49
  * @name getOrderById
50
- * @summary: Get a order
50
+ * @summary: Get an order
51
51
  * @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/).
52
52
  */
53
53
  getOrderById({ orderId, allowInactive, requestHeaders }?: OrderApplicationValidator.GetOrderByIdParam, { responseHeaders }?: object): Promise<OrderApplicationModel.OrderById>;
@@ -135,5 +135,5 @@ declare class Order {
135
135
  */
136
136
  verifyOtpShipmentCustomer({ orderId, shipmentId, body, requestHeaders }?: OrderApplicationValidator.VerifyOtpShipmentCustomerParam, { responseHeaders }?: object): Promise<OrderApplicationModel.VerifyOtpResponse>;
137
137
  }
138
- import OrderApplicationValidator = require("sdk/output/javascript/code/sdk/application/Order/OrderApplicationValidator");
139
- import OrderApplicationModel = require("sdk/output/javascript/code/sdk/application/Order/OrderApplicationModel");
138
+ import OrderApplicationValidator = require("./OrderApplicationValidator");
139
+ import OrderApplicationModel = require("./OrderApplicationModel");
@@ -221,7 +221,7 @@ class Order {
221
221
  * @param {import("../ApplicationAPIClient").Options} - Options
222
222
  * @returns {Promise<OrderApplicationModel.OrderById>} - Success response
223
223
  * @name getOrderById
224
- * @summary: Get a order
224
+ * @summary: Get an order
225
225
  * @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/).
226
226
  */
227
227
  async getOrderById(
@@ -14,7 +14,7 @@ export = OrderApplicationValidator;
14
14
  /**
15
15
  * @typedef GetOrderByIdParam
16
16
  * @property {string} orderId - A unique number used for identifying and
17
- * tracking your orders.
17
+ * tracking an order.
18
18
  * @property {boolean} [allowInactive] - Flag to allow inactive shipments
19
19
  */
20
20
  /**
@@ -133,7 +133,7 @@ type GetInvoiceByShipmentIdParam = {
133
133
  type GetOrderByIdParam = {
134
134
  /**
135
135
  * - A unique number used for identifying and
136
- * tracking your orders.
136
+ * tracking an order.
137
137
  */
138
138
  orderId: string;
139
139
  /**
@@ -260,4 +260,4 @@ type VerifyOtpShipmentCustomerParam = {
260
260
  shipmentId: string;
261
261
  body: OrderApplicationModel.VerifyOtp;
262
262
  };
263
- import OrderApplicationModel = require("sdk/output/javascript/code/sdk/application/Order/OrderApplicationModel");
263
+ import OrderApplicationModel = require("./OrderApplicationModel");
@@ -19,7 +19,7 @@ const OrderApplicationModel = require("./OrderApplicationModel");
19
19
  /**
20
20
  * @typedef GetOrderByIdParam
21
21
  * @property {string} orderId - A unique number used for identifying and
22
- * tracking your orders.
22
+ * tracking an order.
23
23
  * @property {boolean} [allowInactive] - Flag to allow inactive shipments
24
24
  */
25
25
 
@@ -585,5 +585,5 @@ declare class Payment {
585
585
  */
586
586
  walletLinkInitiate({ body, requestHeaders }?: PaymentApplicationValidator.WalletLinkInitiateParam, { responseHeaders }?: object): Promise<PaymentApplicationModel.WalletResponseSchema>;
587
587
  }
588
- import PaymentApplicationValidator = require("sdk/output/javascript/code/sdk/application/Payment/PaymentApplicationValidator");
589
- import PaymentApplicationModel = require("sdk/output/javascript/code/sdk/application/Payment/PaymentApplicationModel");
588
+ import PaymentApplicationValidator = require("./PaymentApplicationValidator");
589
+ import PaymentApplicationModel = require("./PaymentApplicationModel");
@@ -1464,13 +1464,17 @@ class PaymentApplicationModel {
1464
1464
  cod_limit: Joi.number().allow(null),
1465
1465
  intent_flow: Joi.boolean().allow(null),
1466
1466
  fynd_vpa: Joi.string().allow("").allow(null),
1467
- intent_app_error_dict_list: Joi.array().items(
1468
- PaymentApplicationModel.IntentAppErrorList()
1469
- ),
1467
+ intent_app_error_dict_list: Joi.array()
1468
+ .items(PaymentApplicationModel.IntentAppErrorList())
1469
+ .allow(null, ""),
1470
1470
  aggregator_name: Joi.string().allow("").required(),
1471
1471
  card_fingerprint: Joi.string().allow("").allow(null),
1472
- intent_app_error_list: Joi.array().items(Joi.string().allow("")),
1473
- intent_app: Joi.array().items(PaymentApplicationModel.IntentApp()),
1472
+ intent_app_error_list: Joi.array()
1473
+ .items(Joi.string().allow(""))
1474
+ .allow(null, ""),
1475
+ intent_app: Joi.array()
1476
+ .items(PaymentApplicationModel.IntentApp())
1477
+ .allow(null, ""),
1474
1478
  expired: Joi.boolean().allow(null),
1475
1479
  retry_count: Joi.number().allow(null),
1476
1480
  exp_year: Joi.number().allow(null),
@@ -1571,9 +1575,9 @@ class PaymentApplicationModel {
1571
1575
  prepayment_value: Joi.number().allow(null),
1572
1576
  cancellation_type: Joi.string().allow("").allow(null),
1573
1577
  refund_time_limit: Joi.number().allow(null),
1574
- all_prepayment_type: Joi.array().items(
1575
- Joi.string().allow("").allow(null)
1576
- ),
1578
+ all_prepayment_type: Joi.array()
1579
+ .items(Joi.string().allow("").allow(null))
1580
+ .allow(null, ""),
1577
1581
  allow_custom_advance_amount: Joi.boolean().allow(null),
1578
1582
  });
1579
1583
  }
@@ -1594,7 +1598,9 @@ class PaymentApplicationModel {
1594
1598
  display_priority: Joi.number().allow(null),
1595
1599
  payment_mode_id: Joi.number().allow(null),
1596
1600
  display_name: Joi.string().allow("").allow(null),
1597
- list: Joi.array().items(PaymentApplicationModel.PaymentModeList()),
1601
+ list: Joi.array()
1602
+ .items(PaymentApplicationModel.PaymentModeList())
1603
+ .allow(null, ""),
1598
1604
  split: PaymentApplicationModel.SplitObject(),
1599
1605
  advance: PaymentApplicationModel.AdvanceObject(),
1600
1606
  });
@@ -1606,9 +1612,9 @@ class PaymentApplicationModel {
1606
1612
  payment_options: PaymentApplicationModel.PaymentOptionAndFlow().required(),
1607
1613
  success: Joi.boolean().required(),
1608
1614
  payment_breakup: Joi.any(),
1609
- advance_payment: Joi.array().items(
1610
- PaymentApplicationModel.AdvancePaymentObject()
1611
- ),
1615
+ advance_payment: Joi.array()
1616
+ .items(PaymentApplicationModel.AdvancePaymentObject())
1617
+ .allow(null, ""),
1612
1618
  });
1613
1619
  }
1614
1620
 
@@ -1847,9 +1853,9 @@ class PaymentApplicationModel {
1847
1853
  static OrderBeneficiaryResponse() {
1848
1854
  return Joi.object({
1849
1855
  show_beneficiary_details: Joi.boolean(),
1850
- beneficiaries: Joi.array().items(
1851
- PaymentApplicationModel.OrderBeneficiaryDetails()
1852
- ),
1856
+ beneficiaries: Joi.array()
1857
+ .items(PaymentApplicationModel.OrderBeneficiaryDetails())
1858
+ .allow(null, ""),
1853
1859
  });
1854
1860
  }
1855
1861
 
@@ -2355,7 +2361,7 @@ class PaymentApplicationModel {
2355
2361
  static OutstandingOrderDetailsResponse() {
2356
2362
  return Joi.object({
2357
2363
  status_code: Joi.number().required(),
2358
- data: Joi.array().items(Joi.any()),
2364
+ data: Joi.array().items(Joi.any()).allow(null, ""),
2359
2365
  success: Joi.boolean().required(),
2360
2366
  message: Joi.string().allow("").allow(null),
2361
2367
  });
@@ -2365,7 +2371,7 @@ class PaymentApplicationModel {
2365
2371
  static PaidOrderDetailsResponse() {
2366
2372
  return Joi.object({
2367
2373
  status_code: Joi.number().required(),
2368
- data: Joi.array().items(Joi.any()),
2374
+ data: Joi.array().items(Joi.any()).allow(null, ""),
2369
2375
  success: Joi.boolean().required(),
2370
2376
  message: Joi.string().allow("").allow(null),
2371
2377
  });