import * as Schema from "effect/Schema";
import { API } from "../client.js";
import * as T from "../traits.js";
// Input Schema
export const PostTaxRatesInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    active: Schema.optional(Schema.Boolean),
    country: Schema.optional(Schema.String),
    description: Schema.optional(Schema.String),
    display_name: Schema.String,
    expand: Schema.optional(Schema.Array(Schema.String)),
    inclusive: Schema.Boolean,
    jurisdiction: Schema.optional(Schema.String),
    metadata: Schema.optional(Schema.Record(Schema.String, Schema.String)),
    percentage: Schema.Number,
    state: Schema.optional(Schema.String),
    tax_type: Schema.optional(Schema.Literals([
        "amusement_tax",
        "communications_tax",
        "gst",
        "hst",
        "igst",
        "jct",
        "lease_tax",
        "pst",
        "qst",
        "retail_delivery_fee",
        "rst",
        "sales_tax",
        "service_tax",
        "vat",
    ])),
}).pipe(T.Http({
    method: "POST",
    path: "/v1/tax_rates",
    contentType: "form-urlencoded",
}));
// Output Schema
export const PostTaxRatesOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    active: Schema.Boolean,
    country: Schema.NullOr(Schema.String),
    created: Schema.Number,
    description: Schema.NullOr(Schema.String),
    display_name: Schema.String,
    effective_percentage: Schema.NullOr(Schema.Number),
    flat_amount: Schema.Unknown,
    id: Schema.String,
    inclusive: Schema.Boolean,
    jurisdiction: Schema.NullOr(Schema.String),
    jurisdiction_level: Schema.NullOr(Schema.Literals([
        "city",
        "country",
        "county",
        "district",
        "multiple",
        "state",
    ])),
    livemode: Schema.Boolean,
    metadata: Schema.NullOr(Schema.Record(Schema.String, Schema.String)),
    object: Schema.Literals(["tax_rate"]),
    percentage: Schema.Number,
    rate_type: Schema.NullOr(Schema.Literals(["flat_amount", "percentage"])),
    state: Schema.NullOr(Schema.String),
    tax_type: Schema.NullOr(Schema.Literals([
        "amusement_tax",
        "communications_tax",
        "gst",
        "hst",
        "igst",
        "jct",
        "lease_tax",
        "pst",
        "qst",
        "retail_delivery_fee",
        "rst",
        "sales_tax",
        "service_tax",
        "vat",
    ])),
});
// The operation
/**
 * Create a tax rate
 *
 * <p>Creates a new tax rate.</p>
 */
export const PostTaxRates = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    inputSchema: PostTaxRatesInput,
    outputSchema: PostTaxRatesOutput,
}));
//# sourceMappingURL=PostTaxRates.js.map