@gofynd/fdk-client-javascript 3.16.3 → 3.17.1
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/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/Cart/CartApplicationClient.d.ts +40 -0
- package/sdk/application/Cart/CartApplicationClient.js +176 -0
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +18 -4
- package/sdk/application/Catalog/CatalogApplicationClient.js +47 -4
- package/sdk/application/Content/ContentApplicationClient.d.ts +21 -1
- package/sdk/application/Content/ContentApplicationClient.js +93 -2
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +11 -21
- package/sdk/application/Logistic/LogisticApplicationClient.js +34 -83
- package/sdk/application/Order/OrderApplicationClient.d.ts +11 -0
- package/sdk/application/Order/OrderApplicationClient.js +50 -0
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +5 -5
- package/sdk/application/Payment/PaymentApplicationClient.js +5 -4
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +84 -0
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +712 -0
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +237 -1
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +157 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +8 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +70 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +74 -12
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +637 -36
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +225 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +147 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +952 -5
- package/sdk/platform/Cart/CartPlatformModel.js +598 -2
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +125 -5
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +831 -41
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +205 -7
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +154 -3
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +5 -16
- package/sdk/platform/Catalog/CatalogPlatformClient.js +8 -85
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1025 -159
- package/sdk/platform/Catalog/CatalogPlatformModel.js +840 -165
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +8 -10
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +3 -12
- package/sdk/platform/Common/CommonPlatformModel.d.ts +18 -1
- package/sdk/platform/Common/CommonPlatformModel.js +14 -0
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +1 -73
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +4 -462
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +7 -45
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +4 -55
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +10 -2
- package/sdk/platform/Communication/CommunicationPlatformModel.js +3 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +14 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +6 -0
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +92 -1
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +54 -0
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +21 -0
- package/sdk/platform/Discount/DiscountPlatformModel.js +9 -0
- package/sdk/platform/Order/OrderPlatformClient.d.ts +27 -19
- package/sdk/platform/Order/OrderPlatformClient.js +176 -108
- package/sdk/platform/Order/OrderPlatformModel.d.ts +359 -45
- package/sdk/platform/Order/OrderPlatformModel.js +218 -44
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +40 -43
- package/sdk/platform/Order/OrderPlatformValidator.js +35 -30
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +14 -3
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +88 -6
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +28 -3
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +22 -2
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +376 -11
- package/sdk/platform/Payment/PaymentPlatformModel.js +243 -10
- package/sdk/platform/PlatformApplicationClient.d.ts +0 -2
- package/sdk/platform/PlatformApplicationClient.js +0 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +0 -13
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +0 -82
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +1 -10
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +0 -12
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +212 -28
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +133 -13
- package/sdk/platform/User/UserPlatformModel.d.ts +2 -2
- package/sdk/platform/User/UserPlatformModel.js +4 -4
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +29 -0
- package/sdk/platform/Webhook/WebhookPlatformModel.js +13 -0
- package/sdk/platform/index.d.ts +0 -1
- package/sdk/platform/index.js +0 -2
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +27 -1
- package/sdk/public/Configuration/ConfigurationPublicModel.js +19 -0
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +29 -0
- package/sdk/public/Webhook/WebhookPublicModel.js +13 -0
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +0 -79
- package/sdk/application/Rewards/RewardsApplicationClient.js +0 -315
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +0 -136
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +0 -976
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +0 -152
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +0 -157
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +0 -387
- package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -410
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
export = PaymentPlatformModel;
|
|
2
|
+
/**
|
|
3
|
+
* @typedef AggregatorToken
|
|
4
|
+
* @property {number} payment_mode_id - Payment mode identifier Supported values are:
|
|
5
|
+
*
|
|
6
|
+
* - **4**: Wallet
|
|
7
|
+
* - **3**: Net Banking
|
|
8
|
+
* - **2**: Card
|
|
9
|
+
* - **1**: Pay Later
|
|
10
|
+
*
|
|
11
|
+
* @property {string} sub_payment_mode_code - Sub-payment method code
|
|
12
|
+
* @property {string} token - Token value to be saved for the aggregator
|
|
13
|
+
* @property {string} status - Status of the token verification
|
|
14
|
+
* @property {boolean} is_active - Enable or Disable Flag
|
|
15
|
+
* @property {string} domain - Name of domain
|
|
16
|
+
*/
|
|
2
17
|
/**
|
|
3
18
|
* @typedef PaymentGatewayConfigDetails
|
|
4
19
|
* @property {Object[]} [aggregators] - List of all config specific to the
|
|
@@ -344,15 +359,17 @@ export = PaymentPlatformModel;
|
|
|
344
359
|
*/
|
|
345
360
|
/**
|
|
346
361
|
* @typedef BankDetailsForOTP
|
|
347
|
-
* @property {string} ifsc_code - IFSC code of account
|
|
348
|
-
* @property {string} account_no - Account number
|
|
349
|
-
* @property {string} branch_name - Branch name of account
|
|
350
|
-
* @property {string} bank_name - Bank name of account
|
|
351
|
-
* @property {string} account_holder - Accountg holder name of account
|
|
362
|
+
* @property {string} [ifsc_code] - IFSC code of account
|
|
363
|
+
* @property {string} [account_no] - Account number
|
|
364
|
+
* @property {string} [branch_name] - Branch name of account
|
|
365
|
+
* @property {string} [bank_name] - Bank name of account
|
|
366
|
+
* @property {string} [account_holder] - Accountg holder name of account
|
|
367
|
+
* @property {string} [upi] - UPI ID of account holder
|
|
352
368
|
*/
|
|
353
369
|
/**
|
|
354
370
|
* @typedef AddBeneficiaryDetailsOTPCreation
|
|
355
371
|
* @property {string} order_id - Order_id for which account will be added
|
|
372
|
+
* @property {string} [shipment_id] - Shipment_id for which account will be added
|
|
356
373
|
* @property {BankDetailsForOTP} details
|
|
357
374
|
*/
|
|
358
375
|
/**
|
|
@@ -732,6 +749,92 @@ export = PaymentPlatformModel;
|
|
|
732
749
|
* @property {Object[]} [items] - List of all aggregator and payment mode details.
|
|
733
750
|
* @property {boolean} success - Response is successful or not.
|
|
734
751
|
*/
|
|
752
|
+
/**
|
|
753
|
+
* @typedef PaymentModeConfig
|
|
754
|
+
* @property {string} [business_unit] - Business unit for which the configuration applies.
|
|
755
|
+
* @property {string} [device] - Device type for which the configuration applies.
|
|
756
|
+
* @property {boolean} [is_active] - Indicates if the payment configuration is
|
|
757
|
+
* currently active.
|
|
758
|
+
* @property {PaymentModeItems[]} [items] - List of payment modes available for
|
|
759
|
+
* the given business unit and device. This list is dynamic and can contain
|
|
760
|
+
* one or more payment modes.
|
|
761
|
+
*/
|
|
762
|
+
/**
|
|
763
|
+
* @typedef PaymentModeItems
|
|
764
|
+
* @property {number} [id] - Unique identifier for the payment mode.
|
|
765
|
+
* @property {string} [name] - Display name of the payment mode.
|
|
766
|
+
* @property {string} [short_code] - Short code for the payment mode.
|
|
767
|
+
* @property {LogoSet} [logos]
|
|
768
|
+
* @property {boolean} [is_active] - Indicates if this payment mode is active in
|
|
769
|
+
* the system.
|
|
770
|
+
* @property {SubPaymentMode[]} [sub_payment_mode] - Dynamic list of sub-payment
|
|
771
|
+
* modes under this payment mode.
|
|
772
|
+
* @property {boolean} [is_active_at_pg] - Indicates if this payment mode is
|
|
773
|
+
* active at the payment gateway (PG) side.
|
|
774
|
+
* @property {Object} [fulfillment_options] - Fulfillment options applicable for
|
|
775
|
+
* these payment modes. Keys are option slugs and values indicate whether the
|
|
776
|
+
* option is enabled.
|
|
777
|
+
*/
|
|
778
|
+
/**
|
|
779
|
+
* @typedef SubPaymentMode
|
|
780
|
+
* @property {string} [code] - Unique code of the sub-payment mode.
|
|
781
|
+
* @property {boolean} [is_active] - Indicates if this sub-payment mode is
|
|
782
|
+
* active in the system.
|
|
783
|
+
* @property {number} [priority] - Priority used for ordering in UI. Lower
|
|
784
|
+
* numbers can represent higher priority, depending on implementation.
|
|
785
|
+
* @property {LogoSet} [logos]
|
|
786
|
+
* @property {string} [name] - Human-readable name of the sub-payment mode.
|
|
787
|
+
* @property {boolean} [is_active_at_pg] - Indicates if this sub-payment mode is
|
|
788
|
+
* active at the payment gateway (PG) side.
|
|
789
|
+
*/
|
|
790
|
+
/**
|
|
791
|
+
* @typedef LogoSet
|
|
792
|
+
* @property {string} [large] - URL of the large-sized logo.
|
|
793
|
+
* @property {string} [small] - URL of the small-sized logo.
|
|
794
|
+
*/
|
|
795
|
+
/**
|
|
796
|
+
* @typedef PlatformLogoSet
|
|
797
|
+
* @property {string} [large] - URL of the large-sized logo.
|
|
798
|
+
* @property {string} [small] - URL of the small-sized logo.
|
|
799
|
+
*/
|
|
800
|
+
/**
|
|
801
|
+
* @typedef PlatformConfigPaymentModeDetails
|
|
802
|
+
* @property {string} [business_unit] - Business unit for which the
|
|
803
|
+
* configuration applies (e.g. "storefront", "pos").
|
|
804
|
+
* @property {string} [device] - Device or channel for which the configuration
|
|
805
|
+
* applies (e.g. "desktop", "android", "ios").
|
|
806
|
+
* @property {Object} [fulfillment_options] - Fulfillment options applicable for
|
|
807
|
+
* these payment modes. Keys are option slugs (e.g. "self-pickup", "delivery")
|
|
808
|
+
* and values indicate whether the option is enabled.
|
|
809
|
+
* @property {boolean} [is_active] - Overall active status for this aggregator
|
|
810
|
+
* payment configuration for the given application and device.
|
|
811
|
+
* @property {PlatformPaymentModeItem[]} [items] - List of payment modes and
|
|
812
|
+
* their configuration.
|
|
813
|
+
*/
|
|
814
|
+
/**
|
|
815
|
+
* @typedef PlatformPaymentModeItem
|
|
816
|
+
* @property {number} [id] - Unique identifier of the payment mode.
|
|
817
|
+
* @property {string} [name] - Human readable name of the payment mode.
|
|
818
|
+
* @property {string} [short_code] - Short code representing the payment mode.
|
|
819
|
+
* @property {PlatformLogoSet} [logos]
|
|
820
|
+
* @property {boolean} [is_active] - Indicates if the payment mode is enabled on
|
|
821
|
+
* the platform.
|
|
822
|
+
* @property {boolean} [is_active_at_pg] - Indicates if the payment mode is
|
|
823
|
+
* active at the payment gateway.
|
|
824
|
+
* @property {PlatformSubPaymentMode[]} [sub_payment_mode] - List of sub payment
|
|
825
|
+
* modes (e.g. card networks like VISA, MASTERCARD).
|
|
826
|
+
*/
|
|
827
|
+
/**
|
|
828
|
+
* @typedef PlatformSubPaymentMode
|
|
829
|
+
* @property {string} [code] - Code of the sub payment mode (e.g. "VISA", "AMEX").
|
|
830
|
+
* @property {string} [name] - Human readable name of the sub payment mode.
|
|
831
|
+
* @property {boolean} [is_active] - Indicates if the sub payment mode is enabled.
|
|
832
|
+
* @property {boolean} [is_active_at_pg] - Indicates if the sub payment mode is
|
|
833
|
+
* active at payment gateway.
|
|
834
|
+
* @property {number} [priority] - Display priority for the sub payment mode.
|
|
835
|
+
* Lower numbers indicate higher priority.
|
|
836
|
+
* @property {PlatformLogoSet} [logos]
|
|
837
|
+
*/
|
|
735
838
|
/**
|
|
736
839
|
* @typedef MerchnatPaymentModeCreation
|
|
737
840
|
* @property {Object} [offline] - Details to be updated for online payment configuration.
|
|
@@ -1157,11 +1260,50 @@ export = PaymentPlatformModel;
|
|
|
1157
1260
|
* @property {string} [cart_id] - Unique identifier for the shopping cart.
|
|
1158
1261
|
* @property {CreditAccountSummary} [account]
|
|
1159
1262
|
*/
|
|
1263
|
+
/**
|
|
1264
|
+
* @typedef OperationResponseSchema
|
|
1265
|
+
* @property {boolean} success - Indicates if the operation was successful
|
|
1266
|
+
* @property {string} [message] - Optional message providing additional
|
|
1267
|
+
* information about the operation
|
|
1268
|
+
*/
|
|
1160
1269
|
declare class PaymentPlatformModel {
|
|
1161
1270
|
}
|
|
1162
1271
|
declare namespace PaymentPlatformModel {
|
|
1163
|
-
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, PaymentInitializationCreation, PaymentInitializationDetails, PaymentStatusUpdateCreation, PaymentStatusUpdateDetails, ResendOrCancelPaymentCreation, LinkStatus, ResendOrCancelPaymentDetails, PaymentStatusBulkHandlerCreation, PaymentObjectList, PaymentStatusObject, PaymentStatusBulkHandlerDetails, GetOauthUrlDetails, RevokeOAuthToken, 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 };
|
|
1272
|
+
export { AggregatorToken, 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, PaymentInitializationCreation, PaymentInitializationDetails, PaymentStatusUpdateCreation, PaymentStatusUpdateDetails, ResendOrCancelPaymentCreation, LinkStatus, ResendOrCancelPaymentDetails, PaymentStatusBulkHandlerCreation, PaymentObjectList, PaymentStatusObject, PaymentStatusBulkHandlerDetails, GetOauthUrlDetails, RevokeOAuthToken, ValidateCustomerCreation, ValidateCustomerDetails, GetPaymentLinkDetails, ErrorDescription, ErrorDetails, CreatePaymentLinkMeta, CreatePaymentLinkCreation, CreatePaymentLinkDetails, PollingPaymentLinkDetails, CancelOrResendPaymentLinkCreation, ResendPaymentLinkDetails, CancelPaymentLinkDetails, Code, PaymentCode, GetPaymentCode, GetPaymentCodeDetails, PlatformPaymentModeDetails, PaymentModeConfig, PaymentModeItems, SubPaymentMode, LogoSet, PlatformLogoSet, PlatformConfigPaymentModeDetails, PlatformPaymentModeItem, PlatformSubPaymentMode, 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, OperationResponseSchema };
|
|
1164
1273
|
}
|
|
1274
|
+
/** @returns {AggregatorToken} */
|
|
1275
|
+
declare function AggregatorToken(): AggregatorToken;
|
|
1276
|
+
type AggregatorToken = {
|
|
1277
|
+
/**
|
|
1278
|
+
* - Payment mode identifier Supported values are:
|
|
1279
|
+
*
|
|
1280
|
+
* - **4**: Wallet
|
|
1281
|
+
* - **3**: Net Banking
|
|
1282
|
+
* - **2**: Card
|
|
1283
|
+
* - **1**: Pay Later
|
|
1284
|
+
*/
|
|
1285
|
+
payment_mode_id: number;
|
|
1286
|
+
/**
|
|
1287
|
+
* - Sub-payment method code
|
|
1288
|
+
*/
|
|
1289
|
+
sub_payment_mode_code: string;
|
|
1290
|
+
/**
|
|
1291
|
+
* - Token value to be saved for the aggregator
|
|
1292
|
+
*/
|
|
1293
|
+
token: string;
|
|
1294
|
+
/**
|
|
1295
|
+
* - Status of the token verification
|
|
1296
|
+
*/
|
|
1297
|
+
status: string;
|
|
1298
|
+
/**
|
|
1299
|
+
* - Enable or Disable Flag
|
|
1300
|
+
*/
|
|
1301
|
+
is_active: boolean;
|
|
1302
|
+
/**
|
|
1303
|
+
* - Name of domain
|
|
1304
|
+
*/
|
|
1305
|
+
domain: string;
|
|
1306
|
+
};
|
|
1165
1307
|
/** @returns {PaymentGatewayConfigDetails} */
|
|
1166
1308
|
declare function PaymentGatewayConfigDetails(): PaymentGatewayConfigDetails;
|
|
1167
1309
|
type PaymentGatewayConfigDetails = {
|
|
@@ -2061,23 +2203,27 @@ type BankDetailsForOTP = {
|
|
|
2061
2203
|
/**
|
|
2062
2204
|
* - IFSC code of account
|
|
2063
2205
|
*/
|
|
2064
|
-
ifsc_code
|
|
2206
|
+
ifsc_code?: string;
|
|
2065
2207
|
/**
|
|
2066
2208
|
* - Account number
|
|
2067
2209
|
*/
|
|
2068
|
-
account_no
|
|
2210
|
+
account_no?: string;
|
|
2069
2211
|
/**
|
|
2070
2212
|
* - Branch name of account
|
|
2071
2213
|
*/
|
|
2072
|
-
branch_name
|
|
2214
|
+
branch_name?: string;
|
|
2073
2215
|
/**
|
|
2074
2216
|
* - Bank name of account
|
|
2075
2217
|
*/
|
|
2076
|
-
bank_name
|
|
2218
|
+
bank_name?: string;
|
|
2077
2219
|
/**
|
|
2078
2220
|
* - Accountg holder name of account
|
|
2079
2221
|
*/
|
|
2080
|
-
account_holder
|
|
2222
|
+
account_holder?: string;
|
|
2223
|
+
/**
|
|
2224
|
+
* - UPI ID of account holder
|
|
2225
|
+
*/
|
|
2226
|
+
upi?: string;
|
|
2081
2227
|
};
|
|
2082
2228
|
/** @returns {AddBeneficiaryDetailsOTPCreation} */
|
|
2083
2229
|
declare function AddBeneficiaryDetailsOTPCreation(): AddBeneficiaryDetailsOTPCreation;
|
|
@@ -2086,6 +2232,10 @@ type AddBeneficiaryDetailsOTPCreation = {
|
|
|
2086
2232
|
* - Order_id for which account will be added
|
|
2087
2233
|
*/
|
|
2088
2234
|
order_id: string;
|
|
2235
|
+
/**
|
|
2236
|
+
* - Shipment_id for which account will be added
|
|
2237
|
+
*/
|
|
2238
|
+
shipment_id?: string;
|
|
2089
2239
|
details: BankDetailsForOTP;
|
|
2090
2240
|
};
|
|
2091
2241
|
/** @returns {IfscCodeDetails} */
|
|
@@ -3100,6 +3250,208 @@ type PlatformPaymentModeDetails = {
|
|
|
3100
3250
|
*/
|
|
3101
3251
|
success: boolean;
|
|
3102
3252
|
};
|
|
3253
|
+
/** @returns {PaymentModeConfig} */
|
|
3254
|
+
declare function PaymentModeConfig(): PaymentModeConfig;
|
|
3255
|
+
type PaymentModeConfig = {
|
|
3256
|
+
/**
|
|
3257
|
+
* - Business unit for which the configuration applies.
|
|
3258
|
+
*/
|
|
3259
|
+
business_unit?: string;
|
|
3260
|
+
/**
|
|
3261
|
+
* - Device type for which the configuration applies.
|
|
3262
|
+
*/
|
|
3263
|
+
device?: string;
|
|
3264
|
+
/**
|
|
3265
|
+
* - Indicates if the payment configuration is
|
|
3266
|
+
* currently active.
|
|
3267
|
+
*/
|
|
3268
|
+
is_active?: boolean;
|
|
3269
|
+
/**
|
|
3270
|
+
* - List of payment modes available for
|
|
3271
|
+
* the given business unit and device. This list is dynamic and can contain
|
|
3272
|
+
* one or more payment modes.
|
|
3273
|
+
*/
|
|
3274
|
+
items?: PaymentModeItems[];
|
|
3275
|
+
};
|
|
3276
|
+
/** @returns {PaymentModeItems} */
|
|
3277
|
+
declare function PaymentModeItems(): PaymentModeItems;
|
|
3278
|
+
type PaymentModeItems = {
|
|
3279
|
+
/**
|
|
3280
|
+
* - Unique identifier for the payment mode.
|
|
3281
|
+
*/
|
|
3282
|
+
id?: number;
|
|
3283
|
+
/**
|
|
3284
|
+
* - Display name of the payment mode.
|
|
3285
|
+
*/
|
|
3286
|
+
name?: string;
|
|
3287
|
+
/**
|
|
3288
|
+
* - Short code for the payment mode.
|
|
3289
|
+
*/
|
|
3290
|
+
short_code?: string;
|
|
3291
|
+
logos?: LogoSet;
|
|
3292
|
+
/**
|
|
3293
|
+
* - Indicates if this payment mode is active in
|
|
3294
|
+
* the system.
|
|
3295
|
+
*/
|
|
3296
|
+
is_active?: boolean;
|
|
3297
|
+
/**
|
|
3298
|
+
* - Dynamic list of sub-payment
|
|
3299
|
+
* modes under this payment mode.
|
|
3300
|
+
*/
|
|
3301
|
+
sub_payment_mode?: SubPaymentMode[];
|
|
3302
|
+
/**
|
|
3303
|
+
* - Indicates if this payment mode is
|
|
3304
|
+
* active at the payment gateway (PG) side.
|
|
3305
|
+
*/
|
|
3306
|
+
is_active_at_pg?: boolean;
|
|
3307
|
+
/**
|
|
3308
|
+
* - Fulfillment options applicable for
|
|
3309
|
+
* these payment modes. Keys are option slugs and values indicate whether the
|
|
3310
|
+
* option is enabled.
|
|
3311
|
+
*/
|
|
3312
|
+
fulfillment_options?: any;
|
|
3313
|
+
};
|
|
3314
|
+
/** @returns {SubPaymentMode} */
|
|
3315
|
+
declare function SubPaymentMode(): SubPaymentMode;
|
|
3316
|
+
type SubPaymentMode = {
|
|
3317
|
+
/**
|
|
3318
|
+
* - Unique code of the sub-payment mode.
|
|
3319
|
+
*/
|
|
3320
|
+
code?: string;
|
|
3321
|
+
/**
|
|
3322
|
+
* - Indicates if this sub-payment mode is
|
|
3323
|
+
* active in the system.
|
|
3324
|
+
*/
|
|
3325
|
+
is_active?: boolean;
|
|
3326
|
+
/**
|
|
3327
|
+
* - Priority used for ordering in UI. Lower
|
|
3328
|
+
* numbers can represent higher priority, depending on implementation.
|
|
3329
|
+
*/
|
|
3330
|
+
priority?: number;
|
|
3331
|
+
logos?: LogoSet;
|
|
3332
|
+
/**
|
|
3333
|
+
* - Human-readable name of the sub-payment mode.
|
|
3334
|
+
*/
|
|
3335
|
+
name?: string;
|
|
3336
|
+
/**
|
|
3337
|
+
* - Indicates if this sub-payment mode is
|
|
3338
|
+
* active at the payment gateway (PG) side.
|
|
3339
|
+
*/
|
|
3340
|
+
is_active_at_pg?: boolean;
|
|
3341
|
+
};
|
|
3342
|
+
/** @returns {LogoSet} */
|
|
3343
|
+
declare function LogoSet(): LogoSet;
|
|
3344
|
+
type LogoSet = {
|
|
3345
|
+
/**
|
|
3346
|
+
* - URL of the large-sized logo.
|
|
3347
|
+
*/
|
|
3348
|
+
large?: string;
|
|
3349
|
+
/**
|
|
3350
|
+
* - URL of the small-sized logo.
|
|
3351
|
+
*/
|
|
3352
|
+
small?: string;
|
|
3353
|
+
};
|
|
3354
|
+
/** @returns {PlatformLogoSet} */
|
|
3355
|
+
declare function PlatformLogoSet(): PlatformLogoSet;
|
|
3356
|
+
type PlatformLogoSet = {
|
|
3357
|
+
/**
|
|
3358
|
+
* - URL of the large-sized logo.
|
|
3359
|
+
*/
|
|
3360
|
+
large?: string;
|
|
3361
|
+
/**
|
|
3362
|
+
* - URL of the small-sized logo.
|
|
3363
|
+
*/
|
|
3364
|
+
small?: string;
|
|
3365
|
+
};
|
|
3366
|
+
/** @returns {PlatformConfigPaymentModeDetails} */
|
|
3367
|
+
declare function PlatformConfigPaymentModeDetails(): PlatformConfigPaymentModeDetails;
|
|
3368
|
+
type PlatformConfigPaymentModeDetails = {
|
|
3369
|
+
/**
|
|
3370
|
+
* - Business unit for which the
|
|
3371
|
+
* configuration applies (e.g. "storefront", "pos").
|
|
3372
|
+
*/
|
|
3373
|
+
business_unit?: string;
|
|
3374
|
+
/**
|
|
3375
|
+
* - Device or channel for which the configuration
|
|
3376
|
+
* applies (e.g. "desktop", "android", "ios").
|
|
3377
|
+
*/
|
|
3378
|
+
device?: string;
|
|
3379
|
+
/**
|
|
3380
|
+
* - Fulfillment options applicable for
|
|
3381
|
+
* these payment modes. Keys are option slugs (e.g. "self-pickup", "delivery")
|
|
3382
|
+
* and values indicate whether the option is enabled.
|
|
3383
|
+
*/
|
|
3384
|
+
fulfillment_options?: any;
|
|
3385
|
+
/**
|
|
3386
|
+
* - Overall active status for this aggregator
|
|
3387
|
+
* payment configuration for the given application and device.
|
|
3388
|
+
*/
|
|
3389
|
+
is_active?: boolean;
|
|
3390
|
+
/**
|
|
3391
|
+
* - List of payment modes and
|
|
3392
|
+
* their configuration.
|
|
3393
|
+
*/
|
|
3394
|
+
items?: PlatformPaymentModeItem[];
|
|
3395
|
+
};
|
|
3396
|
+
/** @returns {PlatformPaymentModeItem} */
|
|
3397
|
+
declare function PlatformPaymentModeItem(): PlatformPaymentModeItem;
|
|
3398
|
+
type PlatformPaymentModeItem = {
|
|
3399
|
+
/**
|
|
3400
|
+
* - Unique identifier of the payment mode.
|
|
3401
|
+
*/
|
|
3402
|
+
id?: number;
|
|
3403
|
+
/**
|
|
3404
|
+
* - Human readable name of the payment mode.
|
|
3405
|
+
*/
|
|
3406
|
+
name?: string;
|
|
3407
|
+
/**
|
|
3408
|
+
* - Short code representing the payment mode.
|
|
3409
|
+
*/
|
|
3410
|
+
short_code?: string;
|
|
3411
|
+
logos?: PlatformLogoSet;
|
|
3412
|
+
/**
|
|
3413
|
+
* - Indicates if the payment mode is enabled on
|
|
3414
|
+
* the platform.
|
|
3415
|
+
*/
|
|
3416
|
+
is_active?: boolean;
|
|
3417
|
+
/**
|
|
3418
|
+
* - Indicates if the payment mode is
|
|
3419
|
+
* active at the payment gateway.
|
|
3420
|
+
*/
|
|
3421
|
+
is_active_at_pg?: boolean;
|
|
3422
|
+
/**
|
|
3423
|
+
* - List of sub payment
|
|
3424
|
+
* modes (e.g. card networks like VISA, MASTERCARD).
|
|
3425
|
+
*/
|
|
3426
|
+
sub_payment_mode?: PlatformSubPaymentMode[];
|
|
3427
|
+
};
|
|
3428
|
+
/** @returns {PlatformSubPaymentMode} */
|
|
3429
|
+
declare function PlatformSubPaymentMode(): PlatformSubPaymentMode;
|
|
3430
|
+
type PlatformSubPaymentMode = {
|
|
3431
|
+
/**
|
|
3432
|
+
* - Code of the sub payment mode (e.g. "VISA", "AMEX").
|
|
3433
|
+
*/
|
|
3434
|
+
code?: string;
|
|
3435
|
+
/**
|
|
3436
|
+
* - Human readable name of the sub payment mode.
|
|
3437
|
+
*/
|
|
3438
|
+
name?: string;
|
|
3439
|
+
/**
|
|
3440
|
+
* - Indicates if the sub payment mode is enabled.
|
|
3441
|
+
*/
|
|
3442
|
+
is_active?: boolean;
|
|
3443
|
+
/**
|
|
3444
|
+
* - Indicates if the sub payment mode is
|
|
3445
|
+
* active at payment gateway.
|
|
3446
|
+
*/
|
|
3447
|
+
is_active_at_pg?: boolean;
|
|
3448
|
+
/**
|
|
3449
|
+
* - Display priority for the sub payment mode.
|
|
3450
|
+
* Lower numbers indicate higher priority.
|
|
3451
|
+
*/
|
|
3452
|
+
priority?: number;
|
|
3453
|
+
logos?: PlatformLogoSet;
|
|
3454
|
+
};
|
|
3103
3455
|
/** @returns {MerchnatPaymentModeCreation} */
|
|
3104
3456
|
declare function MerchnatPaymentModeCreation(): MerchnatPaymentModeCreation;
|
|
3105
3457
|
type MerchnatPaymentModeCreation = {
|
|
@@ -4211,3 +4563,16 @@ type ValidateCustomerCreditSchema = {
|
|
|
4211
4563
|
cart_id?: string;
|
|
4212
4564
|
account?: CreditAccountSummary;
|
|
4213
4565
|
};
|
|
4566
|
+
/** @returns {OperationResponseSchema} */
|
|
4567
|
+
declare function OperationResponseSchema(): OperationResponseSchema;
|
|
4568
|
+
type OperationResponseSchema = {
|
|
4569
|
+
/**
|
|
4570
|
+
* - Indicates if the operation was successful
|
|
4571
|
+
*/
|
|
4572
|
+
success: boolean;
|
|
4573
|
+
/**
|
|
4574
|
+
* - Optional message providing additional
|
|
4575
|
+
* information about the operation
|
|
4576
|
+
*/
|
|
4577
|
+
message?: string;
|
|
4578
|
+
};
|