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:
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Generated by orval v7.17.0 🍺
|
||||
* Do not edit manually.
|
||||
* OpenAPI spec version: 0.0.0
|
||||
*/
|
||||
|
||||
export interface PatchedDiscountCode {
|
||||
readonly id?: number;
|
||||
/** @maxLength 50 */
|
||||
code?: string;
|
||||
/** @maxLength 255 */
|
||||
description?: string;
|
||||
/**
|
||||
* Procento sleva 0-100
|
||||
* @minimum 0
|
||||
* @maximum 100
|
||||
* @nullable
|
||||
*/
|
||||
percent?: number | null;
|
||||
/**
|
||||
* Fixní sleva v CZK
|
||||
* @nullable
|
||||
* @pattern ^-?\d{0,8}(?:\.\d{0,2})?$
|
||||
*/
|
||||
amount?: string | null;
|
||||
valid_from?: Date;
|
||||
/** @nullable */
|
||||
valid_to?: Date | null;
|
||||
active?: boolean;
|
||||
/**
|
||||
* @minimum 0
|
||||
* @maximum 9223372036854776000
|
||||
* @nullable
|
||||
*/
|
||||
usage_limit?: number | null;
|
||||
readonly used_count?: number;
|
||||
specific_products?: number[];
|
||||
specific_categories?: number[];
|
||||
}
|
||||
Reference in New Issue
Block a user