import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { CartItem } from "./cartitem.js"; import { PaymentLinkStatus } from "./paymentlinkstatus.js"; import { ShippingDetails } from "./shippingdetails.js"; import { StatementDescriptor } from "./statementdescriptor.js"; import { TransactionBuyer } from "./transactionbuyer.js"; import { TransactionIntent } from "./transactionintent.js"; import { TransactionPaymentSource } from "./transactionpaymentsource.js"; export type PaymentLink = { /** * The unique identifier for the payment link. */ id: string; /** * Always `payment-link`. */ type: "payment-link"; /** * The URL for the payment link. */ url: string; /** * The expiration date and time for the payment link. */ expiresAt?: Date | null | undefined; /** * The merchant reference for the payment link. */ externalIdentifier?: string | null | undefined; /** * The statement descriptor for the payment link. */ statementDescriptor?: StatementDescriptor | null | undefined; /** * The locale for the payment link. */ locale?: string | null | undefined; /** * The merchant's display name. */ merchantName?: string | null | undefined; /** * The merchant's website URL. */ merchantUrl?: string | null | undefined; /** * The merchant's banner image URL. */ merchantBannerUrl?: string | null | undefined; /** * The merchant's brand color. */ merchantColor?: string | null | undefined; /** * A message from the merchant. */ merchantMessage?: string | null | undefined; /** * URL to the merchant's terms and conditions. */ merchantTermsAndConditionsUrl?: string | null | undefined; /** * URL to the merchant's favicon. */ merchantFaviconUrl?: string | null | undefined; /** * The amount for the payment link. */ amount: number; /** * The country code for the payment link. */ country: string; /** * The currency code for the payment link. */ currency: string; intent: TransactionIntent; /** * The return URL after payment completion. */ returnUrl?: string | null | undefined; /** * The cart items for the payment link. */ cartItems: Array | null; /** * Arbitrary metadata for the payment link. */ metadata?: { [k: string]: any; } | null | undefined; /** * The way payment method information made it to this transaction. */ paymentSource: TransactionPaymentSource; /** * The date and time the payment link was created. */ createdAt: Date; /** * The date and time the payment link was last updated. */ updatedAt: Date; status: PaymentLinkStatus; /** * The buyer associated with the payment link. */ buyer?: TransactionBuyer | null | undefined; /** * The shipping details for the payment link. */ shippingDetails?: ShippingDetails | null | undefined; /** * The connection options for the payment link. */ connectionOptions?: { [k: string]: { [k: string]: any; }; } | null | undefined; /** * Whether the payment method was stored. */ store: boolean; /** * The ID of the buyer to associate with the stored payment method. */ buyerId?: string | null | undefined; /** * The number of installments a buyer is required to make. */ installmentCount?: number | null | undefined; }; /** @internal */ export declare const PaymentLink$inboundSchema: z.ZodType; export declare function paymentLinkFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=paymentlink.d.ts.map