@gofynd/fdk-client-javascript 1.4.8-beta.3 → 1.4.9
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 +26 -1
- package/package.json +2 -2
- package/sdk/application/ApplicationClient.d.ts +8 -0
- package/sdk/application/ApplicationClient.js +14 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +20 -20
- package/sdk/application/Cart/CartApplicationClient.js +20 -20
- package/sdk/application/Cart/CartApplicationModel.d.ts +2446 -664
- package/sdk/application/Cart/CartApplicationModel.js +783 -552
- package/sdk/application/Cart/CartApplicationValidator.d.ts +268 -194
- package/sdk/application/Cart/CartApplicationValidator.js +100 -114
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +53 -53
- package/sdk/application/Catalog/CatalogApplicationClient.js +53 -53
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2012 -503
- package/sdk/application/Catalog/CatalogApplicationModel.js +603 -453
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +64 -64
- package/sdk/application/Catalog/CatalogApplicationValidator.js +32 -32
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/Common/CommonApplicationClient.js +2 -2
- package/sdk/application/Common/CommonApplicationModel.d.ts +170 -90
- package/sdk/application/Common/CommonApplicationModel.js +59 -58
- package/sdk/application/Common/CommonApplicationValidator.d.ts +8 -5
- package/sdk/application/Common/CommonApplicationValidator.js +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +2 -2
- package/sdk/application/Communication/CommunicationApplicationClient.js +2 -2
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +170 -35
- package/sdk/application/Communication/CommunicationApplicationModel.js +54 -33
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +15 -15
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +15 -15
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +624 -443
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +259 -248
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +32 -24
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +14 -13
- package/sdk/application/Content/ContentApplicationClient.d.ts +16 -16
- package/sdk/application/Content/ContentApplicationClient.js +16 -16
- package/sdk/application/Content/ContentApplicationModel.d.ts +1205 -282
- package/sdk/application/Content/ContentApplicationModel.js +341 -277
- package/sdk/application/Content/ContentApplicationValidator.d.ts +28 -17
- package/sdk/application/Content/ContentApplicationValidator.js +11 -10
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +3 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +146 -37
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +38 -36
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
- package/sdk/application/Lead/LeadApplicationClient.js +3 -3
- package/sdk/application/Lead/LeadApplicationModel.d.ts +195 -134
- package/sdk/application/Lead/LeadApplicationModel.js +110 -67
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +8 -8
- package/sdk/application/Lead/LeadApplicationValidator.js +4 -4
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +10 -10
- package/sdk/application/Logistic/LogisticApplicationClient.js +10 -10
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +1039 -221
- package/sdk/application/Logistic/LogisticApplicationModel.js +342 -199
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +76 -82
- package/sdk/application/Logistic/LogisticApplicationValidator.js +38 -41
- package/sdk/application/Order/OrderApplicationClient.d.ts +10 -10
- package/sdk/application/Order/OrderApplicationClient.js +10 -10
- package/sdk/application/Order/OrderApplicationModel.d.ts +1400 -325
- package/sdk/application/Order/OrderApplicationModel.js +391 -317
- package/sdk/application/Order/OrderApplicationValidator.d.ts +32 -30
- package/sdk/application/Order/OrderApplicationValidator.js +15 -14
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +43 -43
- package/sdk/application/Payment/PaymentApplicationClient.js +43 -43
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +1111 -1022
- package/sdk/application/Payment/PaymentApplicationModel.js +537 -521
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +82 -49
- package/sdk/application/Payment/PaymentApplicationValidator.js +30 -30
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +28 -7
- package/sdk/application/Rewards/RewardsApplicationModel.js +7 -7
- package/sdk/application/Share/ShareApplicationModel.d.ts +178 -38
- package/sdk/application/Share/ShareApplicationModel.js +53 -37
- package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -2
- package/sdk/application/Share/ShareApplicationValidator.js +2 -1
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +4 -4
- package/sdk/application/Theme/ThemeApplicationClient.js +14 -8
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +528 -287
- package/sdk/application/Theme/ThemeApplicationModel.js +208 -172
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +17 -12
- package/sdk/application/Theme/ThemeApplicationValidator.js +8 -6
- package/sdk/application/User/UserApplicationClient.d.ts +36 -36
- package/sdk/application/User/UserApplicationClient.js +36 -36
- package/sdk/application/User/UserApplicationModel.d.ts +1062 -255
- package/sdk/application/User/UserApplicationModel.js +298 -244
- package/sdk/application/User/UserApplicationValidator.d.ts +80 -80
- package/sdk/application/User/UserApplicationValidator.js +40 -40
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +1 -1
- package/sdk/application/Webhook/WebhookApplicationClient.js +1 -1
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +20 -5
- package/sdk/application/Webhook/WebhookApplicationModel.js +5 -5
- package/sdk/common/Clickstream.js +95 -15
- package/sdk/common/Constant.d.ts +9 -0
- package/sdk/common/Constant.js +11 -0
- package/sdk/common/Utility.js +19 -0
- package/sdk/common/utils.js +8 -1
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +28 -7
- package/sdk/partner/Lead/LeadPartnerModel.js +7 -7
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +28 -7
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +7 -7
- package/sdk/partner/PartnerClient.d.ts +8 -0
- package/sdk/partner/PartnerClient.js +14 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +20 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +158 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +45 -6
- package/sdk/partner/Theme/ThemePartnerModel.js +33 -4
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +2 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +14 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +28 -7
- package/sdk/partner/Webhook/WebhookPartnerModel.js +7 -7
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +28 -7
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +7 -7
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +6 -397
- package/sdk/platform/Billing/BillingPlatformClient.js +77 -3215
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +621 -2021
- package/sdk/platform/Billing/BillingPlatformModel.js +353 -2405
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +12 -451
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -483
- package/sdk/platform/Cart/CartPlatformModel.d.ts +28 -7
- package/sdk/platform/Cart/CartPlatformModel.js +8 -8
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +12 -2
- package/sdk/platform/Catalog/CatalogPlatformClient.js +41 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +46 -12
- package/sdk/platform/Catalog/CatalogPlatformModel.js +14 -11
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +40 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +17 -0
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +28 -7
- package/sdk/platform/Communication/CommunicationPlatformModel.js +7 -7
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +28 -7
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +7 -7
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +0 -97
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +77 -782
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +24 -701
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +7 -539
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +1 -183
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +0 -134
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -10
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +0 -79
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -15
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -13
- package/sdk/platform/Content/ContentPlatformModel.d.ts +58 -17
- package/sdk/platform/Content/ContentPlatformModel.js +28 -15
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +28 -7
- package/sdk/platform/Discount/DiscountPlatformModel.js +7 -7
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +127 -25
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +37 -25
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +28 -28
- package/sdk/platform/Finance/FinancePlatformClient.js +28 -28
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +1583 -347
- package/sdk/platform/Finance/FinancePlatformModel.js +463 -351
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +28 -7
- package/sdk/platform/Lead/LeadPlatformModel.js +7 -7
- package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -0
- package/sdk/platform/Order/OrderPlatformClient.js +165 -0
- package/sdk/platform/Order/OrderPlatformModel.d.ts +613 -39
- package/sdk/platform/Order/OrderPlatformModel.js +359 -41
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -1
- package/sdk/platform/Order/OrderPlatformValidator.js +28 -0
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +30 -9
- package/sdk/platform/Payment/PaymentPlatformModel.js +9 -9
- package/sdk/platform/PlatformClient.d.ts +8 -0
- package/sdk/platform/PlatformClient.js +14 -0
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +28 -7
- package/sdk/platform/Rewards/RewardsPlatformModel.js +7 -7
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +12 -9
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +12 -9
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +120 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +76 -21
- package/sdk/platform/Share/SharePlatformModel.d.ts +28 -7
- package/sdk/platform/Share/SharePlatformModel.js +7 -7
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +18 -5
- package/sdk/platform/Theme/ThemePlatformModel.js +7 -4
- package/sdk/platform/User/UserPlatformModel.d.ts +18 -18
- package/sdk/platform/User/UserPlatformModel.js +9 -9
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +28 -7
- package/sdk/platform/Webhook/WebhookPlatformModel.js +7 -7
- package/sdk/public/PublicClient.d.ts +0 -4
- package/sdk/public/PublicClient.js +0 -8
- package/sdk/public/index.d.ts +0 -2
- package/sdk/public/index.js +0 -4
- package/sdk/public/Billing/BillingPublicClient.d.ts +0 -45
- package/sdk/public/Billing/BillingPublicClient.js +0 -269
- package/sdk/public/Billing/BillingPublicModel.d.ts +0 -434
- package/sdk/public/Billing/BillingPublicModel.js +0 -395
- package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -34
- package/sdk/public/Billing/BillingPublicValidator.js +0 -38
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +0 -87
- package/sdk/public/Inventory/InventoryPublicClient.js +0 -529
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +0 -393
- package/sdk/public/Inventory/InventoryPublicModel.js +0 -448
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +0 -91
- package/sdk/public/Inventory/InventoryPublicValidator.js +0 -85
|
@@ -2,21 +2,21 @@ const Joi = require("joi");
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @typedef AggregatorConfigDetail
|
|
5
|
-
* @property {boolean} [sdk] - SDK
|
|
6
|
-
* @property {string} secret - Masked payment gateway api secret
|
|
7
|
-
* @property {string} [api] - Payment gateway api endpoint
|
|
8
|
-
* @property {string} [pin] - Masked pin
|
|
9
|
-
* @property {string} config_type - Fynd or self payment gateway
|
|
10
|
-
* @property {string} [merchant_key] - Unique merchant key
|
|
11
|
-
* @property {string} [verify_api] - Payment gateway verify payment api endpoint
|
|
12
|
-
* @property {string} key - Payment gateway api key
|
|
13
|
-
* @property {string} [user_id] - Registered User id
|
|
14
|
-
* @property {string} [merchant_id] - Unique merchant id
|
|
5
|
+
* @property {boolean} [sdk] - SDK details.
|
|
6
|
+
* @property {string} secret - Masked payment gateway api secret.
|
|
7
|
+
* @property {string} [api] - Payment gateway api endpoint.
|
|
8
|
+
* @property {string} [pin] - Masked pin.
|
|
9
|
+
* @property {string} config_type - Fynd or self payment gateway.
|
|
10
|
+
* @property {string} [merchant_key] - Unique merchant key.
|
|
11
|
+
* @property {string} [verify_api] - Payment gateway verify payment api endpoint.
|
|
12
|
+
* @property {string} key - Payment gateway api key.
|
|
13
|
+
* @property {string} [user_id] - Registered User id.
|
|
14
|
+
* @property {string} [merchant_id] - Unique merchant id.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* @typedef AggregatorsConfigDetailResponse
|
|
19
|
-
* @property {boolean} success
|
|
19
|
+
* @property {boolean} success - Api response was successful or not.
|
|
20
20
|
* @property {AggregatorConfigDetail} [razorpay]
|
|
21
21
|
* @property {AggregatorConfigDetail} [juspay]
|
|
22
22
|
* @property {AggregatorConfigDetail} [simpl]
|
|
@@ -25,27 +25,27 @@ const Joi = require("joi");
|
|
|
25
25
|
* @property {AggregatorConfigDetail} [mswipe]
|
|
26
26
|
* @property {AggregatorConfigDetail} [stripe]
|
|
27
27
|
* @property {AggregatorConfigDetail} [ccavenue]
|
|
28
|
-
* @property {string} env - Environment i.e Live or Test
|
|
28
|
+
* @property {string} env - Environment i.e Live or Test.
|
|
29
29
|
*/
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* @typedef ErrorCodeAndDescription
|
|
33
|
-
* @property {string} code - Error
|
|
33
|
+
* @property {string} code - Error description code.
|
|
34
34
|
* @property {string} description - Error human understandable description.
|
|
35
35
|
*/
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
38
|
* @typedef HttpErrorCodeAndResponse
|
|
39
39
|
* @property {ErrorCodeAndDescription} [error]
|
|
40
|
-
* @property {boolean} success - Response is successful or not
|
|
40
|
+
* @property {boolean} success - Response is successful or not.
|
|
41
41
|
*/
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
44
|
* @typedef AttachCardRequest
|
|
45
|
-
* @property {string} [nickname]
|
|
45
|
+
* @property {string} [nickname] - Nickname of the card holder.
|
|
46
46
|
* @property {boolean} [refresh] - Refresh cache flag.
|
|
47
47
|
* @property {string} card_id - Card token of payment gateway.
|
|
48
|
-
* @property {string} [name_on_card]
|
|
48
|
+
* @property {string} [name_on_card] - Name of the card holder.
|
|
49
49
|
*/
|
|
50
50
|
|
|
51
51
|
/**
|
|
@@ -57,7 +57,7 @@ const Joi = require("joi");
|
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
59
|
* @typedef CardPaymentGateway
|
|
60
|
-
* @property {string} [api] - Payment gateway CARD api endpoint
|
|
60
|
+
* @property {string} [api] - Payment gateway CARD api endpoint.
|
|
61
61
|
* @property {string} aggregator - Payment gateway name.
|
|
62
62
|
* @property {string} [customer_id] - Payment gateway customer id.
|
|
63
63
|
*/
|
|
@@ -71,24 +71,26 @@ const Joi = require("joi");
|
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
73
|
* @typedef Card
|
|
74
|
-
* @property {string} [card_number] -
|
|
75
|
-
* @property {string} [card_name] -
|
|
76
|
-
* @property {string} [card_type] -
|
|
77
|
-
* @property {string} [card_brand_image] -
|
|
78
|
-
* @property {string} [card_reference] -
|
|
79
|
-
* @property {string} [card_issuer] -
|
|
80
|
-
* @property {string} [card_brand] -
|
|
81
|
-
* @property {boolean} [expired] -
|
|
82
|
-
* @property {boolean} [compliant_with_tokenisation_guidelines] -
|
|
83
|
-
*
|
|
84
|
-
* @property {string} [card_isin] -
|
|
85
|
-
*
|
|
86
|
-
* @property {
|
|
87
|
-
* @property {string}
|
|
88
|
-
* @property {string}
|
|
89
|
-
* @property {string} [
|
|
90
|
-
*
|
|
91
|
-
* @property {string} [
|
|
74
|
+
* @property {string} [card_number] - Card number mentioned on the card.
|
|
75
|
+
* @property {string} [card_name] - Name mentioned on the card.
|
|
76
|
+
* @property {string} [card_type] - Type of the card.
|
|
77
|
+
* @property {string} [card_brand_image] - Brand image on the card.
|
|
78
|
+
* @property {string} [card_reference] - Card reference.
|
|
79
|
+
* @property {string} [card_issuer] - Issuer of the card.
|
|
80
|
+
* @property {string} [card_brand] - Brand of the card.
|
|
81
|
+
* @property {boolean} [expired] - Card expiry.
|
|
82
|
+
* @property {boolean} [compliant_with_tokenisation_guidelines] - Whether card
|
|
83
|
+
* is tokenized or not.
|
|
84
|
+
* @property {string} [card_isin] - International Securities Identification
|
|
85
|
+
* Number for the card.
|
|
86
|
+
* @property {number} [exp_year] - Card's expiration year.
|
|
87
|
+
* @property {string} [nickname] - User-defined name for the card.
|
|
88
|
+
* @property {string} aggregator_name - Name of the payment aggregator.
|
|
89
|
+
* @property {string} [card_fingerprint] - Unique fingerprint of the card for
|
|
90
|
+
* identification.
|
|
91
|
+
* @property {string} [card_token] - Encrypted token representing the card.
|
|
92
|
+
* @property {number} [exp_month] - Card's expiration month.
|
|
93
|
+
* @property {string} [card_id] - Unique identifier for the card within the system.
|
|
92
94
|
*/
|
|
93
95
|
|
|
94
96
|
/**
|
|
@@ -111,8 +113,8 @@ const Joi = require("joi");
|
|
|
111
113
|
|
|
112
114
|
/**
|
|
113
115
|
* @typedef ValidateCustomerRequest
|
|
114
|
-
* @property {string} aggregator - Payment gateway name in
|
|
115
|
-
* @property {number} transaction_amount_in_paise - Payable amount in paise
|
|
116
|
+
* @property {string} aggregator - Payment gateway name in camelcase i.e Simple, Rupifi.
|
|
117
|
+
* @property {number} transaction_amount_in_paise - Payable amount in paise.
|
|
116
118
|
* @property {string} phone_number - User mobile number without country code.
|
|
117
119
|
* @property {Object} [billing_address] - Extra meta fields.
|
|
118
120
|
* @property {Object[]} [order_items] - Extra meta fields.
|
|
@@ -123,183 +125,188 @@ const Joi = require("joi");
|
|
|
123
125
|
|
|
124
126
|
/**
|
|
125
127
|
* @typedef ValidateCustomerResponse
|
|
126
|
-
* @property {Object} data - Payment gateway response data
|
|
127
|
-
* @property {boolean} success - Response is successful or not
|
|
128
|
+
* @property {Object} [data] - Payment gateway response data.
|
|
129
|
+
* @property {boolean} success - Response is successful or not.
|
|
128
130
|
* @property {string} message - Error or success message.
|
|
129
131
|
*/
|
|
130
132
|
|
|
131
133
|
/**
|
|
132
134
|
* @typedef ChargeCustomerRequest
|
|
133
|
-
* @property {boolean} [verified] - Already Verified flag from payment gateway i.e Mswipe
|
|
134
|
-
* @property {string} aggregator - Payment gateway name i.e Simpl, Mswipe
|
|
135
|
+
* @property {boolean} [verified] - Already Verified flag from payment gateway i.e Mswipe.
|
|
136
|
+
* @property {string} aggregator - Payment gateway name i.e Simpl, Mswipe.
|
|
135
137
|
* @property {string} order_id - Unique order id.
|
|
136
138
|
* @property {string} [transaction_token] - Transaction token of payment gateway.
|
|
137
|
-
* @property {number} amount -
|
|
139
|
+
* @property {number} amount - Chargeable amount of order.
|
|
138
140
|
*/
|
|
139
141
|
|
|
140
142
|
/**
|
|
141
143
|
* @typedef ChargeCustomerResponse
|
|
142
144
|
* @property {string} status - Status of charged payment.
|
|
143
|
-
* @property {string} [cart_id] - Cart id of customer
|
|
145
|
+
* @property {string} [cart_id] - Cart id of customer.
|
|
144
146
|
* @property {boolean} success - Response is successful or not.
|
|
145
|
-
* @property {string} aggregator - Payment gateway name i.e Simpl, Mswipe
|
|
147
|
+
* @property {string} aggregator - Payment gateway name i.e Simpl, Mswipe.
|
|
146
148
|
* @property {string} message - Human readable message.
|
|
147
149
|
* @property {string} order_id - Unique order id.
|
|
148
|
-
* @property {string} [delivery_address_id] - Delivery
|
|
150
|
+
* @property {string} [delivery_address_id] - Delivery address id of customer.
|
|
149
151
|
*/
|
|
150
152
|
|
|
151
153
|
/**
|
|
152
154
|
* @typedef PaymentInitializationRequest
|
|
153
|
-
* @property {string} [razorpay_payment_id] - Payment gateway payment id
|
|
154
|
-
* @property {string} method - Payment method
|
|
155
|
-
* @property {string} [device_id] - EDC machine Unique Identifier
|
|
156
|
-
* @property {string} aggregator - Payment gateway name
|
|
155
|
+
* @property {string} [razorpay_payment_id] - Payment gateway payment id.
|
|
156
|
+
* @property {string} method - Payment method.
|
|
157
|
+
* @property {string} [device_id] - EDC machine Unique Identifier.
|
|
158
|
+
* @property {string} aggregator - Payment gateway name.
|
|
157
159
|
* @property {string} customer_id - Payment gateway customer id.
|
|
158
|
-
* @property {string} contact - Customer valid mobile number
|
|
159
|
-
* @property {string} merchant_order_id - Unique fynd order id
|
|
160
|
-
* @property {string} [vpa] - Customer vpa address
|
|
161
|
-
* @property {string} order_id - Payment gateway order id
|
|
160
|
+
* @property {string} contact - Customer valid mobile number.
|
|
161
|
+
* @property {string} merchant_order_id - Unique fynd order id.
|
|
162
|
+
* @property {string} [vpa] - Customer vpa address.
|
|
163
|
+
* @property {string} order_id - Payment gateway order id.
|
|
162
164
|
* @property {string} currency - Currency code.
|
|
163
|
-
* @property {number} [timeout] - Payment polling timeout if not
|
|
165
|
+
* @property {number} [timeout] - Payment polling timeout if not received response.
|
|
164
166
|
* @property {number} amount - Payable amount.
|
|
165
|
-
* @property {string} email - Customer valid email
|
|
167
|
+
* @property {string} email - Customer valid email.
|
|
166
168
|
*/
|
|
167
169
|
|
|
168
170
|
/**
|
|
169
171
|
* @typedef PaymentInitializationResponse
|
|
170
172
|
* @property {string} [status] - Status of payment.
|
|
171
173
|
* @property {string} [razorpay_payment_id] - Payment id.
|
|
172
|
-
* @property {string} [aggregator_order_id] - Payment order id
|
|
173
|
-
* @property {string} method - Payment method
|
|
174
|
+
* @property {string} [aggregator_order_id] - Payment order id.
|
|
175
|
+
* @property {string} method - Payment method.
|
|
174
176
|
* @property {boolean} success - Response is successful or not.
|
|
175
177
|
* @property {string} [upi_poll_url] - UPI poll url.
|
|
176
178
|
* @property {string} [virtual_id] - Payment virtual address.
|
|
177
|
-
* @property {string} [device_id] - EDC machine Unique Identifier
|
|
179
|
+
* @property {string} [device_id] - EDC machine Unique Identifier.
|
|
178
180
|
* @property {string} polling_url - Polling url.
|
|
179
|
-
* @property {string} aggregator - Payment gateway name
|
|
180
|
-
* @property {string} merchant_order_id - Order id
|
|
181
|
+
* @property {string} aggregator - Payment gateway name.
|
|
182
|
+
* @property {string} merchant_order_id - Order id.
|
|
181
183
|
* @property {string} [customer_id] - Payment gateway customer id.
|
|
182
|
-
* @property {string} [vpa] - Customer vpa address
|
|
184
|
+
* @property {string} [vpa] - Customer vpa address.
|
|
183
185
|
* @property {string} [currency] - Currency code.
|
|
184
186
|
* @property {number} [timeout] - Timeout.
|
|
185
187
|
* @property {number} [amount] - Payable amount.
|
|
186
|
-
* @property {string} [bqr_image] -
|
|
188
|
+
* @property {string} [bqr_image] - Bharat qr image url.
|
|
187
189
|
*/
|
|
188
190
|
|
|
189
191
|
/**
|
|
190
192
|
* @typedef PaymentStatusUpdateRequest
|
|
191
193
|
* @property {string} [status] - Status of payment.
|
|
192
|
-
* @property {string} [merchant_transaction_id] - Unique fynd transaction id
|
|
193
|
-
* @property {string} method - Payment method
|
|
194
|
-
* @property {string} [device_id] - EDC machine Unique Identifier
|
|
195
|
-
* @property {string} aggregator - Payment gateway name
|
|
194
|
+
* @property {string} [merchant_transaction_id] - Unique fynd transaction id.
|
|
195
|
+
* @property {string} method - Payment method.
|
|
196
|
+
* @property {string} [device_id] - EDC machine Unique Identifier.
|
|
197
|
+
* @property {string} aggregator - Payment gateway name.
|
|
196
198
|
* @property {string} [customer_id] - Payment gateway customer id.
|
|
197
|
-
* @property {string} [contact] - Customer valid mobile number
|
|
198
|
-
* @property {string} merchant_order_id - Unique fynd order id
|
|
199
|
-
* @property {string} [vpa] - Customer vpa address
|
|
200
|
-
* @property {string} [order_id] - Payment gateway order id
|
|
199
|
+
* @property {string} [contact] - Customer valid mobile number.
|
|
200
|
+
* @property {string} merchant_order_id - Unique fynd order id.
|
|
201
|
+
* @property {string} [vpa] - Customer vpa address.
|
|
202
|
+
* @property {string} [order_id] - Payment gateway order id.
|
|
201
203
|
* @property {string} [currency] - Currency code.
|
|
202
204
|
* @property {number} [amount] - Payable amount.
|
|
203
|
-
* @property {string} [email] - Customer valid email
|
|
205
|
+
* @property {string} [email] - Customer valid email.
|
|
204
206
|
*/
|
|
205
207
|
|
|
206
208
|
/**
|
|
207
209
|
* @typedef PaymentStatusUpdateResponse
|
|
208
|
-
* @property {string} status - Payment status
|
|
209
|
-
* @property {boolean} [success] - Response is successful or not
|
|
210
|
+
* @property {string} status - Payment status.
|
|
211
|
+
* @property {boolean} [success] - Response is successful or not.
|
|
210
212
|
* @property {boolean} retry - Response is successful or not.
|
|
211
|
-
* @property {string} [redirect_url] - Redirect url
|
|
212
|
-
* @property {string} aggregator_name - Payment gateway name
|
|
213
|
+
* @property {string} [redirect_url] - Redirect url.
|
|
214
|
+
* @property {string} aggregator_name - Payment gateway name.
|
|
213
215
|
*/
|
|
214
216
|
|
|
215
217
|
/**
|
|
216
218
|
* @typedef IntentAppErrorList
|
|
217
|
-
* @property {string} [code] - Code
|
|
218
|
-
* @property {string} [package_name] -
|
|
219
|
+
* @property {string} [code] - Code of the intent App.
|
|
220
|
+
* @property {string} [package_name] - Package Name of the intent App.
|
|
219
221
|
*/
|
|
220
222
|
|
|
221
223
|
/**
|
|
222
224
|
* @typedef PaymentModeLogo
|
|
223
|
-
* @property {string} large - Large
|
|
224
|
-
* @property {string} small -
|
|
225
|
+
* @property {string} large - Large Logo.
|
|
226
|
+
* @property {string} small - Small Logo.
|
|
225
227
|
*/
|
|
226
228
|
|
|
227
229
|
/**
|
|
228
230
|
* @typedef IntentApp
|
|
229
|
-
* @property {string} [code] - Code
|
|
230
|
-
* @property {string} [package_name] -
|
|
231
|
+
* @property {string} [code] - Code of the intent App.
|
|
232
|
+
* @property {string} [package_name] - Package Name of the intent App.
|
|
231
233
|
* @property {PaymentModeLogo} [logos]
|
|
232
|
-
* @property {string} [display_name] -
|
|
234
|
+
* @property {string} [display_name] - Display Name of the intent App.
|
|
233
235
|
*/
|
|
234
236
|
|
|
235
237
|
/**
|
|
236
238
|
* @typedef PaymentModeList
|
|
237
|
-
* @property {string} [card_number] -
|
|
238
|
-
* @property {string} [merchant_code] -
|
|
239
|
-
* @property {string} [card_reference] -
|
|
240
|
-
* @property {string} [card_issuer] -
|
|
241
|
-
* @property {boolean} [compliant_with_tokenisation_guidelines] -
|
|
242
|
-
*
|
|
243
|
-
* @property {string} [code] -
|
|
244
|
-
* @property {number} [cod_limit] -
|
|
245
|
-
* @property {boolean} [intent_flow] -
|
|
246
|
-
* @property {string} [fynd_vpa] -
|
|
247
|
-
* @property {IntentAppErrorList[]} [intent_app_error_dict_list] -
|
|
248
|
-
*
|
|
249
|
-
* @property {string} aggregator_name -
|
|
250
|
-
* @property {string} [card_fingerprint] -
|
|
251
|
-
*
|
|
252
|
-
* @property {
|
|
253
|
-
*
|
|
254
|
-
* @property {
|
|
255
|
-
*
|
|
256
|
-
* @property {
|
|
257
|
-
* @property {
|
|
258
|
-
* @property {number} [
|
|
259
|
-
* @property {number} [
|
|
260
|
-
* @property {string} [
|
|
261
|
-
* @property {number} [
|
|
239
|
+
* @property {string} [card_number] - Card number mentioned on the card.
|
|
240
|
+
* @property {string} [merchant_code] - Unique code identifying the merchant.
|
|
241
|
+
* @property {string} [card_reference] - Reference identifier for the card.
|
|
242
|
+
* @property {string} [card_issuer] - Issuing bank or institution of the card.
|
|
243
|
+
* @property {boolean} [compliant_with_tokenisation_guidelines] - Indicates
|
|
244
|
+
* compliance with tokenization guidelines.
|
|
245
|
+
* @property {string} [code] - General code for identifying a transaction or status.
|
|
246
|
+
* @property {number} [cod_limit] - Limit for Cash on Delivery (COD) transactions.
|
|
247
|
+
* @property {boolean} [intent_flow] - Flow or process intended for the transaction.
|
|
248
|
+
* @property {string} [fynd_vpa] - Virtual Payment Address (VPA) used by Fynd.
|
|
249
|
+
* @property {IntentAppErrorList[]} [intent_app_error_dict_list] - List of error
|
|
250
|
+
* dictionaries related to intent app.
|
|
251
|
+
* @property {string} aggregator_name - Name of the payment aggregator.
|
|
252
|
+
* @property {string} [card_fingerprint] - Unique fingerprint of the card for
|
|
253
|
+
* identification.
|
|
254
|
+
* @property {string[]} [intent_app_error_list] - List of errors associated with
|
|
255
|
+
* the intent app.
|
|
256
|
+
* @property {IntentApp[]} [intent_app] - Application intended for handling the
|
|
257
|
+
* transaction.
|
|
258
|
+
* @property {boolean} [expired] - Indicates whether the card is expired.
|
|
259
|
+
* @property {number} [retry_count] - Number of retry attempts.
|
|
260
|
+
* @property {number} [exp_year] - Card's expiration year.
|
|
261
|
+
* @property {number} [exp_month] - Card's expiration month.
|
|
262
|
+
* @property {string} [card_id] - Unique identifier for the card within the system.
|
|
263
|
+
* @property {number} [remaining_limit] - Remaining available limit on the card.
|
|
264
|
+
* @property {number} [display_priority] - Priority of display in the user interface.
|
|
265
|
+
* @property {string} [card_brand] - Brand of the card (e.g., Visa, MasterCard).
|
|
266
|
+
* @property {number} [cod_limit_per_order] - Maximum limit per order for COD
|
|
267
|
+
* transactions.
|
|
262
268
|
* @property {PaymentModeLogo} [logo_url]
|
|
263
|
-
* @property {string} [nickname] -
|
|
264
|
-
* @property {string} [card_name] -
|
|
265
|
-
* @property {string} [card_type] -
|
|
266
|
-
* @property {string} [card_brand_image] -
|
|
267
|
-
* @property {string} [display_name] - Display name
|
|
268
|
-
* @property {string} [card_isin] -
|
|
269
|
-
*
|
|
270
|
-
* @property {
|
|
271
|
-
* @property {string} [
|
|
272
|
-
* @property {
|
|
269
|
+
* @property {string} [nickname] - User-defined name for the card.
|
|
270
|
+
* @property {string} [card_name] - Name printed on the card.
|
|
271
|
+
* @property {string} [card_type] - Type of the card (e.g., debit, credit).
|
|
272
|
+
* @property {string} [card_brand_image] - Image representing the card brand.
|
|
273
|
+
* @property {string} [display_name] - Display name for the card in the user interface.
|
|
274
|
+
* @property {string} [card_isin] - International Securities Identification
|
|
275
|
+
* Number for the card.
|
|
276
|
+
* @property {number} [timeout] - Timeout duration for transactions.
|
|
277
|
+
* @property {string} [card_token] - Encrypted token representing the card.
|
|
278
|
+
* @property {string} [name] - User's name.
|
|
279
|
+
* @property {Object} [meta] - Payment methods meta.
|
|
273
280
|
*/
|
|
274
281
|
|
|
275
282
|
/**
|
|
276
283
|
* @typedef RootPaymentMode
|
|
277
284
|
* @property {boolean} [is_pay_by_card_pl] - This flag will be true in case of
|
|
278
|
-
* Payment link payment through card
|
|
279
|
-
* @property {boolean} [add_card_enabled] -
|
|
280
|
-
* @property {number} display_priority -
|
|
281
|
-
* @property {string} display_name - Payment mode display name
|
|
282
|
-
* @property {PaymentModeList[]} [list] - Payment mode
|
|
283
|
-
* @property {boolean} [save_card] - Card save or not
|
|
284
|
-
* @property {string} [aggregator_name] -
|
|
285
|
-
* @property {string} name - Payment mode name
|
|
286
|
-
* @property {boolean} [anonymous_enable] -
|
|
285
|
+
* Payment link payment through card.
|
|
286
|
+
* @property {boolean} [add_card_enabled] - Anonymous card flag.
|
|
287
|
+
* @property {number} display_priority - Display Priority.
|
|
288
|
+
* @property {string} display_name - Payment mode display name.
|
|
289
|
+
* @property {PaymentModeList[]} [list] - Payment mode.
|
|
290
|
+
* @property {boolean} [save_card] - Card save or not.
|
|
291
|
+
* @property {string} [aggregator_name] - Display Priority.
|
|
292
|
+
* @property {string} name - Payment mode name.
|
|
293
|
+
* @property {boolean} [anonymous_enable] - Anonymous card flag.
|
|
287
294
|
*/
|
|
288
295
|
|
|
289
296
|
/**
|
|
290
297
|
* @typedef AggregatorRoute
|
|
291
|
-
* @property {Object} [data] -
|
|
292
|
-
* @property {Object} [payment_flow_data] - Payment_flow_data
|
|
293
|
-
* @property {string} [payment_flow] - Payment_flow
|
|
294
|
-
* @property {string} [api_link] -
|
|
298
|
+
* @property {Object} [data] - Details about aggregator route.
|
|
299
|
+
* @property {Object} [payment_flow_data] - Payment_flow_data.
|
|
300
|
+
* @property {string} [payment_flow] - Payment_flow.
|
|
301
|
+
* @property {string} [api_link] - API link of the aggregator.
|
|
295
302
|
*/
|
|
296
303
|
|
|
297
304
|
/**
|
|
298
305
|
* @typedef PaymentDefaultSelection
|
|
299
|
-
* @property {string} [mode] - Default Selection Payment Mode
|
|
300
|
-
* @property {string} [identifier] - Identifier for Payment Mode
|
|
306
|
+
* @property {string} [mode] - Default Selection Payment Mode.
|
|
307
|
+
* @property {string} [identifier] - Identifier for Payment Mode.
|
|
301
308
|
* @property {boolean} [skip] - Decide if the default payment mode will skip the
|
|
302
|
-
* payment options page altogether or just be preferred on the Frontend
|
|
309
|
+
* payment options page altogether or just be preferred on the Frontend.
|
|
303
310
|
*/
|
|
304
311
|
|
|
305
312
|
/**
|
|
@@ -322,41 +329,41 @@ const Joi = require("joi");
|
|
|
322
329
|
|
|
323
330
|
/**
|
|
324
331
|
* @typedef PaymentOptionAndFlow
|
|
325
|
-
* @property {RootPaymentMode[]} payment_option - Payment options
|
|
332
|
+
* @property {RootPaymentMode[]} payment_option - Payment options.
|
|
326
333
|
* @property {PaymentFlow} payment_flows
|
|
327
334
|
* @property {PaymentDefaultSelection} [payment_default_selection]
|
|
328
335
|
*/
|
|
329
336
|
|
|
330
337
|
/**
|
|
331
338
|
* @typedef AdvanceObject
|
|
332
|
-
* @property {boolean} [is_active] - Is Advance Payment active
|
|
333
|
-
* @property {number} [amount] - Amount for Payment Breakdown
|
|
334
|
-
* @property {string} [time_unit] - Time unit for refunds
|
|
339
|
+
* @property {boolean} [is_active] - Is Advance Payment active.
|
|
340
|
+
* @property {number} [amount] - Amount for Payment Breakdown.
|
|
341
|
+
* @property {string} [time_unit] - Time unit for refunds.
|
|
335
342
|
* @property {string} [description] - The description for Advance Payment (user
|
|
336
|
-
* configured)
|
|
337
|
-
* @property {string} [display_name] - The display name for Advance payment
|
|
338
|
-
* @property {string} [prepayment_type] - Type of prepayment value
|
|
339
|
-
* @property {number} [prepayment_value] - Value for prepayment in advance payment
|
|
340
|
-
* @property {string} [cancellation_type] - Type of cancellation
|
|
341
|
-
* @property {number} [refund_time_limit] - Time limit for processing refund
|
|
342
|
-
* @property {string[]} [all_prepayment_type] - All available types of prepayment
|
|
343
|
-
* @property {boolean} [allow_custom_advance_amount] - Is custom advance amount allowed
|
|
343
|
+
* configured).
|
|
344
|
+
* @property {string} [display_name] - The display name for Advance payment.
|
|
345
|
+
* @property {string} [prepayment_type] - Type of prepayment value.
|
|
346
|
+
* @property {number} [prepayment_value] - Value for prepayment in advance payment.
|
|
347
|
+
* @property {string} [cancellation_type] - Type of cancellation.
|
|
348
|
+
* @property {number} [refund_time_limit] - Time limit for processing refund.
|
|
349
|
+
* @property {string[]} [all_prepayment_type] - All available types of prepayment.
|
|
350
|
+
* @property {boolean} [allow_custom_advance_amount] - Is custom advance amount allowed?.
|
|
344
351
|
*/
|
|
345
352
|
|
|
346
353
|
/**
|
|
347
354
|
* @typedef SplitObject
|
|
348
|
-
* @property {number} [total_number_of_splits] - Maximum amount of splits allowed
|
|
349
|
-
* @property {number} [splits_remaining] - Number of splits remaining
|
|
350
|
-
* @property {number} [amount_remaining] - Amount pending to be paid
|
|
355
|
+
* @property {number} [total_number_of_splits] - Maximum amount of splits allowed.
|
|
356
|
+
* @property {number} [splits_remaining] - Number of splits remaining.
|
|
357
|
+
* @property {number} [amount_remaining] - Amount pending to be paid.
|
|
351
358
|
*/
|
|
352
359
|
|
|
353
360
|
/**
|
|
354
361
|
* @typedef AdvancePaymentObject
|
|
355
|
-
* @property {string} [name] - Name of Advance Payment Mode
|
|
356
|
-
* @property {number} [display_priority] - Display Priority for Payment Option
|
|
357
|
-
* @property {number} [payment_mode_id] - Payment Mode ID for Advance Payment Option
|
|
358
|
-
* @property {string} [display_name] - Display name for Advance Payment Mode
|
|
359
|
-
* @property {PaymentModeList[]} [list] - Payment mode
|
|
362
|
+
* @property {string} [name] - Name of Advance Payment Mode.
|
|
363
|
+
* @property {number} [display_priority] - Display Priority for Payment Option.
|
|
364
|
+
* @property {number} [payment_mode_id] - Payment Mode ID for Advance Payment Option.
|
|
365
|
+
* @property {string} [display_name] - Display name for Advance Payment Mode.
|
|
366
|
+
* @property {PaymentModeList[]} [list] - Payment mode.
|
|
360
367
|
* @property {SplitObject} [split]
|
|
361
368
|
* @property {AdvanceObject} [advance]
|
|
362
369
|
*/
|
|
@@ -364,40 +371,40 @@ const Joi = require("joi");
|
|
|
364
371
|
/**
|
|
365
372
|
* @typedef PaymentModeRouteResponse
|
|
366
373
|
* @property {PaymentOptionAndFlow} payment_options
|
|
367
|
-
* @property {boolean} success - Response is successful or not
|
|
368
|
-
* @property {Object} [payment_breakup] - Payment Breakup for advance payment
|
|
369
|
-
* @property {AdvancePaymentObject[]} [advance_payment] - Advance Payment Array
|
|
374
|
+
* @property {boolean} success - Response is successful or not.
|
|
375
|
+
* @property {Object} [payment_breakup] - Payment Breakup for advance payment.
|
|
376
|
+
* @property {AdvancePaymentObject[]} [advance_payment] - Advance Payment Array.
|
|
370
377
|
*/
|
|
371
378
|
|
|
372
379
|
/**
|
|
373
380
|
* @typedef WalletLinkRequestSchema
|
|
374
|
-
* @property {string} aggregator - Aggregator Name
|
|
375
|
-
* @property {string} mobile - Mobile Number for Wallet
|
|
376
|
-
* @property {string} wallet_code - Wallet Code
|
|
381
|
+
* @property {string} aggregator - Aggregator Name.
|
|
382
|
+
* @property {string} mobile - Mobile Number for Wallet.
|
|
383
|
+
* @property {string} wallet_code - Wallet Code.
|
|
377
384
|
*/
|
|
378
385
|
|
|
379
386
|
/**
|
|
380
387
|
* @typedef WalletVerifyRequestSchema
|
|
381
|
-
* @property {string} aggregator - Aggregator Name
|
|
382
|
-
* @property {string} link_token - Token for wallet linking
|
|
383
|
-
* @property {number} otp - OTP received for wallet linking
|
|
388
|
+
* @property {string} aggregator - Aggregator Name.
|
|
389
|
+
* @property {string} link_token - Token for wallet linking.
|
|
390
|
+
* @property {number} otp - OTP received for wallet linking.
|
|
384
391
|
*/
|
|
385
392
|
|
|
386
393
|
/**
|
|
387
394
|
* @typedef WalletDelinkRequestSchema
|
|
388
|
-
* @property {string} aggregator - Aggregator Name
|
|
389
|
-
* @property {string} wallet_code - Wallet Code
|
|
395
|
+
* @property {string} aggregator - Aggregator Name.
|
|
396
|
+
* @property {string} wallet_code - Wallet Code.
|
|
390
397
|
*/
|
|
391
398
|
|
|
392
399
|
/**
|
|
393
400
|
* @typedef WalletResponseSchema
|
|
394
|
-
* @property {Object} data - Response received from aggregator
|
|
395
|
-
* @property {boolean} success - Success/Failure of the API call
|
|
401
|
+
* @property {Object} data - Response received from aggregator.
|
|
402
|
+
* @property {boolean} success - Success/Failure of the API call.
|
|
396
403
|
*/
|
|
397
404
|
|
|
398
405
|
/**
|
|
399
406
|
* @typedef RupifiBannerData
|
|
400
|
-
* @property {string} [status] - Rupifi KYC status
|
|
407
|
+
* @property {string} [status] - Rupifi KYC status.
|
|
401
408
|
* @property {string} [kyc_url] - Rupifi KYC banner url.
|
|
402
409
|
*/
|
|
403
410
|
|
|
@@ -409,9 +416,9 @@ const Joi = require("joi");
|
|
|
409
416
|
|
|
410
417
|
/**
|
|
411
418
|
* @typedef EpaylaterBannerData
|
|
412
|
-
* @property {string} [status] - Epaylater KYC status
|
|
413
|
-
* @property {string} [message] - EPayLater message
|
|
414
|
-
* @property {boolean} display - Need to display banner or not
|
|
419
|
+
* @property {string} [status] - Epaylater KYC status.
|
|
420
|
+
* @property {string} [message] - EPayLater message.
|
|
421
|
+
* @property {boolean} display - Need to display banner or not.
|
|
415
422
|
*/
|
|
416
423
|
|
|
417
424
|
/**
|
|
@@ -422,15 +429,15 @@ const Joi = require("joi");
|
|
|
422
429
|
|
|
423
430
|
/**
|
|
424
431
|
* @typedef ResendOrCancelPaymentRequest
|
|
425
|
-
* @property {string} order_id - Unique order id
|
|
426
|
-
* @property {string} [device_id] - EDC machine Unique Identifier
|
|
427
|
-
* @property {string} request_type - Either resend or cancel
|
|
432
|
+
* @property {string} order_id - Unique order id.
|
|
433
|
+
* @property {string} [device_id] - EDC machine Unique Identifier.
|
|
434
|
+
* @property {string} request_type - Either resend or cancel.
|
|
428
435
|
*/
|
|
429
436
|
|
|
430
437
|
/**
|
|
431
438
|
* @typedef LinkStatus
|
|
432
|
-
* @property {string} status - Link action status
|
|
433
|
-
* @property {string} message - Message
|
|
439
|
+
* @property {string} status - Link action status.
|
|
440
|
+
* @property {string} message - Message.
|
|
434
441
|
* @property {boolean} [is_payment_done] - This key specifies payment done
|
|
435
442
|
* status of payment link.
|
|
436
443
|
*/
|
|
@@ -443,27 +450,27 @@ const Joi = require("joi");
|
|
|
443
450
|
|
|
444
451
|
/**
|
|
445
452
|
* @typedef renderHTMLRequest
|
|
446
|
-
* @property {string} [returntype] - Return Type of API
|
|
447
|
-
* @property {string} base64_html - Base64 encoded html string
|
|
453
|
+
* @property {string} [returntype] - Return Type of API.
|
|
454
|
+
* @property {string} base64_html - Base64 encoded html string.
|
|
448
455
|
*/
|
|
449
456
|
|
|
450
457
|
/**
|
|
451
458
|
* @typedef renderHTMLResponse
|
|
452
|
-
* @property {string} html - HTML string
|
|
459
|
+
* @property {string} html - HTML string.
|
|
453
460
|
*/
|
|
454
461
|
|
|
455
462
|
/**
|
|
456
463
|
* @typedef ValidateVPARequest
|
|
457
|
-
* @property {string} upi_vpa - UPI ID
|
|
458
|
-
* @property {string} [aggregator] - Aggregator slug
|
|
464
|
+
* @property {string} upi_vpa - UPI ID.
|
|
465
|
+
* @property {string} [aggregator] - Aggregator slug.
|
|
459
466
|
*/
|
|
460
467
|
|
|
461
468
|
/**
|
|
462
469
|
* @typedef ValidateUPI
|
|
463
|
-
* @property {string} status - VALID or INVALID
|
|
464
|
-
* @property {string} customer_name - Customer Bank
|
|
470
|
+
* @property {string} status - VALID or INVALID.
|
|
471
|
+
* @property {string} customer_name - Customer Bank.
|
|
465
472
|
* @property {boolean} is_valid - Boolean is true or false.
|
|
466
|
-
* @property {string} upi_vpa - UPI ID
|
|
473
|
+
* @property {string} upi_vpa - UPI ID.
|
|
467
474
|
*/
|
|
468
475
|
|
|
469
476
|
/**
|
|
@@ -474,22 +481,23 @@ const Joi = require("joi");
|
|
|
474
481
|
|
|
475
482
|
/**
|
|
476
483
|
* @typedef CardDetails
|
|
477
|
-
* @property {boolean} status -
|
|
478
|
-
* @property {string} country - Country
|
|
479
|
-
* @property {string} bank_code -
|
|
480
|
-
* @property {string} id -
|
|
481
|
-
* @property {string} [card_exp_year] - Card
|
|
482
|
-
* @property {string} card_brand -
|
|
483
|
-
* @property {string} type -
|
|
484
|
-
* @property {string} card_sub_type -
|
|
485
|
-
* @property {boolean} is_domestic_card -
|
|
486
|
-
* @property {string} [name_on_card] - Name
|
|
487
|
-
* @property {string} [card_exp_month] - Card
|
|
488
|
-
* @property {string} extended_card_type - Extended
|
|
489
|
-
*
|
|
490
|
-
* @property {string}
|
|
491
|
-
* @property {string} [
|
|
492
|
-
* @property {string}
|
|
484
|
+
* @property {boolean} status - Current status of the card.
|
|
485
|
+
* @property {string} country - Country where the card was issued.
|
|
486
|
+
* @property {string} bank_code - Code identifying the bank.
|
|
487
|
+
* @property {string} id - Unique identifier for the record.
|
|
488
|
+
* @property {string} [card_exp_year] - Card's expiration year.
|
|
489
|
+
* @property {string} card_brand - Brand of the card (e.g., Visa, MasterCard).
|
|
490
|
+
* @property {string} type - General type of the card (e.g., debit, credit).
|
|
491
|
+
* @property {string} card_sub_type - Sub-type of the card (e.g., Platinum, Gold).
|
|
492
|
+
* @property {boolean} is_domestic_card - Indicates whether the card is domestic.
|
|
493
|
+
* @property {string} [name_on_card] - Name of the cardholder.
|
|
494
|
+
* @property {string} [card_exp_month] - Card's expiration month.
|
|
495
|
+
* @property {string} extended_card_type - Extended type of the card, providing
|
|
496
|
+
* more specific classification.
|
|
497
|
+
* @property {string} card_object - Object representation of the card.
|
|
498
|
+
* @property {string} [card_token] - Encrypted token representing the card.
|
|
499
|
+
* @property {string} [user] - User associated with the card.
|
|
500
|
+
* @property {string} bank - Bank associated with the card.
|
|
493
501
|
*/
|
|
494
502
|
|
|
495
503
|
/**
|
|
@@ -500,350 +508,352 @@ const Joi = require("joi");
|
|
|
500
508
|
|
|
501
509
|
/**
|
|
502
510
|
* @typedef TransferItemsDetails
|
|
503
|
-
* @property {number} id -
|
|
504
|
-
* @property {string} [display_name] - Beneficiary Display Name
|
|
505
|
-
* @property {string} logo_large - Beneficiary large Logo
|
|
506
|
-
* @property {string} logo_small - Beneficiary small Logo
|
|
507
|
-
* @property {string} name - Beneficiary Name
|
|
511
|
+
* @property {number} id - Id of the transfer item.
|
|
512
|
+
* @property {string} [display_name] - Beneficiary Display Name.
|
|
513
|
+
* @property {string} logo_large - Beneficiary large Logo.
|
|
514
|
+
* @property {string} logo_small - Beneficiary small Logo.
|
|
515
|
+
* @property {string} name - Beneficiary Name.
|
|
508
516
|
*/
|
|
509
517
|
|
|
510
518
|
/**
|
|
511
519
|
* @typedef TransferModeDetails
|
|
512
|
-
* @property {TransferItemsDetails[]} [items] - Beneficiary Mode Items
|
|
513
|
-
* @property {string} display_name - Beneficiary Mode Name
|
|
520
|
+
* @property {TransferItemsDetails[]} [items] - Beneficiary Mode Items.
|
|
521
|
+
* @property {string} display_name - Beneficiary Mode Name.
|
|
514
522
|
*/
|
|
515
523
|
|
|
516
524
|
/**
|
|
517
525
|
* @typedef TransferModeResponse
|
|
518
|
-
* @property {TransferModeDetails[]} data - Response Object
|
|
526
|
+
* @property {TransferModeDetails[]} data - Response Object.
|
|
519
527
|
*/
|
|
520
528
|
|
|
521
529
|
/**
|
|
522
530
|
* @typedef UpdateRefundTransferModeRequest
|
|
523
|
-
* @property {boolean} enable - True for enabling the Transfer Mode
|
|
524
|
-
* @property {string} transfer_mode - Transfer Mode of the Beneficiary to be added
|
|
531
|
+
* @property {boolean} enable - True for enabling the Transfer Mode.
|
|
532
|
+
* @property {string} transfer_mode - Transfer Mode of the Beneficiary to be added.
|
|
525
533
|
*/
|
|
526
534
|
|
|
527
535
|
/**
|
|
528
536
|
* @typedef UpdateRefundTransferModeResponse
|
|
529
|
-
* @property {boolean} [success] - Response is successful or not
|
|
537
|
+
* @property {boolean} [success] - Response is successful or not.
|
|
530
538
|
*/
|
|
531
539
|
|
|
532
540
|
/**
|
|
533
541
|
* @typedef OrderBeneficiaryDetails
|
|
534
|
-
* @property {string} modified_on - MOdification Date of Beneficiary
|
|
535
|
-
* @property {string} account_no - Account Number
|
|
536
|
-
* @property {string} [mobile] - MObile no of User
|
|
537
|
-
* @property {string} bank_name - Bank Name Of Account
|
|
538
|
-
* @property {string} ifsc_code - Ifsc Code Of Account
|
|
539
|
-
* @property {boolean} is_active - Boolean Flag whether Beneficiary set or not
|
|
540
|
-
* @property {string} beneficiary_id -
|
|
541
|
-
* @property {string} account_holder - Account Holder Name
|
|
542
|
-
* @property {string} email - EMail of User
|
|
543
|
-
* @property {string} [delights_user_name] - User Id Who filled the Beneficiary
|
|
544
|
-
* @property {number} id -
|
|
545
|
-
* @property {string} transfer_mode - Transfer Mode Of Account
|
|
546
|
-
* @property {string} [branch_name] - Branch Name Of Account
|
|
547
|
-
* @property {string} created_on - Creation Date of Beneficiary
|
|
548
|
-
* @property {string} subtitle - SHort Title Of Account
|
|
549
|
-
* @property {string} [comment] - Remarks
|
|
550
|
-
* @property {string} address - Address of User
|
|
551
|
-
* @property {string} title - Title Of Account
|
|
552
|
-
* @property {string} display_name - Display Name Of Account
|
|
542
|
+
* @property {string} modified_on - MOdification Date of Beneficiary.
|
|
543
|
+
* @property {string} account_no - Account Number.
|
|
544
|
+
* @property {string} [mobile] - MObile no of User.
|
|
545
|
+
* @property {string} bank_name - Bank Name Of Account.
|
|
546
|
+
* @property {string} ifsc_code - Ifsc Code Of Account.
|
|
547
|
+
* @property {boolean} is_active - Boolean Flag whether Beneficiary set or not.
|
|
548
|
+
* @property {string} beneficiary_id - Beneficiary Id.
|
|
549
|
+
* @property {string} account_holder - Account Holder Name.
|
|
550
|
+
* @property {string} email - EMail of User.
|
|
551
|
+
* @property {string} [delights_user_name] - User Id Who filled the Beneficiary.
|
|
552
|
+
* @property {number} id - Id of the Order Beneficiary.
|
|
553
|
+
* @property {string} transfer_mode - Transfer Mode Of Account.
|
|
554
|
+
* @property {string} [branch_name] - Branch Name Of Account.
|
|
555
|
+
* @property {string} created_on - Creation Date of Beneficiary.
|
|
556
|
+
* @property {string} subtitle - SHort Title Of Account.
|
|
557
|
+
* @property {string} [comment] - Remarks.
|
|
558
|
+
* @property {string} address - Address of User.
|
|
559
|
+
* @property {string} title - Title Of Account.
|
|
560
|
+
* @property {string} display_name - Display Name Of Account.
|
|
553
561
|
*/
|
|
554
562
|
|
|
555
563
|
/**
|
|
556
564
|
* @typedef OrderBeneficiaryResponse
|
|
557
565
|
* @property {boolean} [show_beneficiary_details] - Show beneficiary details or not.
|
|
558
|
-
* @property {OrderBeneficiaryDetails[]} [beneficiaries] - All Beneficiaries Of An Order
|
|
566
|
+
* @property {OrderBeneficiaryDetails[]} [beneficiaries] - All Beneficiaries Of An Order.
|
|
559
567
|
*/
|
|
560
568
|
|
|
561
569
|
/**
|
|
562
570
|
* @typedef NotFoundResourceError
|
|
563
|
-
* @property {string} code - Bad Request Data
|
|
564
|
-
* @property {string} description - Not Found
|
|
565
|
-
* @property {boolean} success - Response is successful or not
|
|
571
|
+
* @property {string} code - Bad Request Data.
|
|
572
|
+
* @property {string} description - Not Found.
|
|
573
|
+
* @property {boolean} success - Response is successful or not.
|
|
566
574
|
*/
|
|
567
575
|
|
|
568
576
|
/**
|
|
569
577
|
* @typedef IfscCodeResponse
|
|
570
|
-
* @property {string} branch_name - Branch Name Of Account
|
|
571
|
-
* @property {boolean} [success] - Response is successful or not
|
|
572
|
-
* @property {string} bank_name - Bank Name Of Account
|
|
578
|
+
* @property {string} branch_name - Branch Name Of Account.
|
|
579
|
+
* @property {boolean} [success] - Response is successful or not.
|
|
580
|
+
* @property {string} bank_name - Bank Name Of Account.
|
|
573
581
|
*/
|
|
574
582
|
|
|
575
583
|
/**
|
|
576
584
|
* @typedef ErrorCodeDescription
|
|
577
|
-
* @property {string} code - Error
|
|
585
|
+
* @property {string} code - Error description code.
|
|
578
586
|
* @property {string} description - Error human understandable description.
|
|
579
|
-
* @property {boolean} success - Response is successful or not
|
|
587
|
+
* @property {boolean} success - Response is successful or not.
|
|
580
588
|
*/
|
|
581
589
|
|
|
582
590
|
/**
|
|
583
591
|
* @typedef AddBeneficiaryViaOtpVerificationRequest
|
|
584
|
-
* @property {string} request_id - Request
|
|
585
|
-
* @property {string} hash_key - Hash key of the beneficiary Id
|
|
586
|
-
* @property {string} otp - Otp sent to the given Mobile No
|
|
592
|
+
* @property {string} request_id - Request id.
|
|
593
|
+
* @property {string} hash_key - Hash key of the beneficiary Id.
|
|
594
|
+
* @property {string} otp - Otp sent to the given Mobile No.
|
|
587
595
|
*/
|
|
588
596
|
|
|
589
597
|
/**
|
|
590
598
|
* @typedef AddBeneficiaryViaOtpVerificationResponse
|
|
591
|
-
* @property {boolean} [success] - Response is successful or not
|
|
592
|
-
* @property {string} message - Aggregator Response of
|
|
599
|
+
* @property {boolean} [success] - Response is successful or not.
|
|
600
|
+
* @property {string} message - Aggregator Response of beneficiary.
|
|
593
601
|
*/
|
|
594
602
|
|
|
595
603
|
/**
|
|
596
604
|
* @typedef WrongOtpError
|
|
597
|
-
* @property {boolean} is_verified_flag -
|
|
598
|
-
* @property {string} description - Wrong OTP Code
|
|
599
|
-
* @property {string} success - Response is successful or not
|
|
605
|
+
* @property {boolean} is_verified_flag - Verified flag.
|
|
606
|
+
* @property {string} description - Wrong OTP Code.
|
|
607
|
+
* @property {string} success - Response is successful or not.
|
|
600
608
|
*/
|
|
601
609
|
|
|
602
610
|
/**
|
|
603
611
|
* @typedef BeneficiaryModeDetails
|
|
604
|
-
* @property {string} account_no - Account
|
|
605
|
-
* @property {string} [address] - Address of the User
|
|
606
|
-
* @property {string} mobile -
|
|
607
|
-
* @property {string} bank_name - Bank Name of the Account
|
|
608
|
-
* @property {string} [comment] - Remarks added by The user
|
|
609
|
-
* @property {string} ifsc_code - Ifsc Code of the Account
|
|
610
|
-
* @property {string} [vpa]
|
|
611
|
-
* @property {string} branch_name - Branch Name of the Account
|
|
612
|
-
* @property {string} account_holder - Name of the Account Holder
|
|
613
|
-
* @property {string} [wallet]
|
|
614
|
-
* @property {string} email - Email of the Account Holder
|
|
612
|
+
* @property {string} account_no - Account Number of the Account Holder.
|
|
613
|
+
* @property {string} [address] - Address of the User.
|
|
614
|
+
* @property {string} mobile - Mobile Number of the User.
|
|
615
|
+
* @property {string} bank_name - Bank Name of the Account.
|
|
616
|
+
* @property {string} [comment] - Remarks added by The user.
|
|
617
|
+
* @property {string} ifsc_code - Ifsc Code of the Account.
|
|
618
|
+
* @property {string} [vpa] - VPA of the Account.
|
|
619
|
+
* @property {string} branch_name - Branch Name of the Account.
|
|
620
|
+
* @property {string} account_holder - Name of the Account Holder.
|
|
621
|
+
* @property {string} [wallet] - Wallet of the Account.
|
|
622
|
+
* @property {string} email - Email of the Account Holder.
|
|
615
623
|
*/
|
|
616
624
|
|
|
617
625
|
/**
|
|
618
626
|
* @typedef AddBeneficiaryDetailsRequest
|
|
619
627
|
* @property {boolean} delights - True if beneficiary to be added by delights or
|
|
620
|
-
* False if by User
|
|
621
|
-
* @property {string} shipment_id - Shipment Id of the respective Merchant Order Id
|
|
628
|
+
* False if by User.
|
|
629
|
+
* @property {string} shipment_id - Shipment Id of the respective Merchant Order Id.
|
|
622
630
|
* @property {BeneficiaryModeDetails} details
|
|
623
|
-
* @property {string} [otp]
|
|
624
|
-
* @property {string} order_id - Merchant Order Id
|
|
625
|
-
* @property {string} transfer_mode - Transfer Mode of the Beneficiary to be added
|
|
626
|
-
* @property {string} [request_id]
|
|
631
|
+
* @property {string} [otp] - OTP received by customer.
|
|
632
|
+
* @property {string} order_id - Merchant Order Id.
|
|
633
|
+
* @property {string} transfer_mode - Transfer Mode of the Beneficiary to be added.
|
|
634
|
+
* @property {string} [request_id] - Request Id for add benificiary request.
|
|
627
635
|
*/
|
|
628
636
|
|
|
629
637
|
/**
|
|
630
638
|
* @typedef RefundAccountResponse
|
|
631
|
-
* @property {boolean} [is_verified_flag]
|
|
639
|
+
* @property {boolean} [is_verified_flag] - Flag for verification of refund.
|
|
632
640
|
* @property {Object} [data] - Refund account data.
|
|
633
641
|
* @property {boolean} success - Success or failure flag.
|
|
634
|
-
* @property {string} message - Response message
|
|
642
|
+
* @property {string} message - Response message.
|
|
635
643
|
*/
|
|
636
644
|
|
|
637
645
|
/**
|
|
638
646
|
* @typedef BankDetailsForOTP
|
|
639
|
-
* @property {string} account_no
|
|
640
|
-
* @property {string} bank_name
|
|
641
|
-
* @property {string} ifsc_code
|
|
642
|
-
* @property {string} branch_name
|
|
643
|
-
* @property {string} account_holder
|
|
647
|
+
* @property {string} account_no - Account number of the holder.
|
|
648
|
+
* @property {string} bank_name - Name of the bank.
|
|
649
|
+
* @property {string} ifsc_code - IFSC code of the bank.
|
|
650
|
+
* @property {string} branch_name - Branch name of the bank.
|
|
651
|
+
* @property {string} account_holder - Name of the account holder.
|
|
644
652
|
*/
|
|
645
653
|
|
|
646
654
|
/**
|
|
647
655
|
* @typedef AddBeneficiaryDetailsOTPRequest
|
|
648
|
-
* @property {string} order_id
|
|
656
|
+
* @property {string} order_id - Unique identifier for an order.
|
|
649
657
|
* @property {BankDetailsForOTP} details
|
|
650
658
|
*/
|
|
651
659
|
|
|
652
660
|
/**
|
|
653
661
|
* @typedef WalletOtpRequest
|
|
654
|
-
* @property {string} country_code - Country Code of the Mobile Number
|
|
655
|
-
* @property {string} mobile - Wallet
|
|
662
|
+
* @property {string} country_code - Country Code of the Mobile Number.
|
|
663
|
+
* @property {string} mobile - Wallet Mobile Number of the User.
|
|
656
664
|
*/
|
|
657
665
|
|
|
658
666
|
/**
|
|
659
667
|
* @typedef WalletOtpResponse
|
|
660
|
-
* @property {string} request_id - Request
|
|
668
|
+
* @property {string} request_id - Request Id for wallet otp request.
|
|
661
669
|
* @property {string} is_verified_flag - Boolean Flag whether OTP Validation is
|
|
662
|
-
* already done or not
|
|
663
|
-
* @property {boolean} [success] - Response is successful or not
|
|
670
|
+
* already done or not.
|
|
671
|
+
* @property {boolean} [success] - Response is successful or not.
|
|
664
672
|
*/
|
|
665
673
|
|
|
666
674
|
/**
|
|
667
675
|
* @typedef SetDefaultBeneficiaryRequest
|
|
668
|
-
* @property {string} order_id - Merchant Order Id
|
|
669
|
-
* @property {string} beneficiary_id - Beneficiary Hash Id of the beneficiary added
|
|
676
|
+
* @property {string} order_id - Merchant Order Id.
|
|
677
|
+
* @property {string} beneficiary_id - Beneficiary Hash Id of the beneficiary added.
|
|
670
678
|
*/
|
|
671
679
|
|
|
672
680
|
/**
|
|
673
681
|
* @typedef SetDefaultBeneficiaryResponse
|
|
674
|
-
* @property {boolean} is_beneficiary_set - Boolean Flag whether Beneficiary set or not
|
|
675
|
-
* @property {boolean} [success] - Response is successful or not
|
|
682
|
+
* @property {boolean} is_beneficiary_set - Boolean Flag whether Beneficiary set or not.
|
|
683
|
+
* @property {boolean} [success] - Response is successful or not.
|
|
676
684
|
*/
|
|
677
685
|
|
|
678
686
|
/**
|
|
679
687
|
* @typedef GetPaymentLinkResponse
|
|
680
|
-
* @property {number} status_code - HTTP status code
|
|
681
|
-
* @property {string} [payment_link_current_status] - Status of payment link
|
|
682
|
-
* @property {boolean} success - Successful or failure
|
|
683
|
-
* @property {number} [polling_timeout] - Polling request timeout
|
|
684
|
-
* @property {string} [payment_link_url] - Url of payment link
|
|
685
|
-
* @property {string} [external_order_id] - Merchant order id
|
|
686
|
-
* @property {string} message -
|
|
687
|
-
* @property {string} [merchant_name] - Merchant name
|
|
688
|
-
* @property {number} [amount] - Total value of order
|
|
688
|
+
* @property {number} status_code - HTTP status code.
|
|
689
|
+
* @property {string} [payment_link_current_status] - Status of payment link.
|
|
690
|
+
* @property {boolean} success - Successful or failure.
|
|
691
|
+
* @property {number} [polling_timeout] - Polling request timeout.
|
|
692
|
+
* @property {string} [payment_link_url] - Url of payment link.
|
|
693
|
+
* @property {string} [external_order_id] - Merchant order id.
|
|
694
|
+
* @property {string} message - Detailed message.
|
|
695
|
+
* @property {string} [merchant_name] - Merchant name.
|
|
696
|
+
* @property {number} [amount] - Total value of order.
|
|
689
697
|
*/
|
|
690
698
|
|
|
691
699
|
/**
|
|
692
700
|
* @typedef ErrorDescription
|
|
693
|
-
* @property {string} [payment_transaction_id] - Payment transaction id
|
|
694
|
-
* @property {boolean} [expired] - Payment link expired or not
|
|
695
|
-
* @property {string} [merchant_order_id] - Order
|
|
696
|
-
* @property {string} [merchant_name] - Name of merchant that created payment link
|
|
697
|
-
* @property {string} [msg] -
|
|
698
|
-
* @property {boolean} [cancelled] - Payment link is cancelled or not
|
|
699
|
-
* @property {number} [amount] - Amount paid
|
|
700
|
-
* @property {boolean} [invalid_id] - Payment link id is valid or not
|
|
701
|
+
* @property {string} [payment_transaction_id] - Payment transaction id.
|
|
702
|
+
* @property {boolean} [expired] - Payment link expired or not.
|
|
703
|
+
* @property {string} [merchant_order_id] - Merchant Order Id.
|
|
704
|
+
* @property {string} [merchant_name] - Name of merchant that created payment link.
|
|
705
|
+
* @property {string} [msg] - Detailed message.
|
|
706
|
+
* @property {boolean} [cancelled] - Payment link is cancelled or not.
|
|
707
|
+
* @property {number} [amount] - Amount paid.
|
|
708
|
+
* @property {boolean} [invalid_id] - Payment link id is valid or not.
|
|
701
709
|
*/
|
|
702
710
|
|
|
703
711
|
/**
|
|
704
712
|
* @typedef ErrorResponse
|
|
705
|
-
* @property {number} status_code - HTTP status code
|
|
713
|
+
* @property {number} status_code - HTTP status code.
|
|
706
714
|
* @property {ErrorDescription} [error]
|
|
707
|
-
* @property {string} message -
|
|
708
|
-
* @property {boolean} success - Successful or failure
|
|
715
|
+
* @property {string} message - Detailed message.
|
|
716
|
+
* @property {boolean} success - Successful or failure.
|
|
709
717
|
*/
|
|
710
718
|
|
|
711
719
|
/**
|
|
712
720
|
* @typedef CreatePaymentLinkMeta
|
|
713
|
-
* @property {string} cart_id
|
|
714
|
-
* @property {string} checkout_mode
|
|
715
|
-
*
|
|
716
|
-
* @property {string}
|
|
721
|
+
* @property {string} cart_id - Unique identifier for the shopping cart.
|
|
722
|
+
* @property {string} checkout_mode - Mode of checkout process (e.g., guest,
|
|
723
|
+
* registered user).
|
|
724
|
+
* @property {string} [assign_card_id] - Identifier for the card assigned to the
|
|
725
|
+
* transaction.
|
|
726
|
+
* @property {string} amount - Total amount for the transaction.
|
|
717
727
|
*/
|
|
718
728
|
|
|
719
729
|
/**
|
|
720
730
|
* @typedef CreatePaymentLinkRequest
|
|
721
|
-
* @property {string} [description] - Merchant order id
|
|
722
|
-
* @property {string} external_order_id - Merchant order id
|
|
731
|
+
* @property {string} [description] - Merchant order id.
|
|
732
|
+
* @property {string} external_order_id - Merchant order id.
|
|
723
733
|
* @property {string} mobile_number - Mobile number to which the payment link is
|
|
724
|
-
* to be sent
|
|
725
|
-
* @property {number} amount - Total value of order
|
|
734
|
+
* to be sent.
|
|
735
|
+
* @property {number} amount - Total value of order.
|
|
726
736
|
* @property {CreatePaymentLinkMeta} meta
|
|
727
|
-
* @property {string} email - Email to which the payment link is to be sent
|
|
737
|
+
* @property {string} email - Email to which the payment link is to be sent.
|
|
728
738
|
*/
|
|
729
739
|
|
|
730
740
|
/**
|
|
731
741
|
* @typedef CreatePaymentLinkResponse
|
|
732
|
-
* @property {number} status_code - HTTP status code
|
|
733
|
-
* @property {boolean} success - Successful or failure
|
|
734
|
-
* @property {number} [polling_timeout] - Polling request timeout
|
|
735
|
-
* @property {string} [payment_link_url] - Url of payment link
|
|
736
|
-
* @property {string} message -
|
|
737
|
-
* @property {string} [payment_link_id] - Unique id of payment link
|
|
742
|
+
* @property {number} status_code - HTTP status code.
|
|
743
|
+
* @property {boolean} success - Successful or failure.
|
|
744
|
+
* @property {number} [polling_timeout] - Polling request timeout.
|
|
745
|
+
* @property {string} [payment_link_url] - Url of payment link.
|
|
746
|
+
* @property {string} message - Detailed message.
|
|
747
|
+
* @property {string} [payment_link_id] - Unique id of payment link.
|
|
738
748
|
*/
|
|
739
749
|
|
|
740
750
|
/**
|
|
741
751
|
* @typedef CancelOrResendPaymentLinkRequest
|
|
742
|
-
* @property {string} payment_link_id - Unique id of payment link
|
|
752
|
+
* @property {string} payment_link_id - Unique id of payment link.
|
|
743
753
|
*/
|
|
744
754
|
|
|
745
755
|
/**
|
|
746
756
|
* @typedef ResendPaymentLinkResponse
|
|
747
|
-
* @property {number} status_code - HTTP status code
|
|
748
|
-
* @property {number} [polling_timeout] - Polling request timeout
|
|
749
|
-
* @property {boolean} success - Successful or failure
|
|
750
|
-
* @property {string} message -
|
|
757
|
+
* @property {number} status_code - HTTP status code.
|
|
758
|
+
* @property {number} [polling_timeout] - Polling request timeout.
|
|
759
|
+
* @property {boolean} success - Successful or failure.
|
|
760
|
+
* @property {string} message - Detailed message.
|
|
751
761
|
*/
|
|
752
762
|
|
|
753
763
|
/**
|
|
754
764
|
* @typedef CancelPaymentLinkResponse
|
|
755
|
-
* @property {number} status_code - HTTP status code
|
|
756
|
-
* @property {boolean} success - Successful or failure
|
|
757
|
-
* @property {string} message -
|
|
765
|
+
* @property {number} status_code - HTTP status code.
|
|
766
|
+
* @property {boolean} success - Successful or failure.
|
|
767
|
+
* @property {string} message - Detailed message.
|
|
758
768
|
*/
|
|
759
769
|
|
|
760
770
|
/**
|
|
761
771
|
* @typedef PollingPaymentLinkResponse
|
|
762
|
-
* @property {string} [status] - Status of payment link
|
|
763
|
-
* @property {number} [status_code] - HTTP status code
|
|
764
|
-
* @property {boolean} [success] - Successful or failure
|
|
765
|
-
* @property {number} [http_status] - HTTP status code
|
|
766
|
-
* @property {string} [message] -
|
|
767
|
-
* @property {string} [order_id] - Fynd order id
|
|
768
|
-
* @property {string} [redirect_url] - Url to redirect to
|
|
769
|
-
* @property {string} [payment_link_id] - Payment link id
|
|
770
|
-
* @property {string} [aggregator_name] - Aggregator name
|
|
771
|
-
* @property {number} [amount] -
|
|
772
|
+
* @property {string} [status] - Status of payment link.
|
|
773
|
+
* @property {number} [status_code] - HTTP status code.
|
|
774
|
+
* @property {boolean} [success] - Successful or failure.
|
|
775
|
+
* @property {number} [http_status] - HTTP status code.
|
|
776
|
+
* @property {string} [message] - Detailed message.
|
|
777
|
+
* @property {string} [order_id] - Fynd order id.
|
|
778
|
+
* @property {string} [redirect_url] - Url to redirect to.
|
|
779
|
+
* @property {string} [payment_link_id] - Payment link id.
|
|
780
|
+
* @property {string} [aggregator_name] - Aggregator name.
|
|
781
|
+
* @property {number} [amount] - Total amount for the transaction.
|
|
772
782
|
*/
|
|
773
783
|
|
|
774
784
|
/**
|
|
775
785
|
* @typedef PaymentMethodsMeta
|
|
776
|
-
* @property {string} merchant_code - Merchant code
|
|
777
|
-
* @property {string} payment_gateway - Payment gateway name
|
|
778
|
-
* @property {string} payment_identifier - Payment identifier
|
|
786
|
+
* @property {string} merchant_code - Merchant code.
|
|
787
|
+
* @property {string} payment_gateway - Payment gateway name.
|
|
788
|
+
* @property {string} payment_identifier - Payment identifier.
|
|
779
789
|
*/
|
|
780
790
|
|
|
781
791
|
/**
|
|
782
792
|
* @typedef CreateOrderUserPaymentMethods
|
|
783
|
-
* @property {string} name - Payment mode name
|
|
784
|
-
* @property {string} mode - Payment mode
|
|
793
|
+
* @property {string} name - Payment mode name.
|
|
794
|
+
* @property {string} mode - Payment mode.
|
|
785
795
|
* @property {PaymentMethodsMeta} meta
|
|
786
796
|
*/
|
|
787
797
|
|
|
788
798
|
/**
|
|
789
799
|
* @typedef CreateOrderUserRequest
|
|
790
|
-
* @property {string} failure_callback_url - Failure page url
|
|
791
|
-
* @property {string} currency - Currency
|
|
792
|
-
* @property {string} payment_link_id - Unique id of payment link
|
|
800
|
+
* @property {string} failure_callback_url - Failure page url.
|
|
801
|
+
* @property {string} currency - Currency of the transaction.
|
|
802
|
+
* @property {string} payment_link_id - Unique id of payment link.
|
|
793
803
|
* @property {CreateOrderUserPaymentMethods} payment_methods
|
|
794
|
-
* @property {string} success_callback_url - Success page url
|
|
795
|
-
* @property {Object} [meta] - Meta
|
|
804
|
+
* @property {string} success_callback_url - Success page url.
|
|
805
|
+
* @property {Object} [meta] - Meta details.
|
|
796
806
|
*/
|
|
797
807
|
|
|
798
808
|
/**
|
|
799
809
|
* @typedef CreateOrderUserData
|
|
800
|
-
* @property {string} [method] - Method
|
|
801
|
-
* @property {string} [aggregator] - Aggregator name
|
|
802
|
-
* @property {string} [customer_id] - Aggregator customer id
|
|
803
|
-
* @property {string} [contact] - Mobile number
|
|
804
|
-
* @property {string} [merchant_order_id] - Merchant order id
|
|
805
|
-
* @property {string} [order_id] - Aggregator order id
|
|
806
|
-
* @property {string} [currency] - Currency
|
|
807
|
-
* @property {string} [callback_url] - Callback url for aggregator
|
|
808
|
-
* @property {number} [amount] -
|
|
809
|
-
* @property {string} [email] - Email
|
|
810
|
+
* @property {string} [method] - Method details.
|
|
811
|
+
* @property {string} [aggregator] - Aggregator name.
|
|
812
|
+
* @property {string} [customer_id] - Aggregator customer id.
|
|
813
|
+
* @property {string} [contact] - Mobile number.
|
|
814
|
+
* @property {string} [merchant_order_id] - Merchant order id.
|
|
815
|
+
* @property {string} [order_id] - Aggregator order id.
|
|
816
|
+
* @property {string} [currency] - Currency of the transaction.
|
|
817
|
+
* @property {string} [callback_url] - Callback url for aggregator.
|
|
818
|
+
* @property {number} [amount] - Total amount for the transaction.
|
|
819
|
+
* @property {string} [email] - Email.
|
|
810
820
|
*/
|
|
811
821
|
|
|
812
822
|
/**
|
|
813
823
|
* @typedef CreateOrderUserResponse
|
|
814
|
-
* @property {number} status_code - HTTP status code
|
|
815
|
-
* @property {boolean} success - Successful or failure
|
|
824
|
+
* @property {number} status_code - HTTP status code.
|
|
825
|
+
* @property {boolean} success - Successful or failure.
|
|
816
826
|
* @property {CreateOrderUserData} [data]
|
|
817
|
-
* @property {string} message -
|
|
818
|
-
* @property {string} [order_id] - Merchant order id
|
|
819
|
-
* @property {string} [callback_url] - Callback url for aggregator
|
|
820
|
-
* @property {string} [payment_confirm_url] - Payment confirm url for aggregator
|
|
827
|
+
* @property {string} message - Detailed message.
|
|
828
|
+
* @property {string} [order_id] - Merchant order id.
|
|
829
|
+
* @property {string} [callback_url] - Callback url for aggregator.
|
|
830
|
+
* @property {string} [payment_confirm_url] - Payment confirm url for aggregator.
|
|
821
831
|
*/
|
|
822
832
|
|
|
823
833
|
/**
|
|
824
834
|
* @typedef BalanceDetails
|
|
825
|
-
* @property {string} [formatted_value] -
|
|
826
|
-
* @property {string} [currency] - Currency Code
|
|
827
|
-
* @property {number} [value] - Payment amount
|
|
835
|
+
* @property {string} [formatted_value] - Formatted Amount with currency symbol.
|
|
836
|
+
* @property {string} [currency] - Currency Code.
|
|
837
|
+
* @property {number} [value] - Payment amount.
|
|
828
838
|
*/
|
|
829
839
|
|
|
830
840
|
/**
|
|
831
841
|
* @typedef CreditSummary
|
|
832
842
|
* @property {BalanceDetails} [total_due_amount]
|
|
833
|
-
* @property {string} [status] - Customer Credit status
|
|
843
|
+
* @property {string} [status] - Customer Credit status.
|
|
834
844
|
* @property {BalanceDetails} [limit]
|
|
835
|
-
* @property {string} [credit_line_id] - ID at Credit aggregator
|
|
845
|
+
* @property {string} [credit_line_id] - ID at Credit aggregator end.
|
|
836
846
|
* @property {BalanceDetails} [amount_available]
|
|
837
847
|
* @property {BalanceDetails} [due_amount]
|
|
838
|
-
* @property {string} [due_date] - Due date for repayment
|
|
848
|
+
* @property {string} [due_date] - Due date for repayment.
|
|
839
849
|
* @property {BalanceDetails} [balance]
|
|
840
|
-
* @property {string} [status_message] - Message to customer
|
|
841
|
-
* @property {string} [repayment_url] - Url for repayment
|
|
850
|
+
* @property {string} [status_message] - Message to customer.
|
|
851
|
+
* @property {string} [repayment_url] - Url for repayment.
|
|
842
852
|
* @property {string} [soa_url] - Statement of accounts. Show payment history.
|
|
843
|
-
* @property {boolean} [is_eligible_for_txn] -
|
|
844
|
-
* @property {string} [merchant_customer_ref_id] - Unique aggregator customer id
|
|
845
|
-
* @property {string} [buyer_status] - Status from Credit aggregator
|
|
846
|
-
* @property {string} [activation_url] - Url for activation
|
|
853
|
+
* @property {boolean} [is_eligible_for_txn] - Eligibility flag to complete transaction.
|
|
854
|
+
* @property {string} [merchant_customer_ref_id] - Unique aggregator customer id.
|
|
855
|
+
* @property {string} [buyer_status] - Status from Credit aggregator end.
|
|
856
|
+
* @property {string} [activation_url] - Url for activation.
|
|
847
857
|
*/
|
|
848
858
|
|
|
849
859
|
/**
|
|
@@ -854,7 +864,7 @@ const Joi = require("joi");
|
|
|
854
864
|
|
|
855
865
|
/**
|
|
856
866
|
* @typedef RedirectURL
|
|
857
|
-
* @property {boolean} status - Aggregator
|
|
867
|
+
* @property {boolean} status - Aggregator Operation is successful or not.
|
|
858
868
|
* @property {string} signup_url - URL to which the user may redirect.
|
|
859
869
|
*/
|
|
860
870
|
|
|
@@ -879,75 +889,79 @@ const Joi = require("joi");
|
|
|
879
889
|
|
|
880
890
|
/**
|
|
881
891
|
* @typedef KYCAddress
|
|
882
|
-
* @property {string} city - City
|
|
883
|
-
* @property {string} [addressline2] -
|
|
884
|
-
* @property {string} state - State
|
|
885
|
-
* @property {string} [ownership_type] -
|
|
886
|
-
*
|
|
887
|
-
* @property {string}
|
|
888
|
-
* @property {string}
|
|
892
|
+
* @property {string} city - City of the KYC address.
|
|
893
|
+
* @property {string} [addressline2] - Second line of the address.
|
|
894
|
+
* @property {string} state - State of the KYC address.
|
|
895
|
+
* @property {string} [ownership_type] - Type of ownership for the address
|
|
896
|
+
* (e.g., rented, owned).
|
|
897
|
+
* @property {string} pincode - Postal code of the address.
|
|
898
|
+
* @property {string} [land_mark] - Landmark near the address.
|
|
899
|
+
* @property {string} addressline1 - First line of the address.
|
|
889
900
|
*/
|
|
890
901
|
|
|
891
902
|
/**
|
|
892
903
|
* @typedef UserPersonalInfoInDetails
|
|
893
|
-
* @property {string} first_name - First
|
|
894
|
-
* @property {string} [voter_id] - Voter ID
|
|
895
|
-
* @property {string} [gender] - Gender
|
|
896
|
-
* @property {string} dob -
|
|
897
|
-
* @property {string} [passport] - Passport
|
|
898
|
-
* @property {string} [fathers_name] - Father's
|
|
899
|
-
* @property {string} [mothers_name] - Mother's
|
|
900
|
-
* @property {string} [middle_name] - Middle
|
|
901
|
-
* @property {string} [last_name] - Last
|
|
902
|
-
* @property {string} [pan] -
|
|
903
|
-
* @property {string} [driving_license] -
|
|
904
|
-
* @property {boolean} email_verified -
|
|
904
|
+
* @property {string} first_name - First name of the individual.
|
|
905
|
+
* @property {string} [voter_id] - Voter ID number.
|
|
906
|
+
* @property {string} [gender] - Gender of the individual.
|
|
907
|
+
* @property {string} dob - Date of birth of the individual.
|
|
908
|
+
* @property {string} [passport] - Passport number.
|
|
909
|
+
* @property {string} [fathers_name] - Father's name.
|
|
910
|
+
* @property {string} [mothers_name] - Mother's name.
|
|
911
|
+
* @property {string} [middle_name] - Middle name of the individual.
|
|
912
|
+
* @property {string} [last_name] - Last name of the individual.
|
|
913
|
+
* @property {string} [pan] - Permanent Account Number (PAN).
|
|
914
|
+
* @property {string} [driving_license] - Driving license number.
|
|
915
|
+
* @property {boolean} email_verified - Indicates whether the email is verified.
|
|
905
916
|
* @property {KYCAddress} address_as_per_id
|
|
906
|
-
* @property {boolean} mobile_verified -
|
|
907
|
-
* @property {string} phone -
|
|
908
|
-
* @property {string} [email] - Email
|
|
917
|
+
* @property {boolean} mobile_verified - Indicates whether the mobile number is verified.
|
|
918
|
+
* @property {string} phone - Phone number.
|
|
919
|
+
* @property {string} [email] - Email address.
|
|
909
920
|
*/
|
|
910
921
|
|
|
911
922
|
/**
|
|
912
923
|
* @typedef MarketplaceInfo
|
|
913
|
-
* @property {string} [date_of_joining] - Date of joining
|
|
914
|
-
* @property {string} name - Name of store
|
|
915
|
-
* @property {string} membership_id - Merchant id
|
|
924
|
+
* @property {string} [date_of_joining] - Date of joining.
|
|
925
|
+
* @property {string} name - Name of store.
|
|
926
|
+
* @property {string} membership_id - Merchant id.
|
|
916
927
|
*/
|
|
917
928
|
|
|
918
929
|
/**
|
|
919
930
|
* @typedef BusinessDetails
|
|
920
|
-
* @property {string} [business_ownership_type] -
|
|
921
|
-
*
|
|
922
|
-
* @property {string} [
|
|
923
|
-
* @property {string} [
|
|
924
|
-
* @property {string} [
|
|
925
|
-
* @property {
|
|
926
|
-
* @property {
|
|
927
|
-
*
|
|
928
|
-
* @property {string} [
|
|
929
|
-
*
|
|
931
|
+
* @property {string} [business_ownership_type] - Type of business ownership
|
|
932
|
+
* (e.g., sole proprietorship, partnership).
|
|
933
|
+
* @property {string} [vintage] - Age or duration of the business.
|
|
934
|
+
* @property {string} [gstin] - Goods and Services Tax Identification Number.
|
|
935
|
+
* @property {string} [pan] - Permanent Account Number of the business.
|
|
936
|
+
* @property {string} [entity_type] - Type of legal entity (e.g., corporation, LLC).
|
|
937
|
+
* @property {Object} [shop_and_establishment] - Shop and Establishment
|
|
938
|
+
* registration details.
|
|
939
|
+
* @property {string} [fssai] - Food Safety and Standards Authority of India
|
|
940
|
+
* registration number.
|
|
941
|
+
* @property {string} [fda] - Food and Drug Administration registration number.
|
|
942
|
+
* @property {string} [business_type] - Type of business (e.g., retail, wholesale).
|
|
943
|
+
* @property {string} [name] - Name of the business.
|
|
930
944
|
* @property {KYCAddress} [address]
|
|
931
945
|
*/
|
|
932
946
|
|
|
933
947
|
/**
|
|
934
948
|
* @typedef DeviceDetails
|
|
935
|
-
* @property {string} [identification_number] - IP
|
|
936
|
-
* @property {string} [identifier_type] - Static value = ip
|
|
937
|
-
* @property {string} [device_model] - Device Model
|
|
938
|
-
* @property {string} [device_make] - Device maker
|
|
939
|
-
* @property {string} [device_type] - Device Type(E.g. Mobile)
|
|
940
|
-
* @property {string} [os] - OS Name
|
|
941
|
-
* @property {string} [os_version] - OS Version
|
|
949
|
+
* @property {string} [identification_number] - IP.
|
|
950
|
+
* @property {string} [identifier_type] - Static value = ip.
|
|
951
|
+
* @property {string} [device_model] - Device Model.
|
|
952
|
+
* @property {string} [device_make] - Device maker.
|
|
953
|
+
* @property {string} [device_type] - Device Type(E.g. Mobile).
|
|
954
|
+
* @property {string} [os] - OS Name.
|
|
955
|
+
* @property {string} [os_version] - OS Version.
|
|
942
956
|
*/
|
|
943
957
|
|
|
944
958
|
/**
|
|
945
959
|
* @typedef CustomerOnboardingRequest
|
|
946
960
|
* @property {UserPersonalInfoInDetails} [personal_info]
|
|
947
|
-
* @property {string} [mcc] -
|
|
948
|
-
* @property {string} aggregator -
|
|
961
|
+
* @property {string} [mcc] - Merchant Category Code, indicating the type of business.
|
|
962
|
+
* @property {string} aggregator - Payment aggregator handling the transaction.
|
|
949
963
|
* @property {MarketplaceInfo} [marketplace_info]
|
|
950
|
-
* @property {string} source -
|
|
964
|
+
* @property {string} source - Callback url.
|
|
951
965
|
* @property {BusinessDetails} [business_info]
|
|
952
966
|
* @property {DeviceDetails} [device]
|
|
953
967
|
*/
|
|
@@ -955,12 +969,12 @@ const Joi = require("joi");
|
|
|
955
969
|
/**
|
|
956
970
|
* @typedef OnboardSummary
|
|
957
971
|
* @property {string} [redirect_url] - URL to which the user may redirect.
|
|
958
|
-
* @property {Object} [session] - User Session
|
|
959
|
-
* @property {boolean} status - Transaction status
|
|
960
|
-
* @property {string} [status_remark] -
|
|
961
|
-
* @property {boolean} [is_eligible_for_txn] - Whether is eligible for transaction
|
|
962
|
-
* @property {string} [merchant_customer_ref_id] - Rupifi customer ID
|
|
963
|
-
* @property {string} [activation_url] - Url for activation
|
|
972
|
+
* @property {Object} [session] - User Session.
|
|
973
|
+
* @property {boolean} status - Transaction status.
|
|
974
|
+
* @property {string} [status_remark] - Description of status.
|
|
975
|
+
* @property {boolean} [is_eligible_for_txn] - Whether is eligible for transaction.
|
|
976
|
+
* @property {string} [merchant_customer_ref_id] - Rupifi customer ID.
|
|
977
|
+
* @property {string} [activation_url] - Url for activation.
|
|
964
978
|
*/
|
|
965
979
|
|
|
966
980
|
/**
|
|
@@ -971,32 +985,32 @@ const Joi = require("joi");
|
|
|
971
985
|
|
|
972
986
|
/**
|
|
973
987
|
* @typedef OutstandingOrderDetailsResponse
|
|
974
|
-
* @property {number} status_code - HTTP Status code
|
|
975
|
-
* @property {Object[]} [data] - Dict containing the outstanding order details
|
|
988
|
+
* @property {number} status_code - HTTP Status code.
|
|
989
|
+
* @property {Object[]} [data] - Dict containing the outstanding order details.
|
|
976
990
|
* @property {boolean} success - Response is successful or not.
|
|
977
|
-
* @property {string} [message] - Message
|
|
991
|
+
* @property {string} [message] - Message.
|
|
978
992
|
*/
|
|
979
993
|
|
|
980
994
|
/**
|
|
981
995
|
* @typedef PaidOrderDetailsResponse
|
|
982
|
-
* @property {number} status_code - HTTP Status code
|
|
983
|
-
* @property {Object[]} [data] - Dict containing the paid order details
|
|
996
|
+
* @property {number} status_code - HTTP Status code.
|
|
997
|
+
* @property {Object[]} [data] - Dict containing the paid order details.
|
|
984
998
|
* @property {boolean} success - Response is successful or not.
|
|
985
|
-
* @property {string} [message] - Message
|
|
999
|
+
* @property {string} [message] - Message.
|
|
986
1000
|
*/
|
|
987
1001
|
|
|
988
1002
|
/**
|
|
989
1003
|
* @typedef DeleteRefundAccountResponse
|
|
990
|
-
* @property {boolean} success - Success/Failure of the deleted beneficiary
|
|
991
|
-
* @property {string} message - Message
|
|
1004
|
+
* @property {boolean} success - Success/Failure of the deleted beneficiary.
|
|
1005
|
+
* @property {string} message - Message.
|
|
992
1006
|
*/
|
|
993
1007
|
|
|
994
1008
|
/**
|
|
995
1009
|
* @typedef RefundOptionsDetails
|
|
996
|
-
* @property {string} display_name - Refund option display name
|
|
997
|
-
* @property {number} id - Refund ID. It will be unique identifier
|
|
998
|
-
* @property {boolean} [is_active] - Refund option is active or not
|
|
999
|
-
* @property {string} name - Refund option name
|
|
1010
|
+
* @property {string} display_name - Refund option display name.
|
|
1011
|
+
* @property {number} id - Refund ID. It will be unique identifier.
|
|
1012
|
+
* @property {boolean} [is_active] - Refund option is active or not.
|
|
1013
|
+
* @property {string} name - Refund option name.
|
|
1000
1014
|
*/
|
|
1001
1015
|
|
|
1002
1016
|
/**
|
|
@@ -1008,63 +1022,63 @@ const Joi = require("joi");
|
|
|
1008
1022
|
* @typedef OfflineRefundOptions
|
|
1009
1023
|
* @property {RefundOptionsDetails} items - List of all refund options.
|
|
1010
1024
|
* @property {string[]} payment_modes - List of all offline payment options. MOP
|
|
1011
|
-
* Code value
|
|
1025
|
+
* Code value.
|
|
1012
1026
|
*/
|
|
1013
1027
|
|
|
1014
1028
|
/**
|
|
1015
1029
|
* @typedef RefundOptionResponse
|
|
1016
1030
|
* @property {OfflineRefundOptions} offline_refund_options - Available offline
|
|
1017
|
-
* refund options data
|
|
1018
|
-
* @property {boolean} success - Success/Failure Of response
|
|
1019
|
-
* @property {RefundOptions} refund_options - Available refund options data
|
|
1031
|
+
* refund options data.
|
|
1032
|
+
* @property {boolean} success - Success/Failure Of response.
|
|
1033
|
+
* @property {RefundOptions} refund_options - Available refund options data.
|
|
1020
1034
|
*/
|
|
1021
1035
|
|
|
1022
1036
|
/**
|
|
1023
1037
|
* @typedef SelectedRefundOptionResponse
|
|
1024
|
-
* @property {Object} transfer_mode - Selected transfer mode for given shipment
|
|
1025
|
-
* @property {string} shipment_id -
|
|
1026
|
-
* @property {string} message -
|
|
1027
|
-
* @property {boolean} success -
|
|
1038
|
+
* @property {Object} transfer_mode - Selected transfer mode for given shipment.
|
|
1039
|
+
* @property {string} shipment_id - ID of the shipment.
|
|
1040
|
+
* @property {string} message - Detailed message.
|
|
1041
|
+
* @property {boolean} success - Whether refund is successful or not.
|
|
1028
1042
|
*/
|
|
1029
1043
|
|
|
1030
1044
|
/**
|
|
1031
1045
|
* @typedef WalletBeneficiaryDetails
|
|
1032
|
-
* @property {string} beneficiary_id -
|
|
1033
|
-
* @property {string} modified_on - MOdification Date of Beneficiary
|
|
1034
|
-
* @property {string} display_name - Display Name Of Account
|
|
1035
|
-
* @property {number} id -
|
|
1036
|
-
* @property {string} subtitle - SHort Title Of Account
|
|
1037
|
-
* @property {string} transfer_mode - Transfer Mode Of Account
|
|
1038
|
-
* @property {string} [mobile] - MObile no of User
|
|
1039
|
-
* @property {boolean} is_active - Boolean Flag whether Beneficiary set or not
|
|
1040
|
-
* @property {string} created_on - Creation Date of Beneficiary
|
|
1041
|
-
* @property {string} address - Address of User
|
|
1042
|
-
* @property {string} title - Title Of Account
|
|
1043
|
-
* @property {string} wallet_address - Bank Name Of Account
|
|
1044
|
-
* @property {string} [comment] - Remarks
|
|
1045
|
-
* @property {string} [wallet] - Branch Name Of Account
|
|
1046
|
-
* @property {string} email - EMail of User
|
|
1047
|
-
* @property {string} [delights_user_name] - User Id Who filled the Beneficiary
|
|
1046
|
+
* @property {string} beneficiary_id - Beneficiary Id.
|
|
1047
|
+
* @property {string} modified_on - MOdification Date of Beneficiary.
|
|
1048
|
+
* @property {string} display_name - Display Name Of Account.
|
|
1049
|
+
* @property {number} id - Id of the wallet beneficiary.
|
|
1050
|
+
* @property {string} subtitle - SHort Title Of Account.
|
|
1051
|
+
* @property {string} transfer_mode - Transfer Mode Of Account.
|
|
1052
|
+
* @property {string} [mobile] - MObile no of User.
|
|
1053
|
+
* @property {boolean} is_active - Boolean Flag whether Beneficiary set or not.
|
|
1054
|
+
* @property {string} created_on - Creation Date of Beneficiary.
|
|
1055
|
+
* @property {string} address - Address of User.
|
|
1056
|
+
* @property {string} title - Title Of Account.
|
|
1057
|
+
* @property {string} wallet_address - Bank Name Of Account.
|
|
1058
|
+
* @property {string} [comment] - Remarks.
|
|
1059
|
+
* @property {string} [wallet] - Branch Name Of Account.
|
|
1060
|
+
* @property {string} email - EMail of User.
|
|
1061
|
+
* @property {string} [delights_user_name] - User Id Who filled the Beneficiary.
|
|
1048
1062
|
*/
|
|
1049
1063
|
|
|
1050
1064
|
/**
|
|
1051
1065
|
* @typedef UpiBeneficiaryDetails
|
|
1052
|
-
* @property {string} beneficiary_id -
|
|
1053
|
-
* @property {string} modified_on - MOdification Date of Beneficiary
|
|
1054
|
-
* @property {string} display_name - Display Name Of Account
|
|
1055
|
-
* @property {number} id -
|
|
1056
|
-
* @property {string} subtitle - SHort Title Of Account
|
|
1057
|
-
* @property {string} transfer_mode - Transfer Mode Of Account
|
|
1058
|
-
* @property {string} [vpa] - Branch Name Of Account
|
|
1059
|
-
* @property {string} [mobile] - Mobile no of User
|
|
1060
|
-
* @property {string} vpa_address - Bank Name Of Account
|
|
1061
|
-
* @property {string} created_on - Creation Date of Beneficiary
|
|
1062
|
-
* @property {string} address - Address of User
|
|
1063
|
-
* @property {string} title - Title Of Account
|
|
1064
|
-
* @property {string} [comment] - Remarks
|
|
1065
|
-
* @property {boolean} is_active - Boolean Flag whether Beneficiary set or not
|
|
1066
|
-
* @property {string} email - EMail of User
|
|
1067
|
-
* @property {string} [delights_user_name] - User Id Who filled the Beneficiary
|
|
1066
|
+
* @property {string} beneficiary_id - Beneficiary Id.
|
|
1067
|
+
* @property {string} modified_on - MOdification Date of Beneficiary.
|
|
1068
|
+
* @property {string} display_name - Display Name Of Account.
|
|
1069
|
+
* @property {number} id - Id of the upi beneficiary.
|
|
1070
|
+
* @property {string} subtitle - SHort Title Of Account.
|
|
1071
|
+
* @property {string} transfer_mode - Transfer Mode Of Account.
|
|
1072
|
+
* @property {string} [vpa] - Branch Name Of Account.
|
|
1073
|
+
* @property {string} [mobile] - Mobile no of User.
|
|
1074
|
+
* @property {string} vpa_address - Bank Name Of Account.
|
|
1075
|
+
* @property {string} created_on - Creation Date of Beneficiary.
|
|
1076
|
+
* @property {string} address - Address of User.
|
|
1077
|
+
* @property {string} title - Title Of Account.
|
|
1078
|
+
* @property {string} [comment] - Remarks.
|
|
1079
|
+
* @property {boolean} is_active - Boolean Flag whether Beneficiary set or not.
|
|
1080
|
+
* @property {string} email - EMail of User.
|
|
1081
|
+
* @property {string} [delights_user_name] - User Id Who filled the Beneficiary.
|
|
1068
1082
|
*/
|
|
1069
1083
|
|
|
1070
1084
|
/**
|
|
@@ -1080,100 +1094,102 @@ const Joi = require("joi");
|
|
|
1080
1094
|
* @property {boolean} show_beneficiary_details - Show Beneficiary details on UI or not.
|
|
1081
1095
|
* @property {BeneficiaryRefundOptions} data - Beneficiary Data for Bank
|
|
1082
1096
|
* account, UPI and Wallets.
|
|
1083
|
-
* @property {Object} limit - Max Limit for adding bank account, UPI and wallet
|
|
1097
|
+
* @property {Object} limit - Max Limit for adding bank account, UPI and wallet.
|
|
1084
1098
|
*/
|
|
1085
1099
|
|
|
1086
1100
|
/**
|
|
1087
1101
|
* @typedef ValidateValidateAddressRequest
|
|
1088
|
-
* @property {string} [ifsc_code] - IFSC Code
|
|
1089
|
-
* @property {string} [upi_vpa] - VPA Address
|
|
1090
|
-
* @property {string} [aggregator] - Aggregator Name
|
|
1102
|
+
* @property {string} [ifsc_code] - IFSC Code.
|
|
1103
|
+
* @property {string} [upi_vpa] - VPA Address.
|
|
1104
|
+
* @property {string} [aggregator] - Aggregator Name.
|
|
1091
1105
|
*/
|
|
1092
1106
|
|
|
1093
1107
|
/**
|
|
1094
1108
|
* @typedef VPADetails
|
|
1095
|
-
* @property {boolean} is_valid - Is VPA valid or not
|
|
1096
|
-
* @property {string} upi_vpa - VPA address
|
|
1097
|
-
* @property {string} status - VPA validation message
|
|
1098
|
-
* @property {string} customer_name - VPA Customer Name
|
|
1109
|
+
* @property {boolean} is_valid - Is VPA valid or not.
|
|
1110
|
+
* @property {string} upi_vpa - VPA address.
|
|
1111
|
+
* @property {string} status - VPA validation message.
|
|
1112
|
+
* @property {string} customer_name - VPA Customer Name.
|
|
1099
1113
|
*/
|
|
1100
1114
|
|
|
1101
1115
|
/**
|
|
1102
1116
|
* @typedef ValidateValidateAddressResponse
|
|
1103
1117
|
* @property {VPADetails} [upi] - UPI validation details.
|
|
1104
|
-
* @property {boolean} success -
|
|
1105
|
-
* @property {Object} [ifsc] - IFSC details response data
|
|
1118
|
+
* @property {boolean} success - Whether address validation is successful or not.
|
|
1119
|
+
* @property {Object} [ifsc] - IFSC details response data.
|
|
1106
1120
|
*/
|
|
1107
1121
|
|
|
1108
1122
|
/**
|
|
1109
1123
|
* @typedef PaymentMethodsMetaOrder
|
|
1110
|
-
* @property {string} merchant_code - Merchant code
|
|
1111
|
-
* @property {string} payment_gateway - Payment gateway name
|
|
1112
|
-
* @property {string} payment_identifier - Payment identifier
|
|
1124
|
+
* @property {string} merchant_code - Merchant code.
|
|
1125
|
+
* @property {string} payment_gateway - Payment gateway name.
|
|
1126
|
+
* @property {string} payment_identifier - Payment identifier.
|
|
1113
1127
|
*/
|
|
1114
1128
|
|
|
1115
1129
|
/**
|
|
1116
1130
|
* @typedef PaymentOrderMethods
|
|
1117
|
-
* @property {number} amount - Amount to be collected
|
|
1118
|
-
* @property {string} [payment] - Payment type i.e. Required / Blocked
|
|
1119
|
-
* @property {string} mode - Payment mode
|
|
1131
|
+
* @property {number} amount - Amount to be collected.
|
|
1132
|
+
* @property {string} [payment] - Payment type i.e. Required / Blocked.
|
|
1133
|
+
* @property {string} mode - Payment mode.
|
|
1120
1134
|
* @property {PaymentMethodsMetaOrder} meta
|
|
1121
|
-
* @property {string} name - Payment mode name
|
|
1135
|
+
* @property {string} name - Payment mode name.
|
|
1122
1136
|
*/
|
|
1123
1137
|
|
|
1124
1138
|
/**
|
|
1125
1139
|
* @typedef PaymentOrderRequest
|
|
1126
|
-
* @property {PaymentOrderMethods[]} [payment_methods]
|
|
1127
|
-
* @property {string} order_id - Order id
|
|
1128
|
-
* @property {string} [shipment_id] - Shipment_id
|
|
1140
|
+
* @property {PaymentOrderMethods[]} [payment_methods] - All payment methods for order.
|
|
1141
|
+
* @property {string} order_id - Order id.
|
|
1142
|
+
* @property {string} [shipment_id] - Shipment_id.
|
|
1129
1143
|
*/
|
|
1130
1144
|
|
|
1131
1145
|
/**
|
|
1132
1146
|
* @typedef PaymentOrderData
|
|
1133
|
-
* @property {number} [amount] - Amount
|
|
1134
|
-
* @property {string} [aggregator] - Aggregator name
|
|
1135
|
-
* @property {string} [callback_url] - Callback url for aggregator
|
|
1136
|
-
* @property {string} [order_id] - Aggregator order id
|
|
1137
|
-
* @property {string} [customer_id] - Aggregator customer id
|
|
1138
|
-
* @property {string} [merchant_order_id] - Merchant order id
|
|
1139
|
-
* @property {string} [currency] - Currency
|
|
1140
|
-
* @property {string} [email] - Email
|
|
1141
|
-
* @property {string} [contact] -
|
|
1142
|
-
* @property {string} [method] - Method
|
|
1147
|
+
* @property {number} [amount] - Amount.
|
|
1148
|
+
* @property {string} [aggregator] - Aggregator name.
|
|
1149
|
+
* @property {string} [callback_url] - Callback url for aggregator.
|
|
1150
|
+
* @property {string} [order_id] - Aggregator order id.
|
|
1151
|
+
* @property {string} [customer_id] - Aggregator customer id.
|
|
1152
|
+
* @property {string} [merchant_order_id] - Merchant order id.
|
|
1153
|
+
* @property {string} [currency] - Currency used for the order.
|
|
1154
|
+
* @property {string} [email] - Email address of the customer.
|
|
1155
|
+
* @property {string} [contact] - Contact number of the customer.
|
|
1156
|
+
* @property {string} [method] - Method of payment or delivery for the order.
|
|
1143
1157
|
*/
|
|
1144
1158
|
|
|
1145
1159
|
/**
|
|
1146
1160
|
* @typedef PaymentOrderResponse
|
|
1147
|
-
* @property {string} [payment_confirm_url] - Payment confirm url for aggregator
|
|
1148
|
-
* @property {string} [callback_url] - Callback url for aggregator
|
|
1149
|
-
* @property {string} [order_id] - Merchant order id
|
|
1150
|
-
* @property {boolean} [success] - Successful or failure
|
|
1151
|
-
* @property {number} status_code - HTTP status code
|
|
1161
|
+
* @property {string} [payment_confirm_url] - Payment confirm url for aggregator.
|
|
1162
|
+
* @property {string} [callback_url] - Callback url for aggregator.
|
|
1163
|
+
* @property {string} [order_id] - Merchant order id.
|
|
1164
|
+
* @property {boolean} [success] - Successful or failure.
|
|
1165
|
+
* @property {number} status_code - HTTP status code.
|
|
1152
1166
|
* @property {PaymentOrderData} [data]
|
|
1153
|
-
* @property {string} message -
|
|
1167
|
+
* @property {string} message - Detailed message.
|
|
1154
1168
|
*/
|
|
1155
1169
|
|
|
1156
1170
|
/**
|
|
1157
1171
|
* @typedef ShipmentRefundRequest
|
|
1158
|
-
* @property {string} shipment_id - Shipment Id of the respective Merchant Order Id
|
|
1159
|
-
* @property {string} order_id - Merchant Order Id
|
|
1160
|
-
* @property {string} transfer_mode - Transfer Mode of the Beneficiary to be added
|
|
1161
|
-
* @property {string} [beneficiary_id] - Beneficiary Hash Id of the beneficiary added
|
|
1172
|
+
* @property {string} shipment_id - Shipment Id of the respective Merchant Order Id.
|
|
1173
|
+
* @property {string} order_id - Merchant Order Id.
|
|
1174
|
+
* @property {string} transfer_mode - Transfer Mode of the Beneficiary to be added.
|
|
1175
|
+
* @property {string} [beneficiary_id] - Beneficiary Hash Id of the beneficiary added.
|
|
1162
1176
|
*/
|
|
1163
1177
|
|
|
1164
1178
|
/**
|
|
1165
1179
|
* @typedef ShipmentRefundDetail
|
|
1166
|
-
* @property {string} shipment_id -
|
|
1167
|
-
* @property {string} order_id -
|
|
1168
|
-
* @property {string} transfer_mode -
|
|
1169
|
-
*
|
|
1180
|
+
* @property {string} shipment_id - ID of the shipment.
|
|
1181
|
+
* @property {string} order_id - ID of an order.
|
|
1182
|
+
* @property {string} transfer_mode - Mode of transfer for the shipment refund
|
|
1183
|
+
* (e.g., bank transfer, digital wallet).
|
|
1184
|
+
* @property {string} beneficiary_id - Unique identifier for the beneficiary
|
|
1185
|
+
* receiving the refund.
|
|
1170
1186
|
*/
|
|
1171
1187
|
|
|
1172
1188
|
/**
|
|
1173
1189
|
* @typedef ShipmentRefundResponse
|
|
1174
1190
|
* @property {ShipmentRefundDetail} data - Selected Shipment refund option details.
|
|
1175
1191
|
* @property {boolean} success - Successful or not.
|
|
1176
|
-
* @property {string} message -
|
|
1192
|
+
* @property {string} message - Detailed message.
|
|
1177
1193
|
*/
|
|
1178
1194
|
|
|
1179
1195
|
class PaymentApplicationModel {
|
|
@@ -1326,7 +1342,7 @@ class PaymentApplicationModel {
|
|
|
1326
1342
|
/** @returns {ValidateCustomerResponse} */
|
|
1327
1343
|
static ValidateCustomerResponse() {
|
|
1328
1344
|
return Joi.object({
|
|
1329
|
-
data: Joi.any()
|
|
1345
|
+
data: Joi.any(),
|
|
1330
1346
|
success: Joi.boolean().required(),
|
|
1331
1347
|
message: Joi.string().allow("").required(),
|
|
1332
1348
|
});
|