@gofynd/fdk-client-javascript 1.4.10-beta.1 → 1.4.11
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 +4 -4
- package/package.json +1 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +14 -3
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +27 -3
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +14 -2
- package/sdk/platform/Order/OrderPlatformModel.d.ts +90 -39
- package/sdk/platform/Order/OrderPlatformModel.js +65 -29
package/README.md
CHANGED
|
@@ -127,9 +127,9 @@ getData();
|
|
|
127
127
|
|
|
128
128
|
---
|
|
129
129
|
|
|
130
|
-
### Sample Usage -
|
|
130
|
+
### Sample Usage - Request function.
|
|
131
131
|
|
|
132
|
-
The
|
|
132
|
+
The request function allows you to make custom API requests with ease. It is available on both `platform` and `application` client.
|
|
133
133
|
|
|
134
134
|
```javascript
|
|
135
135
|
|
|
@@ -140,7 +140,7 @@ let auditLog = await client.request({
|
|
|
140
140
|
|
|
141
141
|
```
|
|
142
142
|
|
|
143
|
-
The `
|
|
143
|
+
The `request` function accepts an object with the following possible keys:
|
|
144
144
|
|
|
145
145
|
- **method** (string): The HTTP method to use (e.g., 'GET', 'POST', 'PUT', 'DELETE').
|
|
146
146
|
- **url** (string): The URL endpoint for the request.
|
|
@@ -237,7 +237,7 @@ console.log("Active Theme: ", response.information.name);
|
|
|
237
237
|
The above code will log the curl command in the console
|
|
238
238
|
|
|
239
239
|
```bash
|
|
240
|
-
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.
|
|
240
|
+
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.11' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
|
|
241
241
|
Active Theme: Emerge
|
|
242
242
|
```
|
|
243
243
|
|
package/package.json
CHANGED
|
@@ -295,7 +295,7 @@ declare class Catalog {
|
|
|
295
295
|
* @summary: Get category return configuration
|
|
296
296
|
* @description: Get all category level configuration level set for an sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAppCategoryReturnConfig/).
|
|
297
297
|
*/
|
|
298
|
-
getAppCategoryReturnConfig({ requestHeaders }?:
|
|
298
|
+
getAppCategoryReturnConfig({ q, pageNo, pageSize, requestHeaders }?: CatalogPlatformApplicationValidator.GetAppCategoryReturnConfigParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.BaseAppCategoryReturnConfigResponse>;
|
|
299
299
|
/**
|
|
300
300
|
* @param {CatalogPlatformApplicationValidator.GetAppInventoryParam} arg - Arg object
|
|
301
301
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -1746,13 +1746,17 @@ class Catalog {
|
|
|
1746
1746
|
* @description: Get all category level configuration level set for an sales channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/catalog/getAppCategoryReturnConfig/).
|
|
1747
1747
|
*/
|
|
1748
1748
|
async getAppCategoryReturnConfig(
|
|
1749
|
-
{ requestHeaders } = { requestHeaders: {} },
|
|
1749
|
+
{ q, pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
1750
1750
|
{ responseHeaders } = { responseHeaders: false }
|
|
1751
1751
|
) {
|
|
1752
1752
|
const {
|
|
1753
1753
|
error,
|
|
1754
1754
|
} = CatalogPlatformApplicationValidator.getAppCategoryReturnConfig().validate(
|
|
1755
|
-
{
|
|
1755
|
+
{
|
|
1756
|
+
q,
|
|
1757
|
+
pageNo,
|
|
1758
|
+
pageSize,
|
|
1759
|
+
},
|
|
1756
1760
|
{ abortEarly: false, allowUnknown: true }
|
|
1757
1761
|
);
|
|
1758
1762
|
if (error) {
|
|
@@ -1763,7 +1767,11 @@ class Catalog {
|
|
|
1763
1767
|
const {
|
|
1764
1768
|
error: warrning,
|
|
1765
1769
|
} = CatalogPlatformApplicationValidator.getAppCategoryReturnConfig().validate(
|
|
1766
|
-
{
|
|
1770
|
+
{
|
|
1771
|
+
q,
|
|
1772
|
+
pageNo,
|
|
1773
|
+
pageSize,
|
|
1774
|
+
},
|
|
1767
1775
|
{ abortEarly: false, allowUnknown: false }
|
|
1768
1776
|
);
|
|
1769
1777
|
if (warrning) {
|
|
@@ -1774,6 +1782,9 @@ class Catalog {
|
|
|
1774
1782
|
}
|
|
1775
1783
|
|
|
1776
1784
|
const query_params = {};
|
|
1785
|
+
query_params["q"] = q;
|
|
1786
|
+
query_params["page_no"] = pageNo;
|
|
1787
|
+
query_params["page_size"] = pageSize;
|
|
1777
1788
|
|
|
1778
1789
|
const response = await PlatformAPIClient.execute(
|
|
1779
1790
|
this.config,
|
|
@@ -96,7 +96,15 @@ export = CatalogPlatformApplicationValidator;
|
|
|
96
96
|
* Default is 12.
|
|
97
97
|
*/
|
|
98
98
|
/** @typedef GetAllSearchKeywordParam */
|
|
99
|
-
/**
|
|
99
|
+
/**
|
|
100
|
+
* @typedef GetAppCategoryReturnConfigParam
|
|
101
|
+
* @property {string} [q] - Get return configurations for categories by matching
|
|
102
|
+
* the search string with category names.
|
|
103
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
104
|
+
* set of results
|
|
105
|
+
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
106
|
+
* Default is 10.
|
|
107
|
+
*/
|
|
100
108
|
/**
|
|
101
109
|
* @typedef GetAppInventoryParam
|
|
102
110
|
* @property {number[]} [itemIds] - The Item Id of the product.
|
|
@@ -465,7 +473,7 @@ declare class CatalogPlatformApplicationValidator {
|
|
|
465
473
|
/** @returns {GetAllSearchKeywordParam} */
|
|
466
474
|
static getAllSearchKeyword(): any;
|
|
467
475
|
/** @returns {GetAppCategoryReturnConfigParam} */
|
|
468
|
-
static getAppCategoryReturnConfig():
|
|
476
|
+
static getAppCategoryReturnConfig(): GetAppCategoryReturnConfigParam;
|
|
469
477
|
/** @returns {GetAppInventoryParam} */
|
|
470
478
|
static getAppInventory(): GetAppInventoryParam;
|
|
471
479
|
/** @returns {GetAppLocationsParam} */
|
|
@@ -691,6 +699,23 @@ type GetAllCollectionsParam = {
|
|
|
691
699
|
*/
|
|
692
700
|
pageSize?: number;
|
|
693
701
|
};
|
|
702
|
+
type GetAppCategoryReturnConfigParam = {
|
|
703
|
+
/**
|
|
704
|
+
* - Get return configurations for categories by matching
|
|
705
|
+
* the search string with category names.
|
|
706
|
+
*/
|
|
707
|
+
q?: string;
|
|
708
|
+
/**
|
|
709
|
+
* - The page number to navigate through the given
|
|
710
|
+
* set of results
|
|
711
|
+
*/
|
|
712
|
+
pageNo?: number;
|
|
713
|
+
/**
|
|
714
|
+
* - Number of items to retrieve in each page.
|
|
715
|
+
* Default is 10.
|
|
716
|
+
*/
|
|
717
|
+
pageSize?: number;
|
|
718
|
+
};
|
|
694
719
|
type GetAppInventoryParam = {
|
|
695
720
|
/**
|
|
696
721
|
* - The Item Id of the product.
|
|
@@ -1289,7 +1314,6 @@ type UpdateSearchKeywordsParam = {
|
|
|
1289
1314
|
};
|
|
1290
1315
|
type DeleteSearchConfigurationParam = any;
|
|
1291
1316
|
type GetAllSearchKeywordParam = any;
|
|
1292
|
-
type GetAppCategoryReturnConfigParam = any;
|
|
1293
1317
|
type GetAppReturnConfigurationParam = any;
|
|
1294
1318
|
type GetAutocompleteConfigParam = any;
|
|
1295
1319
|
type GetCatalogConfigurationParam = any;
|
|
@@ -119,7 +119,15 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
|
119
119
|
|
|
120
120
|
/** @typedef GetAllSearchKeywordParam */
|
|
121
121
|
|
|
122
|
-
/**
|
|
122
|
+
/**
|
|
123
|
+
* @typedef GetAppCategoryReturnConfigParam
|
|
124
|
+
* @property {string} [q] - Get return configurations for categories by matching
|
|
125
|
+
* the search string with category names.
|
|
126
|
+
* @property {number} [pageNo] - The page number to navigate through the given
|
|
127
|
+
* set of results
|
|
128
|
+
* @property {number} [pageSize] - Number of items to retrieve in each page.
|
|
129
|
+
* Default is 10.
|
|
130
|
+
*/
|
|
123
131
|
|
|
124
132
|
/**
|
|
125
133
|
* @typedef GetAppInventoryParam
|
|
@@ -643,7 +651,11 @@ class CatalogPlatformApplicationValidator {
|
|
|
643
651
|
|
|
644
652
|
/** @returns {GetAppCategoryReturnConfigParam} */
|
|
645
653
|
static getAppCategoryReturnConfig() {
|
|
646
|
-
return Joi.object({
|
|
654
|
+
return Joi.object({
|
|
655
|
+
q: Joi.string().allow(""),
|
|
656
|
+
pageNo: Joi.number(),
|
|
657
|
+
pageSize: Joi.number(),
|
|
658
|
+
}).required();
|
|
647
659
|
}
|
|
648
660
|
|
|
649
661
|
/** @returns {GetAppInventoryParam} */
|
|
@@ -435,6 +435,33 @@ export = OrderPlatformModel;
|
|
|
435
435
|
* @property {string} [store_lookup]
|
|
436
436
|
* @property {AffiliateStoreIdMapping[]} affiliate_store_id_mapping
|
|
437
437
|
*/
|
|
438
|
+
/**
|
|
439
|
+
* @typedef DPConfiguration
|
|
440
|
+
* @property {string} [shipping_by] - Shipping_by denotes dp assignment
|
|
441
|
+
* strategy- if shipping_by is fynd dp assignment would be handled by OMS
|
|
442
|
+
*/
|
|
443
|
+
/**
|
|
444
|
+
* @typedef PaymentConfig
|
|
445
|
+
* @property {string} [mode_of_payment] - Specifies the mode through which the
|
|
446
|
+
* payment was collected, serving as an identifier for the payment's origin.
|
|
447
|
+
* @property {string} [source] - The source field identifies the channel through
|
|
448
|
+
* which the order was placed, such as MARKETPLACE, ECOMM.
|
|
449
|
+
*/
|
|
450
|
+
/**
|
|
451
|
+
* @typedef CreateOrderConfig
|
|
452
|
+
* @property {DPConfiguration} [dp_configuration]
|
|
453
|
+
* @property {string} [integration_type] - Flag denotes integration type which
|
|
454
|
+
* is used to retrieve specific configurations and application details
|
|
455
|
+
* relevant to channel fulfillment.
|
|
456
|
+
* @property {boolean} [location_reassignment] - Flag denotes if the location
|
|
457
|
+
* for the store needs to be reassigned post cancellation.
|
|
458
|
+
* @property {PaymentConfig} [payment]
|
|
459
|
+
* @property {boolean} [optimal_shipment_creation] - Denotes the shipment
|
|
460
|
+
* breaking strategy. If the flag is set true, the shipment is created using
|
|
461
|
+
* optimal shipment creation strategy based on the servicability & packaging
|
|
462
|
+
* dimensions by OMS .If false, shipment details, including location_id, must
|
|
463
|
+
* be passed to FDK for processing.
|
|
464
|
+
*/
|
|
438
465
|
/**
|
|
439
466
|
* @typedef CreateOrderPayload
|
|
440
467
|
* @property {string} affiliate_id
|
|
@@ -683,8 +710,12 @@ export = OrderPlatformModel;
|
|
|
683
710
|
* @property {ProcessingDates} [processing_dates]
|
|
684
711
|
* @property {Object} [meta] - Meta data of the shipment.
|
|
685
712
|
* @property {number} [priority] - Integer value indicating high and low priority.
|
|
686
|
-
* @property {number} location_id - Location Identifier or Store/Fulfillment
|
|
687
|
-
* Identifier of the shipment
|
|
713
|
+
* @property {number} [location_id] - Location Identifier or Store/Fulfillment
|
|
714
|
+
* Identifier of the shipment- This field is mandatory when
|
|
715
|
+
* optimal_shipment_creation flag is set to false, indicating that shipments
|
|
716
|
+
* must be associated with a specific location. When
|
|
717
|
+
* `optimal_shipment_creation` is true, the optimal location for order
|
|
718
|
+
* creation would be assigned, location_id becomes optional.
|
|
688
719
|
* @property {string} [order_type] - The order type of shipment HomeDelivery -
|
|
689
720
|
* If the customer wants the order home-delivered PickAtStore - If the
|
|
690
721
|
* customer wants the handover of an order at the store itself.
|
|
@@ -716,16 +747,6 @@ export = OrderPlatformModel;
|
|
|
716
747
|
* @property {Prices} [price]
|
|
717
748
|
* @property {ShipmentGstDetails} [gst]
|
|
718
749
|
*/
|
|
719
|
-
/**
|
|
720
|
-
* @typedef ShipmentRequestData
|
|
721
|
-
* @property {LineItem[]} line_items
|
|
722
|
-
* @property {ProcessingDates} [processing_dates]
|
|
723
|
-
* @property {Object} [meta] - Meta data of the shipment.
|
|
724
|
-
* @property {number} [priority] - Integer value indicating high and low priority.
|
|
725
|
-
* @property {string} [order_type] - The order type of shipment HomeDelivery -
|
|
726
|
-
* If the customer wants the order home-delivered PickAtStore - If the
|
|
727
|
-
* customer wants the handover of an order at the store itself.
|
|
728
|
-
*/
|
|
729
750
|
/**
|
|
730
751
|
* @typedef ShippingInfo
|
|
731
752
|
* @property {string} [alternate_mobile_number]
|
|
@@ -820,7 +841,6 @@ export = OrderPlatformModel;
|
|
|
820
841
|
/**
|
|
821
842
|
* @typedef CreateOrderAPI
|
|
822
843
|
* @property {Shipment[]} shipments
|
|
823
|
-
* @property {ShipmentRequestData} [shipment_request_data]
|
|
824
844
|
* @property {ShippingInfo} shipping_info
|
|
825
845
|
* @property {BillingInfo} billing_info
|
|
826
846
|
* @property {Object} [currency_info]
|
|
@@ -829,7 +849,7 @@ export = OrderPlatformModel;
|
|
|
829
849
|
* @property {string} [external_creation_date]
|
|
830
850
|
* @property {Object} [meta]
|
|
831
851
|
* @property {TaxInfo} [tax_info]
|
|
832
|
-
* @property {
|
|
852
|
+
* @property {CreateOrderConfig} [config]
|
|
833
853
|
* @property {PaymentInfo} payment_info
|
|
834
854
|
* @property {UserInfo} [user_info]
|
|
835
855
|
* @property {number} [ordering_store_id]
|
|
@@ -3086,7 +3106,7 @@ export = OrderPlatformModel;
|
|
|
3086
3106
|
declare class OrderPlatformModel {
|
|
3087
3107
|
}
|
|
3088
3108
|
declare namespace OrderPlatformModel {
|
|
3089
|
-
export { InvalidateShipmentCachePayload, InvalidateShipmentCacheNestedResponse, InvalidateShipmentCacheResponse, ErrorResponse, StoreReassign, StoreReassignResponse, Entities, UpdateShipmentLockPayload, OriginalFilter, Bags, CheckResponse, UpdateShipmentLockResponse, AnnouncementResponse, AnnouncementsResponse, BaseResponse, Click2CallResponse, ErrorDetail, ProductsReasonsFilters, ProductsReasonsData, ProductsReasons, EntityReasonData, EntitiesReasons, ReasonsData, Products, OrderItemDataUpdates, ProductsDataUpdatesFilters, ProductsDataUpdates, EntitiesDataUpdates, DataUpdates, ShipmentsRequest, StatuesRequest, UpdateShipmentStatusRequest, ShipmentsResponse, StatuesResponse, UpdateShipmentStatusResponseBody, OrderUser, OrderPriority, ArticleDetails, LocationDetails, ShipmentDetails, ShipmentConfig, ShipmentData, MarketPlacePdf, AffiliateBag, UserData, OrderInfo, AffiliateAppConfigMeta, AffiliateAppConfig, AffiliateInventoryArticleAssignmentConfig, AffiliateInventoryPaymentConfig, AffiliateInventoryStoreConfig, AffiliateInventoryOrderConfig, AffiliateInventoryLogisticsConfig, AffiliateInventoryConfig, AffiliateConfig, Affiliate, AffiliateStoreIdMapping, OrderConfig, CreateOrderPayload, CreateOrderResponse, DispatchManifest, SuccessResponse, ActionInfo, GetActionsResponse, HistoryReason, HistoryMeta, HistoryDict, ShipmentHistoryResponse, PostHistoryFilters, PostHistoryData, PostHistoryDict, PostShipmentHistory, SmsDataPayload, SendSmsPayload, OrderDetails, Meta, ShipmentDetail, OrderStatusData, OrderStatusResult, Dimension, UpdatePackagingDimensionsPayload, UpdatePackagingDimensionsResponse, Tax, Charge, LineItem, ProcessingDates, Shipment,
|
|
3109
|
+
export { InvalidateShipmentCachePayload, InvalidateShipmentCacheNestedResponse, InvalidateShipmentCacheResponse, ErrorResponse, StoreReassign, StoreReassignResponse, Entities, UpdateShipmentLockPayload, OriginalFilter, Bags, CheckResponse, UpdateShipmentLockResponse, AnnouncementResponse, AnnouncementsResponse, BaseResponse, Click2CallResponse, ErrorDetail, ProductsReasonsFilters, ProductsReasonsData, ProductsReasons, EntityReasonData, EntitiesReasons, ReasonsData, Products, OrderItemDataUpdates, ProductsDataUpdatesFilters, ProductsDataUpdates, EntitiesDataUpdates, DataUpdates, ShipmentsRequest, StatuesRequest, UpdateShipmentStatusRequest, ShipmentsResponse, StatuesResponse, UpdateShipmentStatusResponseBody, OrderUser, OrderPriority, ArticleDetails, LocationDetails, ShipmentDetails, ShipmentConfig, ShipmentData, MarketPlacePdf, AffiliateBag, UserData, OrderInfo, AffiliateAppConfigMeta, AffiliateAppConfig, AffiliateInventoryArticleAssignmentConfig, AffiliateInventoryPaymentConfig, AffiliateInventoryStoreConfig, AffiliateInventoryOrderConfig, AffiliateInventoryLogisticsConfig, AffiliateInventoryConfig, AffiliateConfig, Affiliate, AffiliateStoreIdMapping, OrderConfig, DPConfiguration, PaymentConfig, CreateOrderConfig, CreateOrderPayload, CreateOrderResponse, DispatchManifest, SuccessResponse, ActionInfo, GetActionsResponse, HistoryReason, HistoryMeta, HistoryDict, ShipmentHistoryResponse, PostHistoryFilters, PostHistoryData, PostHistoryDict, PostShipmentHistory, SmsDataPayload, SendSmsPayload, OrderDetails, Meta, ShipmentDetail, OrderStatusData, OrderStatusResult, Dimension, UpdatePackagingDimensionsPayload, UpdatePackagingDimensionsResponse, Tax, Charge, LineItem, ProcessingDates, Shipment, ShippingInfo, BillingInfo, UserInfo, TaxInfo, PaymentMethod, PaymentInfo, CreateOrderAPI, CreateOrderErrorReponse, DpConfiguration, PaymentMethods, CreateChannelPaymentInfo, CreateChannelConfig, CreateChannelConfigData, CreateChannelConifgErrorResponse, CreateChannelConfigResponse, UploadConsent, PlatformOrderUpdate, ResponseDetail, FyndOrderIdList, OrderStatus, BagStateTransitionMap, RoleBaseStateTransitionMapping, FetchCreditBalanceRequestPayload, CreditBalanceInfo, FetchCreditBalanceResponsePayload, RefundModeConfigRequestPayload, RefundOption, RefundModeInfo, RefundModeConfigResponsePayload, AttachUserOtpData, AttachUserInfo, AttachOrderUser, AttachOrderUserResponse, SendUserMobileOTP, PointBlankOtpData, SendUserMobileOtpResponse, VerifyOtpData, VerifyMobileOTP, VerifyOtpResponseData, VerifyOtpResponse, BulkReportsDownloadRequest, BulkReportsDownloadResponse, BulkFailedResponse, BulkStateTransistionRequest, BulkStateTransistionResponse, ShipmentActionInfo, BulkActionListingData, BulkListinPage, BulkListingResponse, JobDetailsData, JobDetailsResponse, JobFailedResponse, ManifestPageInfo, ManifestItemDetails, ManifestShipmentListing, DateRange, Filters, ManifestFile, ManifestMediaUpdate, PDFMeta, TotalShipmentPricesCount, ManifestMeta, Manifest, ManifestList, ManifestDetails, FiltersRequest, ProcessManifest, ProcessManifestResponse, ProcessManifestItemResponse, FilterInfoOption, FiltersInfo, ManifestFiltersResponse, PageDetails, EInvoiceIrnDetails, EInvoiceErrorDetails, EInvoiceDetails, EInvoiceResponseData, EInvoiceRetry, EInvoiceRetryResponse, EInvoiceErrorInfo, EInvoiceErrorResponseData, EInvoiceErrorResponse, EInvoiceErrorResponseDetails, EInvoiceRetryShipmentData, CourierPartnerTrackingDetails, CourierPartnerTrackingResponse, LogsChannelDetails, LogPaymentDetails, FailedOrdersItem, FailedOrderLogs, FailedOrderLogDetails, GenerateInvoiceIDResponseData, GenerateInvoiceIDErrorResponseData, GenerateInvoiceIDRequest, GenerateInvoiceIDResponse, GenerateInvoiceIDErrorResponse, ManifestResponse, ProcessManifestRequest, ManifestItems, ManifestErrorResponse, ConfigData, ConfigUpdatedResponse, FlagData, Flags, Filter, PostHook, PreHook, Config, TransitionConfigCondition, TransitionConfigData, TransitionConfigPayload, Page, BagReasonMeta, QuestionSet, BagReasons, ShipmentBagReasons, ShipmentStatus, UserDataInfo, PlatformDeliveryAddress, ShipmentListingChannel, Prices, Identifier, FinancialBreakup, GSTDetailsData, BagStateMapper, BagStatusHistory, Dimensions, ReturnConfig, Weight, Article, ShipmentListingBrand, ReplacementDetails, AffiliateMeta, AffiliateBagDetails, PlatformArticleAttributes, PlatformItem, Dates, BagReturnableCancelableStatus, BagUnit, ShipmentItemFulFillingStore, Currency, OrderingCurrency, ConversionRate, CurrencyInfo, ShipmentItem, ShipmentInternalPlatformViewResponse, TrackingList, InvoiceInfo, OrderDetailsData, UserDetailsData, PhoneDetails, ContactDetails, CompanyDetails, OrderingStoreDetails, DPDetailsData, BuyerDetails, DebugInfo, EinvoiceInfo, Formatted, ShipmentTags, LockData, ShipmentTimeStamp, ShipmentMeta, PDFLinks, AffiliateDetails, BagConfigs, OrderBagArticle, OrderBrandName, AffiliateBagsDetails, BagPaymentMethods, DiscountRules, ItemCriterias, BuyRules, AppliedPromos, CurrentStatus, OrderBags, FulfillingStore, ShipmentPayments, ShipmentStatusData, ShipmentLockDetails, PlatformShipment, ShipmentInfoResponse, TaxDetails, PaymentInfoData, OrderData, OrderDetailsResponse, SubLane, SuperLane, LaneConfigResponse, PlatformBreakupValues, PlatformChannel, PlatformOrderItems, OrderListingResponse, PlatformTrack, PlatformShipmentTrack, AdvanceFilterInfo, FiltersResponse, URL, FileResponse, BulkActionTemplate, BulkActionTemplateResponse, Reason, PlatformShipmentReasonsResponse, ShipmentResponseReasons, ShipmentReasonsResponse, StoreAddress, EInvoicePortalDetails, StoreEinvoice, StoreEwaybill, StoreGstCredentials, Document, StoreDocuments, StoreMeta, Store, Brand, Item, ArticleStatusDetails, Company, ShipmentGstDetails, DeliverySlotDetails, InvoiceDetails, UserDetails, WeightData, BagDetails, BagDetailsPlatformResponse, BagsPage, BagData, GetBagsPlatformResponse, GeneratePosOrderReceiptResponse, Templates, AllowedTemplatesResponse, TemplateDownloadResponse, Error };
|
|
3090
3110
|
}
|
|
3091
3111
|
/** @returns {InvalidateShipmentCachePayload} */
|
|
3092
3112
|
declare function InvalidateShipmentCachePayload(): InvalidateShipmentCachePayload;
|
|
@@ -3738,6 +3758,54 @@ type OrderConfig = {
|
|
|
3738
3758
|
store_lookup?: string;
|
|
3739
3759
|
affiliate_store_id_mapping: AffiliateStoreIdMapping[];
|
|
3740
3760
|
};
|
|
3761
|
+
/** @returns {DPConfiguration} */
|
|
3762
|
+
declare function DPConfiguration(): DPConfiguration;
|
|
3763
|
+
type DPConfiguration = {
|
|
3764
|
+
/**
|
|
3765
|
+
* - Shipping_by denotes dp assignment
|
|
3766
|
+
* strategy- if shipping_by is fynd dp assignment would be handled by OMS
|
|
3767
|
+
*/
|
|
3768
|
+
shipping_by?: string;
|
|
3769
|
+
};
|
|
3770
|
+
/** @returns {PaymentConfig} */
|
|
3771
|
+
declare function PaymentConfig(): PaymentConfig;
|
|
3772
|
+
type PaymentConfig = {
|
|
3773
|
+
/**
|
|
3774
|
+
* - Specifies the mode through which the
|
|
3775
|
+
* payment was collected, serving as an identifier for the payment's origin.
|
|
3776
|
+
*/
|
|
3777
|
+
mode_of_payment?: string;
|
|
3778
|
+
/**
|
|
3779
|
+
* - The source field identifies the channel through
|
|
3780
|
+
* which the order was placed, such as MARKETPLACE, ECOMM.
|
|
3781
|
+
*/
|
|
3782
|
+
source?: string;
|
|
3783
|
+
};
|
|
3784
|
+
/** @returns {CreateOrderConfig} */
|
|
3785
|
+
declare function CreateOrderConfig(): CreateOrderConfig;
|
|
3786
|
+
type CreateOrderConfig = {
|
|
3787
|
+
dp_configuration?: DPConfiguration;
|
|
3788
|
+
/**
|
|
3789
|
+
* - Flag denotes integration type which
|
|
3790
|
+
* is used to retrieve specific configurations and application details
|
|
3791
|
+
* relevant to channel fulfillment.
|
|
3792
|
+
*/
|
|
3793
|
+
integration_type?: string;
|
|
3794
|
+
/**
|
|
3795
|
+
* - Flag denotes if the location
|
|
3796
|
+
* for the store needs to be reassigned post cancellation.
|
|
3797
|
+
*/
|
|
3798
|
+
location_reassignment?: boolean;
|
|
3799
|
+
payment?: PaymentConfig;
|
|
3800
|
+
/**
|
|
3801
|
+
* - Denotes the shipment
|
|
3802
|
+
* breaking strategy. If the flag is set true, the shipment is created using
|
|
3803
|
+
* optimal shipment creation strategy based on the servicability & packaging
|
|
3804
|
+
* dimensions by OMS .If false, shipment details, including location_id, must
|
|
3805
|
+
* be passed to FDK for processing.
|
|
3806
|
+
*/
|
|
3807
|
+
optimal_shipment_creation?: boolean;
|
|
3808
|
+
};
|
|
3741
3809
|
/** @returns {CreateOrderPayload} */
|
|
3742
3810
|
declare function CreateOrderPayload(): CreateOrderPayload;
|
|
3743
3811
|
type CreateOrderPayload = {
|
|
@@ -4131,9 +4199,13 @@ type Shipment = {
|
|
|
4131
4199
|
priority?: number;
|
|
4132
4200
|
/**
|
|
4133
4201
|
* - Location Identifier or Store/Fulfillment
|
|
4134
|
-
* Identifier of the shipment
|
|
4202
|
+
* Identifier of the shipment- This field is mandatory when
|
|
4203
|
+
* optimal_shipment_creation flag is set to false, indicating that shipments
|
|
4204
|
+
* must be associated with a specific location. When
|
|
4205
|
+
* `optimal_shipment_creation` is true, the optimal location for order
|
|
4206
|
+
* creation would be assigned, location_id becomes optional.
|
|
4135
4207
|
*/
|
|
4136
|
-
location_id
|
|
4208
|
+
location_id?: number;
|
|
4137
4209
|
/**
|
|
4138
4210
|
* - The order type of shipment HomeDelivery -
|
|
4139
4211
|
* If the customer wants the order home-delivered PickAtStore - If the
|
|
@@ -4168,26 +4240,6 @@ type Shipment = {
|
|
|
4168
4240
|
price?: Prices;
|
|
4169
4241
|
gst?: ShipmentGstDetails;
|
|
4170
4242
|
};
|
|
4171
|
-
/** @returns {ShipmentRequestData} */
|
|
4172
|
-
declare function ShipmentRequestData(): ShipmentRequestData;
|
|
4173
|
-
type ShipmentRequestData = {
|
|
4174
|
-
line_items: LineItem[];
|
|
4175
|
-
processing_dates?: ProcessingDates;
|
|
4176
|
-
/**
|
|
4177
|
-
* - Meta data of the shipment.
|
|
4178
|
-
*/
|
|
4179
|
-
meta?: any;
|
|
4180
|
-
/**
|
|
4181
|
-
* - Integer value indicating high and low priority.
|
|
4182
|
-
*/
|
|
4183
|
-
priority?: number;
|
|
4184
|
-
/**
|
|
4185
|
-
* - The order type of shipment HomeDelivery -
|
|
4186
|
-
* If the customer wants the order home-delivered PickAtStore - If the
|
|
4187
|
-
* customer wants the handover of an order at the store itself.
|
|
4188
|
-
*/
|
|
4189
|
-
order_type?: string;
|
|
4190
|
-
};
|
|
4191
4243
|
/** @returns {ShippingInfo} */
|
|
4192
4244
|
declare function ShippingInfo(): ShippingInfo;
|
|
4193
4245
|
type ShippingInfo = {
|
|
@@ -4295,7 +4347,6 @@ type PaymentInfo = {
|
|
|
4295
4347
|
declare function CreateOrderAPI(): CreateOrderAPI;
|
|
4296
4348
|
type CreateOrderAPI = {
|
|
4297
4349
|
shipments: Shipment[];
|
|
4298
|
-
shipment_request_data?: ShipmentRequestData;
|
|
4299
4350
|
shipping_info: ShippingInfo;
|
|
4300
4351
|
billing_info: BillingInfo;
|
|
4301
4352
|
currency_info?: any;
|
|
@@ -4304,7 +4355,7 @@ type CreateOrderAPI = {
|
|
|
4304
4355
|
external_creation_date?: string;
|
|
4305
4356
|
meta?: any;
|
|
4306
4357
|
tax_info?: TaxInfo;
|
|
4307
|
-
config?:
|
|
4358
|
+
config?: CreateOrderConfig;
|
|
4308
4359
|
payment_info: PaymentInfo;
|
|
4309
4360
|
user_info?: UserInfo;
|
|
4310
4361
|
ordering_store_id?: number;
|
|
@@ -494,6 +494,36 @@ const Joi = require("joi");
|
|
|
494
494
|
* @property {AffiliateStoreIdMapping[]} affiliate_store_id_mapping
|
|
495
495
|
*/
|
|
496
496
|
|
|
497
|
+
/**
|
|
498
|
+
* @typedef DPConfiguration
|
|
499
|
+
* @property {string} [shipping_by] - Shipping_by denotes dp assignment
|
|
500
|
+
* strategy- if shipping_by is fynd dp assignment would be handled by OMS
|
|
501
|
+
*/
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* @typedef PaymentConfig
|
|
505
|
+
* @property {string} [mode_of_payment] - Specifies the mode through which the
|
|
506
|
+
* payment was collected, serving as an identifier for the payment's origin.
|
|
507
|
+
* @property {string} [source] - The source field identifies the channel through
|
|
508
|
+
* which the order was placed, such as MARKETPLACE, ECOMM.
|
|
509
|
+
*/
|
|
510
|
+
|
|
511
|
+
/**
|
|
512
|
+
* @typedef CreateOrderConfig
|
|
513
|
+
* @property {DPConfiguration} [dp_configuration]
|
|
514
|
+
* @property {string} [integration_type] - Flag denotes integration type which
|
|
515
|
+
* is used to retrieve specific configurations and application details
|
|
516
|
+
* relevant to channel fulfillment.
|
|
517
|
+
* @property {boolean} [location_reassignment] - Flag denotes if the location
|
|
518
|
+
* for the store needs to be reassigned post cancellation.
|
|
519
|
+
* @property {PaymentConfig} [payment]
|
|
520
|
+
* @property {boolean} [optimal_shipment_creation] - Denotes the shipment
|
|
521
|
+
* breaking strategy. If the flag is set true, the shipment is created using
|
|
522
|
+
* optimal shipment creation strategy based on the servicability & packaging
|
|
523
|
+
* dimensions by OMS .If false, shipment details, including location_id, must
|
|
524
|
+
* be passed to FDK for processing.
|
|
525
|
+
*/
|
|
526
|
+
|
|
497
527
|
/**
|
|
498
528
|
* @typedef CreateOrderPayload
|
|
499
529
|
* @property {string} affiliate_id
|
|
@@ -770,8 +800,12 @@ const Joi = require("joi");
|
|
|
770
800
|
* @property {ProcessingDates} [processing_dates]
|
|
771
801
|
* @property {Object} [meta] - Meta data of the shipment.
|
|
772
802
|
* @property {number} [priority] - Integer value indicating high and low priority.
|
|
773
|
-
* @property {number} location_id - Location Identifier or Store/Fulfillment
|
|
774
|
-
* Identifier of the shipment
|
|
803
|
+
* @property {number} [location_id] - Location Identifier or Store/Fulfillment
|
|
804
|
+
* Identifier of the shipment- This field is mandatory when
|
|
805
|
+
* optimal_shipment_creation flag is set to false, indicating that shipments
|
|
806
|
+
* must be associated with a specific location. When
|
|
807
|
+
* `optimal_shipment_creation` is true, the optimal location for order
|
|
808
|
+
* creation would be assigned, location_id becomes optional.
|
|
775
809
|
* @property {string} [order_type] - The order type of shipment HomeDelivery -
|
|
776
810
|
* If the customer wants the order home-delivered PickAtStore - If the
|
|
777
811
|
* customer wants the handover of an order at the store itself.
|
|
@@ -804,17 +838,6 @@ const Joi = require("joi");
|
|
|
804
838
|
* @property {ShipmentGstDetails} [gst]
|
|
805
839
|
*/
|
|
806
840
|
|
|
807
|
-
/**
|
|
808
|
-
* @typedef ShipmentRequestData
|
|
809
|
-
* @property {LineItem[]} line_items
|
|
810
|
-
* @property {ProcessingDates} [processing_dates]
|
|
811
|
-
* @property {Object} [meta] - Meta data of the shipment.
|
|
812
|
-
* @property {number} [priority] - Integer value indicating high and low priority.
|
|
813
|
-
* @property {string} [order_type] - The order type of shipment HomeDelivery -
|
|
814
|
-
* If the customer wants the order home-delivered PickAtStore - If the
|
|
815
|
-
* customer wants the handover of an order at the store itself.
|
|
816
|
-
*/
|
|
817
|
-
|
|
818
841
|
/**
|
|
819
842
|
* @typedef ShippingInfo
|
|
820
843
|
* @property {string} [alternate_mobile_number]
|
|
@@ -915,7 +938,6 @@ const Joi = require("joi");
|
|
|
915
938
|
/**
|
|
916
939
|
* @typedef CreateOrderAPI
|
|
917
940
|
* @property {Shipment[]} shipments
|
|
918
|
-
* @property {ShipmentRequestData} [shipment_request_data]
|
|
919
941
|
* @property {ShippingInfo} shipping_info
|
|
920
942
|
* @property {BillingInfo} billing_info
|
|
921
943
|
* @property {Object} [currency_info]
|
|
@@ -924,7 +946,7 @@ const Joi = require("joi");
|
|
|
924
946
|
* @property {string} [external_creation_date]
|
|
925
947
|
* @property {Object} [meta]
|
|
926
948
|
* @property {TaxInfo} [tax_info]
|
|
927
|
-
* @property {
|
|
949
|
+
* @property {CreateOrderConfig} [config]
|
|
928
950
|
* @property {PaymentInfo} payment_info
|
|
929
951
|
* @property {UserInfo} [user_info]
|
|
930
952
|
* @property {number} [ordering_store_id]
|
|
@@ -4016,6 +4038,32 @@ class OrderPlatformModel {
|
|
|
4016
4038
|
});
|
|
4017
4039
|
}
|
|
4018
4040
|
|
|
4041
|
+
/** @returns {DPConfiguration} */
|
|
4042
|
+
static DPConfiguration() {
|
|
4043
|
+
return Joi.object({
|
|
4044
|
+
shipping_by: Joi.string().allow(""),
|
|
4045
|
+
});
|
|
4046
|
+
}
|
|
4047
|
+
|
|
4048
|
+
/** @returns {PaymentConfig} */
|
|
4049
|
+
static PaymentConfig() {
|
|
4050
|
+
return Joi.object({
|
|
4051
|
+
mode_of_payment: Joi.string().allow(""),
|
|
4052
|
+
source: Joi.string().allow(""),
|
|
4053
|
+
});
|
|
4054
|
+
}
|
|
4055
|
+
|
|
4056
|
+
/** @returns {CreateOrderConfig} */
|
|
4057
|
+
static CreateOrderConfig() {
|
|
4058
|
+
return Joi.object({
|
|
4059
|
+
dp_configuration: OrderPlatformModel.DPConfiguration(),
|
|
4060
|
+
integration_type: Joi.string().allow(""),
|
|
4061
|
+
location_reassignment: Joi.boolean(),
|
|
4062
|
+
payment: OrderPlatformModel.PaymentConfig(),
|
|
4063
|
+
optimal_shipment_creation: Joi.boolean(),
|
|
4064
|
+
});
|
|
4065
|
+
}
|
|
4066
|
+
|
|
4019
4067
|
/** @returns {CreateOrderPayload} */
|
|
4020
4068
|
static CreateOrderPayload() {
|
|
4021
4069
|
return Joi.object({
|
|
@@ -4346,7 +4394,7 @@ class OrderPlatformModel {
|
|
|
4346
4394
|
processing_dates: OrderPlatformModel.ProcessingDates(),
|
|
4347
4395
|
meta: Joi.any().allow(null),
|
|
4348
4396
|
priority: Joi.number(),
|
|
4349
|
-
location_id: Joi.number()
|
|
4397
|
+
location_id: Joi.number(),
|
|
4350
4398
|
order_type: Joi.string().allow(""),
|
|
4351
4399
|
parent_type: Joi.string().allow("").allow(null),
|
|
4352
4400
|
store_invoice_id: Joi.string().allow("").allow(null),
|
|
@@ -4378,17 +4426,6 @@ class OrderPlatformModel {
|
|
|
4378
4426
|
});
|
|
4379
4427
|
}
|
|
4380
4428
|
|
|
4381
|
-
/** @returns {ShipmentRequestData} */
|
|
4382
|
-
static ShipmentRequestData() {
|
|
4383
|
-
return Joi.object({
|
|
4384
|
-
line_items: Joi.array().items(OrderPlatformModel.LineItem()).required(),
|
|
4385
|
-
processing_dates: OrderPlatformModel.ProcessingDates(),
|
|
4386
|
-
meta: Joi.any(),
|
|
4387
|
-
priority: Joi.number(),
|
|
4388
|
-
order_type: Joi.string().allow(""),
|
|
4389
|
-
});
|
|
4390
|
-
}
|
|
4391
|
-
|
|
4392
4429
|
/** @returns {ShippingInfo} */
|
|
4393
4430
|
static ShippingInfo() {
|
|
4394
4431
|
return Joi.object({
|
|
@@ -4502,7 +4539,6 @@ class OrderPlatformModel {
|
|
|
4502
4539
|
static CreateOrderAPI() {
|
|
4503
4540
|
return Joi.object({
|
|
4504
4541
|
shipments: Joi.array().items(OrderPlatformModel.Shipment()).required(),
|
|
4505
|
-
shipment_request_data: OrderPlatformModel.ShipmentRequestData(),
|
|
4506
4542
|
shipping_info: OrderPlatformModel.ShippingInfo().required(),
|
|
4507
4543
|
billing_info: OrderPlatformModel.BillingInfo().required(),
|
|
4508
4544
|
currency_info: Joi.any(),
|
|
@@ -4511,7 +4547,7 @@ class OrderPlatformModel {
|
|
|
4511
4547
|
external_creation_date: Joi.string().allow(""),
|
|
4512
4548
|
meta: Joi.any(),
|
|
4513
4549
|
tax_info: OrderPlatformModel.TaxInfo(),
|
|
4514
|
-
config:
|
|
4550
|
+
config: OrderPlatformModel.CreateOrderConfig(),
|
|
4515
4551
|
payment_info: OrderPlatformModel.PaymentInfo().required(),
|
|
4516
4552
|
user_info: OrderPlatformModel.UserInfo(),
|
|
4517
4553
|
ordering_store_id: Joi.number(),
|