@gofynd/fdk-client-javascript 1.3.11-beta.7 → 1.4.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
- package/sdk/application/Cart/CartApplicationClient.js +5 -3
- package/sdk/application/Cart/CartApplicationModel.d.ts +107 -1
- package/sdk/application/Cart/CartApplicationModel.js +74 -0
- package/sdk/application/Cart/CartApplicationValidator.d.ts +4 -0
- package/sdk/application/Cart/CartApplicationValidator.js +4 -0
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +3 -6
- package/sdk/application/Catalog/CatalogApplicationClient.js +7 -20
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2 -2
- package/sdk/application/Catalog/CatalogApplicationModel.js +2 -2
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -14
- package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -6
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +183 -49
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +173 -31
- package/sdk/application/Content/ContentApplicationClient.d.ts +36 -0
- package/sdk/application/Content/ContentApplicationClient.js +246 -0
- package/sdk/application/Content/ContentApplicationModel.d.ts +208 -1
- package/sdk/application/Content/ContentApplicationModel.js +252 -0
- package/sdk/application/Content/ContentApplicationValidator.d.ts +40 -1
- package/sdk/application/Content/ContentApplicationValidator.js +41 -0
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +67 -0
- package/sdk/application/Logistic/LogisticApplicationClient.js +547 -0
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +456 -1
- package/sdk/application/Logistic/LogisticApplicationModel.js +488 -0
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +211 -1
- package/sdk/application/Logistic/LogisticApplicationValidator.js +131 -0
- package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
- package/sdk/application/Order/OrderApplicationClient.js +32 -8
- package/sdk/application/Order/OrderApplicationModel.d.ts +6 -0
- package/sdk/application/Order/OrderApplicationModel.js +6 -0
- package/sdk/application/Order/OrderApplicationValidator.d.ts +20 -0
- package/sdk/application/Order/OrderApplicationValidator.js +8 -0
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +46 -2
- package/sdk/application/Payment/PaymentApplicationClient.js +341 -10
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +493 -186
- package/sdk/application/Payment/PaymentApplicationModel.js +341 -70
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +59 -14
- package/sdk/application/Payment/PaymentApplicationValidator.js +64 -10
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +34 -1
- package/sdk/application/PosCart/PosCartApplicationModel.js +24 -0
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.js +7 -3
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +222 -36
- package/sdk/application/Theme/ThemeApplicationModel.js +322 -26
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +10 -0
- package/sdk/application/Theme/ThemeApplicationValidator.js +4 -0
- package/sdk/application/User/UserApplicationClient.d.ts +33 -0
- package/sdk/application/User/UserApplicationClient.js +239 -0
- package/sdk/application/User/UserApplicationModel.d.ts +28 -13
- package/sdk/application/User/UserApplicationModel.js +36 -12
- package/sdk/application/User/UserApplicationValidator.d.ts +34 -1
- package/sdk/application/User/UserApplicationValidator.js +36 -0
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +3 -15
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +2 -14
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +125 -0
- package/sdk/partner/Lead/LeadPartnerClient.js +785 -0
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +1127 -0
- package/sdk/partner/Lead/LeadPartnerModel.js +896 -0
- package/sdk/partner/Lead/LeadPartnerValidator.d.ts +12 -0
- package/sdk/partner/Lead/LeadPartnerValidator.js +67 -0
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +155 -0
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +1195 -0
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +372 -0
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +442 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +16 -0
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +123 -0
- package/sdk/partner/PartnerClient.d.ts +6 -0
- package/sdk/partner/PartnerClient.js +9 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +80 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +100 -43
- package/sdk/partner/Theme/ThemePartnerModel.js +74 -30
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +9 -0
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +99 -0
- package/sdk/partner/Webhook/WebhookPartnerClient.js +753 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +566 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.js +583 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +12 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +74 -0
- package/sdk/partner/index.d.ts +3 -0
- package/sdk/partner/index.js +6 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +11 -1
- package/sdk/platform/Billing/BillingPlatformClient.js +110 -3
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +67 -1
- package/sdk/platform/Billing/BillingPlatformModel.js +78 -0
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +43 -4
- package/sdk/platform/Billing/BillingPlatformValidator.js +29 -2
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +7 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +4 -0
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +4 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +100 -5
- package/sdk/platform/Cart/CartPlatformModel.js +71 -4
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +15 -11
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +52 -21
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +27 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +11 -0
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +26 -4
- package/sdk/platform/Catalog/CatalogPlatformClient.js +173 -7
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +304 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.js +335 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -3
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +27 -2
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +138 -36
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +739 -57
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +128 -3
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +111 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +150 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.js +172 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +8 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +32 -4
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +38 -9
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +42 -8
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +14 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +6 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +371 -132
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +288 -77
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +391 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +3641 -1059
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +351 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +410 -0
- package/sdk/platform/Content/ContentPlatformClient.d.ts +277 -0
- package/sdk/platform/Content/ContentPlatformClient.js +2011 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1100 -1
- package/sdk/platform/Content/ContentPlatformModel.js +1362 -46
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +247 -0
- package/sdk/platform/Content/ContentPlatformValidator.js +319 -0
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +96 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +104 -12
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +16 -6
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +117 -8
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +55 -4
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +39 -2
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +18 -19
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +20 -18
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +33 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +240 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +151 -5
- package/sdk/platform/Finance/FinancePlatformModel.js +190 -4
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +38 -1
- package/sdk/platform/Finance/FinancePlatformValidator.js +38 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +38 -28
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +137 -56
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +41 -29
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +33 -21
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +12 -3
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +23 -1
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +178 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +39 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -0
- package/sdk/platform/Order/OrderPlatformClient.d.ts +202 -31
- package/sdk/platform/Order/OrderPlatformClient.js +2010 -586
- package/sdk/platform/Order/OrderPlatformModel.d.ts +1032 -470
- package/sdk/platform/Order/OrderPlatformModel.js +1187 -534
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +318 -35
- package/sdk/platform/Order/OrderPlatformValidator.js +292 -29
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +119 -13
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +749 -39
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +143 -7
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +133 -6
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
- package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +996 -134
- package/sdk/platform/Payment/PaymentPlatformModel.js +721 -58
- package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/PlatformApplicationClient.js +4 -4
- package/sdk/platform/PlatformClient.d.ts +4 -2
- package/sdk/platform/PlatformClient.js +8 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +142 -66
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +645 -147
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +131 -63
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +126 -47
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +217 -105
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +1136 -347
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +912 -313
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1071 -355
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +382 -133
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +266 -102
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +11 -1
- package/sdk/platform/Theme/ThemePlatformClient.js +87 -3
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +333 -47
- package/sdk/platform/Theme/ThemePlatformModel.js +395 -35
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +28 -4
- package/sdk/platform/Theme/ThemePlatformValidator.js +21 -2
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +116 -1
- package/sdk/platform/User/UserPlatformApplicationClient.js +931 -85
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +224 -7
- package/sdk/platform/User/UserPlatformApplicationValidator.js +173 -5
- package/sdk/platform/User/UserPlatformModel.d.ts +344 -7
- package/sdk/platform/User/UserPlatformModel.js +256 -5
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +47 -39
- package/sdk/platform/Webhook/WebhookPlatformClient.js +63 -61
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +264 -156
- package/sdk/platform/Webhook/WebhookPlatformModel.js +276 -153
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +7 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
- package/sdk/platform/index.d.ts +1 -1
- package/sdk/platform/index.js +2 -2
- package/sdk/public/Billing/BillingPublicClient.d.ts +23 -0
- package/sdk/public/Billing/BillingPublicClient.js +116 -0
- package/sdk/public/Billing/BillingPublicModel.d.ts +92 -0
- package/sdk/public/Billing/BillingPublicModel.js +96 -0
- package/sdk/public/Billing/BillingPublicValidator.d.ts +18 -0
- package/sdk/public/Billing/BillingPublicValidator.js +19 -0
- package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
- package/sdk/public/Content/ContentPublicClient.js +114 -0
- package/sdk/public/Content/ContentPublicModel.d.ts +53 -0
- package/sdk/public/Content/ContentPublicModel.js +60 -0
- package/sdk/public/Content/ContentPublicValidator.d.ts +18 -0
- package/sdk/public/Content/ContentPublicValidator.js +19 -0
- package/sdk/public/PublicClient.d.ts +4 -0
- package/sdk/public/PublicClient.js +8 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +33 -0
- package/sdk/public/Webhook/WebhookPublicClient.js +242 -0
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +147 -1
- package/sdk/public/Webhook/WebhookPublicModel.js +177 -1
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +23 -1
- package/sdk/public/Webhook/WebhookPublicValidator.js +31 -0
- package/sdk/public/index.d.ts +2 -0
- package/sdk/public/index.js +4 -0
|
@@ -29,6 +29,10 @@ export = PaymentPlatformApplicationValidator;
|
|
|
29
29
|
* @typedef CreatePaymentLinkParam
|
|
30
30
|
* @property {PaymentPlatformModel.CreatePaymentLinkRequest} body
|
|
31
31
|
*/
|
|
32
|
+
/**
|
|
33
|
+
* @typedef CreatePaymentOrderParam
|
|
34
|
+
* @property {PaymentPlatformModel.PaymentOrderRequest} body
|
|
35
|
+
*/
|
|
32
36
|
/** @typedef EdcAggregatorsAndModelListParam */
|
|
33
37
|
/**
|
|
34
38
|
* @typedef EdcDeviceListParam
|
|
@@ -53,6 +57,14 @@ export = PaymentPlatformApplicationValidator;
|
|
|
53
57
|
* @typedef GetEdcDeviceParam
|
|
54
58
|
* @property {string} terminalUniqueIdentifier - Terminal unique identifier
|
|
55
59
|
*/
|
|
60
|
+
/**
|
|
61
|
+
* @typedef GetMerchantAggregatorAppVersionParam
|
|
62
|
+
* @property {number} aggregatorId - Aggregators Id
|
|
63
|
+
* @property {string} businessUnit
|
|
64
|
+
* @property {string} device
|
|
65
|
+
* @property {number} [paymentModeId]
|
|
66
|
+
* @property {string} [subPaymentMode]
|
|
67
|
+
*/
|
|
56
68
|
/**
|
|
57
69
|
* @typedef GetMerchantAggregatorPaymentModeDetailsParam
|
|
58
70
|
* @property {number} aggregatorId - Aggregators Id
|
|
@@ -70,25 +82,47 @@ export = PaymentPlatformApplicationValidator;
|
|
|
70
82
|
* @typedef GetPaymentLinkParam
|
|
71
83
|
* @property {string} [paymentLinkId]
|
|
72
84
|
*/
|
|
85
|
+
/**
|
|
86
|
+
* @typedef GetPaymentModeControlRoutesParam
|
|
87
|
+
* @property {string} mode - Offline / advance modes to get the payment modes
|
|
88
|
+
*/
|
|
89
|
+
/**
|
|
90
|
+
* @typedef GetPaymentModeCustomConfigParam
|
|
91
|
+
* @property {string} mode - Offline / advance mode
|
|
92
|
+
*/
|
|
73
93
|
/**
|
|
74
94
|
* @typedef GetPaymentModeRoutesParam
|
|
75
95
|
* @property {boolean} refresh
|
|
76
96
|
* @property {string} requestType
|
|
97
|
+
* @property {string} [orderId]
|
|
98
|
+
* @property {string} [shipmentId]
|
|
99
|
+
*/
|
|
100
|
+
/**
|
|
101
|
+
* @typedef GetPaymentSessionParam
|
|
102
|
+
* @property {string} gid - Global identifier of the entity (e.g. order, cart
|
|
103
|
+
* etc.) against which payment session was initiated. This is generated by
|
|
104
|
+
* Fynd payments platform and is unique.
|
|
105
|
+
* @property {boolean} [lineItem] - Line-item to add extra data into response
|
|
106
|
+
* (e.g. cart details)
|
|
77
107
|
*/
|
|
78
108
|
/**
|
|
79
109
|
* @typedef GetPosPaymentModeRoutesParam
|
|
80
110
|
* @property {number} amount - Payable amount.
|
|
81
|
-
* @property {string} cartId - Identifier of the cart.
|
|
111
|
+
* @property {string} [cartId] - Identifier of the cart.
|
|
82
112
|
* @property {string} pincode - The PIN Code of the destination address, e.g. 400059
|
|
83
|
-
* @property {string} checkoutMode - Option to checkout for self or for others.
|
|
113
|
+
* @property {string} [checkoutMode] - Option to checkout for self or for others.
|
|
84
114
|
* @property {boolean} [refresh] - This is a boolean value. Select `true` to
|
|
85
115
|
* remove temporary cache files on payment gateway and replace with the latest one.
|
|
116
|
+
* @property {string} [orderId]
|
|
86
117
|
* @property {string} [cardReference] - Card reference id of user's debit or credit card.
|
|
87
118
|
* @property {string} orderType - The order type of shipment * HomeDelivery - If
|
|
88
119
|
* the customer wants the order home-delivered * PickAtStore - If the customer
|
|
89
120
|
* wants the handover of an order at the store itself.
|
|
90
121
|
* @property {string} [userDetails] - URIencoded JSON containing details of an
|
|
91
122
|
* anonymous user.
|
|
123
|
+
* @property {boolean} [displaySplit] - Display Split Payment Option or not
|
|
124
|
+
* @property {boolean} [advancePayment] - Display Advance Payment Options or Normal
|
|
125
|
+
* @property {string} [shipmentId]
|
|
92
126
|
*/
|
|
93
127
|
/**
|
|
94
128
|
* @typedef GetUserBeneficiariesParam
|
|
@@ -120,12 +154,17 @@ export = PaymentPlatformApplicationValidator;
|
|
|
120
154
|
/**
|
|
121
155
|
* @typedef PatchMerchantAggregatorPaymentModeDetailsParam
|
|
122
156
|
* @property {number} aggregatorId - Aggregators Id
|
|
123
|
-
* @property {PaymentPlatformModel.
|
|
157
|
+
* @property {PaymentPlatformModel.PlatformPaymentModeResponse} body
|
|
124
158
|
*/
|
|
125
159
|
/**
|
|
126
160
|
* @typedef PatchMerchantPaymentOptionParam
|
|
127
161
|
* @property {PaymentPlatformModel.MerchnatPaymentModeRequest} body
|
|
128
162
|
*/
|
|
163
|
+
/**
|
|
164
|
+
* @typedef PatchMerchantPaymentOptionVersionParam
|
|
165
|
+
* @property {number} aggregatorId - Aggregators Id
|
|
166
|
+
* @property {PaymentPlatformModel.AggregatorControlRequest} body
|
|
167
|
+
*/
|
|
129
168
|
/**
|
|
130
169
|
* @typedef PaymentStatusBulkParam
|
|
131
170
|
* @property {PaymentPlatformModel.PaymentStatusBulkHandlerRequest} body
|
|
@@ -154,6 +193,16 @@ export = PaymentPlatformApplicationValidator;
|
|
|
154
193
|
* @typedef SaveBrandPaymentGatewayConfigParam
|
|
155
194
|
* @property {PaymentPlatformModel.PaymentGatewayConfigRequest} body
|
|
156
195
|
*/
|
|
196
|
+
/**
|
|
197
|
+
* @typedef SetMerchantModeControlRoutesParam
|
|
198
|
+
* @property {string} mode - Offline / advance payment mode
|
|
199
|
+
* @property {PaymentPlatformModel.MerchantPaymentModeRequest} body
|
|
200
|
+
*/
|
|
201
|
+
/**
|
|
202
|
+
* @typedef SetPaymentModeCustomConfigParam
|
|
203
|
+
* @property {string} mode - Offline / advance payment mode
|
|
204
|
+
* @property {PaymentPlatformModel.PaymentCustomConfigRequestSchema} body
|
|
205
|
+
*/
|
|
157
206
|
/**
|
|
158
207
|
* @typedef SetUserCODlimitRoutesParam
|
|
159
208
|
* @property {PaymentPlatformModel.SetCODForUserRequest} body
|
|
@@ -202,6 +251,8 @@ declare class PaymentPlatformApplicationValidator {
|
|
|
202
251
|
static createMerchantRefundPriority(): CreateMerchantRefundPriorityParam;
|
|
203
252
|
/** @returns {CreatePaymentLinkParam} */
|
|
204
253
|
static createPaymentLink(): CreatePaymentLinkParam;
|
|
254
|
+
/** @returns {CreatePaymentOrderParam} */
|
|
255
|
+
static createPaymentOrder(): CreatePaymentOrderParam;
|
|
205
256
|
/** @returns {EdcAggregatorsAndModelListParam} */
|
|
206
257
|
static edcAggregatorsAndModelList(): any;
|
|
207
258
|
/** @returns {EdcDeviceListParam} */
|
|
@@ -214,6 +265,8 @@ declare class PaymentPlatformApplicationValidator {
|
|
|
214
265
|
static getBrandPaymentGatewayConfig(): GetBrandPaymentGatewayConfigParam;
|
|
215
266
|
/** @returns {GetEdcDeviceParam} */
|
|
216
267
|
static getEdcDevice(): GetEdcDeviceParam;
|
|
268
|
+
/** @returns {GetMerchantAggregatorAppVersionParam} */
|
|
269
|
+
static getMerchantAggregatorAppVersion(): GetMerchantAggregatorAppVersionParam;
|
|
217
270
|
/** @returns {GetMerchantAggregatorPaymentModeDetailsParam} */
|
|
218
271
|
static getMerchantAggregatorPaymentModeDetails(): GetMerchantAggregatorPaymentModeDetailsParam;
|
|
219
272
|
/** @returns {GetMerchantPaymentOptionParam} */
|
|
@@ -226,8 +279,14 @@ declare class PaymentPlatformApplicationValidator {
|
|
|
226
279
|
static getPaymentCodeOption(): any;
|
|
227
280
|
/** @returns {GetPaymentLinkParam} */
|
|
228
281
|
static getPaymentLink(): GetPaymentLinkParam;
|
|
282
|
+
/** @returns {GetPaymentModeControlRoutesParam} */
|
|
283
|
+
static getPaymentModeControlRoutes(): GetPaymentModeControlRoutesParam;
|
|
284
|
+
/** @returns {GetPaymentModeCustomConfigParam} */
|
|
285
|
+
static getPaymentModeCustomConfig(): GetPaymentModeCustomConfigParam;
|
|
229
286
|
/** @returns {GetPaymentModeRoutesParam} */
|
|
230
287
|
static getPaymentModeRoutes(): GetPaymentModeRoutesParam;
|
|
288
|
+
/** @returns {GetPaymentSessionParam} */
|
|
289
|
+
static getPaymentSession(): GetPaymentSessionParam;
|
|
231
290
|
/** @returns {GetPosPaymentModeRoutesParam} */
|
|
232
291
|
static getPosPaymentModeRoutes(): GetPosPaymentModeRoutesParam;
|
|
233
292
|
/** @returns {GetUserBeneficiariesParam} */
|
|
@@ -246,6 +305,8 @@ declare class PaymentPlatformApplicationValidator {
|
|
|
246
305
|
static patchMerchantAggregatorPaymentModeDetails(): PatchMerchantAggregatorPaymentModeDetailsParam;
|
|
247
306
|
/** @returns {PatchMerchantPaymentOptionParam} */
|
|
248
307
|
static patchMerchantPaymentOption(): PatchMerchantPaymentOptionParam;
|
|
308
|
+
/** @returns {PatchMerchantPaymentOptionVersionParam} */
|
|
309
|
+
static patchMerchantPaymentOptionVersion(): PatchMerchantPaymentOptionVersionParam;
|
|
249
310
|
/** @returns {PaymentStatusBulkParam} */
|
|
250
311
|
static paymentStatusBulk(): PaymentStatusBulkParam;
|
|
251
312
|
/** @returns {PollingPaymentLinkParam} */
|
|
@@ -260,6 +321,10 @@ declare class PaymentPlatformApplicationValidator {
|
|
|
260
321
|
static revokeOauthToken(): RevokeOauthTokenParam;
|
|
261
322
|
/** @returns {SaveBrandPaymentGatewayConfigParam} */
|
|
262
323
|
static saveBrandPaymentGatewayConfig(): SaveBrandPaymentGatewayConfigParam;
|
|
324
|
+
/** @returns {SetMerchantModeControlRoutesParam} */
|
|
325
|
+
static setMerchantModeControlRoutes(): SetMerchantModeControlRoutesParam;
|
|
326
|
+
/** @returns {SetPaymentModeCustomConfigParam} */
|
|
327
|
+
static setPaymentModeCustomConfig(): SetPaymentModeCustomConfigParam;
|
|
263
328
|
/** @returns {SetUserCODlimitRoutesParam} */
|
|
264
329
|
static setUserCODlimitRoutes(): SetUserCODlimitRoutesParam;
|
|
265
330
|
/** @returns {UpdateEdcDeviceParam} */
|
|
@@ -274,7 +339,7 @@ declare class PaymentPlatformApplicationValidator {
|
|
|
274
339
|
static verifyCustomerForPayment(): VerifyCustomerForPaymentParam;
|
|
275
340
|
}
|
|
276
341
|
declare namespace PaymentPlatformApplicationValidator {
|
|
277
|
-
export { AddEdcDeviceParam, AddRefundBankAccountUsingOTPParam, CancelPaymentLinkParam, CheckAndUpdatePaymentStatusParam, ConfirmPaymentParam, CreateMerchantRefundPriorityParam, CreatePaymentLinkParam, EdcAggregatorsAndModelListParam, EdcDeviceListParam, EdcDeviceStatsParam, GetBankAccountDetailsOpenAPIParam, GetBrandPaymentGatewayConfigParam, GetEdcDeviceParam, GetMerchantAggregatorPaymentModeDetailsParam, GetMerchantPaymentOptionParam, GetMerchantRefundPriorityParam, GetPGConfigAggregatorsParam, GetPaymentCodeOptionParam, GetPaymentLinkParam, GetPaymentModeRoutesParam, GetPosPaymentModeRoutesParam, GetUserBeneficiariesParam, GetUserCODlimitRoutesParam, GetUserOrderBeneficiariesParam, InitialisePaymentParam, MerchantOnBoardingParam, OauthGetUrlParam, PatchMerchantAggregatorPaymentModeDetailsParam, PatchMerchantPaymentOptionParam, PaymentStatusBulkParam, PollingPaymentLinkParam, RepaymentDetailsParam, ResendOrCancelPaymentParam, ResendPaymentLinkParam, RevokeOauthTokenParam, SaveBrandPaymentGatewayConfigParam, SetUserCODlimitRoutesParam, UpdateEdcDeviceParam, UpdateMerchantRefundPriorityParam, UpdatePaymentSessionParam, UpdateRefundSessionParam, VerifyCustomerForPaymentParam };
|
|
342
|
+
export { AddEdcDeviceParam, AddRefundBankAccountUsingOTPParam, CancelPaymentLinkParam, CheckAndUpdatePaymentStatusParam, ConfirmPaymentParam, CreateMerchantRefundPriorityParam, CreatePaymentLinkParam, CreatePaymentOrderParam, EdcAggregatorsAndModelListParam, EdcDeviceListParam, EdcDeviceStatsParam, GetBankAccountDetailsOpenAPIParam, GetBrandPaymentGatewayConfigParam, GetEdcDeviceParam, GetMerchantAggregatorAppVersionParam, GetMerchantAggregatorPaymentModeDetailsParam, GetMerchantPaymentOptionParam, GetMerchantRefundPriorityParam, GetPGConfigAggregatorsParam, GetPaymentCodeOptionParam, GetPaymentLinkParam, GetPaymentModeControlRoutesParam, GetPaymentModeCustomConfigParam, GetPaymentModeRoutesParam, GetPaymentSessionParam, GetPosPaymentModeRoutesParam, GetUserBeneficiariesParam, GetUserCODlimitRoutesParam, GetUserOrderBeneficiariesParam, InitialisePaymentParam, MerchantOnBoardingParam, OauthGetUrlParam, PatchMerchantAggregatorPaymentModeDetailsParam, PatchMerchantPaymentOptionParam, PatchMerchantPaymentOptionVersionParam, PaymentStatusBulkParam, PollingPaymentLinkParam, RepaymentDetailsParam, ResendOrCancelPaymentParam, ResendPaymentLinkParam, RevokeOauthTokenParam, SaveBrandPaymentGatewayConfigParam, SetMerchantModeControlRoutesParam, SetPaymentModeCustomConfigParam, SetUserCODlimitRoutesParam, UpdateEdcDeviceParam, UpdateMerchantRefundPriorityParam, UpdatePaymentSessionParam, UpdateRefundSessionParam, VerifyCustomerForPaymentParam };
|
|
278
343
|
}
|
|
279
344
|
type AddEdcDeviceParam = {
|
|
280
345
|
/**
|
|
@@ -305,6 +370,9 @@ type CreateMerchantRefundPriorityParam = {
|
|
|
305
370
|
type CreatePaymentLinkParam = {
|
|
306
371
|
body: PaymentPlatformModel.CreatePaymentLinkRequest;
|
|
307
372
|
};
|
|
373
|
+
type CreatePaymentOrderParam = {
|
|
374
|
+
body: PaymentPlatformModel.PaymentOrderRequest;
|
|
375
|
+
};
|
|
308
376
|
type EdcDeviceListParam = {
|
|
309
377
|
pageNo?: number;
|
|
310
378
|
pageSize?: number;
|
|
@@ -329,6 +397,16 @@ type GetEdcDeviceParam = {
|
|
|
329
397
|
*/
|
|
330
398
|
terminalUniqueIdentifier: string;
|
|
331
399
|
};
|
|
400
|
+
type GetMerchantAggregatorAppVersionParam = {
|
|
401
|
+
/**
|
|
402
|
+
* - Aggregators Id
|
|
403
|
+
*/
|
|
404
|
+
aggregatorId: number;
|
|
405
|
+
businessUnit: string;
|
|
406
|
+
device: string;
|
|
407
|
+
paymentModeId?: number;
|
|
408
|
+
subPaymentMode?: string;
|
|
409
|
+
};
|
|
332
410
|
type GetMerchantAggregatorPaymentModeDetailsParam = {
|
|
333
411
|
/**
|
|
334
412
|
* - Aggregators Id
|
|
@@ -346,9 +424,36 @@ type GetMerchantRefundPriorityParam = {
|
|
|
346
424
|
type GetPaymentLinkParam = {
|
|
347
425
|
paymentLinkId?: string;
|
|
348
426
|
};
|
|
427
|
+
type GetPaymentModeControlRoutesParam = {
|
|
428
|
+
/**
|
|
429
|
+
* - Offline / advance modes to get the payment modes
|
|
430
|
+
*/
|
|
431
|
+
mode: string;
|
|
432
|
+
};
|
|
433
|
+
type GetPaymentModeCustomConfigParam = {
|
|
434
|
+
/**
|
|
435
|
+
* - Offline / advance mode
|
|
436
|
+
*/
|
|
437
|
+
mode: string;
|
|
438
|
+
};
|
|
349
439
|
type GetPaymentModeRoutesParam = {
|
|
350
440
|
refresh: boolean;
|
|
351
441
|
requestType: string;
|
|
442
|
+
orderId?: string;
|
|
443
|
+
shipmentId?: string;
|
|
444
|
+
};
|
|
445
|
+
type GetPaymentSessionParam = {
|
|
446
|
+
/**
|
|
447
|
+
* - Global identifier of the entity (e.g. order, cart
|
|
448
|
+
* etc.) against which payment session was initiated. This is generated by
|
|
449
|
+
* Fynd payments platform and is unique.
|
|
450
|
+
*/
|
|
451
|
+
gid: string;
|
|
452
|
+
/**
|
|
453
|
+
* - Line-item to add extra data into response
|
|
454
|
+
* (e.g. cart details)
|
|
455
|
+
*/
|
|
456
|
+
lineItem?: boolean;
|
|
352
457
|
};
|
|
353
458
|
type GetPosPaymentModeRoutesParam = {
|
|
354
459
|
/**
|
|
@@ -358,7 +463,7 @@ type GetPosPaymentModeRoutesParam = {
|
|
|
358
463
|
/**
|
|
359
464
|
* - Identifier of the cart.
|
|
360
465
|
*/
|
|
361
|
-
cartId
|
|
466
|
+
cartId?: string;
|
|
362
467
|
/**
|
|
363
468
|
* - The PIN Code of the destination address, e.g. 400059
|
|
364
469
|
*/
|
|
@@ -366,12 +471,13 @@ type GetPosPaymentModeRoutesParam = {
|
|
|
366
471
|
/**
|
|
367
472
|
* - Option to checkout for self or for others.
|
|
368
473
|
*/
|
|
369
|
-
checkoutMode
|
|
474
|
+
checkoutMode?: string;
|
|
370
475
|
/**
|
|
371
476
|
* - This is a boolean value. Select `true` to
|
|
372
477
|
* remove temporary cache files on payment gateway and replace with the latest one.
|
|
373
478
|
*/
|
|
374
479
|
refresh?: boolean;
|
|
480
|
+
orderId?: string;
|
|
375
481
|
/**
|
|
376
482
|
* - Card reference id of user's debit or credit card.
|
|
377
483
|
*/
|
|
@@ -387,6 +493,15 @@ type GetPosPaymentModeRoutesParam = {
|
|
|
387
493
|
* anonymous user.
|
|
388
494
|
*/
|
|
389
495
|
userDetails?: string;
|
|
496
|
+
/**
|
|
497
|
+
* - Display Split Payment Option or not
|
|
498
|
+
*/
|
|
499
|
+
displaySplit?: boolean;
|
|
500
|
+
/**
|
|
501
|
+
* - Display Advance Payment Options or Normal
|
|
502
|
+
*/
|
|
503
|
+
advancePayment?: boolean;
|
|
504
|
+
shipmentId?: string;
|
|
390
505
|
};
|
|
391
506
|
type GetUserBeneficiariesParam = {
|
|
392
507
|
orderId: string;
|
|
@@ -417,11 +532,18 @@ type PatchMerchantAggregatorPaymentModeDetailsParam = {
|
|
|
417
532
|
* - Aggregators Id
|
|
418
533
|
*/
|
|
419
534
|
aggregatorId: number;
|
|
420
|
-
body: PaymentPlatformModel.
|
|
535
|
+
body: PaymentPlatformModel.PlatformPaymentModeResponse;
|
|
421
536
|
};
|
|
422
537
|
type PatchMerchantPaymentOptionParam = {
|
|
423
538
|
body: PaymentPlatformModel.MerchnatPaymentModeRequest;
|
|
424
539
|
};
|
|
540
|
+
type PatchMerchantPaymentOptionVersionParam = {
|
|
541
|
+
/**
|
|
542
|
+
* - Aggregators Id
|
|
543
|
+
*/
|
|
544
|
+
aggregatorId: number;
|
|
545
|
+
body: PaymentPlatformModel.AggregatorControlRequest;
|
|
546
|
+
};
|
|
425
547
|
type PaymentStatusBulkParam = {
|
|
426
548
|
body: PaymentPlatformModel.PaymentStatusBulkHandlerRequest;
|
|
427
549
|
};
|
|
@@ -446,6 +568,20 @@ type RevokeOauthTokenParam = {
|
|
|
446
568
|
type SaveBrandPaymentGatewayConfigParam = {
|
|
447
569
|
body: PaymentPlatformModel.PaymentGatewayConfigRequest;
|
|
448
570
|
};
|
|
571
|
+
type SetMerchantModeControlRoutesParam = {
|
|
572
|
+
/**
|
|
573
|
+
* - Offline / advance payment mode
|
|
574
|
+
*/
|
|
575
|
+
mode: string;
|
|
576
|
+
body: PaymentPlatformModel.MerchantPaymentModeRequest;
|
|
577
|
+
};
|
|
578
|
+
type SetPaymentModeCustomConfigParam = {
|
|
579
|
+
/**
|
|
580
|
+
* - Offline / advance payment mode
|
|
581
|
+
*/
|
|
582
|
+
mode: string;
|
|
583
|
+
body: PaymentPlatformModel.PaymentCustomConfigRequestSchema;
|
|
584
|
+
};
|
|
449
585
|
type SetUserCODlimitRoutesParam = {
|
|
450
586
|
body: PaymentPlatformModel.SetCODForUserRequest;
|
|
451
587
|
};
|
|
@@ -39,6 +39,11 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
|
|
|
39
39
|
* @property {PaymentPlatformModel.CreatePaymentLinkRequest} body
|
|
40
40
|
*/
|
|
41
41
|
|
|
42
|
+
/**
|
|
43
|
+
* @typedef CreatePaymentOrderParam
|
|
44
|
+
* @property {PaymentPlatformModel.PaymentOrderRequest} body
|
|
45
|
+
*/
|
|
46
|
+
|
|
42
47
|
/** @typedef EdcAggregatorsAndModelListParam */
|
|
43
48
|
|
|
44
49
|
/**
|
|
@@ -69,6 +74,15 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
|
|
|
69
74
|
* @property {string} terminalUniqueIdentifier - Terminal unique identifier
|
|
70
75
|
*/
|
|
71
76
|
|
|
77
|
+
/**
|
|
78
|
+
* @typedef GetMerchantAggregatorAppVersionParam
|
|
79
|
+
* @property {number} aggregatorId - Aggregators Id
|
|
80
|
+
* @property {string} businessUnit
|
|
81
|
+
* @property {string} device
|
|
82
|
+
* @property {number} [paymentModeId]
|
|
83
|
+
* @property {string} [subPaymentMode]
|
|
84
|
+
*/
|
|
85
|
+
|
|
72
86
|
/**
|
|
73
87
|
* @typedef GetMerchantAggregatorPaymentModeDetailsParam
|
|
74
88
|
* @property {number} aggregatorId - Aggregators Id
|
|
@@ -92,26 +106,51 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
|
|
|
92
106
|
* @property {string} [paymentLinkId]
|
|
93
107
|
*/
|
|
94
108
|
|
|
109
|
+
/**
|
|
110
|
+
* @typedef GetPaymentModeControlRoutesParam
|
|
111
|
+
* @property {string} mode - Offline / advance modes to get the payment modes
|
|
112
|
+
*/
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* @typedef GetPaymentModeCustomConfigParam
|
|
116
|
+
* @property {string} mode - Offline / advance mode
|
|
117
|
+
*/
|
|
118
|
+
|
|
95
119
|
/**
|
|
96
120
|
* @typedef GetPaymentModeRoutesParam
|
|
97
121
|
* @property {boolean} refresh
|
|
98
122
|
* @property {string} requestType
|
|
123
|
+
* @property {string} [orderId]
|
|
124
|
+
* @property {string} [shipmentId]
|
|
125
|
+
*/
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* @typedef GetPaymentSessionParam
|
|
129
|
+
* @property {string} gid - Global identifier of the entity (e.g. order, cart
|
|
130
|
+
* etc.) against which payment session was initiated. This is generated by
|
|
131
|
+
* Fynd payments platform and is unique.
|
|
132
|
+
* @property {boolean} [lineItem] - Line-item to add extra data into response
|
|
133
|
+
* (e.g. cart details)
|
|
99
134
|
*/
|
|
100
135
|
|
|
101
136
|
/**
|
|
102
137
|
* @typedef GetPosPaymentModeRoutesParam
|
|
103
138
|
* @property {number} amount - Payable amount.
|
|
104
|
-
* @property {string} cartId - Identifier of the cart.
|
|
139
|
+
* @property {string} [cartId] - Identifier of the cart.
|
|
105
140
|
* @property {string} pincode - The PIN Code of the destination address, e.g. 400059
|
|
106
|
-
* @property {string} checkoutMode - Option to checkout for self or for others.
|
|
141
|
+
* @property {string} [checkoutMode] - Option to checkout for self or for others.
|
|
107
142
|
* @property {boolean} [refresh] - This is a boolean value. Select `true` to
|
|
108
143
|
* remove temporary cache files on payment gateway and replace with the latest one.
|
|
144
|
+
* @property {string} [orderId]
|
|
109
145
|
* @property {string} [cardReference] - Card reference id of user's debit or credit card.
|
|
110
146
|
* @property {string} orderType - The order type of shipment * HomeDelivery - If
|
|
111
147
|
* the customer wants the order home-delivered * PickAtStore - If the customer
|
|
112
148
|
* wants the handover of an order at the store itself.
|
|
113
149
|
* @property {string} [userDetails] - URIencoded JSON containing details of an
|
|
114
150
|
* anonymous user.
|
|
151
|
+
* @property {boolean} [displaySplit] - Display Split Payment Option or not
|
|
152
|
+
* @property {boolean} [advancePayment] - Display Advance Payment Options or Normal
|
|
153
|
+
* @property {string} [shipmentId]
|
|
115
154
|
*/
|
|
116
155
|
|
|
117
156
|
/**
|
|
@@ -150,7 +189,7 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
|
|
|
150
189
|
/**
|
|
151
190
|
* @typedef PatchMerchantAggregatorPaymentModeDetailsParam
|
|
152
191
|
* @property {number} aggregatorId - Aggregators Id
|
|
153
|
-
* @property {PaymentPlatformModel.
|
|
192
|
+
* @property {PaymentPlatformModel.PlatformPaymentModeResponse} body
|
|
154
193
|
*/
|
|
155
194
|
|
|
156
195
|
/**
|
|
@@ -158,6 +197,12 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
|
|
|
158
197
|
* @property {PaymentPlatformModel.MerchnatPaymentModeRequest} body
|
|
159
198
|
*/
|
|
160
199
|
|
|
200
|
+
/**
|
|
201
|
+
* @typedef PatchMerchantPaymentOptionVersionParam
|
|
202
|
+
* @property {number} aggregatorId - Aggregators Id
|
|
203
|
+
* @property {PaymentPlatformModel.AggregatorControlRequest} body
|
|
204
|
+
*/
|
|
205
|
+
|
|
161
206
|
/**
|
|
162
207
|
* @typedef PaymentStatusBulkParam
|
|
163
208
|
* @property {PaymentPlatformModel.PaymentStatusBulkHandlerRequest} body
|
|
@@ -193,6 +238,18 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
|
|
|
193
238
|
* @property {PaymentPlatformModel.PaymentGatewayConfigRequest} body
|
|
194
239
|
*/
|
|
195
240
|
|
|
241
|
+
/**
|
|
242
|
+
* @typedef SetMerchantModeControlRoutesParam
|
|
243
|
+
* @property {string} mode - Offline / advance payment mode
|
|
244
|
+
* @property {PaymentPlatformModel.MerchantPaymentModeRequest} body
|
|
245
|
+
*/
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* @typedef SetPaymentModeCustomConfigParam
|
|
249
|
+
* @property {string} mode - Offline / advance payment mode
|
|
250
|
+
* @property {PaymentPlatformModel.PaymentCustomConfigRequestSchema} body
|
|
251
|
+
*/
|
|
252
|
+
|
|
196
253
|
/**
|
|
197
254
|
* @typedef SetUserCODlimitRoutesParam
|
|
198
255
|
* @property {PaymentPlatformModel.SetCODForUserRequest} body
|
|
@@ -284,6 +341,13 @@ class PaymentPlatformApplicationValidator {
|
|
|
284
341
|
}).required();
|
|
285
342
|
}
|
|
286
343
|
|
|
344
|
+
/** @returns {CreatePaymentOrderParam} */
|
|
345
|
+
static createPaymentOrder() {
|
|
346
|
+
return Joi.object({
|
|
347
|
+
body: PaymentPlatformModel.PaymentOrderRequest().required(),
|
|
348
|
+
}).required();
|
|
349
|
+
}
|
|
350
|
+
|
|
287
351
|
/** @returns {EdcAggregatorsAndModelListParam} */
|
|
288
352
|
static edcAggregatorsAndModelList() {
|
|
289
353
|
return Joi.object({}).required();
|
|
@@ -328,6 +392,17 @@ class PaymentPlatformApplicationValidator {
|
|
|
328
392
|
}).required();
|
|
329
393
|
}
|
|
330
394
|
|
|
395
|
+
/** @returns {GetMerchantAggregatorAppVersionParam} */
|
|
396
|
+
static getMerchantAggregatorAppVersion() {
|
|
397
|
+
return Joi.object({
|
|
398
|
+
aggregatorId: Joi.number().required(),
|
|
399
|
+
businessUnit: Joi.string().allow("").required(),
|
|
400
|
+
device: Joi.string().allow("").required(),
|
|
401
|
+
paymentModeId: Joi.number(),
|
|
402
|
+
subPaymentMode: Joi.string().allow(""),
|
|
403
|
+
}).required();
|
|
404
|
+
}
|
|
405
|
+
|
|
331
406
|
/** @returns {GetMerchantAggregatorPaymentModeDetailsParam} */
|
|
332
407
|
static getMerchantAggregatorPaymentModeDetails() {
|
|
333
408
|
return Joi.object({
|
|
@@ -366,11 +441,35 @@ class PaymentPlatformApplicationValidator {
|
|
|
366
441
|
}).required();
|
|
367
442
|
}
|
|
368
443
|
|
|
444
|
+
/** @returns {GetPaymentModeControlRoutesParam} */
|
|
445
|
+
static getPaymentModeControlRoutes() {
|
|
446
|
+
return Joi.object({
|
|
447
|
+
mode: Joi.string().allow("").required(),
|
|
448
|
+
}).required();
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
/** @returns {GetPaymentModeCustomConfigParam} */
|
|
452
|
+
static getPaymentModeCustomConfig() {
|
|
453
|
+
return Joi.object({
|
|
454
|
+
mode: Joi.string().allow("").required(),
|
|
455
|
+
}).required();
|
|
456
|
+
}
|
|
457
|
+
|
|
369
458
|
/** @returns {GetPaymentModeRoutesParam} */
|
|
370
459
|
static getPaymentModeRoutes() {
|
|
371
460
|
return Joi.object({
|
|
372
461
|
refresh: Joi.boolean().required(),
|
|
373
462
|
requestType: Joi.string().allow("").required(),
|
|
463
|
+
orderId: Joi.string().allow(""),
|
|
464
|
+
shipmentId: Joi.string().allow(""),
|
|
465
|
+
}).required();
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
/** @returns {GetPaymentSessionParam} */
|
|
469
|
+
static getPaymentSession() {
|
|
470
|
+
return Joi.object({
|
|
471
|
+
gid: Joi.string().allow("").required(),
|
|
472
|
+
lineItem: Joi.boolean(),
|
|
374
473
|
}).required();
|
|
375
474
|
}
|
|
376
475
|
|
|
@@ -378,13 +477,17 @@ class PaymentPlatformApplicationValidator {
|
|
|
378
477
|
static getPosPaymentModeRoutes() {
|
|
379
478
|
return Joi.object({
|
|
380
479
|
amount: Joi.number().required(),
|
|
381
|
-
cartId: Joi.string().allow("")
|
|
480
|
+
cartId: Joi.string().allow(""),
|
|
382
481
|
pincode: Joi.string().allow("").required(),
|
|
383
|
-
checkoutMode: Joi.string().allow("")
|
|
482
|
+
checkoutMode: Joi.string().allow(""),
|
|
384
483
|
refresh: Joi.boolean(),
|
|
484
|
+
orderId: Joi.string().allow(""),
|
|
385
485
|
cardReference: Joi.string().allow(""),
|
|
386
486
|
orderType: Joi.string().allow("").required(),
|
|
387
487
|
userDetails: Joi.string().allow(""),
|
|
488
|
+
displaySplit: Joi.boolean(),
|
|
489
|
+
advancePayment: Joi.boolean(),
|
|
490
|
+
shipmentId: Joi.string().allow(""),
|
|
388
491
|
}).required();
|
|
389
492
|
}
|
|
390
493
|
|
|
@@ -437,7 +540,7 @@ class PaymentPlatformApplicationValidator {
|
|
|
437
540
|
static patchMerchantAggregatorPaymentModeDetails() {
|
|
438
541
|
return Joi.object({
|
|
439
542
|
aggregatorId: Joi.number().required(),
|
|
440
|
-
body: PaymentPlatformModel.
|
|
543
|
+
body: PaymentPlatformModel.PlatformPaymentModeResponse().required(),
|
|
441
544
|
}).required();
|
|
442
545
|
}
|
|
443
546
|
|
|
@@ -448,6 +551,14 @@ class PaymentPlatformApplicationValidator {
|
|
|
448
551
|
}).required();
|
|
449
552
|
}
|
|
450
553
|
|
|
554
|
+
/** @returns {PatchMerchantPaymentOptionVersionParam} */
|
|
555
|
+
static patchMerchantPaymentOptionVersion() {
|
|
556
|
+
return Joi.object({
|
|
557
|
+
aggregatorId: Joi.number().required(),
|
|
558
|
+
body: PaymentPlatformModel.AggregatorControlRequest().required(),
|
|
559
|
+
}).required();
|
|
560
|
+
}
|
|
561
|
+
|
|
451
562
|
/** @returns {PaymentStatusBulkParam} */
|
|
452
563
|
static paymentStatusBulk() {
|
|
453
564
|
return Joi.object({
|
|
@@ -497,6 +608,22 @@ class PaymentPlatformApplicationValidator {
|
|
|
497
608
|
}).required();
|
|
498
609
|
}
|
|
499
610
|
|
|
611
|
+
/** @returns {SetMerchantModeControlRoutesParam} */
|
|
612
|
+
static setMerchantModeControlRoutes() {
|
|
613
|
+
return Joi.object({
|
|
614
|
+
mode: Joi.string().allow("").required(),
|
|
615
|
+
body: PaymentPlatformModel.MerchantPaymentModeRequest().required(),
|
|
616
|
+
}).required();
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
/** @returns {SetPaymentModeCustomConfigParam} */
|
|
620
|
+
static setPaymentModeCustomConfig() {
|
|
621
|
+
return Joi.object({
|
|
622
|
+
mode: Joi.string().allow("").required(),
|
|
623
|
+
body: PaymentPlatformModel.PaymentCustomConfigRequestSchema().required(),
|
|
624
|
+
}).required();
|
|
625
|
+
}
|
|
626
|
+
|
|
500
627
|
/** @returns {SetUserCODlimitRoutesParam} */
|
|
501
628
|
static setUserCODlimitRoutes() {
|
|
502
629
|
return Joi.object({
|
|
@@ -110,7 +110,7 @@ declare class Payment {
|
|
|
110
110
|
* @returns {Promise<PaymentPlatformModel.IfscCodeResponse>} - Success response
|
|
111
111
|
* @name verifyIfscCode
|
|
112
112
|
* @summary: Ifsc Code Verification
|
|
113
|
-
* @description: Get True
|
|
113
|
+
* @description: Get True or False for correct IFSC Code for adding bank details for refund - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/verifyIfscCode/).
|
|
114
114
|
*/
|
|
115
115
|
verifyIfscCode({ ifscCode, requestHeaders }?: PaymentPlatformValidator.VerifyIfscCodeParam, { responseHeaders }?: object): Promise<PaymentPlatformModel.IfscCodeResponse>;
|
|
116
116
|
}
|
|
@@ -757,7 +757,7 @@ class Payment {
|
|
|
757
757
|
* @returns {Promise<PaymentPlatformModel.IfscCodeResponse>} - Success response
|
|
758
758
|
* @name verifyIfscCode
|
|
759
759
|
* @summary: Ifsc Code Verification
|
|
760
|
-
* @description: Get True
|
|
760
|
+
* @description: Get True or False for correct IFSC Code for adding bank details for refund - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/verifyIfscCode/).
|
|
761
761
|
*/
|
|
762
762
|
async verifyIfscCode(
|
|
763
763
|
{ ifscCode, requestHeaders } = { requestHeaders: {} },
|