import * as z from "zod/v4-mini"; import { Result as SafeParseResult } from "../../types/fp.js"; import { CheckoutSortProperty } from "../components/checkoutsortproperty.js"; import { CheckoutStatus } from "../components/checkoutstatus.js"; import { ListResourceCheckout } from "../components/listresourcecheckout.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Filter by organization ID. */ export type CheckoutsListQueryParamOrganizationIDFilter = string | Array; /** * Filter by product ID. */ export type CheckoutsListQueryParamProductIDFilter = string | Array; /** * Filter by customer ID. */ export type CheckoutsListQueryParamCustomerIDFilter = string | Array; /** * Filter by customer external ID. */ export type CheckoutsListQueryParamExternalCustomerIDFilter = string | Array; /** * Filter by checkout session status. */ export type QueryParamStatusFilter = CheckoutStatus | Array; export type CheckoutsListRequest = { /** * Filter by organization ID. */ organizationId?: string | Array | null | undefined; /** * Filter by product ID. */ productId?: string | Array | null | undefined; /** * Filter by customer ID. */ customerId?: string | Array | null | undefined; /** * Filter by customer external ID. */ externalCustomerId?: string | Array | null | undefined; /** * Filter by checkout session status. */ status?: CheckoutStatus | Array | null | undefined; /** * Filter by customer email. */ query?: string | null | undefined; /** * Page number, defaults to 1. */ page?: number | undefined; /** * Size of a page, defaults to 10. Maximum is 100. */ limit?: number | undefined; /** * Sorting criterion. Several criteria can be used simultaneously and will be applied in order. Add a minus sign `-` before the criteria name to sort by descending order. */ sorting?: Array | null | undefined; }; export type CheckoutsListResponse = { result: ListResourceCheckout; }; /** @internal */ export type CheckoutsListQueryParamOrganizationIDFilter$Outbound = string | Array; /** @internal */ export declare const CheckoutsListQueryParamOrganizationIDFilter$outboundSchema: z.ZodMiniType; export declare function checkoutsListQueryParamOrganizationIDFilterToJSON(checkoutsListQueryParamOrganizationIDFilter: CheckoutsListQueryParamOrganizationIDFilter): string; /** @internal */ export type CheckoutsListQueryParamProductIDFilter$Outbound = string | Array; /** @internal */ export declare const CheckoutsListQueryParamProductIDFilter$outboundSchema: z.ZodMiniType; export declare function checkoutsListQueryParamProductIDFilterToJSON(checkoutsListQueryParamProductIDFilter: CheckoutsListQueryParamProductIDFilter): string; /** @internal */ export type CheckoutsListQueryParamCustomerIDFilter$Outbound = string | Array; /** @internal */ export declare const CheckoutsListQueryParamCustomerIDFilter$outboundSchema: z.ZodMiniType; export declare function checkoutsListQueryParamCustomerIDFilterToJSON(checkoutsListQueryParamCustomerIDFilter: CheckoutsListQueryParamCustomerIDFilter): string; /** @internal */ export type CheckoutsListQueryParamExternalCustomerIDFilter$Outbound = string | Array; /** @internal */ export declare const CheckoutsListQueryParamExternalCustomerIDFilter$outboundSchema: z.ZodMiniType; export declare function checkoutsListQueryParamExternalCustomerIDFilterToJSON(checkoutsListQueryParamExternalCustomerIDFilter: CheckoutsListQueryParamExternalCustomerIDFilter): string; /** @internal */ export type QueryParamStatusFilter$Outbound = string | Array; /** @internal */ export declare const QueryParamStatusFilter$outboundSchema: z.ZodMiniType; export declare function queryParamStatusFilterToJSON(queryParamStatusFilter: QueryParamStatusFilter): string; /** @internal */ export type CheckoutsListRequest$Outbound = { organization_id?: string | Array | null | undefined; product_id?: string | Array | null | undefined; customer_id?: string | Array | null | undefined; external_customer_id?: string | Array | null | undefined; status?: string | Array | null | undefined; query?: string | null | undefined; page: number; limit: number; sorting?: Array | null | undefined; }; /** @internal */ export declare const CheckoutsListRequest$outboundSchema: z.ZodMiniType; export declare function checkoutsListRequestToJSON(checkoutsListRequest: CheckoutsListRequest): string; /** @internal */ export declare const CheckoutsListResponse$inboundSchema: z.ZodMiniType; export declare function checkoutsListResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=checkoutslist.d.ts.map