Skip to content

Commit

Permalink
[Auto Generated] 1.4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
jigardafda committed May 30, 2024
1 parent 477baab commit c45c757
Show file tree
Hide file tree
Showing 32 changed files with 4,806 additions and 7,707 deletions.
4,311 changes: 4,311 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/application.js

Large diffs are not rendered by default.

333 changes: 168 additions & 165 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions sdk/application/ApplicationClient.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ declare class ApplicationClient {
logistic: Logistic;
order: Order;
payment: Payment;
posCart: PosCart;
rewards: Rewards;
share: Share;
theme: Theme;
Expand Down Expand Up @@ -67,7 +66,6 @@ import Lead = require("./Lead/LeadApplicationClient");
import Logistic = require("./Logistic/LogisticApplicationClient");
import Order = require("./Order/OrderApplicationClient");
import Payment = require("./Payment/PaymentApplicationClient");
import PosCart = require("./PosCart/PosCartApplicationClient");
import Rewards = require("./Rewards/RewardsApplicationClient");
import Share = require("./Share/ShareApplicationClient");
import Theme = require("./Theme/ThemeApplicationClient");
Expand Down
2 changes: 0 additions & 2 deletions sdk/application/ApplicationClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const Lead = require("./Lead/LeadApplicationClient");
const Logistic = require("./Logistic/LogisticApplicationClient");
const Order = require("./Order/OrderApplicationClient");
const Payment = require("./Payment/PaymentApplicationClient");
const PosCart = require("./PosCart/PosCartApplicationClient");
const Rewards = require("./Rewards/RewardsApplicationClient");
const Share = require("./Share/ShareApplicationClient");
const Theme = require("./Theme/ThemeApplicationClient");
Expand Down Expand Up @@ -38,7 +37,6 @@ class ApplicationClient {
this.logistic = new Logistic(config);
this.order = new Order(config);
this.payment = new Payment(config);
this.posCart = new PosCart(config);
this.rewards = new Rewards(config);
this.share = new Share(config);
this.theme = new Theme(config);
Expand Down
10 changes: 5 additions & 5 deletions sdk/application/Catalog/CatalogApplicationClient.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ declare class Catalog {
* - Success response
*
* @name getCollections
* @summary: List Collection
* @summary: List collections
* @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/).
*/
getCollections({ pageNo, pageSize, tag, q, requestHeaders }?: CatalogApplicationValidator.GetCollectionsParam, { responseHeaders }?: object): Promise<CatalogApplicationModel.GetCollectionListingResponse>;
Expand All @@ -174,7 +174,7 @@ declare class Catalog {
* @param {string[]} [arg.tag] - List of tags to filter collections
* @param {string} [arg.q] - Name of the collection to filter collection
* @returns {Paginator<CatalogApplicationModel.GetCollectionListingResponse>}
* @summary: List Collection
* @summary: List collections
* @description: Retrieve a list of curated product collections with filtering options based on tags and collection names.
*/
getCollectionsPaginator({ pageSize, tag, q }?: {
Expand Down Expand Up @@ -223,7 +223,7 @@ declare class Catalog {
* @returns {Promise<CatalogApplicationModel.GetFollowListingResponse>} -
* Success response
* @name getFollowedListing
* @summary: List followed products/brands
* @summary: List followed products, brands
* @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/).
*/
getFollowedListing({ collectionType, pageId, pageSize, requestHeaders }?: CatalogApplicationValidator.GetFollowedListingParam, { responseHeaders }?: object): Promise<CatalogApplicationModel.GetFollowListingResponse>;
Expand All @@ -233,7 +233,7 @@ declare class Catalog {
* products, brands, or collections.
* @param {number} [arg.pageSize] - Page ID to retrieve next set of results.
* @returns {Paginator<CatalogApplicationModel.GetFollowListingResponse>}
* @summary: List followed products/brands
* @summary: List followed products, brands
* @description: Retrieve a list of products or brands the user is following.
*/
getFollowedListingPaginator({ collectionType, pageSize }?: {
Expand Down Expand Up @@ -449,7 +449,7 @@ declare class Catalog {
* @returns {Promise<CatalogApplicationModel.ProductVariantsResponse>} -
* Success response
* @name getProductVariantsBySlug
* @summary: List product variant
* @summary: List product variants
* @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/).
*/
getProductVariantsBySlug({ slug, requestHeaders }?: CatalogApplicationValidator.GetProductVariantsBySlugParam, { responseHeaders }?: object): Promise<CatalogApplicationModel.ProductVariantsResponse>;
Expand Down
10 changes: 5 additions & 5 deletions sdk/application/Catalog/CatalogApplicationClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ class Catalog {
* - Success response
*
* @name getCollections
* @summary: List Collection
* @summary: List collections
* @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/).
*/
async getCollections(
Expand Down Expand Up @@ -841,7 +841,7 @@ class Catalog {
* @param {string[]} [arg.tag] - List of tags to filter collections
* @param {string} [arg.q] - Name of the collection to filter collection
* @returns {Paginator<CatalogApplicationModel.GetCollectionListingResponse>}
* @summary: List Collection
* @summary: List collections
* @description: Retrieve a list of curated product collections with filtering options based on tags and collection names.
*/
getCollectionsPaginator({ pageSize, tag, q } = {}) {
Expand Down Expand Up @@ -1114,7 +1114,7 @@ class Catalog {
* @returns {Promise<CatalogApplicationModel.GetFollowListingResponse>} -
* Success response
* @name getFollowedListing
* @summary: List followed products/brands
* @summary: List followed products, brands
* @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/).
*/
async getFollowedListing(
Expand Down Expand Up @@ -1196,7 +1196,7 @@ class Catalog {
* products, brands, or collections.
* @param {number} [arg.pageSize] - Page ID to retrieve next set of results.
* @returns {Paginator<CatalogApplicationModel.GetFollowListingResponse>}
* @summary: List followed products/brands
* @summary: List followed products, brands
* @description: Retrieve a list of products or brands the user is following.
*/
getFollowedListingPaginator({ collectionType, pageSize } = {}) {
Expand Down Expand Up @@ -2380,7 +2380,7 @@ class Catalog {
* @returns {Promise<CatalogApplicationModel.ProductVariantsResponse>} -
* Success response
* @name getProductVariantsBySlug
* @summary: List product variant
* @summary: List product variants
* @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/).
*/
async getProductVariantsBySlug(
Expand Down
4 changes: 2 additions & 2 deletions sdk/application/Logistic/LogisticApplicationModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ class LogisticApplicationModel {
display_name: Joi.string().allow(""),
iso2: Joi.string().allow(""),
iso3: Joi.string().allow(""),
timezones: Joi.array().items(Joi.string().allow("")),
timezones: Joi.array().items(Joi.string().allow("")).allow(null, ""),
hierarchy: Joi.array().items(LogisticApplicationModel.CountryHierarchy()),
phone_code: Joi.string().allow(""),
latitude: Joi.string().allow(""),
Expand Down Expand Up @@ -900,7 +900,7 @@ class LogisticApplicationModel {
display_name: Joi.string().allow(""),
iso2: Joi.string().allow(""),
iso3: Joi.string().allow(""),
timezones: Joi.array().items(Joi.string().allow("")),
timezones: Joi.array().items(Joi.string().allow("")).allow(null, ""),
hierarchy: Joi.array().items(LogisticApplicationModel.CountryHierarchy()),
phone_code: Joi.string().allow(""),
latitude: Joi.string().allow(""),
Expand Down
2 changes: 1 addition & 1 deletion sdk/application/Order/OrderApplicationClient.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ declare class Order {
* @param {import("../ApplicationAPIClient").Options} - Options
* @returns {Promise<OrderApplicationModel.OrderById>} - Success response
* @name getOrderById
* @summary: Get a order
* @summary: Get an order
* @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/).
*/
getOrderById({ orderId, allowInactive, requestHeaders }?: OrderApplicationValidator.GetOrderByIdParam, { responseHeaders }?: object): Promise<OrderApplicationModel.OrderById>;
Expand Down
2 changes: 1 addition & 1 deletion sdk/application/Order/OrderApplicationClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ class Order {
* @param {import("../ApplicationAPIClient").Options} - Options
* @returns {Promise<OrderApplicationModel.OrderById>} - Success response
* @name getOrderById
* @summary: Get a order
* @summary: Get an order
* @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/).
*/
async getOrderById(
Expand Down
4 changes: 2 additions & 2 deletions sdk/application/Order/OrderApplicationValidator.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export = OrderApplicationValidator;
/**
* @typedef GetOrderByIdParam
* @property {string} orderId - A unique number used for identifying and
* tracking your orders.
* tracking an order.
* @property {boolean} [allowInactive] - Flag to allow inactive shipments
*/
/**
Expand Down Expand Up @@ -133,7 +133,7 @@ type GetInvoiceByShipmentIdParam = {
type GetOrderByIdParam = {
/**
* - A unique number used for identifying and
* tracking your orders.
* tracking an order.
*/
orderId: string;
/**
Expand Down
2 changes: 1 addition & 1 deletion sdk/application/Order/OrderApplicationValidator.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const OrderApplicationModel = require("./OrderApplicationModel");
/**
* @typedef GetOrderByIdParam
* @property {string} orderId - A unique number used for identifying and
* tracking your orders.
* tracking an order.
* @property {boolean} [allowInactive] - Flag to allow inactive shipments
*/

Expand Down
40 changes: 23 additions & 17 deletions sdk/application/Payment/PaymentApplicationModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -1464,13 +1464,17 @@ class PaymentApplicationModel {
cod_limit: Joi.number().allow(null),
intent_flow: Joi.boolean().allow(null),
fynd_vpa: Joi.string().allow("").allow(null),
intent_app_error_dict_list: Joi.array().items(
PaymentApplicationModel.IntentAppErrorList()
),
intent_app_error_dict_list: Joi.array()
.items(PaymentApplicationModel.IntentAppErrorList())
.allow(null, ""),
aggregator_name: Joi.string().allow("").required(),
card_fingerprint: Joi.string().allow("").allow(null),
intent_app_error_list: Joi.array().items(Joi.string().allow("")),
intent_app: Joi.array().items(PaymentApplicationModel.IntentApp()),
intent_app_error_list: Joi.array()
.items(Joi.string().allow(""))
.allow(null, ""),
intent_app: Joi.array()
.items(PaymentApplicationModel.IntentApp())
.allow(null, ""),
expired: Joi.boolean().allow(null),
retry_count: Joi.number().allow(null),
exp_year: Joi.number().allow(null),
Expand Down Expand Up @@ -1571,9 +1575,9 @@ class PaymentApplicationModel {
prepayment_value: Joi.number().allow(null),
cancellation_type: Joi.string().allow("").allow(null),
refund_time_limit: Joi.number().allow(null),
all_prepayment_type: Joi.array().items(
Joi.string().allow("").allow(null)
),
all_prepayment_type: Joi.array()
.items(Joi.string().allow("").allow(null))
.allow(null, ""),
allow_custom_advance_amount: Joi.boolean().allow(null),
});
}
Expand All @@ -1594,7 +1598,9 @@ class PaymentApplicationModel {
display_priority: Joi.number().allow(null),
payment_mode_id: Joi.number().allow(null),
display_name: Joi.string().allow("").allow(null),
list: Joi.array().items(PaymentApplicationModel.PaymentModeList()),
list: Joi.array()
.items(PaymentApplicationModel.PaymentModeList())
.allow(null, ""),
split: PaymentApplicationModel.SplitObject(),
advance: PaymentApplicationModel.AdvanceObject(),
});
Expand All @@ -1606,9 +1612,9 @@ class PaymentApplicationModel {
payment_options: PaymentApplicationModel.PaymentOptionAndFlow().required(),
success: Joi.boolean().required(),
payment_breakup: Joi.any(),
advance_payment: Joi.array().items(
PaymentApplicationModel.AdvancePaymentObject()
),
advance_payment: Joi.array()
.items(PaymentApplicationModel.AdvancePaymentObject())
.allow(null, ""),
});
}

Expand Down Expand Up @@ -1847,9 +1853,9 @@ class PaymentApplicationModel {
static OrderBeneficiaryResponse() {
return Joi.object({
show_beneficiary_details: Joi.boolean(),
beneficiaries: Joi.array().items(
PaymentApplicationModel.OrderBeneficiaryDetails()
),
beneficiaries: Joi.array()
.items(PaymentApplicationModel.OrderBeneficiaryDetails())
.allow(null, ""),
});
}

Expand Down Expand Up @@ -2355,7 +2361,7 @@ class PaymentApplicationModel {
static OutstandingOrderDetailsResponse() {
return Joi.object({
status_code: Joi.number().required(),
data: Joi.array().items(Joi.any()),
data: Joi.array().items(Joi.any()).allow(null, ""),
success: Joi.boolean().required(),
message: Joi.string().allow("").allow(null),
});
Expand All @@ -2365,7 +2371,7 @@ class PaymentApplicationModel {
static PaidOrderDetailsResponse() {
return Joi.object({
status_code: Joi.number().required(),
data: Joi.array().items(Joi.any()),
data: Joi.array().items(Joi.any()).allow(null, ""),
success: Joi.boolean().required(),
message: Joi.string().allow("").allow(null),
});
Expand Down
Loading

0 comments on commit c45c757

Please sign in to comment.