import * as z from "zod/v4-mini"; import { Result as SafeParseResult } from "../../types/fp.js"; import { CustomerOrderSortProperty } from "../components/customerordersortproperty.js"; import { ListResourceCustomerOrder } from "../components/listresourcecustomerorder.js"; import { ProductBillingType } from "../components/productbillingtype.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CustomerPortalOrdersListSecurity = { customerSession?: string | undefined; memberSession?: string | undefined; }; /** * Filter by product ID. */ export type CustomerPortalOrdersListQueryParamProductIDFilter = string | Array; /** * Filter by product billing type. `recurring` will filter data corresponding to subscriptions creations or renewals. `one_time` will filter data corresponding to one-time purchases. */ export type CustomerPortalOrdersListQueryParamProductBillingTypeFilter = ProductBillingType | Array; /** * Filter by subscription ID. */ export type CustomerPortalOrdersListQueryParamSubscriptionIDFilter = string | Array; export type CustomerPortalOrdersListRequest = { /** * Filter by product ID. */ productId?: string | Array | null | undefined; /** * Filter by product billing type. `recurring` will filter data corresponding to subscriptions creations or renewals. `one_time` will filter data corresponding to one-time purchases. */ productBillingType?: ProductBillingType | Array | null | undefined; /** * Filter by subscription ID. */ subscriptionId?: string | Array | null | undefined; /** * Search by product or organization name. */ 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 CustomerPortalOrdersListResponse = { result: ListResourceCustomerOrder; }; /** @internal */ export type CustomerPortalOrdersListSecurity$Outbound = { customer_session?: string | undefined; member_session?: string | undefined; }; /** @internal */ export declare const CustomerPortalOrdersListSecurity$outboundSchema: z.ZodMiniType; export declare function customerPortalOrdersListSecurityToJSON(customerPortalOrdersListSecurity: CustomerPortalOrdersListSecurity): string; /** @internal */ export type CustomerPortalOrdersListQueryParamProductIDFilter$Outbound = string | Array; /** @internal */ export declare const CustomerPortalOrdersListQueryParamProductIDFilter$outboundSchema: z.ZodMiniType; export declare function customerPortalOrdersListQueryParamProductIDFilterToJSON(customerPortalOrdersListQueryParamProductIDFilter: CustomerPortalOrdersListQueryParamProductIDFilter): string; /** @internal */ export type CustomerPortalOrdersListQueryParamProductBillingTypeFilter$Outbound = string | Array; /** @internal */ export declare const CustomerPortalOrdersListQueryParamProductBillingTypeFilter$outboundSchema: z.ZodMiniType; export declare function customerPortalOrdersListQueryParamProductBillingTypeFilterToJSON(customerPortalOrdersListQueryParamProductBillingTypeFilter: CustomerPortalOrdersListQueryParamProductBillingTypeFilter): string; /** @internal */ export type CustomerPortalOrdersListQueryParamSubscriptionIDFilter$Outbound = string | Array; /** @internal */ export declare const CustomerPortalOrdersListQueryParamSubscriptionIDFilter$outboundSchema: z.ZodMiniType; export declare function customerPortalOrdersListQueryParamSubscriptionIDFilterToJSON(customerPortalOrdersListQueryParamSubscriptionIDFilter: CustomerPortalOrdersListQueryParamSubscriptionIDFilter): string; /** @internal */ export type CustomerPortalOrdersListRequest$Outbound = { product_id?: string | Array | null | undefined; product_billing_type?: string | Array | null | undefined; subscription_id?: string | Array | null | undefined; query?: string | null | undefined; page: number; limit: number; sorting?: Array | null | undefined; }; /** @internal */ export declare const CustomerPortalOrdersListRequest$outboundSchema: z.ZodMiniType; export declare function customerPortalOrdersListRequestToJSON(customerPortalOrdersListRequest: CustomerPortalOrdersListRequest): string; /** @internal */ export declare const CustomerPortalOrdersListResponse$inboundSchema: z.ZodMiniType; export declare function customerPortalOrdersListResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=customerportalorderslist.d.ts.map