@gofynd/fdk-client-javascript 1.4.2-beta.4 → 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 +23 -1
- package/sdk/application/Order/OrderApplicationModel.js +28 -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 +498 -3
- package/sdk/application/Payment/PaymentApplicationModel.js +316 -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 +64 -64
- package/sdk/application/User/UserApplicationClient.js +64 -64
- 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 +195 -108
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +278 -113
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +2 -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 +5 -5
- package/sdk/platform/Catalog/CatalogPlatformModel.js +3 -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/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 +19 -55
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +19 -55
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +14 -50
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +16 -55
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +13 -12
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +12 -14
- 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 +32 -3
- package/sdk/platform/Order/OrderPlatformModel.js +34 -2
- 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/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 +5 -5
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +2 -2
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -10
- package/sdk/platform/Share/SharePlatformApplicationClient.js +10 -10
- 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 +2 -2
- package/sdk/platform/User/UserPlatformModel.js +2 -2
- 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
|
@@ -983,6 +983,126 @@ const Joi = require("joi");
|
|
|
983
983
|
* @property {string} [message] - Message
|
|
984
984
|
*/
|
|
985
985
|
|
|
986
|
+
/**
|
|
987
|
+
* @typedef DeleteRefundAccountResponse
|
|
988
|
+
* @property {boolean} success - Success/Failure of the deleted beneficiary
|
|
989
|
+
* @property {string} message - Message
|
|
990
|
+
*/
|
|
991
|
+
|
|
992
|
+
/**
|
|
993
|
+
* @typedef RefundOptionsDetails
|
|
994
|
+
* @property {string} display_name - Refund option display name
|
|
995
|
+
* @property {number} id - Refund ID. It will be unique identifier
|
|
996
|
+
* @property {boolean} [is_active] - Refund option is active or not
|
|
997
|
+
* @property {string} name - Refund option name
|
|
998
|
+
*/
|
|
999
|
+
|
|
1000
|
+
/**
|
|
1001
|
+
* @typedef RefundOptions
|
|
1002
|
+
* @property {RefundOptionsDetails} items - List of all refund options.
|
|
1003
|
+
*/
|
|
1004
|
+
|
|
1005
|
+
/**
|
|
1006
|
+
* @typedef OfflineRefundOptions
|
|
1007
|
+
* @property {RefundOptionsDetails} items - List of all refund options.
|
|
1008
|
+
* @property {string[]} payment_modes - List of all offline payment options. MOP
|
|
1009
|
+
* Code value
|
|
1010
|
+
*/
|
|
1011
|
+
|
|
1012
|
+
/**
|
|
1013
|
+
* @typedef RefundOptionResponse
|
|
1014
|
+
* @property {OfflineRefundOptions} offline_refund_options - Available offline
|
|
1015
|
+
* refund options data
|
|
1016
|
+
* @property {boolean} success - Success/Failure Of response
|
|
1017
|
+
* @property {RefundOptions} refund_options - Available refund options data
|
|
1018
|
+
*/
|
|
1019
|
+
|
|
1020
|
+
/**
|
|
1021
|
+
* @typedef SelectedRefundOptionResponse
|
|
1022
|
+
* @property {Object} transfer_mode - Selected transfer mode for given shipment
|
|
1023
|
+
* @property {string} shipment_id - Shipment ID
|
|
1024
|
+
* @property {string} message - Message
|
|
1025
|
+
* @property {boolean} success - Successful or not.
|
|
1026
|
+
*/
|
|
1027
|
+
|
|
1028
|
+
/**
|
|
1029
|
+
* @typedef WalletBeneficiaryDetails
|
|
1030
|
+
* @property {string} beneficiary_id - Benenficiary Id
|
|
1031
|
+
* @property {string} modified_on - MOdification Date of Beneficiary
|
|
1032
|
+
* @property {string} display_name - Display Name Of Account
|
|
1033
|
+
* @property {number} id -
|
|
1034
|
+
* @property {string} subtitle - SHort Title Of Account
|
|
1035
|
+
* @property {string} transfer_mode - Transfer Mode Of Account
|
|
1036
|
+
* @property {string} [mobile] - MObile no of User
|
|
1037
|
+
* @property {boolean} is_active - Boolean Flag whether Beneficiary set or not
|
|
1038
|
+
* @property {string} created_on - Creation Date of Beneficiary
|
|
1039
|
+
* @property {string} address - Address of User
|
|
1040
|
+
* @property {string} title - Title Of Account
|
|
1041
|
+
* @property {string} wallet_address - Bank Name Of Account
|
|
1042
|
+
* @property {string} [comment] - Remarks
|
|
1043
|
+
* @property {string} [wallet] - Branch Name Of Account
|
|
1044
|
+
* @property {string} email - EMail of User
|
|
1045
|
+
* @property {string} [delights_user_name] - User Id Who filled the Beneficiary
|
|
1046
|
+
*/
|
|
1047
|
+
|
|
1048
|
+
/**
|
|
1049
|
+
* @typedef UpiBeneficiaryDetails
|
|
1050
|
+
* @property {string} beneficiary_id - Benenficiary Id
|
|
1051
|
+
* @property {string} modified_on - MOdification Date of Beneficiary
|
|
1052
|
+
* @property {string} display_name - Display Name Of Account
|
|
1053
|
+
* @property {number} id -
|
|
1054
|
+
* @property {string} subtitle - SHort Title Of Account
|
|
1055
|
+
* @property {string} transfer_mode - Transfer Mode Of Account
|
|
1056
|
+
* @property {string} [vpa] - Branch Name Of Account
|
|
1057
|
+
* @property {string} [mobile] - Mobile no of User
|
|
1058
|
+
* @property {string} vpa_address - Bank Name Of Account
|
|
1059
|
+
* @property {string} created_on - Creation Date of Beneficiary
|
|
1060
|
+
* @property {string} address - Address of User
|
|
1061
|
+
* @property {string} title - Title Of Account
|
|
1062
|
+
* @property {string} [comment] - Remarks
|
|
1063
|
+
* @property {boolean} is_active - Boolean Flag whether Beneficiary set or not
|
|
1064
|
+
* @property {string} email - EMail of User
|
|
1065
|
+
* @property {string} [delights_user_name] - User Id Who filled the Beneficiary
|
|
1066
|
+
*/
|
|
1067
|
+
|
|
1068
|
+
/**
|
|
1069
|
+
* @typedef BeneficiaryRefundOptions
|
|
1070
|
+
* @property {OrderBeneficiaryDetails} [bank] - List of all add bank beneficiary details.
|
|
1071
|
+
* @property {WalletBeneficiaryDetails} [wallet] - List of all add Wallet
|
|
1072
|
+
* beneficiary details.
|
|
1073
|
+
* @property {UpiBeneficiaryDetails} [upi] - List of all add UPI beneficiary details.
|
|
1074
|
+
*/
|
|
1075
|
+
|
|
1076
|
+
/**
|
|
1077
|
+
* @typedef OrderBeneficiaryResponseSchemaV2
|
|
1078
|
+
* @property {boolean} show_beneficiary_details - Show Beneficiary details on UI or not.
|
|
1079
|
+
* @property {BeneficiaryRefundOptions} data - Beneficiary Data for Bank
|
|
1080
|
+
* account, UPI and Wallets.
|
|
1081
|
+
* @property {Object} limit - Max Limit for adding bank account, UPI and wallet
|
|
1082
|
+
*/
|
|
1083
|
+
|
|
1084
|
+
/**
|
|
1085
|
+
* @typedef ValidateValidateAddressRequest
|
|
1086
|
+
* @property {string} [ifsc_code] - IFSC Code
|
|
1087
|
+
* @property {string} [upi_vpa] - VPA Address
|
|
1088
|
+
* @property {string} [aggregator] - Aggregator Name
|
|
1089
|
+
*/
|
|
1090
|
+
|
|
1091
|
+
/**
|
|
1092
|
+
* @typedef VPADetails
|
|
1093
|
+
* @property {boolean} is_valid - Is VPA valid or not
|
|
1094
|
+
* @property {string} upi_vpa - VPA address
|
|
1095
|
+
* @property {string} status - VPA validation message
|
|
1096
|
+
* @property {string} customer_name - VPA Customer Name
|
|
1097
|
+
*/
|
|
1098
|
+
|
|
1099
|
+
/**
|
|
1100
|
+
* @typedef ValidateValidateAddressResponse
|
|
1101
|
+
* @property {VPADetails} [upi] - UPI validation details.
|
|
1102
|
+
* @property {boolean} success - Successful or not.
|
|
1103
|
+
* @property {Object} [ifsc] - IFSC details response data
|
|
1104
|
+
*/
|
|
1105
|
+
|
|
986
1106
|
/**
|
|
987
1107
|
* @typedef PaymentMethodsMetaOrder
|
|
988
1108
|
* @property {string} merchant_code - Merchant code
|
|
@@ -1025,12 +1145,35 @@ const Joi = require("joi");
|
|
|
1025
1145
|
* @property {string} [payment_confirm_url] - Payment confirm url for aggregator
|
|
1026
1146
|
* @property {string} [callback_url] - Callback url for aggregator
|
|
1027
1147
|
* @property {string} [order_id] - Merchant order id
|
|
1028
|
-
* @property {boolean} success - Successful or failure
|
|
1148
|
+
* @property {boolean} [success] - Successful or failure
|
|
1029
1149
|
* @property {number} status_code - HTTP status code
|
|
1030
1150
|
* @property {PaymentOrderData} [data]
|
|
1031
1151
|
* @property {string} message - Message
|
|
1032
1152
|
*/
|
|
1033
1153
|
|
|
1154
|
+
/**
|
|
1155
|
+
* @typedef ShipmentRefundRequest
|
|
1156
|
+
* @property {string} shipment_id - Shipment Id of the respective Merchant Order Id
|
|
1157
|
+
* @property {string} order_id - Merchant Order Id
|
|
1158
|
+
* @property {string} transfer_mode - Transfer Mode of the Beneficiary to be added
|
|
1159
|
+
* @property {string} [beneficiary_id] - Beneficiary Hash Id of the beneficiary added
|
|
1160
|
+
*/
|
|
1161
|
+
|
|
1162
|
+
/**
|
|
1163
|
+
* @typedef ShipmentRefundDetail
|
|
1164
|
+
* @property {string} shipment_id - Shipment ID
|
|
1165
|
+
* @property {string} order_id - Order ID
|
|
1166
|
+
* @property {string} transfer_mode - TransferMode
|
|
1167
|
+
* @property {string} beneficiary_id - Beneficiary ID
|
|
1168
|
+
*/
|
|
1169
|
+
|
|
1170
|
+
/**
|
|
1171
|
+
* @typedef ShipmentRefundResponse
|
|
1172
|
+
* @property {ShipmentRefundDetail} data - Selected Shipment refund option details.
|
|
1173
|
+
* @property {boolean} success - Successful or not.
|
|
1174
|
+
* @property {string} message - Message
|
|
1175
|
+
*/
|
|
1176
|
+
|
|
1034
1177
|
class PaymentApplicationModel {
|
|
1035
1178
|
/** @returns {AggregatorConfigDetail} */
|
|
1036
1179
|
static AggregatorConfigDetail() {
|
|
@@ -2226,6 +2369,148 @@ class PaymentApplicationModel {
|
|
|
2226
2369
|
});
|
|
2227
2370
|
}
|
|
2228
2371
|
|
|
2372
|
+
/** @returns {DeleteRefundAccountResponse} */
|
|
2373
|
+
static DeleteRefundAccountResponse() {
|
|
2374
|
+
return Joi.object({
|
|
2375
|
+
success: Joi.boolean().required(),
|
|
2376
|
+
message: Joi.string().allow("").allow(null).required(),
|
|
2377
|
+
});
|
|
2378
|
+
}
|
|
2379
|
+
|
|
2380
|
+
/** @returns {RefundOptionsDetails} */
|
|
2381
|
+
static RefundOptionsDetails() {
|
|
2382
|
+
return Joi.object({
|
|
2383
|
+
display_name: Joi.string().allow("").required(),
|
|
2384
|
+
id: Joi.number().required(),
|
|
2385
|
+
is_active: Joi.boolean().allow(null),
|
|
2386
|
+
name: Joi.string().allow("").required(),
|
|
2387
|
+
});
|
|
2388
|
+
}
|
|
2389
|
+
|
|
2390
|
+
/** @returns {RefundOptions} */
|
|
2391
|
+
static RefundOptions() {
|
|
2392
|
+
return Joi.object({
|
|
2393
|
+
items: PaymentApplicationModel.RefundOptionsDetails().required(),
|
|
2394
|
+
});
|
|
2395
|
+
}
|
|
2396
|
+
|
|
2397
|
+
/** @returns {OfflineRefundOptions} */
|
|
2398
|
+
static OfflineRefundOptions() {
|
|
2399
|
+
return Joi.object({
|
|
2400
|
+
items: PaymentApplicationModel.RefundOptionsDetails().required(),
|
|
2401
|
+
payment_modes: Joi.array().items(Joi.string().allow("")).required(),
|
|
2402
|
+
});
|
|
2403
|
+
}
|
|
2404
|
+
|
|
2405
|
+
/** @returns {RefundOptionResponse} */
|
|
2406
|
+
static RefundOptionResponse() {
|
|
2407
|
+
return Joi.object({
|
|
2408
|
+
offline_refund_options: PaymentApplicationModel.OfflineRefundOptions().required(),
|
|
2409
|
+
success: Joi.boolean().required(),
|
|
2410
|
+
refund_options: PaymentApplicationModel.RefundOptions().required(),
|
|
2411
|
+
});
|
|
2412
|
+
}
|
|
2413
|
+
|
|
2414
|
+
/** @returns {SelectedRefundOptionResponse} */
|
|
2415
|
+
static SelectedRefundOptionResponse() {
|
|
2416
|
+
return Joi.object({
|
|
2417
|
+
transfer_mode: Joi.any().required(),
|
|
2418
|
+
shipment_id: Joi.string().allow("").allow(null).required(),
|
|
2419
|
+
message: Joi.string().allow("").allow(null).required(),
|
|
2420
|
+
success: Joi.boolean().required(),
|
|
2421
|
+
});
|
|
2422
|
+
}
|
|
2423
|
+
|
|
2424
|
+
/** @returns {WalletBeneficiaryDetails} */
|
|
2425
|
+
static WalletBeneficiaryDetails() {
|
|
2426
|
+
return Joi.object({
|
|
2427
|
+
beneficiary_id: Joi.string().allow("").required(),
|
|
2428
|
+
modified_on: Joi.string().allow("").required(),
|
|
2429
|
+
display_name: Joi.string().allow("").required(),
|
|
2430
|
+
id: Joi.number().required(),
|
|
2431
|
+
subtitle: Joi.string().allow("").required(),
|
|
2432
|
+
transfer_mode: Joi.string().allow("").required(),
|
|
2433
|
+
mobile: Joi.string().allow(""),
|
|
2434
|
+
is_active: Joi.boolean().required(),
|
|
2435
|
+
created_on: Joi.string().allow("").required(),
|
|
2436
|
+
address: Joi.string().allow("").required(),
|
|
2437
|
+
title: Joi.string().allow("").required(),
|
|
2438
|
+
wallet_address: Joi.string().allow("").required(),
|
|
2439
|
+
comment: Joi.string().allow(""),
|
|
2440
|
+
wallet: Joi.string().allow(""),
|
|
2441
|
+
email: Joi.string().allow("").required(),
|
|
2442
|
+
delights_user_name: Joi.string().allow("").allow(null),
|
|
2443
|
+
});
|
|
2444
|
+
}
|
|
2445
|
+
|
|
2446
|
+
/** @returns {UpiBeneficiaryDetails} */
|
|
2447
|
+
static UpiBeneficiaryDetails() {
|
|
2448
|
+
return Joi.object({
|
|
2449
|
+
beneficiary_id: Joi.string().allow("").required(),
|
|
2450
|
+
modified_on: Joi.string().allow("").required(),
|
|
2451
|
+
display_name: Joi.string().allow("").required(),
|
|
2452
|
+
id: Joi.number().required(),
|
|
2453
|
+
subtitle: Joi.string().allow("").required(),
|
|
2454
|
+
transfer_mode: Joi.string().allow("").required(),
|
|
2455
|
+
vpa: Joi.string().allow(""),
|
|
2456
|
+
mobile: Joi.string().allow(""),
|
|
2457
|
+
vpa_address: Joi.string().allow("").required(),
|
|
2458
|
+
created_on: Joi.string().allow("").required(),
|
|
2459
|
+
address: Joi.string().allow("").required(),
|
|
2460
|
+
title: Joi.string().allow("").required(),
|
|
2461
|
+
comment: Joi.string().allow(""),
|
|
2462
|
+
is_active: Joi.boolean().required(),
|
|
2463
|
+
email: Joi.string().allow("").required(),
|
|
2464
|
+
delights_user_name: Joi.string().allow("").allow(null),
|
|
2465
|
+
});
|
|
2466
|
+
}
|
|
2467
|
+
|
|
2468
|
+
/** @returns {BeneficiaryRefundOptions} */
|
|
2469
|
+
static BeneficiaryRefundOptions() {
|
|
2470
|
+
return Joi.object({
|
|
2471
|
+
bank: PaymentApplicationModel.OrderBeneficiaryDetails(),
|
|
2472
|
+
wallet: PaymentApplicationModel.WalletBeneficiaryDetails(),
|
|
2473
|
+
upi: PaymentApplicationModel.UpiBeneficiaryDetails(),
|
|
2474
|
+
});
|
|
2475
|
+
}
|
|
2476
|
+
|
|
2477
|
+
/** @returns {OrderBeneficiaryResponseSchemaV2} */
|
|
2478
|
+
static OrderBeneficiaryResponseSchemaV2() {
|
|
2479
|
+
return Joi.object({
|
|
2480
|
+
show_beneficiary_details: Joi.boolean().required(),
|
|
2481
|
+
data: PaymentApplicationModel.BeneficiaryRefundOptions().required(),
|
|
2482
|
+
limit: Joi.any().required(),
|
|
2483
|
+
});
|
|
2484
|
+
}
|
|
2485
|
+
|
|
2486
|
+
/** @returns {ValidateValidateAddressRequest} */
|
|
2487
|
+
static ValidateValidateAddressRequest() {
|
|
2488
|
+
return Joi.object({
|
|
2489
|
+
ifsc_code: Joi.string().allow("").allow(null),
|
|
2490
|
+
upi_vpa: Joi.string().allow("").allow(null),
|
|
2491
|
+
aggregator: Joi.string().allow("").allow(null),
|
|
2492
|
+
});
|
|
2493
|
+
}
|
|
2494
|
+
|
|
2495
|
+
/** @returns {VPADetails} */
|
|
2496
|
+
static VPADetails() {
|
|
2497
|
+
return Joi.object({
|
|
2498
|
+
is_valid: Joi.boolean().required(),
|
|
2499
|
+
upi_vpa: Joi.string().allow("").required(),
|
|
2500
|
+
status: Joi.string().allow("").required(),
|
|
2501
|
+
customer_name: Joi.string().allow("").required(),
|
|
2502
|
+
});
|
|
2503
|
+
}
|
|
2504
|
+
|
|
2505
|
+
/** @returns {ValidateValidateAddressResponse} */
|
|
2506
|
+
static ValidateValidateAddressResponse() {
|
|
2507
|
+
return Joi.object({
|
|
2508
|
+
upi: PaymentApplicationModel.VPADetails(),
|
|
2509
|
+
success: Joi.boolean().required(),
|
|
2510
|
+
ifsc: Joi.any(),
|
|
2511
|
+
});
|
|
2512
|
+
}
|
|
2513
|
+
|
|
2229
2514
|
/** @returns {PaymentMethodsMetaOrder} */
|
|
2230
2515
|
static PaymentMethodsMetaOrder() {
|
|
2231
2516
|
return Joi.object({
|
|
@@ -2279,11 +2564,40 @@ class PaymentApplicationModel {
|
|
|
2279
2564
|
payment_confirm_url: Joi.string().allow("").allow(null),
|
|
2280
2565
|
callback_url: Joi.string().allow("").allow(null),
|
|
2281
2566
|
order_id: Joi.string().allow("").allow(null),
|
|
2282
|
-
success: Joi.boolean()
|
|
2567
|
+
success: Joi.boolean(),
|
|
2283
2568
|
status_code: Joi.number().required(),
|
|
2284
2569
|
data: PaymentApplicationModel.PaymentOrderData(),
|
|
2285
2570
|
message: Joi.string().allow("").required(),
|
|
2286
2571
|
});
|
|
2287
2572
|
}
|
|
2573
|
+
|
|
2574
|
+
/** @returns {ShipmentRefundRequest} */
|
|
2575
|
+
static ShipmentRefundRequest() {
|
|
2576
|
+
return Joi.object({
|
|
2577
|
+
shipment_id: Joi.string().allow("").required(),
|
|
2578
|
+
order_id: Joi.string().allow("").required(),
|
|
2579
|
+
transfer_mode: Joi.string().allow("").required(),
|
|
2580
|
+
beneficiary_id: Joi.string().allow("").allow(null),
|
|
2581
|
+
});
|
|
2582
|
+
}
|
|
2583
|
+
|
|
2584
|
+
/** @returns {ShipmentRefundDetail} */
|
|
2585
|
+
static ShipmentRefundDetail() {
|
|
2586
|
+
return Joi.object({
|
|
2587
|
+
shipment_id: Joi.string().allow("").required(),
|
|
2588
|
+
order_id: Joi.string().allow("").required(),
|
|
2589
|
+
transfer_mode: Joi.string().allow("").required(),
|
|
2590
|
+
beneficiary_id: Joi.string().allow("").required(),
|
|
2591
|
+
});
|
|
2592
|
+
}
|
|
2593
|
+
|
|
2594
|
+
/** @returns {ShipmentRefundResponse} */
|
|
2595
|
+
static ShipmentRefundResponse() {
|
|
2596
|
+
return Joi.object({
|
|
2597
|
+
data: PaymentApplicationModel.ShipmentRefundDetail().required(),
|
|
2598
|
+
success: Joi.boolean().required(),
|
|
2599
|
+
message: Joi.string().allow("").allow(null).required(),
|
|
2600
|
+
});
|
|
2601
|
+
}
|
|
2288
2602
|
}
|
|
2289
2603
|
module.exports = PaymentApplicationModel;
|
|
@@ -202,7 +202,7 @@ export = PaymentApplicationValidator;
|
|
|
202
202
|
* @property {PaymentApplicationModel.WalletOtpRequest} body
|
|
203
203
|
*/
|
|
204
204
|
/**
|
|
205
|
-
* @typedef
|
|
205
|
+
* @typedef WalletLinkInitateParam
|
|
206
206
|
* @property {PaymentApplicationModel.WalletLinkRequestSchema} body
|
|
207
207
|
*/
|
|
208
208
|
declare class PaymentApplicationValidator {
|
|
@@ -296,11 +296,11 @@ declare class PaymentApplicationValidator {
|
|
|
296
296
|
static verifyOtpAndAddBeneficiaryForBank(): VerifyOtpAndAddBeneficiaryForBankParam;
|
|
297
297
|
/** @returns {VerifyOtpAndAddBeneficiaryForWalletParam} */
|
|
298
298
|
static verifyOtpAndAddBeneficiaryForWallet(): VerifyOtpAndAddBeneficiaryForWalletParam;
|
|
299
|
-
/** @returns {
|
|
300
|
-
static
|
|
299
|
+
/** @returns {WalletLinkInitateParam} */
|
|
300
|
+
static walletLinkInitate(): WalletLinkInitateParam;
|
|
301
301
|
}
|
|
302
302
|
declare namespace PaymentApplicationValidator {
|
|
303
|
-
export { AddBeneficiaryDetailsParam, AddRefundBankAccountUsingOTPParam, AttachCardToCustomerParam, CancelPaymentLinkParam, CardDetailsParam, CheckAndUpdatePaymentStatusParam, CheckAndUpdatePaymentStatusPaymentLinkParam, CheckCreditParam, CreateOrderHandlerPaymentLinkParam, CreatePaymentLinkParam, CreatePaymentOrderParam, CustomerCreditSummaryParam, CustomerOnboardParam, DeleteUserCardParam, DelinkWalletParam, EnableOrDisableRefundTransferModeParam, GetActiveCardAggregatorParam, GetActiveRefundTransferModesParam, GetActiveUserCardsParam, GetAggregatorsConfigParam, GetEpaylaterBannerDetailsParam, GetOrderBeneficiariesDetailParam, GetPaymentLinkParam, GetPaymentModeRoutesParam, GetPaymentModeRoutesPaymentLinkParam, GetPosPaymentModeRoutesParam, GetRupifiBannerDetailsParam, GetUserBeneficiariesDetailParam, InitialisePaymentParam, InitialisePaymentPaymentLinkParam, LinkWalletParam, OutstandingOrderDetailsParam, PaidOrderDetailsParam, PollingPaymentLinkParam, RedirectToAggregatorParam, RenderHTMLParam, ResendOrCancelPaymentParam, ResendPaymentLinkParam, UpdateDefaultBeneficiaryParam, ValidateVPAParam, VerifyAndChargePaymentParam, VerifyCustomerForPaymentParam, VerifyIfscCodeParam, VerifyOtpAndAddBeneficiaryForBankParam, VerifyOtpAndAddBeneficiaryForWalletParam,
|
|
303
|
+
export { AddBeneficiaryDetailsParam, AddRefundBankAccountUsingOTPParam, AttachCardToCustomerParam, CancelPaymentLinkParam, CardDetailsParam, CheckAndUpdatePaymentStatusParam, CheckAndUpdatePaymentStatusPaymentLinkParam, CheckCreditParam, CreateOrderHandlerPaymentLinkParam, CreatePaymentLinkParam, CreatePaymentOrderParam, CustomerCreditSummaryParam, CustomerOnboardParam, DeleteUserCardParam, DelinkWalletParam, EnableOrDisableRefundTransferModeParam, GetActiveCardAggregatorParam, GetActiveRefundTransferModesParam, GetActiveUserCardsParam, GetAggregatorsConfigParam, GetEpaylaterBannerDetailsParam, GetOrderBeneficiariesDetailParam, GetPaymentLinkParam, GetPaymentModeRoutesParam, GetPaymentModeRoutesPaymentLinkParam, GetPosPaymentModeRoutesParam, GetRupifiBannerDetailsParam, GetUserBeneficiariesDetailParam, InitialisePaymentParam, InitialisePaymentPaymentLinkParam, LinkWalletParam, OutstandingOrderDetailsParam, PaidOrderDetailsParam, PollingPaymentLinkParam, RedirectToAggregatorParam, RenderHTMLParam, ResendOrCancelPaymentParam, ResendPaymentLinkParam, UpdateDefaultBeneficiaryParam, ValidateVPAParam, VerifyAndChargePaymentParam, VerifyCustomerForPaymentParam, VerifyIfscCodeParam, VerifyOtpAndAddBeneficiaryForBankParam, VerifyOtpAndAddBeneficiaryForWalletParam, WalletLinkInitateParam };
|
|
304
304
|
}
|
|
305
305
|
type AddBeneficiaryDetailsParam = {
|
|
306
306
|
body: PaymentApplicationModel.AddBeneficiaryDetailsRequest;
|
|
@@ -534,7 +534,7 @@ type VerifyOtpAndAddBeneficiaryForBankParam = {
|
|
|
534
534
|
type VerifyOtpAndAddBeneficiaryForWalletParam = {
|
|
535
535
|
body: PaymentApplicationModel.WalletOtpRequest;
|
|
536
536
|
};
|
|
537
|
-
type
|
|
537
|
+
type WalletLinkInitateParam = {
|
|
538
538
|
body: PaymentApplicationModel.WalletLinkRequestSchema;
|
|
539
539
|
};
|
|
540
540
|
type GetActiveRefundTransferModesParam = any;
|
|
@@ -250,7 +250,7 @@ const PaymentApplicationModel = require("./PaymentApplicationModel");
|
|
|
250
250
|
*/
|
|
251
251
|
|
|
252
252
|
/**
|
|
253
|
-
* @typedef
|
|
253
|
+
* @typedef WalletLinkInitateParam
|
|
254
254
|
* @property {PaymentApplicationModel.WalletLinkRequestSchema} body
|
|
255
255
|
*/
|
|
256
256
|
|
|
@@ -583,8 +583,8 @@ class PaymentApplicationValidator {
|
|
|
583
583
|
}).required();
|
|
584
584
|
}
|
|
585
585
|
|
|
586
|
-
/** @returns {
|
|
587
|
-
static
|
|
586
|
+
/** @returns {WalletLinkInitateParam} */
|
|
587
|
+
static walletLinkInitate() {
|
|
588
588
|
return Joi.object({
|
|
589
589
|
body: PaymentApplicationModel.WalletLinkRequestSchema().required(),
|
|
590
590
|
}).required();
|