@gofynd/fdk-client-javascript 3.9.0 → 3.10.0
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/package.json +1 -1
- package/sdk/platform/Cart/CartPlatformModel.d.ts +0 -5
- package/sdk/platform/Cart/CartPlatformModel.js +0 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +18 -3
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +6 -3
- package/sdk/platform/Order/OrderPlatformModel.d.ts +60 -1
- package/sdk/platform/Order/OrderPlatformModel.js +39 -2
package/README.md
CHANGED
|
@@ -234,7 +234,7 @@ console.log("Active Theme: ", response.information.name);
|
|
|
234
234
|
The above code will log the curl command in the console
|
|
235
235
|
|
|
236
236
|
```bash
|
|
237
|
-
curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 3.
|
|
237
|
+
curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 3.10.0' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
|
|
238
238
|
Active Theme: Emerge
|
|
239
239
|
```
|
|
240
240
|
|
package/package.json
CHANGED
|
@@ -730,7 +730,6 @@ export = CartPlatformModel;
|
|
|
730
730
|
* @property {Object} [meta] - Meta data related to article
|
|
731
731
|
* @property {boolean} [allowed_refund] - Flag indicating whether refunds are
|
|
732
732
|
* allowed at article level
|
|
733
|
-
* @property {number} [article_index] - Index of the line item in the cart
|
|
734
733
|
* @property {number} [min_price_threshold] - Minimum allowed net price for the
|
|
735
734
|
* article. If the article's price after all discounts and adjustments falls
|
|
736
735
|
* below this threshold, the price adjustment will be automatically removed.
|
|
@@ -4279,10 +4278,6 @@ type Article = {
|
|
|
4279
4278
|
* allowed at article level
|
|
4280
4279
|
*/
|
|
4281
4280
|
allowed_refund?: boolean;
|
|
4282
|
-
/**
|
|
4283
|
-
* - Index of the line item in the cart
|
|
4284
|
-
*/
|
|
4285
|
-
article_index?: number;
|
|
4286
4281
|
/**
|
|
4287
4282
|
* - Minimum allowed net price for the
|
|
4288
4283
|
* article. If the article's price after all discounts and adjustments falls
|
|
@@ -793,7 +793,6 @@ const Joi = require("joi");
|
|
|
793
793
|
* @property {Object} [meta] - Meta data related to article
|
|
794
794
|
* @property {boolean} [allowed_refund] - Flag indicating whether refunds are
|
|
795
795
|
* allowed at article level
|
|
796
|
-
* @property {number} [article_index] - Index of the line item in the cart
|
|
797
796
|
* @property {number} [min_price_threshold] - Minimum allowed net price for the
|
|
798
797
|
* article. If the article's price after all discounts and adjustments falls
|
|
799
798
|
* below this threshold, the price adjustment will be automatically removed.
|
|
@@ -3526,7 +3525,6 @@ class CartPlatformModel {
|
|
|
3526
3525
|
quantity: Joi.number(),
|
|
3527
3526
|
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
3528
3527
|
allowed_refund: Joi.boolean(),
|
|
3529
|
-
article_index: Joi.number(),
|
|
3530
3528
|
min_price_threshold: Joi.number(),
|
|
3531
3529
|
});
|
|
3532
3530
|
}
|
|
@@ -400,10 +400,12 @@ export = CompanyProfilePlatformModel;
|
|
|
400
400
|
*/
|
|
401
401
|
/**
|
|
402
402
|
* @typedef LocationSchema
|
|
403
|
-
* @property {string} code
|
|
403
|
+
* @property {string} code - A unique identifier for the store location. Must be
|
|
404
|
+
* a non-empty string with a maximum length of 100 characters.
|
|
404
405
|
* @property {InvoiceDetailsSchema} [gst_credentials]
|
|
405
406
|
* @property {SellerPhoneNumber[]} [contact_numbers]
|
|
406
|
-
* @property {string} name
|
|
407
|
+
* @property {string} name - The value of the name. Should be a non-empty string
|
|
408
|
+
* and length should not exceed 300 characters.
|
|
407
409
|
* @property {Object} [_custom_json]
|
|
408
410
|
* @property {Object} [warnings]
|
|
409
411
|
* @property {AddressSchema} address
|
|
@@ -418,7 +420,8 @@ export = CompanyProfilePlatformModel;
|
|
|
418
420
|
* @property {boolean} [credit_note]
|
|
419
421
|
* @property {HolidaySchemaSchema[]} [holiday]
|
|
420
422
|
* @property {ProductReturnConfigSchema} [product_return_config]
|
|
421
|
-
* @property {string} display_name
|
|
423
|
+
* @property {string} display_name - The value of the display_name. Should be a
|
|
424
|
+
* non-empty string and length should not exceed 300 characters.
|
|
422
425
|
* @property {string[]} [notification_emails]
|
|
423
426
|
* @property {string[]} [tags]
|
|
424
427
|
* @property {boolean} [default_order_acceptance_timing] - Flag to set
|
|
@@ -921,9 +924,17 @@ type AddressSchema = {
|
|
|
921
924
|
/** @returns {LocationSchema} */
|
|
922
925
|
declare function LocationSchema(): LocationSchema;
|
|
923
926
|
type LocationSchema = {
|
|
927
|
+
/**
|
|
928
|
+
* - A unique identifier for the store location. Must be
|
|
929
|
+
* a non-empty string with a maximum length of 100 characters.
|
|
930
|
+
*/
|
|
924
931
|
code: string;
|
|
925
932
|
gst_credentials?: InvoiceDetailsSchema;
|
|
926
933
|
contact_numbers?: SellerPhoneNumber[];
|
|
934
|
+
/**
|
|
935
|
+
* - The value of the name. Should be a non-empty string
|
|
936
|
+
* and length should not exceed 300 characters.
|
|
937
|
+
*/
|
|
927
938
|
name: string;
|
|
928
939
|
_custom_json?: any;
|
|
929
940
|
warnings?: any;
|
|
@@ -939,6 +950,10 @@ type LocationSchema = {
|
|
|
939
950
|
credit_note?: boolean;
|
|
940
951
|
holiday?: HolidaySchemaSchema[];
|
|
941
952
|
product_return_config?: ProductReturnConfigSchema;
|
|
953
|
+
/**
|
|
954
|
+
* - The value of the display_name. Should be a
|
|
955
|
+
* non-empty string and length should not exceed 300 characters.
|
|
956
|
+
*/
|
|
942
957
|
display_name: string;
|
|
943
958
|
notification_emails?: string[];
|
|
944
959
|
tags?: string[];
|
|
@@ -442,10 +442,12 @@ const Joi = require("joi");
|
|
|
442
442
|
|
|
443
443
|
/**
|
|
444
444
|
* @typedef LocationSchema
|
|
445
|
-
* @property {string} code
|
|
445
|
+
* @property {string} code - A unique identifier for the store location. Must be
|
|
446
|
+
* a non-empty string with a maximum length of 100 characters.
|
|
446
447
|
* @property {InvoiceDetailsSchema} [gst_credentials]
|
|
447
448
|
* @property {SellerPhoneNumber[]} [contact_numbers]
|
|
448
|
-
* @property {string} name
|
|
449
|
+
* @property {string} name - The value of the name. Should be a non-empty string
|
|
450
|
+
* and length should not exceed 300 characters.
|
|
449
451
|
* @property {Object} [_custom_json]
|
|
450
452
|
* @property {Object} [warnings]
|
|
451
453
|
* @property {AddressSchema} address
|
|
@@ -460,7 +462,8 @@ const Joi = require("joi");
|
|
|
460
462
|
* @property {boolean} [credit_note]
|
|
461
463
|
* @property {HolidaySchemaSchema[]} [holiday]
|
|
462
464
|
* @property {ProductReturnConfigSchema} [product_return_config]
|
|
463
|
-
* @property {string} display_name
|
|
465
|
+
* @property {string} display_name - The value of the display_name. Should be a
|
|
466
|
+
* non-empty string and length should not exceed 300 characters.
|
|
464
467
|
* @property {string[]} [notification_emails]
|
|
465
468
|
* @property {string[]} [tags]
|
|
466
469
|
* @property {boolean} [default_order_acceptance_timing] - Flag to set
|
|
@@ -901,6 +901,7 @@ export = OrderPlatformModel;
|
|
|
901
901
|
* @property {string} [ordering_channel_logo]
|
|
902
902
|
* @property {Prices} [prices]
|
|
903
903
|
* @property {PriceAdjustmentCharge[]} [charges]
|
|
904
|
+
* @property {LoyaltyDiscountDetails} [loyalty_discount_details]
|
|
904
905
|
*/
|
|
905
906
|
/**
|
|
906
907
|
* @typedef Meta
|
|
@@ -2815,6 +2816,8 @@ export = OrderPlatformModel;
|
|
|
2815
2816
|
* used in the transaction.
|
|
2816
2817
|
* @property {number} [amount_to_be_collected] - Total amount to be collected in
|
|
2817
2818
|
* scenarios involving multiple payment methods.
|
|
2819
|
+
* @property {number} [loyalty_discount] - Amount reduced from the payable price
|
|
2820
|
+
* when the customer applies loyalty program points while placing the order.
|
|
2818
2821
|
*/
|
|
2819
2822
|
/**
|
|
2820
2823
|
* @typedef ChargeDistributionSchema
|
|
@@ -2897,6 +2900,8 @@ export = OrderPlatformModel;
|
|
|
2897
2900
|
* purchased by the customer, usable for future transactions.
|
|
2898
2901
|
* @property {number} [amount_to_be_collected] - Amount to be collected from the
|
|
2899
2902
|
* customer when multiple payment methods are utilized for a single order.
|
|
2903
|
+
* @property {number} [loyalty_discount] - Amount reduced from the payable price
|
|
2904
|
+
* when the customer applies loyalty program points while placing the order.
|
|
2900
2905
|
*/
|
|
2901
2906
|
/**
|
|
2902
2907
|
* @typedef Identifier
|
|
@@ -2988,6 +2993,8 @@ export = OrderPlatformModel;
|
|
|
2988
2993
|
* @property {boolean} added_to_fynd_cash - Indicates whether the amount has
|
|
2989
2994
|
* been added to Fynd cash for future use.
|
|
2990
2995
|
* @property {TaxComponent[]} [taxes] - Applied Tax Components
|
|
2996
|
+
* @property {number} [loyalty_discount] - Amount reduced from the payable price
|
|
2997
|
+
* when the customer applies loyalty program points while placing the order.
|
|
2991
2998
|
*/
|
|
2992
2999
|
/**
|
|
2993
3000
|
* @typedef GSTDetailsData
|
|
@@ -3541,6 +3548,16 @@ export = OrderPlatformModel;
|
|
|
3541
3548
|
* @property {Object} [links] - An object containing additional links relevant
|
|
3542
3549
|
* to the invoice, which may include related documents or resources.
|
|
3543
3550
|
*/
|
|
3551
|
+
/**
|
|
3552
|
+
* @typedef LoyaltyDiscountDetails
|
|
3553
|
+
* @property {number} [discount] - Discount amount applied by redeeming loyalty
|
|
3554
|
+
* points while placing the order. Represents the monetary value of loyalty
|
|
3555
|
+
* points redeemed.
|
|
3556
|
+
* @property {string} [ownership] - Indicates who bears the cost of the loyalty
|
|
3557
|
+
* discount, such as the seller or the marketplace.
|
|
3558
|
+
* @property {boolean} [is_applied] - Specifies whether the loyalty discount has
|
|
3559
|
+
* been applied to the order.
|
|
3560
|
+
*/
|
|
3544
3561
|
/**
|
|
3545
3562
|
* @typedef OrderDetailsData
|
|
3546
3563
|
* @property {string} [order_date] - Represents the date and time when the order
|
|
@@ -3570,6 +3587,7 @@ export = OrderPlatformModel;
|
|
|
3570
3587
|
* Please use ordering_source instead to ensure accurate order tracking and processing.
|
|
3571
3588
|
* @property {string} [ordering_source] - To uniquely identify the source
|
|
3572
3589
|
* through which order has been placed (e.g, marketplace, gofynd).
|
|
3590
|
+
* @property {LoyaltyDiscountDetails} [loyalty_discount_details]
|
|
3573
3591
|
* @property {Object} [meta] - Meta data of the order contains additional,
|
|
3574
3592
|
* potentially dynamic information about the order.
|
|
3575
3593
|
*/
|
|
@@ -4369,6 +4387,7 @@ export = OrderPlatformModel;
|
|
|
4369
4387
|
* is created, including mobile applications, web interfaces, social media
|
|
4370
4388
|
* integrations, or external APIs.
|
|
4371
4389
|
* @property {CurrencySchema} [currency]
|
|
4390
|
+
* @property {LoyaltyDiscountDetails} [loyalty_discount_details]
|
|
4372
4391
|
*/
|
|
4373
4392
|
/**
|
|
4374
4393
|
* @typedef OrderDetailsResponseSchema
|
|
@@ -4437,6 +4456,7 @@ export = OrderPlatformModel;
|
|
|
4437
4456
|
* @property {CurrencyInfo} [currency_info]
|
|
4438
4457
|
* @property {Prices} [prices]
|
|
4439
4458
|
* @property {OrderingCurrencyPrices} [ordering_currency_prices]
|
|
4459
|
+
* @property {LoyaltyDiscountDetails} [loyalty_discount_details]
|
|
4440
4460
|
*/
|
|
4441
4461
|
/**
|
|
4442
4462
|
* @typedef OrderListingResponseSchema
|
|
@@ -5100,7 +5120,7 @@ export = OrderPlatformModel;
|
|
|
5100
5120
|
declare class OrderPlatformModel {
|
|
5101
5121
|
}
|
|
5102
5122
|
declare namespace OrderPlatformModel {
|
|
5103
|
-
export { InvalidateShipmentCachePayload, InvalidateShipmentCacheNestedResponseSchema, InvalidateShipmentCacheResponseSchema, UpdatePackingErrorResponseSchema, ErrorResponseSchema, StoreReassign, StoreReassignResponseSchema, LockManagerEntities, UpdateShipmentLockPayload, OriginalFilter, Bags, CheckResponseSchema, UpdateShipmentLockResponseSchema, AnnouncementResponseSchema, AnnouncementsResponseSchema, BaseResponseSchema, ErrorDetail, ProductsReasonsFilters, ProductsReasonsData, ProductsReasons, EntityReasonData, EntitiesReasons, ReasonsData, Products, OrderItemDataUpdates, ProductsDataUpdatesFilters, ProductsDataUpdates, EntitiesDataUpdates, OrderDataUpdates, SellerQCDetailsSchema, EntityStatusDataSchema, DataUpdatesFiltersSchema, EntityStatusDataUpdates, DataUpdates, TransitionComments, ShipmentsRequestSchema, UpdatedAddressSchema, UpdateAddressRequestBody, StatuesRequestSchema, UpdateShipmentStatusRequestSchema, ShipmentsResponseSchema, DPConfiguration, PaymentConfig, LockStateMessage, CreateOrderConfig, StatuesResponseSchema, UpdateShipmentStatusResponseBody, OrderUser, OrderPriority, ArticleDetails, LocationDetails, ShipmentDetails, ShipmentConfig, ShipmentData, MarketPlacePdf, AffiliateBag, UserData, OrderInfo, AffiliateAppConfigMeta, AffiliateAppConfig, AffiliateInventoryArticleAssignmentConfig, AffiliateInventoryPaymentConfig, AffiliateInventoryStoreConfig, AffiliateInventoryOrderConfig, AffiliateInventoryLogisticsConfig, AffiliateInventoryConfig, AffiliateConfig, Affiliate, AffiliateStoreIdMapping, OrderConfig, CreateOrderResponseSchema, DispatchManifest, SuccessResponseSchema, ActionInfo, GetActionsResponseSchema, HistoryReason, RefundInformation, HistoryMeta, HistoryDict, ShipmentHistoryResponseSchema, PostHistoryFilters, PostHistoryData, PostHistoryDict, PostShipmentHistory, SmsDataPayload, SendSmsPayload, OrderDetails, Meta, ShipmentDetail, OrderStatusData, OrderStatusResult, SendSmsResponseSchema, Dimension, UpdatePackagingDimensionsPayload, UpdatePackagingDimensionsResponseSchema, Tax, AmountSchema, Charge, LineItem, ProcessingDates, Tag, ProcessAfterConfig, SystemMessages, Shipment, GeoLocationSchema, ShippingInfo, BillingInfo, UserInfo, TaxInfo, PaymentMethod, PaymentInfo, CreateOrderAPI, CreateOrderErrorReponse, PaymentMethods, CreateChannelPaymentInfo, CreateChannelConfig, CreateChannelConfigData, CreateChannelConifgErrorResponseSchema, UploadManifestConsent, CreateChannelConfigResponseSchema, PlatformOrderUpdate, ResponseDetail, FyndOrderIdList, OrderStatus, BagStateTransitionMap, RoleBaseStateTransitionMapping, FetchCreditBalanceRequestPayload, CreditBalanceInfo, FetchCreditBalanceResponsePayload, RefundModeConfigRequestPayload, RefundOption, RefundModeFormat, RefundModeInfo, RefundModeConfigResponsePayload, AttachUserOtpData, AttachUserInfo, AttachOrderUser, AttachOrderUserResponseSchema, SendUserMobileOTP, PointBlankOtpData, SendUserMobileOtpResponseSchema, VerifyOtpData, VerifyMobileOTP, VerifyOtpResponseData, VerifyOtpResponseSchema, BulkReportsFiltersSchema, BulkReportsDownloadRequestSchema, BulkReportsDownloadResponseSchema, APIFailedResponseSchema, BulkStateTransistionRequestSchema, BulkStateTransistionResponseSchema, ShipmentActionInfo, BulkActionListingData, BulkListinPage, BulkListingResponseSchema, JobDetailsData, JobDetailsResponseSchema, JobFailedResponseSchema, ManifestPageInfo, ManifestItemDetails, ManifestShipmentListing, DateRange, Filters, ManifestFile, ManifestMediaUpdate, PDFMeta, TotalShipmentPricesCount, ManifestMeta, Manifest, ManifestList, ManifestDetails, FiltersRequestSchema, ProcessManifest, ProcessManifestResponseSchema, ProcessManifestItemResponseSchema, FilterInfoOption, FiltersInfo, ManifestFiltersResponseSchema, PageDetails, EInvoiceIrnDetails, EInvoiceErrorDetails, EInvoiceDetails, EInvoiceResponseData, EInvoiceRetry, EInvoiceRetryResponseSchema, EInvoiceErrorInfo, EInvoiceErrorResponseData, EInvoiceErrorResponseSchema, EInvoiceErrorResponseDetails, EInvoiceRetryShipmentData, CourierPartnerTrackingDetails, CourierPartnerTrackingResponseSchema, LogsChannelDetails, LogPaymentDetails, FailedOrdersItem, FailedOrderLogs, FailedOrderLogDetails, GenerateInvoiceIDResponseData, GenerateInvoiceIDErrorResponseData, GenerateInvoiceIDRequestSchema, GenerateInvoiceIDResponseSchema, GenerateInvoiceIDErrorResponseSchema, ManifestResponseSchema, ProcessManifestRequestSchema, ManifestItems, ManifestErrorResponseSchema, ConfigData, ConfigUpdatedResponseSchema, FlagData, Flags, Filter, PostHook, PreHook, Config, TransitionConfigCondition, TransitionConfigData, TransitionConfigPayload, RuleListRequestSchema, RuleErrorResponseSchema, RMAPageInfo, RuleAction, QuestionSetItem, Reason, Conditions, RuleItem, RuleError, RuleListResponseSchema, UpdateShipmentPaymentMode, CommonErrorResponseSchema, ExceptionErrorResponseSchema, ProductSchema, PaymentMethodSchema, ActionDetailSchema, PaymentMetaDataSchema, PaymentMetaLogoURLSchema, ValidationError, Page, BagReasonMeta, QuestionSet, BagReasons, ShipmentBagReasons, ShipmentStatus, UserDataInfo, Address, ShipmentListingChannel, Prices, ChargeDistributionSchema, ChargeDistributionLogic, ChargeAmountCurrency, ChargeAmount, PriceAdjustmentCharge, OrderingCurrencyPrices, Identifier, TaxComponent, FinancialBreakup, GSTDetailsData, BagStateMapper, BagStatusHistory, Dimensions, ReturnConfig, Weight, Article, ShipmentListingBrand, ReplacementDetails, AffiliateMeta, AffiliateBagDetails, PlatformArticleAttributes, PlatformItem, Dates, BagReturnableCancelableStatus, BagUnit, ShipmentItemFulFillingStore, Currency, OrderingCurrency, ConversionRate, CurrencyInfo, ShipmentItem, ShipmentInternalPlatformViewResponseSchema, 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, PriceMinMax, ItemPriceDetails, FreeGiftItems, AppliedFreeArticles, AppliedPromos, CurrentStatus, OrderBags, FulfillingStore, ShipmentPayments, ShipmentStatusData, ShipmentLockDetails, FulfillmentOption, PlatformShipment, ShipmentInfoResponseSchema, TaxDetails, PaymentInfoData, CurrencySchema, OrderData, OrderDetailsResponseSchema, SubLane, SuperLane, LaneConfigResponseSchema, PlatformBreakupValues, PlatformChannel, PlatformOrderItems, OrderListingResponseSchema, PlatformTrack, PlatformShipmentTrack, AdvanceFilterInfo, FiltersResponseSchema, URL, FileResponseSchema, BulkActionTemplate, BulkActionTemplateResponseSchema, PlatformShipmentReasonsResponseSchema, ShipmentResponseReasons, ShipmentReasonsResponseSchema, StoreAddress, EInvoicePortalDetails, StoreEinvoice, StoreEwaybill, StoreGstCredentials, Document, StoreDocuments, StoreMeta, Store, Brand, Item, ArticleStatusDetails, Company, ShipmentGstDetails, DeliverySlotDetails, InvoiceDetails, UserDetails, WeightData, BagDetails, BagDetailsPlatformResponseSchema, BagsPage, BagData, GetBagsPlatformResponseSchema, GeneratePosOrderReceiptResponseSchema, Templates, AllowedTemplatesResponseSchema, TemplateDownloadResponseSchema, Error, BulkFailedResponseSchema, OrderingSource };
|
|
5123
|
+
export { InvalidateShipmentCachePayload, InvalidateShipmentCacheNestedResponseSchema, InvalidateShipmentCacheResponseSchema, UpdatePackingErrorResponseSchema, ErrorResponseSchema, StoreReassign, StoreReassignResponseSchema, LockManagerEntities, UpdateShipmentLockPayload, OriginalFilter, Bags, CheckResponseSchema, UpdateShipmentLockResponseSchema, AnnouncementResponseSchema, AnnouncementsResponseSchema, BaseResponseSchema, ErrorDetail, ProductsReasonsFilters, ProductsReasonsData, ProductsReasons, EntityReasonData, EntitiesReasons, ReasonsData, Products, OrderItemDataUpdates, ProductsDataUpdatesFilters, ProductsDataUpdates, EntitiesDataUpdates, OrderDataUpdates, SellerQCDetailsSchema, EntityStatusDataSchema, DataUpdatesFiltersSchema, EntityStatusDataUpdates, DataUpdates, TransitionComments, ShipmentsRequestSchema, UpdatedAddressSchema, UpdateAddressRequestBody, StatuesRequestSchema, UpdateShipmentStatusRequestSchema, ShipmentsResponseSchema, DPConfiguration, PaymentConfig, LockStateMessage, CreateOrderConfig, StatuesResponseSchema, UpdateShipmentStatusResponseBody, OrderUser, OrderPriority, ArticleDetails, LocationDetails, ShipmentDetails, ShipmentConfig, ShipmentData, MarketPlacePdf, AffiliateBag, UserData, OrderInfo, AffiliateAppConfigMeta, AffiliateAppConfig, AffiliateInventoryArticleAssignmentConfig, AffiliateInventoryPaymentConfig, AffiliateInventoryStoreConfig, AffiliateInventoryOrderConfig, AffiliateInventoryLogisticsConfig, AffiliateInventoryConfig, AffiliateConfig, Affiliate, AffiliateStoreIdMapping, OrderConfig, CreateOrderResponseSchema, DispatchManifest, SuccessResponseSchema, ActionInfo, GetActionsResponseSchema, HistoryReason, RefundInformation, HistoryMeta, HistoryDict, ShipmentHistoryResponseSchema, PostHistoryFilters, PostHistoryData, PostHistoryDict, PostShipmentHistory, SmsDataPayload, SendSmsPayload, OrderDetails, Meta, ShipmentDetail, OrderStatusData, OrderStatusResult, SendSmsResponseSchema, Dimension, UpdatePackagingDimensionsPayload, UpdatePackagingDimensionsResponseSchema, Tax, AmountSchema, Charge, LineItem, ProcessingDates, Tag, ProcessAfterConfig, SystemMessages, Shipment, GeoLocationSchema, ShippingInfo, BillingInfo, UserInfo, TaxInfo, PaymentMethod, PaymentInfo, CreateOrderAPI, CreateOrderErrorReponse, PaymentMethods, CreateChannelPaymentInfo, CreateChannelConfig, CreateChannelConfigData, CreateChannelConifgErrorResponseSchema, UploadManifestConsent, CreateChannelConfigResponseSchema, PlatformOrderUpdate, ResponseDetail, FyndOrderIdList, OrderStatus, BagStateTransitionMap, RoleBaseStateTransitionMapping, FetchCreditBalanceRequestPayload, CreditBalanceInfo, FetchCreditBalanceResponsePayload, RefundModeConfigRequestPayload, RefundOption, RefundModeFormat, RefundModeInfo, RefundModeConfigResponsePayload, AttachUserOtpData, AttachUserInfo, AttachOrderUser, AttachOrderUserResponseSchema, SendUserMobileOTP, PointBlankOtpData, SendUserMobileOtpResponseSchema, VerifyOtpData, VerifyMobileOTP, VerifyOtpResponseData, VerifyOtpResponseSchema, BulkReportsFiltersSchema, BulkReportsDownloadRequestSchema, BulkReportsDownloadResponseSchema, APIFailedResponseSchema, BulkStateTransistionRequestSchema, BulkStateTransistionResponseSchema, ShipmentActionInfo, BulkActionListingData, BulkListinPage, BulkListingResponseSchema, JobDetailsData, JobDetailsResponseSchema, JobFailedResponseSchema, ManifestPageInfo, ManifestItemDetails, ManifestShipmentListing, DateRange, Filters, ManifestFile, ManifestMediaUpdate, PDFMeta, TotalShipmentPricesCount, ManifestMeta, Manifest, ManifestList, ManifestDetails, FiltersRequestSchema, ProcessManifest, ProcessManifestResponseSchema, ProcessManifestItemResponseSchema, FilterInfoOption, FiltersInfo, ManifestFiltersResponseSchema, PageDetails, EInvoiceIrnDetails, EInvoiceErrorDetails, EInvoiceDetails, EInvoiceResponseData, EInvoiceRetry, EInvoiceRetryResponseSchema, EInvoiceErrorInfo, EInvoiceErrorResponseData, EInvoiceErrorResponseSchema, EInvoiceErrorResponseDetails, EInvoiceRetryShipmentData, CourierPartnerTrackingDetails, CourierPartnerTrackingResponseSchema, LogsChannelDetails, LogPaymentDetails, FailedOrdersItem, FailedOrderLogs, FailedOrderLogDetails, GenerateInvoiceIDResponseData, GenerateInvoiceIDErrorResponseData, GenerateInvoiceIDRequestSchema, GenerateInvoiceIDResponseSchema, GenerateInvoiceIDErrorResponseSchema, ManifestResponseSchema, ProcessManifestRequestSchema, ManifestItems, ManifestErrorResponseSchema, ConfigData, ConfigUpdatedResponseSchema, FlagData, Flags, Filter, PostHook, PreHook, Config, TransitionConfigCondition, TransitionConfigData, TransitionConfigPayload, RuleListRequestSchema, RuleErrorResponseSchema, RMAPageInfo, RuleAction, QuestionSetItem, Reason, Conditions, RuleItem, RuleError, RuleListResponseSchema, UpdateShipmentPaymentMode, CommonErrorResponseSchema, ExceptionErrorResponseSchema, ProductSchema, PaymentMethodSchema, ActionDetailSchema, PaymentMetaDataSchema, PaymentMetaLogoURLSchema, ValidationError, Page, BagReasonMeta, QuestionSet, BagReasons, ShipmentBagReasons, ShipmentStatus, UserDataInfo, Address, ShipmentListingChannel, Prices, ChargeDistributionSchema, ChargeDistributionLogic, ChargeAmountCurrency, ChargeAmount, PriceAdjustmentCharge, OrderingCurrencyPrices, Identifier, TaxComponent, FinancialBreakup, GSTDetailsData, BagStateMapper, BagStatusHistory, Dimensions, ReturnConfig, Weight, Article, ShipmentListingBrand, ReplacementDetails, AffiliateMeta, AffiliateBagDetails, PlatformArticleAttributes, PlatformItem, Dates, BagReturnableCancelableStatus, BagUnit, ShipmentItemFulFillingStore, Currency, OrderingCurrency, ConversionRate, CurrencyInfo, ShipmentItem, ShipmentInternalPlatformViewResponseSchema, TrackingList, InvoiceInfo, LoyaltyDiscountDetails, 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, PriceMinMax, ItemPriceDetails, FreeGiftItems, AppliedFreeArticles, AppliedPromos, CurrentStatus, OrderBags, FulfillingStore, ShipmentPayments, ShipmentStatusData, ShipmentLockDetails, FulfillmentOption, PlatformShipment, ShipmentInfoResponseSchema, TaxDetails, PaymentInfoData, CurrencySchema, OrderData, OrderDetailsResponseSchema, SubLane, SuperLane, LaneConfigResponseSchema, PlatformBreakupValues, PlatformChannel, PlatformOrderItems, OrderListingResponseSchema, PlatformTrack, PlatformShipmentTrack, AdvanceFilterInfo, FiltersResponseSchema, URL, FileResponseSchema, BulkActionTemplate, BulkActionTemplateResponseSchema, PlatformShipmentReasonsResponseSchema, ShipmentResponseReasons, ShipmentReasonsResponseSchema, StoreAddress, EInvoicePortalDetails, StoreEinvoice, StoreEwaybill, StoreGstCredentials, Document, StoreDocuments, StoreMeta, Store, Brand, Item, ArticleStatusDetails, Company, ShipmentGstDetails, DeliverySlotDetails, InvoiceDetails, UserDetails, WeightData, BagDetails, BagDetailsPlatformResponseSchema, BagsPage, BagData, GetBagsPlatformResponseSchema, GeneratePosOrderReceiptResponseSchema, Templates, AllowedTemplatesResponseSchema, TemplateDownloadResponseSchema, Error, BulkFailedResponseSchema, OrderingSource };
|
|
5104
5124
|
}
|
|
5105
5125
|
/** @returns {InvalidateShipmentCachePayload} */
|
|
5106
5126
|
declare function InvalidateShipmentCachePayload(): InvalidateShipmentCachePayload;
|
|
@@ -6853,6 +6873,7 @@ type OrderDetails = {
|
|
|
6853
6873
|
ordering_channel_logo?: string;
|
|
6854
6874
|
prices?: Prices;
|
|
6855
6875
|
charges?: PriceAdjustmentCharge[];
|
|
6876
|
+
loyalty_discount_details?: LoyaltyDiscountDetails;
|
|
6856
6877
|
};
|
|
6857
6878
|
/** @returns {Meta} */
|
|
6858
6879
|
declare function Meta(): Meta;
|
|
@@ -10815,6 +10836,11 @@ type Prices = {
|
|
|
10815
10836
|
* scenarios involving multiple payment methods.
|
|
10816
10837
|
*/
|
|
10817
10838
|
amount_to_be_collected?: number;
|
|
10839
|
+
/**
|
|
10840
|
+
* - Amount reduced from the payable price
|
|
10841
|
+
* when the customer applies loyalty program points while placing the order.
|
|
10842
|
+
*/
|
|
10843
|
+
loyalty_discount?: number;
|
|
10818
10844
|
};
|
|
10819
10845
|
/** @returns {ChargeDistributionSchema} */
|
|
10820
10846
|
declare function ChargeDistributionSchema(): ChargeDistributionSchema;
|
|
@@ -10993,6 +11019,11 @@ type OrderingCurrencyPrices = {
|
|
|
10993
11019
|
* customer when multiple payment methods are utilized for a single order.
|
|
10994
11020
|
*/
|
|
10995
11021
|
amount_to_be_collected?: number;
|
|
11022
|
+
/**
|
|
11023
|
+
* - Amount reduced from the payable price
|
|
11024
|
+
* when the customer applies loyalty program points while placing the order.
|
|
11025
|
+
*/
|
|
11026
|
+
loyalty_discount?: number;
|
|
10996
11027
|
};
|
|
10997
11028
|
/** @returns {Identifier} */
|
|
10998
11029
|
declare function Identifier(): Identifier;
|
|
@@ -11198,6 +11229,11 @@ type FinancialBreakup = {
|
|
|
11198
11229
|
* - Applied Tax Components
|
|
11199
11230
|
*/
|
|
11200
11231
|
taxes?: TaxComponent[];
|
|
11232
|
+
/**
|
|
11233
|
+
* - Amount reduced from the payable price
|
|
11234
|
+
* when the customer applies loyalty program points while placing the order.
|
|
11235
|
+
*/
|
|
11236
|
+
loyalty_discount?: number;
|
|
11201
11237
|
};
|
|
11202
11238
|
/** @returns {GSTDetailsData} */
|
|
11203
11239
|
declare function GSTDetailsData(): GSTDetailsData;
|
|
@@ -12384,6 +12420,26 @@ type InvoiceInfo = {
|
|
|
12384
12420
|
*/
|
|
12385
12421
|
links?: any;
|
|
12386
12422
|
};
|
|
12423
|
+
/** @returns {LoyaltyDiscountDetails} */
|
|
12424
|
+
declare function LoyaltyDiscountDetails(): LoyaltyDiscountDetails;
|
|
12425
|
+
type LoyaltyDiscountDetails = {
|
|
12426
|
+
/**
|
|
12427
|
+
* - Discount amount applied by redeeming loyalty
|
|
12428
|
+
* points while placing the order. Represents the monetary value of loyalty
|
|
12429
|
+
* points redeemed.
|
|
12430
|
+
*/
|
|
12431
|
+
discount?: number;
|
|
12432
|
+
/**
|
|
12433
|
+
* - Indicates who bears the cost of the loyalty
|
|
12434
|
+
* discount, such as the seller or the marketplace.
|
|
12435
|
+
*/
|
|
12436
|
+
ownership?: string;
|
|
12437
|
+
/**
|
|
12438
|
+
* - Specifies whether the loyalty discount has
|
|
12439
|
+
* been applied to the order.
|
|
12440
|
+
*/
|
|
12441
|
+
is_applied?: boolean;
|
|
12442
|
+
};
|
|
12387
12443
|
/** @returns {OrderDetailsData} */
|
|
12388
12444
|
declare function OrderDetailsData(): OrderDetailsData;
|
|
12389
12445
|
type OrderDetailsData = {
|
|
@@ -12450,6 +12506,7 @@ type OrderDetailsData = {
|
|
|
12450
12506
|
* through which order has been placed (e.g, marketplace, gofynd).
|
|
12451
12507
|
*/
|
|
12452
12508
|
ordering_source?: string;
|
|
12509
|
+
loyalty_discount_details?: LoyaltyDiscountDetails;
|
|
12453
12510
|
/**
|
|
12454
12511
|
* - Meta data of the order contains additional,
|
|
12455
12512
|
* potentially dynamic information about the order.
|
|
@@ -14151,6 +14208,7 @@ type OrderData = {
|
|
|
14151
14208
|
*/
|
|
14152
14209
|
source?: string;
|
|
14153
14210
|
currency?: CurrencySchema;
|
|
14211
|
+
loyalty_discount_details?: LoyaltyDiscountDetails;
|
|
14154
14212
|
};
|
|
14155
14213
|
/** @returns {OrderDetailsResponseSchema} */
|
|
14156
14214
|
declare function OrderDetailsResponseSchema(): OrderDetailsResponseSchema;
|
|
@@ -14262,6 +14320,7 @@ type PlatformOrderItems = {
|
|
|
14262
14320
|
currency_info?: CurrencyInfo;
|
|
14263
14321
|
prices?: Prices;
|
|
14264
14322
|
ordering_currency_prices?: OrderingCurrencyPrices;
|
|
14323
|
+
loyalty_discount_details?: LoyaltyDiscountDetails;
|
|
14265
14324
|
};
|
|
14266
14325
|
/** @returns {OrderListingResponseSchema} */
|
|
14267
14326
|
declare function OrderListingResponseSchema(): OrderListingResponseSchema;
|
|
@@ -988,6 +988,7 @@ const Joi = require("joi");
|
|
|
988
988
|
* @property {string} [ordering_channel_logo]
|
|
989
989
|
* @property {Prices} [prices]
|
|
990
990
|
* @property {PriceAdjustmentCharge[]} [charges]
|
|
991
|
+
* @property {LoyaltyDiscountDetails} [loyalty_discount_details]
|
|
991
992
|
*/
|
|
992
993
|
|
|
993
994
|
/**
|
|
@@ -3061,6 +3062,8 @@ const Joi = require("joi");
|
|
|
3061
3062
|
* used in the transaction.
|
|
3062
3063
|
* @property {number} [amount_to_be_collected] - Total amount to be collected in
|
|
3063
3064
|
* scenarios involving multiple payment methods.
|
|
3065
|
+
* @property {number} [loyalty_discount] - Amount reduced from the payable price
|
|
3066
|
+
* when the customer applies loyalty program points while placing the order.
|
|
3064
3067
|
*/
|
|
3065
3068
|
|
|
3066
3069
|
/**
|
|
@@ -3149,6 +3152,8 @@ const Joi = require("joi");
|
|
|
3149
3152
|
* purchased by the customer, usable for future transactions.
|
|
3150
3153
|
* @property {number} [amount_to_be_collected] - Amount to be collected from the
|
|
3151
3154
|
* customer when multiple payment methods are utilized for a single order.
|
|
3155
|
+
* @property {number} [loyalty_discount] - Amount reduced from the payable price
|
|
3156
|
+
* when the customer applies loyalty program points while placing the order.
|
|
3152
3157
|
*/
|
|
3153
3158
|
|
|
3154
3159
|
/**
|
|
@@ -3243,6 +3248,8 @@ const Joi = require("joi");
|
|
|
3243
3248
|
* @property {boolean} added_to_fynd_cash - Indicates whether the amount has
|
|
3244
3249
|
* been added to Fynd cash for future use.
|
|
3245
3250
|
* @property {TaxComponent[]} [taxes] - Applied Tax Components
|
|
3251
|
+
* @property {number} [loyalty_discount] - Amount reduced from the payable price
|
|
3252
|
+
* when the customer applies loyalty program points while placing the order.
|
|
3246
3253
|
*/
|
|
3247
3254
|
|
|
3248
3255
|
/**
|
|
@@ -3822,6 +3829,17 @@ const Joi = require("joi");
|
|
|
3822
3829
|
* to the invoice, which may include related documents or resources.
|
|
3823
3830
|
*/
|
|
3824
3831
|
|
|
3832
|
+
/**
|
|
3833
|
+
* @typedef LoyaltyDiscountDetails
|
|
3834
|
+
* @property {number} [discount] - Discount amount applied by redeeming loyalty
|
|
3835
|
+
* points while placing the order. Represents the monetary value of loyalty
|
|
3836
|
+
* points redeemed.
|
|
3837
|
+
* @property {string} [ownership] - Indicates who bears the cost of the loyalty
|
|
3838
|
+
* discount, such as the seller or the marketplace.
|
|
3839
|
+
* @property {boolean} [is_applied] - Specifies whether the loyalty discount has
|
|
3840
|
+
* been applied to the order.
|
|
3841
|
+
*/
|
|
3842
|
+
|
|
3825
3843
|
/**
|
|
3826
3844
|
* @typedef OrderDetailsData
|
|
3827
3845
|
* @property {string} [order_date] - Represents the date and time when the order
|
|
@@ -3851,6 +3869,7 @@ const Joi = require("joi");
|
|
|
3851
3869
|
* Please use ordering_source instead to ensure accurate order tracking and processing.
|
|
3852
3870
|
* @property {string} [ordering_source] - To uniquely identify the source
|
|
3853
3871
|
* through which order has been placed (e.g, marketplace, gofynd).
|
|
3872
|
+
* @property {LoyaltyDiscountDetails} [loyalty_discount_details]
|
|
3854
3873
|
* @property {Object} [meta] - Meta data of the order contains additional,
|
|
3855
3874
|
* potentially dynamic information about the order.
|
|
3856
3875
|
*/
|
|
@@ -4692,6 +4711,7 @@ const Joi = require("joi");
|
|
|
4692
4711
|
* is created, including mobile applications, web interfaces, social media
|
|
4693
4712
|
* integrations, or external APIs.
|
|
4694
4713
|
* @property {CurrencySchema} [currency]
|
|
4714
|
+
* @property {LoyaltyDiscountDetails} [loyalty_discount_details]
|
|
4695
4715
|
*/
|
|
4696
4716
|
|
|
4697
4717
|
/**
|
|
@@ -4767,6 +4787,7 @@ const Joi = require("joi");
|
|
|
4767
4787
|
* @property {CurrencyInfo} [currency_info]
|
|
4768
4788
|
* @property {Prices} [prices]
|
|
4769
4789
|
* @property {OrderingCurrencyPrices} [ordering_currency_prices]
|
|
4790
|
+
* @property {LoyaltyDiscountDetails} [loyalty_discount_details]
|
|
4770
4791
|
*/
|
|
4771
4792
|
|
|
4772
4793
|
/**
|
|
@@ -6432,6 +6453,7 @@ class OrderPlatformModel {
|
|
|
6432
6453
|
ordering_channel_logo: Joi.string().allow("").allow(null),
|
|
6433
6454
|
prices: OrderPlatformModel.Prices(),
|
|
6434
6455
|
charges: Joi.array().items(OrderPlatformModel.PriceAdjustmentCharge()),
|
|
6456
|
+
loyalty_discount_details: OrderPlatformModel.LoyaltyDiscountDetails(),
|
|
6435
6457
|
});
|
|
6436
6458
|
}
|
|
6437
6459
|
|
|
@@ -8251,6 +8273,7 @@ class OrderPlatformModel {
|
|
|
8251
8273
|
fynd_credits: Joi.number().allow(null),
|
|
8252
8274
|
gift_price: Joi.number().allow(null),
|
|
8253
8275
|
amount_to_be_collected: Joi.number().allow(null),
|
|
8276
|
+
loyalty_discount: Joi.number(),
|
|
8254
8277
|
});
|
|
8255
8278
|
}
|
|
8256
8279
|
|
|
@@ -8322,6 +8345,7 @@ class OrderPlatformModel {
|
|
|
8322
8345
|
fynd_credits: Joi.number().allow(null),
|
|
8323
8346
|
gift_price: Joi.number().allow(null),
|
|
8324
8347
|
amount_to_be_collected: Joi.number().allow(null),
|
|
8348
|
+
loyalty_discount: Joi.number(),
|
|
8325
8349
|
});
|
|
8326
8350
|
}
|
|
8327
8351
|
|
|
@@ -8378,6 +8402,7 @@ class OrderPlatformModel {
|
|
|
8378
8402
|
total_units: Joi.number().required(),
|
|
8379
8403
|
added_to_fynd_cash: Joi.boolean().required(),
|
|
8380
8404
|
taxes: Joi.array().items(OrderPlatformModel.TaxComponent()),
|
|
8405
|
+
loyalty_discount: Joi.number(),
|
|
8381
8406
|
});
|
|
8382
8407
|
}
|
|
8383
8408
|
|
|
@@ -8522,7 +8547,7 @@ class OrderPlatformModel {
|
|
|
8522
8547
|
box_type: Joi.string().allow("").allow(null),
|
|
8523
8548
|
quantity: Joi.number().allow(null),
|
|
8524
8549
|
size_level_total_qty: Joi.number().allow(null),
|
|
8525
|
-
loyalty_discount: Joi.number()
|
|
8550
|
+
loyalty_discount: Joi.number(),
|
|
8526
8551
|
replacement_details: OrderPlatformModel.ReplacementDetails(),
|
|
8527
8552
|
channel_shipment_id: Joi.string().allow("").allow(null),
|
|
8528
8553
|
marketplace_invoice_id: Joi.string().allow("").allow(null),
|
|
@@ -8542,7 +8567,7 @@ class OrderPlatformModel {
|
|
|
8542
8567
|
affiliate_order_id: Joi.string().allow("").required(),
|
|
8543
8568
|
employee_discount: Joi.number().allow(null),
|
|
8544
8569
|
affiliate_bag_id: Joi.string().allow("").required(),
|
|
8545
|
-
loyalty_discount: Joi.number()
|
|
8570
|
+
loyalty_discount: Joi.number(),
|
|
8546
8571
|
});
|
|
8547
8572
|
}
|
|
8548
8573
|
|
|
@@ -8774,6 +8799,15 @@ class OrderPlatformModel {
|
|
|
8774
8799
|
});
|
|
8775
8800
|
}
|
|
8776
8801
|
|
|
8802
|
+
/** @returns {LoyaltyDiscountDetails} */
|
|
8803
|
+
static LoyaltyDiscountDetails() {
|
|
8804
|
+
return Joi.object({
|
|
8805
|
+
discount: Joi.number(),
|
|
8806
|
+
ownership: Joi.string().allow(""),
|
|
8807
|
+
is_applied: Joi.boolean(),
|
|
8808
|
+
});
|
|
8809
|
+
}
|
|
8810
|
+
|
|
8777
8811
|
/** @returns {OrderDetailsData} */
|
|
8778
8812
|
static OrderDetailsData() {
|
|
8779
8813
|
return Joi.object({
|
|
@@ -8791,6 +8825,7 @@ class OrderPlatformModel {
|
|
|
8791
8825
|
order_value: Joi.string().allow("").allow(null),
|
|
8792
8826
|
ordering_channel: Joi.string().allow("").allow(null),
|
|
8793
8827
|
ordering_source: Joi.string().allow(""),
|
|
8828
|
+
loyalty_discount_details: OrderPlatformModel.LoyaltyDiscountDetails(),
|
|
8794
8829
|
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
8795
8830
|
});
|
|
8796
8831
|
}
|
|
@@ -9426,6 +9461,7 @@ class OrderPlatformModel {
|
|
|
9426
9461
|
affiliate_id: Joi.string().allow(""),
|
|
9427
9462
|
source: Joi.string().allow(""),
|
|
9428
9463
|
currency: OrderPlatformModel.CurrencySchema(),
|
|
9464
|
+
loyalty_discount_details: OrderPlatformModel.LoyaltyDiscountDetails(),
|
|
9429
9465
|
});
|
|
9430
9466
|
}
|
|
9431
9467
|
|
|
@@ -9503,6 +9539,7 @@ class OrderPlatformModel {
|
|
|
9503
9539
|
currency_info: OrderPlatformModel.CurrencyInfo(),
|
|
9504
9540
|
prices: OrderPlatformModel.Prices(),
|
|
9505
9541
|
ordering_currency_prices: OrderPlatformModel.OrderingCurrencyPrices(),
|
|
9542
|
+
loyalty_discount_details: OrderPlatformModel.LoyaltyDiscountDetails(),
|
|
9506
9543
|
});
|
|
9507
9544
|
}
|
|
9508
9545
|
|