deploy
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
/** Снимок адреса из addressSnapshotJson при оформлении заказа */
|
||||
export type OrderAddressSnapshot = {
|
||||
deliveryType?: 'delivery' | 'pickup'
|
||||
label?: string | null
|
||||
recipientName?: string
|
||||
recipientPhone?: string
|
||||
addressLine?: string
|
||||
comment?: string | null
|
||||
}
|
||||
|
||||
export function parseOrderAddressSnapshot(json: string | null | undefined): OrderAddressSnapshot | null {
|
||||
if (!json) return null
|
||||
try {
|
||||
return JSON.parse(json) as OrderAddressSnapshot
|
||||
} catch {
|
||||
return null
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,7 @@
|
||||
export function orderStatusLabelRu(code: string): string {
|
||||
const map: Record<string, string> = {
|
||||
DRAFT: 'Черновик',
|
||||
DELIVERY_FEE_ADJUSTMENT: 'Корректировка стоимости доставки',
|
||||
PENDING_PAYMENT: 'Ожидает оплаты',
|
||||
PAYMENT_VERIFICATION: 'Проверка оплаты',
|
||||
PAID: 'Оплачен',
|
||||
|
||||
Reference in New Issue
Block a user