@gofynd/fdk-client-javascript 1.4.2-beta.3 → 1.4.2-beta.5
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 +62 -62
- package/sdk/application/Cart/CartApplicationClient.js +82 -71
- package/sdk/application/Cart/CartApplicationValidator.d.ts +189 -34
- package/sdk/application/Cart/CartApplicationValidator.js +59 -34
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +78 -78
- package/sdk/application/Catalog/CatalogApplicationClient.js +78 -78
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +4 -4
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -6
- package/sdk/application/Communication/CommunicationApplicationClient.js +6 -6
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -67
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +32 -106
- package/sdk/application/Content/ContentApplicationClient.d.ts +34 -64
- package/sdk/application/Content/ContentApplicationClient.js +34 -115
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -42
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +6 -42
- package/sdk/application/Lead/LeadApplicationClient.d.ts +14 -14
- package/sdk/application/Lead/LeadApplicationClient.js +14 -14
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +12 -12
- package/sdk/application/Logistic/LogisticApplicationClient.js +12 -12
- package/sdk/application/Order/OrderApplicationClient.d.ts +24 -24
- package/sdk/application/Order/OrderApplicationClient.js +24 -24
- package/sdk/application/Order/OrderApplicationModel.d.ts +29 -1
- package/sdk/application/Order/OrderApplicationModel.js +34 -0
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +89 -89
- package/sdk/application/Payment/PaymentApplicationClient.js +94 -94
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +524 -3
- package/sdk/application/Payment/PaymentApplicationModel.js +335 -2
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +5 -5
- package/sdk/application/Payment/PaymentApplicationValidator.js +3 -3
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +54 -54
- package/sdk/application/PosCart/PosCartApplicationClient.js +54 -54
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -25
- package/sdk/application/Rewards/RewardsApplicationClient.js +14 -41
- package/sdk/application/Share/ShareApplicationClient.d.ts +14 -14
- package/sdk/application/Share/ShareApplicationClient.js +14 -14
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -8
- package/sdk/application/Theme/ThemeApplicationClient.js +8 -8
- package/sdk/application/User/UserApplicationClient.d.ts +66 -66
- package/sdk/application/User/UserApplicationClient.js +68 -71
- package/sdk/application/User/UserApplicationModel.d.ts +32 -27
- package/sdk/application/User/UserApplicationModel.js +22 -32
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +38 -38
- package/sdk/partner/Theme/ThemePartnerClient.js +38 -38
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +8 -8
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +8 -8
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +34 -36
- package/sdk/platform/Billing/BillingPlatformClient.js +34 -36
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +98 -175
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +98 -254
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +92 -18
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +28 -18
- package/sdk/platform/Cart/CartPlatformModel.d.ts +12 -0
- package/sdk/platform/Cart/CartPlatformModel.js +12 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +221 -108
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +460 -113
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +72 -3
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +46 -2
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +335 -136
- package/sdk/platform/Catalog/CatalogPlatformClient.js +551 -136
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +38 -5
- package/sdk/platform/Catalog/CatalogPlatformModel.js +47 -3
- package/sdk/platform/Common/CommonPlatformClient.d.ts +3 -3
- package/sdk/platform/Common/CommonPlatformClient.js +3 -3
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +115 -290
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +115 -510
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -13
- package/sdk/platform/Communication/CommunicationPlatformClient.js +2 -29
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +32 -32
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +32 -32
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +52 -127
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +52 -204
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +35 -111
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +35 -212
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +142 -1
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +96 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +130 -218
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +136 -314
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +4 -4
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +4 -4
- package/sdk/platform/Content/ContentPlatformClient.d.ts +1 -1
- package/sdk/platform/Content/ContentPlatformClient.js +7 -7
- package/sdk/platform/Content/ContentPlatformModel.d.ts +18 -1
- package/sdk/platform/Content/ContentPlatformModel.js +20 -0
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +4 -4
- package/sdk/platform/Content/ContentPlatformValidator.js +4 -4
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +22 -48
- package/sdk/platform/Discount/DiscountPlatformClient.js +22 -73
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +20 -56
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +23 -56
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +2 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -0
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +12 -48
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +12 -48
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +15 -1
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +14 -0
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +44 -44
- package/sdk/platform/Finance/FinancePlatformClient.js +44 -44
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +12 -12
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +22 -48
- package/sdk/platform/Lead/LeadPlatformClient.js +22 -72
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -4
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +4 -4
- package/sdk/platform/Order/OrderPlatformClient.d.ts +79 -208
- package/sdk/platform/Order/OrderPlatformClient.js +79 -294
- package/sdk/platform/Order/OrderPlatformModel.d.ts +42 -1
- package/sdk/platform/Order/OrderPlatformModel.js +44 -0
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +4 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +4 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +81 -81
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +81 -81
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +27 -1
- package/sdk/platform/Payment/PaymentPlatformModel.js +19 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +23 -40
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +23 -61
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +10 -9
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +11 -10
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +170 -33
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +171 -38
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +2 -2
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +11 -11
- package/sdk/platform/Share/SharePlatformApplicationClient.js +29 -16
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +13 -3
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -2
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +56 -56
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +56 -56
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +6 -6
- package/sdk/platform/Theme/ThemePlatformClient.js +6 -6
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +33 -33
- package/sdk/platform/User/UserPlatformApplicationClient.js +33 -33
- package/sdk/platform/User/UserPlatformModel.d.ts +81 -11
- package/sdk/platform/User/UserPlatformModel.js +80 -10
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +32 -45
- package/sdk/platform/Webhook/WebhookPlatformClient.js +32 -45
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +58 -1
- package/sdk/platform/Webhook/WebhookPlatformModel.js +66 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -2
- package/sdk/public/Configuration/ConfigurationPublicClient.js +2 -2
- package/sdk/public/Partner/PartnerPublicClient.d.ts +2 -2
- package/sdk/public/Partner/PartnerPublicClient.js +2 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicClient.js +4 -4
|
@@ -20,8 +20,8 @@ class Payment {
|
|
|
20
20
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
21
21
|
* @returns {Promise<PaymentPlatformModel.UpdatePayoutResponse>} - Success response
|
|
22
22
|
* @name activateAndDectivatePayout
|
|
23
|
-
* @summary:
|
|
24
|
-
* @description:
|
|
23
|
+
* @summary: Activate/Deactivate payout.
|
|
24
|
+
* @description: Enable or disable payout functionality. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/activateAndDectivatePayout/).
|
|
25
25
|
*/
|
|
26
26
|
async activateAndDectivatePayout(
|
|
27
27
|
{ uniqueTransferNo, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -103,8 +103,8 @@ class Payment {
|
|
|
103
103
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
104
104
|
* @returns {Promise<PaymentPlatformModel.DeletePayoutResponse>} - Success response
|
|
105
105
|
* @name deletePayout
|
|
106
|
-
* @summary: Delete
|
|
107
|
-
* @description:
|
|
106
|
+
* @summary: Delete payout.
|
|
107
|
+
* @description: Remove a payout transaction from the system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/deletePayout/).
|
|
108
108
|
*/
|
|
109
109
|
async deletePayout(
|
|
110
110
|
{ uniqueTransferNo, requestHeaders } = { requestHeaders: {} },
|
|
@@ -186,8 +186,8 @@ class Payment {
|
|
|
186
186
|
* - Success response
|
|
187
187
|
*
|
|
188
188
|
* @name deleteSubscriptionPaymentMethod
|
|
189
|
-
* @summary: Delete
|
|
190
|
-
* @description:
|
|
189
|
+
* @summary: Delete subscription payment method.
|
|
190
|
+
* @description: Remove a payment method from subscription options. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/deleteSubscriptionPaymentMethod/).
|
|
191
191
|
*/
|
|
192
192
|
async deleteSubscriptionPaymentMethod(
|
|
193
193
|
{ uniqueExternalId, paymentMethodId, requestHeaders } = {
|
|
@@ -273,8 +273,8 @@ class Payment {
|
|
|
273
273
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
274
274
|
* @returns {Promise<PaymentPlatformModel.PayoutsResponse>} - Success response
|
|
275
275
|
* @name getAllPayouts
|
|
276
|
-
* @summary: Get
|
|
277
|
-
* @description:
|
|
276
|
+
* @summary: Get all payouts.
|
|
277
|
+
* @description: Retrieve a list of all payout transactions. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getAllPayouts/).
|
|
278
278
|
*/
|
|
279
279
|
async getAllPayouts(
|
|
280
280
|
{ uniqueExternalId, requestHeaders } = { requestHeaders: {} },
|
|
@@ -354,8 +354,8 @@ class Payment {
|
|
|
354
354
|
* @returns {Promise<PaymentPlatformModel.SubscriptionConfigResponse>} -
|
|
355
355
|
* Success response
|
|
356
356
|
* @name getSubscriptionConfig
|
|
357
|
-
* @summary:
|
|
358
|
-
* @description:
|
|
357
|
+
* @summary: Get subscription config.
|
|
358
|
+
* @description: Retrieve configuration settings for subscriptions. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getSubscriptionConfig/).
|
|
359
359
|
*/
|
|
360
360
|
async getSubscriptionConfig(
|
|
361
361
|
{ requestHeaders } = { requestHeaders: {} },
|
|
@@ -433,8 +433,8 @@ class Payment {
|
|
|
433
433
|
* - Success response
|
|
434
434
|
*
|
|
435
435
|
* @name getSubscriptionPaymentMethod
|
|
436
|
-
* @summary:
|
|
437
|
-
* @description:
|
|
436
|
+
* @summary: Get subscription payment method.
|
|
437
|
+
* @description: Retrieve payment methods for subscriptions. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getSubscriptionPaymentMethod/).
|
|
438
438
|
*/
|
|
439
439
|
async getSubscriptionPaymentMethod(
|
|
440
440
|
{ uniqueExternalId, requestHeaders } = { requestHeaders: {} },
|
|
@@ -515,8 +515,8 @@ class Payment {
|
|
|
515
515
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
516
516
|
* @returns {Promise<PaymentPlatformModel.PayoutResponse>} - Success response
|
|
517
517
|
* @name savePayout
|
|
518
|
-
* @summary: Save
|
|
519
|
-
* @description:
|
|
518
|
+
* @summary: Save payout.
|
|
519
|
+
* @description: Store and process a payout transaction. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/savePayout/).
|
|
520
520
|
*/
|
|
521
521
|
async savePayout(
|
|
522
522
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -594,8 +594,8 @@ class Payment {
|
|
|
594
594
|
* - Success response
|
|
595
595
|
*
|
|
596
596
|
* @name saveSubscriptionSetupIntent
|
|
597
|
-
* @summary: Save
|
|
598
|
-
* @description:
|
|
597
|
+
* @summary: Save subscription setup intent.
|
|
598
|
+
* @description: Store and process setup intent for subscriptions. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/saveSubscriptionSetupIntent/).
|
|
599
599
|
*/
|
|
600
600
|
async saveSubscriptionSetupIntent(
|
|
601
601
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -675,8 +675,8 @@ class Payment {
|
|
|
675
675
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
676
676
|
* @returns {Promise<PaymentPlatformModel.UpdatePayoutResponse>} - Success response
|
|
677
677
|
* @name updatePayout
|
|
678
|
-
* @summary: Update
|
|
679
|
-
* @description:
|
|
678
|
+
* @summary: Update payout.
|
|
679
|
+
* @description: Modify the details of a payout transaction. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/updatePayout/).
|
|
680
680
|
*/
|
|
681
681
|
async updatePayout(
|
|
682
682
|
{ uniqueTransferNo, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -756,8 +756,8 @@ class Payment {
|
|
|
756
756
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
757
757
|
* @returns {Promise<PaymentPlatformModel.IfscCodeResponse>} - Success response
|
|
758
758
|
* @name verifyIfscCode
|
|
759
|
-
* @summary:
|
|
760
|
-
* @description:
|
|
759
|
+
* @summary: Verify IFSC code.
|
|
760
|
+
* @description: Check the authenticity of an IFSC code. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/verifyIfscCode/).
|
|
761
761
|
*/
|
|
762
762
|
async verifyIfscCode(
|
|
763
763
|
{ ifscCode, requestHeaders } = { requestHeaders: {} },
|
|
@@ -136,6 +136,13 @@ export = PaymentPlatformModel;
|
|
|
136
136
|
* @property {string} [payment_flow] - Payment_flow
|
|
137
137
|
* @property {string} [api_link] - Api_link
|
|
138
138
|
*/
|
|
139
|
+
/**
|
|
140
|
+
* @typedef PaymentDefaultSelection
|
|
141
|
+
* @property {string} [mode] - Default Selection Payment Mode
|
|
142
|
+
* @property {string} [identifier] - Identifier for Payment Mode
|
|
143
|
+
* @property {boolean} [skip] - Decide if the default payment mode will skip the
|
|
144
|
+
* payment options page altogether or just be preferred on the Frontend
|
|
145
|
+
*/
|
|
139
146
|
/**
|
|
140
147
|
* @typedef PaymentFlow
|
|
141
148
|
* @property {AggregatorRoute} [bqr_razorpay]
|
|
@@ -156,6 +163,7 @@ export = PaymentPlatformModel;
|
|
|
156
163
|
* @typedef PaymentOptionAndFlow
|
|
157
164
|
* @property {RootPaymentMode[]} payment_option - Payment options
|
|
158
165
|
* @property {PaymentFlow} payment_flows
|
|
166
|
+
* @property {PaymentDefaultSelection} [payment_default_selection]
|
|
159
167
|
*/
|
|
160
168
|
/**
|
|
161
169
|
* @typedef AdvanceObject
|
|
@@ -1169,7 +1177,7 @@ export = PaymentPlatformModel;
|
|
|
1169
1177
|
declare class PaymentPlatformModel {
|
|
1170
1178
|
}
|
|
1171
1179
|
declare namespace PaymentPlatformModel {
|
|
1172
|
-
export { PaymentGatewayConfigResponse, ErrorCodeDescription, PaymentGatewayConfig, PaymentGatewayConfigRequest, PaymentGatewayToBeReviewed, ErrorCodeAndDescription, HttpErrorCodeAndResponse, IntentAppErrorList, ProductCODData, CODChargesLimitsResponse, PaymentModeLogo, IntentApp, PaymentModeList, RootPaymentMode, PaymentOptions, AggregatorRoute, PaymentFlow, PaymentOptionAndFlow, AdvanceObject, SplitObject, AdvancePaymentObject, PaymentModeRouteResponse, PaymentOptionsResponse, PayoutCustomer, PayoutMoreAttributes, PayoutAggregator, Payout, PayoutsResponse, PayoutBankDetails, PayoutRequest, PayoutResponse, UpdatePayoutResponse, UpdatePayoutRequest, DeletePayoutResponse, SubscriptionPaymentMethodResponse, DeleteSubscriptionPaymentMethodResponse, SubscriptionConfigResponse, SaveSubscriptionSetupIntentRequest, SaveSubscriptionSetupIntentResponse, RefundAccountResponse, NotFoundResourceError, BankDetailsForOTP, AddBeneficiaryDetailsOTPRequest, IfscCodeResponse, OrderBeneficiaryDetails, OrderBeneficiaryResponse, MultiTenderPaymentMeta, MultiTenderPaymentMethod, PaymentConfirmationRequest, PaymentConfirmationResponse, CODdata, GetUserCODLimitResponse, SetCODForUserRequest, SetCODOptionResponse, EdcModelData, EdcAggregatorAndModelListResponse, StatisticsData, EdcDeviceStatsResponse, EdcAddRequest, EdcDevice, EdcDeviceAddResponse, EdcDeviceDetailsResponse, EdcUpdateRequest, EdcDeviceUpdateResponse, Page, EdcDeviceListResponse, PaymentInitializationRequest, PaymentInitializationResponse, PaymentStatusUpdateRequest, PaymentStatusUpdateResponse, ResendOrCancelPaymentRequest, LinkStatus, ResendOrCancelPaymentResponse, PaymentStatusBulkHandlerRequest, PaymentObjectListSerializer, PaymentStatusObject, PaymentStatusBulkHandlerResponse, GetOauthUrlResponse, RevokeOAuthToken, RepaymentRequestDetails, RepaymentDetailsSerialiserPayAll, RepaymentResponse, MerchantOnBoardingRequest, MerchantOnBoardingResponse, ValidateCustomerRequest, ValidateCustomerResponse, GetPaymentLinkResponse, ErrorDescription, ErrorResponse, CreatePaymentLinkMeta, CreatePaymentLinkRequest, CreatePaymentLinkResponse, PollingPaymentLinkResponse, CancelOrResendPaymentLinkRequest, ResendPaymentLinkResponse, CancelPaymentLinkResponse, Code, PaymentCode, GetPaymentCode, GetPaymentCodeResponse, PlatformPaymentModeResponse, MerchnatPaymentModeRequest, OrderDetail, AddressDetail, PaymentSessionDetail, PaymentSessionRequestSerializer, PaymentSessionResponseSerializer, RefundSessionDetail, RefundSessionRequestSerializer, RefundSessionResponseSerializer, PaymentDetailsSerializer, CartDetailsSerializer, RefundDetailsSerializer, PaymentSessionSerializer, RefundSourcesPriority, RefundPriorityResponseSerializer, RefundPriorityRequestSerializer, MerchantPaymentModeRequest, FromConfig, ToConfig, PlatformPaymentModeCopyConfigRequest, PaymentMethodsMetaOrder, PaymentOrderMethods, PaymentOrderRequest, PaymentOrderData, PaymentOrderResponse, AggregatorVersionItemSchema, AggregatorVersionResponse, AggregatorVersionRequestSchema, AggregatorControlRequest, PaymentModeCustomConfigSchema, PaymentCustomConfigDetailsSchema, PaymentCustomConfigCustomerSchema, PaymentCustomConfigModeSchema, PaymentCustomConfigDetailsRequestSchema, PaymentCustomConfigCustomerRequestSchema, PaymentCustomConfigRequestSchema, PaymentCustomConfigResponseSchema };
|
|
1180
|
+
export { PaymentGatewayConfigResponse, ErrorCodeDescription, PaymentGatewayConfig, PaymentGatewayConfigRequest, PaymentGatewayToBeReviewed, ErrorCodeAndDescription, HttpErrorCodeAndResponse, IntentAppErrorList, ProductCODData, CODChargesLimitsResponse, PaymentModeLogo, IntentApp, PaymentModeList, RootPaymentMode, PaymentOptions, AggregatorRoute, PaymentDefaultSelection, PaymentFlow, PaymentOptionAndFlow, AdvanceObject, SplitObject, AdvancePaymentObject, PaymentModeRouteResponse, PaymentOptionsResponse, PayoutCustomer, PayoutMoreAttributes, PayoutAggregator, Payout, PayoutsResponse, PayoutBankDetails, PayoutRequest, PayoutResponse, UpdatePayoutResponse, UpdatePayoutRequest, DeletePayoutResponse, SubscriptionPaymentMethodResponse, DeleteSubscriptionPaymentMethodResponse, SubscriptionConfigResponse, SaveSubscriptionSetupIntentRequest, SaveSubscriptionSetupIntentResponse, RefundAccountResponse, NotFoundResourceError, BankDetailsForOTP, AddBeneficiaryDetailsOTPRequest, IfscCodeResponse, OrderBeneficiaryDetails, OrderBeneficiaryResponse, MultiTenderPaymentMeta, MultiTenderPaymentMethod, PaymentConfirmationRequest, PaymentConfirmationResponse, CODdata, GetUserCODLimitResponse, SetCODForUserRequest, SetCODOptionResponse, EdcModelData, EdcAggregatorAndModelListResponse, StatisticsData, EdcDeviceStatsResponse, EdcAddRequest, EdcDevice, EdcDeviceAddResponse, EdcDeviceDetailsResponse, EdcUpdateRequest, EdcDeviceUpdateResponse, Page, EdcDeviceListResponse, PaymentInitializationRequest, PaymentInitializationResponse, PaymentStatusUpdateRequest, PaymentStatusUpdateResponse, ResendOrCancelPaymentRequest, LinkStatus, ResendOrCancelPaymentResponse, PaymentStatusBulkHandlerRequest, PaymentObjectListSerializer, PaymentStatusObject, PaymentStatusBulkHandlerResponse, GetOauthUrlResponse, RevokeOAuthToken, RepaymentRequestDetails, RepaymentDetailsSerialiserPayAll, RepaymentResponse, MerchantOnBoardingRequest, MerchantOnBoardingResponse, ValidateCustomerRequest, ValidateCustomerResponse, GetPaymentLinkResponse, ErrorDescription, ErrorResponse, CreatePaymentLinkMeta, CreatePaymentLinkRequest, CreatePaymentLinkResponse, PollingPaymentLinkResponse, CancelOrResendPaymentLinkRequest, ResendPaymentLinkResponse, CancelPaymentLinkResponse, Code, PaymentCode, GetPaymentCode, GetPaymentCodeResponse, PlatformPaymentModeResponse, MerchnatPaymentModeRequest, OrderDetail, AddressDetail, PaymentSessionDetail, PaymentSessionRequestSerializer, PaymentSessionResponseSerializer, RefundSessionDetail, RefundSessionRequestSerializer, RefundSessionResponseSerializer, PaymentDetailsSerializer, CartDetailsSerializer, RefundDetailsSerializer, PaymentSessionSerializer, RefundSourcesPriority, RefundPriorityResponseSerializer, RefundPriorityRequestSerializer, MerchantPaymentModeRequest, FromConfig, ToConfig, PlatformPaymentModeCopyConfigRequest, PaymentMethodsMetaOrder, PaymentOrderMethods, PaymentOrderRequest, PaymentOrderData, PaymentOrderResponse, AggregatorVersionItemSchema, AggregatorVersionResponse, AggregatorVersionRequestSchema, AggregatorControlRequest, PaymentModeCustomConfigSchema, PaymentCustomConfigDetailsSchema, PaymentCustomConfigCustomerSchema, PaymentCustomConfigModeSchema, PaymentCustomConfigDetailsRequestSchema, PaymentCustomConfigCustomerRequestSchema, PaymentCustomConfigRequestSchema, PaymentCustomConfigResponseSchema };
|
|
1173
1181
|
}
|
|
1174
1182
|
/** @returns {PaymentGatewayConfigResponse} */
|
|
1175
1183
|
declare function PaymentGatewayConfigResponse(): PaymentGatewayConfigResponse;
|
|
@@ -1561,6 +1569,23 @@ type AggregatorRoute = {
|
|
|
1561
1569
|
*/
|
|
1562
1570
|
api_link?: string;
|
|
1563
1571
|
};
|
|
1572
|
+
/** @returns {PaymentDefaultSelection} */
|
|
1573
|
+
declare function PaymentDefaultSelection(): PaymentDefaultSelection;
|
|
1574
|
+
type PaymentDefaultSelection = {
|
|
1575
|
+
/**
|
|
1576
|
+
* - Default Selection Payment Mode
|
|
1577
|
+
*/
|
|
1578
|
+
mode?: string;
|
|
1579
|
+
/**
|
|
1580
|
+
* - Identifier for Payment Mode
|
|
1581
|
+
*/
|
|
1582
|
+
identifier?: string;
|
|
1583
|
+
/**
|
|
1584
|
+
* - Decide if the default payment mode will skip the
|
|
1585
|
+
* payment options page altogether or just be preferred on the Frontend
|
|
1586
|
+
*/
|
|
1587
|
+
skip?: boolean;
|
|
1588
|
+
};
|
|
1564
1589
|
/** @returns {PaymentFlow} */
|
|
1565
1590
|
declare function PaymentFlow(): PaymentFlow;
|
|
1566
1591
|
type PaymentFlow = {
|
|
@@ -1586,6 +1611,7 @@ type PaymentOptionAndFlow = {
|
|
|
1586
1611
|
*/
|
|
1587
1612
|
payment_option: RootPaymentMode[];
|
|
1588
1613
|
payment_flows: PaymentFlow;
|
|
1614
|
+
payment_default_selection?: PaymentDefaultSelection;
|
|
1589
1615
|
};
|
|
1590
1616
|
/** @returns {AdvanceObject} */
|
|
1591
1617
|
declare function AdvanceObject(): AdvanceObject;
|
|
@@ -153,6 +153,14 @@ const Joi = require("joi");
|
|
|
153
153
|
* @property {string} [api_link] - Api_link
|
|
154
154
|
*/
|
|
155
155
|
|
|
156
|
+
/**
|
|
157
|
+
* @typedef PaymentDefaultSelection
|
|
158
|
+
* @property {string} [mode] - Default Selection Payment Mode
|
|
159
|
+
* @property {string} [identifier] - Identifier for Payment Mode
|
|
160
|
+
* @property {boolean} [skip] - Decide if the default payment mode will skip the
|
|
161
|
+
* payment options page altogether or just be preferred on the Frontend
|
|
162
|
+
*/
|
|
163
|
+
|
|
156
164
|
/**
|
|
157
165
|
* @typedef PaymentFlow
|
|
158
166
|
* @property {AggregatorRoute} [bqr_razorpay]
|
|
@@ -174,6 +182,7 @@ const Joi = require("joi");
|
|
|
174
182
|
* @typedef PaymentOptionAndFlow
|
|
175
183
|
* @property {RootPaymentMode[]} payment_option - Payment options
|
|
176
184
|
* @property {PaymentFlow} payment_flows
|
|
185
|
+
* @property {PaymentDefaultSelection} [payment_default_selection]
|
|
177
186
|
*/
|
|
178
187
|
|
|
179
188
|
/**
|
|
@@ -1491,6 +1500,15 @@ class PaymentPlatformModel {
|
|
|
1491
1500
|
});
|
|
1492
1501
|
}
|
|
1493
1502
|
|
|
1503
|
+
/** @returns {PaymentDefaultSelection} */
|
|
1504
|
+
static PaymentDefaultSelection() {
|
|
1505
|
+
return Joi.object({
|
|
1506
|
+
mode: Joi.string().allow("").allow(null),
|
|
1507
|
+
identifier: Joi.string().allow("").allow(null),
|
|
1508
|
+
skip: Joi.boolean().allow(null),
|
|
1509
|
+
});
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1494
1512
|
/** @returns {PaymentFlow} */
|
|
1495
1513
|
static PaymentFlow() {
|
|
1496
1514
|
return Joi.object({
|
|
@@ -1517,6 +1535,7 @@ class PaymentPlatformModel {
|
|
|
1517
1535
|
.items(PaymentPlatformModel.RootPaymentMode())
|
|
1518
1536
|
.required(),
|
|
1519
1537
|
payment_flows: PaymentPlatformModel.PaymentFlow().required(),
|
|
1538
|
+
payment_default_selection: PaymentPlatformModel.PaymentDefaultSelection(),
|
|
1520
1539
|
});
|
|
1521
1540
|
}
|
|
1522
1541
|
|
|
@@ -10,7 +10,7 @@ declare class Rewards {
|
|
|
10
10
|
* @returns {Promise<RewardsPlatformModel.Giveaway>} - Success response
|
|
11
11
|
* @name getGiveawayById
|
|
12
12
|
* @summary: Get giveaway by ID.
|
|
13
|
-
* @description: Retrieve
|
|
13
|
+
* @description: Retrieve specific giveaway details by its unique identifier. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/rewards/getGiveawayById/).
|
|
14
14
|
*/
|
|
15
15
|
getGiveawayById({ id, requestHeaders }?: RewardsPlatformApplicationValidator.GetGiveawayByIdParam, { responseHeaders }?: object): Promise<RewardsPlatformModel.Giveaway>;
|
|
16
16
|
/**
|
|
@@ -19,8 +19,8 @@ declare class Rewards {
|
|
|
19
19
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
20
20
|
* @returns {Promise<RewardsPlatformModel.Offer>} - Success response
|
|
21
21
|
* @name getOfferByName
|
|
22
|
-
* @summary:
|
|
23
|
-
* @description:
|
|
22
|
+
* @summary: Get offer by name.
|
|
23
|
+
* @description: Retrieve an offer by its name. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/rewards/getOfferByName/).
|
|
24
24
|
*/
|
|
25
25
|
getOfferByName({ name, requestHeaders }?: RewardsPlatformApplicationValidator.GetOfferByNameParam, { responseHeaders }?: object): Promise<RewardsPlatformModel.Offer>;
|
|
26
26
|
/**
|
|
@@ -31,8 +31,8 @@ declare class Rewards {
|
|
|
31
31
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
32
32
|
* @returns {Promise<RewardsPlatformModel.ConfigurationRes>} - Success response
|
|
33
33
|
* @name getRewardsConfiguration
|
|
34
|
-
* @summary: Get
|
|
35
|
-
* @description:
|
|
34
|
+
* @summary: Get rewards configuration.
|
|
35
|
+
* @description: Retrieve the configuration settings for the rewards program. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/rewards/getRewardsConfiguration/).
|
|
36
36
|
*/
|
|
37
37
|
getRewardsConfiguration({ requestHeaders }?: any, { responseHeaders }?: object): Promise<RewardsPlatformModel.ConfigurationRes>;
|
|
38
38
|
/**
|
|
@@ -41,8 +41,8 @@ declare class Rewards {
|
|
|
41
41
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
42
42
|
* @returns {Promise<RewardsPlatformModel.UserRes>} - Success response
|
|
43
43
|
* @name getUserDetails
|
|
44
|
-
* @summary: Get user
|
|
45
|
-
* @description:
|
|
44
|
+
* @summary: Get user details.
|
|
45
|
+
* @description: Retrieve comprehensive details about a user in the rewards program. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/rewards/getUserDetails/).
|
|
46
46
|
*/
|
|
47
47
|
getUserDetails({ userId, requestHeaders }?: RewardsPlatformApplicationValidator.GetUserDetailsParam, { responseHeaders }?: object): Promise<RewardsPlatformModel.UserRes>;
|
|
48
48
|
/**
|
|
@@ -53,34 +53,18 @@ declare class Rewards {
|
|
|
53
53
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
54
54
|
* @returns {Promise<RewardsPlatformModel.HistoryRes>} - Success response
|
|
55
55
|
* @name getUserPointsHistory
|
|
56
|
-
* @summary: Get
|
|
57
|
-
* @description:
|
|
56
|
+
* @summary: Get user points history.
|
|
57
|
+
* @description: Retrieve the history of points earned and redeemed by a user. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/rewards/getUserPointsHistory/).
|
|
58
58
|
*/
|
|
59
59
|
getUserPointsHistory({ userId, pageId, pageSize, requestHeaders }?: RewardsPlatformApplicationValidator.GetUserPointsHistoryParam, { responseHeaders }?: object): Promise<RewardsPlatformModel.HistoryRes>;
|
|
60
|
-
/**
|
|
61
|
-
* @param {Object} arg - Arg object.
|
|
62
|
-
* @param {string} arg.userId - User id
|
|
63
|
-
* @param {string} arg.companyId - Company id
|
|
64
|
-
* @param {string} arg.applicationId - Application id
|
|
65
|
-
* @param {number} [arg.pageSize] - The number of items to retrieve in each page.
|
|
66
|
-
* @returns {Paginator<RewardsPlatformModel.HistoryRes>}
|
|
67
|
-
* @summary: Get all transactions of reward points
|
|
68
|
-
* @description: Fetches a list of points transactions like giveaway points, signup points, referral points, order earn points, redeem points and expired points.
|
|
69
|
-
*/
|
|
70
|
-
getUserPointsHistoryPaginator({ userId, companyId, applicationId, pageSize, }?: {
|
|
71
|
-
userId: string;
|
|
72
|
-
companyId: string;
|
|
73
|
-
applicationId: string;
|
|
74
|
-
pageSize?: number;
|
|
75
|
-
}): Paginator<RewardsPlatformModel.HistoryRes>;
|
|
76
60
|
/**
|
|
77
61
|
* @param {RewardsPlatformApplicationValidator.SaveGiveAwayParam} arg - Arg object
|
|
78
62
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
79
63
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
80
64
|
* @returns {Promise<RewardsPlatformModel.Giveaway>} - Success response
|
|
81
65
|
* @name saveGiveAway
|
|
82
|
-
* @summary:
|
|
83
|
-
* @description:
|
|
66
|
+
* @summary: Save giveaway.
|
|
67
|
+
* @description: Store and manage details of a giveaway. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/rewards/saveGiveAway/).
|
|
84
68
|
*/
|
|
85
69
|
saveGiveAway({ body, requestHeaders }?: RewardsPlatformApplicationValidator.SaveGiveAwayParam, { responseHeaders }?: object): Promise<RewardsPlatformModel.Giveaway>;
|
|
86
70
|
/**
|
|
@@ -91,8 +75,8 @@ declare class Rewards {
|
|
|
91
75
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
92
76
|
* @returns {Promise<RewardsPlatformModel.SetConfigurationRes>} - Success response
|
|
93
77
|
* @name setRewardsConfiguration
|
|
94
|
-
* @summary:
|
|
95
|
-
* @description:
|
|
78
|
+
* @summary: Set rewards configuration.
|
|
79
|
+
* @description: Configure and modify the settings for the rewards program. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/rewards/setRewardsConfiguration/).
|
|
96
80
|
*/
|
|
97
81
|
setRewardsConfiguration({ body, requestHeaders }?: RewardsPlatformApplicationValidator.SetRewardsConfigurationParam, { responseHeaders }?: object): Promise<RewardsPlatformModel.SetConfigurationRes>;
|
|
98
82
|
/**
|
|
@@ -101,8 +85,8 @@ declare class Rewards {
|
|
|
101
85
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
102
86
|
* @returns {Promise<RewardsPlatformModel.GiveawayResponse>} - Success response
|
|
103
87
|
* @name showGiveaways
|
|
104
|
-
* @summary:
|
|
105
|
-
* @description:
|
|
88
|
+
* @summary: Display giveaways.
|
|
89
|
+
* @description: Retrieve and display available giveaways. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/rewards/showGiveaways/).
|
|
106
90
|
*/
|
|
107
91
|
showGiveaways({ pageId, pageSize, requestHeaders }?: RewardsPlatformApplicationValidator.ShowGiveawaysParam, { responseHeaders }?: object): Promise<RewardsPlatformModel.GiveawayResponse>;
|
|
108
92
|
/**
|
|
@@ -111,8 +95,8 @@ declare class Rewards {
|
|
|
111
95
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
112
96
|
* @returns {Promise<RewardsPlatformModel.Offer[]>} - Success response
|
|
113
97
|
* @name showOffers
|
|
114
|
-
* @summary:
|
|
115
|
-
* @description:
|
|
98
|
+
* @summary: Show offers.
|
|
99
|
+
* @description: Display available offers for users. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/rewards/showOffers/).
|
|
116
100
|
*/
|
|
117
101
|
showOffers({ requestHeaders }?: any, { responseHeaders }?: object): Promise<RewardsPlatformModel.Offer[]>;
|
|
118
102
|
/**
|
|
@@ -121,8 +105,8 @@ declare class Rewards {
|
|
|
121
105
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
122
106
|
* @returns {Promise<RewardsPlatformModel.Giveaway>} - Success response
|
|
123
107
|
* @name updateGiveAway
|
|
124
|
-
* @summary:
|
|
125
|
-
* @description:
|
|
108
|
+
* @summary: Update giveaway.
|
|
109
|
+
* @description: Modify and update information about a giveaway. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/rewards/updateGiveAway/).
|
|
126
110
|
*/
|
|
127
111
|
updateGiveAway({ id, body, requestHeaders }?: RewardsPlatformApplicationValidator.UpdateGiveAwayParam, { responseHeaders }?: object): Promise<RewardsPlatformModel.Giveaway>;
|
|
128
112
|
/**
|
|
@@ -133,8 +117,8 @@ declare class Rewards {
|
|
|
133
117
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
134
118
|
* @returns {Promise<RewardsPlatformModel.Offer>} - Success response
|
|
135
119
|
* @name updateOfferByName
|
|
136
|
-
* @summary: Update offer by name
|
|
137
|
-
* @description:
|
|
120
|
+
* @summary: Update offer by name.
|
|
121
|
+
* @description: Modify and manage an offer using its name. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/rewards/updateOfferByName/).
|
|
138
122
|
*/
|
|
139
123
|
updateOfferByName({ name, body, requestHeaders }?: RewardsPlatformApplicationValidator.UpdateOfferByNameParam, { responseHeaders }?: object): Promise<RewardsPlatformModel.Offer>;
|
|
140
124
|
/**
|
|
@@ -143,11 +127,10 @@ declare class Rewards {
|
|
|
143
127
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
144
128
|
* @returns {Promise<RewardsPlatformModel.AppUser>} - Success response
|
|
145
129
|
* @name updateUserStatus
|
|
146
|
-
* @summary: Update user status
|
|
147
|
-
* @description:
|
|
130
|
+
* @summary: Update user status.
|
|
131
|
+
* @description: Change and update the status of a user in the rewards system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/rewards/updateUserStatus/).
|
|
148
132
|
*/
|
|
149
133
|
updateUserStatus({ userId, body, requestHeaders }?: RewardsPlatformApplicationValidator.UpdateUserStatusParam, { responseHeaders }?: object): Promise<RewardsPlatformModel.AppUser>;
|
|
150
134
|
}
|
|
151
135
|
import RewardsPlatformApplicationValidator = require("./RewardsPlatformApplicationValidator");
|
|
152
136
|
import RewardsPlatformModel = require("./RewardsPlatformModel");
|
|
153
|
-
import Paginator = require("../../common/Paginator");
|
|
@@ -22,7 +22,7 @@ class Rewards {
|
|
|
22
22
|
* @returns {Promise<RewardsPlatformModel.Giveaway>} - Success response
|
|
23
23
|
* @name getGiveawayById
|
|
24
24
|
* @summary: Get giveaway by ID.
|
|
25
|
-
* @description: Retrieve
|
|
25
|
+
* @description: Retrieve specific giveaway details by its unique identifier. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/rewards/getGiveawayById/).
|
|
26
26
|
*/
|
|
27
27
|
async getGiveawayById(
|
|
28
28
|
{ id, requestHeaders } = { requestHeaders: {} },
|
|
@@ -100,8 +100,8 @@ class Rewards {
|
|
|
100
100
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
101
101
|
* @returns {Promise<RewardsPlatformModel.Offer>} - Success response
|
|
102
102
|
* @name getOfferByName
|
|
103
|
-
* @summary:
|
|
104
|
-
* @description:
|
|
103
|
+
* @summary: Get offer by name.
|
|
104
|
+
* @description: Retrieve an offer by its name. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/rewards/getOfferByName/).
|
|
105
105
|
*/
|
|
106
106
|
async getOfferByName(
|
|
107
107
|
{ name, requestHeaders } = { requestHeaders: {} },
|
|
@@ -177,8 +177,8 @@ class Rewards {
|
|
|
177
177
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
178
178
|
* @returns {Promise<RewardsPlatformModel.ConfigurationRes>} - Success response
|
|
179
179
|
* @name getRewardsConfiguration
|
|
180
|
-
* @summary: Get
|
|
181
|
-
* @description:
|
|
180
|
+
* @summary: Get rewards configuration.
|
|
181
|
+
* @description: Retrieve the configuration settings for the rewards program. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/rewards/getRewardsConfiguration/).
|
|
182
182
|
*/
|
|
183
183
|
async getRewardsConfiguration(
|
|
184
184
|
{ requestHeaders } = { requestHeaders: {} },
|
|
@@ -252,8 +252,8 @@ class Rewards {
|
|
|
252
252
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
253
253
|
* @returns {Promise<RewardsPlatformModel.UserRes>} - Success response
|
|
254
254
|
* @name getUserDetails
|
|
255
|
-
* @summary: Get user
|
|
256
|
-
* @description:
|
|
255
|
+
* @summary: Get user details.
|
|
256
|
+
* @description: Retrieve comprehensive details about a user in the rewards program. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/rewards/getUserDetails/).
|
|
257
257
|
*/
|
|
258
258
|
async getUserDetails(
|
|
259
259
|
{ userId, requestHeaders } = { requestHeaders: {} },
|
|
@@ -329,8 +329,8 @@ class Rewards {
|
|
|
329
329
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
330
330
|
* @returns {Promise<RewardsPlatformModel.HistoryRes>} - Success response
|
|
331
331
|
* @name getUserPointsHistory
|
|
332
|
-
* @summary: Get
|
|
333
|
-
* @description:
|
|
332
|
+
* @summary: Get user points history.
|
|
333
|
+
* @description: Retrieve the history of points earned and redeemed by a user. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/rewards/getUserPointsHistory/).
|
|
334
334
|
*/
|
|
335
335
|
async getUserPointsHistory(
|
|
336
336
|
{ userId, pageId, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
@@ -410,52 +410,14 @@ class Rewards {
|
|
|
410
410
|
return response;
|
|
411
411
|
}
|
|
412
412
|
|
|
413
|
-
/**
|
|
414
|
-
* @param {Object} arg - Arg object.
|
|
415
|
-
* @param {string} arg.userId - User id
|
|
416
|
-
* @param {string} arg.companyId - Company id
|
|
417
|
-
* @param {string} arg.applicationId - Application id
|
|
418
|
-
* @param {number} [arg.pageSize] - The number of items to retrieve in each page.
|
|
419
|
-
* @returns {Paginator<RewardsPlatformModel.HistoryRes>}
|
|
420
|
-
* @summary: Get all transactions of reward points
|
|
421
|
-
* @description: Fetches a list of points transactions like giveaway points, signup points, referral points, order earn points, redeem points and expired points.
|
|
422
|
-
*/
|
|
423
|
-
getUserPointsHistoryPaginator({
|
|
424
|
-
userId,
|
|
425
|
-
companyId,
|
|
426
|
-
applicationId,
|
|
427
|
-
pageSize,
|
|
428
|
-
} = {}) {
|
|
429
|
-
const paginator = new Paginator();
|
|
430
|
-
const callback = async () => {
|
|
431
|
-
const pageId = paginator.nextId;
|
|
432
|
-
const pageNo = paginator.pageNo;
|
|
433
|
-
const pageType = "cursor";
|
|
434
|
-
const data = await this.getUserPointsHistory({
|
|
435
|
-
userId: userId,
|
|
436
|
-
companyId: companyId,
|
|
437
|
-
applicationId: applicationId,
|
|
438
|
-
pageId: pageId,
|
|
439
|
-
pageSize: pageSize,
|
|
440
|
-
});
|
|
441
|
-
paginator.setPaginator({
|
|
442
|
-
hasNext: data.page.has_next ? true : false,
|
|
443
|
-
nextId: data.page.next_id,
|
|
444
|
-
});
|
|
445
|
-
return data;
|
|
446
|
-
};
|
|
447
|
-
paginator.setCallback(callback.bind(this));
|
|
448
|
-
return paginator;
|
|
449
|
-
}
|
|
450
|
-
|
|
451
413
|
/**
|
|
452
414
|
* @param {RewardsPlatformApplicationValidator.SaveGiveAwayParam} arg - Arg object
|
|
453
415
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
454
416
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
455
417
|
* @returns {Promise<RewardsPlatformModel.Giveaway>} - Success response
|
|
456
418
|
* @name saveGiveAway
|
|
457
|
-
* @summary:
|
|
458
|
-
* @description:
|
|
419
|
+
* @summary: Save giveaway.
|
|
420
|
+
* @description: Store and manage details of a giveaway. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/rewards/saveGiveAway/).
|
|
459
421
|
*/
|
|
460
422
|
async saveGiveAway(
|
|
461
423
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -535,8 +497,8 @@ class Rewards {
|
|
|
535
497
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
536
498
|
* @returns {Promise<RewardsPlatformModel.SetConfigurationRes>} - Success response
|
|
537
499
|
* @name setRewardsConfiguration
|
|
538
|
-
* @summary:
|
|
539
|
-
* @description:
|
|
500
|
+
* @summary: Set rewards configuration.
|
|
501
|
+
* @description: Configure and modify the settings for the rewards program. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/rewards/setRewardsConfiguration/).
|
|
540
502
|
*/
|
|
541
503
|
async setRewardsConfiguration(
|
|
542
504
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -614,8 +576,8 @@ class Rewards {
|
|
|
614
576
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
615
577
|
* @returns {Promise<RewardsPlatformModel.GiveawayResponse>} - Success response
|
|
616
578
|
* @name showGiveaways
|
|
617
|
-
* @summary:
|
|
618
|
-
* @description:
|
|
579
|
+
* @summary: Display giveaways.
|
|
580
|
+
* @description: Retrieve and display available giveaways. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/rewards/showGiveaways/).
|
|
619
581
|
*/
|
|
620
582
|
async showGiveaways(
|
|
621
583
|
{ pageId, pageSize, requestHeaders } = { requestHeaders: {} },
|
|
@@ -697,8 +659,8 @@ class Rewards {
|
|
|
697
659
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
698
660
|
* @returns {Promise<RewardsPlatformModel.Offer[]>} - Success response
|
|
699
661
|
* @name showOffers
|
|
700
|
-
* @summary:
|
|
701
|
-
* @description:
|
|
662
|
+
* @summary: Show offers.
|
|
663
|
+
* @description: Display available offers for users. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/rewards/showOffers/).
|
|
702
664
|
*/
|
|
703
665
|
async showOffers(
|
|
704
666
|
{ requestHeaders } = { requestHeaders: {} },
|
|
@@ -767,8 +729,8 @@ class Rewards {
|
|
|
767
729
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
768
730
|
* @returns {Promise<RewardsPlatformModel.Giveaway>} - Success response
|
|
769
731
|
* @name updateGiveAway
|
|
770
|
-
* @summary:
|
|
771
|
-
* @description:
|
|
732
|
+
* @summary: Update giveaway.
|
|
733
|
+
* @description: Modify and update information about a giveaway. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/rewards/updateGiveAway/).
|
|
772
734
|
*/
|
|
773
735
|
async updateGiveAway(
|
|
774
736
|
{ id, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -850,8 +812,8 @@ class Rewards {
|
|
|
850
812
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
851
813
|
* @returns {Promise<RewardsPlatformModel.Offer>} - Success response
|
|
852
814
|
* @name updateOfferByName
|
|
853
|
-
* @summary: Update offer by name
|
|
854
|
-
* @description:
|
|
815
|
+
* @summary: Update offer by name.
|
|
816
|
+
* @description: Modify and manage an offer using its name. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/rewards/updateOfferByName/).
|
|
855
817
|
*/
|
|
856
818
|
async updateOfferByName(
|
|
857
819
|
{ name, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -933,8 +895,8 @@ class Rewards {
|
|
|
933
895
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
934
896
|
* @returns {Promise<RewardsPlatformModel.AppUser>} - Success response
|
|
935
897
|
* @name updateUserStatus
|
|
936
|
-
* @summary: Update user status
|
|
937
|
-
* @description:
|
|
898
|
+
* @summary: Update user status.
|
|
899
|
+
* @description: Change and update the status of a user in the rewards system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/rewards/updateUserStatus/).
|
|
938
900
|
*/
|
|
939
901
|
async updateUserStatus(
|
|
940
902
|
{ userId, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -200,8 +200,8 @@ declare class Serviceability {
|
|
|
200
200
|
* - Success response
|
|
201
201
|
*
|
|
202
202
|
* @name updatePincodeAuditHistory
|
|
203
|
-
* @summary:
|
|
204
|
-
* @description:
|
|
203
|
+
* @summary: Update pincode audit history.
|
|
204
|
+
* @description: Modify and update audit history records for pincode-related activities. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updatePincodeAuditHistory/).
|
|
205
205
|
*/
|
|
206
206
|
updatePincodeAuditHistory({ body, requestHeaders }?: ServiceabilityPlatformApplicationValidator.UpdatePincodeAuditHistoryParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.PincodeMopUpdateAuditHistoryResponseData>;
|
|
207
207
|
/**
|
|
@@ -214,8 +214,8 @@ declare class Serviceability {
|
|
|
214
214
|
* - Success response
|
|
215
215
|
*
|
|
216
216
|
* @name updatePincodeBulkView
|
|
217
|
-
* @summary:
|
|
218
|
-
* @description:
|
|
217
|
+
* @summary: Update pincode bulk view.
|
|
218
|
+
* @description: Modify and update views related to bulk operations on pincode. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updatePincodeBulkView/).
|
|
219
219
|
*/
|
|
220
220
|
updatePincodeBulkView({ body, requestHeaders }?: ServiceabilityPlatformApplicationValidator.UpdatePincodeBulkViewParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.PincodeBulkViewResponse>;
|
|
221
221
|
/**
|
|
@@ -228,8 +228,8 @@ declare class Serviceability {
|
|
|
228
228
|
* - Success response
|
|
229
229
|
*
|
|
230
230
|
* @name updatePincodeCoDListing
|
|
231
|
-
* @summary:
|
|
232
|
-
* @description:
|
|
231
|
+
* @summary: Update pincode CoD (Cash on Delivery) listing.
|
|
232
|
+
* @description: Modify and update listings for CoD based on pincode. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updatePincodeCoDListing/).
|
|
233
233
|
*/
|
|
234
234
|
updatePincodeCoDListing({ body, requestHeaders }?: ServiceabilityPlatformApplicationValidator.UpdatePincodeCoDListingParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.PincodeCodStatusListingResponse>;
|
|
235
235
|
/**
|
|
@@ -241,8 +241,8 @@ declare class Serviceability {
|
|
|
241
241
|
* @returns {Promise<ServiceabilityPlatformModel.PincodeMOPresponse>} -
|
|
242
242
|
* Success response
|
|
243
243
|
* @name updatePincodeMopView
|
|
244
|
-
* @summary:
|
|
245
|
-
* @description:
|
|
244
|
+
* @summary: Update pincode MOP (Mode of Payment) view.
|
|
245
|
+
* @description: Modify and update views related to pincode MOP. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/serviceability/updatePincodeMopView/).
|
|
246
246
|
*/
|
|
247
247
|
updatePincodeMopView({ body, requestHeaders }?: ServiceabilityPlatformApplicationValidator.UpdatePincodeMopViewParam, { responseHeaders }?: object): Promise<ServiceabilityPlatformModel.PincodeMOPresponse>;
|
|
248
248
|
/**
|