import * as z from "zod/v4-mini"; import { Result as SafeParseResult } from "../../types/fp.js"; import { ListResourceOrder } from "../components/listresourceorder.js"; import { OrderSortProperty } from "../components/ordersortproperty.js"; import { ProductBillingType } from "../components/productbillingtype.js"; import { MetadataQuery, MetadataQuery$Outbound } from "../components/subscriptionslist.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * Filter by organization ID. */ export type OrdersListQueryParamOrganizationIDFilter = string | Array; /** * Filter by product ID. */ export type OrdersListQueryParamProductIDFilter = 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 ProductBillingTypeFilter = ProductBillingType | Array; /** * Filter by discount ID. */ export type QueryParamDiscountIDFilter = string | Array; /** * Filter by customer ID. */ export type OrdersListQueryParamCustomerIDFilter = string | Array; /** * Filter by customer external ID. */ export type OrdersListQueryParamExternalCustomerIDFilter = string | Array; /** * Filter by checkout ID. */ export type CheckoutIDFilter = string | Array; /** * Filter by subscription ID. */ export type SubscriptionIDFilter = string | Array; export type OrdersListRequest = { /** * Filter by organization ID. */ organizationId?: string | Array | null | undefined; /** * 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 discount ID. */ discountId?: 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 ID. */ checkoutId?: string | Array | null | undefined; /** * Filter by subscription ID. */ subscriptionId?: string | Array | 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; /** * Filter by metadata key-value pairs. It uses the `deepObject` style, e.g. `?metadata[key]=value`. */ metadata?: { [k: string]: MetadataQuery; } | null | undefined; }; export type OrdersListResponse = { result: ListResourceOrder; }; /** @internal */ export type OrdersListQueryParamOrganizationIDFilter$Outbound = string | Array; /** @internal */ export declare const OrdersListQueryParamOrganizationIDFilter$outboundSchema: z.ZodMiniType; export declare function ordersListQueryParamOrganizationIDFilterToJSON(ordersListQueryParamOrganizationIDFilter: OrdersListQueryParamOrganizationIDFilter): string; /** @internal */ export type OrdersListQueryParamProductIDFilter$Outbound = string | Array; /** @internal */ export declare const OrdersListQueryParamProductIDFilter$outboundSchema: z.ZodMiniType; export declare function ordersListQueryParamProductIDFilterToJSON(ordersListQueryParamProductIDFilter: OrdersListQueryParamProductIDFilter): string; /** @internal */ export type ProductBillingTypeFilter$Outbound = string | Array; /** @internal */ export declare const ProductBillingTypeFilter$outboundSchema: z.ZodMiniType; export declare function productBillingTypeFilterToJSON(productBillingTypeFilter: ProductBillingTypeFilter): string; /** @internal */ export type QueryParamDiscountIDFilter$Outbound = string | Array; /** @internal */ export declare const QueryParamDiscountIDFilter$outboundSchema: z.ZodMiniType; export declare function queryParamDiscountIDFilterToJSON(queryParamDiscountIDFilter: QueryParamDiscountIDFilter): string; /** @internal */ export type OrdersListQueryParamCustomerIDFilter$Outbound = string | Array; /** @internal */ export declare const OrdersListQueryParamCustomerIDFilter$outboundSchema: z.ZodMiniType; export declare function ordersListQueryParamCustomerIDFilterToJSON(ordersListQueryParamCustomerIDFilter: OrdersListQueryParamCustomerIDFilter): string; /** @internal */ export type OrdersListQueryParamExternalCustomerIDFilter$Outbound = string | Array; /** @internal */ export declare const OrdersListQueryParamExternalCustomerIDFilter$outboundSchema: z.ZodMiniType; export declare function ordersListQueryParamExternalCustomerIDFilterToJSON(ordersListQueryParamExternalCustomerIDFilter: OrdersListQueryParamExternalCustomerIDFilter): string; /** @internal */ export type CheckoutIDFilter$Outbound = string | Array; /** @internal */ export declare const CheckoutIDFilter$outboundSchema: z.ZodMiniType; export declare function checkoutIDFilterToJSON(checkoutIDFilter: CheckoutIDFilter): string; /** @internal */ export type SubscriptionIDFilter$Outbound = string | Array; /** @internal */ export declare const SubscriptionIDFilter$outboundSchema: z.ZodMiniType; export declare function subscriptionIDFilterToJSON(subscriptionIDFilter: SubscriptionIDFilter): string; /** @internal */ export type OrdersListRequest$Outbound = { organization_id?: string | Array | null | undefined; product_id?: string | Array | null | undefined; product_billing_type?: string | Array | null | undefined; discount_id?: string | Array | null | undefined; customer_id?: string | Array | null | undefined; external_customer_id?: string | Array | null | undefined; checkout_id?: string | Array | null | undefined; subscription_id?: string | Array | null | undefined; page: number; limit: number; sorting?: Array | null | undefined; metadata?: { [k: string]: MetadataQuery$Outbound; } | null | undefined; }; /** @internal */ export declare const OrdersListRequest$outboundSchema: z.ZodMiniType; export declare function ordersListRequestToJSON(ordersListRequest: OrdersListRequest): string; /** @internal */ export declare const OrdersListResponse$inboundSchema: z.ZodMiniType; export declare function ordersListResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=orderslist.d.ts.map