Wocart

@wocart/storefront v3.1.0


@wocart/storefront / astro / PlaceOrderResult

Type Alias: PlaceOrderResult

PlaceOrderResult = { data: CreatedOrder; success: true; } | { error: string; errorKind: "shape"; success: false; } | { couponRefusal: CouponRefusal | null; domainError: DomainError; error: string; errorKind: "upstream"; success: false; }

Union Members

Type Literal

{ data: CreatedOrder; success: true; }


Type Literal

{ error: string; errorKind: "shape"; success: false; }


Type Literal

{ couponRefusal: CouponRefusal | null; domainError: DomainError; error: string; errorKind: "upstream"; success: false; }

couponRefusal

couponRefusal: CouponRefusal | null

Set when the order was refused for its code: the form shows it on the code's field.

domainError

domainError: DomainError

error

error: string

errorKind

errorKind: "upstream"

success

success: false