@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.
- package/README.md +1 -1
- package/application.d.ts +3 -3
- package/common.d.ts +3 -3
- package/index.d.ts +15 -15
- package/package.json +1 -1
- package/partner.d.ts +3 -3
- package/platform.d.ts +3 -3
- package/public.d.ts +2 -2
- package/sdk/application/ApplicationAPIClient.d.ts +1 -1
- package/sdk/application/ApplicationClient.d.ts +16 -18
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/ApplicationConfig.d.ts +3 -3
- package/sdk/application/Cart/CartApplicationClient.d.ts +2 -2
- package/sdk/application/Cart/CartApplicationValidator.d.ts +1 -1
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +8 -8
- package/sdk/application/Catalog/CatalogApplicationClient.js +5 -5
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +2 -2
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +1 -1
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +2 -2
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +1 -1
- package/sdk/application/Content/ContentApplicationClient.d.ts +3 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +1 -1
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +1 -1
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +2 -2
- package/sdk/application/Logistic/LogisticApplicationModel.js +2 -2
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +1 -1
- package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
- package/sdk/application/Order/OrderApplicationClient.js +1 -1
- package/sdk/application/Order/OrderApplicationValidator.d.ts +3 -3
- package/sdk/application/Order/OrderApplicationValidator.js +1 -1
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -2
- package/sdk/application/Payment/PaymentApplicationModel.js +23 -17
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +1 -1
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +2 -2
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +1 -1
- package/sdk/application/Share/ShareApplicationClient.d.ts +2 -2
- package/sdk/application/Share/ShareApplicationModel.d.ts +2 -0
- package/sdk/application/Share/ShareApplicationModel.js +2 -0
- package/sdk/application/Share/ShareApplicationValidator.d.ts +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/User/UserApplicationClient.d.ts +2 -2
- package/sdk/application/User/UserApplicationValidator.d.ts +1 -1
- package/sdk/application/index.d.ts +17 -18
- package/sdk/application/index.js +0 -2
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +1 -1
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +1 -1
- package/sdk/partner/OAuthClient.d.ts +4 -4
- package/sdk/partner/PartnerAPIClient.d.ts +1 -1
- package/sdk/partner/PartnerClient.d.ts +6 -6
- package/sdk/partner/PartnerConfig.d.ts +4 -4
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +1 -1
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +1 -1
- package/sdk/partner/Webhook/WebhookPartnerModel.js +1 -1
- package/sdk/partner/index.d.ts +7 -7
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -1
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +2 -2
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +1 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +28 -5
- package/sdk/platform/Catalog/CatalogPlatformClient.js +69 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +2 -0
- package/sdk/platform/Catalog/CatalogPlatformModel.js +16 -12
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +60 -1
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +25 -0
- package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -2
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +3 -3
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +34 -7
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +35 -5
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +5 -5
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +4 -4
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +2 -2
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +1 -1
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Content/ContentPlatformClient.d.ts +2 -2
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +1 -1
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +1 -1
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +2 -2
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +1 -1
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +1 -1
- package/sdk/platform/OAuthClient.d.ts +3 -3
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Order/OrderPlatformClient.d.ts +2 -2
- package/sdk/platform/Order/OrderPlatformModel.js +65 -41
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +1 -1
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +2 -2
- package/sdk/platform/Payment/PaymentPlatformModel.js +22 -16
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +1 -1
- package/sdk/platform/PlatformAPIClient.d.ts +1 -1
- package/sdk/platform/PlatformApplicationClient.d.ts +16 -16
- package/sdk/platform/PlatformClient.d.ts +19 -19
- package/sdk/platform/PlatformConfig.d.ts +4 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +2 -2
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +1 -1
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +2 -2
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +1 -1
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +1 -1
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +2 -2
- package/sdk/platform/Webhook/WebhookPlatformModel.js +1 -1
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +1 -1
- package/sdk/platform/index.d.ts +24 -24
- package/sdk/public/Billing/BillingPublicClient.d.ts +2 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -2
- package/sdk/public/Content/ContentPublicClient.d.ts +2 -2
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +2 -2
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.d.ts +2 -2
- package/sdk/public/PublicAPIClient.d.ts +1 -1
- package/sdk/public/PublicClient.d.ts +7 -7
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +2 -2
- package/sdk/public/Webhook/WebhookPublicModel.js +1 -1
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +1 -1
- package/sdk/public/index.d.ts +8 -8
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +0 -323
- package/sdk/application/PosCart/PosCartApplicationClient.js +0 -2364
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +0 -1857
- package/sdk/application/PosCart/PosCartApplicationModel.js +0 -1906
- package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +0 -483
- 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.
|
|
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/
|
|
2
|
-
import { ApplicationClient } from "sdk/
|
|
3
|
-
import { ApplicationModel } from "sdk/
|
|
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/
|
|
2
|
-
import Utility = require("sdk/
|
|
3
|
-
import Constant = require("sdk/
|
|
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/
|
|
2
|
-
import { ApplicationClient } from "sdk/
|
|
3
|
-
import { ApplicationModel } from "sdk/
|
|
4
|
-
import { PartnerConfig } from "sdk/
|
|
5
|
-
import { PartnerClient } from "sdk/
|
|
6
|
-
import { PartnerModel } from "sdk/
|
|
7
|
-
import { PlatformConfig } from "sdk/
|
|
8
|
-
import { PlatformClient } from "sdk/
|
|
9
|
-
import { PlatformModel } from "sdk/
|
|
10
|
-
import { PublicConfig } from "sdk/
|
|
11
|
-
import { PublicClient } from "sdk/
|
|
12
|
-
import { PublicModel } from "sdk/
|
|
13
|
-
import { fdkAxios } from "sdk/
|
|
14
|
-
import Utility = require("sdk/
|
|
15
|
-
import Constant = require("sdk/
|
|
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
package/partner.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PartnerConfig } from "sdk/
|
|
2
|
-
import { PartnerClient } from "sdk/
|
|
3
|
-
import { PartnerModel } from "sdk/
|
|
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/
|
|
2
|
-
import { PlatformClient } from "sdk/
|
|
3
|
-
import { PlatformModel } from "sdk/
|
|
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/
|
|
2
|
-
import { PublicClient } from "sdk/
|
|
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("
|
|
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("
|
|
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("
|
|
60
|
-
import Catalog = require("
|
|
61
|
-
import Common = require("
|
|
62
|
-
import Communication = require("
|
|
63
|
-
import Configuration = require("
|
|
64
|
-
import Content = require("
|
|
65
|
-
import FileStorage = require("
|
|
66
|
-
import Lead = require("
|
|
67
|
-
import Logistic = require("
|
|
68
|
-
import Order = require("
|
|
69
|
-
import Payment = require("
|
|
70
|
-
import
|
|
71
|
-
import
|
|
72
|
-
import
|
|
73
|
-
import
|
|
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?: "
|
|
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: "
|
|
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: "
|
|
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("
|
|
322
|
-
import CartApplicationModel = require("
|
|
321
|
+
import CartApplicationValidator = require("./CartApplicationValidator");
|
|
322
|
+
import CartApplicationModel = require("./CartApplicationModel");
|
|
@@ -164,7 +164,7 @@ declare class Catalog {
|
|
|
164
164
|
* - Success response
|
|
165
165
|
*
|
|
166
166
|
* @name getCollections
|
|
167
|
-
* @summary: List
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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("
|
|
562
|
-
import CatalogApplicationModel = require("
|
|
563
|
-
import Paginator = require("
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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("
|
|
33
|
-
import CommonApplicationModel = require("
|
|
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("
|
|
52
|
-
import CommunicationApplicationValidator = require("
|
|
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("
|
|
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("
|
|
210
|
-
import ConfigurationApplicationValidator = require("
|
|
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("
|
|
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("
|
|
271
|
-
import ContentApplicationValidator = require("
|
|
272
|
-
import Paginator = require("
|
|
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("
|
|
60
|
-
import FileStorageApplicationModel = require("
|
|
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("
|
|
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("
|
|
94
|
-
import LeadApplicationModel = require("
|
|
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("
|
|
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("
|
|
136
|
-
import LogisticApplicationValidator = require("
|
|
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("
|
|
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
|
|
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("
|
|
139
|
-
import OrderApplicationModel = require("
|
|
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
|
|
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
|
|
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
|
|
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("
|
|
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
|
|
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("
|
|
589
|
-
import PaymentApplicationModel = require("
|
|
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()
|
|
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()
|
|
1473
|
-
|
|
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()
|
|
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()
|
|
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()
|
|
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()
|
|
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
|
});
|