Initial project import
This commit is contained in:
35
node_modules/stripe/cjs/resources/Tax/Transactions.js
generated
vendored
Normal file
35
node_modules/stripe/cjs/resources/Tax/Transactions.js
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
"use strict";
|
||||
// File generated from our OpenAPI spec
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.TransactionResource = void 0;
|
||||
const StripeResource_js_1 = require("../../StripeResource.js");
|
||||
class TransactionResource extends StripeResource_js_1.StripeResource {
|
||||
/**
|
||||
* Retrieves a Tax Transaction object.
|
||||
*/
|
||||
retrieve(id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/tax/transactions/${encodeURIComponent(id)}`, params, options);
|
||||
}
|
||||
/**
|
||||
* Creates a Tax Transaction from a calculation, if that calculation hasn't expired. Calculations expire after 90 days.
|
||||
*/
|
||||
createFromCalculation(params, options) {
|
||||
return this._makeRequest('POST', '/v1/tax/transactions/create_from_calculation', params, options);
|
||||
}
|
||||
/**
|
||||
* Partially or fully reverses a previously created Transaction.
|
||||
*/
|
||||
createReversal(params, options) {
|
||||
return this._makeRequest('POST', '/v1/tax/transactions/create_reversal', params, options);
|
||||
}
|
||||
/**
|
||||
* Retrieves the line items of a committed standalone transaction as a collection.
|
||||
*/
|
||||
listLineItems(id, params, options) {
|
||||
return this._makeRequest('GET', `/v1/tax/transactions/${encodeURIComponent(id)}/line_items`, params, options, {
|
||||
methodType: 'list',
|
||||
});
|
||||
}
|
||||
}
|
||||
exports.TransactionResource = TransactionResource;
|
||||
//# sourceMappingURL=Transactions.js.map
|
||||
Reference in New Issue
Block a user