"use strict";
/***********************************************************************************************************************
* This file is auto-generated. If you have an issue, please create a GitHub issue.                                     *
***********************************************************************************************************************/
Object.defineProperty(exports, "__esModule", { value: true });
exports.ShippingZone = void 0;
const base_1 = require("../../base");
const types_1 = require("../../../lib/types");
const country_1 = require("./country");
const province_1 = require("./province");
class ShippingZone extends base_1.Base {
    static async all({ session, fields = null, ...otherArgs }) {
        const response = await this.baseFind({
            session: session,
            urlIds: {},
            params: { "fields": fields, ...otherArgs },
        });
        return response;
    }
}
exports.ShippingZone = ShippingZone;
ShippingZone.apiVersion = types_1.ApiVersion.January23;
ShippingZone.hasOne = {};
ShippingZone.hasMany = {
    "countries": country_1.Country,
    "provinces": province_1.Province
};
ShippingZone.paths = [
    { "http_method": "get", "operation": "get", "ids": [], "path": "shipping_zones.json" }
];
ShippingZone.resourceNames = [
    {
        "singular": "shipping_zone",
        "plural": "shipping_zones"
    }
];
//# sourceMappingURL=shipping_zone.js.map