import * as z from "zod"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Currency } from "./currency.js"; import { CustomMappings, CustomMappings$Outbound } from "./custommappings.js"; import { EcommerceAddress, EcommerceAddress$Outbound } from "./ecommerceaddress.js"; import { EcommerceDiscount, EcommerceDiscount$Outbound } from "./ecommercediscount.js"; import { EcommerceOrderLineItem, EcommerceOrderLineItem$Outbound } from "./ecommerceorderlineitem.js"; import { EcommerceOrderStatus } from "./ecommerceorderstatus.js"; import { LinkedEcommerceCustomer, LinkedEcommerceCustomer$Outbound } from "./linkedecommercecustomer.js"; import { TrackingItem, TrackingItem$Outbound } from "./trackingitem.js"; /** * Current payment status of the order. */ export declare const EcommerceOrderPaymentStatus: { readonly Pending: "pending"; readonly Authorized: "authorized"; readonly Paid: "paid"; readonly Partial: "partial"; readonly Refunded: "refunded"; readonly Voided: "voided"; readonly Unknown: "unknown"; }; /** * Current payment status of the order. */ export type EcommerceOrderPaymentStatus = ClosedEnum; /** * Current fulfillment status of the order. */ export declare const FulfillmentStatus: { readonly Pending: "pending"; readonly Shipped: "shipped"; readonly Partial: "partial"; readonly Delivered: "delivered"; readonly Cancelled: "cancelled"; readonly Returned: "returned"; readonly Unknown: "unknown"; }; /** * Current fulfillment status of the order. */ export type FulfillmentStatus = ClosedEnum; export type EcommerceOrder = { /** * A unique identifier for an object. */ id: string; /** * Order number, if any. */ orderNumber?: string | null | undefined; /** * Indicates the associated currency for an amount of money. Values correspond to [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217). */ currency?: Currency | null | undefined; discounts?: Array | undefined; /** * Sub-total amount, normally before tax. */ subTotal?: string | null | undefined; /** * Shipping cost, if any. */ shippingCost?: string | null | undefined; /** * Coupon discount, if any. */ couponDiscount?: string | null | undefined; /** * Total discount, if any. */ totalDiscount?: string | null | undefined; /** * Total tax, if any. */ totalTax?: string | null | undefined; /** * Total amount due. */ totalAmount?: string | null | undefined; /** * Refunded amount, if any. */ refundedAmount?: string | null | undefined; /** * Current status of the order. */ status?: EcommerceOrderStatus | null | undefined; /** * Current payment status of the order. */ paymentStatus?: EcommerceOrderPaymentStatus | null | undefined; /** * Current fulfillment status of the order. */ fulfillmentStatus?: FulfillmentStatus | null | undefined; /** * Payment method used for this order. */ paymentMethod?: string | null | undefined; /** * The customer this entity is linked to. */ customer?: LinkedEcommerceCustomer | undefined; /** * An object representing a shipping or billing address. */ billingAddress?: EcommerceAddress | undefined; /** * An object representing a shipping or billing address. */ shippingAddress?: EcommerceAddress | undefined; tracking?: Array | undefined; lineItems?: Array | undefined; /** * Note for the order. */ note?: string | null | undefined; /** * When custom mappings are configured on the resource, the result is included here. */ customMappings?: CustomMappings | null | undefined; /** * The date and time when the object was created. */ createdAt?: Date | null | undefined; /** * The date and time when the object was last updated. */ updatedAt?: Date | null | undefined; }; /** @internal */ export declare const EcommerceOrderPaymentStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const EcommerceOrderPaymentStatus$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace EcommerceOrderPaymentStatus$ { /** @deprecated use `EcommerceOrderPaymentStatus$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Pending: "pending"; readonly Authorized: "authorized"; readonly Paid: "paid"; readonly Partial: "partial"; readonly Refunded: "refunded"; readonly Voided: "voided"; readonly Unknown: "unknown"; }>; /** @deprecated use `EcommerceOrderPaymentStatus$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Pending: "pending"; readonly Authorized: "authorized"; readonly Paid: "paid"; readonly Partial: "partial"; readonly Refunded: "refunded"; readonly Voided: "voided"; readonly Unknown: "unknown"; }>; } /** @internal */ export declare const FulfillmentStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const FulfillmentStatus$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace FulfillmentStatus$ { /** @deprecated use `FulfillmentStatus$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Pending: "pending"; readonly Shipped: "shipped"; readonly Partial: "partial"; readonly Delivered: "delivered"; readonly Cancelled: "cancelled"; readonly Returned: "returned"; readonly Unknown: "unknown"; }>; /** @deprecated use `FulfillmentStatus$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Pending: "pending"; readonly Shipped: "shipped"; readonly Partial: "partial"; readonly Delivered: "delivered"; readonly Cancelled: "cancelled"; readonly Returned: "returned"; readonly Unknown: "unknown"; }>; } /** @internal */ export declare const EcommerceOrder$inboundSchema: z.ZodType; /** @internal */ export type EcommerceOrder$Outbound = { id: string; order_number?: string | null | undefined; currency?: string | null | undefined; discounts?: Array | undefined; sub_total?: string | null | undefined; shipping_cost?: string | null | undefined; coupon_discount?: string | null | undefined; total_discount?: string | null | undefined; total_tax?: string | null | undefined; total_amount?: string | null | undefined; refunded_amount?: string | null | undefined; status?: string | null | undefined; payment_status?: string | null | undefined; fulfillment_status?: string | null | undefined; payment_method?: string | null | undefined; customer?: LinkedEcommerceCustomer$Outbound | undefined; billing_address?: EcommerceAddress$Outbound | undefined; shipping_address?: EcommerceAddress$Outbound | undefined; tracking?: Array | undefined; line_items?: Array | undefined; note?: string | null | undefined; custom_mappings?: CustomMappings$Outbound | null | undefined; created_at?: string | null | undefined; updated_at?: string | null | undefined; }; /** @internal */ export declare const EcommerceOrder$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 EcommerceOrder$ { /** @deprecated use `EcommerceOrder$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `EcommerceOrder$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `EcommerceOrder$Outbound` instead. */ type Outbound = EcommerceOrder$Outbound; } export declare function ecommerceOrderToJSON(ecommerceOrder: EcommerceOrder): string; export declare function ecommerceOrderFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=ecommerceorder.d.ts.map