- 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.
78 lines
1.9 KiB
TypeScript
78 lines
1.9 KiB
TypeScript
/**
|
|
* Generated by orval v7.17.0 🍺
|
|
* Do not edit manually.
|
|
* OpenAPI spec version: 0.0.0
|
|
*/
|
|
import type { PatchedSiteConfigurationAdminOpeningHours } from "./patchedSiteConfigurationAdminOpeningHours";
|
|
import type { CurrencyEnum } from "./currencyEnum";
|
|
|
|
export interface PatchedSiteConfigurationAdmin {
|
|
readonly id?: number;
|
|
/** @maxLength 100 */
|
|
name?: string;
|
|
/** @nullable */
|
|
logo?: string | null;
|
|
/** @nullable */
|
|
favicon?: string | null;
|
|
/**
|
|
* @maxLength 254
|
|
* @nullable
|
|
*/
|
|
contact_email?: string | null;
|
|
/**
|
|
* @maxLength 20
|
|
* @nullable
|
|
*/
|
|
contact_phone?: string | null;
|
|
/** @nullable */
|
|
contact_address?: string | null;
|
|
/** @nullable */
|
|
opening_hours?: PatchedSiteConfigurationAdminOpeningHours;
|
|
/**
|
|
* @maxLength 200
|
|
* @nullable
|
|
*/
|
|
facebook_url?: string | null;
|
|
/**
|
|
* @maxLength 200
|
|
* @nullable
|
|
*/
|
|
instagram_url?: string | null;
|
|
/**
|
|
* @maxLength 200
|
|
* @nullable
|
|
*/
|
|
youtube_url?: string | null;
|
|
/**
|
|
* @maxLength 200
|
|
* @nullable
|
|
*/
|
|
tiktok_url?: string | null;
|
|
/**
|
|
* @maxLength 20
|
|
* @nullable
|
|
*/
|
|
whatsapp_number?: string | null;
|
|
/** @pattern ^-?\d{0,8}(?:\.\d{0,2})?$ */
|
|
zasilkovna_shipping_price?: string;
|
|
/**
|
|
* API klíč pro přístup k Zásilkovna API (zatím není využito)
|
|
* @maxLength 255
|
|
* @nullable
|
|
*/
|
|
zasilkovna_api_key?: string | null;
|
|
/**
|
|
* API heslo pro přístup k Zásilkovna API (zatím není využito)
|
|
* @maxLength 255
|
|
* @nullable
|
|
*/
|
|
zasilkovna_api_password?: string | null;
|
|
/** @pattern ^-?\d{0,8}(?:\.\d{0,2})?$ */
|
|
free_shipping_over?: string;
|
|
/** Násobení kupónů v objednávce (ano/ne), pokud ne tak se použije pouze nejvyšší slevový kupón */
|
|
multiplying_coupons?: boolean;
|
|
/** Sčítání slevových kupónů v objednávce (ano/ne), pokud ne tak se použije pouze nejvyšší slevový kupón */
|
|
addition_of_coupons_amount?: boolean;
|
|
currency?: CurrencyEnum;
|
|
}
|