import * as Schema from "effect/Schema";
import { API } from "../client.js";
import * as T from "../traits.js";
// Input Schema
export const PostTestHelpersTreasuryOutboundPaymentsIdInput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    id: Schema.String.pipe(T.PathParam()),
    expand: Schema.optional(Schema.Array(Schema.String)),
    tracking_details: Schema.Struct({
        ach: Schema.optional(Schema.Struct({
            trace_id: Schema.String,
        })),
        type: Schema.Literals(["ach", "us_domestic_wire"]),
        us_domestic_wire: Schema.optional(Schema.Struct({
            chips: Schema.optional(Schema.String),
            imad: Schema.optional(Schema.String),
            omad: Schema.optional(Schema.String),
        })),
    }),
}).pipe(T.Http({
    method: "POST",
    path: "/v1/test_helpers/treasury/outbound_payments/{id}",
    contentType: "form-urlencoded",
}));
// Output Schema
export const PostTestHelpersTreasuryOutboundPaymentsIdOutput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    amount: Schema.Number,
    cancelable: Schema.Boolean,
    created: Schema.Number,
    currency: Schema.String,
    customer: Schema.NullOr(Schema.String),
    description: Schema.NullOr(Schema.String),
    destination_payment_method: Schema.NullOr(Schema.String),
    destination_payment_method_details: Schema.Unknown,
    end_user_details: Schema.Unknown,
    expected_arrival_date: Schema.Number,
    financial_account: Schema.String,
    hosted_regulatory_receipt_url: Schema.NullOr(Schema.String),
    id: Schema.String,
    livemode: Schema.Boolean,
    metadata: Schema.Record(Schema.String, Schema.String),
    object: Schema.Literals(["treasury.outbound_payment"]),
    returned_details: Schema.Unknown,
    statement_descriptor: Schema.String,
    status: Schema.Literals([
        "canceled",
        "failed",
        "posted",
        "processing",
        "returned",
    ]),
    status_transitions: Schema.Struct({
        canceled_at: Schema.NullOr(Schema.Number),
        failed_at: Schema.NullOr(Schema.Number),
        posted_at: Schema.NullOr(Schema.Number),
        returned_at: Schema.NullOr(Schema.Number),
    }),
    tracking_details: Schema.Unknown,
    transaction: Schema.Unknown,
});
// The operation
/**
 * Test mode: Update an OutboundPayment
 *
 * <p>Updates a test mode created OutboundPayment with tracking details. The OutboundPayment must not be cancelable, and cannot be in the <code>canceled</code> or <code>failed</code> states.</p>
 */
export const PostTestHelpersTreasuryOutboundPaymentsId = 
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    inputSchema: PostTestHelpersTreasuryOutboundPaymentsIdInput,
    outputSchema: PostTestHelpersTreasuryOutboundPaymentsIdOutput,
}));
//# sourceMappingURL=PostTestHelpersTreasuryOutboundPaymentsId.js.map