@gofynd/fdk-client-javascript 1.2.0 → 1.3.1-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 +44 -7
- package/package.json +1 -2
- package/sdk/application/ApplicationAPIClient.d.ts +3 -3
- package/sdk/application/ApplicationAPIClient.js +6 -4
- package/sdk/application/ApplicationClient.d.ts +2 -3
- package/sdk/application/ApplicationClient.js +1 -45
- package/sdk/application/ApplicationConfig.d.ts +46 -6
- package/sdk/application/ApplicationConfig.js +15 -16
- package/sdk/application/Cart/CartApplicationClient.d.ts +61 -33
- package/sdk/application/Cart/CartApplicationClient.js +225 -134
- package/sdk/application/Cart/CartApplicationModel.d.ts +6 -4
- package/sdk/application/Cart/CartApplicationModel.js +6 -4
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +61 -30
- package/sdk/application/Catalog/CatalogApplicationClient.js +234 -146
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +115 -13
- package/sdk/application/Catalog/CatalogApplicationModel.js +77 -12
- package/sdk/application/Common/CommonApplicationClient.d.ts +5 -3
- package/sdk/application/Common/CommonApplicationClient.js +13 -11
- package/sdk/application/Common/CommonApplicationModel.d.ts +3 -83
- package/sdk/application/Common/CommonApplicationModel.js +2 -58
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +9 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +25 -13
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +1 -34
- package/sdk/application/Communication/CommunicationApplicationModel.js +0 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +46 -16
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +144 -68
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1 -219
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -226
- package/sdk/application/Content/ContentApplicationClient.d.ts +49 -21
- package/sdk/application/Content/ContentApplicationClient.js +159 -80
- package/sdk/application/Content/ContentApplicationModel.d.ts +5 -622
- package/sdk/application/Content/ContentApplicationModel.js +11 -763
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +20 -14
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +1 -152
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -180
- package/sdk/application/Lead/LeadApplicationClient.d.ts +14 -7
- package/sdk/application/Lead/LeadApplicationClient.js +50 -31
- package/sdk/application/Lead/LeadApplicationModel.d.ts +22 -741
- package/sdk/application/Lead/LeadApplicationModel.js +21 -481
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +11 -5
- package/sdk/application/Logistic/LogisticApplicationClient.js +41 -20
- package/sdk/application/Order/OrderApplicationClient.d.ts +24 -12
- package/sdk/application/Order/OrderApplicationClient.js +88 -56
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +91 -42
- package/sdk/application/Payment/PaymentApplicationClient.js +293 -194
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +36 -36
- package/sdk/application/Payment/PaymentApplicationModel.js +36 -36
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +59 -32
- package/sdk/application/PosCart/PosCartApplicationClient.js +214 -130
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +2 -2
- package/sdk/application/PosCart/PosCartApplicationModel.js +2 -2
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +16 -7
- package/sdk/application/Rewards/RewardsApplicationClient.js +56 -29
- package/sdk/application/Share/ShareApplicationClient.d.ts +15 -7
- package/sdk/application/Share/ShareApplicationClient.js +51 -31
- package/sdk/application/Share/ShareApplicationModel.d.ts +1 -33
- package/sdk/application/Share/ShareApplicationModel.js +0 -38
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +9 -4
- package/sdk/application/Theme/ThemeApplicationClient.js +35 -18
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +982 -312
- package/sdk/application/Theme/ThemeApplicationModel.js +621 -284
- package/sdk/application/User/UserApplicationClient.d.ts +74 -35
- package/sdk/application/User/UserApplicationClient.js +252 -161
- package/sdk/application/User/UserApplicationModel.d.ts +3 -401
- package/sdk/application/User/UserApplicationModel.js +2 -490
- package/sdk/common/AxiosHelper.js +1 -2
- package/sdk/common/FDKError.d.ts +3 -0
- package/sdk/common/FDKError.js +8 -0
- package/sdk/common/utils.d.ts +3 -0
- package/sdk/common/utils.js +29 -0
- package/sdk/partner/PartnerAPIClient.d.ts +5 -4
- package/sdk/partner/PartnerAPIClient.js +7 -4
- package/sdk/partner/PartnerClient.d.ts +2 -0
- package/sdk/partner/PartnerClient.js +3 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +299 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +768 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1706 -0
- package/sdk/partner/Theme/ThemePartnerModel.js +1409 -0
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +22 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +157 -0
- package/sdk/partner/index.d.ts +3 -1
- package/sdk/partner/index.js +3 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +8 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +38 -16
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +1 -13
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +0 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +10 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +4 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +59 -14
- package/sdk/platform/Billing/BillingPlatformClient.js +315 -64
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +56 -196
- package/sdk/platform/Billing/BillingPlatformModel.js +63 -217
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +23 -1
- package/sdk/platform/Billing/BillingPlatformValidator.js +31 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +124 -63
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +431 -265
- package/sdk/platform/Cart/CartPlatformModel.d.ts +253 -53
- package/sdk/platform/Cart/CartPlatformModel.js +104 -54
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +120 -53
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +398 -247
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +155 -78
- package/sdk/platform/Catalog/CatalogPlatformClient.js +561 -355
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +10 -12
- package/sdk/platform/Catalog/CatalogPlatformModel.js +10 -12
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +30 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +13 -0
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -3
- package/sdk/platform/Common/CommonPlatformClient.js +13 -11
- package/sdk/platform/Common/CommonPlatformModel.d.ts +39 -64
- package/sdk/platform/Common/CommonPlatformModel.js +23 -57
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +5 -10
- package/sdk/platform/Common/CommonPlatformValidator.js +3 -4
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +370 -120
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +2328 -888
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +143 -24
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +179 -15
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +6 -5
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +386 -308
- package/sdk/platform/Communication/CommunicationPlatformModel.js +415 -355
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +38 -13
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +171 -57
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +53 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +54 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +5 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +7 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +96 -29
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +311 -126
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +5 -1
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +7 -0
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +36 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +121 -86
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +13 -180
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +5 -113
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +162 -70
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +528 -309
- package/sdk/platform/Content/ContentPlatformModel.d.ts +9 -198
- package/sdk/platform/Content/ContentPlatformModel.js +8 -231
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +48 -11
- package/sdk/platform/Discount/DiscountPlatformClient.js +142 -48
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +40 -1
- package/sdk/platform/Discount/DiscountPlatformModel.js +27 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +84 -18
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +486 -53
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +71 -7
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +81 -5
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +13 -18
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +58 -65
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +198 -71
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +212 -64
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +18 -10
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +11 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +177 -40
- package/sdk/platform/Finance/FinancePlatformClient.js +1028 -132
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +670 -22
- package/sdk/platform/Finance/FinancePlatformModel.js +809 -23
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +111 -1
- package/sdk/platform/Finance/FinancePlatformValidator.js +134 -0
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +24 -12
- package/sdk/platform/Inventory/InventoryPlatformClient.js +94 -52
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +27 -13
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +101 -55
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +50 -39
- package/sdk/platform/Lead/LeadPlatformClient.js +171 -112
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +32 -390
- package/sdk/platform/Lead/LeadPlatformModel.js +31 -214
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +33 -33
- package/sdk/platform/Lead/LeadPlatformValidator.js +23 -23
- package/sdk/platform/OAuthClient.js +6 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +12 -10
- package/sdk/platform/Order/OrderPlatformClient.d.ts +165 -71
- package/sdk/platform/Order/OrderPlatformClient.js +738 -205
- package/sdk/platform/Order/OrderPlatformModel.d.ts +261 -3
- package/sdk/platform/Order/OrderPlatformModel.js +225 -2
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +104 -3
- package/sdk/platform/Order/OrderPlatformValidator.js +85 -2
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -22
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +12 -159
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +1 -30
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +0 -26
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -690
- package/sdk/platform/Partner/PartnerPlatformModel.js +0 -809
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +167 -32
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +793 -145
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +91 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +91 -0
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -10
- package/sdk/platform/Payment/PaymentPlatformClient.js +68 -47
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +549 -7
- package/sdk/platform/Payment/PaymentPlatformModel.js +305 -6
- package/sdk/platform/PlatformAPIClient.d.ts +3 -3
- package/sdk/platform/PlatformAPIClient.js +2 -2
- package/sdk/platform/PlatformClient.d.ts +2 -2
- package/sdk/platform/PlatformClient.js +4 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +28 -12
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +90 -53
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +1 -12
- package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -14
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +62 -26
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +210 -93
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +20 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +23 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +36 -18
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +142 -78
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +12 -3
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +14 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -26
- package/sdk/platform/Share/SharePlatformApplicationClient.js +36 -67
- package/sdk/platform/Share/SharePlatformModel.d.ts +4 -4
- package/sdk/platform/Share/SharePlatformModel.js +4 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +127 -57
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +564 -189
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +63 -26
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +62 -22
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +37 -0
- package/sdk/platform/Theme/ThemePlatformClient.js +235 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +1167 -261
- package/sdk/platform/Theme/ThemePlatformModel.js +801 -244
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +32 -0
- package/sdk/platform/Theme/ThemePlatformValidator.js +38 -0
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +35 -17
- package/sdk/platform/User/UserPlatformApplicationClient.js +132 -73
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -0
- package/sdk/platform/User/UserPlatformApplicationValidator.js +3 -0
- package/sdk/platform/User/UserPlatformModel.d.ts +1 -738
- package/sdk/platform/User/UserPlatformModel.js +3 -899
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +120 -7
- package/sdk/platform/Webhook/WebhookPlatformClient.js +799 -41
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +476 -86
- package/sdk/platform/Webhook/WebhookPlatformModel.js +388 -89
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +90 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +113 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +5 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +13 -11
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +3 -106
- package/sdk/public/Configuration/ConfigurationPublicModel.js +2 -59
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +12 -6
- package/sdk/public/Inventory/InventoryPublicClient.js +42 -27
- package/sdk/public/Partner/PartnerPublicClient.d.ts +22 -0
- package/sdk/public/Partner/PartnerPublicClient.js +110 -0
- package/sdk/public/Partner/PartnerPublicModel.d.ts +240 -0
- package/sdk/public/Partner/PartnerPublicModel.js +280 -0
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +18 -0
- package/sdk/public/Partner/PartnerPublicValidator.js +19 -0
- package/sdk/public/PublicAPIClient.d.ts +14 -1
- package/sdk/public/PublicAPIClient.js +7 -1
- package/sdk/public/PublicClient.d.ts +2 -0
- package/sdk/public/PublicClient.js +4 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +5 -2
- package/sdk/public/Webhook/WebhookPublicClient.js +15 -9
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +1 -191
- package/sdk/public/Webhook/WebhookPublicModel.js +0 -229
- package/sdk/public/index.d.ts +1 -0
- package/sdk/public/index.js +2 -0
- package/sdk/application/ApplicationModels.d.ts +0 -48
- package/sdk/application/ApplicationModels.js +0 -38
- package/sdk/platform/Partner/PartnerPlatformClient.d.ts +0 -106
- package/sdk/platform/Partner/PartnerPlatformClient.js +0 -878
- package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +0 -208
- package/sdk/platform/Partner/PartnerPlatformValidator.js +0 -169
|
@@ -4,6 +4,28 @@ export = PaymentPlatformModel;
|
|
|
4
4
|
* @property {BankDetailsForOTP} details
|
|
5
5
|
* @property {string} order_id
|
|
6
6
|
*/
|
|
7
|
+
/**
|
|
8
|
+
* @typedef AddressDetail
|
|
9
|
+
* @property {string} address - Address details
|
|
10
|
+
* @property {string} address_type - Address type e.g. home, office
|
|
11
|
+
* @property {string} area - Area details
|
|
12
|
+
* @property {string} area_code - Customer pin/zip code
|
|
13
|
+
* @property {string} area_code_slug - Area slug code, use pin/zip code if not available
|
|
14
|
+
* @property {string} city - City name
|
|
15
|
+
* @property {string} country - Country name
|
|
16
|
+
* @property {string} country_iso_code - Country's code name e.g. `IN`, `GB`
|
|
17
|
+
* @property {string} country_phone_code - Country's phone code
|
|
18
|
+
* @property {string} [email] - Customer email
|
|
19
|
+
* @property {string} [expire_at] - Address expiry timestamp
|
|
20
|
+
* @property {string} g_address_id - Unique address id generated by Fynd platform
|
|
21
|
+
* @property {Object} [geo_location] - Location latitude and logitude
|
|
22
|
+
* @property {Object} [google_map_point] - Google map point of location
|
|
23
|
+
* @property {string} [landmark] - Landmark
|
|
24
|
+
* @property {string} name - Customer name
|
|
25
|
+
* @property {string} phone - Phone number
|
|
26
|
+
* @property {string} state - State of the customer
|
|
27
|
+
* @property {Object[]} [tags] - Optional address tag
|
|
28
|
+
*/
|
|
7
29
|
/**
|
|
8
30
|
* @typedef BankDetailsForOTP
|
|
9
31
|
* @property {string} account_holder
|
|
@@ -167,7 +189,7 @@ export = PaymentPlatformModel;
|
|
|
167
189
|
*/
|
|
168
190
|
/**
|
|
169
191
|
* @typedef ErrorResponse
|
|
170
|
-
* @property {
|
|
192
|
+
* @property {Object} [error]
|
|
171
193
|
* @property {string} message - Message
|
|
172
194
|
* @property {number} status_code - HTTP status code
|
|
173
195
|
* @property {boolean} success - Successful or failure
|
|
@@ -218,7 +240,7 @@ export = PaymentPlatformModel;
|
|
|
218
240
|
* @typedef IntentApp
|
|
219
241
|
* @property {string} [code] - Code
|
|
220
242
|
* @property {string} [display_name] - Display_name
|
|
221
|
-
* @property {
|
|
243
|
+
* @property {Object} [logos] - Logos
|
|
222
244
|
* @property {string} [package_name] - Package_name
|
|
223
245
|
*/
|
|
224
246
|
/**
|
|
@@ -244,6 +266,17 @@ export = PaymentPlatformModel;
|
|
|
244
266
|
* @property {Object} data
|
|
245
267
|
* @property {boolean} success - Success/Failure of the transaction
|
|
246
268
|
*/
|
|
269
|
+
/**
|
|
270
|
+
* @typedef MerchnatPaymentModeRequest
|
|
271
|
+
* @property {Object} [offline] - Details to be updated for online payment configuration.
|
|
272
|
+
* @property {Object} [online] - Details to be updated for offline payment configuration.
|
|
273
|
+
*/
|
|
274
|
+
/**
|
|
275
|
+
* @typedef MerchnatPaymentModeResponse
|
|
276
|
+
* @property {Object[]} [items] - List of all aggregator and payment mode details.
|
|
277
|
+
* @property {string} [message] - Message
|
|
278
|
+
* @property {boolean} success - Response is successful or not.
|
|
279
|
+
*/
|
|
247
280
|
/**
|
|
248
281
|
* @typedef MultiTenderPaymentMeta
|
|
249
282
|
* @property {string} [current_status]
|
|
@@ -292,6 +325,18 @@ export = PaymentPlatformModel;
|
|
|
292
325
|
* @property {OrderBeneficiaryDetails[]} [beneficiaries] - All Beneficiaries Of An Order
|
|
293
326
|
* @property {boolean} [show_beneficiary_details] - Show beneficiary details or not.
|
|
294
327
|
*/
|
|
328
|
+
/**
|
|
329
|
+
* @typedef OrderDetail
|
|
330
|
+
* @property {string} aggregator - Name of the payment gateway aggregator.
|
|
331
|
+
* @property {Object} aggregator_order_details - Aggregator order details
|
|
332
|
+
* generated by the payment gateway.
|
|
333
|
+
* @property {number} amount - Amount paid.
|
|
334
|
+
* @property {string} currency - Currency of the payment.
|
|
335
|
+
* @property {string} gid - Global identifier of the entity (e.g. order, cart
|
|
336
|
+
* etc.) against which payment_session was initiated. This is generated by
|
|
337
|
+
* Fynd payments platform and is unique.
|
|
338
|
+
* @property {string} status - Order status created by payment gateway aggregator.
|
|
339
|
+
*/
|
|
295
340
|
/**
|
|
296
341
|
* @typedef Page
|
|
297
342
|
* @property {number} [current]
|
|
@@ -415,7 +460,7 @@ export = PaymentPlatformModel;
|
|
|
415
460
|
* Intent_app_error_dict_list
|
|
416
461
|
* @property {string[]} [intent_app_error_list] - Intent_app_error_list
|
|
417
462
|
* @property {boolean} [intent_flow] - Intent_flow
|
|
418
|
-
* @property {
|
|
463
|
+
* @property {Object} [logo_url] - Logo
|
|
419
464
|
* @property {string} [merchant_code] - Merchant code
|
|
420
465
|
* @property {string} [name] - Name
|
|
421
466
|
* @property {string} [nickname] - Nickname
|
|
@@ -458,6 +503,63 @@ export = PaymentPlatformModel;
|
|
|
458
503
|
* @property {PaymentOptions} payment_options - Payment options
|
|
459
504
|
* @property {boolean} success - Response is successful or not
|
|
460
505
|
*/
|
|
506
|
+
/**
|
|
507
|
+
* @typedef PaymentSessionDetail
|
|
508
|
+
* @property {string} [aggregator_customer_id] - Unique customer id generated by
|
|
509
|
+
* payment gateway, not required for standard checkout.
|
|
510
|
+
* @property {string} aggregator_order_id - Unique order id or payment request
|
|
511
|
+
* id generated by payment gateway
|
|
512
|
+
* @property {number} amount - Amount paid.
|
|
513
|
+
* @property {number} amount_captured - Amount which is captured or credited to
|
|
514
|
+
* merchant account
|
|
515
|
+
* @property {number} [amount_refunded]
|
|
516
|
+
* @property {AddressDetail} billing_address - Billing address
|
|
517
|
+
* @property {string} cancel_url - Cancel url sent by Fynd platform at the time
|
|
518
|
+
* of payment creation
|
|
519
|
+
* @property {boolean} [captured] - Whether the payment is captured (credited to
|
|
520
|
+
* merchant account) by payment gateway.
|
|
521
|
+
* @property {string} [created] - Timestamp in epoch
|
|
522
|
+
* @property {string} currency - Currency of the payment.
|
|
523
|
+
* @property {string} g_user_id - Global user identifier - unique user id
|
|
524
|
+
* generated by Fynd platform
|
|
525
|
+
* @property {string} gid - Global identifier of the entity (e.g. order, cart
|
|
526
|
+
* etc.) against which payment_session was initiated. This is generated by
|
|
527
|
+
* Fynd payments platform and is unique.
|
|
528
|
+
* @property {string} [kind] - Optional kind of purchase/payment - one time
|
|
529
|
+
* payment (sale) or subcription. defaults to sale.
|
|
530
|
+
* @property {string} [locale] - User's locale
|
|
531
|
+
* @property {string} [merchant_locale] - Merchant's locale
|
|
532
|
+
* @property {string} mode - Test or live, test mode uses test credentials so
|
|
533
|
+
* that actual payment is not created.
|
|
534
|
+
* @property {string} payment_id - Unique transaction id generated by payment gateway
|
|
535
|
+
* @property {Object[]} payment_methods - Method of payment
|
|
536
|
+
* @property {AddressDetail} shipping_address - Shipping address
|
|
537
|
+
* @property {string} status - Stautus of the payment
|
|
538
|
+
* @property {string} success_url - Success url sent by Fynd platform at the
|
|
539
|
+
* time of payment creation
|
|
540
|
+
*/
|
|
541
|
+
/**
|
|
542
|
+
* @typedef PaymentSessionRequestSerializer
|
|
543
|
+
* @property {string} currency - Currency of the payment.
|
|
544
|
+
* @property {string} gid - Global identifier of the entity (e.g. order, cart
|
|
545
|
+
* etc.) against which payment_session was initiated. This is generated by
|
|
546
|
+
* Fynd payments platform and is unique.
|
|
547
|
+
* @property {OrderDetail} order_details - The details of the order.
|
|
548
|
+
* @property {PaymentSessionDetail[]} payment_details - The payment details with
|
|
549
|
+
* the schema `PaymentSessionDetail`.
|
|
550
|
+
* @property {string} status - Status of the payment.
|
|
551
|
+
* @property {number} total_amount - Amount paid.
|
|
552
|
+
*/
|
|
553
|
+
/**
|
|
554
|
+
* @typedef PaymentSessionResponseSerializer
|
|
555
|
+
* @property {string} currency - Currency of the payment.
|
|
556
|
+
* @property {string} gid - Global identifier of the entity (e.g. order, cart
|
|
557
|
+
* etc.) against which payment_session was initiated. This is generated by
|
|
558
|
+
* Fynd payments platform and is unique.
|
|
559
|
+
* @property {Object[]} platform_transaction_details - Platform transaction details.
|
|
560
|
+
* @property {string} status - Status of the payment.
|
|
561
|
+
* @property {number} total_amount - Amount paid.
|
|
562
|
+
*/
|
|
461
563
|
/**
|
|
462
564
|
* @typedef PaymentStatusBulkHandlerRequest
|
|
463
565
|
* @property {string[]} merchant_order_id - List of order ids
|
|
@@ -595,6 +697,44 @@ export = PaymentPlatformModel;
|
|
|
595
697
|
* @property {string} message - Response message
|
|
596
698
|
* @property {boolean} success - Success or failure flag.
|
|
597
699
|
*/
|
|
700
|
+
/**
|
|
701
|
+
* @typedef RefundSessionDetail
|
|
702
|
+
* @property {number} amount - Amount refunded.
|
|
703
|
+
* @property {string} [balance_transaction] - Balance transaction.
|
|
704
|
+
* @property {string} created - Timestamp in epoch.
|
|
705
|
+
* @property {string} currency - Currency of the payment.
|
|
706
|
+
* @property {string} payment_id - Unique payment id generated by payment gateway.
|
|
707
|
+
* @property {string} [reason] - Reason for refund, optional
|
|
708
|
+
* @property {string} [receipt_number] - Unique receipt for refund, generated by
|
|
709
|
+
* payment gateway, if not available can be utr.
|
|
710
|
+
* @property {string} [refund_utr] - Unique refund utr generated by payment gateway.
|
|
711
|
+
* @property {string} request_id - Refund request id, unique id generated by Fynd platform
|
|
712
|
+
* @property {string} [source_transfer_reversal] - Description in case of
|
|
713
|
+
* reversal of payment.
|
|
714
|
+
* @property {string} status - Status of the refund.
|
|
715
|
+
* @property {string} [transfer_reversal] - Description in case of reversal of payment.
|
|
716
|
+
*/
|
|
717
|
+
/**
|
|
718
|
+
* @typedef RefundSessionRequestSerializer
|
|
719
|
+
* @property {string} currency - The currency of the payment.
|
|
720
|
+
* @property {string} gid - Global identifier of the entity (e.g. order, cart
|
|
721
|
+
* etc.) against which payment_session was initiated. This is generated by
|
|
722
|
+
* Fynd payments platform and is unique.
|
|
723
|
+
* @property {PaymentSessionDetail} payment_details - Details of the payment
|
|
724
|
+
* @property {RefundSessionDetail[]} [refund_details] - Details of the refund
|
|
725
|
+
* @property {string} status - The status of the refund.
|
|
726
|
+
* @property {number} total_amount - The total amount refunded.
|
|
727
|
+
*/
|
|
728
|
+
/**
|
|
729
|
+
* @typedef RefundSessionResponseSerializer
|
|
730
|
+
* @property {string} currency - The currency of the payment.
|
|
731
|
+
* @property {string} gid - Global identifier of the entity (e.g. order, cart
|
|
732
|
+
* etc.) against which payment_session was initiated. This is generated by
|
|
733
|
+
* Fynd payments platform and is unique.
|
|
734
|
+
* @property {Object[]} platform_refund_details - Details of the refund
|
|
735
|
+
* @property {string} status - The status of the refund.
|
|
736
|
+
* @property {number} total_refund_amount - The total amount refunded.
|
|
737
|
+
*/
|
|
598
738
|
/**
|
|
599
739
|
* @typedef RepaymentDetailsSerialiserPayAll
|
|
600
740
|
* @property {string} aggregator_order_id - Id of payment gateway
|
|
@@ -725,7 +865,7 @@ export = PaymentPlatformModel;
|
|
|
725
865
|
declare class PaymentPlatformModel {
|
|
726
866
|
}
|
|
727
867
|
declare namespace PaymentPlatformModel {
|
|
728
|
-
export { AddBeneficiaryDetailsOTPRequest, BankDetailsForOTP, CancelOrResendPaymentLinkRequest, CancelPaymentLinkResponse, CODdata, Code, CreatePaymentLinkMeta, CreatePaymentLinkRequest, CreatePaymentLinkResponse, DeletePayoutResponse, DeleteSubscriptionPaymentMethodResponse, EdcAddRequest, EdcAggregatorAndModelListResponse, EdcDevice, EdcDeviceAddResponse, EdcDeviceDetailsResponse, EdcDeviceListResponse, EdcDeviceStatsResponse, EdcDeviceUpdateResponse, EdcModelData, EdcUpdateRequest, ErrorCodeAndDescription, ErrorCodeDescription, ErrorDescription, ErrorResponse, GetOauthUrlResponse, GetPaymentCode, GetPaymentCodeResponse, GetPaymentLinkResponse, GetUserCODLimitResponse, HttpErrorCodeAndResponse, IfscCodeResponse, IntentApp, IntentAppErrorList, LinkStatus, MerchantOnBoardingRequest, MerchantOnBoardingResponse, MultiTenderPaymentMeta, MultiTenderPaymentMethod, NotFoundResourceError, OrderBeneficiaryDetails, OrderBeneficiaryResponse, Page, PaymentCode, PaymentConfirmationRequest, PaymentConfirmationResponse, PaymentGatewayConfig, PaymentGatewayConfigRequest, PaymentGatewayConfigResponse, PaymentGatewayToBeReviewed, PaymentInitializationRequest, PaymentInitializationResponse, PaymentModeList, PaymentModeLogo, PaymentObjectListSerializer, PaymentOptions, PaymentOptionsResponse, PaymentStatusBulkHandlerRequest, PaymentStatusBulkHandlerResponse, PaymentStatusObject, PaymentStatusUpdateRequest, PaymentStatusUpdateResponse, Payout, PayoutAggregator, PayoutBankDetails, PayoutCustomer, PayoutMoreAttributes, PayoutRequest, PayoutResponse, PayoutsResponse, PollingPaymentLinkResponse, RefundAccountResponse, RepaymentDetailsSerialiserPayAll, RepaymentRequestDetails, RepaymentResponse, ResendOrCancelPaymentRequest, ResendOrCancelPaymentResponse, ResendPaymentLinkResponse, RevokeOAuthToken, RootPaymentMode, SaveSubscriptionSetupIntentRequest, SaveSubscriptionSetupIntentResponse, SetCODForUserRequest, SetCODOptionResponse, StatisticsData, SubscriptionConfigResponse, SubscriptionPaymentMethodResponse, UpdatePayoutRequest, UpdatePayoutResponse, ValidateCustomerRequest, ValidateCustomerResponse };
|
|
868
|
+
export { AddBeneficiaryDetailsOTPRequest, AddressDetail, BankDetailsForOTP, CancelOrResendPaymentLinkRequest, CancelPaymentLinkResponse, CODdata, Code, CreatePaymentLinkMeta, CreatePaymentLinkRequest, CreatePaymentLinkResponse, DeletePayoutResponse, DeleteSubscriptionPaymentMethodResponse, EdcAddRequest, EdcAggregatorAndModelListResponse, EdcDevice, EdcDeviceAddResponse, EdcDeviceDetailsResponse, EdcDeviceListResponse, EdcDeviceStatsResponse, EdcDeviceUpdateResponse, EdcModelData, EdcUpdateRequest, ErrorCodeAndDescription, ErrorCodeDescription, ErrorDescription, ErrorResponse, GetOauthUrlResponse, GetPaymentCode, GetPaymentCodeResponse, GetPaymentLinkResponse, GetUserCODLimitResponse, HttpErrorCodeAndResponse, IfscCodeResponse, IntentApp, IntentAppErrorList, LinkStatus, MerchantOnBoardingRequest, MerchantOnBoardingResponse, MerchnatPaymentModeRequest, MerchnatPaymentModeResponse, MultiTenderPaymentMeta, MultiTenderPaymentMethod, NotFoundResourceError, OrderBeneficiaryDetails, OrderBeneficiaryResponse, OrderDetail, Page, PaymentCode, PaymentConfirmationRequest, PaymentConfirmationResponse, PaymentGatewayConfig, PaymentGatewayConfigRequest, PaymentGatewayConfigResponse, PaymentGatewayToBeReviewed, PaymentInitializationRequest, PaymentInitializationResponse, PaymentModeList, PaymentModeLogo, PaymentObjectListSerializer, PaymentOptions, PaymentOptionsResponse, PaymentSessionDetail, PaymentSessionRequestSerializer, PaymentSessionResponseSerializer, PaymentStatusBulkHandlerRequest, PaymentStatusBulkHandlerResponse, PaymentStatusObject, PaymentStatusUpdateRequest, PaymentStatusUpdateResponse, Payout, PayoutAggregator, PayoutBankDetails, PayoutCustomer, PayoutMoreAttributes, PayoutRequest, PayoutResponse, PayoutsResponse, PollingPaymentLinkResponse, RefundAccountResponse, RefundSessionDetail, RefundSessionRequestSerializer, RefundSessionResponseSerializer, RepaymentDetailsSerialiserPayAll, RepaymentRequestDetails, RepaymentResponse, ResendOrCancelPaymentRequest, ResendOrCancelPaymentResponse, ResendPaymentLinkResponse, RevokeOAuthToken, RootPaymentMode, SaveSubscriptionSetupIntentRequest, SaveSubscriptionSetupIntentResponse, SetCODForUserRequest, SetCODOptionResponse, StatisticsData, SubscriptionConfigResponse, SubscriptionPaymentMethodResponse, UpdatePayoutRequest, UpdatePayoutResponse, ValidateCustomerRequest, ValidateCustomerResponse };
|
|
729
869
|
}
|
|
730
870
|
/** @returns {AddBeneficiaryDetailsOTPRequest} */
|
|
731
871
|
declare function AddBeneficiaryDetailsOTPRequest(): AddBeneficiaryDetailsOTPRequest;
|
|
@@ -733,6 +873,86 @@ type AddBeneficiaryDetailsOTPRequest = {
|
|
|
733
873
|
details: BankDetailsForOTP;
|
|
734
874
|
order_id: string;
|
|
735
875
|
};
|
|
876
|
+
/** @returns {AddressDetail} */
|
|
877
|
+
declare function AddressDetail(): AddressDetail;
|
|
878
|
+
type AddressDetail = {
|
|
879
|
+
/**
|
|
880
|
+
* - Address details
|
|
881
|
+
*/
|
|
882
|
+
address: string;
|
|
883
|
+
/**
|
|
884
|
+
* - Address type e.g. home, office
|
|
885
|
+
*/
|
|
886
|
+
address_type: string;
|
|
887
|
+
/**
|
|
888
|
+
* - Area details
|
|
889
|
+
*/
|
|
890
|
+
area: string;
|
|
891
|
+
/**
|
|
892
|
+
* - Customer pin/zip code
|
|
893
|
+
*/
|
|
894
|
+
area_code: string;
|
|
895
|
+
/**
|
|
896
|
+
* - Area slug code, use pin/zip code if not available
|
|
897
|
+
*/
|
|
898
|
+
area_code_slug: string;
|
|
899
|
+
/**
|
|
900
|
+
* - City name
|
|
901
|
+
*/
|
|
902
|
+
city: string;
|
|
903
|
+
/**
|
|
904
|
+
* - Country name
|
|
905
|
+
*/
|
|
906
|
+
country: string;
|
|
907
|
+
/**
|
|
908
|
+
* - Country's code name e.g. `IN`, `GB`
|
|
909
|
+
*/
|
|
910
|
+
country_iso_code: string;
|
|
911
|
+
/**
|
|
912
|
+
* - Country's phone code
|
|
913
|
+
*/
|
|
914
|
+
country_phone_code: string;
|
|
915
|
+
/**
|
|
916
|
+
* - Customer email
|
|
917
|
+
*/
|
|
918
|
+
email?: string;
|
|
919
|
+
/**
|
|
920
|
+
* - Address expiry timestamp
|
|
921
|
+
*/
|
|
922
|
+
expire_at?: string;
|
|
923
|
+
/**
|
|
924
|
+
* - Unique address id generated by Fynd platform
|
|
925
|
+
*/
|
|
926
|
+
g_address_id: string;
|
|
927
|
+
/**
|
|
928
|
+
* - Location latitude and logitude
|
|
929
|
+
*/
|
|
930
|
+
geo_location?: any;
|
|
931
|
+
/**
|
|
932
|
+
* - Google map point of location
|
|
933
|
+
*/
|
|
934
|
+
google_map_point?: any;
|
|
935
|
+
/**
|
|
936
|
+
* - Landmark
|
|
937
|
+
*/
|
|
938
|
+
landmark?: string;
|
|
939
|
+
/**
|
|
940
|
+
* - Customer name
|
|
941
|
+
*/
|
|
942
|
+
name: string;
|
|
943
|
+
/**
|
|
944
|
+
* - Phone number
|
|
945
|
+
*/
|
|
946
|
+
phone: string;
|
|
947
|
+
/**
|
|
948
|
+
* - State of the customer
|
|
949
|
+
*/
|
|
950
|
+
state: string;
|
|
951
|
+
/**
|
|
952
|
+
* - Optional address tag
|
|
953
|
+
*/
|
|
954
|
+
tags?: any[];
|
|
955
|
+
};
|
|
736
956
|
/** @returns {BankDetailsForOTP} */
|
|
737
957
|
declare function BankDetailsForOTP(): BankDetailsForOTP;
|
|
738
958
|
type BankDetailsForOTP = {
|
|
@@ -1154,7 +1374,7 @@ type ErrorDescription = {
|
|
|
1154
1374
|
/** @returns {ErrorResponse} */
|
|
1155
1375
|
declare function ErrorResponse(): ErrorResponse;
|
|
1156
1376
|
type ErrorResponse = {
|
|
1157
|
-
error?:
|
|
1377
|
+
error?: any;
|
|
1158
1378
|
/**
|
|
1159
1379
|
* - Message
|
|
1160
1380
|
*/
|
|
@@ -1291,7 +1511,7 @@ type IntentApp = {
|
|
|
1291
1511
|
/**
|
|
1292
1512
|
* - Logos
|
|
1293
1513
|
*/
|
|
1294
|
-
logos?:
|
|
1514
|
+
logos?: any;
|
|
1295
1515
|
/**
|
|
1296
1516
|
* - Package_name
|
|
1297
1517
|
*/
|
|
@@ -1354,6 +1574,34 @@ type MerchantOnBoardingResponse = {
|
|
|
1354
1574
|
*/
|
|
1355
1575
|
success: boolean;
|
|
1356
1576
|
};
|
|
1577
|
+
/** @returns {MerchnatPaymentModeRequest} */
|
|
1578
|
+
declare function MerchnatPaymentModeRequest(): MerchnatPaymentModeRequest;
|
|
1579
|
+
type MerchnatPaymentModeRequest = {
|
|
1580
|
+
/**
|
|
1581
|
+
* - Details to be updated for online payment configuration.
|
|
1582
|
+
*/
|
|
1583
|
+
offline?: any;
|
|
1584
|
+
/**
|
|
1585
|
+
* - Details to be updated for offline payment configuration.
|
|
1586
|
+
*/
|
|
1587
|
+
online?: any;
|
|
1588
|
+
};
|
|
1589
|
+
/** @returns {MerchnatPaymentModeResponse} */
|
|
1590
|
+
declare function MerchnatPaymentModeResponse(): MerchnatPaymentModeResponse;
|
|
1591
|
+
type MerchnatPaymentModeResponse = {
|
|
1592
|
+
/**
|
|
1593
|
+
* - List of all aggregator and payment mode details.
|
|
1594
|
+
*/
|
|
1595
|
+
items?: any[];
|
|
1596
|
+
/**
|
|
1597
|
+
* - Message
|
|
1598
|
+
*/
|
|
1599
|
+
message?: string;
|
|
1600
|
+
/**
|
|
1601
|
+
* - Response is successful or not.
|
|
1602
|
+
*/
|
|
1603
|
+
success: boolean;
|
|
1604
|
+
};
|
|
1357
1605
|
/** @returns {MultiTenderPaymentMeta} */
|
|
1358
1606
|
declare function MultiTenderPaymentMeta(): MultiTenderPaymentMeta;
|
|
1359
1607
|
type MultiTenderPaymentMeta = {
|
|
@@ -1485,6 +1733,37 @@ type OrderBeneficiaryResponse = {
|
|
|
1485
1733
|
*/
|
|
1486
1734
|
show_beneficiary_details?: boolean;
|
|
1487
1735
|
};
|
|
1736
|
+
/** @returns {OrderDetail} */
|
|
1737
|
+
declare function OrderDetail(): OrderDetail;
|
|
1738
|
+
type OrderDetail = {
|
|
1739
|
+
/**
|
|
1740
|
+
* - Name of the payment gateway aggregator.
|
|
1741
|
+
*/
|
|
1742
|
+
aggregator: string;
|
|
1743
|
+
/**
|
|
1744
|
+
* - Aggregator order details
|
|
1745
|
+
* generated by the payment gateway.
|
|
1746
|
+
*/
|
|
1747
|
+
aggregator_order_details: any;
|
|
1748
|
+
/**
|
|
1749
|
+
* - Amount paid.
|
|
1750
|
+
*/
|
|
1751
|
+
amount: number;
|
|
1752
|
+
/**
|
|
1753
|
+
* - Currency of the payment.
|
|
1754
|
+
*/
|
|
1755
|
+
currency: string;
|
|
1756
|
+
/**
|
|
1757
|
+
* - Global identifier of the entity (e.g. order, cart
|
|
1758
|
+
* etc.) against which payment_session was initiated. This is generated by
|
|
1759
|
+
* Fynd payments platform and is unique.
|
|
1760
|
+
*/
|
|
1761
|
+
gid: string;
|
|
1762
|
+
/**
|
|
1763
|
+
* - Order status created by payment gateway aggregator.
|
|
1764
|
+
*/
|
|
1765
|
+
status: string;
|
|
1766
|
+
};
|
|
1488
1767
|
/** @returns {Page} */
|
|
1489
1768
|
declare function Page(): Page;
|
|
1490
1769
|
type Page = {
|
|
@@ -1859,7 +2138,7 @@ type PaymentModeList = {
|
|
|
1859
2138
|
/**
|
|
1860
2139
|
* - Logo
|
|
1861
2140
|
*/
|
|
1862
|
-
logo_url?:
|
|
2141
|
+
logo_url?: any;
|
|
1863
2142
|
/**
|
|
1864
2143
|
* - Merchant code
|
|
1865
2144
|
*/
|
|
@@ -1939,6 +2218,159 @@ type PaymentOptionsResponse = {
|
|
|
1939
2218
|
*/
|
|
1940
2219
|
success: boolean;
|
|
1941
2220
|
};
|
|
2221
|
+
/** @returns {PaymentSessionDetail} */
|
|
2222
|
+
declare function PaymentSessionDetail(): PaymentSessionDetail;
|
|
2223
|
+
type PaymentSessionDetail = {
|
|
2224
|
+
/**
|
|
2225
|
+
* - Unique customer id generated by
|
|
2226
|
+
* payment gateway, not required for standard checkout.
|
|
2227
|
+
*/
|
|
2228
|
+
aggregator_customer_id?: string;
|
|
2229
|
+
/**
|
|
2230
|
+
* - Unique order id or payment request
|
|
2231
|
+
* id generated by payment gateway
|
|
2232
|
+
*/
|
|
2233
|
+
aggregator_order_id: string;
|
|
2234
|
+
/**
|
|
2235
|
+
* - Amount paid.
|
|
2236
|
+
*/
|
|
2237
|
+
amount: number;
|
|
2238
|
+
/**
|
|
2239
|
+
* - Amount which is captured or credited to
|
|
2240
|
+
* merchant account
|
|
2241
|
+
*/
|
|
2242
|
+
amount_captured: number;
|
|
2243
|
+
amount_refunded?: number;
|
|
2244
|
+
/**
|
|
2245
|
+
* - Billing address
|
|
2246
|
+
*/
|
|
2247
|
+
billing_address: AddressDetail;
|
|
2248
|
+
/**
|
|
2249
|
+
* - Cancel url sent by Fynd platform at the time
|
|
2250
|
+
* of payment creation
|
|
2251
|
+
*/
|
|
2252
|
+
cancel_url: string;
|
|
2253
|
+
/**
|
|
2254
|
+
* - Whether the payment is captured (credited to
|
|
2255
|
+
* merchant account) by payment gateway.
|
|
2256
|
+
*/
|
|
2257
|
+
captured?: boolean;
|
|
2258
|
+
/**
|
|
2259
|
+
* - Timestamp in epoch
|
|
2260
|
+
*/
|
|
2261
|
+
created?: string;
|
|
2262
|
+
/**
|
|
2263
|
+
* - Currency of the payment.
|
|
2264
|
+
*/
|
|
2265
|
+
currency: string;
|
|
2266
|
+
/**
|
|
2267
|
+
* - Global user identifier - unique user id
|
|
2268
|
+
* generated by Fynd platform
|
|
2269
|
+
*/
|
|
2270
|
+
g_user_id: string;
|
|
2271
|
+
/**
|
|
2272
|
+
* - Global identifier of the entity (e.g. order, cart
|
|
2273
|
+
* etc.) against which payment_session was initiated. This is generated by
|
|
2274
|
+
* Fynd payments platform and is unique.
|
|
2275
|
+
*/
|
|
2276
|
+
gid: string;
|
|
2277
|
+
/**
|
|
2278
|
+
* - Optional kind of purchase/payment - one time
|
|
2279
|
+
* payment (sale) or subcription. defaults to sale.
|
|
2280
|
+
*/
|
|
2281
|
+
kind?: string;
|
|
2282
|
+
/**
|
|
2283
|
+
* - User's locale
|
|
2284
|
+
*/
|
|
2285
|
+
locale?: string;
|
|
2286
|
+
/**
|
|
2287
|
+
* - Merchant's locale
|
|
2288
|
+
*/
|
|
2289
|
+
merchant_locale?: string;
|
|
2290
|
+
/**
|
|
2291
|
+
* - Test or live, test mode uses test credentials so
|
|
2292
|
+
* that actual payment is not created.
|
|
2293
|
+
*/
|
|
2294
|
+
mode: string;
|
|
2295
|
+
/**
|
|
2296
|
+
* - Unique transaction id generated by payment gateway
|
|
2297
|
+
*/
|
|
2298
|
+
payment_id: string;
|
|
2299
|
+
/**
|
|
2300
|
+
* - Method of payment
|
|
2301
|
+
*/
|
|
2302
|
+
payment_methods: any[];
|
|
2303
|
+
/**
|
|
2304
|
+
* - Shipping address
|
|
2305
|
+
*/
|
|
2306
|
+
shipping_address: AddressDetail;
|
|
2307
|
+
/**
|
|
2308
|
+
* - Stautus of the payment
|
|
2309
|
+
*/
|
|
2310
|
+
status: string;
|
|
2311
|
+
/**
|
|
2312
|
+
* - Success url sent by Fynd platform at the
|
|
2313
|
+
* time of payment creation
|
|
2314
|
+
*/
|
|
2315
|
+
success_url: string;
|
|
2316
|
+
};
|
|
2317
|
+
/** @returns {PaymentSessionRequestSerializer} */
|
|
2318
|
+
declare function PaymentSessionRequestSerializer(): PaymentSessionRequestSerializer;
|
|
2319
|
+
type PaymentSessionRequestSerializer = {
|
|
2320
|
+
/**
|
|
2321
|
+
* - Currency of the payment.
|
|
2322
|
+
*/
|
|
2323
|
+
currency: string;
|
|
2324
|
+
/**
|
|
2325
|
+
* - Global identifier of the entity (e.g. order, cart
|
|
2326
|
+
* etc.) against which payment_session was initiated. This is generated by
|
|
2327
|
+
* Fynd payments platform and is unique.
|
|
2328
|
+
*/
|
|
2329
|
+
gid: string;
|
|
2330
|
+
/**
|
|
2331
|
+
* - The details of the order.
|
|
2332
|
+
*/
|
|
2333
|
+
order_details: OrderDetail;
|
|
2334
|
+
/**
|
|
2335
|
+
* - The payment details with
|
|
2336
|
+
* the schema `PaymentSessionDetail`.
|
|
2337
|
+
*/
|
|
2338
|
+
payment_details: PaymentSessionDetail[];
|
|
2339
|
+
/**
|
|
2340
|
+
* - Status of the payment.
|
|
2341
|
+
*/
|
|
2342
|
+
status: string;
|
|
2343
|
+
/**
|
|
2344
|
+
* - Amount paid.
|
|
2345
|
+
*/
|
|
2346
|
+
total_amount: number;
|
|
2347
|
+
};
|
|
2348
|
+
/** @returns {PaymentSessionResponseSerializer} */
|
|
2349
|
+
declare function PaymentSessionResponseSerializer(): PaymentSessionResponseSerializer;
|
|
2350
|
+
type PaymentSessionResponseSerializer = {
|
|
2351
|
+
/**
|
|
2352
|
+
* - Currency of the payment.
|
|
2353
|
+
*/
|
|
2354
|
+
currency: string;
|
|
2355
|
+
/**
|
|
2356
|
+
* - Global identifier of the entity (e.g. order, cart
|
|
2357
|
+
* etc.) against which payment_session was initiated. This is generated by
|
|
2358
|
+
* Fynd payments platform and is unique.
|
|
2359
|
+
*/
|
|
2360
|
+
gid: string;
|
|
2361
|
+
/**
|
|
2362
|
+
* - Platform transaction details.
|
|
2363
|
+
*/
|
|
2364
|
+
platform_transaction_details: any[];
|
|
2365
|
+
/**
|
|
2366
|
+
* - Status of the payment.
|
|
2367
|
+
*/
|
|
2368
|
+
status: string;
|
|
2369
|
+
/**
|
|
2370
|
+
* - Amount paid.
|
|
2371
|
+
*/
|
|
2372
|
+
total_amount: number;
|
|
2373
|
+
};
|
|
1942
2374
|
/** @returns {PaymentStatusBulkHandlerRequest} */
|
|
1943
2375
|
declare function PaymentStatusBulkHandlerRequest(): PaymentStatusBulkHandlerRequest;
|
|
1944
2376
|
type PaymentStatusBulkHandlerRequest = {
|
|
@@ -2310,6 +2742,116 @@ type RefundAccountResponse = {
|
|
|
2310
2742
|
*/
|
|
2311
2743
|
success: boolean;
|
|
2312
2744
|
};
|
|
2745
|
+
/** @returns {RefundSessionDetail} */
|
|
2746
|
+
declare function RefundSessionDetail(): RefundSessionDetail;
|
|
2747
|
+
type RefundSessionDetail = {
|
|
2748
|
+
/**
|
|
2749
|
+
* - Amount refunded.
|
|
2750
|
+
*/
|
|
2751
|
+
amount: number;
|
|
2752
|
+
/**
|
|
2753
|
+
* - Balance transaction.
|
|
2754
|
+
*/
|
|
2755
|
+
balance_transaction?: string;
|
|
2756
|
+
/**
|
|
2757
|
+
* - Timestamp in epoch.
|
|
2758
|
+
*/
|
|
2759
|
+
created: string;
|
|
2760
|
+
/**
|
|
2761
|
+
* - Currency of the payment.
|
|
2762
|
+
*/
|
|
2763
|
+
currency: string;
|
|
2764
|
+
/**
|
|
2765
|
+
* - Unique payment id generated by payment gateway.
|
|
2766
|
+
*/
|
|
2767
|
+
payment_id: string;
|
|
2768
|
+
/**
|
|
2769
|
+
* - Reason for refund, optional
|
|
2770
|
+
*/
|
|
2771
|
+
reason?: string;
|
|
2772
|
+
/**
|
|
2773
|
+
* - Unique receipt for refund, generated by
|
|
2774
|
+
* payment gateway, if not available can be utr.
|
|
2775
|
+
*/
|
|
2776
|
+
receipt_number?: string;
|
|
2777
|
+
/**
|
|
2778
|
+
* - Unique refund utr generated by payment gateway.
|
|
2779
|
+
*/
|
|
2780
|
+
refund_utr?: string;
|
|
2781
|
+
/**
|
|
2782
|
+
* - Refund request id, unique id generated by Fynd platform
|
|
2783
|
+
*/
|
|
2784
|
+
request_id: string;
|
|
2785
|
+
/**
|
|
2786
|
+
* - Description in case of
|
|
2787
|
+
* reversal of payment.
|
|
2788
|
+
*/
|
|
2789
|
+
source_transfer_reversal?: string;
|
|
2790
|
+
/**
|
|
2791
|
+
* - Status of the refund.
|
|
2792
|
+
*/
|
|
2793
|
+
status: string;
|
|
2794
|
+
/**
|
|
2795
|
+
* - Description in case of reversal of payment.
|
|
2796
|
+
*/
|
|
2797
|
+
transfer_reversal?: string;
|
|
2798
|
+
};
|
|
2799
|
+
/** @returns {RefundSessionRequestSerializer} */
|
|
2800
|
+
declare function RefundSessionRequestSerializer(): RefundSessionRequestSerializer;
|
|
2801
|
+
type RefundSessionRequestSerializer = {
|
|
2802
|
+
/**
|
|
2803
|
+
* - The currency of the payment.
|
|
2804
|
+
*/
|
|
2805
|
+
currency: string;
|
|
2806
|
+
/**
|
|
2807
|
+
* - Global identifier of the entity (e.g. order, cart
|
|
2808
|
+
* etc.) against which payment_session was initiated. This is generated by
|
|
2809
|
+
* Fynd payments platform and is unique.
|
|
2810
|
+
*/
|
|
2811
|
+
gid: string;
|
|
2812
|
+
/**
|
|
2813
|
+
* - Details of the payment
|
|
2814
|
+
*/
|
|
2815
|
+
payment_details: PaymentSessionDetail;
|
|
2816
|
+
/**
|
|
2817
|
+
* - Details of the refund
|
|
2818
|
+
*/
|
|
2819
|
+
refund_details?: RefundSessionDetail[];
|
|
2820
|
+
/**
|
|
2821
|
+
* - The status of the refund.
|
|
2822
|
+
*/
|
|
2823
|
+
status: string;
|
|
2824
|
+
/**
|
|
2825
|
+
* - The total amount refunded.
|
|
2826
|
+
*/
|
|
2827
|
+
total_amount: number;
|
|
2828
|
+
};
|
|
2829
|
+
/** @returns {RefundSessionResponseSerializer} */
|
|
2830
|
+
declare function RefundSessionResponseSerializer(): RefundSessionResponseSerializer;
|
|
2831
|
+
type RefundSessionResponseSerializer = {
|
|
2832
|
+
/**
|
|
2833
|
+
* - The currency of the payment.
|
|
2834
|
+
*/
|
|
2835
|
+
currency: string;
|
|
2836
|
+
/**
|
|
2837
|
+
* - Global identifier of the entity (e.g. order, cart
|
|
2838
|
+
* etc.) against which payment_session was initiated. This is generated by
|
|
2839
|
+
* Fynd payments platform and is unique.
|
|
2840
|
+
*/
|
|
2841
|
+
gid: string;
|
|
2842
|
+
/**
|
|
2843
|
+
* - Details of the refund
|
|
2844
|
+
*/
|
|
2845
|
+
platform_refund_details: any[];
|
|
2846
|
+
/**
|
|
2847
|
+
* - The status of the refund.
|
|
2848
|
+
*/
|
|
2849
|
+
status: string;
|
|
2850
|
+
/**
|
|
2851
|
+
* - The total amount refunded.
|
|
2852
|
+
*/
|
|
2853
|
+
total_refund_amount: number;
|
|
2854
|
+
};
|
|
2313
2855
|
/** @returns {RepaymentDetailsSerialiserPayAll} */
|
|
2314
2856
|
declare function RepaymentDetailsSerialiserPayAll(): RepaymentDetailsSerialiserPayAll;
|
|
2315
2857
|
type RepaymentDetailsSerialiserPayAll = {
|