@compassdigital/sdk.typescript 4.972.0 → 4.974.0
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/lib/index.d.ts +23 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +27 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/centric-pos.d.ts +47 -0
- package/lib/interface/centric-pos.d.ts.map +1 -1
- package/lib/interface/consumer.d.ts +20 -0
- package/lib/interface/consumer.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +65 -0
- package/src/interface/centric-pos.ts +67 -0
- package/src/interface/consumer.ts +39 -0
package/lib/index.js
CHANGED
|
@@ -6248,6 +6248,16 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
6248
6248
|
post_payment_cashless_consumer(id, body, options) {
|
|
6249
6249
|
return this.request('consumer', '/consumer/payment/{id}/cashless', 'POST', `/consumer/payment/${id}/cashless`, body, options);
|
|
6250
6250
|
}
|
|
6251
|
+
/**
|
|
6252
|
+
* DELETE /consumer/payment/{id}/cashless - Delete payment cashless tenders
|
|
6253
|
+
*
|
|
6254
|
+
* @param id - Payment ID
|
|
6255
|
+
* @param body - Delete Payment Cashless Body
|
|
6256
|
+
* @param options - additional request options
|
|
6257
|
+
*/
|
|
6258
|
+
delete_consumer_payment_cashless(id, body, options) {
|
|
6259
|
+
return this.request('consumer', '/consumer/payment/{id}/cashless', 'DELETE', `/consumer/payment/${id}/cashless`, body, options);
|
|
6260
|
+
}
|
|
6251
6261
|
/**
|
|
6252
6262
|
* GET /consumer/payment/{id}/clienttoken - get payment client token
|
|
6253
6263
|
*
|
|
@@ -6282,6 +6292,15 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
6282
6292
|
post_consumer_payment_token(body, options) {
|
|
6283
6293
|
return this.request('consumer', '/consumer/payment/token', 'POST', `/consumer/payment/token`, body, options);
|
|
6284
6294
|
}
|
|
6295
|
+
/**
|
|
6296
|
+
* DELETE /consumer/payment/token - Delete a saved payment token from the user profile
|
|
6297
|
+
*
|
|
6298
|
+
* @param body
|
|
6299
|
+
* @param options - additional request options
|
|
6300
|
+
*/
|
|
6301
|
+
delete_consumer_payment_token(body, options) {
|
|
6302
|
+
return this.request('consumer', '/consumer/payment/token', 'DELETE', `/consumer/payment/token`, body, options);
|
|
6303
|
+
}
|
|
6285
6304
|
/**
|
|
6286
6305
|
* GET /consumer/shoppingcart/{id} - Get a shopping cart by ID
|
|
6287
6306
|
*
|
|
@@ -8494,6 +8513,14 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
8494
8513
|
get_centric_pos_site(siteId, options) {
|
|
8495
8514
|
return this.request('centric-pos', '/centric-pos/v1/site/{siteId}', 'GET', `/centric-pos/v1/site/${siteId}`, null, options);
|
|
8496
8515
|
}
|
|
8516
|
+
/**
|
|
8517
|
+
* GET /centric-pos/v1/device/site - Get the calling device's site, location, merchant name and orderable stations
|
|
8518
|
+
*
|
|
8519
|
+
* @param options - additional request options
|
|
8520
|
+
*/
|
|
8521
|
+
get_centric_pos_device_site(options) {
|
|
8522
|
+
return this.request('centric-pos', '/centric-pos/v1/device/site', 'GET', `/centric-pos/v1/device/site`, null, options);
|
|
8523
|
+
}
|
|
8497
8524
|
/**
|
|
8498
8525
|
* POST /centric-pos/v1/auth - Authenticate with serial number and long-term token to get short-term token
|
|
8499
8526
|
*
|