feat(api): generate models for patched products, refunds, site configurations, payments, and user registration
- Added PatchedProduct, PatchedProductImage, PatchedRefund, and related models. - Introduced Payment, PaymentBody, PaymentCreate, and PaymentRead models. - Created enums for payment methods, reasons for refunds, roles, and shipping methods. - Implemented models for site configurations and their opening hours. - Added ZasilkovnaPacket and ZasilkovnaShipment models for handling shipping data. - Generated user registration model with validation rules. - Updated public API functions to support new models and queries.
This commit is contained in:
34
frontend/src/api/generated/private/models/orderRead.ts
Normal file
34
frontend/src/api/generated/private/models/orderRead.ts
Normal file
@@ -0,0 +1,34 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
import type { StatusEnum } from "./statusEnum";
|
||||
import type { OrderItemRead } from "./orderItemRead";
|
||||
import type { CarrierRead } from "./carrierRead";
|
||||
import type { PaymentRead } from "./paymentRead";
|
||||
|
||||
export interface OrderRead {
|
||||
readonly id: number;
|
||||
readonly status: StatusEnum;
|
||||
/** @pattern ^-?\d{0,8}(?:\.\d{0,2})?$ */
|
||||
readonly total_price: string;
|
||||
readonly currency: string;
|
||||
/** @nullable */
|
||||
readonly user: number | null;
|
||||
readonly first_name: string;
|
||||
readonly last_name: string;
|
||||
readonly email: string;
|
||||
readonly phone: string;
|
||||
readonly address: string;
|
||||
readonly city: string;
|
||||
readonly postal_code: string;
|
||||
readonly country: string;
|
||||
readonly note: string;
|
||||
readonly created_at: Date;
|
||||
readonly updated_at: Date;
|
||||
readonly items: readonly OrderItemRead[];
|
||||
readonly carrier: CarrierRead;
|
||||
readonly payment: PaymentRead;
|
||||
readonly discount_codes: string;
|
||||
}
|
||||
Reference in New Issue
Block a user