@gofynd/fdk-client-javascript 3.4.1 → 3.4.3

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.
Files changed (27) hide show
  1. package/README.md +23 -26
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationClient.d.ts +3 -2
  4. package/sdk/application/ApplicationClient.js +25 -19
  5. package/sdk/common/utils.js +6 -3
  6. package/sdk/partner/PartnerClient.d.ts +5 -2
  7. package/sdk/partner/PartnerClient.js +21 -7
  8. package/sdk/platform/Cart/CartPlatformModel.d.ts +2 -81
  9. package/sdk/platform/Cart/CartPlatformModel.js +2 -239
  10. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +39 -0
  11. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +256 -0
  12. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +59 -1
  13. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +45 -0
  14. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +31 -3
  15. package/sdk/platform/Catalog/CatalogPlatformModel.js +29 -2
  16. package/sdk/platform/Order/OrderPlatformModel.d.ts +7 -0
  17. package/sdk/platform/Order/OrderPlatformModel.js +3 -0
  18. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +0 -64
  19. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +0 -487
  20. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +6 -68
  21. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +3 -76
  22. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +1 -420
  23. package/sdk/platform/Payment/PaymentPlatformModel.js +0 -494
  24. package/sdk/platform/PlatformClient.d.ts +5 -2
  25. package/sdk/platform/PlatformClient.js +32 -18
  26. package/sdk/public/PublicClient.d.ts +3 -2
  27. package/sdk/public/PublicClient.js +13 -7
@@ -2,12 +2,6 @@ const Joi = require("joi");
2
2
 
3
3
  const PaymentPlatformModel = require("./PaymentPlatformModel");
4
4
 
5
- /**
6
- * @typedef AddEdcDeviceParam
7
- * @property {string} terminalUniqueIdentifier - Terminal unique identifier
8
- * @property {PaymentPlatformModel.EdcUpdate} body
9
- */
10
-
11
5
  /**
12
6
  * @typedef AddRefundBankAccountUsingOTPParam
13
7
  * @property {PaymentPlatformModel.AddBeneficiaryDetailsOTPCreation} body
@@ -44,19 +38,6 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
44
38
  * @property {PaymentPlatformModel.PaymentOrderCreation} body
45
39
  */
46
40
 
47
- /** @typedef EdcAggregatorsAndModelListParam */
48
-
49
- /**
50
- * @typedef EdcDeviceListParam
51
- * @property {number} [pageNo]
52
- * @property {number} [pageSize]
53
- * @property {boolean} [isActive]
54
- * @property {number} [storeId]
55
- * @property {string} [deviceTag]
56
- */
57
-
58
- /** @typedef EdcDeviceStatsParam */
59
-
60
41
  /**
61
42
  * @typedef GetBankAccountDetailsOpenAPIParam
62
43
  * @property {string} orderId
@@ -69,11 +50,6 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
69
50
  * @property {string} [configType]
70
51
  */
71
52
 
72
- /**
73
- * @typedef GetEdcDeviceParam
74
- * @property {string} terminalUniqueIdentifier - Terminal unique identifier
75
- */
76
-
77
53
  /**
78
54
  * @typedef GetMerchantAggregatorAppVersionParam
79
55
  * @property {number} aggregatorId - Aggregators Id
@@ -142,9 +118,8 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
142
118
 
143
119
  /**
144
120
  * @typedef GetPosPaymentModeRoutesParam
145
- * @property {PaymentPlatformModel.OrderingSource} [xOrderingSource] - Optional
146
- * header to identify the ordering source used to determine\ applicable
147
- * payment options for business unit.
121
+ * @property {string} [xOrderingSource] - Optional header to identify the
122
+ * ordering source used to determine\ applicable payment options for business unit.
148
123
  * @property {number} amount - Payable amount.
149
124
  * @property {string} [cartId] - Identifier of the cart.
150
125
  * @property {string} pincode - The PIN Code of the destination address, e.g. 400059
@@ -266,11 +241,6 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
266
241
  * @property {PaymentPlatformModel.SetCODForUserCreation} body
267
242
  */
268
243
 
