Initial project import
This commit is contained in:
27
node_modules/stripe/cjs/resources/TestHelpers/Terminal/Readers.js
generated
vendored
Normal file
27
node_modules/stripe/cjs/resources/TestHelpers/Terminal/Readers.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
"use strict";
|
||||
// File generated from our OpenAPI spec
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ReaderResource = void 0;
|
||||
const StripeResource_js_1 = require("../../../StripeResource.js");
|
||||
class ReaderResource extends StripeResource_js_1.StripeResource {
|
||||
/**
|
||||
* Presents a payment method on a simulated reader. Can be used to simulate accepting a payment, saving a card or refunding a transaction.
|
||||
*/
|
||||
presentPaymentMethod(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/test_helpers/terminal/readers/${encodeURIComponent(id)}/present_payment_method`, params, options);
|
||||
}
|
||||
/**
|
||||
* Use this endpoint to trigger a successful input collection on a simulated reader.
|
||||
*/
|
||||
succeedInputCollection(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/test_helpers/terminal/readers/${encodeURIComponent(id)}/succeed_input_collection`, params, options);
|
||||
}
|
||||
/**
|
||||
* Use this endpoint to complete an input collection with a timeout error on a simulated reader.
|
||||
*/
|
||||
timeoutInputCollection(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/test_helpers/terminal/readers/${encodeURIComponent(id)}/timeout_input_collection`, params, options);
|
||||
}
|
||||
}
|
||||
exports.ReaderResource = ReaderResource;
|
||||
//# sourceMappingURL=Readers.js.map
|
||||
Reference in New Issue
Block a user