import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type ListPaymentLinksGlobals = { merchantAccountId?: string | undefined; }; export type ListPaymentLinksRequest = { /** * A pointer to the page of results to return. */ cursor?: string | null | undefined; /** * The maximum number of items that are returned. */ limit?: number | undefined; /** * Filters the results to only payment links created before this ISO date-time string. The time zone must be included. Ensure that the date-time string is URL encoded, e.g. `2022-01-01T12:00:00+08:00` must be encoded as `2022-01-01T12%3A00%3A00%2B08%3A00`. */ createdAtLte?: Date | null | undefined; /** * Filters the results to only payment links created after this ISO date-time string. The time zone must be included. Ensure that the date-time string is URL encoded, e.g. `2022-01-01T12:00:00+08:00` must be encoded as `2022-01-01T12%3A00%3A00%2B08%3A00`. */ createdAtGte?: Date | null | undefined; /** * Filters the results to only payment links updated before this ISO date-time string. The time zone must be included. Ensure that the date-time string is URL encoded, e.g. `2022-01-01T12:00:00+08:00` must be encoded as `2022-01-01T12%3A00%3A00%2B08%3A00`. */ updatedAtLte?: Date | null | undefined; /** * Filters the results to only payment links updated after this ISO date-time string. The time zone must be included. Ensure that the date-time string is URL encoded, e.g. `2022-01-01T12:00:00+08:00` must be encoded as `2022-01-01T12%3A00%3A00%2B08%3A00`. */ updatedAtGte?: Date | null | undefined; /** * Filters for payment links that have matching `currency` values. The `currency` values provided must be formatted as 3-letter ISO currency codes. */ currency?: Array | null | undefined; /** * Filters for payment links that have an `amount` equal to this value. */ amountEq?: number | null | undefined; /** * Filters for payment links that have an `amount` greater than or equal to this value. */ amountGte?: number | null | undefined; /** * Filters for payment links that have an `amount` less than or equal to this value. */ amountLte?: number | null | undefined; /** * Filters the results to only the payment links that have a `status` that matches with any of the provided status values. */ status?: Array | null | undefined; /** * Filters the results to only get the items for which some of the buyer data contains exactly the provided `buyer_search` values. */ buyerSearch?: Array | null | undefined; /** * The ID of the merchant account to use for this request. */ merchantAccountId?: string | null | undefined; }; export type ListPaymentLinksResponse = { result: components.PaymentLinks; }; /** @internal */ export type ListPaymentLinksRequest$Outbound = { cursor?: string | null | undefined; limit: number; created_at_lte?: string | null | undefined; created_at_gte?: string | null | undefined; updated_at_lte?: string | null | undefined; updated_at_gte?: string | null | undefined; currency?: Array | null | undefined; amount_eq?: number | null | undefined; amount_gte?: number | null | undefined; amount_lte?: number | null | undefined; status?: Array | null | undefined; buyer_search?: Array | null | undefined; merchantAccountId?: string | null | undefined; }; /** @internal */ export declare const ListPaymentLinksRequest$outboundSchema: z.ZodType; export declare function listPaymentLinksRequestToJSON(listPaymentLinksRequest: ListPaymentLinksRequest): string; /** @internal */ export declare const ListPaymentLinksResponse$inboundSchema: z.ZodType; export declare function listPaymentLinksResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=listpaymentlinks.d.ts.map