269
- /**
270
- * @typedef UpdateEdcDeviceParam
271
- * @property {PaymentPlatformModel.EdcAddCreation} body
272
- */
273
-
274
244
  /**
275
245
  * @typedef UpdateMerchantRefundPriorityParam
276
246
  * @property {string} configType - Configuration for merchant or customer
@@ -306,14 +276,6 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
306
276
  */
307
277
 
308
278
  class PaymentPlatformApplicationValidator {
309
- /** @returns {AddEdcDeviceParam} */
310
- static addEdcDevice() {
311
- return Joi.object({
312
- terminalUniqueIdentifier: Joi.string().allow("").required(),
313
- body: PaymentPlatformModel.EdcUpdate().required(),
314
- }).required();
315
- }
316
-
317
279
  /** @returns {AddRefundBankAccountUsingOTPParam} */
318
280
  static addRefundBankAccountUsingOTP() {
319
281
  return Joi.object({
@@ -364,27 +326,6 @@ class PaymentPlatformApplicationValidator {
364
326
  }).required();
365
327
  }
366
328
 
367
- /** @returns {EdcAggregatorsAndModelListParam} */
368
- static edcAggregatorsAndModelList() {
369
- return Joi.object({}).required();
370
- }
371
-
372
- /** @returns {EdcDeviceListParam} */
373
- static edcDeviceList() {
374
- return Joi.object({
375
- pageNo: Joi.number(),
376
- pageSize: Joi.number(),
377
- isActive: Joi.boolean(),
378
- storeId: Joi.number(),
379
- deviceTag: Joi.string().allow(""),
380
- }).required();
381
- }
382
-
383
- /** @returns {EdcDeviceStatsParam} */
384
- static edcDeviceStats() {
385
- return Joi.object({}).required();
386
- }
387
-
388
329
  /** @returns {GetBankAccountDetailsOpenAPIParam} */
389
330
  static getBankAccountDetailsOpenAPI() {
390
331
  return Joi.object({
@@ -401,13 +342,6 @@ class PaymentPlatformApplicationValidator {
401
342
  }).required();
402
343
  }
403
344
 
404
- /** @returns {GetEdcDeviceParam} */
405
- static getEdcDevice() {
406
- return Joi.object({
407
- terminalUniqueIdentifier: Joi.string().allow("").required(),
408
- }).required();
409
- }
410
-
411
345
  /** @returns {GetMerchantAggregatorAppVersionParam} */
412
346
  static getMerchantAggregatorAppVersion() {
413
347
  return Joi.object({
@@ -493,7 +427,7 @@ class PaymentPlatformApplicationValidator {
493
427
  /** @returns {GetPosPaymentModeRoutesParam} */
494
428
  static getPosPaymentModeRoutes() {
495
429
  return Joi.object({
496
- xOrderingSource: PaymentPlatformModel.OrderingSource(),
430
+ xOrderingSource: Joi.string().allow(""),
497
431
 
498
432
  amount: Joi.number().required(),
499
433
  cartId: Joi.string().allow(""),
@@ -651,13 +585,6 @@ class PaymentPlatformApplicationValidator {
651
585
  }).required();
652
586
  }
653
587
 
654
- /** @returns {UpdateEdcDeviceParam} */
655
- static updateEdcDevice() {
656
- return Joi.object({
657
- body: PaymentPlatformModel.EdcAddCreation().required(),
658
- }).required();
659
- }
660
-
661
588
  /** @returns {UpdateMerchantRefundPriorityParam} */
662
589
  static updateMerchantRefundPriority() {
663
590
  return Joi.object({
@@ -472,94 +472,6 @@ export = PaymentPlatformModel;
472
472
  * @property {string} message - Message
473
473
  * @property {boolean} success - Response is successful or not
474
474
  */
475
- /**
476
- * @typedef EdcModelData
477
- * @property {string} aggregator - Name of aggregator
478
- * @property {number} aggregator_id - ID of aggregator
479
- * @property {string[]} models - List of string of edc models
480
- */
481
- /**
482
- * @typedef EdcAggregatorAndModelListDetails
483
- * @property {EdcModelData[]} data - List of aggregators and their edc models
484
- * @property {boolean} success - Response is successful or not
485
- */
486
- /**
487
- * @typedef StatisticsData
488
- * @property {number} inactive_device_count - No of inactive devices
489
- * @property {number} active_device_count - No of active devices
490
- */
491
- /**
492
- * @typedef EdcDeviceStatsDetails
493
- * @property {StatisticsData} statistics
494
- * @property {boolean} success - Response is successful or not
495
- */
496
- /**
497
- * @typedef EdcAddCreation
498
- * @property {string} edc_model - Model of the edc machine
499
- * @property {number} store_id - Store at which devices is to used
500
- * @property {number} aggregator_id - Aggregator which will accept payment
501
- * @property {string} edc_device_serial_no - Serial number or imei of EDC device
502
- * @property {string} terminal_serial_no - Device serial number of
503
- * terminal(android tablet)
504
- * @property {string} [device_tag] - Device tag of edc device to identify it
505
- */
506
- /**
507
- * @typedef EdcDevice
508
- * @property {string} [edc_model] - Name of the model
509
- * @property {number} store_id - Store at which devices is to used
510
- * @property {number} aggregator_id - Aggregator which will accept payment
511
- * @property {string} terminal_unique_identifier - Genearated unique value for edc device
512
- * @property {string} edc_device_serial_no - Serial number of EDC device
513
- * @property {boolean} is_active - State whether device is active or inactive
514
- * @property {string} [aggregator_name] - Name of the corresponding aggregator
515
- * @property {string} terminal_serial_no - Device serial number of
516
- * terminal(android tablet)
517
- * @property {string} [merchant_store_pos_code] - This is provided by pinelabs
518
- * @property {string} device_tag - Device tag of edc device to identify it
519
- * @property {string} application_id - Application ID
520
- */
521
- /**
522
- * @typedef EdcDeviceAddDetails
523
- * @property {EdcDevice} data
524
- * @property {boolean} success - Response is successful or not
525
- */
526
- /**
527
- * @typedef EdcDeviceDetails
528
- * @property {EdcDevice} data
529
- * @property {boolean} success - Response is successful or not
530
- */
531
- /**
532
- * @typedef EdcUpdate
533
- * @property {string} [edc_model] - Model of the edc machine
534
- * @property {number} [store_id] - Store at which devices is to used
535
- * @property {number} [aggregator_id] - Aggregator which will accept payment
536
- * @property {string} [edc_device_serial_no] - Serial number or imei of EDC device
537
- * @property {boolean} [is_active] - State whether device is active or inactive
538
- * @property {string} [merchant_store_pos_code] - This is provided by pinelabs
539
- * @property {string} [device_tag] - Device tag of edc device to identify it
540
- */
541
- /**
542
- * @typedef EdcDeviceUpdateDetails
543
- * @property {boolean} success - Response is successful or not
544
- */
545
- /**
546
- * @typedef Page
547
- * @property {number} [item_total] - The total number of all items across all pages.
548
- * @property {string} [next_id] - The identifier for the next page.
549
- * @property {boolean} [has_previous] - Indicates whether there is a previous page.
550
- * @property {boolean} [has_next] - Indicates whether there is a next page.
551
- * @property {number} [current] - The current page number.
552
- * @property {string} type - The type of the page, such as 'PageType'.
553
- * @property {number} [size] - The number of items per page.
554
- * @property {number} [page_size] - The number of items per page.
555
- */
556
- /**
557
- * @typedef EdcDeviceListDetails
558
- * @property {EdcDevice[]} items - List of all edc mapped to the application
559
- * options with their Details.
560
- * @property {Page} page
561
- * @property {boolean} success - Response is successful or not
562
- */
563
475
  /**
564
476
  * @typedef PaymentInitializationCreation
565
477
  * @property {string} [razorpay_payment_id] - Payment gateway payment id
@@ -1290,99 +1202,10 @@ export = PaymentPlatformModel;
1290
1202
  * @property {string} [cart_id] - Unique identifier for the shopping cart.
1291
1203
  * @property {CreditAccountSummary} [account]
1292
1204
  */
1293
- /**
1294
- * @typedef {| "storefront"
1295
- * | "store_os_pos"
1296
- * | "kiosk"
1297
- * | "scan_go"
1298
- * | "smart_trolley"
1299
- * | "gofynd"
1300
- * | "uniket"
1301
- * | "marketplace"
1302
- * | "social_commerce"
1303
- * | "ondc"
1304
- * | "nexus"
1305
- * | "nykaa_fashion"
1306
- * | "etsy"
1307
- * | "vuivui"
1308
- * | "zilingo"
1309
- * | "firstcry"
1310
- * | "bukalapak"
1311
- * | "myntra_ppmp"
1312
- * | "lazada"
1313
- * | "tiktok"
1314
- * | "sfcc"
1315
- * | "debenhams"
1316
- * | "prestomall"
1317
- * | "meesho"
1318
- * | "amazon_vdf"
1319
- * | "bigcommerce"
1320
- * | "sendo"
1321
- * | "storehippo"
1322
- * | "cdiscount"
1323
- * | "nykaa"
1324
- * | "trendyol"
1325
- * | "weloveshopping"
1326
- * | "jollee"
1327
- * | "wish"
1328
- * | "tiki"
1329
- * | "central_online"
1330
- * | "q10"
1331
- * | "cred"
1332
- * | "walmart"
1333
- * | "snapdeal"
1334
- * | "flipkart"
1335
- * | "blibli"
1336
- * | "ajio_jit"
1337
- * | "pharmeasy"
1338
- * | "ezmall"
1339
- * | "adobe_commerce"
1340
- * | "kartmax"
1341
- * | "shopee"
1342
- * | "zalora"
1343
- * | "prestashop"
1344
- * | "smytten"
1345
- * | "amazon_sc"
1346
- * | "urbanpiper"
1347
- * | "flipkart_quick"
1348
- * | "woocommerce"
1349
- * | "zivame"
1350
- * | "lelong"
1351
- * | "facebook"
1352
- * | "jiomart"
1353
- * | "gmc"
1354
- * | "robins"
1355
- * | "akulaku"
1356
- * | "noon"
1357
- * | "tatacliq"
1358
- * | "kartrocket"
1359
- * | "inorbit"
1360
- * | "ajio_business"
1361
- * | "swiggy"
1362
- * | "asos"
1363
- * | "tokopedia"
1364
- * | "limeroad"
1365
- * | "myntra_omni"
1366
- * | "spoyl"
1367
- * | "amazon_mlf"
1368
- * | "fulfilled_by_lazada"
1369
- * | "ebay"
1370
- * | "jd"
1371
- * | "amazon_pharmacy"
1372
- * | "ajio_vms"
1373
- * | "daraz"
1374
- * | "oker"
1375
- * | "flipkart_b2b"
1376
- * | "amazon_mlf_ss"
1377
- * | "woovly"
1378
- * | "tata1mg"
1379
- * | "zomato"
1380
- * | "shopify"} OrderingSource
1381
- */
1382
1205
  declare class PaymentPlatformModel {
1383
1206
  }
1384
1207
  declare namespace PaymentPlatformModel {
1385
- export { PaymentGatewayConfigDetails, ErrorCodeDescription, PaymentGatewayConfig, PaymentGatewayConfigCreation, PaymentGatewayToBeReviewed, ErrorCodeAndDescription, HttpErrorDetails, IntentAppErrorList, ProductCODData, CODChargesLimitsDetails, PaymentModeLogo, IntentApp, PaymentModeList, PaymentConfirmationElement, RootPaymentMode, PaymentOptions, AggregatorRoute, PaymentDefaultSelection, PaymentFlow, PaymentOptionAndFlow, AdvanceObject, SplitObject, AdvancePaymentObject, PaymentModeRouteDetails, PaymentOptionsDetails, PayoutCustomer, PayoutMoreAttributes, PayoutAggregator, Payout, PayoutsDetails, PayoutBankDetails, PayoutCreation, PayoutDetails, UpdatePayoutDetails, UpdatePayoutCreation, DeletePayoutDetails, SubscriptionPaymentMethodDetails, DeleteSubscriptionPaymentMethodDetails, SubscriptionConfigDetails, SaveSubscriptionSetupIntentCreation, SaveSubscriptionSetupIntentDetails, RefundAccountDetails, NotFoundResourceError, BankDetailsForOTP, AddBeneficiaryDetailsOTPCreation, IfscCodeDetails, OrderBeneficiaryDetails, OrderBeneficiaryFetchResults, MultiTenderPaymentMeta, MultiTenderPaymentMethod, PaymentConfirmationCreation, PaymentConfirmationDetails, CODdata, CODLimitConfig, CODPaymentLimitConfig, GetUserBULimitResponseSchema, GetUserCODLimitDetails, SetCODForUserCreation, SetCODOptionDetails, EdcModelData, EdcAggregatorAndModelListDetails, StatisticsData, EdcDeviceStatsDetails, EdcAddCreation, EdcDevice, EdcDeviceAddDetails, EdcDeviceDetails, EdcUpdate, EdcDeviceUpdateDetails, Page, EdcDeviceListDetails, PaymentInitializationCreation, PaymentInitializationDetails, PaymentStatusUpdateCreation, PaymentStatusUpdateDetails, ResendOrCancelPaymentCreation, LinkStatus, ResendOrCancelPaymentDetails, PaymentStatusBulkHandlerCreation, PaymentObjectList, PaymentStatusObject, PaymentStatusBulkHandlerDetails, GetOauthUrlDetails, RevokeOAuthToken, RepaymentRequestDetails, RepaymentDetailsSerialiserPayAll, RepaymentDetails, MerchantOnBoardingCreation, MerchantOnBoardingDetails, ValidateCustomerCreation, ValidateCustomerDetails, GetPaymentLinkDetails, ErrorDescription, ErrorDetails, CreatePaymentLinkMeta, CreatePaymentLinkCreation, CreatePaymentLinkDetails, PollingPaymentLinkDetails, CancelOrResendPaymentLinkCreation, ResendPaymentLinkDetails, CancelPaymentLinkDetails, Code, PaymentCode, GetPaymentCode, GetPaymentCodeDetails, PlatformPaymentModeDetails, MerchnatPaymentModeCreation, SkuDetails, AppliedOffer, OrderDetail, AddressDetail, ReasonDetail, PaymentSessionDetail, PaymentSessionCreation, PaymentSessionPutDetails, RefundSessionDetail, RefundSessionCreation, RefundSessionDetails, PaymentDetails, CartDetails, RefundDetails, PaymentSessionFetchDetails, RefundSourcesPriority, RefundPriorityDetails, RefundPriorityCreation, MerchantPaymentModeCreation, FromConfig, ToConfig, PlatformPaymentModeCopyConfigCreation, PaymentMethodsMetaOrder, PaymentOrderMethods, PaymentOrderCreation, PaymentOrderData, PaymentOrderDetails, AggregatorVersionItemSchema, AggregatorVersionDetails, AggregatorVersionRequestSchema, PatchAggregatorControl, PaymentModeCustomConfigSchema, PaymentCustomConfigDetailsSchema, PaymentCustomConfigCustomerSchema, PaymentCustomConfigModeSchema, PaymentCustomConfigDetailsRequestSchema, PaymentCustomConfigCustomerRequestSchema, PaymentCustomConfigRequestSchema, PaymentCustomConfigResponseSchema, CustomerValidationSchema, UserCreditSchema, CreditAccountSummary, ValidateCustomerCreditSchema, OrderingSource };
1208
+ export { PaymentGatewayConfigDetails, ErrorCodeDescription, PaymentGatewayConfig, PaymentGatewayConfigCreation, PaymentGatewayToBeReviewed, ErrorCodeAndDescription, HttpErrorDetails, IntentAppErrorList, ProductCODData, CODChargesLimitsDetails, PaymentModeLogo, IntentApp, PaymentModeList, PaymentConfirmationElement, RootPaymentMode, PaymentOptions, AggregatorRoute, PaymentDefaultSelection, PaymentFlow, PaymentOptionAndFlow, AdvanceObject, SplitObject, AdvancePaymentObject, PaymentModeRouteDetails, PaymentOptionsDetails, PayoutCustomer, PayoutMoreAttributes, PayoutAggregator, Payout, PayoutsDetails, PayoutBankDetails, PayoutCreation, PayoutDetails, UpdatePayoutDetails, UpdatePayoutCreation, DeletePayoutDetails, SubscriptionPaymentMethodDetails, DeleteSubscriptionPaymentMethodDetails, SubscriptionConfigDetails, SaveSubscriptionSetupIntentCreation, SaveSubscriptionSetupIntentDetails, RefundAccountDetails, NotFoundResourceError, BankDetailsForOTP, AddBeneficiaryDetailsOTPCreation, IfscCodeDetails, OrderBeneficiaryDetails, OrderBeneficiaryFetchResults, MultiTenderPaymentMeta, MultiTenderPaymentMethod, PaymentConfirmationCreation, PaymentConfirmationDetails, CODdata, CODLimitConfig, CODPaymentLimitConfig, GetUserBULimitResponseSchema, GetUserCODLimitDetails, SetCODForUserCreation, SetCODOptionDetails, PaymentInitializationCreation, PaymentInitializationDetails, PaymentStatusUpdateCreation, PaymentStatusUpdateDetails, ResendOrCancelPaymentCreation, LinkStatus, ResendOrCancelPaymentDetails, PaymentStatusBulkHandlerCreation, PaymentObjectList, PaymentStatusObject, PaymentStatusBulkHandlerDetails, GetOauthUrlDetails, RevokeOAuthToken, RepaymentRequestDetails, RepaymentDetailsSerialiserPayAll, RepaymentDetails, MerchantOnBoardingCreation, MerchantOnBoardingDetails, ValidateCustomerCreation, ValidateCustomerDetails, GetPaymentLinkDetails, ErrorDescription, ErrorDetails, CreatePaymentLinkMeta, CreatePaymentLinkCreation, CreatePaymentLinkDetails, PollingPaymentLinkDetails, CancelOrResendPaymentLinkCreation, ResendPaymentLinkDetails, CancelPaymentLinkDetails, Code, PaymentCode, GetPaymentCode, GetPaymentCodeDetails, PlatformPaymentModeDetails, MerchnatPaymentModeCreation, SkuDetails, AppliedOffer, OrderDetail, AddressDetail, ReasonDetail, PaymentSessionDetail, PaymentSessionCreation, PaymentSessionPutDetails, RefundSessionDetail, RefundSessionCreation, RefundSessionDetails, PaymentDetails, CartDetails, RefundDetails, PaymentSessionFetchDetails, RefundSourcesPriority, RefundPriorityDetails, RefundPriorityCreation, MerchantPaymentModeCreation, FromConfig, ToConfig, PlatformPaymentModeCopyConfigCreation, PaymentMethodsMetaOrder, PaymentOrderMethods, PaymentOrderCreation, PaymentOrderData, PaymentOrderDetails, AggregatorVersionItemSchema, AggregatorVersionDetails, AggregatorVersionRequestSchema, PatchAggregatorControl, PaymentModeCustomConfigSchema, PaymentCustomConfigDetailsSchema, PaymentCustomConfigCustomerSchema, PaymentCustomConfigModeSchema, PaymentCustomConfigDetailsRequestSchema, PaymentCustomConfigCustomerRequestSchema, PaymentCustomConfigRequestSchema, PaymentCustomConfigResponseSchema, CustomerValidationSchema, UserCreditSchema, CreditAccountSummary, ValidateCustomerCreditSchema };
1386
1209
  }
1387
1210
  /** @returns {PaymentGatewayConfigDetails} */
1388
1211
  declare function PaymentGatewayConfigDetails(): PaymentGatewayConfigDetails;
@@ -2618,241 +2441,6 @@ type SetCODOptionDetails = {
2618
2441
  */
2619
2442
  success: boolean;
2620
2443
  };
2621
- /** @returns {EdcModelData} */
2622
- declare function EdcModelData(): EdcModelData;
2623
- type EdcModelData = {
2624
- /**
2625
- * - Name of aggregator
2626
- */
2627
- aggregator: string;
2628
- /**
2629
- * - ID of aggregator
2630
- */
2631
- aggregator_id: number;
2632
- /**
2633
- * - List of string of edc models
2634
- */
2635
- models: string[];
2636
- };
2637
- /** @returns {EdcAggregatorAndModelListDetails} */
2638
- declare function EdcAggregatorAndModelListDetails(): EdcAggregatorAndModelListDetails;
2639
- type EdcAggregatorAndModelListDetails = {
2640
- /**
2641
- * - List of aggregators and their edc models
2642
- */
2643
- data: EdcModelData[];
2644
- /**
2645
- * - Response is successful or not
2646
- */
2647
- success: boolean;
2648
- };
2649
- /** @returns {StatisticsData} */
2650
- declare function StatisticsData(): StatisticsData;
2651
- type StatisticsData = {
2652
- /**
2653
- * - No of inactive devices
2654
- */
2655
- inactive_device_count: number;
2656
- /**
2657
- * - No of active devices
2658
- */
2659
- active_device_count: number;
2660
- };
2661
- /** @returns {EdcDeviceStatsDetails} */
2662
- declare function EdcDeviceStatsDetails(): EdcDeviceStatsDetails;
2663
- type EdcDeviceStatsDetails = {
2664
- statistics: StatisticsData;
2665
- /**
2666
- * - Response is successful or not
2667
- */
2668
- success: boolean;
2669
- };
2670
- /** @returns {EdcAddCreation} */
2671
- declare function EdcAddCreation(): EdcAddCreation;
2672
- type EdcAddCreation = {
2673
- /**
2674
- * - Model of the edc machine
2675
- */
2676
- edc_model: string;
2677
- /**
2678
- * - Store at which devices is to used
2679
- */
2680
- store_id: number;
2681
- /**
2682
- * - Aggregator which will accept payment
2683
- */
2684
- aggregator_id: number;
2685
- /**
2686
- * - Serial number or imei of EDC device
2687
- */
2688
- edc_device_serial_no: string;
2689
- /**
2690
- * - Device serial number of
2691
- * terminal(android tablet)
2692
- */
2693
- terminal_serial_no: string;
2694
- /**
2695
- * - Device tag of edc device to identify it
2696
- */
2697
- device_tag?: string;
2698
- };
2699
- /** @returns {EdcDevice} */
2700
- declare function EdcDevice(): EdcDevice;
2701
- type EdcDevice = {
2702
- /**
2703
- * - Name of the model
2704
- */
2705
- edc_model?: string;
2706
- /**
2707
- * - Store at which devices is to used
2708
- */
2709
- store_id: number;
2710
- /**
2711
- * - Aggregator which will accept payment
2712
- */
2713
- aggregator_id: number;
2714
- /**
2715
- * - Genearated unique value for edc device
2716
- */
2717
- terminal_unique_identifier: string;
2718
- /**
2719
- * - Serial number of EDC device
2720
- */
2721
- edc_device_serial_no: string;
2722
- /**
2723
- * - State whether device is active or inactive
2724
- */
2725
- is_active: boolean;
2726
- /**
2727
- * - Name of the corresponding aggregator
2728
- */
2729
- aggregator_name?: string;
2730
- /**
2731
- * - Device serial number of
2732
- * terminal(android tablet)
2733
- */
2734
- terminal_serial_no: string;
2735
- /**
2736
- * - This is provided by pinelabs
2737
- */
2738
- merchant_store_pos_code?: string;
2739
- /**
2740
- * - Device tag of edc device to identify it
2741
- */
2742
- device_tag: string;
2743
- /**
2744
- * - Application ID
2745
- */
2746
- application_id: string;
2747
- };
2748
- /** @returns {EdcDeviceAddDetails} */
2749
- declare function EdcDeviceAddDetails(): EdcDeviceAddDetails;
2750
- type EdcDeviceAddDetails = {
2751
- data: EdcDevice;
2752
- /**
2753
- * - Response is successful or not
2754
- */
2755
- success: boolean;
2756
- };
2757
- /** @returns {EdcDeviceDetails} */
2758
- declare function EdcDeviceDetails(): EdcDeviceDetails;
2759
- type EdcDeviceDetails = {
2760
- data: EdcDevice;
2761
- /**
2762
- * - Response is successful or not
2763
- */
2764
- success: boolean;
2765
- };
2766
- /** @returns {EdcUpdate} */
2767
- declare function EdcUpdate(): EdcUpdate;
2768
- type EdcUpdate = {
2769
- /**
2770
- * - Model of the edc machine
2771
- */
2772
- edc_model?: string;
2773
- /**
2774
- * - Store at which devices is to used
2775
- */
2776
- store_id?: number;
2777
- /**
2778
- * - Aggregator which will accept payment
2779
- */
2780
- aggregator_id?: number;
2781
- /**
2782
- * - Serial number or imei of EDC device
2783
- */
2784
- edc_device_serial_no?: string;
2785
- /**
2786
- * - State whether device is active or inactive
2787
- */
2788
- is_active?: boolean;
2789
- /**
2790
- * - This is provided by pinelabs
2791
- */
2792
- merchant_store_pos_code?: string;
2793
- /**
2794
- * - Device tag of edc device to identify it
2795
- */
2796
- device_tag?: string;
2797
- };
2798
- /** @returns {EdcDeviceUpdateDetails} */
2799
- declare function EdcDeviceUpdateDetails(): EdcDeviceUpdateDetails;
2800
- type EdcDeviceUpdateDetails = {
2801
- /**
2802
- * - Response is successful or not
2803
- */
2804
- success: boolean;
2805
- };
2806
- /** @returns {Page} */
2807
- declare function Page(): Page;
2808
- type Page = {
2809
- /**
2810
- * - The total number of all items across all pages.
2811
- */
2812
- item_total?: number;
2813
- /**
2814
- * - The identifier for the next page.
2815
- */
2816
- next_id?: string;
2817
- /**
2818
- * - Indicates whether there is a previous page.
2819
- */
2820
- has_previous?: boolean;
2821
- /**
2822
- * - Indicates whether there is a next page.
2823
- */
2824
- has_next?: boolean;
2825
- /**
2826
- * - The current page number.
2827
- */
2828
- current?: number;
2829
- /**
2830
- * - The type of the page, such as 'PageType'.
2831
- */
2832
- type: string;
2833
- /**
2834
- * - The number of items per page.
2835
- */
2836
- size?: number;
2837
- /**
2838
- * - The number of items per page.
2839
- */
2840
- page_size?: number;
2841
- };
2842
- /** @returns {EdcDeviceListDetails} */
2843
- declare function EdcDeviceListDetails(): EdcDeviceListDetails;
2844
- type EdcDeviceListDetails = {
2845
- /**
2846
- * - List of all edc mapped to the application
2847
- * options with their Details.
2848
- */
2849
- items: EdcDevice[];
2850
- page: Page;
2851
- /**
2852
- * - Response is successful or not
2853
- */
2854
- success: boolean;
2855
- };
2856
2444
  /** @returns {PaymentInitializationCreation} */
2857
2445
  declare function PaymentInitializationCreation(): PaymentInitializationCreation;
2858
2446
  type PaymentInitializationCreation = {
@@ -4781,10 +4369,3 @@ type ValidateCustomerCreditSchema = {
4781
4369
  cart_id?: string;
4782
4370
  account?: CreditAccountSummary;
4783
4371
  };
4784
- /**
4785
- * Enum: OrderingSource Used By: Payment
4786
- *
4787
- * @returns {OrderingSource}
4788
- */
4789
- declare function OrderingSource(): OrderingSource;
4790
- type OrderingSource = "storefront" | "store_os_pos" | "kiosk" | "scan_go" | "smart_trolley" | "gofynd" | "uniket" | "marketplace" | "social_commerce" | "ondc" | "nexus" | "nykaa_fashion" | "etsy" | "vuivui" | "zilingo" | "firstcry" | "bukalapak" | "myntra_ppmp" | "lazada" | "tiktok" | "sfcc" | "debenhams" | "prestomall" | "meesho" | "amazon_vdf" | "bigcommerce" | "sendo" | "storehippo" | "cdiscount" | "nykaa" | "trendyol" | "weloveshopping" | "jollee" | "wish" | "tiki" | "central_online" | "q10" | "cred" | "walmart" | "snapdeal" | "flipkart" | "blibli" | "ajio_jit" | "pharmeasy" | "ezmall" | "adobe_commerce" | "kartmax" | "shopee" | "zalora" | "prestashop" | "smytten" | "amazon_sc" | "urbanpiper" | "flipkart_quick" | "woocommerce" | "zivame" | "lelong" | "facebook" | "jiomart" | "gmc" | "robins" | "akulaku" | "noon" | "tatacliq" | "kartrocket" | "inorbit" | "ajio_business" | "swiggy" | "asos" | "tokopedia" | "limeroad" | "myntra_omni" | "spoyl" | "amazon_mlf" | "fulfilled_by_lazada" | "ebay" | "jd" | "amazon_pharmacy" | "ajio_vms" | "daraz" | "oker" | "flipkart_b2b" | "amazon_mlf_ss" | "woovly" | "tata1mg" | "zomato" | "shopify";