import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ProductType } from "./producttype.js"; export type CartItem = { /** * The name of the cart item. The value you set for this property may be truncated if the maximum length accepted by a payment service provider is less than 255 characters. */ name: string; /** * The quantity of this item in the cart. This value cannot be negative or zero. */ quantity: number; /** * The amount for an individual item represented as a monetary amount in the smallest currency unit for the given currency, for example `1299` USD cents represents `$12.99`. The amount sent through to the payment processor as unitary amount will be calculated to include the discount and tax values sent as part of this cart item. */ unitAmount: number; /** * The amount discounted for this item represented as a monetary amount in the smallest currency unit for the given currency, for example `1299` USD cents represents `$12.99`. */ discountAmount?: number | null | undefined; /** * The tax amount for this item represented as a monetary amount in the smallest currency unit for the given currency, for example `1299` USD cents represents `$12.99`. */ taxAmount?: number | null | undefined; /** * An external identifier for the cart item. This can be set to any value and is not sent to the payment service. */ externalIdentifier?: string | null | undefined; /** * The SKU or product code for the item. */ sku?: string | null | undefined; /** * The UPC for the item. */ upc?: string | null | undefined; /** * The product URL for the item. */ productUrl?: string | null | undefined; /** * The URL for the image of the item. */ imageUrl?: string | null | undefined; /** * A list of strings containing product categories for the item. */ categories?: Array | null | undefined; /** * A list of strings containing product subcategories for the item. */ subcategories?: Array | null | undefined; /** * The brand of the item. */ brand?: string | null | undefined; /** * The product type of the cart item. */ productType?: ProductType | null | undefined; /** * The seller country of the cart item. */ sellerCountry?: string | null | undefined; /** * Whether the item is exempt of tax. */ taxExempt?: boolean | null | undefined; /** * The unit of measure or the unit of measure code. */ unitOfMeasure?: string | null | undefined; /** * Item commodity code. Generally a UNSPSC code. */ commodityCode?: string | null | undefined; /** * Brief item description. */ description?: string | null | undefined; /** * Item import or export duties represented as a monetary amount in the smallest currency unit for the given currency, for example `1299` cents to create an authorization for `$12.99` */ dutyAmount?: number | null | undefined; /** * Freight/shipping amount represented as a monetary amount in the smallest currency unit for the given currency, for example `1299` cents to create an authorization for `$12.99` */ shippingAmount?: number | null | undefined; }; /** @internal */ export declare const CartItem$inboundSchema: z.ZodType; /** @internal */ export type CartItem$Outbound = { name: string; quantity: number; unit_amount: number; discount_amount?: number | null | undefined; tax_amount?: number | null | undefined; external_identifier?: string | null | undefined; sku?: string | null | undefined; upc?: string | null | undefined; product_url?: string | null | undefined; image_url?: string | null | undefined; categories?: Array | null | undefined; subcategories?: Array | null | undefined; brand?: string | null | undefined; product_type?: string | null | undefined; seller_country?: string | null | undefined; tax_exempt?: boolean | null | undefined; unit_of_measure?: string | null | undefined; commodity_code?: string | null | undefined; description?: string | null | undefined; duty_amount?: number | null | undefined; shipping_amount?: number | null | undefined; }; /** @internal */ export declare const CartItem$outboundSchema: z.ZodType; export declare function cartItemToJSON(cartItem: CartItem): string; export declare function cartItemFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=cartitem.d.ts.map