Initial project import
This commit is contained in:
64
node_modules/stripe/cjs/resources/PaymentRecords.js
generated
vendored
Normal file
64
node_modules/stripe/cjs/resources/PaymentRecords.js
generated
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
"use strict";
|
||||
// File generated from our OpenAPI spec
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.PaymentRecordResource = void 0;
|
||||
const StripeResource_js_1 = require("../StripeResource.js");
|
||||
class PaymentRecordResource extends StripeResource_js_1.StripeResource {
|
||||
/**
|
||||
* Retrieves a Payment Record with the given ID
|
||||
*/
|
||||
retrieve(id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/payment_records/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* Report a new payment attempt on the specified Payment Record. A new payment
|
||||
* attempt can only be specified if all other payment attempts are canceled or failed.
|
||||
*/
|
||||
reportPaymentAttempt(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/payment_records/${encodeURIComponent(id)}/report_payment_attempt`, params, options);
|
||||
}
|
||||
/**
|
||||
* Report that the most recent payment attempt on the specified Payment Record
|
||||
* was canceled.
|
||||
*/
|
||||
reportPaymentAttemptCanceled(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/payment_records/${encodeURIComponent(id)}/report_payment_attempt_canceled`, params, options);
|
||||
}
|
||||
/**
|
||||
* Report that the most recent payment attempt on the specified Payment Record
|
||||
* failed or errored.
|
||||
*/
|
||||
reportPaymentAttemptFailed(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/payment_records/${encodeURIComponent(id)}/report_payment_attempt_failed`, params, options);
|
||||
}
|
||||
/**
|
||||
* Report that the most recent payment attempt on the specified Payment Record
|
||||
* was guaranteed.
|
||||
*/
|
||||
reportPaymentAttemptGuaranteed(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/payment_records/${encodeURIComponent(id)}/report_payment_attempt_guaranteed`, params, options);
|
||||
}
|
||||
/**
|
||||
* Report informational updates on the specified Payment Record.
|
||||
*/
|
||||
reportPaymentAttemptInformational(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/payment_records/${encodeURIComponent(id)}/report_payment_attempt_informational`, params, options);
|
||||
}
|
||||
/**
|
||||
* Report that the most recent payment attempt on the specified Payment Record
|
||||
* was refunded.
|
||||
*/
|
||||
reportRefund(id, params, options) {
|
||||
return this._makeRequest('POST', `/v1/payment_records/${encodeURIComponent(id)}/report_refund`, params, options);
|
||||
}
|
||||
/**
|
||||
* Report a new Payment Record. You may report a Payment Record as it is
|
||||
* initialized and later report updates through the other report_* methods, or report Payment
|
||||
* Records in a terminal state directly, through this method.
|
||||
*/
|
||||
reportPayment(params, options) {
|
||||
return this._makeRequest('POST', '/v1/payment_records/report_payment', params, options);
|
||||
}
|
||||
}
|
||||
exports.PaymentRecordResource = PaymentRecordResource;
|
||||
//# sourceMappingURL=PaymentRecords.js.map
|
||||
Reference in New Issue
Block a user