import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { EcommerceDiscount, EcommerceDiscount$Outbound } from "./ecommercediscount.js"; export type Options = { /** * A unique identifier for the option. */ id?: string | null | undefined; /** * The name of the option. */ name?: string | null | undefined; /** * The value of the option. */ value?: string | null | undefined; }; /** * A single line item of an ecommerce order, representing a product or variant with associated options, quantity, and pricing information. */ export type EcommerceOrderLineItem = { /** * A unique identifier for an object. */ id?: string | null | undefined; /** * A unique identifier for the product associated with the line item. */ productId?: string | null | undefined; /** * A unique identifier for the variant of the product associated with the line item, if applicable. */ variantId?: string | null | undefined; /** * The SKU of the product or variant associated with the line item. */ sku?: string | null | undefined; /** * The name of the product or variant associated with the line item. */ name: string | null; /** * The description of the product or variant associated with the line item. */ description?: string | null | undefined; options?: Array | undefined; /** * The quantity of the product or variant associated with the line item. */ quantity: string | null; /** * The unit price of the product or variant associated with the line item. */ unitPrice?: string | null | undefined; /** * The tax rate applied to the product or variant associated with the line item. */ taxRate?: string | null | undefined; /** * The total tax amount applied to the product or variant associated with the line item. */ taxAmount?: string | null | undefined; /** * Whether the line item has been refunded. */ isRefunded?: boolean | null | undefined; /** * The amount of the line item that has been refunded. */ refundedAmount?: string | null | undefined; /** * The quantity of the line item that has been refunded. */ refundedQuantity?: string | null | undefined; /** * The sub total for the product(s) or variant associated with the line item, excluding taxes and discounts. */ subTotal?: string | null | undefined; /** * The total amount for the product(s) or variant associated with the line item, including taxes and discounts. */ totalAmount: string | null; discounts?: Array | undefined; }; /** @internal */ export declare const Options$inboundSchema: z.ZodType; /** @internal */ export type Options$Outbound = { id?: string | null | undefined; name?: string | null | undefined; value?: string | null | undefined; }; /** @internal */ export declare const Options$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Options$ { /** @deprecated use `Options$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Options$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Options$Outbound` instead. */ type Outbound = Options$Outbound; } export declare function optionsToJSON(options: Options): string; export declare function optionsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const EcommerceOrderLineItem$inboundSchema: z.ZodType; /** @internal */ export type EcommerceOrderLineItem$Outbound = { id?: string | null | undefined; product_id?: string | null | undefined; variant_id?: string | null | undefined; sku?: string | null | undefined; name: string | null; description?: string | null | undefined; options?: Array | undefined; quantity: string | null; unit_price?: string | null | undefined; tax_rate?: string | null | undefined; tax_amount?: string | null | undefined; is_refunded?: boolean | null | undefined; refunded_amount?: string | null | undefined; refunded_quantity?: string | null | undefined; sub_total?: string | null | undefined; total_amount: string | null; discounts?: Array | undefined; }; /** @internal */ export declare const EcommerceOrderLineItem$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace EcommerceOrderLineItem$ { /** @deprecated use `EcommerceOrderLineItem$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `EcommerceOrderLineItem$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `EcommerceOrderLineItem$Outbound` instead. */ type Outbound = EcommerceOrderLineItem$Outbound; } export declare function ecommerceOrderLineItemToJSON(ecommerceOrderLineItem: EcommerceOrderLineItem): string; export declare function ecommerceOrderLineItemFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=ecommerceorderlineitem.d.ts.map