/** * My API * API documentation for my Laravel app * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { ProductCategoryListResource } from './ProductCategoryListResource'; import type { SiteLiteResource } from './SiteLiteResource'; import type { SupplierListResource } from './SupplierListResource'; import type { ProductChildLiteResource } from './ProductChildLiteResource'; import type { CustomerListResource } from './CustomerListResource'; /** * * @export * @interface CouponResource */ export interface CouponResource { /** * * @type {number} * @memberof CouponResource */ id?: number | null; /** * * @type {string} * @memberof CouponResource */ name: string; /** * * @type {string} * @memberof CouponResource */ code: string; /** * * @type {string} * @memberof CouponResource */ type: string; /** * * @type {string} * @memberof CouponResource */ discountType: string; /** * * @type {number} * @memberof CouponResource */ discountAmount: number; /** * * @type {number} * @memberof CouponResource */ minAmount: number; /** * * @type {number} * @memberof CouponResource */ minProducts: number; /** * * @type {number} * @memberof CouponResource */ totalUseLimit: number; /** * * @type {number} * @memberof CouponResource */ customerUseLimit: number; /** * * @type {boolean} * @memberof CouponResource */ isAbandonedCart: boolean; /** * * @type {boolean} * @memberof CouponResource */ isForAllProducts: boolean; /** * * @type {boolean} * @memberof CouponResource */ isForAllCustomers: boolean; /** * * @type {Date} * @memberof CouponResource */ startDate?: Date | null; /** * * @type {Date} * @memberof CouponResource */ endDate?: Date | null; /** * * @type {SiteLiteResource} * @memberof CouponResource */ site: SiteLiteResource | null; /** * * @type {Array} * @memberof CouponResource */ productChildren: Array | null; /** * * @type {Array} * @memberof CouponResource */ categories: Array | null; /** * * @type {Array} * @memberof CouponResource */ suppliers: Array | null; /** * * @type {Array} * @memberof CouponResource */ customers: Array | null; /** * * @type {number} * @memberof CouponResource */ ordersCount: number; /** * * @type {number} * @memberof CouponResource */ cartsCount: number; } /** * Check if a given object implements the CouponResource interface. */ export declare function instanceOfCouponResource(value: object): value is CouponResource; export declare function CouponResourceFromJSON(json: any): CouponResource; export declare function CouponResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CouponResource; export declare function CouponResourceToJSON(json: any): CouponResource; export declare function CouponResourceToJSONTyped(value?: CouponResource | null, ignoreDiscriminator?: boolean): any;