@gofynd/fdk-client-javascript 0.1.35 → 0.1.37
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/documentation/application/CART.md +272 -249
- package/documentation/application/CATALOG.md +417 -413
- package/documentation/application/COMMON.md +4 -0
- package/documentation/application/COMMUNICATION.md +4 -0
- package/documentation/application/CONFIGURATION.md +4 -0
- package/documentation/application/CONTENT.md +7 -20
- package/documentation/application/FILESTORAGE.md +85 -0
- package/documentation/application/LEAD.md +6 -2
- package/documentation/application/LOGISTIC.md +427 -101
- package/documentation/application/ORDER.md +292 -288
- package/documentation/application/PAYMENT.md +445 -259
- package/documentation/application/POSCART.md +309 -286
- package/documentation/application/README.md +1 -1
- package/documentation/application/REWARDS.md +153 -160
- package/documentation/application/SHARE.md +4 -0
- package/documentation/application/THEME.md +4 -0
- package/documentation/application/USER.md +4 -0
- package/documentation/platform/ANALYTICS.md +4 -0
- package/documentation/platform/AUDITTRAIL.md +6 -2
- package/documentation/platform/BILLING.md +4 -0
- package/documentation/platform/CART.md +476 -459
- package/documentation/platform/CATALOG.md +4138 -2968
- package/documentation/platform/COMMON.md +4 -0
- package/documentation/platform/COMMUNICATION.md +4 -0
- package/documentation/platform/COMPANYPROFILE.md +258 -206
- package/documentation/platform/CONFIGURATION.md +4 -0
- package/documentation/platform/CONTENT.md +8 -21
- package/documentation/platform/DISCOUNT.md +4 -0
- package/documentation/platform/FILESTORAGE.md +85 -0
- package/documentation/platform/INVENTORY.md +4 -0
- package/documentation/platform/LEAD.md +6 -2
- package/documentation/platform/ORDER.md +6298 -1448
- package/documentation/platform/PARTNER.md +12 -8
- package/documentation/platform/PAYMENT.md +107 -103
- package/documentation/platform/README.md +2 -2
- package/documentation/platform/REWARDS.md +219 -152
- package/documentation/platform/SHARE.md +4 -0
- package/documentation/platform/THEME.md +4 -0
- package/documentation/platform/USER.md +4 -0
- package/documentation/platform/WEBHOOK.md +4 -0
- package/documentation/public/CONFIGURATION.md +4 -0
- package/documentation/public/INVENTORY.md +4 -0
- package/documentation/public/WEBHOOK.md +4 -0
- package/package.json +2 -2
- package/sdk/application/ApplicationAPIClient.js +3 -0
- package/sdk/application/ApplicationClient.d.ts +1 -0
- package/sdk/application/ApplicationClient.js +11 -1
- package/sdk/application/ApplicationConfig.d.ts +1 -0
- package/sdk/application/ApplicationConfig.js +1 -0
- package/sdk/application/ApplicationModels.d.ts +94 -85
- package/sdk/application/ApplicationModels.js +1909 -1792
- package/sdk/application/client/CartApplicationClient.d.ts +36 -36
- package/sdk/application/client/CatalogApplicationClient.d.ts +39 -39
- package/sdk/application/client/CatalogApplicationClient.js +16 -16
- package/sdk/application/client/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/client/CommunicationApplicationClient.d.ts +5 -5
- package/sdk/application/client/ConfigurationApplicationClient.d.ts +17 -17
- package/sdk/application/client/ContentApplicationClient.d.ts +19 -19
- package/sdk/application/client/FileStorageApplicationClient.d.ts +14 -6
- package/sdk/application/client/FileStorageApplicationClient.js +2 -0
- package/sdk/application/client/LeadApplicationClient.d.ts +10 -10
- package/sdk/application/client/LogisticApplicationClient.d.ts +32 -21
- package/sdk/application/client/LogisticApplicationClient.js +62 -27
- package/sdk/application/client/OrderApplicationClient.d.ts +15 -15
- package/sdk/application/client/OrderApplicationClient.js +1 -1
- package/sdk/application/client/PaymentApplicationClient.d.ts +79 -57
- package/sdk/application/client/PaymentApplicationClient.js +66 -0
- package/sdk/application/client/PosCartApplicationClient.d.ts +38 -38
- package/sdk/application/client/RewardsApplicationClient.d.ts +34 -34
- package/sdk/application/client/RewardsApplicationClient.js +77 -77
- package/sdk/application/client/ShareApplicationClient.d.ts +8 -8
- package/sdk/application/client/ThemeApplicationClient.d.ts +4 -4
- package/sdk/application/client/UserApplicationClient.d.ts +63 -63
- package/sdk/application/models/CatalogValidator.d.ts +1 -1
- package/sdk/application/models/CatalogValidator.js +2 -2
- package/sdk/application/models/LogisticValidator.d.ts +2 -1
- package/sdk/application/models/LogisticValidator.js +11 -6
- package/sdk/application/models/PaymentValidator.d.ts +2 -0
- package/sdk/application/models/PaymentValidator.js +12 -0
- package/sdk/application/models/RewardsValidator.d.ts +3 -3
- package/sdk/application/models/RewardsValidator.js +12 -12
- package/sdk/common/AxiosHelper.js +1 -1
- package/sdk/common/Constant.d.ts +9 -0
- package/sdk/common/Constant.js +11 -0
- package/sdk/platform/PlatformApplicationClient.d.ts +7962 -6505
- package/sdk/platform/PlatformApplicationClient.js +4377 -3635
- package/sdk/platform/PlatformApplicationModels.d.ts +26 -31
- package/sdk/platform/PlatformApplicationModels.js +5530 -4134
- package/sdk/platform/PlatformClient.d.ts +3495 -2780
- package/sdk/platform/PlatformClient.js +3985 -3108
- package/sdk/platform/PlatformModels.d.ts +354 -273
- package/sdk/platform/PlatformModels.js +5635 -4211
- package/sdk/platform/client/AnalyticsPlatformClient.d.ts +5 -5
- package/sdk/platform/client/AuditTrailPlatformClient.d.ts +1 -1
- package/sdk/platform/client/BillingPlatformClient.d.ts +4 -4
- package/sdk/platform/client/CatalogPlatformClient.d.ts +222 -154
- package/sdk/platform/client/CatalogPlatformClient.js +473 -295
- package/sdk/platform/client/CompanyProfilePlatformClient.d.ts +8 -8
- package/sdk/platform/client/ConfigurationPlatformClient.d.ts +9 -9
- package/sdk/platform/client/DiscountPlatformClient.d.ts +4 -4
- package/sdk/platform/client/FileStoragePlatformClient.d.ts +20 -4
- package/sdk/platform/client/FileStoragePlatformClient.js +49 -0
- package/sdk/platform/client/InventoryPlatformClient.d.ts +3 -3
- package/sdk/platform/client/LeadPlatformClient.d.ts +6 -6
- package/sdk/platform/client/OrderPlatformClient.d.ts +557 -131
- package/sdk/platform/client/OrderPlatformClient.js +1551 -247
- package/sdk/platform/client/PaymentPlatformClient.d.ts +4 -4
- package/sdk/platform/client/WebhookPlatformClient.d.ts +2 -2
- package/sdk/platform/models/CatalogValidator.d.ts +26 -22
- package/sdk/platform/models/CatalogValidator.js +109 -72
- package/sdk/platform/models/OrderValidator.d.ts +43 -11
- package/sdk/platform/models/OrderValidator.js +312 -51
- package/sdk/public/client/ConfigurationPublicClient.d.ts +2 -2
- package/sdk/public/client/InventoryPublicClient.d.ts +7 -7
- package/sdk/public/client/WebhookPublicClient.d.ts +3 -3
- package/tests/common/schema/action-url.json +15 -0
- package/tests/common/schema/url-action.json +16 -0
|
@@ -21,7 +21,7 @@ declare class Order {
|
|
|
21
21
|
/**
|
|
22
22
|
* @param {Object} arg - Arg object.
|
|
23
23
|
* @param {number} [arg.status] - A filter to retrieve orders by their
|
|
24
|
-
* current status such as
|
|
24
|
+
* current status such as _placed_, _delivered_, etc.
|
|
25
25
|
* @param {number} [arg.pageNo] - The page number to navigate through the
|
|
26
26
|
* given set of results. Default value is 1.
|
|
27
27
|
* @param {number} [arg.pageSize] - The number of items to retrieve in each
|
|
@@ -42,7 +42,7 @@ declare class Order {
|
|
|
42
42
|
fromDate?: string;
|
|
43
43
|
toDate?: string;
|
|
44
44
|
customMeta?: string;
|
|
45
|
-
}): Promise<
|
|
45
|
+
}): Promise<OrderList>;
|
|
46
46
|
/**
|
|
47
47
|
* @param {Object} arg - Arg object.
|
|
48
48
|
* @param {string} arg.orderId - A unique number used for identifying and
|
|
@@ -53,7 +53,7 @@ declare class Order {
|
|
|
53
53
|
*/
|
|
54
54
|
getOrderById({ orderId }?: {
|
|
55
55
|
orderId: string;
|
|
56
|
-
}): Promise<
|
|
56
|
+
}): Promise<OrderById>;
|
|
57
57
|
/**
|
|
58
58
|
* @param {Object} arg - Arg object.
|
|
59
59
|
* @param {string} arg.orderId - A unique number used for identifying and
|
|
@@ -64,7 +64,7 @@ declare class Order {
|
|
|
64
64
|
*/
|
|
65
65
|
getPosOrderById({ orderId }?: {
|
|
66
66
|
orderId: string;
|
|
67
|
-
}): Promise<
|
|
67
|
+
}): Promise<OrderList>;
|
|
68
68
|
/**
|
|
69
69
|
* @param {Object} arg - Arg object.
|
|
70
70
|
* @param {string} arg.shipmentId - ID of the shipment. An order may contain
|
|
@@ -76,7 +76,7 @@ declare class Order {
|
|
|
76
76
|
*/
|
|
77
77
|
getShipmentById({ shipmentId }?: {
|
|
78
78
|
shipmentId: string;
|
|
79
|
-
}): Promise<
|
|
79
|
+
}): Promise<ShipmentById>;
|
|
80
80
|
/**
|
|
81
81
|
* @param {Object} arg - Arg object.
|
|
82
82
|
* @param {string} arg.shipmentId - ID of the shipment.
|
|
@@ -86,7 +86,7 @@ declare class Order {
|
|
|
86
86
|
*/
|
|
87
87
|
getInvoiceByShipmentId({ shipmentId }?: {
|
|
88
88
|
shipmentId: string;
|
|
89
|
-
}): Promise<
|
|
89
|
+
}): Promise<ResponseGetInvoiceShipment>;
|
|
90
90
|
/**
|
|
91
91
|
* @param {Object} arg - Arg object.
|
|
92
92
|
* @param {string} arg.shipmentId - ID of the shipment. An order may contain
|
|
@@ -98,7 +98,7 @@ declare class Order {
|
|
|
98
98
|
*/
|
|
99
99
|
trackShipment({ shipmentId }?: {
|
|
100
100
|
shipmentId: string;
|
|
101
|
-
}): Promise<
|
|
101
|
+
}): Promise<ShipmentTrack>;
|
|
102
102
|
/**
|
|
103
103
|
* @param {Object} arg - Arg object.
|
|
104
104
|
* @param {string} arg.orderId - ID of the shipment. An order may contain
|
|
@@ -113,7 +113,7 @@ declare class Order {
|
|
|
113
113
|
getCustomerDetailsByShipmentId({ orderId, shipmentId }?: {
|
|
114
114
|
orderId: string;
|
|
115
115
|
shipmentId: string;
|
|
116
|
-
}): Promise<
|
|
116
|
+
}): Promise<CustomerDetailsResponse>;
|
|
117
117
|
/**
|
|
118
118
|
* @param {Object} arg - Arg object.
|
|
119
119
|
* @param {string} arg.orderId - A unique number used for identifying and
|
|
@@ -128,7 +128,7 @@ declare class Order {
|
|
|
128
128
|
sendOtpToShipmentCustomer({ orderId, shipmentId }?: {
|
|
129
129
|
orderId: string;
|
|
130
130
|
shipmentId: string;
|
|
131
|
-
}): Promise<
|
|
131
|
+
}): Promise<SendOtpToCustomerResponse>;
|
|
132
132
|
/**
|
|
133
133
|
* @param {Object} arg - Arg object.
|
|
134
134
|
* @param {string} arg.orderId - A unique number used for identifying and
|
|
@@ -144,8 +144,8 @@ declare class Order {
|
|
|
144
144
|
verifyOtpShipmentCustomer({ orderId, shipmentId, body }?: {
|
|
145
145
|
orderId: string;
|
|
146
146
|
shipmentId: string;
|
|
147
|
-
body:
|
|
148
|
-
}): Promise<
|
|
147
|
+
body: VerifyOtp;
|
|
148
|
+
}): Promise<VerifyOtpResponse>;
|
|
149
149
|
/**
|
|
150
150
|
* @param {Object} arg - Arg object.
|
|
151
151
|
* @param {string} arg.shipmentId - ID of the bag. An order may contain
|
|
@@ -160,7 +160,7 @@ declare class Order {
|
|
|
160
160
|
getShipmentBagReasons({ shipmentId, bagId }?: {
|
|
161
161
|
shipmentId: string;
|
|
162
162
|
bagId: string;
|
|
163
|
-
}): Promise<
|
|
163
|
+
}): Promise<ShipmentBagReasons>;
|
|
164
164
|
/**
|
|
165
165
|
* @param {Object} arg - Arg object.
|
|
166
166
|
* @param {string} arg.shipmentId - ID of the shipment. An order may contain
|
|
@@ -172,7 +172,7 @@ declare class Order {
|
|
|
172
172
|
*/
|
|
173
173
|
getShipmentReasons({ shipmentId }?: {
|
|
174
174
|
shipmentId: string;
|
|
175
|
-
}): Promise<
|
|
175
|
+
}): Promise<ShipmentReasons>;
|
|
176
176
|
/**
|
|
177
177
|
* @param {Object} arg - Arg object.
|
|
178
178
|
* @param {string} arg.shipmentId - ID of the shipment. An order may contain
|
|
@@ -185,6 +185,6 @@ declare class Order {
|
|
|
185
185
|
*/
|
|
186
186
|
updateShipmentStatus({ shipmentId, body }?: {
|
|
187
187
|
shipmentId: string;
|
|
188
|
-
body:
|
|
189
|
-
}): Promise<
|
|
188
|
+
body: UpdateShipmentStatusRequest;
|
|
189
|
+
}): Promise<ShipmentApplicationStatusResponse>;
|
|
190
190
|
}
|
|
@@ -50,7 +50,7 @@ class Order {
|
|
|
50
50
|
/**
|
|
51
51
|
* @param {Object} arg - Arg object.
|
|
52
52
|
* @param {number} [arg.status] - A filter to retrieve orders by their
|
|
53
|
-
* current status such as
|
|
53
|
+
* current status such as _placed_, _delivered_, etc.
|
|
54
54
|
* @param {number} [arg.pageNo] - The page number to navigate through the
|
|
55
55
|
* given set of results. Default value is 1.
|
|
56
56
|
* @param {number} [arg.pageSize] - The number of items to retrieve in each
|
|
@@ -17,6 +17,8 @@ declare class Payment {
|
|
|
17
17
|
getRupifiBannerDetails: string;
|
|
18
18
|
getEpaylaterBannerDetails: string;
|
|
19
19
|
resendOrCancelPayment: string;
|
|
20
|
+
renderHTML: string;
|
|
21
|
+
validateVPA: string;
|
|
20
22
|
getActiveRefundTransferModes: string;
|
|
21
23
|
enableOrDisableRefundTransferMode: string;
|
|
22
24
|
getUserBeneficiariesDetail: string;
|
|
@@ -56,7 +58,7 @@ declare class Payment {
|
|
|
56
58
|
getAggregatorsConfig({ xApiToken, refresh }?: {
|
|
57
59
|
xApiToken?: string;
|
|
58
60
|
refresh?: boolean;
|
|
59
|
-
}): Promise<
|
|
61
|
+
}): Promise<AggregatorsConfigDetailResponse>;
|
|
60
62
|
/**
|
|
61
63
|
* @param {Object} arg - Arg object.
|
|
62
64
|
* @param {AttachCardRequest} arg.body
|
|
@@ -65,8 +67,8 @@ declare class Payment {
|
|
|
65
67
|
* @description: Use this API to attach a customer's saved card at the payment gateway, such as Stripe, Juspay.
|
|
66
68
|
*/
|
|
67
69
|
attachCardToCustomer({ body }?: {
|
|
68
|
-
body:
|
|
69
|
-
}): Promise<
|
|
70
|
+
body: AttachCardRequest;
|
|
71
|
+
}): Promise<AttachCardsResponse>;
|
|
70
72
|
/**
|
|
71
73
|
* @param {Object} arg - Arg object.
|
|
72
74
|
* @param {boolean} [arg.refresh] -
|
|
@@ -76,7 +78,7 @@ declare class Payment {
|
|
|
76
78
|
*/
|
|
77
79
|
getActiveCardAggregator({ refresh }?: {
|
|
78
80
|
refresh?: boolean;
|
|
79
|
-
}): Promise<
|
|
81
|
+
}): Promise<ActiveCardPaymentGatewayResponse>;
|
|
80
82
|
/**
|
|
81
83
|
* @param {Object} arg - Arg object.
|
|
82
84
|
* @param {boolean} [arg.forceRefresh] -
|
|
@@ -86,7 +88,7 @@ declare class Payment {
|
|
|
86
88
|
*/
|
|
87
89
|
getActiveUserCards({ forceRefresh }?: {
|
|
88
90
|
forceRefresh?: boolean;
|
|
89
|
-
}): Promise<
|
|
91
|
+
}): Promise<ListCardsResponse>;
|
|
90
92
|
/**
|
|
91
93
|
* @param {Object} arg - Arg object.
|
|
92
94
|
* @param {DeletehCardRequest} arg.body
|
|
@@ -95,8 +97,8 @@ declare class Payment {
|
|
|
95
97
|
* @description: Use this API to delete a card added by a user on the payment gateway and clear the cache.
|
|
96
98
|
*/
|
|
97
99
|
deleteUserCard({ body }?: {
|
|
98
|
-
body:
|
|
99
|
-
}): Promise<
|
|
100
|
+
body: DeletehCardRequest;
|
|
101
|
+
}): Promise<DeleteCardsResponse>;
|
|
100
102
|
/**
|
|
101
103
|
* @param {Object} arg - Arg object.
|
|
102
104
|
* @param {ValidateCustomerRequest} arg.body
|
|
@@ -105,8 +107,8 @@ declare class Payment {
|
|
|
105
107
|
* @description: Use this API to check if the customer is eligible to use credit-line facilities such as Simpl Pay Later and Rupifi.
|
|
106
108
|
*/
|
|
107
109
|
verifyCustomerForPayment({ body }?: {
|
|
108
|
-
body:
|
|
109
|
-
}): Promise<
|
|
110
|
+
body: ValidateCustomerRequest;
|
|
111
|
+
}): Promise<ValidateCustomerResponse>;
|
|
110
112
|
/**
|
|
111
113
|
* @param {Object} arg - Arg object.
|
|
112
114
|
* @param {ChargeCustomerRequest} arg.body
|
|
@@ -115,8 +117,8 @@ declare class Payment {
|
|
|
115
117
|
* @description: Use this API to verify and check the status of a payment transaction (server-to-server) made through aggregators like Simpl and Mswipe.
|
|
116
118
|
*/
|
|
117
119
|
verifyAndChargePayment({ body }?: {
|
|
118
|
-
body:
|
|
119
|
-
}): Promise<
|
|
120
|
+
body: ChargeCustomerRequest;
|
|
121
|
+
}): Promise<ChargeCustomerResponse>;
|
|
120
122
|
/**
|
|
121
123
|
* @param {Object} arg - Arg object.
|
|
122
124
|
* @param {PaymentInitializationRequest} arg.body
|
|
@@ -125,8 +127,8 @@ declare class Payment {
|
|
|
125
127
|
* @description: PUse this API to inititate payment using UPI, BharatQR, wherein the UPI requests are send to the app and QR code is displayed on the screen.
|
|
126
128
|
*/
|
|
127
129
|
initialisePayment({ body }?: {
|
|
128
|
-
body:
|
|
129
|
-
}): Promise<
|
|
130
|
+
body: PaymentInitializationRequest;
|
|
131
|
+
}): Promise<PaymentInitializationResponse>;
|
|
130
132
|
/**
|
|
131
133
|
* @param {Object} arg - Arg object.
|
|
132
134
|
* @param {PaymentStatusUpdateRequest} arg.body
|
|
@@ -135,8 +137,8 @@ declare class Payment {
|
|
|
135
137
|
* @description: Use this API to perform continuous polling at intervals to check the status of payment until timeout.
|
|
136
138
|
*/
|
|
137
139
|
checkAndUpdatePaymentStatus({ body }?: {
|
|
138
|
-
body:
|
|
139
|
-
}): Promise<
|
|
140
|
+
body: PaymentStatusUpdateRequest;
|
|
141
|
+
}): Promise<PaymentStatusUpdateResponse>;
|
|
140
142
|
/**
|
|
141
143
|
* @param {Object} arg - Arg object.
|
|
142
144
|
* @param {number} arg.amount - Payable amount.
|
|
@@ -162,7 +164,7 @@ declare class Payment {
|
|
|
162
164
|
refresh?: boolean;
|
|
163
165
|
cardReference?: string;
|
|
164
166
|
userDetails?: string;
|
|
165
|
-
}): Promise<
|
|
167
|
+
}): Promise<PaymentModeRouteResponse>;
|
|
166
168
|
/**
|
|
167
169
|
* @param {Object} arg - Arg object.
|
|
168
170
|
* @param {number} arg.amount - Payable amount.
|
|
@@ -192,21 +194,21 @@ declare class Payment {
|
|
|
192
194
|
cardReference?: string;
|
|
193
195
|
orderType: string;
|
|
194
196
|
userDetails?: string;
|
|
195
|
-
}): Promise<
|
|
197
|
+
}): Promise<PaymentModeRouteResponse>;
|
|
196
198
|
/**
|
|
197
199
|
* @param {Object} arg - Arg object.
|
|
198
200
|
* @returns {Promise<RupifiBannerResponse>} - Success response
|
|
199
201
|
* @summary: Get CreditLine Offer
|
|
200
202
|
* @description: Get CreditLine Offer if user is tentatively approved by rupifi
|
|
201
203
|
*/
|
|
202
|
-
getRupifiBannerDetails({}?: any): Promise<
|
|
204
|
+
getRupifiBannerDetails({}?: any): Promise<RupifiBannerResponse>;
|
|
203
205
|
/**
|
|
204
206
|
* @param {Object} arg - Arg object.
|
|
205
207
|
* @returns {Promise<EpaylaterBannerResponse>} - Success response
|
|
206
208
|
* @summary: Get Epaylater Enabled
|
|
207
209
|
* @description: Get Epaylater Enabled if user is tentatively approved by epaylater
|
|
208
210
|
*/
|
|
209
|
-
getEpaylaterBannerDetails({}?: any): Promise<
|
|
211
|
+
getEpaylaterBannerDetails({}?: any): Promise<EpaylaterBannerResponse>;
|
|
210
212
|
/**
|
|
211
213
|
* @param {Object} arg - Arg object.
|
|
212
214
|
* @param {ResendOrCancelPaymentRequest} arg.body
|
|
@@ -215,15 +217,35 @@ declare class Payment {
|
|
|
215
217
|
* @description: Use this API to perform resend or cancel a payment link based on request payload.
|
|
216
218
|
*/
|
|
217
219
|
resendOrCancelPayment({ body }?: {
|
|
218
|
-
body:
|
|
219
|
-
}): Promise<
|
|
220
|
+
body: ResendOrCancelPaymentRequest;
|
|
221
|
+
}): Promise<ResendOrCancelPaymentResponse>;
|
|
222
|
+
/**
|
|
223
|
+
* @param {Object} arg - Arg object.
|
|
224
|
+
* @param {renderHTMLRequest} arg.body
|
|
225
|
+
* @returns {Promise<renderHTMLResponse>} - Success response
|
|
226
|
+
* @summary: Convert base64 string to HTML form
|
|
227
|
+
* @description: Use this API to decode base64 html form to plain HTML string.
|
|
228
|
+
*/
|
|
229
|
+
renderHTML({ body }?: {
|
|
230
|
+
body: renderHTMLRequest;
|
|
231
|
+
}): Promise<renderHTMLResponse>;
|
|
232
|
+
/**
|
|
233
|
+
* @param {Object} arg - Arg object.
|
|
234
|
+
* @param {ValidateVPARequest} arg.body
|
|
235
|
+
* @returns {Promise<ValidateVPAResponse>} - Success response
|
|
236
|
+
* @summary: API to Validate UPI ID
|
|
237
|
+
* @description: API to Validate UPI ID
|
|
238
|
+
*/
|
|
239
|
+
validateVPA({ body }?: {
|
|
240
|
+
body: ValidateVPARequest;
|
|
241
|
+
}): Promise<ValidateVPAResponse>;
|
|
220
242
|
/**
|
|
221
243
|
* @param {Object} arg - Arg object.
|
|
222
244
|
* @returns {Promise<TransferModeResponse>} - Success response
|
|
223
245
|
* @summary: Lists the mode of refund
|
|
224
246
|
* @description: Use this API to retrieve eligible refund modes (such as Netbanking) and add the beneficiary details.
|
|
225
247
|
*/
|
|
226
|
-
getActiveRefundTransferModes({}?: any): Promise<
|
|
248
|
+
getActiveRefundTransferModes({}?: any): Promise<TransferModeResponse>;
|
|
227
249
|
/**
|
|
228
250
|
* @param {Object} arg - Arg object.
|
|
229
251
|
* @param {UpdateRefundTransferModeRequest} arg.body
|
|
@@ -232,8 +254,8 @@ declare class Payment {
|
|
|
232
254
|
* @description: Activate or Deactivate Transfer Mode to collect Beneficiary Details for Refund
|
|
233
255
|
*/
|
|
234
256
|
enableOrDisableRefundTransferMode({ body }?: {
|
|
235
|
-
body:
|
|
236
|
-
}): Promise<
|
|
257
|
+
body: UpdateRefundTransferModeRequest;
|
|
258
|
+
}): Promise<UpdateRefundTransferModeResponse>;
|
|
237
259
|
/**
|
|
238
260
|
* @param {Object} arg - Arg object.
|
|
239
261
|
* @param {string} arg.orderId - A unique number used for identifying and
|
|
@@ -244,7 +266,7 @@ declare class Payment {
|
|
|
244
266
|
*/
|
|
245
267
|
getUserBeneficiariesDetail({ orderId }?: {
|
|
246
268
|
orderId: string;
|
|
247
|
-
}): Promise<
|
|
269
|
+
}): Promise<OrderBeneficiaryResponse>;
|
|
248
270
|
/**
|
|
249
271
|
* @param {Object} arg - Arg object.
|
|
250
272
|
* @param {string} [arg.ifscCode] - A 11-digit alphanumeric code that
|
|
@@ -255,7 +277,7 @@ declare class Payment {
|
|
|
255
277
|
*/
|
|
256
278
|
verifyIfscCode({ ifscCode }?: {
|
|
257
279
|
ifscCode?: string;
|
|
258
|
-
}): Promise<
|
|
280
|
+
}): Promise<IfscCodeResponse>;
|
|
259
281
|
/**
|
|
260
282
|
* @param {Object} arg - Arg object.
|
|
261
283
|
* @param {string} arg.orderId - A unique number used for identifying and
|
|
@@ -266,7 +288,7 @@ declare class Payment {
|
|
|
266
288
|
*/
|
|
267
289
|
getOrderBeneficiariesDetail({ orderId }?: {
|
|
268
290
|
orderId: string;
|
|
269
|
-
}): Promise<
|
|
291
|
+
}): Promise<OrderBeneficiaryResponse>;
|
|
270
292
|
/**
|
|
271
293
|
* @param {Object} arg - Arg object.
|
|
272
294
|
* @param {AddBeneficiaryViaOtpVerificationRequest} arg.body
|
|
@@ -275,8 +297,8 @@ declare class Payment {
|
|
|
275
297
|
* @description: Use this API to perform an OTP validation before saving the beneficiary details added for a refund.
|
|
276
298
|
*/
|
|
277
299
|
verifyOtpAndAddBeneficiaryForBank({ body }?: {
|
|
278
|
-
body:
|
|
279
|
-
}): Promise<
|
|
300
|
+
body: AddBeneficiaryViaOtpVerificationRequest;
|
|
301
|
+
}): Promise<AddBeneficiaryViaOtpVerificationResponse>;
|
|
280
302
|
/**
|
|
281
303
|
* @param {Object} arg - Arg object.
|
|
282
304
|
* @param {AddBeneficiaryDetailsRequest} arg.body
|
|
@@ -285,8 +307,8 @@ declare class Payment {
|
|
|
285
307
|
* @description: Use this API to save the bank details for a returned or cancelled order to refund the amount.
|
|
286
308
|
*/
|
|
287
309
|
addBeneficiaryDetails({ body }?: {
|
|
288
|
-
body:
|
|
289
|
-
}): Promise<
|
|
310
|
+
body: AddBeneficiaryDetailsRequest;
|
|
311
|
+
}): Promise<RefundAccountResponse>;
|
|
290
312
|
/**
|
|
291
313
|
* @param {Object} arg - Arg object.
|
|
292
314
|
* @param {AddBeneficiaryDetailsOTPRequest} arg.body
|
|
@@ -295,8 +317,8 @@ declare class Payment {
|
|
|
295
317
|
* @description: Use this API to save bank details for returned/cancelled order to refund amount in his account.
|
|
296
318
|
*/
|
|
297
319
|
addRefundBankAccountUsingOTP({ body }?: {
|
|
298
|
-
body:
|
|
299
|
-
}): Promise<
|
|
320
|
+
body: AddBeneficiaryDetailsOTPRequest;
|
|
321
|
+
}): Promise<RefundAccountResponse>;
|
|
300
322
|
/**
|
|
301
323
|
* @param {Object} arg - Arg object.
|
|
302
324
|
* @param {WalletOtpRequest} arg.body
|
|
@@ -305,8 +327,8 @@ declare class Payment {
|
|
|
305
327
|
* @description: Use this API to send an OTP while adding a wallet beneficiary by mobile no. verification.
|
|
306
328
|
*/
|
|
307
329
|
verifyOtpAndAddBeneficiaryForWallet({ body }?: {
|
|
308
|
-
body:
|
|
309
|
-
}): Promise<
|
|
330
|
+
body: WalletOtpRequest;
|
|
331
|
+
}): Promise<WalletOtpResponse>;
|
|
310
332
|
/**
|
|
311
333
|
* @param {Object} arg - Arg object.
|
|
312
334
|
* @param {SetDefaultBeneficiaryRequest} arg.body
|
|
@@ -315,8 +337,8 @@ declare class Payment {
|
|
|
315
337
|
* @description: Use this API to set a default beneficiary for getting a refund.
|
|
316
338
|
*/
|
|
317
339
|
updateDefaultBeneficiary({ body }?: {
|
|
318
|
-
body:
|
|
319
|
-
}): Promise<
|
|
340
|
+
body: SetDefaultBeneficiaryRequest;
|
|
341
|
+
}): Promise<SetDefaultBeneficiaryResponse>;
|
|
320
342
|
/**
|
|
321
343
|
* @param {Object} arg - Arg object.
|
|
322
344
|
* @param {string} [arg.paymentLinkId] -
|
|
@@ -326,7 +348,7 @@ declare class Payment {
|
|
|
326
348
|
*/
|
|
327
349
|
getPaymentLink({ paymentLinkId }?: {
|
|
328
350
|
paymentLinkId?: string;
|
|
329
|
-
}): Promise<
|
|
351
|
+
}): Promise<GetPaymentLinkResponse>;
|
|
330
352
|
/**
|
|
331
353
|
* @param {Object} arg - Arg object.
|
|
332
354
|
* @param {CreatePaymentLinkRequest} arg.body
|
|
@@ -335,8 +357,8 @@ declare class Payment {
|
|
|
335
357
|
* @description: Use this API to create a payment link for the customer
|
|
336
358
|
*/
|
|
337
359
|
createPaymentLink({ body }?: {
|
|
338
|
-
body:
|
|
339
|
-
}): Promise<
|
|
360
|
+
body: CreatePaymentLinkRequest;
|
|
361
|
+
}): Promise<CreatePaymentLinkResponse>;
|
|
340
362
|
/**
|
|
341
363
|
* @param {Object} arg - Arg object.
|
|
342
364
|
* @param {CancelOrResendPaymentLinkRequest} arg.body
|
|
@@ -345,8 +367,8 @@ declare class Payment {
|
|
|
345
367
|
* @description: Use this API to resend a payment link for the customer
|
|
346
368
|
*/
|
|
347
369
|
resendPaymentLink({ body }?: {
|
|
348
|
-
body:
|
|
349
|
-
}): Promise<
|
|
370
|
+
body: CancelOrResendPaymentLinkRequest;
|
|
371
|
+
}): Promise<ResendPaymentLinkResponse>;
|
|
350
372
|
/**
|
|
351
373
|
* @param {Object} arg - Arg object.
|
|
352
374
|
* @param {CancelOrResendPaymentLinkRequest} arg.body
|
|
@@ -355,8 +377,8 @@ declare class Payment {
|
|
|
355
377
|
* @description: Use this API to cancel a payment link for the customer
|
|
356
378
|
*/
|
|
357
379
|
cancelPaymentLink({ body }?: {
|
|
358
|
-
body:
|
|
359
|
-
}): Promise<
|
|
380
|
+
body: CancelOrResendPaymentLinkRequest;
|
|
381
|
+
}): Promise<CancelPaymentLinkResponse>;
|
|
360
382
|
/**
|
|
361
383
|
* @param {Object} arg - Arg object.
|
|
362
384
|
* @param {string} arg.paymentLinkId - Payment link id
|
|
@@ -366,7 +388,7 @@ declare class Payment {
|
|
|
366
388
|
*/
|
|
367
389
|
getPaymentModeRoutesPaymentLink({ paymentLinkId }?: {
|
|
368
390
|
paymentLinkId: string;
|
|
369
|
-
}): Promise<
|
|
391
|
+
}): Promise<PaymentModeRouteResponse>;
|
|
370
392
|
/**
|
|
371
393
|
* @param {Object} arg - Arg object.
|
|
372
394
|
* @param {string} [arg.paymentLinkId] -
|
|
@@ -376,7 +398,7 @@ declare class Payment {
|
|
|
376
398
|
*/
|
|
377
399
|
pollingPaymentLink({ paymentLinkId }?: {
|
|
378
400
|
paymentLinkId?: string;
|
|
379
|
-
}): Promise<
|
|
401
|
+
}): Promise<PollingPaymentLinkResponse>;
|
|
380
402
|
/**
|
|
381
403
|
* @param {Object} arg - Arg object.
|
|
382
404
|
* @param {CreateOrderUserRequest} arg.body
|
|
@@ -385,8 +407,8 @@ declare class Payment {
|
|
|
385
407
|
* @description: Use this API to create a order and payment on aggregator side
|
|
386
408
|
*/
|
|
387
409
|
createOrderHandlerPaymentLink({ body }?: {
|
|
388
|
-
body:
|
|
389
|
-
}): Promise<
|
|
410
|
+
body: CreateOrderUserRequest;
|
|
411
|
+
}): Promise<CreateOrderUserResponse>;
|
|
390
412
|
/**
|
|
391
413
|
* @param {Object} arg - Arg object.
|
|
392
414
|
* @param {PaymentInitializationRequest} arg.body
|
|
@@ -395,8 +417,8 @@ declare class Payment {
|
|
|
395
417
|
* @description: Use this API to inititate payment using UPI, BharatQR, wherein the UPI requests are send to the app and QR code is displayed on the screen.
|
|
396
418
|
*/
|
|
397
419
|
initialisePaymentPaymentLink({ body }?: {
|
|
398
|
-
body:
|
|
399
|
-
}): Promise<
|
|
420
|
+
body: PaymentInitializationRequest;
|
|
421
|
+
}): Promise<PaymentInitializationResponse>;
|
|
400
422
|
/**
|
|
401
423
|
* @param {Object} arg - Arg object.
|
|
402
424
|
* @param {PaymentStatusUpdateRequest} arg.body
|
|
@@ -405,8 +427,8 @@ declare class Payment {
|
|
|
405
427
|
* @description: Use this API to perform continuous polling at intervals to check the status of payment until timeout.
|
|
406
428
|
*/
|
|
407
429
|
checkAndUpdatePaymentStatusPaymentLink({ body }?: {
|
|
408
|
-
body:
|
|
409
|
-
}): Promise<
|
|
430
|
+
body: PaymentStatusUpdateRequest;
|
|
431
|
+
}): Promise<PaymentStatusUpdateResponse>;
|
|
410
432
|
/**
|
|
411
433
|
* @param {Object} arg - Arg object.
|
|
412
434
|
* @param {string} [arg.aggregator] -
|
|
@@ -416,7 +438,7 @@ declare class Payment {
|
|
|
416
438
|
*/
|
|
417
439
|
customerCreditSummary({ aggregator }?: {
|
|
418
440
|
aggregator?: string;
|
|
419
|
-
}): Promise<
|
|
441
|
+
}): Promise<CustomerCreditSummaryResponse>;
|
|
420
442
|
/**
|
|
421
443
|
* @param {Object} arg - Arg object.
|
|
422
444
|
* @param {string} [arg.source] - This is a String value that contains
|
|
@@ -430,7 +452,7 @@ declare class Payment {
|
|
|
430
452
|
redirectToAggregator({ source, aggregator }?: {
|
|
431
453
|
source?: string;
|
|
432
454
|
aggregator?: string;
|
|
433
|
-
}): Promise<
|
|
455
|
+
}): Promise<RedirectToAggregatorResponse>;
|
|
434
456
|
/**
|
|
435
457
|
* @param {Object} arg - Arg object.
|
|
436
458
|
* @param {string} [arg.aggregator] -
|
|
@@ -440,7 +462,7 @@ declare class Payment {
|
|
|
440
462
|
*/
|
|
441
463
|
checkCredit({ aggregator }?: {
|
|
442
464
|
aggregator?: string;
|
|
443
|
-
}): Promise<
|
|
465
|
+
}): Promise<CheckCreditResponse>;
|
|
444
466
|
/**
|
|
445
467
|
* @param {Object} arg - Arg object.
|
|
446
468
|
* @param {CustomerOnboardingRequest} arg.body
|
|
@@ -449,6 +471,6 @@ declare class Payment {
|
|
|
449
471
|
* @description: Use this API to fetch the customer credit summary.
|
|
450
472
|
*/
|
|
451
473
|
customerOnboard({ body }?: {
|
|
452
|
-
body:
|
|
453
|
-
}): Promise<
|
|
474
|
+
body: CustomerOnboardingRequest;
|
|
475
|
+
}): Promise<CustomerOnboardingResponse>;
|
|
454
476
|
}
|
|
@@ -30,6 +30,8 @@ class Payment {
|
|
|
30
30
|
"/service/application/payment/v1.0/epaylater/banner",
|
|
31
31
|
resendOrCancelPayment:
|
|
32
32
|
"/service/application/payment/v1.0/payment/resend_or_cancel",
|
|
33
|
+
renderHTML: "/service/application/payment/v1.0/payment/html/render/",
|
|
34
|
+
validateVPA: "/service/application/payment/v1.0/validate-vpa",
|
|
33
35
|
getActiveRefundTransferModes:
|
|
34
36
|
"/service/application/payment/v1.0/refund/transfer-mode",
|
|
35
37
|
enableOrDisableRefundTransferMode:
|
|
@@ -613,6 +615,70 @@ class Payment {
|
|
|
613
615
|
);
|
|
614
616
|
}
|
|
615
617
|
|
|
618
|
+
/**
|
|
619
|
+
* @param {Object} arg - Arg object.
|
|
620
|
+
* @param {renderHTMLRequest} arg.body
|
|
621
|
+
* @returns {Promise<renderHTMLResponse>} - Success response
|
|
622
|
+
* @summary: Convert base64 string to HTML form
|
|
623
|
+
* @description: Use this API to decode base64 html form to plain HTML string.
|
|
624
|
+
*/
|
|
625
|
+
renderHTML({ body } = {}) {
|
|
626
|
+
const { error } = PaymentValidator.renderHTML().validate(
|
|
627
|
+
{ body },
|
|
628
|
+
{ abortEarly: false, allowUnknown: true }
|
|
629
|
+
);
|
|
630
|
+
if (error) {
|
|
631
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
632
|
+
}
|
|
633
|
+
const query_params = {};
|
|
634
|
+
|
|
635
|
+
const xHeaders = {};
|
|
636
|
+
|
|
637
|
+
return APIClient.execute(
|
|
638
|
+
this._conf,
|
|
639
|
+
"post",
|
|
640
|
+
constructUrl({
|
|
641
|
+
url: this._urls["renderHTML"],
|
|
642
|
+
params: {},
|
|
643
|
+
}),
|
|
644
|
+
query_params,
|
|
645
|
+
body,
|
|
646
|
+
xHeaders
|
|
647
|
+
);
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
/**
|
|
651
|
+
* @param {Object} arg - Arg object.
|
|
652
|
+
* @param {ValidateVPARequest} arg.body
|
|
653
|
+
* @returns {Promise<ValidateVPAResponse>} - Success response
|
|
654
|
+
* @summary: API to Validate UPI ID
|
|
655
|
+
* @description: API to Validate UPI ID
|
|
656
|
+
*/
|
|
657
|
+
validateVPA({ body } = {}) {
|
|
658
|
+
const { error } = PaymentValidator.validateVPA().validate(
|
|
659
|
+
{ body },
|
|
660
|
+
{ abortEarly: false, allowUnknown: true }
|
|
661
|
+
);
|
|
662
|
+
if (error) {
|
|
663
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
664
|
+
}
|
|
665
|
+
const query_params = {};
|
|
666
|
+
|
|
667
|
+
const xHeaders = {};
|
|
668
|
+
|
|
669
|
+
return APIClient.execute(
|
|
670
|
+
this._conf,
|
|
671
|
+
"post",
|
|
672
|
+
constructUrl({
|
|
673
|
+
url: this._urls["validateVPA"],
|
|
674
|
+
params: {},
|
|
675
|
+
}),
|
|
676
|
+
query_params,
|
|
677
|
+
body,
|
|
678
|
+
xHeaders
|
|
679
|
+
);
|
|
680
|
+
}
|
|
681
|
+
|
|
616
682
|
/**
|
|
617
683
|
* @param {Object} arg - Arg object.
|
|
618
684
|
* @returns {Promise<TransferModeResponse>} - Success response
|