import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Amount, Amount$Outbound } from "./amount.js"; import { CreateTransferDestination, CreateTransferDestination$Outbound } from "./createtransferdestination.js"; import { CreateTransferLineItems, CreateTransferLineItems$Outbound } from "./createtransferlineitems.js"; import { CreateTransferSource, CreateTransferSource$Outbound } from "./createtransfersource.js"; import { FacilitatorFee, FacilitatorFee$Outbound } from "./facilitatorfee.js"; export type CreateTransfer = { /** * Where funds for a transfer originate. For the source, you must include either a `paymentMethodID` or a `transferID`. */ source: CreateTransferSource; /** * The final stage of a transfer and the ultimate recipient of the funds. */ destination: CreateTransferDestination; amount: Amount; /** * Total or markup fee. */ facilitatorFee?: FacilitatorFee | undefined; /** * An optional description of the transfer that is used on receipts and for your own internal use. */ description?: string | undefined; /** * Free-form key-value pair list. Useful for storing information that is not captured elsewhere. */ metadata?: { [k: string]: string; } | undefined; /** * Optional sales tax amount. `transfer.amount.value` should be inclusive of any sales tax and represents the total amount charged. */ salesTaxAmount?: Amount | undefined; /** * Optional alias from a foreign/external system which can be used to reference this resource. */ foreignID?: string | undefined; /** * An optional collection of line items for a transfer. * * @remarks * When line items are provided, their total plus sales tax must equal the transfer amount. */ lineItems?: CreateTransferLineItems | undefined; }; /** @internal */ export declare const CreateTransfer$inboundSchema: z.ZodType; /** @internal */ export type CreateTransfer$Outbound = { source: CreateTransferSource$Outbound; destination: CreateTransferDestination$Outbound; amount: Amount$Outbound; facilitatorFee?: FacilitatorFee$Outbound | undefined; description?: string | undefined; metadata?: { [k: string]: string; } | undefined; salesTaxAmount?: Amount$Outbound | undefined; foreignID?: string | undefined; lineItems?: CreateTransferLineItems$Outbound | undefined; }; /** @internal */ export declare const CreateTransfer$outboundSchema: z.ZodType; export declare function createTransferToJSON(createTransfer: CreateTransfer): string; export declare function createTransferFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=createtransfer.d.ts.map