@gofynd/fdk-client-javascript 3.4.2 → 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.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +5 -2
- package/sdk/platform/Catalog/CatalogPlatformModel.js +2 -2
- package/sdk/platform/Order/OrderPlatformModel.d.ts +7 -0
- package/sdk/platform/Order/OrderPlatformModel.js +3 -0
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +0 -64
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +0 -487
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +1 -61
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +0 -72
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +1 -324
- package/sdk/platform/Payment/PaymentPlatformModel.js +0 -221
|
@@ -532,106 +532,6 @@ const Joi = require("joi");
|
|
|
532
532
|
* @property {boolean} success - Response is successful or not
|
|
533
533
|
*/
|
|
534
534
|
|
|
535
|
-
/**
|
|
536
|
-
* @typedef EdcModelData
|
|
537
|
-
* @property {string} aggregator - Name of aggregator
|
|
538
|
-
* @property {number} aggregator_id - ID of aggregator
|
|
539
|
-
* @property {string[]} models - List of string of edc models
|
|
540
|
-
*/
|
|
541
|
-
|
|
542
|
-
/**
|
|
543
|
-
* @typedef EdcAggregatorAndModelListDetails
|
|
544
|
-
* @property {EdcModelData[]} data - List of aggregators and their edc models
|
|
545
|
-
* @property {boolean} success - Response is successful or not
|
|
546
|
-
*/
|
|
547
|
-
|
|
548
|
-
/**
|
|
549
|
-
* @typedef StatisticsData
|
|
550
|
-
* @property {number} inactive_device_count - No of inactive devices
|
|
551
|
-
* @property {number} active_device_count - No of active devices
|
|
552
|
-
*/
|
|
553
|
-
|
|
554
|
-
/**
|
|
555
|
-
* @typedef EdcDeviceStatsDetails
|
|
556
|
-
* @property {StatisticsData} statistics
|
|
557
|
-
* @property {boolean} success - Response is successful or not
|
|
558
|
-
*/
|
|
559
|
-
|
|
560
|
-
/**
|
|
561
|
-
* @typedef EdcAddCreation
|
|
562
|
-
* @property {string} edc_model - Model of the edc machine
|
|
563
|
-
* @property {number} store_id - Store at which devices is to used
|
|
564
|
-
* @property {number} aggregator_id - Aggregator which will accept payment
|
|
565
|
-
* @property {string} edc_device_serial_no - Serial number or imei of EDC device
|
|
566
|
-
* @property {string} terminal_serial_no - Device serial number of
|
|
567
|
-
* terminal(android tablet)
|
|
568
|
-
* @property {string} [device_tag] - Device tag of edc device to identify it
|
|
569
|
-
*/
|
|
570
|
-
|
|
571
|
-
/**
|
|
572
|
-
* @typedef EdcDevice
|
|
573
|
-
* @property {string} [edc_model] - Name of the model
|
|
574
|
-
* @property {number} store_id - Store at which devices is to used
|
|
575
|
-
* @property {number} aggregator_id - Aggregator which will accept payment
|
|
576
|
-
* @property {string} terminal_unique_identifier - Genearated unique value for edc device
|
|
577
|
-
* @property {string} edc_device_serial_no - Serial number of EDC device
|
|
578
|
-
* @property {boolean} is_active - State whether device is active or inactive
|
|
579
|
-
* @property {string} [aggregator_name] - Name of the corresponding aggregator
|
|
580
|
-
* @property {string} terminal_serial_no - Device serial number of
|
|
581
|
-
* terminal(android tablet)
|
|
582
|
-
* @property {string} [merchant_store_pos_code] - This is provided by pinelabs
|
|
583
|
-
* @property {string} device_tag - Device tag of edc device to identify it
|
|
584
|
-
* @property {string} application_id - Application ID
|
|
585
|
-
*/
|
|
586
|
-
|
|
587
|
-
/**
|
|
588
|
-
* @typedef EdcDeviceAddDetails
|
|
589
|
-
* @property {EdcDevice} data
|
|
590
|
-
* @property {boolean} success - Response is successful or not
|
|
591
|
-
*/
|
|
592
|
-
|
|
593
|
-
/**
|
|
594
|
-
* @typedef EdcDeviceDetails
|
|
595
|
-
* @property {EdcDevice} data
|
|
596
|
-
* @property {boolean} success - Response is successful or not
|
|
597
|
-
*/
|
|
598
|
-
|
|
599
|
-
/**
|
|
600
|
-
* @typedef EdcUpdate
|
|
601
|
-
* @property {string} [edc_model] - Model of the edc machine
|
|
602
|
-
* @property {number} [store_id] - Store at which devices is to used
|
|
603
|
-
* @property {number} [aggregator_id] - Aggregator which will accept payment
|
|
604
|
-
* @property {string} [edc_device_serial_no] - Serial number or imei of EDC device
|
|
605
|
-
* @property {boolean} [is_active] - State whether device is active or inactive
|
|
606
|
-
* @property {string} [merchant_store_pos_code] - This is provided by pinelabs
|
|
607
|
-
* @property {string} [device_tag] - Device tag of edc device to identify it
|
|
608
|
-
*/
|
|
609
|
-
|
|
610
|
-
/**
|
|
611
|
-
* @typedef EdcDeviceUpdateDetails
|
|
612
|
-
* @property {boolean} success - Response is successful or not
|
|
613
|
-
*/
|
|
614
|
-
|
|
615
|
-
/**
|
|
616
|
-
* @typedef Page
|
|
617
|
-
* @property {number} [item_total] - The total number of all items across all pages.
|
|
618
|
-
* @property {string} [next_id] - The identifier for the next page.
|
|
619
|
-
* @property {boolean} [has_previous] - Indicates whether there is a previous page.
|
|
620
|
-
* @property {boolean} [has_next] - Indicates whether there is a next page.
|
|
621
|
-
* @property {number} [current] - The current page number.
|
|
622
|
-
* @property {string} type - The type of the page, such as 'PageType'.
|
|
623
|
-
* @property {number} [size] - The number of items per page.
|
|
624
|
-
* @property {number} [page_size] - The number of items per page.
|
|
625
|
-
*/
|
|
626
|
-
|
|
627
|
-
/**
|
|
628
|
-
* @typedef EdcDeviceListDetails
|
|
629
|
-
* @property {EdcDevice[]} items - List of all edc mapped to the application
|
|
630
|
-
* options with their Details.
|
|
631
|
-
* @property {Page} page
|
|
632
|
-
* @property {boolean} success - Response is successful or not
|
|
633
|
-
*/
|
|
634
|
-
|
|
635
535
|
/**
|
|
636
536
|
* @typedef PaymentInitializationCreation
|
|
637
537
|
* @property {string} [razorpay_payment_id] - Payment gateway payment id
|
|
@@ -2104,127 +2004,6 @@ class PaymentPlatformModel {
|
|
|
2104
2004
|
});
|
|
2105
2005
|
}
|
|
2106
2006
|
|
|
2107
|
-
/** @returns {EdcModelData} */
|
|
2108
|
-
static EdcModelData() {
|
|
2109
|
-
return Joi.object({
|
|
2110
|
-
aggregator: Joi.string().allow("").required(),
|
|
2111
|
-
aggregator_id: Joi.number().required(),
|
|
2112
|
-
models: Joi.array().items(Joi.string().allow("")).required(),
|
|
2113
|
-
});
|
|
2114
|
-
}
|
|
2115
|
-
|
|
2116
|
-
/** @returns {EdcAggregatorAndModelListDetails} */
|
|
2117
|
-
static EdcAggregatorAndModelListDetails() {
|
|
2118
|
-
return Joi.object({
|
|
2119
|
-
data: Joi.array().items(PaymentPlatformModel.EdcModelData()).required(),
|
|
2120
|
-
success: Joi.boolean().required(),
|
|
2121
|
-
});
|
|
2122
|
-
}
|
|
2123
|
-
|
|
2124
|
-
/** @returns {StatisticsData} */
|
|
2125
|
-
static StatisticsData() {
|
|
2126
|
-
return Joi.object({
|
|
2127
|
-
inactive_device_count: Joi.number().required(),
|
|
2128
|
-
active_device_count: Joi.number().required(),
|
|
2129
|
-
});
|
|
2130
|
-
}
|
|
2131
|
-
|
|
2132
|
-
/** @returns {EdcDeviceStatsDetails} */
|
|
2133
|
-
static EdcDeviceStatsDetails() {
|
|
2134
|
-
return Joi.object({
|
|
2135
|
-
statistics: PaymentPlatformModel.StatisticsData().required(),
|
|
2136
|
-
success: Joi.boolean().required(),
|
|
2137
|
-
});
|
|
2138
|
-
}
|
|
2139
|
-
|
|
2140
|
-
/** @returns {EdcAddCreation} */
|
|
2141
|
-
static EdcAddCreation() {
|
|
2142
|
-
return Joi.object({
|
|
2143
|
-
edc_model: Joi.string().allow("").required(),
|
|
2144
|
-
store_id: Joi.number().required(),
|
|
2145
|
-
aggregator_id: Joi.number().required(),
|
|
2146
|
-
edc_device_serial_no: Joi.string().allow("").required(),
|
|
2147
|
-
terminal_serial_no: Joi.string().allow("").required(),
|
|
2148
|
-
device_tag: Joi.string().allow("").allow(null),
|
|
2149
|
-
});
|
|
2150
|
-
}
|
|
2151
|
-
|
|
2152
|
-
/** @returns {EdcDevice} */
|
|
2153
|
-
static EdcDevice() {
|
|
2154
|
-
return Joi.object({
|
|
2155
|
-
edc_model: Joi.string().allow(""),
|
|
2156
|
-
store_id: Joi.number().required(),
|
|
2157
|
-
aggregator_id: Joi.number().required(),
|
|
2158
|
-
terminal_unique_identifier: Joi.string().allow("").required(),
|
|
2159
|
-
edc_device_serial_no: Joi.string().allow("").required(),
|
|
2160
|
-
is_active: Joi.boolean().required(),
|
|
2161
|
-
aggregator_name: Joi.string().allow(""),
|
|
2162
|
-
terminal_serial_no: Joi.string().allow("").required(),
|
|
2163
|
-
merchant_store_pos_code: Joi.string().allow("").allow(null),
|
|
2164
|
-
device_tag: Joi.string().allow("").required(),
|
|
2165
|
-
application_id: Joi.string().allow("").required(),
|
|
2166
|
-
});
|
|
2167
|
-
}
|
|
2168
|
-
|
|
2169
|
-
/** @returns {EdcDeviceAddDetails} */
|
|
2170
|
-
static EdcDeviceAddDetails() {
|
|
2171
|
-
return Joi.object({
|
|
2172
|
-
data: PaymentPlatformModel.EdcDevice().required(),
|
|
2173
|
-
success: Joi.boolean().required(),
|
|
2174
|
-
});
|
|
2175
|
-
}
|
|
2176
|
-
|
|
2177
|
-
/** @returns {EdcDeviceDetails} */
|
|
2178
|
-
static EdcDeviceDetails() {
|
|
2179
|
-
return Joi.object({
|
|
2180
|
-
data: PaymentPlatformModel.EdcDevice().required(),
|
|
2181
|
-
success: Joi.boolean().required(),
|
|
2182
|
-
});
|
|
2183
|
-
}
|
|
2184
|
-
|
|
2185
|
-
/** @returns {EdcUpdate} */
|
|
2186
|
-
static EdcUpdate() {
|
|
2187
|
-
return Joi.object({
|
|
2188
|
-
edc_model: Joi.string().allow(""),
|
|
2189
|
-
store_id: Joi.number(),
|
|
2190
|
-
aggregator_id: Joi.number(),
|
|
2191
|
-
edc_device_serial_no: Joi.string().allow(""),
|
|
2192
|
-
is_active: Joi.boolean(),
|
|
2193
|
-
merchant_store_pos_code: Joi.string().allow(""),
|
|
2194
|
-
device_tag: Joi.string().allow("").allow(null),
|
|
2195
|
-
});
|
|
2196
|
-
}
|
|
2197
|
-
|
|
2198
|
-
/** @returns {EdcDeviceUpdateDetails} */
|
|
2199
|
-
static EdcDeviceUpdateDetails() {
|
|
2200
|
-
return Joi.object({
|
|
2201
|
-
success: Joi.boolean().required(),
|
|
2202
|
-
});
|
|
2203
|
-
}
|
|
2204
|
-
|
|
2205
|
-
/** @returns {Page} */
|
|
2206
|
-
static Page() {
|
|
2207
|
-
return Joi.object({
|
|
2208
|
-
item_total: Joi.number(),
|
|
2209
|
-
next_id: Joi.string().allow(""),
|
|
2210
|
-
has_previous: Joi.boolean(),
|
|
2211
|
-
has_next: Joi.boolean(),
|
|
2212
|
-
current: Joi.number(),
|
|
2213
|
-
type: Joi.string().allow("").required(),
|
|
2214
|
-
size: Joi.number(),
|
|
2215
|
-
page_size: Joi.number(),
|
|
2216
|
-
});
|
|
2217
|
-
}
|
|
2218
|
-
|
|
2219
|
-
/** @returns {EdcDeviceListDetails} */
|
|
2220
|
-
static EdcDeviceListDetails() {
|
|
2221
|
-
return Joi.object({
|
|
2222
|
-
items: Joi.array().items(PaymentPlatformModel.EdcDevice()).required(),
|
|
2223
|
-
page: PaymentPlatformModel.Page().required(),
|
|
2224
|
-
success: Joi.boolean().required(),
|
|
2225
|
-
});
|
|
2226
|
-
}
|
|
2227
|
-
|
|
2228
2007
|
/** @returns {PaymentInitializationCreation} */
|
|
2229
2008
|
static PaymentInitializationCreation() {
|
|
2230
2009
|
return Joi.object({
|