"use strict";
/***********************************************************************************************************************
* This file is auto-generated. If you have an issue, please create a GitHub issue.                                     *
***********************************************************************************************************************/
Object.defineProperty(exports, "__esModule", { value: true });
exports.Payout = void 0;
const base_1 = require("../../base");
const types_1 = require("../../../lib/types");
class Payout extends base_1.Base {
    static async find({ session, id }) {
        const result = await this.baseFind({
            session: session,
            urlIds: { "id": id },
            params: {},
        });
        return result.data ? result.data[0] : null;
    }
    static async all({ session, since_id = null, last_id = null, date_min = null, date_max = null, date = null, status = null, ...otherArgs }) {
        const response = await this.baseFind({
            session: session,
            urlIds: {},
            params: { "since_id": since_id, "last_id": last_id, "date_min": date_min, "date_max": date_max, "date": date, "status": status, ...otherArgs },
        });
        return response;
    }
}
exports.Payout = Payout;
Payout.apiVersion = types_1.ApiVersion.October23;
Payout.hasOne = {};
Payout.hasMany = {};
Payout.paths = [
    { "http_method": "get", "operation": "get", "ids": [], "path": "shopify_payments/payouts.json" },
    { "http_method": "get", "operation": "get", "ids": ["id"], "path": "shopify_payments/payouts/<id>.json" }
];
Payout.resourceNames = [
    {
        "singular": "payout",
        "plural": "payouts"
    }
];
//# sourceMappingURL=payout.js.map