Developers
Start building
Themes/Theme SDK/Modules/customer/Types: OrderStatus to OrdersScopeProps

Types: OrderStatus to OrdersScopeProps

The types of @poltura/theme-sdk/customer, OrderStatus to OrdersScopeProps.

On this page
import { … } from '@poltura/theme-sdk/customer';

OrderStatus

Where an order is, as the shopper sees it.

type OrderStatus = 'pending' | 'processing' | 'shipped' | 'completed' | 'cancelled' | 'returned'

OrderStatusFilter

The order list's status filter.

type OrderStatusFilter = OrderStatus | 'all'

OrderSummary

An order as the order list shows it: enough for a card, without the totals breakdown.

type OrderSummary = Pick<Order, 'id' | 'number' | 'href' | 'placedAt' | 'status' | 'statusLabel' | 'currencyCode' | 'amountDue' | 'itemCount'> & {
    readonly lines: readonly OrderSummaryLine[];
}

OrderSummaryLine

A line of an order as the order list previews it.

type OrderSummaryLine = Pick<OrderLine, 'id' | 'title' | 'image' | 'quantity'>

OrderTracking

One parcel's tracking.

carrierrequiredstring

The carrier's name.

urlrequiredstring | null

The carrier's tracking page, or null.

coderequiredstring

The tracking code.

OrdersRequest

Which page of the order list to load.

pagenumber

The page number, from 1. Defaults to 1.

limitnumber

How many items a page holds, at most 100. Defaults to the store's page size.

statusOrderStatusFilter

Keeps only the orders in this status among the page's orders; every order by default.

PaymentStatus

Where an order's payment is.

type PaymentStatus = 'pending' | 'authorized' | 'paid' | 'refunded' | 'partiallyRefunded' | 'failed'

AddressCardProps

Props of AddressCard.

addressrequiredAddress

The address to show.

onEdit() => void

Called by the edit button; without it the button is hidden.

onRemove() => void

Called by the delete button; without it the button is hidden.

classNamestring

Classes added to the card.

AddressFormProps

Props of AddressForm.

addressAddress

The address to change, or omitted for a new one.

onSubmitrequired(input: AddressInput) => Promise<void>

Called with the entered address once it is valid.

onCancelrequired() => void

Called by the cancel button.

submittingboolean

Whether the address is being saved, which disables the form.

AddressBookProps

Props of AddressBook.

classNamestring

Classes added to the address book.

AccountNavProps

Props of AccountNav.

itemsrequiredreadonly AccountNavItem[]

The entries to link to, usually the navigation of {@link useAccount}.

classNamestring

Classes added to the grid.

OrderCardProps

Props of OrderCard.

orderrequiredOrderSummary

The order to show; an order from the list or a full one.

classNamestring

Classes added to the card.

OrderCardSkeletonProps

Props of OrderCardSkeleton.

classNamestring

Classes added to the placeholder.

OrderFiltersProps

Props of OrderFilters.

valuerequiredOrderStatusFilter

The status the list is narrowed to.

onChangerequired(value: OrderStatusFilter) => void

Called with the status the shopper picked.

classNamestring

Classes added to the row of buttons.

OrderLinesProps

Props of OrderLines.

linesrequiredreadonly OrderLine[]

The ordered lines.

classNamestring

Classes added to the table.

OrderDetailProps

Props of OrderDetail.

idrequiredstring

The order's id.

classNamestring

Classes added to the order page.

OrderDetailScopeProps

Props of OrderDetailScope.

idrequiredstring

The order's id.

fallbackReactNode

Drawn while the order loads.

childrenrequiredReactNode

The order's parts, such as {@link OrderSummaryHeader} and {@link OrderItems}.

MarketingConsentToggleProps

Props of MarketingConsentToggle.

classNamestring

Classes added to the toggle.

AuthInputProps

Props of AuthInput.

formrequiredAuthFormState

The form the field belongs to.

fieldrequiredAuthField

The field to draw.

labelstring

Overrides the label, which defaults to the field's name in the page language.

placeholderstring

Overrides the placeholder.

labelAsideReactNode

Drawn on the label's line, at the end, for example a forgot-password link.

childrenReactNode

Drawn under the field and its error, for example hints about the address.

classNamestring

Classes added to the field.

AuthSubmitProps

Props of AuthSubmit.

formrequiredAuthFormState

The form to send.

labelstring

Overrides the label, which defaults to the form's action in the page language.

disabledboolean

Keeps the button disabled besides while the form is sending.

classNamestring

Classes added to the button.

AuthErrorProps

Props of AuthError.

formrequiredAuthFormState

The form whose error to show.

classNamestring

Classes added to the message.

PasskeySignInProps

Props of PasskeySignIn.

formrequiredAuthFormState

The sign-in form whose email field names the account, and which shows the failure as its error.

classNamestring

Classes added to the button.

SocialSignInProps

Props of SocialSignIn.

formrequiredAuthFormState

The form that shows a provider's failure as its error.

providersreadonly string[]

Limits the providers to these ids; every enabled provider by default.

classNamestring

Classes added to the block.

EmailCodeStepProps

Props of EmailCodeStep.

classNamestring

Classes added to the step.

AuthFieldsProps

Props of AuthFields.

classNamestring

Classes for a box around the form; omit to place it with no box of its own.

BusinessSignUpFieldsProps

Props of BusinessSignUpFields.

formrequiredAuthFormState

The registration form the company details belong to.

classNamestring

Classes added to the fields.

OrdersScopeProps

Props of OrdersScope.

ordersrequiredQueryResult<OrderPage>

The page of orders, as {@link useOrders} answers it.

childrenrequiredReactNode

What draws inside, usually the order history region.

Last updated