"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/${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/${id}/line_items`, params, options, {
            methodType: 'list',
        });
    }
}
exports.TransactionResource = TransactionResource;
//# sourceMappingURL=Transactions.js.map