/* tslint:disable */ /* eslint-disable */ /** * 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 { mapValues } from '../runtime'; /** * * @export * @interface CreateProductCategoryRequestAutomationRulesInner */ export interface CreateProductCategoryRequestAutomationRulesInner { /** * * @type {string} * @memberof CreateProductCategoryRequestAutomationRulesInner */ fieldType: CreateProductCategoryRequestAutomationRulesInnerFieldTypeEnum; /** * * @type {string} * @memberof CreateProductCategoryRequestAutomationRulesInner */ comparisonType: CreateProductCategoryRequestAutomationRulesInnerComparisonTypeEnum; /** * * @type {number} * @memberof CreateProductCategoryRequestAutomationRulesInner */ groupId: number; /** * * @type {string} * @memberof CreateProductCategoryRequestAutomationRulesInner */ relatedId?: string | null; /** * * @type {string} * @memberof CreateProductCategoryRequestAutomationRulesInner */ value?: string | null; /** * * @type {Array} * @memberof CreateProductCategoryRequestAutomationRulesInner */ valueIds?: Array; } /** * @export */ export const CreateProductCategoryRequestAutomationRulesInnerFieldTypeEnum = { Price: 'price', Name: 'name', VariantName: 'variant_name', Attribute: 'attribute', Tag: 'tag', Supplier: 'supplier', Label: 'label', ProductType: 'product_type', ProductClass: 'product_class' } as const; export type CreateProductCategoryRequestAutomationRulesInnerFieldTypeEnum = typeof CreateProductCategoryRequestAutomationRulesInnerFieldTypeEnum[keyof typeof CreateProductCategoryRequestAutomationRulesInnerFieldTypeEnum]; /** * @export */ export const CreateProductCategoryRequestAutomationRulesInnerComparisonTypeEnum = { Greater: 'greater', Less: 'less', Equal: 'equal', NotEqual: 'notEqual', Contains: 'contains', NotContains: 'notContains' } as const; export type CreateProductCategoryRequestAutomationRulesInnerComparisonTypeEnum = typeof CreateProductCategoryRequestAutomationRulesInnerComparisonTypeEnum[keyof typeof CreateProductCategoryRequestAutomationRulesInnerComparisonTypeEnum]; /** * Check if a given object implements the CreateProductCategoryRequestAutomationRulesInner interface. */ export function instanceOfCreateProductCategoryRequestAutomationRulesInner(value: object): value is CreateProductCategoryRequestAutomationRulesInner { if (!('fieldType' in value) || value['fieldType'] === undefined) return false; if (!('comparisonType' in value) || value['comparisonType'] === undefined) return false; if (!('groupId' in value) || value['groupId'] === undefined) return false; return true; } export function CreateProductCategoryRequestAutomationRulesInnerFromJSON(json: any): CreateProductCategoryRequestAutomationRulesInner { return CreateProductCategoryRequestAutomationRulesInnerFromJSONTyped(json, false); } export function CreateProductCategoryRequestAutomationRulesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProductCategoryRequestAutomationRulesInner { if (json == null) { return json; } return { 'fieldType': json['field_type'], 'comparisonType': json['comparison_type'], 'groupId': json['group_id'], 'relatedId': json['related_id'] == null ? undefined : json['related_id'], 'value': json['value'] == null ? undefined : json['value'], 'valueIds': json['value_ids'] == null ? undefined : json['value_ids'], }; } export function CreateProductCategoryRequestAutomationRulesInnerToJSON(json: any): CreateProductCategoryRequestAutomationRulesInner { return CreateProductCategoryRequestAutomationRulesInnerToJSONTyped(json, false); } export function CreateProductCategoryRequestAutomationRulesInnerToJSONTyped(value?: CreateProductCategoryRequestAutomationRulesInner | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'field_type': value['fieldType'], 'comparison_type': value['comparisonType'], 'group_id': value['groupId'], 'related_id': value['relatedId'], 'value': value['value'], 'value_ids': value['valueIds'], }; }