import * as Schema from "effect/Schema";
import { API } from "../client.js";
import * as T from "../traits.js";
// Input Schema
export const GetPaymentRecordsIdInput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    id: Schema.String.pipe(T.PathParam()),
    expand: Schema.optional(Schema.String),
}).pipe(T.Http({
    method: "GET",
    path: "/v1/payment_records/{id}",
    contentType: "form-urlencoded",
}));
// Output Schema
export const GetPaymentRecordsIdOutput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    amount: Schema.Struct({
        currency: Schema.String,
        value: Schema.Number,
    }),
    amount_authorized: Schema.Struct({
        currency: Schema.String,
        value: Schema.Number,
    }),
    amount_canceled: Schema.Struct({
        currency: Schema.String,
        value: Schema.Number,
    }),
    amount_failed: Schema.Struct({
        currency: Schema.String,
        value: Schema.Number,
    }),
    amount_guaranteed: Schema.Struct({
        currency: Schema.String,
        value: Schema.Number,
    }),
    amount_refunded: Schema.Struct({
        currency: Schema.String,
        value: Schema.Number,
    }),
    amount_requested: Schema.Struct({
        currency: Schema.String,
        value: Schema.Number,
    }),
    application: Schema.NullOr(Schema.String),
    created: Schema.Number,
    customer_details: Schema.Unknown,
    customer_presence: Schema.NullOr(Schema.Literals(["off_session", "on_session"])),
    description: Schema.NullOr(Schema.String),
    id: Schema.String,
    latest_payment_attempt_record: Schema.NullOr(Schema.String),
    livemode: Schema.Boolean,
    metadata: Schema.Record(Schema.String, Schema.String),
    object: Schema.Literals(["payment_record"]),
    payment_method_details: Schema.Unknown,
    processor_details: Schema.Struct({
        custom: Schema.optional(Schema.Struct({
            payment_reference: Schema.NullOr(Schema.String),
        })),
        type: Schema.Literals(["custom"]),
    }),
    reported_by: Schema.Literals(["self", "stripe"]),
    shipping_details: Schema.Unknown,
});
// The operation
/**
 * Retrieve a Payment Record
 *
 * <p>Retrieves a Payment Record with the given ID</p>
 *
 * @param expand - Specifies which fields in the response should be expanded.
 * @param id - The ID of the Payment Record.
 */
export const GetPaymentRecordsId = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    inputSchema: GetPaymentRecordsIdInput,
    outputSchema: GetPaymentRecordsIdOutput,
}));
//# sourceMappingURL=GetPaymentRecordsId.js.map