@gofynd/fdk-client-javascript 3.3.3 → 3.3.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/package.json +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +30 -30
- package/sdk/application/Cart/CartApplicationClient.js +30 -30
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +30 -30
- package/sdk/application/Catalog/CatalogApplicationClient.js +30 -30
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/Common/CommonApplicationClient.js +2 -2
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +3 -3
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +16 -16
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +16 -16
- package/sdk/application/Content/ContentApplicationClient.d.ts +24 -24
- package/sdk/application/Content/ContentApplicationClient.js +24 -24
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +3 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +2 -2
- package/sdk/application/Finance/FinanceApplicationClient.js +2 -2
- package/sdk/application/Lead/LeadApplicationClient.d.ts +5 -5
- package/sdk/application/Lead/LeadApplicationClient.js +5 -5
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +9 -9
- package/sdk/application/Logistic/LogisticApplicationClient.js +9 -9
- package/sdk/application/Order/OrderApplicationClient.d.ts +12 -12
- package/sdk/application/Order/OrderApplicationClient.js +12 -12
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +46 -46
- package/sdk/application/Payment/PaymentApplicationClient.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +7 -7
- package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
- package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
- package/sdk/application/Share/ShareApplicationClient.js +7 -7
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +4 -4
- package/sdk/application/Theme/ThemeApplicationClient.js +4 -4
- package/sdk/application/User/UserApplicationClient.d.ts +47 -47
- package/sdk/application/User/UserApplicationClient.js +47 -47
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +1 -1
- package/sdk/application/Webhook/WebhookApplicationClient.js +1 -1
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +6 -6
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +6 -6
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +7 -7
- package/sdk/partner/Lead/LeadPartnerClient.js +7 -7
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +25 -25
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +25 -25
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +57 -3
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +40 -1
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +24 -24
- package/sdk/partner/Theme/ThemePartnerClient.js +24 -24
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +10 -10
- package/sdk/partner/Webhook/WebhookPartnerClient.js +10 -10
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +2 -2
- package/sdk/partner/Webhook/WebhookPartnerModel.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +3 -3
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +2 -2
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +1 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +1 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +1 -1
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +5 -5
- package/sdk/platform/Billing/BillingPlatformClient.js +5 -5
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +62 -62
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +62 -62
- package/sdk/platform/Cart/CartPlatformModel.d.ts +62 -3
- package/sdk/platform/Cart/CartPlatformModel.js +33 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +66 -66
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +66 -66
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +89 -82
- package/sdk/platform/Catalog/CatalogPlatformClient.js +121 -85
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +61 -3
- package/sdk/platform/Catalog/CatalogPlatformModel.js +42 -1
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +46 -5
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +21 -4
- package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -2
- package/sdk/platform/Common/CommonPlatformClient.js +2 -2
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +67 -67
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +67 -67
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +1 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +1 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +2 -2
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +14 -14
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +14 -14
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +2 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +1 -1
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +32 -32
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +32 -32
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +11 -11
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +11 -11
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +2 -2
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1 -1
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +107 -107
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +107 -107
- package/sdk/platform/Content/ContentPlatformClient.d.ts +40 -40
- package/sdk/platform/Content/ContentPlatformClient.js +40 -40
- package/sdk/platform/Content/ContentPlatformModel.d.ts +2 -2
- package/sdk/platform/Content/ContentPlatformModel.js +1 -1
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +11 -11
- package/sdk/platform/Discount/DiscountPlatformClient.js +11 -11
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformModel.js +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +6 -6
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +10 -10
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +10 -10
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +9 -9
- package/sdk/platform/Lead/LeadPlatformClient.js +9 -9
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.js +1 -1
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +5 -5
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -5
- package/sdk/platform/Order/OrderPlatformClient.d.ts +58 -58
- package/sdk/platform/Order/OrderPlatformClient.js +58 -58
- package/sdk/platform/Order/OrderPlatformModel.d.ts +9 -9
- package/sdk/platform/Order/OrderPlatformModel.js +6 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +2 -2
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +51 -51
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +51 -51
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +10 -10
- package/sdk/platform/Payment/PaymentPlatformClient.js +10 -10
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +85 -3
- package/sdk/platform/Payment/PaymentPlatformModel.js +49 -1
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +12 -12
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.js +1 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +38 -38
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +38 -38
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +28 -28
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +28 -28
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +59 -3
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +42 -1
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +5 -5
- package/sdk/platform/Share/SharePlatformApplicationClient.js +5 -5
- package/sdk/platform/Share/SharePlatformModel.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformModel.js +1 -1
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +22 -22
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +22 -22
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +4 -4
- package/sdk/platform/Theme/ThemePlatformClient.js +4 -4
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +34 -34
- package/sdk/platform/User/UserPlatformApplicationClient.js +34 -34
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +9 -9
- package/sdk/platform/Webhook/WebhookPlatformClient.js +9 -9
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +2 -2
- package/sdk/platform/Webhook/WebhookPlatformModel.js +1 -1
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +1 -1
- package/sdk/public/Catalog/CatalogPublicClient.js +1 -1
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.js +2 -2
- package/sdk/public/Content/ContentPublicClient.d.ts +14 -14
- package/sdk/public/Content/ContentPublicClient.js +14 -14
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +1 -1
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +5 -5
- package/sdk/public/Webhook/WebhookPublicClient.js +5 -5
|
@@ -21,7 +21,7 @@ class Payment {
|
|
|
21
21
|
* @returns {Promise<PaymentPlatformModel.UpdatePayoutDetails>} - Success response
|
|
22
22
|
* @name activateAndDectivatePayout
|
|
23
23
|
* @summary: Activate/Deactivate payout
|
|
24
|
-
* @description: Enable or disable payout functionality. - Check out [method documentation](https://
|
|
24
|
+
* @description: Enable or disable payout functionality. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/activateAndDectivatePayout/).
|
|
25
25
|
*/
|
|
26
26
|
async activateAndDectivatePayout(
|
|
27
27
|
{ uniqueTransferNo, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -104,7 +104,7 @@ class Payment {
|
|
|
104
104
|
* @returns {Promise<PaymentPlatformModel.DeletePayoutDetails>} - Success response
|
|
105
105
|
* @name deletePayout
|
|
106
106
|
* @summary: Delete payout
|
|
107
|
-
* @description: Remove a payout transaction from the system. - Check out [method documentation](https://
|
|
107
|
+
* @description: Remove a payout transaction from the system. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/deletePayout/).
|
|
108
108
|
*/
|
|
109
109
|
async deletePayout(
|
|
110
110
|
{ uniqueTransferNo, requestHeaders } = { requestHeaders: {} },
|
|
@@ -187,7 +187,7 @@ class Payment {
|
|
|
187
187
|
*
|
|
188
188
|
* @name deleteSubscriptionPaymentMethod
|
|
189
189
|
* @summary: Delete subscription payment method
|
|
190
|
-
* @description: Remove a payment method from subscription options. - Check out [method documentation](https://
|
|
190
|
+
* @description: Remove a payment method from subscription options. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/deleteSubscriptionPaymentMethod/).
|
|
191
191
|
*/
|
|
192
192
|
async deleteSubscriptionPaymentMethod(
|
|
193
193
|
{ uniqueExternalId, paymentMethodId, requestHeaders } = {
|
|
@@ -274,7 +274,7 @@ class Payment {
|
|
|
274
274
|
* @returns {Promise<PaymentPlatformModel.PayoutsDetails>} - Success response
|
|
275
275
|
* @name getAllPayouts
|
|
276
276
|
* @summary: List payouts
|
|
277
|
-
* @description: Retrieve a list of all payout transactions. - Check out [method documentation](https://
|
|
277
|
+
* @description: Retrieve a list of all payout transactions. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/getAllPayouts/).
|
|
278
278
|
*/
|
|
279
279
|
async getAllPayouts(
|
|
280
280
|
{ uniqueExternalId, requestHeaders } = { requestHeaders: {} },
|
|
@@ -355,7 +355,7 @@ class Payment {
|
|
|
355
355
|
* Success response
|
|
356
356
|
* @name getSubscriptionConfig
|
|
357
357
|
* @summary: Get subscription config
|
|
358
|
-
* @description: Retrieve configuration settings for subscriptions. - Check out [method documentation](https://
|
|
358
|
+
* @description: Retrieve configuration settings for subscriptions. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/getSubscriptionConfig/).
|
|
359
359
|
*/
|
|
360
360
|
async getSubscriptionConfig(
|
|
361
361
|
{ requestHeaders } = { requestHeaders: {} },
|
|
@@ -434,7 +434,7 @@ class Payment {
|
|
|
434
434
|
*
|
|
435
435
|
* @name getSubscriptionPaymentMethod
|
|
436
436
|
* @summary: Get subscription payment method
|
|
437
|
-
* @description: Retrieve payment methods for subscriptions. - Check out [method documentation](https://
|
|
437
|
+
* @description: Retrieve payment methods for subscriptions. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/getSubscriptionPaymentMethod/).
|
|
438
438
|
*/
|
|
439
439
|
async getSubscriptionPaymentMethod(
|
|
440
440
|
{ uniqueExternalId, requestHeaders } = { requestHeaders: {} },
|
|
@@ -516,7 +516,7 @@ class Payment {
|
|
|
516
516
|
* @returns {Promise<PaymentPlatformModel.PayoutDetails>} - Success response
|
|
517
517
|
* @name savePayout
|
|
518
518
|
* @summary: Save payout
|
|
519
|
-
* @description: Store and process a payout transaction. - Check out [method documentation](https://
|
|
519
|
+
* @description: Store and process a payout transaction. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/savePayout/).
|
|
520
520
|
*/
|
|
521
521
|
async savePayout(
|
|
522
522
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -595,7 +595,7 @@ class Payment {
|
|
|
595
595
|
*
|
|
596
596
|
* @name saveSubscriptionSetupIntent
|
|
597
597
|
* @summary: Save subscription setup intent
|
|
598
|
-
* @description: Store and process setup intent for subscriptions. - Check out [method documentation](https://
|
|
598
|
+
* @description: Store and process setup intent for subscriptions. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/saveSubscriptionSetupIntent/).
|
|
599
599
|
*/
|
|
600
600
|
async saveSubscriptionSetupIntent(
|
|
601
601
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -676,7 +676,7 @@ class Payment {
|
|
|
676
676
|
* @returns {Promise<PaymentPlatformModel.UpdatePayoutDetails>} - Success response
|
|
677
677
|
* @name updatePayout
|
|
678
678
|
* @summary: Update payout
|
|
679
|
-
* @description: Modify the details of a payout transaction. - Check out [method documentation](https://
|
|
679
|
+
* @description: Modify the details of a payout transaction. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/updatePayout/).
|
|
680
680
|
*/
|
|
681
681
|
async updatePayout(
|
|
682
682
|
{ uniqueTransferNo, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -757,7 +757,7 @@ class Payment {
|
|
|
757
757
|
* @returns {Promise<PaymentPlatformModel.IfscCodeDetails>} - Success response
|
|
758
758
|
* @name verifyIfscCode
|
|
759
759
|
* @summary: Verify IFSC code
|
|
760
|
-
* @description: Checks the validity of the provided IFSC code and returns bank details if valid. - Check out [method documentation](https://
|
|
760
|
+
* @description: Checks the validity of the provided IFSC code and returns bank details if valid. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/verifyIfscCode/).
|
|
761
761
|
*/
|
|
762
762
|
async verifyIfscCode(
|
|
763
763
|
{ ifscCode, requestHeaders } = { requestHeaders: {} },
|
|
@@ -544,7 +544,7 @@ export = PaymentPlatformModel;
|
|
|
544
544
|
*/
|
|
545
545
|
/**
|
|
546
546
|
* @typedef Page
|
|
547
|
-
* @property {number} [item_total] - The total number of items
|
|
547
|
+
* @property {number} [item_total] - The total number of all items across all pages.
|
|
548
548
|
* @property {string} [next_id] - The identifier for the next page.
|
|
549
549
|
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
550
550
|
* @property {boolean} [has_next] - Indicates whether there is a next page.
|
|
@@ -795,6 +795,8 @@ export = PaymentPlatformModel;
|
|
|
795
795
|
* redirected after a successful payment.
|
|
796
796
|
* @property {string} [failure_redirection_url] - URL to which the user will be
|
|
797
797
|
* redirected if the payment fails.
|
|
798
|
+
* @property {boolean} [send_communication] - Flag indicating whether to send
|
|
799
|
+
* communications (e.g., SMS or email) for the payment link
|
|
798
800
|
*/
|
|
799
801
|
/**
|
|
800
802
|
* @typedef CreatePaymentLinkDetails
|
|
@@ -868,6 +870,25 @@ export = PaymentPlatformModel;
|
|
|
868
870
|
* @property {Object} [offline] - Details to be updated for online payment configuration.
|
|
869
871
|
* @property {Object} [online] - Details to be updated for offline payment configuration.
|
|
870
872
|
*/
|
|
873
|
+
/**
|
|
874
|
+
* @typedef SkuDetails
|
|
875
|
+
* @property {string} [identifier] - SKU identifier of the offer
|
|
876
|
+
* @property {string} [sku_id] - Unique SKU identifier (example: GTIN, variant ID)
|
|
877
|
+
* @property {string} [sku_name] - Display name of the SKU
|
|
878
|
+
*/
|
|
879
|
+
/**
|
|
880
|
+
* @typedef AppliedOffer
|
|
881
|
+
* @property {boolean} [is_mop] - Whether the offer is a mop or not. MOP is a
|
|
882
|
+
* discount that is applied on the total order value.
|
|
883
|
+
* @property {string} [offer_type] - Type of offer. It can be either a bank or
|
|
884
|
+
* brand offer.
|
|
885
|
+
* @property {string} [offer_id] - Unique identifier for the offer.
|
|
886
|
+
* @property {string} [description] - Description of the offer.
|
|
887
|
+
* @property {number} [amount] - Amount of the offer in paise. (Example: ₹1 = 100 paise)
|
|
888
|
+
* @property {Object} [meta] - Extra meta data specific to extension
|
|
889
|
+
* @property {SkuDetails[]} [sku_details] - List of sku details for which the
|
|
890
|
+
* offer is applicable. This is applicable only for brand offers.
|
|
891
|
+
*/
|
|
871
892
|
/**
|
|
872
893
|
* @typedef OrderDetail
|
|
873
894
|
* @property {string} gid - Global identifier of the entity (e.g. order, cart
|
|
@@ -879,6 +900,7 @@ export = PaymentPlatformModel;
|
|
|
879
900
|
* @property {Object} aggregator_order_details - Aggregator order details
|
|
880
901
|
* generated by the payment gateway.
|
|
881
902
|
* @property {string} aggregator - Name of the payment gateway aggregator.
|
|
903
|
+
* @property {AppliedOffer[]} [applied_offers] - List of offers applied on the order.
|
|
882
904
|
*/
|
|
883
905
|
/**
|
|
884
906
|
* @typedef AddressDetail
|
|
@@ -1271,7 +1293,7 @@ export = PaymentPlatformModel;
|
|
|
1271
1293
|
declare class PaymentPlatformModel {
|
|
1272
1294
|
}
|
|
1273
1295
|
declare namespace PaymentPlatformModel {
|
|
1274
|
-
export { PaymentGatewayConfigDetails, ErrorCodeDescription, PaymentGatewayConfig, PaymentGatewayConfigCreation, PaymentGatewayToBeReviewed, ErrorCodeAndDescription, HttpErrorDetails, IntentAppErrorList, ProductCODData, CODChargesLimitsDetails, PaymentModeLogo, IntentApp, PaymentModeList, PaymentConfirmationElement, RootPaymentMode, PaymentOptions, AggregatorRoute, PaymentDefaultSelection, PaymentFlow, PaymentOptionAndFlow, AdvanceObject, SplitObject, AdvancePaymentObject, PaymentModeRouteDetails, PaymentOptionsDetails, PayoutCustomer, PayoutMoreAttributes, PayoutAggregator, Payout, PayoutsDetails, PayoutBankDetails, PayoutCreation, PayoutDetails, UpdatePayoutDetails, UpdatePayoutCreation, DeletePayoutDetails, SubscriptionPaymentMethodDetails, DeleteSubscriptionPaymentMethodDetails, SubscriptionConfigDetails, SaveSubscriptionSetupIntentCreation, SaveSubscriptionSetupIntentDetails, RefundAccountDetails, NotFoundResourceError, BankDetailsForOTP, AddBeneficiaryDetailsOTPCreation, IfscCodeDetails, OrderBeneficiaryDetails, OrderBeneficiaryFetchResults, MultiTenderPaymentMeta, MultiTenderPaymentMethod, PaymentConfirmationCreation, PaymentConfirmationDetails, CODdata, CODLimitConfig, CODPaymentLimitConfig, GetUserBULimitResponseSchema, GetUserCODLimitDetails, SetCODForUserCreation, SetCODOptionDetails, EdcModelData, EdcAggregatorAndModelListDetails, StatisticsData, EdcDeviceStatsDetails, EdcAddCreation, EdcDevice, EdcDeviceAddDetails, EdcDeviceDetails, EdcUpdate, EdcDeviceUpdateDetails, Page, EdcDeviceListDetails, PaymentInitializationCreation, PaymentInitializationDetails, PaymentStatusUpdateCreation, PaymentStatusUpdateDetails, ResendOrCancelPaymentCreation, LinkStatus, ResendOrCancelPaymentDetails, PaymentStatusBulkHandlerCreation, PaymentObjectList, PaymentStatusObject, PaymentStatusBulkHandlerDetails, GetOauthUrlDetails, RevokeOAuthToken, RepaymentRequestDetails, RepaymentDetailsSerialiserPayAll, RepaymentDetails, MerchantOnBoardingCreation, MerchantOnBoardingDetails, ValidateCustomerCreation, ValidateCustomerDetails, GetPaymentLinkDetails, ErrorDescription, ErrorDetails, CreatePaymentLinkMeta, CreatePaymentLinkCreation, CreatePaymentLinkDetails, PollingPaymentLinkDetails, CancelOrResendPaymentLinkCreation, ResendPaymentLinkDetails, CancelPaymentLinkDetails, Code, PaymentCode, GetPaymentCode, GetPaymentCodeDetails, PlatformPaymentModeDetails, MerchnatPaymentModeCreation, OrderDetail, AddressDetail, ReasonDetail, PaymentSessionDetail, PaymentSessionCreation, PaymentSessionPutDetails, RefundSessionDetail, RefundSessionCreation, RefundSessionDetails, PaymentDetails, CartDetails, RefundDetails, PaymentSessionFetchDetails, RefundSourcesPriority, RefundPriorityDetails, RefundPriorityCreation, MerchantPaymentModeCreation, FromConfig, ToConfig, PlatformPaymentModeCopyConfigCreation, PaymentMethodsMetaOrder, PaymentOrderMethods, PaymentOrderCreation, PaymentOrderData, PaymentOrderDetails, AggregatorVersionItemSchema, AggregatorVersionDetails, AggregatorVersionRequestSchema, PatchAggregatorControl, PaymentModeCustomConfigSchema, PaymentCustomConfigDetailsSchema, PaymentCustomConfigCustomerSchema, PaymentCustomConfigModeSchema, PaymentCustomConfigDetailsRequestSchema, PaymentCustomConfigCustomerRequestSchema, PaymentCustomConfigRequestSchema, PaymentCustomConfigResponseSchema, CustomerValidationSchema, UserCreditSchema, CreditAccountSummary, ValidateCustomerCreditSchema };
|
|
1296
|
+
export { PaymentGatewayConfigDetails, ErrorCodeDescription, PaymentGatewayConfig, PaymentGatewayConfigCreation, PaymentGatewayToBeReviewed, ErrorCodeAndDescription, HttpErrorDetails, IntentAppErrorList, ProductCODData, CODChargesLimitsDetails, PaymentModeLogo, IntentApp, PaymentModeList, PaymentConfirmationElement, RootPaymentMode, PaymentOptions, AggregatorRoute, PaymentDefaultSelection, PaymentFlow, PaymentOptionAndFlow, AdvanceObject, SplitObject, AdvancePaymentObject, PaymentModeRouteDetails, PaymentOptionsDetails, PayoutCustomer, PayoutMoreAttributes, PayoutAggregator, Payout, PayoutsDetails, PayoutBankDetails, PayoutCreation, PayoutDetails, UpdatePayoutDetails, UpdatePayoutCreation, DeletePayoutDetails, SubscriptionPaymentMethodDetails, DeleteSubscriptionPaymentMethodDetails, SubscriptionConfigDetails, SaveSubscriptionSetupIntentCreation, SaveSubscriptionSetupIntentDetails, RefundAccountDetails, NotFoundResourceError, BankDetailsForOTP, AddBeneficiaryDetailsOTPCreation, IfscCodeDetails, OrderBeneficiaryDetails, OrderBeneficiaryFetchResults, MultiTenderPaymentMeta, MultiTenderPaymentMethod, PaymentConfirmationCreation, PaymentConfirmationDetails, CODdata, CODLimitConfig, CODPaymentLimitConfig, GetUserBULimitResponseSchema, GetUserCODLimitDetails, SetCODForUserCreation, SetCODOptionDetails, EdcModelData, EdcAggregatorAndModelListDetails, StatisticsData, EdcDeviceStatsDetails, EdcAddCreation, EdcDevice, EdcDeviceAddDetails, EdcDeviceDetails, EdcUpdate, EdcDeviceUpdateDetails, Page, EdcDeviceListDetails, PaymentInitializationCreation, PaymentInitializationDetails, PaymentStatusUpdateCreation, PaymentStatusUpdateDetails, ResendOrCancelPaymentCreation, LinkStatus, ResendOrCancelPaymentDetails, PaymentStatusBulkHandlerCreation, PaymentObjectList, PaymentStatusObject, PaymentStatusBulkHandlerDetails, GetOauthUrlDetails, RevokeOAuthToken, RepaymentRequestDetails, RepaymentDetailsSerialiserPayAll, RepaymentDetails, MerchantOnBoardingCreation, MerchantOnBoardingDetails, ValidateCustomerCreation, ValidateCustomerDetails, GetPaymentLinkDetails, ErrorDescription, ErrorDetails, CreatePaymentLinkMeta, CreatePaymentLinkCreation, CreatePaymentLinkDetails, PollingPaymentLinkDetails, CancelOrResendPaymentLinkCreation, ResendPaymentLinkDetails, CancelPaymentLinkDetails, Code, PaymentCode, GetPaymentCode, GetPaymentCodeDetails, PlatformPaymentModeDetails, MerchnatPaymentModeCreation, SkuDetails, AppliedOffer, OrderDetail, AddressDetail, ReasonDetail, PaymentSessionDetail, PaymentSessionCreation, PaymentSessionPutDetails, RefundSessionDetail, RefundSessionCreation, RefundSessionDetails, PaymentDetails, CartDetails, RefundDetails, PaymentSessionFetchDetails, RefundSourcesPriority, RefundPriorityDetails, RefundPriorityCreation, MerchantPaymentModeCreation, FromConfig, ToConfig, PlatformPaymentModeCopyConfigCreation, PaymentMethodsMetaOrder, PaymentOrderMethods, PaymentOrderCreation, PaymentOrderData, PaymentOrderDetails, AggregatorVersionItemSchema, AggregatorVersionDetails, AggregatorVersionRequestSchema, PatchAggregatorControl, PaymentModeCustomConfigSchema, PaymentCustomConfigDetailsSchema, PaymentCustomConfigCustomerSchema, PaymentCustomConfigModeSchema, PaymentCustomConfigDetailsRequestSchema, PaymentCustomConfigCustomerRequestSchema, PaymentCustomConfigRequestSchema, PaymentCustomConfigResponseSchema, CustomerValidationSchema, UserCreditSchema, CreditAccountSummary, ValidateCustomerCreditSchema };
|
|
1275
1297
|
}
|
|
1276
1298
|
/** @returns {PaymentGatewayConfigDetails} */
|
|
1277
1299
|
declare function PaymentGatewayConfigDetails(): PaymentGatewayConfigDetails;
|
|
@@ -2696,7 +2718,7 @@ type EdcDeviceUpdateDetails = {
|
|
|
2696
2718
|
declare function Page(): Page;
|
|
2697
2719
|
type Page = {
|
|
2698
2720
|
/**
|
|
2699
|
-
* - The total number of items
|
|
2721
|
+
* - The total number of all items across all pages.
|
|
2700
2722
|
*/
|
|
2701
2723
|
item_total?: number;
|
|
2702
2724
|
/**
|
|
@@ -3374,6 +3396,11 @@ type CreatePaymentLinkCreation = {
|
|
|
3374
3396
|
* redirected if the payment fails.
|
|
3375
3397
|
*/
|
|
3376
3398
|
failure_redirection_url?: string;
|
|
3399
|
+
/**
|
|
3400
|
+
* - Flag indicating whether to send
|
|
3401
|
+
* communications (e.g., SMS or email) for the payment link
|
|
3402
|
+
*/
|
|
3403
|
+
send_communication?: boolean;
|
|
3377
3404
|
};
|
|
3378
3405
|
/** @returns {CreatePaymentLinkDetails} */
|
|
3379
3406
|
declare function CreatePaymentLinkDetails(): CreatePaymentLinkDetails;
|
|
@@ -3566,6 +3593,57 @@ type MerchnatPaymentModeCreation = {
|
|
|
3566
3593
|
*/
|
|
3567
3594
|
online?: any;
|
|
3568
3595
|
};
|
|
3596
|
+
/** @returns {SkuDetails} */
|
|
3597
|
+
declare function SkuDetails(): SkuDetails;
|
|
3598
|
+
type SkuDetails = {
|
|
3599
|
+
/**
|
|
3600
|
+
* - SKU identifier of the offer
|
|
3601
|
+
*/
|
|
3602
|
+
identifier?: string;
|
|
3603
|
+
/**
|
|
3604
|
+
* - Unique SKU identifier (example: GTIN, variant ID)
|
|
3605
|
+
*/
|
|
3606
|
+
sku_id?: string;
|
|
3607
|
+
/**
|
|
3608
|
+
* - Display name of the SKU
|
|
3609
|
+
*/
|
|
3610
|
+
sku_name?: string;
|
|
3611
|
+
};
|
|
3612
|
+
/** @returns {AppliedOffer} */
|
|
3613
|
+
declare function AppliedOffer(): AppliedOffer;
|
|
3614
|
+
type AppliedOffer = {
|
|
3615
|
+
/**
|
|
3616
|
+
* - Whether the offer is a mop or not. MOP is a
|
|
3617
|
+
* discount that is applied on the total order value.
|
|
3618
|
+
*/
|
|
3619
|
+
is_mop?: boolean;
|
|
3620
|
+
/**
|
|
3621
|
+
* - Type of offer. It can be either a bank or
|
|
3622
|
+
* brand offer.
|
|
3623
|
+
*/
|
|
3624
|
+
offer_type?: string;
|
|
3625
|
+
/**
|
|
3626
|
+
* - Unique identifier for the offer.
|
|
3627
|
+
*/
|
|
3628
|
+
offer_id?: string;
|
|
3629
|
+
/**
|
|
3630
|
+
* - Description of the offer.
|
|
3631
|
+
*/
|
|
3632
|
+
description?: string;
|
|
3633
|
+
/**
|
|
3634
|
+
* - Amount of the offer in paise. (Example: ₹1 = 100 paise)
|
|
3635
|
+
*/
|
|
3636
|
+
amount?: number;
|
|
3637
|
+
/**
|
|
3638
|
+
* - Extra meta data specific to extension
|
|
3639
|
+
*/
|
|
3640
|
+
meta?: any;
|
|
3641
|
+
/**
|
|
3642
|
+
* - List of sku details for which the
|
|
3643
|
+
* offer is applicable. This is applicable only for brand offers.
|
|
3644
|
+
*/
|
|
3645
|
+
sku_details?: SkuDetails[];
|
|
3646
|
+
};
|
|
3569
3647
|
/** @returns {OrderDetail} */
|
|
3570
3648
|
declare function OrderDetail(): OrderDetail;
|
|
3571
3649
|
type OrderDetail = {
|
|
@@ -3596,6 +3674,10 @@ type OrderDetail = {
|
|
|
3596
3674
|
* - Name of the payment gateway aggregator.
|
|
3597
3675
|
*/
|
|
3598
3676
|
aggregator: string;
|
|
3677
|
+
/**
|
|
3678
|
+
* - List of offers applied on the order.
|
|
3679
|
+
*/
|
|
3680
|
+
applied_offers?: AppliedOffer[];
|
|
3599
3681
|
};
|
|
3600
3682
|
/** @returns {AddressDetail} */
|
|
3601
3683
|
declare function AddressDetail(): AddressDetail;
|
|
@@ -614,7 +614,7 @@ const Joi = require("joi");
|
|
|
614
614
|
|
|
615
615
|
/**
|
|
616
616
|
* @typedef Page
|
|
617
|
-
* @property {number} [item_total] - The total number of items
|
|
617
|
+
* @property {number} [item_total] - The total number of all items across all pages.
|
|
618
618
|
* @property {string} [next_id] - The identifier for the next page.
|
|
619
619
|
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
620
620
|
* @property {boolean} [has_next] - Indicates whether there is a next page.
|
|
@@ -891,6 +891,8 @@ const Joi = require("joi");
|
|
|
891
891
|
* redirected after a successful payment.
|
|
892
892
|
* @property {string} [failure_redirection_url] - URL to which the user will be
|
|
893
893
|
* redirected if the payment fails.
|
|
894
|
+
* @property {boolean} [send_communication] - Flag indicating whether to send
|
|
895
|
+
* communications (e.g., SMS or email) for the payment link
|
|
894
896
|
*/
|
|
895
897
|
|
|
896
898
|
/**
|
|
@@ -976,6 +978,27 @@ const Joi = require("joi");
|
|
|
976
978
|
* @property {Object} [online] - Details to be updated for offline payment configuration.
|
|
977
979
|
*/
|
|
978
980
|
|
|
981
|
+
/**
|
|
982
|
+
* @typedef SkuDetails
|
|
983
|
+
* @property {string} [identifier] - SKU identifier of the offer
|
|
984
|
+
* @property {string} [sku_id] - Unique SKU identifier (example: GTIN, variant ID)
|
|
985
|
+
* @property {string} [sku_name] - Display name of the SKU
|
|
986
|
+
*/
|
|
987
|
+
|
|
988
|
+
/**
|
|
989
|
+
* @typedef AppliedOffer
|
|
990
|
+
* @property {boolean} [is_mop] - Whether the offer is a mop or not. MOP is a
|
|
991
|
+
* discount that is applied on the total order value.
|
|
992
|
+
* @property {string} [offer_type] - Type of offer. It can be either a bank or
|
|
993
|
+
* brand offer.
|
|
994
|
+
* @property {string} [offer_id] - Unique identifier for the offer.
|
|
995
|
+
* @property {string} [description] - Description of the offer.
|
|
996
|
+
* @property {number} [amount] - Amount of the offer in paise. (Example: ₹1 = 100 paise)
|
|
997
|
+
* @property {Object} [meta] - Extra meta data specific to extension
|
|
998
|
+
* @property {SkuDetails[]} [sku_details] - List of sku details for which the
|
|
999
|
+
* offer is applicable. This is applicable only for brand offers.
|
|
1000
|
+
*/
|
|
1001
|
+
|
|
979
1002
|
/**
|
|
980
1003
|
* @typedef OrderDetail
|
|
981
1004
|
* @property {string} gid - Global identifier of the entity (e.g. order, cart
|
|
@@ -987,6 +1010,7 @@ const Joi = require("joi");
|
|
|
987
1010
|
* @property {Object} aggregator_order_details - Aggregator order details
|
|
988
1011
|
* generated by the payment gateway.
|
|
989
1012
|
* @property {string} aggregator - Name of the payment gateway aggregator.
|
|
1013
|
+
* @property {AppliedOffer[]} [applied_offers] - List of offers applied on the order.
|
|
990
1014
|
*/
|
|
991
1015
|
|
|
992
1016
|
/**
|
|
@@ -2509,6 +2533,7 @@ class PaymentPlatformModel {
|
|
|
2509
2533
|
external_order_id: Joi.string().allow("").required(),
|
|
2510
2534
|
success_redirection_url: Joi.string().allow(""),
|
|
2511
2535
|
failure_redirection_url: Joi.string().allow(""),
|
|
2536
|
+
send_communication: Joi.boolean(),
|
|
2512
2537
|
});
|
|
2513
2538
|
}
|
|
2514
2539
|
|
|
@@ -2617,6 +2642,28 @@ class PaymentPlatformModel {
|
|
|
2617
2642
|
});
|
|
2618
2643
|
}
|
|
2619
2644
|
|
|
2645
|
+
/** @returns {SkuDetails} */
|
|
2646
|
+
static SkuDetails() {
|
|
2647
|
+
return Joi.object({
|
|
2648
|
+
identifier: Joi.string().allow(""),
|
|
2649
|
+
sku_id: Joi.string().allow(""),
|
|
2650
|
+
sku_name: Joi.string().allow(""),
|
|
2651
|
+
});
|
|
2652
|
+
}
|
|
2653
|
+
|
|
2654
|
+
/** @returns {AppliedOffer} */
|
|
2655
|
+
static AppliedOffer() {
|
|
2656
|
+
return Joi.object({
|
|
2657
|
+
is_mop: Joi.boolean(),
|
|
2658
|
+
offer_type: Joi.string().allow(""),
|
|
2659
|
+
offer_id: Joi.string().allow(""),
|
|
2660
|
+
description: Joi.string().allow(""),
|
|
2661
|
+
amount: Joi.number(),
|
|
2662
|
+
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
2663
|
+
sku_details: Joi.array().items(PaymentPlatformModel.SkuDetails()),
|
|
2664
|
+
});
|
|
2665
|
+
}
|
|
2666
|
+
|
|
2620
2667
|
/** @returns {OrderDetail} */
|
|
2621
2668
|
static OrderDetail() {
|
|
2622
2669
|
return Joi.object({
|
|
@@ -2628,6 +2675,7 @@ class PaymentPlatformModel {
|
|
|
2628
2675
|
.pattern(/\S/, Joi.any())
|
|
2629
2676
|
.required(),
|
|
2630
2677
|
aggregator: Joi.string().allow("").required(),
|
|
2678
|
+
applied_offers: Joi.array().items(PaymentPlatformModel.AppliedOffer()),
|
|
2631
2679
|
});
|
|
2632
2680
|
}
|
|
2633
2681
|
|
|
@@ -10,7 +10,7 @@ declare class Rewards {
|
|
|
10
10
|
* @returns {Promise<RewardsPlatformModel.Giveaway>} - Success response
|
|
11
11
|
* @name getGiveawayById
|
|
12
12
|
* @summary: Get a giveaway
|
|
13
|
-
* @description: Retrieve specific giveaway details by its unique identifier. - Check out [method documentation](https://
|
|
13
|
+
* @description: Retrieve specific giveaway details by its unique identifier. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/rewards/getGiveawayById/).
|
|
14
14
|
*/
|
|
15
15
|
getGiveawayById({ id, requestHeaders }?: RewardsPlatformApplicationValidator.GetGiveawayByIdParam, { responseHeaders }?: object): Promise<RewardsPlatformModel.Giveaway>;
|
|
16
16
|
/**
|
|
@@ -20,7 +20,7 @@ declare class Rewards {
|
|
|
20
20
|
* @returns {Promise<RewardsPlatformModel.Offer>} - Success response
|
|
21
21
|
* @name getOfferByName
|
|
22
22
|
* @summary: Get offer by name
|
|
23
|
-
* @description: Retrieve an offer by its name. - Check out [method documentation](https://
|
|
23
|
+
* @description: Retrieve an offer by its name. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/rewards/getOfferByName/).
|
|
24
24
|
*/
|
|
25
25
|
getOfferByName({ name, requestHeaders }?: RewardsPlatformApplicationValidator.GetOfferByNameParam, { responseHeaders }?: object): Promise<RewardsPlatformModel.Offer>;
|
|
26
26
|
/**
|
|
@@ -32,7 +32,7 @@ declare class Rewards {
|
|
|
32
32
|
* @returns {Promise<RewardsPlatformModel.ConfigurationRes>} - Success response
|
|
33
33
|
* @name getRewardsConfiguration
|
|
34
34
|
* @summary: Get rewards configuration
|
|
35
|
-
* @description: Retrieve the configuration settings for the rewards program. - Check out [method documentation](https://
|
|
35
|
+
* @description: Retrieve the configuration settings for the rewards program. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/rewards/getRewardsConfiguration/).
|
|
36
36
|
*/
|
|
37
37
|
getRewardsConfiguration({ requestHeaders }?: any, { responseHeaders }?: object): Promise<RewardsPlatformModel.ConfigurationRes>;
|
|
38
38
|
/**
|
|
@@ -42,7 +42,7 @@ declare class Rewards {
|
|
|
42
42
|
* @returns {Promise<RewardsPlatformModel.UserRes>} - Success response
|
|
43
43
|
* @name getUserDetails
|
|
44
44
|
* @summary: Get a user
|
|
45
|
-
* @description: Retrieve comprehensive details about a user in the rewards program. - Check out [method documentation](https://
|
|
45
|
+
* @description: Retrieve comprehensive details about a user in the rewards program. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/rewards/getUserDetails/).
|
|
46
46
|
*/
|
|
47
47
|
getUserDetails({ userId, requestHeaders }?: RewardsPlatformApplicationValidator.GetUserDetailsParam, { responseHeaders }?: object): Promise<RewardsPlatformModel.UserRes>;
|
|
48
48
|
/**
|
|
@@ -54,7 +54,7 @@ declare class Rewards {
|
|
|
54
54
|
* @returns {Promise<RewardsPlatformModel.HistoryRes>} - Success response
|
|
55
55
|
* @name getUserPointsHistory
|
|
56
56
|
* @summary: Get reward user points history
|
|
57
|
-
* @description: Retrieve the history of points earned and redeemed by a user. - Check out [method documentation](https://
|
|
57
|
+
* @description: Retrieve the history of points earned and redeemed by a user. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/rewards/getUserPointsHistory/).
|
|
58
58
|
*/
|
|
59
59
|
getUserPointsHistory({ userId, pageId, pageSize, requestHeaders }?: RewardsPlatformApplicationValidator.GetUserPointsHistoryParam, { responseHeaders }?: object): Promise<RewardsPlatformModel.HistoryRes>;
|
|
60
60
|
/**
|
|
@@ -64,7 +64,7 @@ declare class Rewards {
|
|
|
64
64
|
* @returns {Promise<RewardsPlatformModel.Giveaway>} - Success response
|
|
65
65
|
* @name saveGiveAway
|
|
66
66
|
* @summary: Create a giveaway
|
|
67
|
-
* @description: Store and manage details of a giveaway. - Check out [method documentation](https://
|
|
67
|
+
* @description: Store and manage details of a giveaway. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/rewards/saveGiveAway/).
|
|
68
68
|
*/
|
|
69
69
|
saveGiveAway({ body, requestHeaders }?: RewardsPlatformApplicationValidator.SaveGiveAwayParam, { responseHeaders }?: object): Promise<RewardsPlatformModel.Giveaway>;
|
|
70
70
|
/**
|
|
@@ -76,7 +76,7 @@ declare class Rewards {
|
|
|
76
76
|
* @returns {Promise<RewardsPlatformModel.SetConfigurationRes>} - Success response
|
|
77
77
|
* @name setRewardsConfiguration
|
|
78
78
|
* @summary: Set rewards configuration
|
|
79
|
-
* @description: Configure and modify the settings for the rewards program. - Check out [method documentation](https://
|
|
79
|
+
* @description: Configure and modify the settings for the rewards program. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/rewards/setRewardsConfiguration/).
|
|
80
80
|
*/
|
|
81
81
|
setRewardsConfiguration({ body, requestHeaders }?: RewardsPlatformApplicationValidator.SetRewardsConfigurationParam, { responseHeaders }?: object): Promise<RewardsPlatformModel.SetConfigurationRes>;
|
|
82
82
|
/**
|
|
@@ -86,7 +86,7 @@ declare class Rewards {
|
|
|
86
86
|
* @returns {Promise<RewardsPlatformModel.ListGiveaway>} - Success response
|
|
87
87
|
* @name showGiveaways
|
|
88
88
|
* @summary: List giveaways
|
|
89
|
-
* @description: Retrieve and display available giveaways. - Check out [method documentation](https://
|
|
89
|
+
* @description: Retrieve and display available giveaways. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/rewards/showGiveaways/).
|
|
90
90
|
*/
|
|
91
91
|
showGiveaways({ pageId, pageSize, requestHeaders }?: RewardsPlatformApplicationValidator.ShowGiveawaysParam, { responseHeaders }?: object): Promise<RewardsPlatformModel.ListGiveaway>;
|
|
92
92
|
/**
|
|
@@ -96,7 +96,7 @@ declare class Rewards {
|
|
|
96
96
|
* @returns {Promise<RewardsPlatformModel.Offer[]>} - Success response
|
|
97
97
|
* @name showOffers
|
|
98
98
|
* @summary: List offers
|
|
99
|
-
* @description: Display available offers for users. - Check out [method documentation](https://
|
|
99
|
+
* @description: Display available offers for users. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/rewards/showOffers/).
|
|
100
100
|
*/
|
|
101
101
|
showOffers({ requestHeaders }?: any, { responseHeaders }?: object): Promise<RewardsPlatformModel.Offer[]>;
|
|
102
102
|
/**
|
|
@@ -106,7 +106,7 @@ declare class Rewards {
|
|
|
106
106
|
* @returns {Promise<RewardsPlatformModel.Giveaway>} - Success response
|
|
107
107
|
* @name updateGiveAway
|
|
108
108
|
* @summary: Update a giveaway
|
|
109
|
-
* @description: Modify and update information about a giveaway. - Check out [method documentation](https://
|
|
109
|
+
* @description: Modify and update information about a giveaway. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/rewards/updateGiveAway/).
|
|
110
110
|
*/
|
|
111
111
|
updateGiveAway({ id, body, requestHeaders }?: RewardsPlatformApplicationValidator.UpdateGiveAwayParam, { responseHeaders }?: object): Promise<RewardsPlatformModel.Giveaway>;
|
|
112
112
|
/**
|
|
@@ -118,7 +118,7 @@ declare class Rewards {
|
|
|
118
118
|
* @returns {Promise<RewardsPlatformModel.Offer>} - Success response
|
|
119
119
|
* @name updateOfferByName
|
|
120
120
|
* @summary: Update offer by name
|
|
121
|
-
* @description: Modify and manage an offer using its name. - Check out [method documentation](https://
|
|
121
|
+
* @description: Modify and manage an offer using its name. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/rewards/updateOfferByName/).
|
|
122
122
|
*/
|
|
123
123
|
updateOfferByName({ name, body, requestHeaders }?: RewardsPlatformApplicationValidator.UpdateOfferByNameParam, { responseHeaders }?: object): Promise<RewardsPlatformModel.Offer>;
|
|
124
124
|
/**
|
|
@@ -128,7 +128,7 @@ declare class Rewards {
|
|
|
128
128
|
* @returns {Promise<RewardsPlatformModel.AppUser>} - Success response
|
|
129
129
|
* @name updateUserStatus
|
|
130
130
|
* @summary: Update user status
|
|
131
|
-
* @description: Change and update the status of a user in the rewards system. - Check out [method documentation](https://
|
|
131
|
+
* @description: Change and update the status of a user in the rewards system. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/rewards/updateUserStatus/).
|
|
132
132
|
*/
|
|
133
133
|
updateUserStatus({ userId, body, requestHeaders }?: RewardsPlatformApplicationValidator.UpdateUserStatusParam, { responseHeaders }?: object): Promise<RewardsPlatformModel.AppUser>;
|
|
134
134
|
}
|
|
@@ -22,7 +22,7 @@ class Rewards {
|
|
|
22
22
|
* @returns {Promise<RewardsPlatformModel.Giveaway>} - Success response
|
|
23
23
|
* @name getGiveawayById
|
|
24
24
|
* @summary: Get a giveaway
|
|
25
|
-
* @description: Retrieve specific giveaway details by its unique identifier. - Check out [method documentation](https://
|
|
25
|
+
* @description: Retrieve specific giveaway details by its unique identifier. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/rewards/getGiveawayById/).
|
|
26
26
|
*/
|
|
27
27
|
async getGiveawayById(
|
|
28
28
|
{ id, requestHeaders } = { requestHeaders: {} },
|
|
@@ -101,7 +101,7 @@ class Rewards {
|
|
|
101
101
|
* @returns {Promise<RewardsPlatformModel.Offer>} - Success response
|
|
102
102
|
* @name getOfferByName
|
|
103
103
|
* @summary: Get offer by name
|
|
104
|
-
* @description: Retrieve an offer by its name. - Check out [method documentation](https://
|
|
104
|
+
* @description: Retrieve an offer by its name. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/rewards/getOfferByName/).
|
|
105
105
|
*/
|
|
106
106
|
async getOfferByName(
|
|
107
107
|
{ name, requestHeaders } = { requestHeaders: {} },
|
|
@@ -178,7 +178,7 @@ class Rewards {
|
|
|
178
178
|
* @returns {Promise<RewardsPlatformModel.ConfigurationRes>} - Success response
|
|
179
179
|
* @name getRewardsConfiguration
|
|
180
180
|
* @summary: Get rewards configuration
|
|
181
|
-
* @description: Retrieve the configuration settings for the rewards program. - Check out [method documentation](https://
|
|
181
|
+
* @description: Retrieve the configuration settings for the rewards program. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/rewards/getRewardsConfiguration/).
|
|
182
182
|
*/
|
|
183
183
|
async getRewardsConfiguration(
|
|
184
184
|
{ requestHeaders } = { requestHeaders: {} },
|
|
@@ -253,7 +253,7 @@ class Rewards {
|
|
|
253
253
|
* @returns {Promise<RewardsPlatformModel.UserRes>} - Success response
|
|
254
254
|
* @name getUserDetails
|
|
255
255
|
* @summary: Get a user
|
|
256
|
-
* @description: Retrieve comprehensive details about a user in the rewards program. - Check out [method documentation](https://
|
|
256
|
+
* @description: Retrieve comprehensive details about a user in the rewards program. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/rewards/getUserDetails/).
|
|
257
257
|
*/
|
|
258
258
|
async getUserDetails(
|
|
259
259
|
{ userId, requestHeaders } = { requestHeaders: {} },
|
|
@@ -330,7 +330,7 @@ class Rewards {
|
|
|
330
330
|
* @returns {Promise<RewardsPlatformModel.HistoryRes>} - Success response
|
|
331
331
|
* @name getUserPointsHistory
|
|
332
332
|
* @summary: Get reward user points history
|
|
333
|
-
* @description: Retrieve the history of points earned and redeemed by a user. - Check out [method documentation](https://
|
|
333
|
+
* @description: Retrieve the history of points earned and redeemed by a user. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/rewards/getUserPointsHistory/).
|
|
334
334
|
*/
|
|
335
335
|
async getUserPointsHistory(
|
|
336
336
|
{ userId, pageId, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
@@ -417,7 +417,7 @@ class Rewards {
|
|
|
417
417
|
* @returns {Promise<RewardsPlatformModel.Giveaway>} - Success response
|
|
418
418
|
* @name saveGiveAway
|
|
419
419
|
* @summary: Create a giveaway
|
|
420
|
-
* @description: Store and manage details of a giveaway. - Check out [method documentation](https://
|
|
420
|
+
* @description: Store and manage details of a giveaway. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/rewards/saveGiveAway/).
|
|
421
421
|
*/
|
|
422
422
|
async saveGiveAway(
|
|
423
423
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -498,7 +498,7 @@ class Rewards {
|
|
|
498
498
|
* @returns {Promise<RewardsPlatformModel.SetConfigurationRes>} - Success response
|
|
499
499
|
* @name setRewardsConfiguration
|
|
500
500
|
* @summary: Set rewards configuration
|
|
501
|
-
* @description: Configure and modify the settings for the rewards program. - Check out [method documentation](https://
|
|
501
|
+
* @description: Configure and modify the settings for the rewards program. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/rewards/setRewardsConfiguration/).
|
|
502
502
|
*/
|
|
503
503
|
async setRewardsConfiguration(
|
|
504
504
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -577,7 +577,7 @@ class Rewards {
|
|
|
577
577
|
* @returns {Promise<RewardsPlatformModel.ListGiveaway>} - Success response
|
|
578
578
|
* @name showGiveaways
|
|
579
579
|
* @summary: List giveaways
|
|
580
|
-
* @description: Retrieve and display available giveaways. - Check out [method documentation](https://
|
|
580
|
+
* @description: Retrieve and display available giveaways. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/rewards/showGiveaways/).
|
|
581
581
|
*/
|
|
582
582
|
async showGiveaways(
|
|
583
583
|
{ pageId, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
@@ -660,7 +660,7 @@ class Rewards {
|
|
|
660
660
|
* @returns {Promise<RewardsPlatformModel.Offer[]>} - Success response
|
|
661
661
|
* @name showOffers
|
|
662
662
|
* @summary: List offers
|
|
663
|
-
* @description: Display available offers for users. - Check out [method documentation](https://
|
|
663
|
+
* @description: Display available offers for users. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/rewards/showOffers/).
|
|
664
664
|
*/
|
|
665
665
|
async showOffers(
|
|
666
666
|
{ requestHeaders } = { requestHeaders: {} },
|
|
@@ -730,7 +730,7 @@ class Rewards {
|
|
|
730
730
|
* @returns {Promise<RewardsPlatformModel.Giveaway>} - Success response
|
|
731
731
|
* @name updateGiveAway
|
|
732
732
|
* @summary: Update a giveaway
|
|
733
|
-
* @description: Modify and update information about a giveaway. - Check out [method documentation](https://
|
|
733
|
+
* @description: Modify and update information about a giveaway. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/rewards/updateGiveAway/).
|
|
734
734
|
*/
|
|
735
735
|
async updateGiveAway(
|
|
736
736
|
{ id, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -813,7 +813,7 @@ class Rewards {
|
|
|
813
813
|
* @returns {Promise<RewardsPlatformModel.Offer>} - Success response
|
|
814
814
|
* @name updateOfferByName
|
|
815
815
|
* @summary: Update offer by name
|
|
816
|
-
* @description: Modify and manage an offer using its name. - Check out [method documentation](https://
|
|
816
|
+
* @description: Modify and manage an offer using its name. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/rewards/updateOfferByName/).
|
|
817
817
|
*/
|
|
818
818
|
async updateOfferByName(
|
|
819
819
|
{ name, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -896,7 +896,7 @@ class Rewards {
|
|
|
896
896
|
* @returns {Promise<RewardsPlatformModel.AppUser>} - Success response
|
|
897
897
|
* @name updateUserStatus
|
|
898
898
|
* @summary: Update user status
|
|
899
|
-
* @description: Change and update the status of a user in the rewards system. - Check out [method documentation](https://
|
|
899
|
+
* @description: Change and update the status of a user in the rewards system. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/rewards/updateUserStatus/).
|
|
900
900
|
*/
|
|
901
901
|
async updateUserStatus(
|
|
902
902
|
{ userId, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -50,7 +50,7 @@ export = RewardsPlatformModel;
|
|
|
50
50
|
*/
|
|
51
51
|
/**
|
|
52
52
|
* @typedef Page
|
|
53
|
-
* @property {number} [item_total] - The total number of items
|
|
53
|
+
* @property {number} [item_total] - The total number of all items across all pages.
|
|
54
54
|
* @property {string} [next_id] - The identifier for the next page.
|
|
55
55
|
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
56
56
|
* @property {boolean} [has_next] - Indicates whether there is a next page.
|
|
@@ -228,7 +228,7 @@ type RewardsRule = {
|
|
|
228
228
|
declare function Page(): Page;
|
|
229
229
|
type Page = {
|
|
230
230
|
/**
|
|
231
|
-
* - The total number of items
|
|
231
|
+
* - The total number of all items across all pages.
|
|
232
232
|
*/
|
|
233
233
|
item_total?: number;
|
|
234
234
|
/**
|
|
@@ -58,7 +58,7 @@ const Joi = require("joi");
|
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* @typedef Page
|
|
61
|
-
* @property {number} [item_total] - The total number of items
|
|
61
|
+
* @property {number} [item_total] - The total number of all items across all pages.
|
|
62
62
|
* @property {string} [next_id] - The identifier for the next page.
|
|
63
63
|
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
64
64
|
* @property {boolean} [has_next] - Indicates whether there is a next page.
|