"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.Accounting = void 0;
const accountingBatchCreateCompanyJournals_js_1 = require("../funcs/accountingBatchCreateCompanyJournals.js");
const accountingCreateCompanyJournal_js_1 = require("../funcs/accountingCreateCompanyJournal.js");
const accountingGetCompany_js_1 = require("../funcs/accountingGetCompany.js");
const accountingGetCompanyAccount_js_1 = require("../funcs/accountingGetCompanyAccount.js");
const accountingGetCompanyJournal_js_1 = require("../funcs/accountingGetCompanyJournal.js");
const accountingGetCompanyTaxRate_js_1 = require("../funcs/accountingGetCompanyTaxRate.js");
const accountingListCompanies_js_1 = require("../funcs/accountingListCompanies.js");
const accountingListCompanyAccounts_js_1 = require("../funcs/accountingListCompanyAccounts.js");
const accountingListCompanyJournals_js_1 = require("../funcs/accountingListCompanyJournals.js");
const accountingListCompanyTaxRates_js_1 = require("../funcs/accountingListCompanyTaxRates.js");
const sdks_js_1 = require("../lib/sdks.js");
const operations_js_1 = require("../sdk/types/operations.js");
const fp_js_1 = require("./types/fp.js");
class Accounting extends sdks_js_1.ClientSDK {
    /**
     * Batch Create Journals
     */
    async batchCreateCompanyJournals(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, accountingBatchCreateCompanyJournals_js_1.accountingBatchCreateCompanyJournals)(this, request, options));
    }
    /**
     * Create Journal
     */
    async createCompanyJournal(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, accountingCreateCompanyJournal_js_1.accountingCreateCompanyJournal)(this, request, options));
    }
    /**
     * Get Company
     */
    async getCompany(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, accountingGetCompany_js_1.accountingGetCompany)(this, request, options));
    }
    /**
     * Get Account
     */
    async getCompanyAccount(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, accountingGetCompanyAccount_js_1.accountingGetCompanyAccount)(this, request, options));
    }
    /**
     * Get Journal
     */
    async getCompanyJournal(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, accountingGetCompanyJournal_js_1.accountingGetCompanyJournal)(this, request, options));
    }
    /**
     * Get Tax Rate
     */
    async getCompanyTaxRate(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, accountingGetCompanyTaxRate_js_1.accountingGetCompanyTaxRate)(this, request, options));
    }
    /**
     * List Companies
     */
    async listCompanies(request, options) {
        return (0, operations_js_1.unwrapResultIterator)((0, accountingListCompanies_js_1.accountingListCompanies)(this, request, options));
    }
    /**
     * List Accounts
     */
    async listCompanyAccounts(request, options) {
        return (0, operations_js_1.unwrapResultIterator)((0, accountingListCompanyAccounts_js_1.accountingListCompanyAccounts)(this, request, options));
    }
    /**
     * List Journals
     */
    async listCompanyJournals(request, options) {
        return (0, operations_js_1.unwrapResultIterator)((0, accountingListCompanyJournals_js_1.accountingListCompanyJournals)(this, request, options));
    }
    /**
     * List Tax Rates
     */
    async listCompanyTaxRates(request, options) {
        return (0, operations_js_1.unwrapResultIterator)((0, accountingListCompanyTaxRates_js_1.accountingListCompanyTaxRates)(this, request, options));
    }
}
exports.Accounting = Accounting;
//# sourceMappingURL=accounting.js.map