- 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.
25 lines
566 B
TypeScript
25 lines
566 B
TypeScript
/**
|
|
* Generated by orval v7.17.0 🍺
|
|
* Do not edit manually.
|
|
* OpenAPI spec version: 0.0.0
|
|
*/
|
|
import type { OrderItemCreate } from "./orderItemCreate";
|
|
import type { OrderCarrier } from "./orderCarrier";
|
|
import type { Payment } from "./payment";
|
|
|
|
export interface OrderCreate {
|
|
first_name?: string;
|
|
last_name?: string;
|
|
email?: string;
|
|
phone?: string;
|
|
address?: string;
|
|
city?: string;
|
|
postal_code?: string;
|
|
country?: string;
|
|
note?: string;
|
|
items: OrderItemCreate[];
|
|
carrier: OrderCarrier;
|
|
payment: Payment;
|
|
discount_codes?: string[];
|
|
}
|