fixed sorting (#18706)

This commit is contained in:
devhl-labs 2024-05-26 06:07:31 -04:00 committed by GitHub
parent af090fd526
commit ee3ff39225
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
75 changed files with 15427 additions and 2847 deletions

View File

@ -38,9 +38,6 @@ import java.util.*;
import java.util.concurrent.atomic.AtomicReference;
import java.util.function.Consumer;
import java.util.stream.Collectors;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import static org.apache.commons.lang3.StringUtils.isEmpty;
import static org.openapitools.codegen.utils.CamelizeOption.LOWERCASE_FIRST_LETTER;
@ -456,7 +453,7 @@ public class CSharpClientCodegen extends AbstractCSharpCodegen {
}
// avoid breaking changes
if (GENERICHOST.equals(getLibrary())) {
if (GENERICHOST.equals(getLibrary()) && codegenModel != null) {
Collections.sort(codegenModel.vars, propertyComparatorByName);
Collections.sort(codegenModel.allVars, propertyComparatorByName);
@ -485,17 +482,8 @@ public class CSharpClientCodegen extends AbstractCSharpCodegen {
}
};
public static Comparator<CodegenProperty> propertyComparatorByNotNullableRequiredNoDefault = new Comparator<CodegenProperty>() {
@Override
public int compare(CodegenProperty one, CodegenProperty another) {
if (one.isNullable == another.isNullable && one.required == another.required && (one.defaultValue == null) == (another.defaultValue == null))
return 0;
else if (!one.isNullable && one.required && one.defaultValue == null)
return -1;
else
return 1;
}
};
public static Comparator<CodegenProperty> propertyComparatorByNotNullableRequiredNoDefault =
Comparator.comparing(p -> p.isNullable || !p.required || p.defaultValue != null);
public static Comparator<CodegenParameter> parameterComparatorByDataType = new Comparator<CodegenParameter>() {
@Override

View File

@ -2752,4 +2752,106 @@ components:
a_objVariableobject:
type: array
items:
$ref: '#/components/schemas/Custom-Variableobject-Response'
$ref: '#/components/schemas/Custom-Variableobject-Response'
# this class ensures that the CodegenProperties are sorted correctly
# https://github.com/OpenAPITools/openapi-generator/issues/18607
MixLog:
type: object
properties:
id:
$ref: '#/components/schemas/uuid'
description:
type: string
mixDate:
type: string
format: date-time
shopId:
$ref: '#/components/schemas/uuid'
totalPrice:
type: number
format: float
nullable: true
totalRecalculations:
type: integer
format: int32
totalOverPoors:
type: integer
format: int32
totalSkips:
type: integer
format: int32
totalUnderPours:
type: integer
format: int32
formulaVersionDate:
type: string
format: date-time
someCode:
type: string
nullable: true
description: SomeCode is only required for color mixes
batchNumber:
type: string
brandCode:
type: string
description: BrandCode is only required for non-color mixes
brandId:
type: string
description: BrandId is only required for color mixes
brandName:
type: string
description: BrandName is only required for color mixes
categoryCode:
type: string
description: CategoryCode is not used anymore
color:
type: string
description: Color is only required for color mixes
colorDescription:
type: string
comment:
type: string
commercialProductCode:
type: string
productLineCode:
type: string
description: ProductLineCode is only required for color mixes
country:
type: string
createdBy:
type: string
createdByFirstName:
type: string
createdByLastName:
type: string
deltaECalculationRepaired:
type: string
deltaECalculationSprayout:
type: string
ownColorVariantNumber:
nullable: true
type: integer
format: int32
primerProductId:
type: string
productId:
type: string
description: ProductId is only required for color mixes
productName:
type: string
description: ProductName is only required for color mixes
selectedVersionIndex:
type: integer
format: int32
required:
- id
- description
- mixDate
- totalRecalculations
- totalOverPoors
- totalSkips
- totalUnderPours
- formulaVersionDate
uuid:
type: string
format: uuid

View File

@ -62,6 +62,7 @@ docs/models/LiteralStringClass.md
docs/models/Mammal.md
docs/models/MapTest.md
docs/models/MapTestMapOfEnumStringValue.md
docs/models/MixLog.md
docs/models/MixedPropertiesAndAdditionalPropertiesClass.md
docs/models/Model200Response.md
docs/models/ModelClient.md
@ -215,6 +216,7 @@ src/Org.OpenAPITools/Model/LiteralStringClass.cs
src/Org.OpenAPITools/Model/Mammal.cs
src/Org.OpenAPITools/Model/MapTest.cs
src/Org.OpenAPITools/Model/MapTestMapOfEnumStringValue.cs
src/Org.OpenAPITools/Model/MixLog.cs
src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
src/Org.OpenAPITools/Model/Model200Response.cs
src/Org.OpenAPITools/Model/ModelClient.cs

View File

@ -2528,6 +2528,108 @@ components:
- a_objVariableobject
- pkiNotificationtestID
type: object
MixLog:
properties:
id:
format: uuid
type: string
description:
type: string
mixDate:
format: date-time
type: string
shopId:
format: uuid
type: string
totalPrice:
format: float
nullable: true
type: number
totalRecalculations:
format: int32
type: integer
totalOverPoors:
format: int32
type: integer
totalSkips:
format: int32
type: integer
totalUnderPours:
format: int32
type: integer
formulaVersionDate:
format: date-time
type: string
someCode:
description: SomeCode is only required for color mixes
nullable: true
type: string
batchNumber:
type: string
brandCode:
description: BrandCode is only required for non-color mixes
type: string
brandId:
description: BrandId is only required for color mixes
type: string
brandName:
description: BrandName is only required for color mixes
type: string
categoryCode:
description: CategoryCode is not used anymore
type: string
color:
description: Color is only required for color mixes
type: string
colorDescription:
type: string
comment:
type: string
commercialProductCode:
type: string
productLineCode:
description: ProductLineCode is only required for color mixes
type: string
country:
type: string
createdBy:
type: string
createdByFirstName:
type: string
createdByLastName:
type: string
deltaECalculationRepaired:
type: string
deltaECalculationSprayout:
type: string
ownColorVariantNumber:
format: int32
nullable: true
type: integer
primerProductId:
type: string
productId:
description: ProductId is only required for color mixes
type: string
productName:
description: ProductName is only required for color mixes
type: string
selectedVersionIndex:
format: int32
type: integer
required:
- description
- formulaVersionDate
- id
- mixDate
- totalOverPoors
- totalRecalculations
- totalSkips
- totalUnderPours
type: object
uuid:
format: uuid
type: string
_foo_get_default_response:
example:
string:

View File

@ -0,0 +1,41 @@
# Org.OpenAPITools.Model.MixLog
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Description** | **string** | |
**FormulaVersionDate** | **DateTime** | |
**Id** | **Guid** | |
**MixDate** | **DateTime** | |
**TotalOverPoors** | **int** | |
**TotalRecalculations** | **int** | |
**TotalSkips** | **int** | |
**TotalUnderPours** | **int** | |
**BatchNumber** | **string** | | [optional]
**BrandCode** | **string** | BrandCode is only required for non-color mixes | [optional]
**BrandId** | **string** | BrandId is only required for color mixes | [optional]
**BrandName** | **string** | BrandName is only required for color mixes | [optional]
**CategoryCode** | **string** | CategoryCode is not used anymore | [optional]
**Color** | **string** | Color is only required for color mixes | [optional]
**ColorDescription** | **string** | | [optional]
**Comment** | **string** | | [optional]
**CommercialProductCode** | **string** | | [optional]
**Country** | **string** | | [optional]
**CreatedBy** | **string** | | [optional]
**CreatedByFirstName** | **string** | | [optional]
**CreatedByLastName** | **string** | | [optional]
**DeltaECalculationRepaired** | **string** | | [optional]
**DeltaECalculationSprayout** | **string** | | [optional]
**OwnColorVariantNumber** | **int** | | [optional]
**PrimerProductId** | **string** | | [optional]
**ProductId** | **string** | ProductId is only required for color mixes | [optional]
**ProductLineCode** | **string** | ProductLineCode is only required for color mixes | [optional]
**ProductName** | **string** | ProductName is only required for color mixes | [optional]
**SelectedVersionIndex** | **int** | | [optional]
**ShopId** | **Guid** | | [optional]
**SomeCode** | **string** | SomeCode is only required for color mixes | [optional]
**TotalPrice** | **float** | | [optional]
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)

View File

@ -15,17 +15,6 @@ Name | Type | Description | Notes
**RequiredNotnullableStringProp** | **string** | |
**RequiredNotnullableUuid** | **Guid** | |
**RequiredNotnullableintegerProp** | **int** | |
**RequiredNullableArrayOfString** | **List&lt;string&gt;** | |
**RequiredNullableBooleanProp** | **bool** | |
**RequiredNullableDateProp** | **DateOnly** | |
**RequiredNullableDatetimeProp** | **DateTime** | |
**RequiredNullableEnumInteger** | **RequiredClassRequiredNullableEnumInteger** | |
**RequiredNullableEnumIntegerOnly** | **RequiredClassRequiredNullableEnumIntegerOnly** | |
**RequiredNullableEnumString** | **RequiredClassRequiredNullableEnumString** | |
**RequiredNullableIntegerProp** | **int** | |
**RequiredNullableOuterEnumDefaultValue** | **OuterEnumDefaultValue** | |
**RequiredNullableStringProp** | **string** | |
**RequiredNullableUuid** | **Guid** | |
**NotRequiredNotnullableDateProp** | **DateOnly** | | [optional]
**NotRequiredNotnullableintegerProp** | **int** | | [optional]
**NotRequiredNullableDateProp** | **DateOnly** | | [optional]
@ -48,6 +37,17 @@ Name | Type | Description | Notes
**NotrequiredNullableOuterEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional]
**NotrequiredNullableStringProp** | **string** | | [optional]
**NotrequiredNullableUuid** | **Guid** | | [optional]
**RequiredNullableArrayOfString** | **List&lt;string&gt;** | |
**RequiredNullableBooleanProp** | **bool** | |
**RequiredNullableDateProp** | **DateOnly** | |
**RequiredNullableDatetimeProp** | **DateTime** | |
**RequiredNullableEnumInteger** | **RequiredClassRequiredNullableEnumInteger** | |
**RequiredNullableEnumIntegerOnly** | **RequiredClassRequiredNullableEnumIntegerOnly** | |
**RequiredNullableEnumString** | **RequiredClassRequiredNullableEnumString** | |
**RequiredNullableIntegerProp** | **int** | |
**RequiredNullableOuterEnumDefaultValue** | **OuterEnumDefaultValue** | |
**RequiredNullableStringProp** | **string** | |
**RequiredNullableUuid** | **Guid** | |
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)

View File

@ -0,0 +1,344 @@
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using Xunit;
using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using Org.OpenAPITools.Model;
using Org.OpenAPITools.Client;
using System.Reflection;
namespace Org.OpenAPITools.Test.Model
{
/// <summary>
/// Class for testing MixLog
/// </summary>
/// <remarks>
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
public class MixLogTests : IDisposable
{
// TODO uncomment below to declare an instance variable for MixLog
//private MixLog instance;
public MixLogTests()
{
// TODO uncomment below to create an instance of MixLog
//instance = new MixLog();
}
public void Dispose()
{
// Cleanup when everything is done.
}
/// <summary>
/// Test an instance of MixLog
/// </summary>
[Fact]
public void MixLogInstanceTest()
{
// TODO uncomment below to test "IsType" MixLog
//Assert.IsType<MixLog>(instance);
}
/// <summary>
/// Test the property 'Description'
/// </summary>
[Fact]
public void DescriptionTest()
{
// TODO unit test for the property 'Description'
}
/// <summary>
/// Test the property 'FormulaVersionDate'
/// </summary>
[Fact]
public void FormulaVersionDateTest()
{
// TODO unit test for the property 'FormulaVersionDate'
}
/// <summary>
/// Test the property 'Id'
/// </summary>
[Fact]
public void IdTest()
{
// TODO unit test for the property 'Id'
}
/// <summary>
/// Test the property 'MixDate'
/// </summary>
[Fact]
public void MixDateTest()
{
// TODO unit test for the property 'MixDate'
}
/// <summary>
/// Test the property 'TotalOverPoors'
/// </summary>
[Fact]
public void TotalOverPoorsTest()
{
// TODO unit test for the property 'TotalOverPoors'
}
/// <summary>
/// Test the property 'TotalRecalculations'
/// </summary>
[Fact]
public void TotalRecalculationsTest()
{
// TODO unit test for the property 'TotalRecalculations'
}
/// <summary>
/// Test the property 'TotalSkips'
/// </summary>
[Fact]
public void TotalSkipsTest()
{
// TODO unit test for the property 'TotalSkips'
}
/// <summary>
/// Test the property 'TotalUnderPours'
/// </summary>
[Fact]
public void TotalUnderPoursTest()
{
// TODO unit test for the property 'TotalUnderPours'
}
/// <summary>
/// Test the property 'BatchNumber'
/// </summary>
[Fact]
public void BatchNumberTest()
{
// TODO unit test for the property 'BatchNumber'
}
/// <summary>
/// Test the property 'BrandCode'
/// </summary>
[Fact]
public void BrandCodeTest()
{
// TODO unit test for the property 'BrandCode'
}
/// <summary>
/// Test the property 'BrandId'
/// </summary>
[Fact]
public void BrandIdTest()
{
// TODO unit test for the property 'BrandId'
}
/// <summary>
/// Test the property 'BrandName'
/// </summary>
[Fact]
public void BrandNameTest()
{
// TODO unit test for the property 'BrandName'
}
/// <summary>
/// Test the property 'CategoryCode'
/// </summary>
[Fact]
public void CategoryCodeTest()
{
// TODO unit test for the property 'CategoryCode'
}
/// <summary>
/// Test the property 'Color'
/// </summary>
[Fact]
public void ColorTest()
{
// TODO unit test for the property 'Color'
}
/// <summary>
/// Test the property 'ColorDescription'
/// </summary>
[Fact]
public void ColorDescriptionTest()
{
// TODO unit test for the property 'ColorDescription'
}
/// <summary>
/// Test the property 'Comment'
/// </summary>
[Fact]
public void CommentTest()
{
// TODO unit test for the property 'Comment'
}
/// <summary>
/// Test the property 'CommercialProductCode'
/// </summary>
[Fact]
public void CommercialProductCodeTest()
{
// TODO unit test for the property 'CommercialProductCode'
}
/// <summary>
/// Test the property 'Country'
/// </summary>
[Fact]
public void CountryTest()
{
// TODO unit test for the property 'Country'
}
/// <summary>
/// Test the property 'CreatedBy'
/// </summary>
[Fact]
public void CreatedByTest()
{
// TODO unit test for the property 'CreatedBy'
}
/// <summary>
/// Test the property 'CreatedByFirstName'
/// </summary>
[Fact]
public void CreatedByFirstNameTest()
{
// TODO unit test for the property 'CreatedByFirstName'
}
/// <summary>
/// Test the property 'CreatedByLastName'
/// </summary>
[Fact]
public void CreatedByLastNameTest()
{
// TODO unit test for the property 'CreatedByLastName'
}
/// <summary>
/// Test the property 'DeltaECalculationRepaired'
/// </summary>
[Fact]
public void DeltaECalculationRepairedTest()
{
// TODO unit test for the property 'DeltaECalculationRepaired'
}
/// <summary>
/// Test the property 'DeltaECalculationSprayout'
/// </summary>
[Fact]
public void DeltaECalculationSprayoutTest()
{
// TODO unit test for the property 'DeltaECalculationSprayout'
}
/// <summary>
/// Test the property 'OwnColorVariantNumber'
/// </summary>
[Fact]
public void OwnColorVariantNumberTest()
{
// TODO unit test for the property 'OwnColorVariantNumber'
}
/// <summary>
/// Test the property 'PrimerProductId'
/// </summary>
[Fact]
public void PrimerProductIdTest()
{
// TODO unit test for the property 'PrimerProductId'
}
/// <summary>
/// Test the property 'ProductId'
/// </summary>
[Fact]
public void ProductIdTest()
{
// TODO unit test for the property 'ProductId'
}
/// <summary>
/// Test the property 'ProductLineCode'
/// </summary>
[Fact]
public void ProductLineCodeTest()
{
// TODO unit test for the property 'ProductLineCode'
}
/// <summary>
/// Test the property 'ProductName'
/// </summary>
[Fact]
public void ProductNameTest()
{
// TODO unit test for the property 'ProductName'
}
/// <summary>
/// Test the property 'SelectedVersionIndex'
/// </summary>
[Fact]
public void SelectedVersionIndexTest()
{
// TODO unit test for the property 'SelectedVersionIndex'
}
/// <summary>
/// Test the property 'ShopId'
/// </summary>
[Fact]
public void ShopIdTest()
{
// TODO unit test for the property 'ShopId'
}
/// <summary>
/// Test the property 'SomeCode'
/// </summary>
[Fact]
public void SomeCodeTest()
{
// TODO unit test for the property 'SomeCode'
}
/// <summary>
/// Test the property 'TotalPrice'
/// </summary>
[Fact]
public void TotalPriceTest()
{
// TODO unit test for the property 'TotalPrice'
}
}
}

View File

@ -152,105 +152,6 @@ namespace Org.OpenAPITools.Test.Model
// TODO unit test for the property 'RequiredNotnullableintegerProp'
}
/// <summary>
/// Test the property 'RequiredNullableArrayOfString'
/// </summary>
[Fact]
public void RequiredNullableArrayOfStringTest()
{
// TODO unit test for the property 'RequiredNullableArrayOfString'
}
/// <summary>
/// Test the property 'RequiredNullableBooleanProp'
/// </summary>
[Fact]
public void RequiredNullableBooleanPropTest()
{
// TODO unit test for the property 'RequiredNullableBooleanProp'
}
/// <summary>
/// Test the property 'RequiredNullableDateProp'
/// </summary>
[Fact]
public void RequiredNullableDatePropTest()
{
// TODO unit test for the property 'RequiredNullableDateProp'
}
/// <summary>
/// Test the property 'RequiredNullableDatetimeProp'
/// </summary>
[Fact]
public void RequiredNullableDatetimePropTest()
{
// TODO unit test for the property 'RequiredNullableDatetimeProp'
}
/// <summary>
/// Test the property 'RequiredNullableEnumInteger'
/// </summary>
[Fact]
public void RequiredNullableEnumIntegerTest()
{
// TODO unit test for the property 'RequiredNullableEnumInteger'
}
/// <summary>
/// Test the property 'RequiredNullableEnumIntegerOnly'
/// </summary>
[Fact]
public void RequiredNullableEnumIntegerOnlyTest()
{
// TODO unit test for the property 'RequiredNullableEnumIntegerOnly'
}
/// <summary>
/// Test the property 'RequiredNullableEnumString'
/// </summary>
[Fact]
public void RequiredNullableEnumStringTest()
{
// TODO unit test for the property 'RequiredNullableEnumString'
}
/// <summary>
/// Test the property 'RequiredNullableIntegerProp'
/// </summary>
[Fact]
public void RequiredNullableIntegerPropTest()
{
// TODO unit test for the property 'RequiredNullableIntegerProp'
}
/// <summary>
/// Test the property 'RequiredNullableOuterEnumDefaultValue'
/// </summary>
[Fact]
public void RequiredNullableOuterEnumDefaultValueTest()
{
// TODO unit test for the property 'RequiredNullableOuterEnumDefaultValue'
}
/// <summary>
/// Test the property 'RequiredNullableStringProp'
/// </summary>
[Fact]
public void RequiredNullableStringPropTest()
{
// TODO unit test for the property 'RequiredNullableStringProp'
}
/// <summary>
/// Test the property 'RequiredNullableUuid'
/// </summary>
[Fact]
public void RequiredNullableUuidTest()
{
// TODO unit test for the property 'RequiredNullableUuid'
}
/// <summary>
/// Test the property 'NotRequiredNotnullableDateProp'
/// </summary>
@ -448,5 +349,104 @@ namespace Org.OpenAPITools.Test.Model
{
// TODO unit test for the property 'NotrequiredNullableUuid'
}
/// <summary>
/// Test the property 'RequiredNullableArrayOfString'
/// </summary>
[Fact]
public void RequiredNullableArrayOfStringTest()
{
// TODO unit test for the property 'RequiredNullableArrayOfString'
}
/// <summary>
/// Test the property 'RequiredNullableBooleanProp'
/// </summary>
[Fact]
public void RequiredNullableBooleanPropTest()
{
// TODO unit test for the property 'RequiredNullableBooleanProp'
}
/// <summary>
/// Test the property 'RequiredNullableDateProp'
/// </summary>
[Fact]
public void RequiredNullableDatePropTest()
{
// TODO unit test for the property 'RequiredNullableDateProp'
}
/// <summary>
/// Test the property 'RequiredNullableDatetimeProp'
/// </summary>
[Fact]
public void RequiredNullableDatetimePropTest()
{
// TODO unit test for the property 'RequiredNullableDatetimeProp'
}
/// <summary>
/// Test the property 'RequiredNullableEnumInteger'
/// </summary>
[Fact]
public void RequiredNullableEnumIntegerTest()
{
// TODO unit test for the property 'RequiredNullableEnumInteger'
}
/// <summary>
/// Test the property 'RequiredNullableEnumIntegerOnly'
/// </summary>
[Fact]
public void RequiredNullableEnumIntegerOnlyTest()
{
// TODO unit test for the property 'RequiredNullableEnumIntegerOnly'
}
/// <summary>
/// Test the property 'RequiredNullableEnumString'
/// </summary>
[Fact]
public void RequiredNullableEnumStringTest()
{
// TODO unit test for the property 'RequiredNullableEnumString'
}
/// <summary>
/// Test the property 'RequiredNullableIntegerProp'
/// </summary>
[Fact]
public void RequiredNullableIntegerPropTest()
{
// TODO unit test for the property 'RequiredNullableIntegerProp'
}
/// <summary>
/// Test the property 'RequiredNullableOuterEnumDefaultValue'
/// </summary>
[Fact]
public void RequiredNullableOuterEnumDefaultValueTest()
{
// TODO unit test for the property 'RequiredNullableOuterEnumDefaultValue'
}
/// <summary>
/// Test the property 'RequiredNullableStringProp'
/// </summary>
[Fact]
public void RequiredNullableStringPropTest()
{
// TODO unit test for the property 'RequiredNullableStringProp'
}
/// <summary>
/// Test the property 'RequiredNullableUuid'
/// </summary>
[Fact]
public void RequiredNullableUuidTest()
{
// TODO unit test for the property 'RequiredNullableUuid'
}
}
}

View File

@ -102,6 +102,7 @@ namespace Org.OpenAPITools.Client
_jsonOptions.Converters.Add(new MapTestJsonConverter());
_jsonOptions.Converters.Add(new MapTestMapOfEnumStringValueJsonConverter());
_jsonOptions.Converters.Add(new MapTestMapOfEnumStringValueNullableJsonConverter());
_jsonOptions.Converters.Add(new MixLogJsonConverter());
_jsonOptions.Converters.Add(new MixedPropertiesAndAdditionalPropertiesClassJsonConverter());
_jsonOptions.Converters.Add(new Model200ResponseJsonConverter());
_jsonOptions.Converters.Add(new ModelClientJsonConverter());

View File

@ -43,17 +43,6 @@ namespace Org.OpenAPITools.Model
/// <param name="requiredNotnullableStringProp">requiredNotnullableStringProp</param>
/// <param name="requiredNotnullableUuid">requiredNotnullableUuid</param>
/// <param name="requiredNotnullableintegerProp">requiredNotnullableintegerProp</param>
/// <param name="requiredNullableArrayOfString">requiredNullableArrayOfString</param>
/// <param name="requiredNullableBooleanProp">requiredNullableBooleanProp</param>
/// <param name="requiredNullableDateProp">requiredNullableDateProp</param>
/// <param name="requiredNullableDatetimeProp">requiredNullableDatetimeProp</param>
/// <param name="requiredNullableEnumInteger">requiredNullableEnumInteger</param>
/// <param name="requiredNullableEnumIntegerOnly">requiredNullableEnumIntegerOnly</param>
/// <param name="requiredNullableEnumString">requiredNullableEnumString</param>
/// <param name="requiredNullableIntegerProp">requiredNullableIntegerProp</param>
/// <param name="requiredNullableOuterEnumDefaultValue">requiredNullableOuterEnumDefaultValue</param>
/// <param name="requiredNullableStringProp">requiredNullableStringProp</param>
/// <param name="requiredNullableUuid">requiredNullableUuid</param>
/// <param name="notRequiredNotnullableDateProp">notRequiredNotnullableDateProp</param>
/// <param name="notRequiredNotnullableintegerProp">notRequiredNotnullableintegerProp</param>
/// <param name="notRequiredNullableDateProp">notRequiredNullableDateProp</param>
@ -76,8 +65,19 @@ namespace Org.OpenAPITools.Model
/// <param name="notrequiredNullableOuterEnumDefaultValue">notrequiredNullableOuterEnumDefaultValue</param>
/// <param name="notrequiredNullableStringProp">notrequiredNullableStringProp</param>
/// <param name="notrequiredNullableUuid">notrequiredNullableUuid</param>
/// <param name="requiredNullableArrayOfString">requiredNullableArrayOfString</param>
/// <param name="requiredNullableBooleanProp">requiredNullableBooleanProp</param>
/// <param name="requiredNullableDateProp">requiredNullableDateProp</param>
/// <param name="requiredNullableDatetimeProp">requiredNullableDatetimeProp</param>
/// <param name="requiredNullableEnumInteger">requiredNullableEnumInteger</param>
/// <param name="requiredNullableEnumIntegerOnly">requiredNullableEnumIntegerOnly</param>
/// <param name="requiredNullableEnumString">requiredNullableEnumString</param>
/// <param name="requiredNullableIntegerProp">requiredNullableIntegerProp</param>
/// <param name="requiredNullableOuterEnumDefaultValue">requiredNullableOuterEnumDefaultValue</param>
/// <param name="requiredNullableStringProp">requiredNullableStringProp</param>
/// <param name="requiredNullableUuid">requiredNullableUuid</param>
[JsonConstructor]
public RequiredClass(DateOnly requiredNotNullableDateProp, List<string> requiredNotnullableArrayOfString, bool requiredNotnullableBooleanProp, DateTime requiredNotnullableDatetimeProp, RequiredClassRequiredNotnullableEnumInteger requiredNotnullableEnumInteger, RequiredClassRequiredNotnullableEnumIntegerOnly requiredNotnullableEnumIntegerOnly, RequiredClassRequiredNotnullableEnumString requiredNotnullableEnumString, OuterEnumDefaultValue requiredNotnullableOuterEnumDefaultValue, string requiredNotnullableStringProp, Guid requiredNotnullableUuid, int requiredNotnullableintegerProp, List<string> requiredNullableArrayOfString = default, bool? requiredNullableBooleanProp = default, DateOnly? requiredNullableDateProp = default, DateTime? requiredNullableDatetimeProp = default, RequiredClassRequiredNullableEnumInteger? requiredNullableEnumInteger = default, RequiredClassRequiredNullableEnumIntegerOnly? requiredNullableEnumIntegerOnly = default, RequiredClassRequiredNullableEnumString? requiredNullableEnumString = default, int? requiredNullableIntegerProp = default, OuterEnumDefaultValue? requiredNullableOuterEnumDefaultValue = default, string requiredNullableStringProp = default, Guid? requiredNullableUuid = default, Option<DateOnly?> notRequiredNotnullableDateProp = default, Option<int?> notRequiredNotnullableintegerProp = default, Option<DateOnly?> notRequiredNullableDateProp = default, Option<int?> notRequiredNullableIntegerProp = default, Option<List<string>> notrequiredNotnullableArrayOfString = default, Option<bool?> notrequiredNotnullableBooleanProp = default, Option<DateTime?> notrequiredNotnullableDatetimeProp = default, Option<RequiredClassRequiredNotnullableEnumInteger?> notrequiredNotnullableEnumInteger = default, Option<RequiredClassRequiredNotnullableEnumIntegerOnly?> notrequiredNotnullableEnumIntegerOnly = default, Option<RequiredClassRequiredNotnullableEnumString?> notrequiredNotnullableEnumString = default, Option<OuterEnumDefaultValue?> notrequiredNotnullableOuterEnumDefaultValue = default, Option<string> notrequiredNotnullableStringProp = default, Option<Guid?> notrequiredNotnullableUuid = default, Option<List<string>> notrequiredNullableArrayOfString = default, Option<bool?> notrequiredNullableBooleanProp = default, Option<DateTime?> notrequiredNullableDatetimeProp = default, Option<RequiredClassRequiredNullableEnumInteger?> notrequiredNullableEnumInteger = default, Option<RequiredClassRequiredNullableEnumIntegerOnly?> notrequiredNullableEnumIntegerOnly = default, Option<RequiredClassRequiredNullableEnumString?> notrequiredNullableEnumString = default, Option<OuterEnumDefaultValue?> notrequiredNullableOuterEnumDefaultValue = default, Option<string> notrequiredNullableStringProp = default, Option<Guid?> notrequiredNullableUuid = default)
public RequiredClass(DateOnly requiredNotNullableDateProp, List<string> requiredNotnullableArrayOfString, bool requiredNotnullableBooleanProp, DateTime requiredNotnullableDatetimeProp, RequiredClassRequiredNotnullableEnumInteger requiredNotnullableEnumInteger, RequiredClassRequiredNotnullableEnumIntegerOnly requiredNotnullableEnumIntegerOnly, RequiredClassRequiredNotnullableEnumString requiredNotnullableEnumString, OuterEnumDefaultValue requiredNotnullableOuterEnumDefaultValue, string requiredNotnullableStringProp, Guid requiredNotnullableUuid, int requiredNotnullableintegerProp, Option<DateOnly?> notRequiredNotnullableDateProp = default, Option<int?> notRequiredNotnullableintegerProp = default, Option<DateOnly?> notRequiredNullableDateProp = default, Option<int?> notRequiredNullableIntegerProp = default, Option<List<string>> notrequiredNotnullableArrayOfString = default, Option<bool?> notrequiredNotnullableBooleanProp = default, Option<DateTime?> notrequiredNotnullableDatetimeProp = default, Option<RequiredClassRequiredNotnullableEnumInteger?> notrequiredNotnullableEnumInteger = default, Option<RequiredClassRequiredNotnullableEnumIntegerOnly?> notrequiredNotnullableEnumIntegerOnly = default, Option<RequiredClassRequiredNotnullableEnumString?> notrequiredNotnullableEnumString = default, Option<OuterEnumDefaultValue?> notrequiredNotnullableOuterEnumDefaultValue = default, Option<string> notrequiredNotnullableStringProp = default, Option<Guid?> notrequiredNotnullableUuid = default, Option<List<string>> notrequiredNullableArrayOfString = default, Option<bool?> notrequiredNullableBooleanProp = default, Option<DateTime?> notrequiredNullableDatetimeProp = default, Option<RequiredClassRequiredNullableEnumInteger?> notrequiredNullableEnumInteger = default, Option<RequiredClassRequiredNullableEnumIntegerOnly?> notrequiredNullableEnumIntegerOnly = default, Option<RequiredClassRequiredNullableEnumString?> notrequiredNullableEnumString = default, Option<OuterEnumDefaultValue?> notrequiredNullableOuterEnumDefaultValue = default, Option<string> notrequiredNullableStringProp = default, Option<Guid?> notrequiredNullableUuid = default, List<string> requiredNullableArrayOfString = default, bool? requiredNullableBooleanProp = default, DateOnly? requiredNullableDateProp = default, DateTime? requiredNullableDatetimeProp = default, RequiredClassRequiredNullableEnumInteger? requiredNullableEnumInteger = default, RequiredClassRequiredNullableEnumIntegerOnly? requiredNullableEnumIntegerOnly = default, RequiredClassRequiredNullableEnumString? requiredNullableEnumString = default, int? requiredNullableIntegerProp = default, OuterEnumDefaultValue? requiredNullableOuterEnumDefaultValue = default, string requiredNullableStringProp = default, Guid? requiredNullableUuid = default)
{
RequiredNotNullableDateProp = requiredNotNullableDateProp;
RequiredNotnullableArrayOfString = requiredNotnullableArrayOfString;
@ -90,17 +90,6 @@ namespace Org.OpenAPITools.Model
RequiredNotnullableStringProp = requiredNotnullableStringProp;
RequiredNotnullableUuid = requiredNotnullableUuid;
RequiredNotnullableintegerProp = requiredNotnullableintegerProp;
RequiredNullableArrayOfString = requiredNullableArrayOfString;
RequiredNullableBooleanProp = requiredNullableBooleanProp;
RequiredNullableDateProp = requiredNullableDateProp;
RequiredNullableDatetimeProp = requiredNullableDatetimeProp;
RequiredNullableEnumInteger = requiredNullableEnumInteger;
RequiredNullableEnumIntegerOnly = requiredNullableEnumIntegerOnly;
RequiredNullableEnumString = requiredNullableEnumString;
RequiredNullableIntegerProp = requiredNullableIntegerProp;
RequiredNullableOuterEnumDefaultValue = requiredNullableOuterEnumDefaultValue;
RequiredNullableStringProp = requiredNullableStringProp;
RequiredNullableUuid = requiredNullableUuid;
NotRequiredNotnullableDatePropOption = notRequiredNotnullableDateProp;
NotRequiredNotnullableintegerPropOption = notRequiredNotnullableintegerProp;
NotRequiredNullableDatePropOption = notRequiredNullableDateProp;
@ -123,6 +112,17 @@ namespace Org.OpenAPITools.Model
NotrequiredNullableOuterEnumDefaultValueOption = notrequiredNullableOuterEnumDefaultValue;
NotrequiredNullableStringPropOption = notrequiredNullableStringProp;
NotrequiredNullableUuidOption = notrequiredNullableUuid;
RequiredNullableArrayOfString = requiredNullableArrayOfString;
RequiredNullableBooleanProp = requiredNullableBooleanProp;
RequiredNullableDateProp = requiredNullableDateProp;
RequiredNullableDatetimeProp = requiredNullableDatetimeProp;
RequiredNullableEnumInteger = requiredNullableEnumInteger;
RequiredNullableEnumIntegerOnly = requiredNullableEnumIntegerOnly;
RequiredNullableEnumString = requiredNullableEnumString;
RequiredNullableIntegerProp = requiredNullableIntegerProp;
RequiredNullableOuterEnumDefaultValue = requiredNullableOuterEnumDefaultValue;
RequiredNullableStringProp = requiredNullableStringProp;
RequiredNullableUuid = requiredNullableUuid;
OnCreated();
}
@ -152,30 +152,6 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("required_notnullable_outerEnumDefaultValue")]
public OuterEnumDefaultValue RequiredNotnullableOuterEnumDefaultValue { get; set; }
/// <summary>
/// Gets or Sets RequiredNullableEnumInteger
/// </summary>
[JsonPropertyName("required_nullable_enum_integer")]
public RequiredClassRequiredNullableEnumInteger? RequiredNullableEnumInteger { get; set; }
/// <summary>
/// Gets or Sets RequiredNullableEnumIntegerOnly
/// </summary>
[JsonPropertyName("required_nullable_enum_integer_only")]
public RequiredClassRequiredNullableEnumIntegerOnly? RequiredNullableEnumIntegerOnly { get; set; }
/// <summary>
/// Gets or Sets RequiredNullableEnumString
/// </summary>
[JsonPropertyName("required_nullable_enum_string")]
public RequiredClassRequiredNullableEnumString? RequiredNullableEnumString { get; set; }
/// <summary>
/// Gets or Sets RequiredNullableOuterEnumDefaultValue
/// </summary>
[JsonPropertyName("required_nullable_outerEnumDefaultValue")]
public OuterEnumDefaultValue? RequiredNullableOuterEnumDefaultValue { get; set; }
/// <summary>
/// Used to track the state of NotrequiredNotnullableEnumInteger
/// </summary>
@ -280,6 +256,30 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("notrequired_nullable_outerEnumDefaultValue")]
public OuterEnumDefaultValue? NotrequiredNullableOuterEnumDefaultValue { get { return this.NotrequiredNullableOuterEnumDefaultValueOption; } set { this.NotrequiredNullableOuterEnumDefaultValueOption = new(value); } }
/// <summary>
/// Gets or Sets RequiredNullableEnumInteger
/// </summary>
[JsonPropertyName("required_nullable_enum_integer")]
public RequiredClassRequiredNullableEnumInteger? RequiredNullableEnumInteger { get; set; }
/// <summary>
/// Gets or Sets RequiredNullableEnumIntegerOnly
/// </summary>
[JsonPropertyName("required_nullable_enum_integer_only")]
public RequiredClassRequiredNullableEnumIntegerOnly? RequiredNullableEnumIntegerOnly { get; set; }
/// <summary>
/// Gets or Sets RequiredNullableEnumString
/// </summary>
[JsonPropertyName("required_nullable_enum_string")]
public RequiredClassRequiredNullableEnumString? RequiredNullableEnumString { get; set; }
/// <summary>
/// Gets or Sets RequiredNullableOuterEnumDefaultValue
/// </summary>
[JsonPropertyName("required_nullable_outerEnumDefaultValue")]
public OuterEnumDefaultValue? RequiredNullableOuterEnumDefaultValue { get; set; }
/// <summary>
/// Gets or Sets RequiredNotNullableDateProp
/// </summary>
@ -323,49 +323,6 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("required_notnullableinteger_prop")]
public int RequiredNotnullableintegerProp { get; set; }
/// <summary>
/// Gets or Sets RequiredNullableArrayOfString
/// </summary>
[JsonPropertyName("required_nullable_array_of_string")]
public List<string> RequiredNullableArrayOfString { get; set; }
/// <summary>
/// Gets or Sets RequiredNullableBooleanProp
/// </summary>
[JsonPropertyName("required_nullable_boolean_prop")]
public bool? RequiredNullableBooleanProp { get; set; }
/// <summary>
/// Gets or Sets RequiredNullableDateProp
/// </summary>
[JsonPropertyName("required_nullable_date_prop")]
public DateOnly? RequiredNullableDateProp { get; set; }
/// <summary>
/// Gets or Sets RequiredNullableDatetimeProp
/// </summary>
[JsonPropertyName("required_nullable_datetime_prop")]
public DateTime? RequiredNullableDatetimeProp { get; set; }
/// <summary>
/// Gets or Sets RequiredNullableIntegerProp
/// </summary>
[JsonPropertyName("required_nullable_integer_prop")]
public int? RequiredNullableIntegerProp { get; set; }
/// <summary>
/// Gets or Sets RequiredNullableStringProp
/// </summary>
[JsonPropertyName("required_nullable_string_prop")]
public string RequiredNullableStringProp { get; set; }
/// <summary>
/// Gets or Sets RequiredNullableUuid
/// </summary>
/// <example>72f98069-206d-4f12-9f12-3d1e525a8e84</example>
[JsonPropertyName("required_nullable_uuid")]
public Guid? RequiredNullableUuid { get; set; }
/// <summary>
/// Used to track the state of NotRequiredNotnullableDateProp
/// </summary>
@ -550,6 +507,49 @@ namespace Org.OpenAPITools.Model
[JsonPropertyName("notrequired_nullable_uuid")]
public Guid? NotrequiredNullableUuid { get { return this.NotrequiredNullableUuidOption; } set { this.NotrequiredNullableUuidOption = new(value); } }
/// <summary>
/// Gets or Sets RequiredNullableArrayOfString
/// </summary>
[JsonPropertyName("required_nullable_array_of_string")]
public List<string> RequiredNullableArrayOfString { get; set; }
/// <summary>
/// Gets or Sets RequiredNullableBooleanProp
/// </summary>
[JsonPropertyName("required_nullable_boolean_prop")]
public bool? RequiredNullableBooleanProp { get; set; }
/// <summary>
/// Gets or Sets RequiredNullableDateProp
/// </summary>
[JsonPropertyName("required_nullable_date_prop")]
public DateOnly? RequiredNullableDateProp { get; set; }
/// <summary>
/// Gets or Sets RequiredNullableDatetimeProp
/// </summary>
[JsonPropertyName("required_nullable_datetime_prop")]
public DateTime? RequiredNullableDatetimeProp { get; set; }
/// <summary>
/// Gets or Sets RequiredNullableIntegerProp
/// </summary>
[JsonPropertyName("required_nullable_integer_prop")]
public int? RequiredNullableIntegerProp { get; set; }
/// <summary>
/// Gets or Sets RequiredNullableStringProp
/// </summary>
[JsonPropertyName("required_nullable_string_prop")]
public string RequiredNullableStringProp { get; set; }
/// <summary>
/// Gets or Sets RequiredNullableUuid
/// </summary>
/// <example>72f98069-206d-4f12-9f12-3d1e525a8e84</example>
[JsonPropertyName("required_nullable_uuid")]
public Guid? RequiredNullableUuid { get; set; }
/// <summary>
/// Gets or Sets additional properties
/// </summary>
@ -575,17 +575,6 @@ namespace Org.OpenAPITools.Model
sb.Append(" RequiredNotnullableStringProp: ").Append(RequiredNotnullableStringProp).Append("\n");
sb.Append(" RequiredNotnullableUuid: ").Append(RequiredNotnullableUuid).Append("\n");
sb.Append(" RequiredNotnullableintegerProp: ").Append(RequiredNotnullableintegerProp).Append("\n");
sb.Append(" RequiredNullableArrayOfString: ").Append(RequiredNullableArrayOfString).Append("\n");
sb.Append(" RequiredNullableBooleanProp: ").Append(RequiredNullableBooleanProp).Append("\n");
sb.Append(" RequiredNullableDateProp: ").Append(RequiredNullableDateProp).Append("\n");
sb.Append(" RequiredNullableDatetimeProp: ").Append(RequiredNullableDatetimeProp).Append("\n");
sb.Append(" RequiredNullableEnumInteger: ").Append(RequiredNullableEnumInteger).Append("\n");
sb.Append(" RequiredNullableEnumIntegerOnly: ").Append(RequiredNullableEnumIntegerOnly).Append("\n");
sb.Append(" RequiredNullableEnumString: ").Append(RequiredNullableEnumString).Append("\n");
sb.Append(" RequiredNullableIntegerProp: ").Append(RequiredNullableIntegerProp).Append("\n");
sb.Append(" RequiredNullableOuterEnumDefaultValue: ").Append(RequiredNullableOuterEnumDefaultValue).Append("\n");
sb.Append(" RequiredNullableStringProp: ").Append(RequiredNullableStringProp).Append("\n");
sb.Append(" RequiredNullableUuid: ").Append(RequiredNullableUuid).Append("\n");
sb.Append(" NotRequiredNotnullableDateProp: ").Append(NotRequiredNotnullableDateProp).Append("\n");
sb.Append(" NotRequiredNotnullableintegerProp: ").Append(NotRequiredNotnullableintegerProp).Append("\n");
sb.Append(" NotRequiredNullableDateProp: ").Append(NotRequiredNullableDateProp).Append("\n");
@ -608,6 +597,17 @@ namespace Org.OpenAPITools.Model
sb.Append(" NotrequiredNullableOuterEnumDefaultValue: ").Append(NotrequiredNullableOuterEnumDefaultValue).Append("\n");
sb.Append(" NotrequiredNullableStringProp: ").Append(NotrequiredNullableStringProp).Append("\n");
sb.Append(" NotrequiredNullableUuid: ").Append(NotrequiredNullableUuid).Append("\n");
sb.Append(" RequiredNullableArrayOfString: ").Append(RequiredNullableArrayOfString).Append("\n");
sb.Append(" RequiredNullableBooleanProp: ").Append(RequiredNullableBooleanProp).Append("\n");
sb.Append(" RequiredNullableDateProp: ").Append(RequiredNullableDateProp).Append("\n");
sb.Append(" RequiredNullableDatetimeProp: ").Append(RequiredNullableDatetimeProp).Append("\n");
sb.Append(" RequiredNullableEnumInteger: ").Append(RequiredNullableEnumInteger).Append("\n");
sb.Append(" RequiredNullableEnumIntegerOnly: ").Append(RequiredNullableEnumIntegerOnly).Append("\n");
sb.Append(" RequiredNullableEnumString: ").Append(RequiredNullableEnumString).Append("\n");
sb.Append(" RequiredNullableIntegerProp: ").Append(RequiredNullableIntegerProp).Append("\n");
sb.Append(" RequiredNullableOuterEnumDefaultValue: ").Append(RequiredNullableOuterEnumDefaultValue).Append("\n");
sb.Append(" RequiredNullableStringProp: ").Append(RequiredNullableStringProp).Append("\n");
sb.Append(" RequiredNullableUuid: ").Append(RequiredNullableUuid).Append("\n");
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
sb.Append("}\n");
return sb.ToString();
@ -639,16 +639,6 @@ namespace Org.OpenAPITools.Model
/// </summary>
public static string RequiredNotnullableDatetimePropFormat { get; set; } = "yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'fffffffK";
/// <summary>
/// The format to use to serialize RequiredNullableDateProp
/// </summary>
public static string RequiredNullableDatePropFormat { get; set; } = "yyyy'-'MM'-'dd";
/// <summary>
/// The format to use to serialize RequiredNullableDatetimeProp
/// </summary>
public static string RequiredNullableDatetimePropFormat { get; set; } = "yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'fffffffK";
/// <summary>
/// The format to use to serialize NotRequiredNotnullableDateProp
/// </summary>
@ -669,6 +659,16 @@ namespace Org.OpenAPITools.Model
/// </summary>
public static string NotrequiredNullableDatetimePropFormat { get; set; } = "yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'fffffffK";
/// <summary>
/// The format to use to serialize RequiredNullableDateProp
/// </summary>
public static string RequiredNullableDatePropFormat { get; set; } = "yyyy'-'MM'-'dd";
/// <summary>
/// The format to use to serialize RequiredNullableDatetimeProp
/// </summary>
public static string RequiredNullableDatetimePropFormat { get; set; } = "yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'fffffffK";
/// <summary>
/// Deserializes json to <see cref="RequiredClass" />
/// </summary>
@ -697,17 +697,6 @@ namespace Org.OpenAPITools.Model
Option<string> requiredNotnullableStringProp = default;
Option<Guid?> requiredNotnullableUuid = default;
Option<int?> requiredNotnullableintegerProp = default;
Option<List<string>> requiredNullableArrayOfString = default;
Option<bool?> requiredNullableBooleanProp = default;
Option<DateOnly?> requiredNullableDateProp = default;
Option<DateTime?> requiredNullableDatetimeProp = default;
Option<RequiredClassRequiredNullableEnumInteger?> requiredNullableEnumInteger = default;
Option<RequiredClassRequiredNullableEnumIntegerOnly?> requiredNullableEnumIntegerOnly = default;
Option<RequiredClassRequiredNullableEnumString?> requiredNullableEnumString = default;
Option<int?> requiredNullableIntegerProp = default;
Option<OuterEnumDefaultValue?> requiredNullableOuterEnumDefaultValue = default;
Option<string> requiredNullableStringProp = default;
Option<Guid?> requiredNullableUuid = default;
Option<DateOnly?> notRequiredNotnullableDateProp = default;
Option<int?> notRequiredNotnullableintegerProp = default;
Option<DateOnly?> notRequiredNullableDateProp = default;
@ -730,6 +719,17 @@ namespace Org.OpenAPITools.Model
Option<OuterEnumDefaultValue?> notrequiredNullableOuterEnumDefaultValue = default;
Option<string> notrequiredNullableStringProp = default;
Option<Guid?> notrequiredNullableUuid = default;
Option<List<string>> requiredNullableArrayOfString = default;
Option<bool?> requiredNullableBooleanProp = default;
Option<DateOnly?> requiredNullableDateProp = default;
Option<DateTime?> requiredNullableDatetimeProp = default;
Option<RequiredClassRequiredNullableEnumInteger?> requiredNullableEnumInteger = default;
Option<RequiredClassRequiredNullableEnumIntegerOnly?> requiredNullableEnumIntegerOnly = default;
Option<RequiredClassRequiredNullableEnumString?> requiredNullableEnumString = default;
Option<int?> requiredNullableIntegerProp = default;
Option<OuterEnumDefaultValue?> requiredNullableOuterEnumDefaultValue = default;
Option<string> requiredNullableStringProp = default;
Option<Guid?> requiredNullableUuid = default;
while (utf8JsonReader.Read())
{
@ -793,53 +793,6 @@ namespace Org.OpenAPITools.Model
if (utf8JsonReader.TokenType != JsonTokenType.Null)
requiredNotnullableintegerProp = new Option<int?>(utf8JsonReader.GetInt32());
break;
case "required_nullable_array_of_string":
if (utf8JsonReader.TokenType != JsonTokenType.Null)
requiredNullableArrayOfString = new Option<List<string>>(JsonSerializer.Deserialize<List<string>>(ref utf8JsonReader, jsonSerializerOptions));
break;
case "required_nullable_boolean_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null)
requiredNullableBooleanProp = new Option<bool?>(utf8JsonReader.GetBoolean());
break;
case "required_nullable_date_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null)
requiredNullableDateProp = new Option<DateOnly?>(JsonSerializer.Deserialize<DateOnly?>(ref utf8JsonReader, jsonSerializerOptions));
break;
case "required_nullable_datetime_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null)
requiredNullableDatetimeProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime?>(ref utf8JsonReader, jsonSerializerOptions));
break;
case "required_nullable_enum_integer":
string requiredNullableEnumIntegerRawValue = utf8JsonReader.GetString();
if (requiredNullableEnumIntegerRawValue != null)
requiredNullableEnumInteger = new Option<RequiredClassRequiredNullableEnumInteger?>(RequiredClassRequiredNullableEnumIntegerValueConverter.FromStringOrDefault(requiredNullableEnumIntegerRawValue));
break;
case "required_nullable_enum_integer_only":
string requiredNullableEnumIntegerOnlyRawValue = utf8JsonReader.GetString();
if (requiredNullableEnumIntegerOnlyRawValue != null)
requiredNullableEnumIntegerOnly = new Option<RequiredClassRequiredNullableEnumIntegerOnly?>(RequiredClassRequiredNullableEnumIntegerOnlyValueConverter.FromStringOrDefault(requiredNullableEnumIntegerOnlyRawValue));
break;
case "required_nullable_enum_string":
string requiredNullableEnumStringRawValue = utf8JsonReader.GetString();
if (requiredNullableEnumStringRawValue != null)
requiredNullableEnumString = new Option<RequiredClassRequiredNullableEnumString?>(RequiredClassRequiredNullableEnumStringValueConverter.FromStringOrDefault(requiredNullableEnumStringRawValue));
break;
case "required_nullable_integer_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null)
requiredNullableIntegerProp = new Option<int?>(utf8JsonReader.GetInt32());
break;
case "required_nullable_outerEnumDefaultValue":
string requiredNullableOuterEnumDefaultValueRawValue = utf8JsonReader.GetString();
if (requiredNullableOuterEnumDefaultValueRawValue != null)
requiredNullableOuterEnumDefaultValue = new Option<OuterEnumDefaultValue?>(OuterEnumDefaultValueValueConverter.FromStringOrDefault(requiredNullableOuterEnumDefaultValueRawValue));
break;
case "required_nullable_string_prop":
requiredNullableStringProp = new Option<string>(utf8JsonReader.GetString());
break;
case "required_nullable_uuid":
if (utf8JsonReader.TokenType != JsonTokenType.Null)
requiredNullableUuid = new Option<Guid?>(utf8JsonReader.GetGuid());
break;
case "not_required_notnullable_date_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null)
notRequiredNotnullableDateProp = new Option<DateOnly?>(JsonSerializer.Deserialize<DateOnly>(ref utf8JsonReader, jsonSerializerOptions));
@ -934,6 +887,53 @@ namespace Org.OpenAPITools.Model
if (utf8JsonReader.TokenType != JsonTokenType.Null)
notrequiredNullableUuid = new Option<Guid?>(utf8JsonReader.GetGuid());
break;
case "required_nullable_array_of_string":
if (utf8JsonReader.TokenType != JsonTokenType.Null)
requiredNullableArrayOfString = new Option<List<string>>(JsonSerializer.Deserialize<List<string>>(ref utf8JsonReader, jsonSerializerOptions));
break;
case "required_nullable_boolean_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null)
requiredNullableBooleanProp = new Option<bool?>(utf8JsonReader.GetBoolean());
break;
case "required_nullable_date_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null)
requiredNullableDateProp = new Option<DateOnly?>(JsonSerializer.Deserialize<DateOnly?>(ref utf8JsonReader, jsonSerializerOptions));
break;
case "required_nullable_datetime_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null)
requiredNullableDatetimeProp = new Option<DateTime?>(JsonSerializer.Deserialize<DateTime?>(ref utf8JsonReader, jsonSerializerOptions));
break;
case "required_nullable_enum_integer":
string requiredNullableEnumIntegerRawValue = utf8JsonReader.GetString();
if (requiredNullableEnumIntegerRawValue != null)
requiredNullableEnumInteger = new Option<RequiredClassRequiredNullableEnumInteger?>(RequiredClassRequiredNullableEnumIntegerValueConverter.FromStringOrDefault(requiredNullableEnumIntegerRawValue));
break;
case "required_nullable_enum_integer_only":
string requiredNullableEnumIntegerOnlyRawValue = utf8JsonReader.GetString();
if (requiredNullableEnumIntegerOnlyRawValue != null)
requiredNullableEnumIntegerOnly = new Option<RequiredClassRequiredNullableEnumIntegerOnly?>(RequiredClassRequiredNullableEnumIntegerOnlyValueConverter.FromStringOrDefault(requiredNullableEnumIntegerOnlyRawValue));
break;
case "required_nullable_enum_string":
string requiredNullableEnumStringRawValue = utf8JsonReader.GetString();
if (requiredNullableEnumStringRawValue != null)
requiredNullableEnumString = new Option<RequiredClassRequiredNullableEnumString?>(RequiredClassRequiredNullableEnumStringValueConverter.FromStringOrDefault(requiredNullableEnumStringRawValue));
break;
case "required_nullable_integer_prop":
if (utf8JsonReader.TokenType != JsonTokenType.Null)
requiredNullableIntegerProp = new Option<int?>(utf8JsonReader.GetInt32());
break;
case "required_nullable_outerEnumDefaultValue":
string requiredNullableOuterEnumDefaultValueRawValue = utf8JsonReader.GetString();
if (requiredNullableOuterEnumDefaultValueRawValue != null)
requiredNullableOuterEnumDefaultValue = new Option<OuterEnumDefaultValue?>(OuterEnumDefaultValueValueConverter.FromStringOrDefault(requiredNullableOuterEnumDefaultValueRawValue));
break;
case "required_nullable_string_prop":
requiredNullableStringProp = new Option<string>(utf8JsonReader.GetString());
break;
case "required_nullable_uuid":
if (utf8JsonReader.TokenType != JsonTokenType.Null)
requiredNullableUuid = new Option<Guid?>(utf8JsonReader.GetGuid());
break;
default:
break;
}
@ -1072,7 +1072,7 @@ namespace Org.OpenAPITools.Model
if (notrequiredNotnullableUuid.IsSet && notrequiredNotnullableUuid.Value == null)
throw new ArgumentNullException(nameof(notrequiredNotnullableUuid), "Property is not nullable for class RequiredClass.");
return new RequiredClass(requiredNotNullableDateProp.Value.Value, requiredNotnullableArrayOfString.Value, requiredNotnullableBooleanProp.Value.Value, requiredNotnullableDatetimeProp.Value.Value, requiredNotnullableEnumInteger.Value.Value, requiredNotnullableEnumIntegerOnly.Value.Value, requiredNotnullableEnumString.Value.Value, requiredNotnullableOuterEnumDefaultValue.Value.Value, requiredNotnullableStringProp.Value, requiredNotnullableUuid.Value.Value, requiredNotnullableintegerProp.Value.Value, requiredNullableArrayOfString.Value, requiredNullableBooleanProp.Value, requiredNullableDateProp.Value, requiredNullableDatetimeProp.Value, requiredNullableEnumInteger.Value, requiredNullableEnumIntegerOnly.Value, requiredNullableEnumString.Value, requiredNullableIntegerProp.Value, requiredNullableOuterEnumDefaultValue.Value, requiredNullableStringProp.Value, requiredNullableUuid.Value, notRequiredNotnullableDateProp, notRequiredNotnullableintegerProp, notRequiredNullableDateProp, notRequiredNullableIntegerProp, notrequiredNotnullableArrayOfString, notrequiredNotnullableBooleanProp, notrequiredNotnullableDatetimeProp, notrequiredNotnullableEnumInteger, notrequiredNotnullableEnumIntegerOnly, notrequiredNotnullableEnumString, notrequiredNotnullableOuterEnumDefaultValue, notrequiredNotnullableStringProp, notrequiredNotnullableUuid, notrequiredNullableArrayOfString, notrequiredNullableBooleanProp, notrequiredNullableDatetimeProp, notrequiredNullableEnumInteger, notrequiredNullableEnumIntegerOnly, notrequiredNullableEnumString, notrequiredNullableOuterEnumDefaultValue, notrequiredNullableStringProp, notrequiredNullableUuid);
return new RequiredClass(requiredNotNullableDateProp.Value.Value, requiredNotnullableArrayOfString.Value, requiredNotnullableBooleanProp.Value.Value, requiredNotnullableDatetimeProp.Value.Value, requiredNotnullableEnumInteger.Value.Value, requiredNotnullableEnumIntegerOnly.Value.Value, requiredNotnullableEnumString.Value.Value, requiredNotnullableOuterEnumDefaultValue.Value.Value, requiredNotnullableStringProp.Value, requiredNotnullableUuid.Value.Value, requiredNotnullableintegerProp.Value.Value, notRequiredNotnullableDateProp, notRequiredNotnullableintegerProp, notRequiredNullableDateProp, notRequiredNullableIntegerProp, notrequiredNotnullableArrayOfString, notrequiredNotnullableBooleanProp, notrequiredNotnullableDatetimeProp, notrequiredNotnullableEnumInteger, notrequiredNotnullableEnumIntegerOnly, notrequiredNotnullableEnumString, notrequiredNotnullableOuterEnumDefaultValue, notrequiredNotnullableStringProp, notrequiredNotnullableUuid, notrequiredNullableArrayOfString, notrequiredNullableBooleanProp, notrequiredNullableDatetimeProp, notrequiredNullableEnumInteger, notrequiredNullableEnumIntegerOnly, notrequiredNullableEnumString, notrequiredNullableOuterEnumDefaultValue, notrequiredNullableStringProp, notrequiredNullableUuid, requiredNullableArrayOfString.Value, requiredNullableBooleanProp.Value, requiredNullableDateProp.Value, requiredNullableDatetimeProp.Value, requiredNullableEnumInteger.Value, requiredNullableEnumIntegerOnly.Value, requiredNullableEnumString.Value, requiredNullableIntegerProp.Value, requiredNullableOuterEnumDefaultValue.Value, requiredNullableStringProp.Value, requiredNullableUuid.Value);
}
/// <summary>
@ -1137,81 +1137,6 @@ namespace Org.OpenAPITools.Model
writer.WriteNumber("required_notnullableinteger_prop", requiredClass.RequiredNotnullableintegerProp);
if (requiredClass.RequiredNullableArrayOfString != null)
{
writer.WritePropertyName("required_nullable_array_of_string");
JsonSerializer.Serialize(writer, requiredClass.RequiredNullableArrayOfString, jsonSerializerOptions);
}
else
writer.WriteNull("required_nullable_array_of_string");
if (requiredClass.RequiredNullableBooleanProp != null)
writer.WriteBoolean("required_nullable_boolean_prop", requiredClass.RequiredNullableBooleanProp.Value);
else
writer.WriteNull("required_nullable_boolean_prop");
if (requiredClass.RequiredNullableDateProp != null)
writer.WriteString("required_nullable_date_prop", requiredClass.RequiredNullableDateProp.Value.ToString(RequiredNullableDatePropFormat));
else
writer.WriteNull("required_nullable_date_prop");
if (requiredClass.RequiredNullableDatetimeProp != null)
writer.WriteString("required_nullable_datetime_prop", requiredClass.RequiredNullableDatetimeProp.Value.ToString(RequiredNullableDatetimePropFormat));
else
writer.WriteNull("required_nullable_datetime_prop");
if (requiredClass.RequiredNullableEnumInteger == null)
writer.WriteNull("required_nullable_enum_integer");
else
{
var requiredNullableEnumIntegerRawValue = RequiredClassRequiredNullableEnumIntegerValueConverter.ToJsonValue(requiredClass.RequiredNullableEnumInteger.Value);
writer.WriteNumber("required_nullable_enum_integer", requiredNullableEnumIntegerRawValue);
}
if (requiredClass.RequiredNullableEnumIntegerOnly == null)
writer.WriteNull("required_nullable_enum_integer_only");
else
{
var requiredNullableEnumIntegerOnlyRawValue = RequiredClassRequiredNullableEnumIntegerOnlyValueConverter.ToJsonValue(requiredClass.RequiredNullableEnumIntegerOnly.Value);
writer.WriteNumber("required_nullable_enum_integer_only", requiredNullableEnumIntegerOnlyRawValue);
}
if (requiredClass.RequiredNullableEnumString == null)
writer.WriteNull("required_nullable_enum_string");
else
{
var requiredNullableEnumStringRawValue = RequiredClassRequiredNullableEnumStringValueConverter.ToJsonValue(requiredClass.RequiredNullableEnumString.Value);
if (requiredNullableEnumStringRawValue != null)
writer.WriteString("required_nullable_enum_string", requiredNullableEnumStringRawValue);
else
writer.WriteNull("required_nullable_enum_string");
}
if (requiredClass.RequiredNullableIntegerProp != null)
writer.WriteNumber("required_nullable_integer_prop", requiredClass.RequiredNullableIntegerProp.Value);
else
writer.WriteNull("required_nullable_integer_prop");
if (requiredClass.RequiredNullableOuterEnumDefaultValue == null)
writer.WriteNull("required_nullable_outerEnumDefaultValue");
else
{
var requiredNullableOuterEnumDefaultValueRawValue = OuterEnumDefaultValueValueConverter.ToJsonValue(requiredClass.RequiredNullableOuterEnumDefaultValue.Value);
if (requiredNullableOuterEnumDefaultValueRawValue != null)
writer.WriteString("required_nullable_outerEnumDefaultValue", requiredNullableOuterEnumDefaultValueRawValue);
else
writer.WriteNull("required_nullable_outerEnumDefaultValue");
}
if (requiredClass.RequiredNullableStringProp != null)
writer.WriteString("required_nullable_string_prop", requiredClass.RequiredNullableStringProp);
else
writer.WriteNull("required_nullable_string_prop");
if (requiredClass.RequiredNullableUuid != null)
writer.WriteString("required_nullable_uuid", requiredClass.RequiredNullableUuid.Value);
else
writer.WriteNull("required_nullable_uuid");
if (requiredClass.NotRequiredNotnullableDatePropOption.IsSet)
writer.WriteString("not_required_notnullable_date_prop", requiredClass.NotRequiredNotnullableDatePropOption.Value.Value.ToString(NotRequiredNotnullableDatePropFormat));
@ -1330,6 +1255,81 @@ namespace Org.OpenAPITools.Model
writer.WriteString("notrequired_nullable_uuid", requiredClass.NotrequiredNullableUuidOption.Value.Value);
else
writer.WriteNull("notrequired_nullable_uuid");
if (requiredClass.RequiredNullableArrayOfString != null)
{
writer.WritePropertyName("required_nullable_array_of_string");
JsonSerializer.Serialize(writer, requiredClass.RequiredNullableArrayOfString, jsonSerializerOptions);
}
else
writer.WriteNull("required_nullable_array_of_string");
if (requiredClass.RequiredNullableBooleanProp != null)
writer.WriteBoolean("required_nullable_boolean_prop", requiredClass.RequiredNullableBooleanProp.Value);
else
writer.WriteNull("required_nullable_boolean_prop");
if (requiredClass.RequiredNullableDateProp != null)
writer.WriteString("required_nullable_date_prop", requiredClass.RequiredNullableDateProp.Value.ToString(RequiredNullableDatePropFormat));
else
writer.WriteNull("required_nullable_date_prop");
if (requiredClass.RequiredNullableDatetimeProp != null)
writer.WriteString("required_nullable_datetime_prop", requiredClass.RequiredNullableDatetimeProp.Value.ToString(RequiredNullableDatetimePropFormat));
else
writer.WriteNull("required_nullable_datetime_prop");
if (requiredClass.RequiredNullableEnumInteger == null)
writer.WriteNull("required_nullable_enum_integer");
else
{
var requiredNullableEnumIntegerRawValue = RequiredClassRequiredNullableEnumIntegerValueConverter.ToJsonValue(requiredClass.RequiredNullableEnumInteger.Value);
writer.WriteNumber("required_nullable_enum_integer", requiredNullableEnumIntegerRawValue);
}
if (requiredClass.RequiredNullableEnumIntegerOnly == null)
writer.WriteNull("required_nullable_enum_integer_only");
else
{
var requiredNullableEnumIntegerOnlyRawValue = RequiredClassRequiredNullableEnumIntegerOnlyValueConverter.ToJsonValue(requiredClass.RequiredNullableEnumIntegerOnly.Value);
writer.WriteNumber("required_nullable_enum_integer_only", requiredNullableEnumIntegerOnlyRawValue);
}
if (requiredClass.RequiredNullableEnumString == null)
writer.WriteNull("required_nullable_enum_string");
else
{
var requiredNullableEnumStringRawValue = RequiredClassRequiredNullableEnumStringValueConverter.ToJsonValue(requiredClass.RequiredNullableEnumString.Value);
if (requiredNullableEnumStringRawValue != null)
writer.WriteString("required_nullable_enum_string", requiredNullableEnumStringRawValue);
else
writer.WriteNull("required_nullable_enum_string");
}
if (requiredClass.RequiredNullableIntegerProp != null)
writer.WriteNumber("required_nullable_integer_prop", requiredClass.RequiredNullableIntegerProp.Value);
else
writer.WriteNull("required_nullable_integer_prop");
if (requiredClass.RequiredNullableOuterEnumDefaultValue == null)
writer.WriteNull("required_nullable_outerEnumDefaultValue");
else
{
var requiredNullableOuterEnumDefaultValueRawValue = OuterEnumDefaultValueValueConverter.ToJsonValue(requiredClass.RequiredNullableOuterEnumDefaultValue.Value);
if (requiredNullableOuterEnumDefaultValueRawValue != null)
writer.WriteString("required_nullable_outerEnumDefaultValue", requiredNullableOuterEnumDefaultValueRawValue);
else
writer.WriteNull("required_nullable_outerEnumDefaultValue");
}
if (requiredClass.RequiredNullableStringProp != null)
writer.WriteString("required_nullable_string_prop", requiredClass.RequiredNullableStringProp);
else
writer.WriteNull("required_nullable_string_prop");
if (requiredClass.RequiredNullableUuid != null)
writer.WriteString("required_nullable_uuid", requiredClass.RequiredNullableUuid.Value);
else
writer.WriteNull("required_nullable_uuid");
}
}
}

View File

@ -54,6 +54,7 @@ docs/models/List.md
docs/models/LiteralStringClass.md
docs/models/Mammal.md
docs/models/MapTest.md
docs/models/MixLog.md
docs/models/MixedPropertiesAndAdditionalPropertiesClass.md
docs/models/Model200Response.md
docs/models/ModelClient.md
@ -184,6 +185,7 @@ src/Org.OpenAPITools/Model/List.cs
src/Org.OpenAPITools/Model/LiteralStringClass.cs
src/Org.OpenAPITools/Model/Mammal.cs
src/Org.OpenAPITools/Model/MapTest.cs
src/Org.OpenAPITools/Model/MixLog.cs
src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
src/Org.OpenAPITools/Model/Model200Response.cs
src/Org.OpenAPITools/Model/ModelClient.cs

View File

@ -2706,6 +2706,108 @@ components:
- a_objVariableobject
- pkiNotificationtestID
type: object
MixLog:
properties:
id:
format: uuid
type: string
description:
type: string
mixDate:
format: date-time
type: string
shopId:
format: uuid
type: string
totalPrice:
format: float
nullable: true
type: number
totalRecalculations:
format: int32
type: integer
totalOverPoors:
format: int32
type: integer
totalSkips:
format: int32
type: integer
totalUnderPours:
format: int32
type: integer
formulaVersionDate:
format: date-time
type: string
someCode:
description: SomeCode is only required for color mixes
nullable: true
type: string
batchNumber:
type: string
brandCode:
description: BrandCode is only required for non-color mixes
type: string
brandId:
description: BrandId is only required for color mixes
type: string
brandName:
description: BrandName is only required for color mixes
type: string
categoryCode:
description: CategoryCode is not used anymore
type: string
color:
description: Color is only required for color mixes
type: string
colorDescription:
type: string
comment:
type: string
commercialProductCode:
type: string
productLineCode:
description: ProductLineCode is only required for color mixes
type: string
country:
type: string
createdBy:
type: string
createdByFirstName:
type: string
createdByLastName:
type: string
deltaECalculationRepaired:
type: string
deltaECalculationSprayout:
type: string
ownColorVariantNumber:
format: int32
nullable: true
type: integer
primerProductId:
type: string
productId:
description: ProductId is only required for color mixes
type: string
productName:
description: ProductName is only required for color mixes
type: string
selectedVersionIndex:
format: int32
type: integer
required:
- description
- formulaVersionDate
- id
- mixDate
- totalOverPoors
- totalRecalculations
- totalSkips
- totalUnderPours
type: object
uuid:
format: uuid
type: string
_foo_get_default_response:
example:
string:

View File

@ -0,0 +1,41 @@
# Org.OpenAPITools.Model.MixLog
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Description** | **string** | |
**FormulaVersionDate** | **DateTime** | |
**Id** | **Guid** | |
**MixDate** | **DateTime** | |
**TotalOverPoors** | **int** | |
**TotalRecalculations** | **int** | |
**TotalSkips** | **int** | |
**TotalUnderPours** | **int** | |
**BatchNumber** | **string** | | [optional]
**BrandCode** | **string** | BrandCode is only required for non-color mixes | [optional]
**BrandId** | **string** | BrandId is only required for color mixes | [optional]
**BrandName** | **string** | BrandName is only required for color mixes | [optional]
**CategoryCode** | **string** | CategoryCode is not used anymore | [optional]
**Color** | **string** | Color is only required for color mixes | [optional]
**ColorDescription** | **string** | | [optional]
**Comment** | **string** | | [optional]
**CommercialProductCode** | **string** | | [optional]
**Country** | **string** | | [optional]
**CreatedBy** | **string** | | [optional]
**CreatedByFirstName** | **string** | | [optional]
**CreatedByLastName** | **string** | | [optional]
**DeltaECalculationRepaired** | **string** | | [optional]
**DeltaECalculationSprayout** | **string** | | [optional]
**OwnColorVariantNumber** | **int** | | [optional]
**PrimerProductId** | **string** | | [optional]
**ProductId** | **string** | ProductId is only required for color mixes | [optional]
**ProductLineCode** | **string** | ProductLineCode is only required for color mixes | [optional]
**ProductName** | **string** | ProductName is only required for color mixes | [optional]
**SelectedVersionIndex** | **int** | | [optional]
**ShopId** | **Guid** | | [optional]
**SomeCode** | **string** | SomeCode is only required for color mixes | [optional]
**TotalPrice** | **float** | | [optional]
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)

View File

@ -15,17 +15,6 @@ Name | Type | Description | Notes
**RequiredNotnullableStringProp** | **string** | |
**RequiredNotnullableUuid** | **Guid** | |
**RequiredNotnullableintegerProp** | **int** | |
**RequiredNullableArrayOfString** | **List&lt;string&gt;** | |
**RequiredNullableBooleanProp** | **bool** | |
**RequiredNullableDateProp** | **DateOnly** | |
**RequiredNullableDatetimeProp** | **DateTime** | |
**RequiredNullableEnumInteger** | **int** | |
**RequiredNullableEnumIntegerOnly** | **int** | |
**RequiredNullableEnumString** | **string** | |
**RequiredNullableIntegerProp** | **int** | |
**RequiredNullableOuterEnumDefaultValue** | **OuterEnumDefaultValue** | |
**RequiredNullableStringProp** | **string** | |
**RequiredNullableUuid** | **Guid** | |
**NotRequiredNotnullableDateProp** | **DateOnly** | | [optional]
**NotRequiredNotnullableintegerProp** | **int** | | [optional]
**NotRequiredNullableDateProp** | **DateOnly** | | [optional]
@ -48,6 +37,17 @@ Name | Type | Description | Notes
**NotrequiredNullableOuterEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional]
**NotrequiredNullableStringProp** | **string** | | [optional]
**NotrequiredNullableUuid** | **Guid** | | [optional]
**RequiredNullableArrayOfString** | **List&lt;string&gt;** | |
**RequiredNullableBooleanProp** | **bool** | |
**RequiredNullableDateProp** | **DateOnly** | |
**RequiredNullableDatetimeProp** | **DateTime** | |
**RequiredNullableEnumInteger** | **int** | |
**RequiredNullableEnumIntegerOnly** | **int** | |
**RequiredNullableEnumString** | **string** | |
**RequiredNullableIntegerProp** | **int** | |
**RequiredNullableOuterEnumDefaultValue** | **OuterEnumDefaultValue** | |
**RequiredNullableStringProp** | **string** | |
**RequiredNullableUuid** | **Guid** | |
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)

View File

@ -0,0 +1,344 @@
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using Xunit;
using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using Org.OpenAPITools.Model;
using Org.OpenAPITools.Client;
using System.Reflection;
namespace Org.OpenAPITools.Test.Model
{
/// <summary>
/// Class for testing MixLog
/// </summary>
/// <remarks>
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
public class MixLogTests : IDisposable
{
// TODO uncomment below to declare an instance variable for MixLog
//private MixLog instance;
public MixLogTests()
{
// TODO uncomment below to create an instance of MixLog
//instance = new MixLog();
}
public void Dispose()
{
// Cleanup when everything is done.
}
/// <summary>
/// Test an instance of MixLog
/// </summary>
[Fact]
public void MixLogInstanceTest()
{
// TODO uncomment below to test "IsType" MixLog
//Assert.IsType<MixLog>(instance);
}
/// <summary>
/// Test the property 'Description'
/// </summary>
[Fact]
public void DescriptionTest()
{
// TODO unit test for the property 'Description'
}
/// <summary>
/// Test the property 'FormulaVersionDate'
/// </summary>
[Fact]
public void FormulaVersionDateTest()
{
// TODO unit test for the property 'FormulaVersionDate'
}
/// <summary>
/// Test the property 'Id'
/// </summary>
[Fact]
public void IdTest()
{
// TODO unit test for the property 'Id'
}
/// <summary>
/// Test the property 'MixDate'
/// </summary>
[Fact]
public void MixDateTest()
{
// TODO unit test for the property 'MixDate'
}
/// <summary>
/// Test the property 'TotalOverPoors'
/// </summary>
[Fact]
public void TotalOverPoorsTest()
{
// TODO unit test for the property 'TotalOverPoors'
}
/// <summary>
/// Test the property 'TotalRecalculations'
/// </summary>
[Fact]
public void TotalRecalculationsTest()
{
// TODO unit test for the property 'TotalRecalculations'
}
/// <summary>
/// Test the property 'TotalSkips'
/// </summary>
[Fact]
public void TotalSkipsTest()
{
// TODO unit test for the property 'TotalSkips'
}
/// <summary>
/// Test the property 'TotalUnderPours'
/// </summary>
[Fact]
public void TotalUnderPoursTest()
{
// TODO unit test for the property 'TotalUnderPours'
}
/// <summary>
/// Test the property 'BatchNumber'
/// </summary>
[Fact]
public void BatchNumberTest()
{
// TODO unit test for the property 'BatchNumber'
}
/// <summary>
/// Test the property 'BrandCode'
/// </summary>
[Fact]
public void BrandCodeTest()
{
// TODO unit test for the property 'BrandCode'
}
/// <summary>
/// Test the property 'BrandId'
/// </summary>
[Fact]
public void BrandIdTest()
{
// TODO unit test for the property 'BrandId'
}
/// <summary>
/// Test the property 'BrandName'
/// </summary>
[Fact]
public void BrandNameTest()
{
// TODO unit test for the property 'BrandName'
}
/// <summary>
/// Test the property 'CategoryCode'
/// </summary>
[Fact]
public void CategoryCodeTest()
{
// TODO unit test for the property 'CategoryCode'
}
/// <summary>
/// Test the property 'Color'
/// </summary>
[Fact]
public void ColorTest()
{
// TODO unit test for the property 'Color'
}
/// <summary>
/// Test the property 'ColorDescription'
/// </summary>
[Fact]
public void ColorDescriptionTest()
{
// TODO unit test for the property 'ColorDescription'
}
/// <summary>
/// Test the property 'Comment'
/// </summary>
[Fact]
public void CommentTest()
{
// TODO unit test for the property 'Comment'
}
/// <summary>
/// Test the property 'CommercialProductCode'
/// </summary>
[Fact]
public void CommercialProductCodeTest()
{
// TODO unit test for the property 'CommercialProductCode'
}
/// <summary>
/// Test the property 'Country'
/// </summary>
[Fact]
public void CountryTest()
{
// TODO unit test for the property 'Country'
}
/// <summary>
/// Test the property 'CreatedBy'
/// </summary>
[Fact]
public void CreatedByTest()
{
// TODO unit test for the property 'CreatedBy'
}
/// <summary>
/// Test the property 'CreatedByFirstName'
/// </summary>
[Fact]
public void CreatedByFirstNameTest()
{
// TODO unit test for the property 'CreatedByFirstName'
}
/// <summary>
/// Test the property 'CreatedByLastName'
/// </summary>
[Fact]
public void CreatedByLastNameTest()
{
// TODO unit test for the property 'CreatedByLastName'
}
/// <summary>
/// Test the property 'DeltaECalculationRepaired'
/// </summary>
[Fact]
public void DeltaECalculationRepairedTest()
{
// TODO unit test for the property 'DeltaECalculationRepaired'
}
/// <summary>
/// Test the property 'DeltaECalculationSprayout'
/// </summary>
[Fact]
public void DeltaECalculationSprayoutTest()
{
// TODO unit test for the property 'DeltaECalculationSprayout'
}
/// <summary>
/// Test the property 'OwnColorVariantNumber'
/// </summary>
[Fact]
public void OwnColorVariantNumberTest()
{
// TODO unit test for the property 'OwnColorVariantNumber'
}
/// <summary>
/// Test the property 'PrimerProductId'
/// </summary>
[Fact]
public void PrimerProductIdTest()
{
// TODO unit test for the property 'PrimerProductId'
}
/// <summary>
/// Test the property 'ProductId'
/// </summary>
[Fact]
public void ProductIdTest()
{
// TODO unit test for the property 'ProductId'
}
/// <summary>
/// Test the property 'ProductLineCode'
/// </summary>
[Fact]
public void ProductLineCodeTest()
{
// TODO unit test for the property 'ProductLineCode'
}
/// <summary>
/// Test the property 'ProductName'
/// </summary>
[Fact]
public void ProductNameTest()
{
// TODO unit test for the property 'ProductName'
}
/// <summary>
/// Test the property 'SelectedVersionIndex'
/// </summary>
[Fact]
public void SelectedVersionIndexTest()
{
// TODO unit test for the property 'SelectedVersionIndex'
}
/// <summary>
/// Test the property 'ShopId'
/// </summary>
[Fact]
public void ShopIdTest()
{
// TODO unit test for the property 'ShopId'
}
/// <summary>
/// Test the property 'SomeCode'
/// </summary>
[Fact]
public void SomeCodeTest()
{
// TODO unit test for the property 'SomeCode'
}
/// <summary>
/// Test the property 'TotalPrice'
/// </summary>
[Fact]
public void TotalPriceTest()
{
// TODO unit test for the property 'TotalPrice'
}
}
}

View File

@ -152,105 +152,6 @@ namespace Org.OpenAPITools.Test.Model
// TODO unit test for the property 'RequiredNotnullableintegerProp'
}
/// <summary>
/// Test the property 'RequiredNullableArrayOfString'
/// </summary>
[Fact]
public void RequiredNullableArrayOfStringTest()
{
// TODO unit test for the property 'RequiredNullableArrayOfString'
}
/// <summary>
/// Test the property 'RequiredNullableBooleanProp'
/// </summary>
[Fact]
public void RequiredNullableBooleanPropTest()
{
// TODO unit test for the property 'RequiredNullableBooleanProp'
}
/// <summary>
/// Test the property 'RequiredNullableDateProp'
/// </summary>
[Fact]
public void RequiredNullableDatePropTest()
{
// TODO unit test for the property 'RequiredNullableDateProp'
}
/// <summary>
/// Test the property 'RequiredNullableDatetimeProp'
/// </summary>
[Fact]
public void RequiredNullableDatetimePropTest()
{
// TODO unit test for the property 'RequiredNullableDatetimeProp'
}
/// <summary>
/// Test the property 'RequiredNullableEnumInteger'
/// </summary>
[Fact]
public void RequiredNullableEnumIntegerTest()
{
// TODO unit test for the property 'RequiredNullableEnumInteger'
}
/// <summary>
/// Test the property 'RequiredNullableEnumIntegerOnly'
/// </summary>
[Fact]
public void RequiredNullableEnumIntegerOnlyTest()
{
// TODO unit test for the property 'RequiredNullableEnumIntegerOnly'
}
/// <summary>
/// Test the property 'RequiredNullableEnumString'
/// </summary>
[Fact]
public void RequiredNullableEnumStringTest()
{
// TODO unit test for the property 'RequiredNullableEnumString'
}
/// <summary>
/// Test the property 'RequiredNullableIntegerProp'
/// </summary>
[Fact]
public void RequiredNullableIntegerPropTest()
{
// TODO unit test for the property 'RequiredNullableIntegerProp'
}
/// <summary>
/// Test the property 'RequiredNullableOuterEnumDefaultValue'
/// </summary>
[Fact]
public void RequiredNullableOuterEnumDefaultValueTest()
{
// TODO unit test for the property 'RequiredNullableOuterEnumDefaultValue'
}
/// <summary>
/// Test the property 'RequiredNullableStringProp'
/// </summary>
[Fact]
public void RequiredNullableStringPropTest()
{
// TODO unit test for the property 'RequiredNullableStringProp'
}
/// <summary>
/// Test the property 'RequiredNullableUuid'
/// </summary>
[Fact]
public void RequiredNullableUuidTest()
{
// TODO unit test for the property 'RequiredNullableUuid'
}
/// <summary>
/// Test the property 'NotRequiredNotnullableDateProp'
/// </summary>
@ -448,5 +349,104 @@ namespace Org.OpenAPITools.Test.Model
{
// TODO unit test for the property 'NotrequiredNullableUuid'
}
/// <summary>
/// Test the property 'RequiredNullableArrayOfString'
/// </summary>
[Fact]
public void RequiredNullableArrayOfStringTest()
{
// TODO unit test for the property 'RequiredNullableArrayOfString'
}
/// <summary>
/// Test the property 'RequiredNullableBooleanProp'
/// </summary>
[Fact]
public void RequiredNullableBooleanPropTest()
{
// TODO unit test for the property 'RequiredNullableBooleanProp'
}
/// <summary>
/// Test the property 'RequiredNullableDateProp'
/// </summary>
[Fact]
public void RequiredNullableDatePropTest()
{
// TODO unit test for the property 'RequiredNullableDateProp'
}
/// <summary>
/// Test the property 'RequiredNullableDatetimeProp'
/// </summary>
[Fact]
public void RequiredNullableDatetimePropTest()
{
// TODO unit test for the property 'RequiredNullableDatetimeProp'
}
/// <summary>
/// Test the property 'RequiredNullableEnumInteger'
/// </summary>
[Fact]
public void RequiredNullableEnumIntegerTest()
{
// TODO unit test for the property 'RequiredNullableEnumInteger'
}
/// <summary>
/// Test the property 'RequiredNullableEnumIntegerOnly'
/// </summary>
[Fact]
public void RequiredNullableEnumIntegerOnlyTest()
{
// TODO unit test for the property 'RequiredNullableEnumIntegerOnly'
}
/// <summary>
/// Test the property 'RequiredNullableEnumString'
/// </summary>
[Fact]
public void RequiredNullableEnumStringTest()
{
// TODO unit test for the property 'RequiredNullableEnumString'
}
/// <summary>
/// Test the property 'RequiredNullableIntegerProp'
/// </summary>
[Fact]
public void RequiredNullableIntegerPropTest()
{
// TODO unit test for the property 'RequiredNullableIntegerProp'
}
/// <summary>
/// Test the property 'RequiredNullableOuterEnumDefaultValue'
/// </summary>
[Fact]
public void RequiredNullableOuterEnumDefaultValueTest()
{
// TODO unit test for the property 'RequiredNullableOuterEnumDefaultValue'
}
/// <summary>
/// Test the property 'RequiredNullableStringProp'
/// </summary>
[Fact]
public void RequiredNullableStringPropTest()
{
// TODO unit test for the property 'RequiredNullableStringProp'
}
/// <summary>
/// Test the property 'RequiredNullableUuid'
/// </summary>
[Fact]
public void RequiredNullableUuidTest()
{
// TODO unit test for the property 'RequiredNullableUuid'
}
}
}

View File

@ -206,12 +206,6 @@ namespace Org.OpenAPITools.Client
return RequiredClass.RequiredNotnullableEnumIntegerOnlyEnumToJsonValue(requiredClassRequiredNotnullableEnumIntegerOnlyEnum).ToString();
if (obj is RequiredClass.RequiredNotnullableEnumStringEnum requiredClassRequiredNotnullableEnumStringEnum)
return RequiredClass.RequiredNotnullableEnumStringEnumToJsonValue(requiredClassRequiredNotnullableEnumStringEnum);
if (obj is RequiredClass.RequiredNullableEnumIntegerEnum requiredClassRequiredNullableEnumIntegerEnum)
return RequiredClass.RequiredNullableEnumIntegerEnumToJsonValue(requiredClassRequiredNullableEnumIntegerEnum).ToString();
if (obj is RequiredClass.RequiredNullableEnumIntegerOnlyEnum requiredClassRequiredNullableEnumIntegerOnlyEnum)
return RequiredClass.RequiredNullableEnumIntegerOnlyEnumToJsonValue(requiredClassRequiredNullableEnumIntegerOnlyEnum).ToString();
if (obj is RequiredClass.RequiredNullableEnumStringEnum requiredClassRequiredNullableEnumStringEnum)
return RequiredClass.RequiredNullableEnumStringEnumToJsonValue(requiredClassRequiredNullableEnumStringEnum);
if (obj is RequiredClass.NotrequiredNotnullableEnumIntegerEnum requiredClassNotrequiredNotnullableEnumIntegerEnum)
return RequiredClass.NotrequiredNotnullableEnumIntegerEnumToJsonValue(requiredClassNotrequiredNotnullableEnumIntegerEnum).ToString();
if (obj is RequiredClass.NotrequiredNotnullableEnumIntegerOnlyEnum requiredClassNotrequiredNotnullableEnumIntegerOnlyEnum)
@ -224,6 +218,12 @@ namespace Org.OpenAPITools.Client
return RequiredClass.NotrequiredNullableEnumIntegerOnlyEnumToJsonValue(requiredClassNotrequiredNullableEnumIntegerOnlyEnum).ToString();
if (obj is RequiredClass.NotrequiredNullableEnumStringEnum requiredClassNotrequiredNullableEnumStringEnum)
return RequiredClass.NotrequiredNullableEnumStringEnumToJsonValue(requiredClassNotrequiredNullableEnumStringEnum);
if (obj is RequiredClass.RequiredNullableEnumIntegerEnum requiredClassRequiredNullableEnumIntegerEnum)
return RequiredClass.RequiredNullableEnumIntegerEnumToJsonValue(requiredClassRequiredNullableEnumIntegerEnum).ToString();
if (obj is RequiredClass.RequiredNullableEnumIntegerOnlyEnum requiredClassRequiredNullableEnumIntegerOnlyEnum)
return RequiredClass.RequiredNullableEnumIntegerOnlyEnumToJsonValue(requiredClassRequiredNullableEnumIntegerOnlyEnum).ToString();
if (obj is RequiredClass.RequiredNullableEnumStringEnum requiredClassRequiredNullableEnumStringEnum)
return RequiredClass.RequiredNullableEnumStringEnumToJsonValue(requiredClassRequiredNullableEnumStringEnum);
if (obj is Zebra.TypeEnum zebraTypeEnum)
return Zebra.TypeEnumToJsonValue(zebraTypeEnum);
if (obj is ZeroBasedEnum zeroBasedEnum)

View File

@ -88,6 +88,7 @@ namespace Org.OpenAPITools.Client
_jsonOptions.Converters.Add(new LiteralStringClassJsonConverter());
_jsonOptions.Converters.Add(new MammalJsonConverter());
_jsonOptions.Converters.Add(new MapTestJsonConverter());
_jsonOptions.Converters.Add(new MixLogJsonConverter());
_jsonOptions.Converters.Add(new MixedPropertiesAndAdditionalPropertiesClassJsonConverter());
_jsonOptions.Converters.Add(new Model200ResponseJsonConverter());
_jsonOptions.Converters.Add(new ModelClientJsonConverter());

View File

@ -54,6 +54,7 @@ docs/models/List.md
docs/models/LiteralStringClass.md
docs/models/Mammal.md
docs/models/MapTest.md
docs/models/MixLog.md
docs/models/MixedPropertiesAndAdditionalPropertiesClass.md
docs/models/Model200Response.md
docs/models/ModelClient.md
@ -184,6 +185,7 @@ src/Org.OpenAPITools/Model/List.cs
src/Org.OpenAPITools/Model/LiteralStringClass.cs
src/Org.OpenAPITools/Model/Mammal.cs
src/Org.OpenAPITools/Model/MapTest.cs
src/Org.OpenAPITools/Model/MixLog.cs
src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
src/Org.OpenAPITools/Model/Model200Response.cs
src/Org.OpenAPITools/Model/ModelClient.cs

View File

@ -2706,6 +2706,108 @@ components:
- a_objVariableobject
- pkiNotificationtestID
type: object
MixLog:
properties:
id:
format: uuid
type: string
description:
type: string
mixDate:
format: date-time
type: string
shopId:
format: uuid
type: string
totalPrice:
format: float
nullable: true
type: number
totalRecalculations:
format: int32
type: integer
totalOverPoors:
format: int32
type: integer
totalSkips:
format: int32
type: integer
totalUnderPours:
format: int32
type: integer
formulaVersionDate:
format: date-time
type: string
someCode:
description: SomeCode is only required for color mixes
nullable: true
type: string
batchNumber:
type: string
brandCode:
description: BrandCode is only required for non-color mixes
type: string
brandId:
description: BrandId is only required for color mixes
type: string
brandName:
description: BrandName is only required for color mixes
type: string
categoryCode:
description: CategoryCode is not used anymore
type: string
color:
description: Color is only required for color mixes
type: string
colorDescription:
type: string
comment:
type: string
commercialProductCode:
type: string
productLineCode:
description: ProductLineCode is only required for color mixes
type: string
country:
type: string
createdBy:
type: string
createdByFirstName:
type: string
createdByLastName:
type: string
deltaECalculationRepaired:
type: string
deltaECalculationSprayout:
type: string
ownColorVariantNumber:
format: int32
nullable: true
type: integer
primerProductId:
type: string
productId:
description: ProductId is only required for color mixes
type: string
productName:
description: ProductName is only required for color mixes
type: string
selectedVersionIndex:
format: int32
type: integer
required:
- description
- formulaVersionDate
- id
- mixDate
- totalOverPoors
- totalRecalculations
- totalSkips
- totalUnderPours
type: object
uuid:
format: uuid
type: string
_foo_get_default_response:
example:
string:

View File

@ -0,0 +1,41 @@
# Org.OpenAPITools.Model.MixLog
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Description** | **string** | |
**FormulaVersionDate** | **DateTime** | |
**Id** | **Guid** | |
**MixDate** | **DateTime** | |
**TotalOverPoors** | **int** | |
**TotalRecalculations** | **int** | |
**TotalSkips** | **int** | |
**TotalUnderPours** | **int** | |
**BatchNumber** | **string** | | [optional]
**BrandCode** | **string** | BrandCode is only required for non-color mixes | [optional]
**BrandId** | **string** | BrandId is only required for color mixes | [optional]
**BrandName** | **string** | BrandName is only required for color mixes | [optional]
**CategoryCode** | **string** | CategoryCode is not used anymore | [optional]
**Color** | **string** | Color is only required for color mixes | [optional]
**ColorDescription** | **string** | | [optional]
**Comment** | **string** | | [optional]
**CommercialProductCode** | **string** | | [optional]
**Country** | **string** | | [optional]
**CreatedBy** | **string** | | [optional]
**CreatedByFirstName** | **string** | | [optional]
**CreatedByLastName** | **string** | | [optional]
**DeltaECalculationRepaired** | **string** | | [optional]
**DeltaECalculationSprayout** | **string** | | [optional]
**OwnColorVariantNumber** | **int** | | [optional]
**PrimerProductId** | **string** | | [optional]
**ProductId** | **string** | ProductId is only required for color mixes | [optional]
**ProductLineCode** | **string** | ProductLineCode is only required for color mixes | [optional]
**ProductName** | **string** | ProductName is only required for color mixes | [optional]
**SelectedVersionIndex** | **int** | | [optional]
**ShopId** | **Guid** | | [optional]
**SomeCode** | **string** | SomeCode is only required for color mixes | [optional]
**TotalPrice** | **float** | | [optional]
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)

View File

@ -15,17 +15,6 @@ Name | Type | Description | Notes
**RequiredNotnullableStringProp** | **string** | |
**RequiredNotnullableUuid** | **Guid** | |
**RequiredNotnullableintegerProp** | **int** | |
**RequiredNullableArrayOfString** | **List&lt;string&gt;** | |
**RequiredNullableBooleanProp** | **bool** | |
**RequiredNullableDateProp** | **DateOnly** | |
**RequiredNullableDatetimeProp** | **DateTime** | |
**RequiredNullableEnumInteger** | **int** | |
**RequiredNullableEnumIntegerOnly** | **int** | |
**RequiredNullableEnumString** | **string** | |
**RequiredNullableIntegerProp** | **int** | |
**RequiredNullableOuterEnumDefaultValue** | **OuterEnumDefaultValue** | |
**RequiredNullableStringProp** | **string** | |
**RequiredNullableUuid** | **Guid** | |
**NotRequiredNotnullableDateProp** | **DateOnly** | | [optional]
**NotRequiredNotnullableintegerProp** | **int** | | [optional]
**NotRequiredNullableDateProp** | **DateOnly** | | [optional]
@ -48,6 +37,17 @@ Name | Type | Description | Notes
**NotrequiredNullableOuterEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional]
**NotrequiredNullableStringProp** | **string** | | [optional]
**NotrequiredNullableUuid** | **Guid** | | [optional]
**RequiredNullableArrayOfString** | **List&lt;string&gt;** | |
**RequiredNullableBooleanProp** | **bool** | |
**RequiredNullableDateProp** | **DateOnly** | |
**RequiredNullableDatetimeProp** | **DateTime** | |
**RequiredNullableEnumInteger** | **int** | |
**RequiredNullableEnumIntegerOnly** | **int** | |
**RequiredNullableEnumString** | **string** | |
**RequiredNullableIntegerProp** | **int** | |
**RequiredNullableOuterEnumDefaultValue** | **OuterEnumDefaultValue** | |
**RequiredNullableStringProp** | **string** | |
**RequiredNullableUuid** | **Guid** | |
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)

View File

@ -0,0 +1,344 @@
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using Xunit;
using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using Org.OpenAPITools.Model;
using Org.OpenAPITools.Client;
using System.Reflection;
namespace Org.OpenAPITools.Test.Model
{
/// <summary>
/// Class for testing MixLog
/// </summary>
/// <remarks>
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
public class MixLogTests : IDisposable
{
// TODO uncomment below to declare an instance variable for MixLog
//private MixLog instance;
public MixLogTests()
{
// TODO uncomment below to create an instance of MixLog
//instance = new MixLog();
}
public void Dispose()
{
// Cleanup when everything is done.
}
/// <summary>
/// Test an instance of MixLog
/// </summary>
[Fact]
public void MixLogInstanceTest()
{
// TODO uncomment below to test "IsType" MixLog
//Assert.IsType<MixLog>(instance);
}
/// <summary>
/// Test the property 'Description'
/// </summary>
[Fact]
public void DescriptionTest()
{
// TODO unit test for the property 'Description'
}
/// <summary>
/// Test the property 'FormulaVersionDate'
/// </summary>
[Fact]
public void FormulaVersionDateTest()
{
// TODO unit test for the property 'FormulaVersionDate'
}
/// <summary>
/// Test the property 'Id'
/// </summary>
[Fact]
public void IdTest()
{
// TODO unit test for the property 'Id'
}
/// <summary>
/// Test the property 'MixDate'
/// </summary>
[Fact]
public void MixDateTest()
{
// TODO unit test for the property 'MixDate'
}
/// <summary>
/// Test the property 'TotalOverPoors'
/// </summary>
[Fact]
public void TotalOverPoorsTest()
{
// TODO unit test for the property 'TotalOverPoors'
}
/// <summary>
/// Test the property 'TotalRecalculations'
/// </summary>
[Fact]
public void TotalRecalculationsTest()
{
// TODO unit test for the property 'TotalRecalculations'
}
/// <summary>
/// Test the property 'TotalSkips'
/// </summary>
[Fact]
public void TotalSkipsTest()
{
// TODO unit test for the property 'TotalSkips'
}
/// <summary>
/// Test the property 'TotalUnderPours'
/// </summary>
[Fact]
public void TotalUnderPoursTest()
{
// TODO unit test for the property 'TotalUnderPours'
}
/// <summary>
/// Test the property 'BatchNumber'
/// </summary>
[Fact]
public void BatchNumberTest()
{
// TODO unit test for the property 'BatchNumber'
}
/// <summary>
/// Test the property 'BrandCode'
/// </summary>
[Fact]
public void BrandCodeTest()
{
// TODO unit test for the property 'BrandCode'
}
/// <summary>
/// Test the property 'BrandId'
/// </summary>
[Fact]
public void BrandIdTest()
{
// TODO unit test for the property 'BrandId'
}
/// <summary>
/// Test the property 'BrandName'
/// </summary>
[Fact]
public void BrandNameTest()
{
// TODO unit test for the property 'BrandName'
}
/// <summary>
/// Test the property 'CategoryCode'
/// </summary>
[Fact]
public void CategoryCodeTest()
{
// TODO unit test for the property 'CategoryCode'
}
/// <summary>
/// Test the property 'Color'
/// </summary>
[Fact]
public void ColorTest()
{
// TODO unit test for the property 'Color'
}
/// <summary>
/// Test the property 'ColorDescription'
/// </summary>
[Fact]
public void ColorDescriptionTest()
{
// TODO unit test for the property 'ColorDescription'
}
/// <summary>
/// Test the property 'Comment'
/// </summary>
[Fact]
public void CommentTest()
{
// TODO unit test for the property 'Comment'
}
/// <summary>
/// Test the property 'CommercialProductCode'
/// </summary>
[Fact]
public void CommercialProductCodeTest()
{
// TODO unit test for the property 'CommercialProductCode'
}
/// <summary>
/// Test the property 'Country'
/// </summary>
[Fact]
public void CountryTest()
{
// TODO unit test for the property 'Country'
}
/// <summary>
/// Test the property 'CreatedBy'
/// </summary>
[Fact]
public void CreatedByTest()
{
// TODO unit test for the property 'CreatedBy'
}
/// <summary>
/// Test the property 'CreatedByFirstName'
/// </summary>
[Fact]
public void CreatedByFirstNameTest()
{
// TODO unit test for the property 'CreatedByFirstName'
}
/// <summary>
/// Test the property 'CreatedByLastName'
/// </summary>
[Fact]
public void CreatedByLastNameTest()
{
// TODO unit test for the property 'CreatedByLastName'
}
/// <summary>
/// Test the property 'DeltaECalculationRepaired'
/// </summary>
[Fact]
public void DeltaECalculationRepairedTest()
{
// TODO unit test for the property 'DeltaECalculationRepaired'
}
/// <summary>
/// Test the property 'DeltaECalculationSprayout'
/// </summary>
[Fact]
public void DeltaECalculationSprayoutTest()
{
// TODO unit test for the property 'DeltaECalculationSprayout'
}
/// <summary>
/// Test the property 'OwnColorVariantNumber'
/// </summary>
[Fact]
public void OwnColorVariantNumberTest()
{
// TODO unit test for the property 'OwnColorVariantNumber'
}
/// <summary>
/// Test the property 'PrimerProductId'
/// </summary>
[Fact]
public void PrimerProductIdTest()
{
// TODO unit test for the property 'PrimerProductId'
}
/// <summary>
/// Test the property 'ProductId'
/// </summary>
[Fact]
public void ProductIdTest()
{
// TODO unit test for the property 'ProductId'
}
/// <summary>
/// Test the property 'ProductLineCode'
/// </summary>
[Fact]
public void ProductLineCodeTest()
{
// TODO unit test for the property 'ProductLineCode'
}
/// <summary>
/// Test the property 'ProductName'
/// </summary>
[Fact]
public void ProductNameTest()
{
// TODO unit test for the property 'ProductName'
}
/// <summary>
/// Test the property 'SelectedVersionIndex'
/// </summary>
[Fact]
public void SelectedVersionIndexTest()
{
// TODO unit test for the property 'SelectedVersionIndex'
}
/// <summary>
/// Test the property 'ShopId'
/// </summary>
[Fact]
public void ShopIdTest()
{
// TODO unit test for the property 'ShopId'
}
/// <summary>
/// Test the property 'SomeCode'
/// </summary>
[Fact]
public void SomeCodeTest()
{
// TODO unit test for the property 'SomeCode'
}
/// <summary>
/// Test the property 'TotalPrice'
/// </summary>
[Fact]
public void TotalPriceTest()
{
// TODO unit test for the property 'TotalPrice'
}
}
}

View File

@ -152,105 +152,6 @@ namespace Org.OpenAPITools.Test.Model
// TODO unit test for the property 'RequiredNotnullableintegerProp'
}
/// <summary>
/// Test the property 'RequiredNullableArrayOfString'
/// </summary>
[Fact]
public void RequiredNullableArrayOfStringTest()
{
// TODO unit test for the property 'RequiredNullableArrayOfString'
}
/// <summary>
/// Test the property 'RequiredNullableBooleanProp'
/// </summary>
[Fact]
public void RequiredNullableBooleanPropTest()
{
// TODO unit test for the property 'RequiredNullableBooleanProp'
}
/// <summary>
/// Test the property 'RequiredNullableDateProp'
/// </summary>
[Fact]
public void RequiredNullableDatePropTest()
{
// TODO unit test for the property 'RequiredNullableDateProp'
}
/// <summary>
/// Test the property 'RequiredNullableDatetimeProp'
/// </summary>
[Fact]
public void RequiredNullableDatetimePropTest()
{
// TODO unit test for the property 'RequiredNullableDatetimeProp'
}
/// <summary>
/// Test the property 'RequiredNullableEnumInteger'
/// </summary>
[Fact]
public void RequiredNullableEnumIntegerTest()
{
// TODO unit test for the property 'RequiredNullableEnumInteger'
}
/// <summary>
/// Test the property 'RequiredNullableEnumIntegerOnly'
/// </summary>
[Fact]
public void RequiredNullableEnumIntegerOnlyTest()
{
// TODO unit test for the property 'RequiredNullableEnumIntegerOnly'
}
/// <summary>
/// Test the property 'RequiredNullableEnumString'
/// </summary>
[Fact]
public void RequiredNullableEnumStringTest()
{
// TODO unit test for the property 'RequiredNullableEnumString'
}
/// <summary>
/// Test the property 'RequiredNullableIntegerProp'
/// </summary>
[Fact]
public void RequiredNullableIntegerPropTest()
{
// TODO unit test for the property 'RequiredNullableIntegerProp'
}
/// <summary>
/// Test the property 'RequiredNullableOuterEnumDefaultValue'
/// </summary>
[Fact]
public void RequiredNullableOuterEnumDefaultValueTest()
{
// TODO unit test for the property 'RequiredNullableOuterEnumDefaultValue'
}
/// <summary>
/// Test the property 'RequiredNullableStringProp'
/// </summary>
[Fact]
public void RequiredNullableStringPropTest()
{
// TODO unit test for the property 'RequiredNullableStringProp'
}
/// <summary>
/// Test the property 'RequiredNullableUuid'
/// </summary>
[Fact]
public void RequiredNullableUuidTest()
{
// TODO unit test for the property 'RequiredNullableUuid'
}
/// <summary>
/// Test the property 'NotRequiredNotnullableDateProp'
/// </summary>
@ -448,5 +349,104 @@ namespace Org.OpenAPITools.Test.Model
{
// TODO unit test for the property 'NotrequiredNullableUuid'
}
/// <summary>
/// Test the property 'RequiredNullableArrayOfString'
/// </summary>
[Fact]
public void RequiredNullableArrayOfStringTest()
{
// TODO unit test for the property 'RequiredNullableArrayOfString'
}
/// <summary>
/// Test the property 'RequiredNullableBooleanProp'
/// </summary>
[Fact]
public void RequiredNullableBooleanPropTest()
{
// TODO unit test for the property 'RequiredNullableBooleanProp'
}
/// <summary>
/// Test the property 'RequiredNullableDateProp'
/// </summary>
[Fact]
public void RequiredNullableDatePropTest()
{
// TODO unit test for the property 'RequiredNullableDateProp'
}
/// <summary>
/// Test the property 'RequiredNullableDatetimeProp'
/// </summary>
[Fact]
public void RequiredNullableDatetimePropTest()
{
// TODO unit test for the property 'RequiredNullableDatetimeProp'
}
/// <summary>
/// Test the property 'RequiredNullableEnumInteger'
/// </summary>
[Fact]
public void RequiredNullableEnumIntegerTest()
{
// TODO unit test for the property 'RequiredNullableEnumInteger'
}
/// <summary>
/// Test the property 'RequiredNullableEnumIntegerOnly'
/// </summary>
[Fact]
public void RequiredNullableEnumIntegerOnlyTest()
{
// TODO unit test for the property 'RequiredNullableEnumIntegerOnly'
}
/// <summary>
/// Test the property 'RequiredNullableEnumString'
/// </summary>
[Fact]
public void RequiredNullableEnumStringTest()
{
// TODO unit test for the property 'RequiredNullableEnumString'
}
/// <summary>
/// Test the property 'RequiredNullableIntegerProp'
/// </summary>
[Fact]
public void RequiredNullableIntegerPropTest()
{
// TODO unit test for the property 'RequiredNullableIntegerProp'
}
/// <summary>
/// Test the property 'RequiredNullableOuterEnumDefaultValue'
/// </summary>
[Fact]
public void RequiredNullableOuterEnumDefaultValueTest()
{
// TODO unit test for the property 'RequiredNullableOuterEnumDefaultValue'
}
/// <summary>
/// Test the property 'RequiredNullableStringProp'
/// </summary>
[Fact]
public void RequiredNullableStringPropTest()
{
// TODO unit test for the property 'RequiredNullableStringProp'
}
/// <summary>
/// Test the property 'RequiredNullableUuid'
/// </summary>
[Fact]
public void RequiredNullableUuidTest()
{
// TODO unit test for the property 'RequiredNullableUuid'
}
}
}

View File

@ -204,12 +204,6 @@ namespace Org.OpenAPITools.Client
return RequiredClass.RequiredNotnullableEnumIntegerOnlyEnumToJsonValue(requiredClassRequiredNotnullableEnumIntegerOnlyEnum).ToString();
if (obj is RequiredClass.RequiredNotnullableEnumStringEnum requiredClassRequiredNotnullableEnumStringEnum)
return RequiredClass.RequiredNotnullableEnumStringEnumToJsonValue(requiredClassRequiredNotnullableEnumStringEnum);
if (obj is RequiredClass.RequiredNullableEnumIntegerEnum requiredClassRequiredNullableEnumIntegerEnum)
return RequiredClass.RequiredNullableEnumIntegerEnumToJsonValue(requiredClassRequiredNullableEnumIntegerEnum).ToString();
if (obj is RequiredClass.RequiredNullableEnumIntegerOnlyEnum requiredClassRequiredNullableEnumIntegerOnlyEnum)
return RequiredClass.RequiredNullableEnumIntegerOnlyEnumToJsonValue(requiredClassRequiredNullableEnumIntegerOnlyEnum).ToString();
if (obj is RequiredClass.RequiredNullableEnumStringEnum requiredClassRequiredNullableEnumStringEnum)
return RequiredClass.RequiredNullableEnumStringEnumToJsonValue(requiredClassRequiredNullableEnumStringEnum);
if (obj is RequiredClass.NotrequiredNotnullableEnumIntegerEnum requiredClassNotrequiredNotnullableEnumIntegerEnum)
return RequiredClass.NotrequiredNotnullableEnumIntegerEnumToJsonValue(requiredClassNotrequiredNotnullableEnumIntegerEnum).ToString();
if (obj is RequiredClass.NotrequiredNotnullableEnumIntegerOnlyEnum requiredClassNotrequiredNotnullableEnumIntegerOnlyEnum)
@ -222,6 +216,12 @@ namespace Org.OpenAPITools.Client
return RequiredClass.NotrequiredNullableEnumIntegerOnlyEnumToJsonValue(requiredClassNotrequiredNullableEnumIntegerOnlyEnum).ToString();
if (obj is RequiredClass.NotrequiredNullableEnumStringEnum requiredClassNotrequiredNullableEnumStringEnum)
return RequiredClass.NotrequiredNullableEnumStringEnumToJsonValue(requiredClassNotrequiredNullableEnumStringEnum);
if (obj is RequiredClass.RequiredNullableEnumIntegerEnum requiredClassRequiredNullableEnumIntegerEnum)
return RequiredClass.RequiredNullableEnumIntegerEnumToJsonValue(requiredClassRequiredNullableEnumIntegerEnum).ToString();
if (obj is RequiredClass.RequiredNullableEnumIntegerOnlyEnum requiredClassRequiredNullableEnumIntegerOnlyEnum)
return RequiredClass.RequiredNullableEnumIntegerOnlyEnumToJsonValue(requiredClassRequiredNullableEnumIntegerOnlyEnum).ToString();
if (obj is RequiredClass.RequiredNullableEnumStringEnum requiredClassRequiredNullableEnumStringEnum)
return RequiredClass.RequiredNullableEnumStringEnumToJsonValue(requiredClassRequiredNullableEnumStringEnum);
if (obj is Zebra.TypeEnum zebraTypeEnum)
return Zebra.TypeEnumToJsonValue(zebraTypeEnum);
if (obj is ZeroBasedEnum zeroBasedEnum)

View File

@ -86,6 +86,7 @@ namespace Org.OpenAPITools.Client
_jsonOptions.Converters.Add(new LiteralStringClassJsonConverter());
_jsonOptions.Converters.Add(new MammalJsonConverter());
_jsonOptions.Converters.Add(new MapTestJsonConverter());
_jsonOptions.Converters.Add(new MixLogJsonConverter());
_jsonOptions.Converters.Add(new MixedPropertiesAndAdditionalPropertiesClassJsonConverter());
_jsonOptions.Converters.Add(new Model200ResponseJsonConverter());
_jsonOptions.Converters.Add(new ModelClientJsonConverter());

View File

@ -54,6 +54,7 @@ docs/models/List.md
docs/models/LiteralStringClass.md
docs/models/Mammal.md
docs/models/MapTest.md
docs/models/MixLog.md
docs/models/MixedPropertiesAndAdditionalPropertiesClass.md
docs/models/Model200Response.md
docs/models/ModelClient.md
@ -184,6 +185,7 @@ src/Org.OpenAPITools/Model/List.cs
src/Org.OpenAPITools/Model/LiteralStringClass.cs
src/Org.OpenAPITools/Model/Mammal.cs
src/Org.OpenAPITools/Model/MapTest.cs
src/Org.OpenAPITools/Model/MixLog.cs
src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
src/Org.OpenAPITools/Model/Model200Response.cs
src/Org.OpenAPITools/Model/ModelClient.cs

View File

@ -2706,6 +2706,108 @@ components:
- a_objVariableobject
- pkiNotificationtestID
type: object
MixLog:
properties:
id:
format: uuid
type: string
description:
type: string
mixDate:
format: date-time
type: string
shopId:
format: uuid
type: string
totalPrice:
format: float
nullable: true
type: number
totalRecalculations:
format: int32
type: integer
totalOverPoors:
format: int32
type: integer
totalSkips:
format: int32
type: integer
totalUnderPours:
format: int32
type: integer
formulaVersionDate:
format: date-time
type: string
someCode:
description: SomeCode is only required for color mixes
nullable: true
type: string
batchNumber:
type: string
brandCode:
description: BrandCode is only required for non-color mixes
type: string
brandId:
description: BrandId is only required for color mixes
type: string
brandName:
description: BrandName is only required for color mixes
type: string
categoryCode:
description: CategoryCode is not used anymore
type: string
color:
description: Color is only required for color mixes
type: string
colorDescription:
type: string
comment:
type: string
commercialProductCode:
type: string
productLineCode:
description: ProductLineCode is only required for color mixes
type: string
country:
type: string
createdBy:
type: string
createdByFirstName:
type: string
createdByLastName:
type: string
deltaECalculationRepaired:
type: string
deltaECalculationSprayout:
type: string
ownColorVariantNumber:
format: int32
nullable: true
type: integer
primerProductId:
type: string
productId:
description: ProductId is only required for color mixes
type: string
productName:
description: ProductName is only required for color mixes
type: string
selectedVersionIndex:
format: int32
type: integer
required:
- description
- formulaVersionDate
- id
- mixDate
- totalOverPoors
- totalRecalculations
- totalSkips
- totalUnderPours
type: object
uuid:
format: uuid
type: string
_foo_get_default_response:
example:
string:

View File

@ -0,0 +1,41 @@
# Org.OpenAPITools.Model.MixLog
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Description** | **string** | |
**FormulaVersionDate** | **DateTime** | |
**Id** | **Guid** | |
**MixDate** | **DateTime** | |
**TotalOverPoors** | **int** | |
**TotalRecalculations** | **int** | |
**TotalSkips** | **int** | |
**TotalUnderPours** | **int** | |
**BatchNumber** | **string** | | [optional]
**BrandCode** | **string** | BrandCode is only required for non-color mixes | [optional]
**BrandId** | **string** | BrandId is only required for color mixes | [optional]
**BrandName** | **string** | BrandName is only required for color mixes | [optional]
**CategoryCode** | **string** | CategoryCode is not used anymore | [optional]
**Color** | **string** | Color is only required for color mixes | [optional]
**ColorDescription** | **string** | | [optional]
**Comment** | **string** | | [optional]
**CommercialProductCode** | **string** | | [optional]
**Country** | **string** | | [optional]
**CreatedBy** | **string** | | [optional]
**CreatedByFirstName** | **string** | | [optional]
**CreatedByLastName** | **string** | | [optional]
**DeltaECalculationRepaired** | **string** | | [optional]
**DeltaECalculationSprayout** | **string** | | [optional]
**OwnColorVariantNumber** | **int** | | [optional]
**PrimerProductId** | **string** | | [optional]
**ProductId** | **string** | ProductId is only required for color mixes | [optional]
**ProductLineCode** | **string** | ProductLineCode is only required for color mixes | [optional]
**ProductName** | **string** | ProductName is only required for color mixes | [optional]
**SelectedVersionIndex** | **int** | | [optional]
**ShopId** | **Guid** | | [optional]
**SomeCode** | **string** | SomeCode is only required for color mixes | [optional]
**TotalPrice** | **float** | | [optional]
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)

View File

@ -15,17 +15,6 @@ Name | Type | Description | Notes
**RequiredNotnullableStringProp** | **string** | |
**RequiredNotnullableUuid** | **Guid** | |
**RequiredNotnullableintegerProp** | **int** | |
**RequiredNullableArrayOfString** | **List&lt;string&gt;** | |
**RequiredNullableBooleanProp** | **bool** | |
**RequiredNullableDateProp** | **DateOnly** | |
**RequiredNullableDatetimeProp** | **DateTime** | |
**RequiredNullableEnumInteger** | **int** | |
**RequiredNullableEnumIntegerOnly** | **int** | |
**RequiredNullableEnumString** | **string** | |
**RequiredNullableIntegerProp** | **int** | |
**RequiredNullableOuterEnumDefaultValue** | **OuterEnumDefaultValue** | |
**RequiredNullableStringProp** | **string** | |
**RequiredNullableUuid** | **Guid** | |
**NotRequiredNotnullableDateProp** | **DateOnly** | | [optional]
**NotRequiredNotnullableintegerProp** | **int** | | [optional]
**NotRequiredNullableDateProp** | **DateOnly** | | [optional]
@ -48,6 +37,17 @@ Name | Type | Description | Notes
**NotrequiredNullableOuterEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional]
**NotrequiredNullableStringProp** | **string** | | [optional]
**NotrequiredNullableUuid** | **Guid** | | [optional]
**RequiredNullableArrayOfString** | **List&lt;string&gt;** | |
**RequiredNullableBooleanProp** | **bool** | |
**RequiredNullableDateProp** | **DateOnly** | |
**RequiredNullableDatetimeProp** | **DateTime** | |
**RequiredNullableEnumInteger** | **int** | |
**RequiredNullableEnumIntegerOnly** | **int** | |
**RequiredNullableEnumString** | **string** | |
**RequiredNullableIntegerProp** | **int** | |
**RequiredNullableOuterEnumDefaultValue** | **OuterEnumDefaultValue** | |
**RequiredNullableStringProp** | **string** | |
**RequiredNullableUuid** | **Guid** | |
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)

View File

@ -0,0 +1,344 @@
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using Xunit;
using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using Org.OpenAPITools.Model;
using Org.OpenAPITools.Client;
using System.Reflection;
namespace Org.OpenAPITools.Test.Model
{
/// <summary>
/// Class for testing MixLog
/// </summary>
/// <remarks>
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
public class MixLogTests : IDisposable
{
// TODO uncomment below to declare an instance variable for MixLog
//private MixLog instance;
public MixLogTests()
{
// TODO uncomment below to create an instance of MixLog
//instance = new MixLog();
}
public void Dispose()
{
// Cleanup when everything is done.
}
/// <summary>
/// Test an instance of MixLog
/// </summary>
[Fact]
public void MixLogInstanceTest()
{
// TODO uncomment below to test "IsType" MixLog
//Assert.IsType<MixLog>(instance);
}
/// <summary>
/// Test the property 'Description'
/// </summary>
[Fact]
public void DescriptionTest()
{
// TODO unit test for the property 'Description'
}
/// <summary>
/// Test the property 'FormulaVersionDate'
/// </summary>
[Fact]
public void FormulaVersionDateTest()
{
// TODO unit test for the property 'FormulaVersionDate'
}
/// <summary>
/// Test the property 'Id'
/// </summary>
[Fact]
public void IdTest()
{
// TODO unit test for the property 'Id'
}
/// <summary>
/// Test the property 'MixDate'
/// </summary>
[Fact]
public void MixDateTest()
{
// TODO unit test for the property 'MixDate'
}
/// <summary>
/// Test the property 'TotalOverPoors'
/// </summary>
[Fact]
public void TotalOverPoorsTest()
{
// TODO unit test for the property 'TotalOverPoors'
}
/// <summary>
/// Test the property 'TotalRecalculations'
/// </summary>
[Fact]
public void TotalRecalculationsTest()
{
// TODO unit test for the property 'TotalRecalculations'
}
/// <summary>
/// Test the property 'TotalSkips'
/// </summary>
[Fact]
public void TotalSkipsTest()
{
// TODO unit test for the property 'TotalSkips'
}
/// <summary>
/// Test the property 'TotalUnderPours'
/// </summary>
[Fact]
public void TotalUnderPoursTest()
{
// TODO unit test for the property 'TotalUnderPours'
}
/// <summary>
/// Test the property 'BatchNumber'
/// </summary>
[Fact]
public void BatchNumberTest()
{
// TODO unit test for the property 'BatchNumber'
}
/// <summary>
/// Test the property 'BrandCode'
/// </summary>
[Fact]
public void BrandCodeTest()
{
// TODO unit test for the property 'BrandCode'
}
/// <summary>
/// Test the property 'BrandId'
/// </summary>
[Fact]
public void BrandIdTest()
{
// TODO unit test for the property 'BrandId'
}
/// <summary>
/// Test the property 'BrandName'
/// </summary>
[Fact]
public void BrandNameTest()
{
// TODO unit test for the property 'BrandName'
}
/// <summary>
/// Test the property 'CategoryCode'
/// </summary>
[Fact]
public void CategoryCodeTest()
{
// TODO unit test for the property 'CategoryCode'
}
/// <summary>
/// Test the property 'Color'
/// </summary>
[Fact]
public void ColorTest()
{
// TODO unit test for the property 'Color'
}
/// <summary>
/// Test the property 'ColorDescription'
/// </summary>
[Fact]
public void ColorDescriptionTest()
{
// TODO unit test for the property 'ColorDescription'
}
/// <summary>
/// Test the property 'Comment'
/// </summary>
[Fact]
public void CommentTest()
{
// TODO unit test for the property 'Comment'
}
/// <summary>
/// Test the property 'CommercialProductCode'
/// </summary>
[Fact]
public void CommercialProductCodeTest()
{
// TODO unit test for the property 'CommercialProductCode'
}
/// <summary>
/// Test the property 'Country'
/// </summary>
[Fact]
public void CountryTest()
{
// TODO unit test for the property 'Country'
}
/// <summary>
/// Test the property 'CreatedBy'
/// </summary>
[Fact]
public void CreatedByTest()
{
// TODO unit test for the property 'CreatedBy'
}
/// <summary>
/// Test the property 'CreatedByFirstName'
/// </summary>
[Fact]
public void CreatedByFirstNameTest()
{
// TODO unit test for the property 'CreatedByFirstName'
}
/// <summary>
/// Test the property 'CreatedByLastName'
/// </summary>
[Fact]
public void CreatedByLastNameTest()
{
// TODO unit test for the property 'CreatedByLastName'
}
/// <summary>
/// Test the property 'DeltaECalculationRepaired'
/// </summary>
[Fact]
public void DeltaECalculationRepairedTest()
{
// TODO unit test for the property 'DeltaECalculationRepaired'
}
/// <summary>
/// Test the property 'DeltaECalculationSprayout'
/// </summary>
[Fact]
public void DeltaECalculationSprayoutTest()
{
// TODO unit test for the property 'DeltaECalculationSprayout'
}
/// <summary>
/// Test the property 'OwnColorVariantNumber'
/// </summary>
[Fact]
public void OwnColorVariantNumberTest()
{
// TODO unit test for the property 'OwnColorVariantNumber'
}
/// <summary>
/// Test the property 'PrimerProductId'
/// </summary>
[Fact]
public void PrimerProductIdTest()
{
// TODO unit test for the property 'PrimerProductId'
}
/// <summary>
/// Test the property 'ProductId'
/// </summary>
[Fact]
public void ProductIdTest()
{
// TODO unit test for the property 'ProductId'
}
/// <summary>
/// Test the property 'ProductLineCode'
/// </summary>
[Fact]
public void ProductLineCodeTest()
{
// TODO unit test for the property 'ProductLineCode'
}
/// <summary>
/// Test the property 'ProductName'
/// </summary>
[Fact]
public void ProductNameTest()
{
// TODO unit test for the property 'ProductName'
}
/// <summary>
/// Test the property 'SelectedVersionIndex'
/// </summary>
[Fact]
public void SelectedVersionIndexTest()
{
// TODO unit test for the property 'SelectedVersionIndex'
}
/// <summary>
/// Test the property 'ShopId'
/// </summary>
[Fact]
public void ShopIdTest()
{
// TODO unit test for the property 'ShopId'
}
/// <summary>
/// Test the property 'SomeCode'
/// </summary>
[Fact]
public void SomeCodeTest()
{
// TODO unit test for the property 'SomeCode'
}
/// <summary>
/// Test the property 'TotalPrice'
/// </summary>
[Fact]
public void TotalPriceTest()
{
// TODO unit test for the property 'TotalPrice'
}
}
}

View File

@ -152,105 +152,6 @@ namespace Org.OpenAPITools.Test.Model
// TODO unit test for the property 'RequiredNotnullableintegerProp'
}
/// <summary>
/// Test the property 'RequiredNullableArrayOfString'
/// </summary>
[Fact]
public void RequiredNullableArrayOfStringTest()
{
// TODO unit test for the property 'RequiredNullableArrayOfString'
}
/// <summary>
/// Test the property 'RequiredNullableBooleanProp'
/// </summary>
[Fact]
public void RequiredNullableBooleanPropTest()
{
// TODO unit test for the property 'RequiredNullableBooleanProp'
}
/// <summary>
/// Test the property 'RequiredNullableDateProp'
/// </summary>
[Fact]
public void RequiredNullableDatePropTest()
{
// TODO unit test for the property 'RequiredNullableDateProp'
}
/// <summary>
/// Test the property 'RequiredNullableDatetimeProp'
/// </summary>
[Fact]
public void RequiredNullableDatetimePropTest()
{
// TODO unit test for the property 'RequiredNullableDatetimeProp'
}
/// <summary>
/// Test the property 'RequiredNullableEnumInteger'
/// </summary>
[Fact]
public void RequiredNullableEnumIntegerTest()
{
// TODO unit test for the property 'RequiredNullableEnumInteger'
}
/// <summary>
/// Test the property 'RequiredNullableEnumIntegerOnly'
/// </summary>
[Fact]
public void RequiredNullableEnumIntegerOnlyTest()
{
// TODO unit test for the property 'RequiredNullableEnumIntegerOnly'
}
/// <summary>
/// Test the property 'RequiredNullableEnumString'
/// </summary>
[Fact]
public void RequiredNullableEnumStringTest()
{
// TODO unit test for the property 'RequiredNullableEnumString'
}
/// <summary>
/// Test the property 'RequiredNullableIntegerProp'
/// </summary>
[Fact]
public void RequiredNullableIntegerPropTest()
{
// TODO unit test for the property 'RequiredNullableIntegerProp'
}
/// <summary>
/// Test the property 'RequiredNullableOuterEnumDefaultValue'
/// </summary>
[Fact]
public void RequiredNullableOuterEnumDefaultValueTest()
{
// TODO unit test for the property 'RequiredNullableOuterEnumDefaultValue'
}
/// <summary>
/// Test the property 'RequiredNullableStringProp'
/// </summary>
[Fact]
public void RequiredNullableStringPropTest()
{
// TODO unit test for the property 'RequiredNullableStringProp'
}
/// <summary>
/// Test the property 'RequiredNullableUuid'
/// </summary>
[Fact]
public void RequiredNullableUuidTest()
{
// TODO unit test for the property 'RequiredNullableUuid'
}
/// <summary>
/// Test the property 'NotRequiredNotnullableDateProp'
/// </summary>
@ -448,5 +349,104 @@ namespace Org.OpenAPITools.Test.Model
{
// TODO unit test for the property 'NotrequiredNullableUuid'
}
/// <summary>
/// Test the property 'RequiredNullableArrayOfString'
/// </summary>
[Fact]
public void RequiredNullableArrayOfStringTest()
{
// TODO unit test for the property 'RequiredNullableArrayOfString'
}
/// <summary>
/// Test the property 'RequiredNullableBooleanProp'
/// </summary>
[Fact]
public void RequiredNullableBooleanPropTest()
{
// TODO unit test for the property 'RequiredNullableBooleanProp'
}
/// <summary>
/// Test the property 'RequiredNullableDateProp'
/// </summary>
[Fact]
public void RequiredNullableDatePropTest()
{
// TODO unit test for the property 'RequiredNullableDateProp'
}
/// <summary>
/// Test the property 'RequiredNullableDatetimeProp'
/// </summary>
[Fact]
public void RequiredNullableDatetimePropTest()
{
// TODO unit test for the property 'RequiredNullableDatetimeProp'
}
/// <summary>
/// Test the property 'RequiredNullableEnumInteger'
/// </summary>
[Fact]
public void RequiredNullableEnumIntegerTest()
{
// TODO unit test for the property 'RequiredNullableEnumInteger'
}
/// <summary>
/// Test the property 'RequiredNullableEnumIntegerOnly'
/// </summary>
[Fact]
public void RequiredNullableEnumIntegerOnlyTest()
{
// TODO unit test for the property 'RequiredNullableEnumIntegerOnly'
}
/// <summary>
/// Test the property 'RequiredNullableEnumString'
/// </summary>
[Fact]
public void RequiredNullableEnumStringTest()
{
// TODO unit test for the property 'RequiredNullableEnumString'
}
/// <summary>
/// Test the property 'RequiredNullableIntegerProp'
/// </summary>
[Fact]
public void RequiredNullableIntegerPropTest()
{
// TODO unit test for the property 'RequiredNullableIntegerProp'
}
/// <summary>
/// Test the property 'RequiredNullableOuterEnumDefaultValue'
/// </summary>
[Fact]
public void RequiredNullableOuterEnumDefaultValueTest()
{
// TODO unit test for the property 'RequiredNullableOuterEnumDefaultValue'
}
/// <summary>
/// Test the property 'RequiredNullableStringProp'
/// </summary>
[Fact]
public void RequiredNullableStringPropTest()
{
// TODO unit test for the property 'RequiredNullableStringProp'
}
/// <summary>
/// Test the property 'RequiredNullableUuid'
/// </summary>
[Fact]
public void RequiredNullableUuidTest()
{
// TODO unit test for the property 'RequiredNullableUuid'
}
}
}

View File

@ -206,12 +206,6 @@ namespace Org.OpenAPITools.Client
return RequiredClass.RequiredNotnullableEnumIntegerOnlyEnumToJsonValue(requiredClassRequiredNotnullableEnumIntegerOnlyEnum).ToString();
if (obj is RequiredClass.RequiredNotnullableEnumStringEnum requiredClassRequiredNotnullableEnumStringEnum)
return RequiredClass.RequiredNotnullableEnumStringEnumToJsonValue(requiredClassRequiredNotnullableEnumStringEnum);
if (obj is RequiredClass.RequiredNullableEnumIntegerEnum requiredClassRequiredNullableEnumIntegerEnum)
return RequiredClass.RequiredNullableEnumIntegerEnumToJsonValue(requiredClassRequiredNullableEnumIntegerEnum).ToString();
if (obj is RequiredClass.RequiredNullableEnumIntegerOnlyEnum requiredClassRequiredNullableEnumIntegerOnlyEnum)
return RequiredClass.RequiredNullableEnumIntegerOnlyEnumToJsonValue(requiredClassRequiredNullableEnumIntegerOnlyEnum).ToString();
if (obj is RequiredClass.RequiredNullableEnumStringEnum requiredClassRequiredNullableEnumStringEnum)
return RequiredClass.RequiredNullableEnumStringEnumToJsonValue(requiredClassRequiredNullableEnumStringEnum);
if (obj is RequiredClass.NotrequiredNotnullableEnumIntegerEnum requiredClassNotrequiredNotnullableEnumIntegerEnum)
return RequiredClass.NotrequiredNotnullableEnumIntegerEnumToJsonValue(requiredClassNotrequiredNotnullableEnumIntegerEnum).ToString();
if (obj is RequiredClass.NotrequiredNotnullableEnumIntegerOnlyEnum requiredClassNotrequiredNotnullableEnumIntegerOnlyEnum)
@ -224,6 +218,12 @@ namespace Org.OpenAPITools.Client
return RequiredClass.NotrequiredNullableEnumIntegerOnlyEnumToJsonValue(requiredClassNotrequiredNullableEnumIntegerOnlyEnum).ToString();
if (obj is RequiredClass.NotrequiredNullableEnumStringEnum requiredClassNotrequiredNullableEnumStringEnum)
return RequiredClass.NotrequiredNullableEnumStringEnumToJsonValue(requiredClassNotrequiredNullableEnumStringEnum);
if (obj is RequiredClass.RequiredNullableEnumIntegerEnum requiredClassRequiredNullableEnumIntegerEnum)
return RequiredClass.RequiredNullableEnumIntegerEnumToJsonValue(requiredClassRequiredNullableEnumIntegerEnum).ToString();
if (obj is RequiredClass.RequiredNullableEnumIntegerOnlyEnum requiredClassRequiredNullableEnumIntegerOnlyEnum)
return RequiredClass.RequiredNullableEnumIntegerOnlyEnumToJsonValue(requiredClassRequiredNullableEnumIntegerOnlyEnum).ToString();
if (obj is RequiredClass.RequiredNullableEnumStringEnum requiredClassRequiredNullableEnumStringEnum)
return RequiredClass.RequiredNullableEnumStringEnumToJsonValue(requiredClassRequiredNullableEnumStringEnum);
if (obj is Zebra.TypeEnum zebraTypeEnum)
return Zebra.TypeEnumToJsonValue(zebraTypeEnum);
if (obj is ZeroBasedEnum zeroBasedEnum)

View File

@ -88,6 +88,7 @@ namespace Org.OpenAPITools.Client
_jsonOptions.Converters.Add(new LiteralStringClassJsonConverter());
_jsonOptions.Converters.Add(new MammalJsonConverter());
_jsonOptions.Converters.Add(new MapTestJsonConverter());
_jsonOptions.Converters.Add(new MixLogJsonConverter());
_jsonOptions.Converters.Add(new MixedPropertiesAndAdditionalPropertiesClassJsonConverter());
_jsonOptions.Converters.Add(new Model200ResponseJsonConverter());
_jsonOptions.Converters.Add(new ModelClientJsonConverter());
@ -188,6 +189,7 @@ namespace Org.OpenAPITools.Client
new LiteralStringClassSerializationContext(),
new MammalSerializationContext(),
new MapTestSerializationContext(),
new MixLogSerializationContext(),
new MixedPropertiesAndAdditionalPropertiesClassSerializationContext(),
new Model200ResponseSerializationContext(),
new ModelClientSerializationContext(),

View File

@ -54,6 +54,7 @@ docs/models/List.md
docs/models/LiteralStringClass.md
docs/models/Mammal.md
docs/models/MapTest.md
docs/models/MixLog.md
docs/models/MixedPropertiesAndAdditionalPropertiesClass.md
docs/models/Model200Response.md
docs/models/ModelClient.md
@ -182,6 +183,7 @@ src/Org.OpenAPITools/Model/List.cs
src/Org.OpenAPITools/Model/LiteralStringClass.cs
src/Org.OpenAPITools/Model/Mammal.cs
src/Org.OpenAPITools/Model/MapTest.cs
src/Org.OpenAPITools/Model/MixLog.cs
src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
src/Org.OpenAPITools/Model/Model200Response.cs
src/Org.OpenAPITools/Model/ModelClient.cs

View File

@ -2706,6 +2706,108 @@ components:
- a_objVariableobject
- pkiNotificationtestID
type: object
MixLog:
properties:
id:
format: uuid
type: string
description:
type: string
mixDate:
format: date-time
type: string
shopId:
format: uuid
type: string
totalPrice:
format: float
nullable: true
type: number
totalRecalculations:
format: int32
type: integer
totalOverPoors:
format: int32
type: integer
totalSkips:
format: int32
type: integer
totalUnderPours:
format: int32
type: integer
formulaVersionDate:
format: date-time
type: string
someCode:
description: SomeCode is only required for color mixes
nullable: true
type: string
batchNumber:
type: string
brandCode:
description: BrandCode is only required for non-color mixes
type: string
brandId:
description: BrandId is only required for color mixes
type: string
brandName:
description: BrandName is only required for color mixes
type: string
categoryCode:
description: CategoryCode is not used anymore
type: string
color:
description: Color is only required for color mixes
type: string
colorDescription:
type: string
comment:
type: string
commercialProductCode:
type: string
productLineCode:
description: ProductLineCode is only required for color mixes
type: string
country:
type: string
createdBy:
type: string
createdByFirstName:
type: string
createdByLastName:
type: string
deltaECalculationRepaired:
type: string
deltaECalculationSprayout:
type: string
ownColorVariantNumber:
format: int32
nullable: true
type: integer
primerProductId:
type: string
productId:
description: ProductId is only required for color mixes
type: string
productName:
description: ProductName is only required for color mixes
type: string
selectedVersionIndex:
format: int32
type: integer
required:
- description
- formulaVersionDate
- id
- mixDate
- totalOverPoors
- totalRecalculations
- totalSkips
- totalUnderPours
type: object
uuid:
format: uuid
type: string
_foo_get_default_response:
example:
string:

View File

@ -0,0 +1,41 @@
# Org.OpenAPITools.Model.MixLog
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Description** | **string** | |
**FormulaVersionDate** | **DateTime** | |
**Id** | **Guid** | |
**MixDate** | **DateTime** | |
**TotalOverPoors** | **int** | |
**TotalRecalculations** | **int** | |
**TotalSkips** | **int** | |
**TotalUnderPours** | **int** | |
**BatchNumber** | **string** | | [optional]
**BrandCode** | **string** | BrandCode is only required for non-color mixes | [optional]
**BrandId** | **string** | BrandId is only required for color mixes | [optional]
**BrandName** | **string** | BrandName is only required for color mixes | [optional]
**CategoryCode** | **string** | CategoryCode is not used anymore | [optional]
**Color** | **string** | Color is only required for color mixes | [optional]
**ColorDescription** | **string** | | [optional]
**Comment** | **string** | | [optional]
**CommercialProductCode** | **string** | | [optional]
**Country** | **string** | | [optional]
**CreatedBy** | **string** | | [optional]
**CreatedByFirstName** | **string** | | [optional]
**CreatedByLastName** | **string** | | [optional]
**DeltaECalculationRepaired** | **string** | | [optional]
**DeltaECalculationSprayout** | **string** | | [optional]
**OwnColorVariantNumber** | **int** | | [optional]
**PrimerProductId** | **string** | | [optional]
**ProductId** | **string** | ProductId is only required for color mixes | [optional]
**ProductLineCode** | **string** | ProductLineCode is only required for color mixes | [optional]
**ProductName** | **string** | ProductName is only required for color mixes | [optional]
**SelectedVersionIndex** | **int** | | [optional]
**ShopId** | **Guid** | | [optional]
**SomeCode** | **string** | SomeCode is only required for color mixes | [optional]
**TotalPrice** | **float** | | [optional]
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)

View File

@ -15,17 +15,6 @@ Name | Type | Description | Notes
**RequiredNotnullableStringProp** | **string** | |
**RequiredNotnullableUuid** | **Guid** | |
**RequiredNotnullableintegerProp** | **int** | |
**RequiredNullableArrayOfString** | **List&lt;string&gt;** | |
**RequiredNullableBooleanProp** | **bool** | |
**RequiredNullableDateProp** | **DateTime** | |
**RequiredNullableDatetimeProp** | **DateTime** | |
**RequiredNullableEnumInteger** | **int** | |
**RequiredNullableEnumIntegerOnly** | **int** | |
**RequiredNullableEnumString** | **string** | |
**RequiredNullableIntegerProp** | **int** | |
**RequiredNullableOuterEnumDefaultValue** | **OuterEnumDefaultValue** | |
**RequiredNullableStringProp** | **string** | |
**RequiredNullableUuid** | **Guid** | |
**NotRequiredNotnullableDateProp** | **DateTime** | | [optional]
**NotRequiredNotnullableintegerProp** | **int** | | [optional]
**NotRequiredNullableDateProp** | **DateTime** | | [optional]
@ -48,6 +37,17 @@ Name | Type | Description | Notes
**NotrequiredNullableOuterEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional]
**NotrequiredNullableStringProp** | **string** | | [optional]
**NotrequiredNullableUuid** | **Guid** | | [optional]
**RequiredNullableArrayOfString** | **List&lt;string&gt;** | |
**RequiredNullableBooleanProp** | **bool** | |
**RequiredNullableDateProp** | **DateTime** | |
**RequiredNullableDatetimeProp** | **DateTime** | |
**RequiredNullableEnumInteger** | **int** | |
**RequiredNullableEnumIntegerOnly** | **int** | |
**RequiredNullableEnumString** | **string** | |
**RequiredNullableIntegerProp** | **int** | |
**RequiredNullableOuterEnumDefaultValue** | **OuterEnumDefaultValue** | |
**RequiredNullableStringProp** | **string** | |
**RequiredNullableUuid** | **Guid** | |
[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)

View File

@ -0,0 +1,344 @@
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using Xunit;
using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using Org.OpenAPITools.Model;
using Org.OpenAPITools.Client;
using System.Reflection;
namespace Org.OpenAPITools.Test.Model
{
/// <summary>
/// Class for testing MixLog
/// </summary>
/// <remarks>
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
public class MixLogTests : IDisposable
{
// TODO uncomment below to declare an instance variable for MixLog
//private MixLog instance;
public MixLogTests()
{
// TODO uncomment below to create an instance of MixLog
//instance = new MixLog();
}
public void Dispose()
{
// Cleanup when everything is done.
}
/// <summary>
/// Test an instance of MixLog
/// </summary>
[Fact]
public void MixLogInstanceTest()
{
// TODO uncomment below to test "IsType" MixLog
//Assert.IsType<MixLog>(instance);
}
/// <summary>
/// Test the property 'Description'
/// </summary>
[Fact]
public void DescriptionTest()
{
// TODO unit test for the property 'Description'
}
/// <summary>
/// Test the property 'FormulaVersionDate'
/// </summary>
[Fact]
public void FormulaVersionDateTest()
{
// TODO unit test for the property 'FormulaVersionDate'
}
/// <summary>
/// Test the property 'Id'
/// </summary>
[Fact]
public void IdTest()
{
// TODO unit test for the property 'Id'
}
/// <summary>
/// Test the property 'MixDate'
/// </summary>
[Fact]
public void MixDateTest()
{
// TODO unit test for the property 'MixDate'
}
/// <summary>
/// Test the property 'TotalOverPoors'
/// </summary>
[Fact]
public void TotalOverPoorsTest()
{
// TODO unit test for the property 'TotalOverPoors'
}
/// <summary>
/// Test the property 'TotalRecalculations'
/// </summary>
[Fact]
public void TotalRecalculationsTest()
{
// TODO unit test for the property 'TotalRecalculations'
}
/// <summary>
/// Test the property 'TotalSkips'
/// </summary>
[Fact]
public void TotalSkipsTest()
{
// TODO unit test for the property 'TotalSkips'
}
/// <summary>
/// Test the property 'TotalUnderPours'
/// </summary>
[Fact]
public void TotalUnderPoursTest()
{
// TODO unit test for the property 'TotalUnderPours'
}
/// <summary>
/// Test the property 'BatchNumber'
/// </summary>
[Fact]
public void BatchNumberTest()
{
// TODO unit test for the property 'BatchNumber'
}
/// <summary>
/// Test the property 'BrandCode'
/// </summary>
[Fact]
public void BrandCodeTest()
{
// TODO unit test for the property 'BrandCode'
}
/// <summary>
/// Test the property 'BrandId'
/// </summary>
[Fact]
public void BrandIdTest()
{
// TODO unit test for the property 'BrandId'
}
/// <summary>
/// Test the property 'BrandName'
/// </summary>
[Fact]
public void BrandNameTest()
{
// TODO unit test for the property 'BrandName'
}
/// <summary>
/// Test the property 'CategoryCode'
/// </summary>
[Fact]
public void CategoryCodeTest()
{
// TODO unit test for the property 'CategoryCode'
}
/// <summary>
/// Test the property 'Color'
/// </summary>
[Fact]
public void ColorTest()
{
// TODO unit test for the property 'Color'
}
/// <summary>
/// Test the property 'ColorDescription'
/// </summary>
[Fact]
public void ColorDescriptionTest()
{
// TODO unit test for the property 'ColorDescription'
}
/// <summary>
/// Test the property 'Comment'
/// </summary>
[Fact]
public void CommentTest()
{
// TODO unit test for the property 'Comment'
}
/// <summary>
/// Test the property 'CommercialProductCode'
/// </summary>
[Fact]
public void CommercialProductCodeTest()
{
// TODO unit test for the property 'CommercialProductCode'
}
/// <summary>
/// Test the property 'Country'
/// </summary>
[Fact]
public void CountryTest()
{
// TODO unit test for the property 'Country'
}
/// <summary>
/// Test the property 'CreatedBy'
/// </summary>
[Fact]
public void CreatedByTest()
{
// TODO unit test for the property 'CreatedBy'
}
/// <summary>
/// Test the property 'CreatedByFirstName'
/// </summary>
[Fact]
public void CreatedByFirstNameTest()
{
// TODO unit test for the property 'CreatedByFirstName'
}
/// <summary>
/// Test the property 'CreatedByLastName'
/// </summary>
[Fact]
public void CreatedByLastNameTest()
{
// TODO unit test for the property 'CreatedByLastName'
}
/// <summary>
/// Test the property 'DeltaECalculationRepaired'
/// </summary>
[Fact]
public void DeltaECalculationRepairedTest()
{
// TODO unit test for the property 'DeltaECalculationRepaired'
}
/// <summary>
/// Test the property 'DeltaECalculationSprayout'
/// </summary>
[Fact]
public void DeltaECalculationSprayoutTest()
{
// TODO unit test for the property 'DeltaECalculationSprayout'
}
/// <summary>
/// Test the property 'OwnColorVariantNumber'
/// </summary>
[Fact]
public void OwnColorVariantNumberTest()
{
// TODO unit test for the property 'OwnColorVariantNumber'
}
/// <summary>
/// Test the property 'PrimerProductId'
/// </summary>
[Fact]
public void PrimerProductIdTest()
{
// TODO unit test for the property 'PrimerProductId'
}
/// <summary>
/// Test the property 'ProductId'
/// </summary>
[Fact]
public void ProductIdTest()
{
// TODO unit test for the property 'ProductId'
}
/// <summary>
/// Test the property 'ProductLineCode'
/// </summary>
[Fact]
public void ProductLineCodeTest()
{
// TODO unit test for the property 'ProductLineCode'
}
/// <summary>
/// Test the property 'ProductName'
/// </summary>
[Fact]
public void ProductNameTest()
{
// TODO unit test for the property 'ProductName'
}
/// <summary>
/// Test the property 'SelectedVersionIndex'
/// </summary>
[Fact]
public void SelectedVersionIndexTest()
{
// TODO unit test for the property 'SelectedVersionIndex'
}
/// <summary>
/// Test the property 'ShopId'
/// </summary>
[Fact]
public void ShopIdTest()
{
// TODO unit test for the property 'ShopId'
}
/// <summary>
/// Test the property 'SomeCode'
/// </summary>
[Fact]
public void SomeCodeTest()
{
// TODO unit test for the property 'SomeCode'
}
/// <summary>
/// Test the property 'TotalPrice'
/// </summary>
[Fact]
public void TotalPriceTest()
{
// TODO unit test for the property 'TotalPrice'
}
}
}

View File

@ -152,105 +152,6 @@ namespace Org.OpenAPITools.Test.Model
// TODO unit test for the property 'RequiredNotnullableintegerProp'
}
/// <summary>
/// Test the property 'RequiredNullableArrayOfString'
/// </summary>
[Fact]
public void RequiredNullableArrayOfStringTest()
{
// TODO unit test for the property 'RequiredNullableArrayOfString'
}
/// <summary>
/// Test the property 'RequiredNullableBooleanProp'
/// </summary>
[Fact]
public void RequiredNullableBooleanPropTest()
{
// TODO unit test for the property 'RequiredNullableBooleanProp'
}
/// <summary>
/// Test the property 'RequiredNullableDateProp'
/// </summary>
[Fact]
public void RequiredNullableDatePropTest()
{
// TODO unit test for the property 'RequiredNullableDateProp'
}
/// <summary>
/// Test the property 'RequiredNullableDatetimeProp'
/// </summary>
[Fact]
public void RequiredNullableDatetimePropTest()
{
// TODO unit test for the property 'RequiredNullableDatetimeProp'
}
/// <summary>
/// Test the property 'RequiredNullableEnumInteger'
/// </summary>
[Fact]
public void RequiredNullableEnumIntegerTest()
{
// TODO unit test for the property 'RequiredNullableEnumInteger'
}
/// <summary>
/// Test the property 'RequiredNullableEnumIntegerOnly'
/// </summary>
[Fact]
public void RequiredNullableEnumIntegerOnlyTest()
{
// TODO unit test for the property 'RequiredNullableEnumIntegerOnly'
}
/// <summary>
/// Test the property 'RequiredNullableEnumString'
/// </summary>
[Fact]
public void RequiredNullableEnumStringTest()
{
// TODO unit test for the property 'RequiredNullableEnumString'
}
/// <summary>
/// Test the property 'RequiredNullableIntegerProp'
/// </summary>
[Fact]
public void RequiredNullableIntegerPropTest()
{
// TODO unit test for the property 'RequiredNullableIntegerProp'
}
/// <summary>
/// Test the property 'RequiredNullableOuterEnumDefaultValue'
/// </summary>
[Fact]
public void RequiredNullableOuterEnumDefaultValueTest()
{
// TODO unit test for the property 'RequiredNullableOuterEnumDefaultValue'
}
/// <summary>
/// Test the property 'RequiredNullableStringProp'
/// </summary>
[Fact]
public void RequiredNullableStringPropTest()
{
// TODO unit test for the property 'RequiredNullableStringProp'
}
/// <summary>
/// Test the property 'RequiredNullableUuid'
/// </summary>
[Fact]
public void RequiredNullableUuidTest()
{
// TODO unit test for the property 'RequiredNullableUuid'
}
/// <summary>
/// Test the property 'NotRequiredNotnullableDateProp'
/// </summary>
@ -448,5 +349,104 @@ namespace Org.OpenAPITools.Test.Model
{
// TODO unit test for the property 'NotrequiredNullableUuid'
}
/// <summary>
/// Test the property 'RequiredNullableArrayOfString'
/// </summary>
[Fact]
public void RequiredNullableArrayOfStringTest()
{
// TODO unit test for the property 'RequiredNullableArrayOfString'
}
/// <summary>
/// Test the property 'RequiredNullableBooleanProp'
/// </summary>
[Fact]
public void RequiredNullableBooleanPropTest()
{
// TODO unit test for the property 'RequiredNullableBooleanProp'
}
/// <summary>
/// Test the property 'RequiredNullableDateProp'
/// </summary>
[Fact]
public void RequiredNullableDatePropTest()
{
// TODO unit test for the property 'RequiredNullableDateProp'
}
/// <summary>
/// Test the property 'RequiredNullableDatetimeProp'
/// </summary>
[Fact]
public void RequiredNullableDatetimePropTest()
{
// TODO unit test for the property 'RequiredNullableDatetimeProp'
}
/// <summary>
/// Test the property 'RequiredNullableEnumInteger'
/// </summary>
[Fact]
public void RequiredNullableEnumIntegerTest()
{
// TODO unit test for the property 'RequiredNullableEnumInteger'
}
/// <summary>
/// Test the property 'RequiredNullableEnumIntegerOnly'
/// </summary>
[Fact]
public void RequiredNullableEnumIntegerOnlyTest()
{
// TODO unit test for the property 'RequiredNullableEnumIntegerOnly'
}
/// <summary>
/// Test the property 'RequiredNullableEnumString'
/// </summary>
[Fact]
public void RequiredNullableEnumStringTest()
{
// TODO unit test for the property 'RequiredNullableEnumString'
}
/// <summary>
/// Test the property 'RequiredNullableIntegerProp'
/// </summary>
[Fact]
public void RequiredNullableIntegerPropTest()
{
// TODO unit test for the property 'RequiredNullableIntegerProp'
}
/// <summary>
/// Test the property 'RequiredNullableOuterEnumDefaultValue'
/// </summary>
[Fact]
public void RequiredNullableOuterEnumDefaultValueTest()
{
// TODO unit test for the property 'RequiredNullableOuterEnumDefaultValue'
}
/// <summary>
/// Test the property 'RequiredNullableStringProp'
/// </summary>
[Fact]
public void RequiredNullableStringPropTest()
{
// TODO unit test for the property 'RequiredNullableStringProp'
}
/// <summary>
/// Test the property 'RequiredNullableUuid'
/// </summary>
[Fact]
public void RequiredNullableUuidTest()
{
// TODO unit test for the property 'RequiredNullableUuid'
}
}
}

View File

@ -207,12 +207,6 @@ namespace Org.OpenAPITools.Client
return RequiredClass.RequiredNotnullableEnumIntegerOnlyEnumToJsonValue(requiredClassRequiredNotnullableEnumIntegerOnlyEnum).ToString();
if (obj is RequiredClass.RequiredNotnullableEnumStringEnum requiredClassRequiredNotnullableEnumStringEnum)
return RequiredClass.RequiredNotnullableEnumStringEnumToJsonValue(requiredClassRequiredNotnullableEnumStringEnum);
if (obj is RequiredClass.RequiredNullableEnumIntegerEnum requiredClassRequiredNullableEnumIntegerEnum)
return RequiredClass.RequiredNullableEnumIntegerEnumToJsonValue(requiredClassRequiredNullableEnumIntegerEnum).ToString();
if (obj is RequiredClass.RequiredNullableEnumIntegerOnlyEnum requiredClassRequiredNullableEnumIntegerOnlyEnum)
return RequiredClass.RequiredNullableEnumIntegerOnlyEnumToJsonValue(requiredClassRequiredNullableEnumIntegerOnlyEnum).ToString();
if (obj is RequiredClass.RequiredNullableEnumStringEnum requiredClassRequiredNullableEnumStringEnum)
return RequiredClass.RequiredNullableEnumStringEnumToJsonValue(requiredClassRequiredNullableEnumStringEnum);
if (obj is RequiredClass.NotrequiredNotnullableEnumIntegerEnum requiredClassNotrequiredNotnullableEnumIntegerEnum)
return RequiredClass.NotrequiredNotnullableEnumIntegerEnumToJsonValue(requiredClassNotrequiredNotnullableEnumIntegerEnum).ToString();
if (obj is RequiredClass.NotrequiredNotnullableEnumIntegerOnlyEnum requiredClassNotrequiredNotnullableEnumIntegerOnlyEnum)
@ -225,6 +219,12 @@ namespace Org.OpenAPITools.Client
return RequiredClass.NotrequiredNullableEnumIntegerOnlyEnumToJsonValue(requiredClassNotrequiredNullableEnumIntegerOnlyEnum).ToString();
if (obj is RequiredClass.NotrequiredNullableEnumStringEnum requiredClassNotrequiredNullableEnumStringEnum)
return RequiredClass.NotrequiredNullableEnumStringEnumToJsonValue(requiredClassNotrequiredNullableEnumStringEnum);
if (obj is RequiredClass.RequiredNullableEnumIntegerEnum requiredClassRequiredNullableEnumIntegerEnum)
return RequiredClass.RequiredNullableEnumIntegerEnumToJsonValue(requiredClassRequiredNullableEnumIntegerEnum).ToString();
if (obj is RequiredClass.RequiredNullableEnumIntegerOnlyEnum requiredClassRequiredNullableEnumIntegerOnlyEnum)
return RequiredClass.RequiredNullableEnumIntegerOnlyEnumToJsonValue(requiredClassRequiredNullableEnumIntegerOnlyEnum).ToString();
if (obj is RequiredClass.RequiredNullableEnumStringEnum requiredClassRequiredNullableEnumStringEnum)
return RequiredClass.RequiredNullableEnumStringEnumToJsonValue(requiredClassRequiredNullableEnumStringEnum);
if (obj is Zebra.TypeEnum zebraTypeEnum)
return Zebra.TypeEnumToJsonValue(zebraTypeEnum);
if (obj is ZeroBasedEnum zeroBasedEnum)

View File

@ -84,6 +84,7 @@ namespace Org.OpenAPITools.Client
_jsonOptions.Converters.Add(new LiteralStringClassJsonConverter());
_jsonOptions.Converters.Add(new MammalJsonConverter());
_jsonOptions.Converters.Add(new MapTestJsonConverter());
_jsonOptions.Converters.Add(new MixLogJsonConverter());
_jsonOptions.Converters.Add(new MixedPropertiesAndAdditionalPropertiesClassJsonConverter());
_jsonOptions.Converters.Add(new Model200ResponseJsonConverter());
_jsonOptions.Converters.Add(new ModelClientJsonConverter());

View File

@ -51,6 +51,7 @@ docs/List.md
docs/LiteralStringClass.md
docs/Mammal.md
docs/MapTest.md
docs/MixLog.md
docs/MixedPropertiesAndAdditionalPropertiesClass.md
docs/Model200Response.md
docs/ModelClient.md
@ -171,6 +172,7 @@ src/Org.OpenAPITools/Model/List.cs
src/Org.OpenAPITools/Model/LiteralStringClass.cs
src/Org.OpenAPITools/Model/Mammal.cs
src/Org.OpenAPITools/Model/MapTest.cs
src/Org.OpenAPITools/Model/MixLog.cs
src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
src/Org.OpenAPITools/Model/Model200Response.cs
src/Org.OpenAPITools/Model/ModelClient.cs

View File

@ -224,6 +224,7 @@ Class | Method | HTTP request | Description
- [Model.LiteralStringClass](docs/LiteralStringClass.md)
- [Model.Mammal](docs/Mammal.md)
- [Model.MapTest](docs/MapTest.md)
- [Model.MixLog](docs/MixLog.md)
- [Model.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
- [Model.Model200Response](docs/Model200Response.md)
- [Model.ModelClient](docs/ModelClient.md)

View File

@ -2706,6 +2706,108 @@ components:
- a_objVariableobject
- pkiNotificationtestID
type: object
MixLog:
properties:
id:
format: uuid
type: string
description:
type: string
mixDate:
format: date-time
type: string
shopId:
format: uuid
type: string
totalPrice:
format: float
nullable: true
type: number
totalRecalculations:
format: int32
type: integer
totalOverPoors:
format: int32
type: integer
totalSkips:
format: int32
type: integer
totalUnderPours:
format: int32
type: integer
formulaVersionDate:
format: date-time
type: string
someCode:
description: SomeCode is only required for color mixes
nullable: true
type: string
batchNumber:
type: string
brandCode:
description: BrandCode is only required for non-color mixes
type: string
brandId:
description: BrandId is only required for color mixes
type: string
brandName:
description: BrandName is only required for color mixes
type: string
categoryCode:
description: CategoryCode is not used anymore
type: string
color:
description: Color is only required for color mixes
type: string
colorDescription:
type: string
comment:
type: string
commercialProductCode:
type: string
productLineCode:
description: ProductLineCode is only required for color mixes
type: string
country:
type: string
createdBy:
type: string
createdByFirstName:
type: string
createdByLastName:
type: string
deltaECalculationRepaired:
type: string
deltaECalculationSprayout:
type: string
ownColorVariantNumber:
format: int32
nullable: true
type: integer
primerProductId:
type: string
productId:
description: ProductId is only required for color mixes
type: string
productName:
description: ProductName is only required for color mixes
type: string
selectedVersionIndex:
format: int32
type: integer
required:
- description
- formulaVersionDate
- id
- mixDate
- totalOverPoors
- totalRecalculations
- totalSkips
- totalUnderPours
type: object
uuid:
format: uuid
type: string
_foo_get_default_response:
example:
string:

View File

@ -0,0 +1,41 @@
# Org.OpenAPITools.Model.MixLog
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | **Guid** | |
**Description** | **string** | |
**MixDate** | **DateTime** | |
**ShopId** | **Guid** | | [optional]
**TotalPrice** | **float?** | | [optional]
**TotalRecalculations** | **int** | |
**TotalOverPoors** | **int** | |
**TotalSkips** | **int** | |
**TotalUnderPours** | **int** | |
**FormulaVersionDate** | **DateTime** | |
**SomeCode** | **string** | SomeCode is only required for color mixes | [optional]
**BatchNumber** | **string** | | [optional]
**BrandCode** | **string** | BrandCode is only required for non-color mixes | [optional]
**BrandId** | **string** | BrandId is only required for color mixes | [optional]
**BrandName** | **string** | BrandName is only required for color mixes | [optional]
**CategoryCode** | **string** | CategoryCode is not used anymore | [optional]
**Color** | **string** | Color is only required for color mixes | [optional]
**ColorDescription** | **string** | | [optional]
**Comment** | **string** | | [optional]
**CommercialProductCode** | **string** | | [optional]
**ProductLineCode** | **string** | ProductLineCode is only required for color mixes | [optional]
**Country** | **string** | | [optional]
**CreatedBy** | **string** | | [optional]
**CreatedByFirstName** | **string** | | [optional]
**CreatedByLastName** | **string** | | [optional]
**DeltaECalculationRepaired** | **string** | | [optional]
**DeltaECalculationSprayout** | **string** | | [optional]
**OwnColorVariantNumber** | **int?** | | [optional]
**PrimerProductId** | **string** | | [optional]
**ProductId** | **string** | ProductId is only required for color mixes | [optional]
**ProductName** | **string** | ProductName is only required for color mixes | [optional]
**SelectedVersionIndex** | **int** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,345 @@
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using Xunit;
using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using Org.OpenAPITools.Model;
using Org.OpenAPITools.Client;
using System.Reflection;
using Newtonsoft.Json;
namespace Org.OpenAPITools.Test.Model
{
/// <summary>
/// Class for testing MixLog
/// </summary>
/// <remarks>
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
public class MixLogTests : IDisposable
{
// TODO uncomment below to declare an instance variable for MixLog
//private MixLog instance;
public MixLogTests()
{
// TODO uncomment below to create an instance of MixLog
//instance = new MixLog();
}
public void Dispose()
{
// Cleanup when everything is done.
}
/// <summary>
/// Test an instance of MixLog
/// </summary>
[Fact]
public void MixLogInstanceTest()
{
// TODO uncomment below to test "IsType" MixLog
//Assert.IsType<MixLog>(instance);
}
/// <summary>
/// Test the property 'Id'
/// </summary>
[Fact]
public void IdTest()
{
// TODO unit test for the property 'Id'
}
/// <summary>
/// Test the property 'Description'
/// </summary>
[Fact]
public void DescriptionTest()
{
// TODO unit test for the property 'Description'
}
/// <summary>
/// Test the property 'MixDate'
/// </summary>
[Fact]
public void MixDateTest()
{
// TODO unit test for the property 'MixDate'
}
/// <summary>
/// Test the property 'ShopId'
/// </summary>
[Fact]
public void ShopIdTest()
{
// TODO unit test for the property 'ShopId'
}
/// <summary>
/// Test the property 'TotalPrice'
/// </summary>
[Fact]
public void TotalPriceTest()
{
// TODO unit test for the property 'TotalPrice'
}
/// <summary>
/// Test the property 'TotalRecalculations'
/// </summary>
[Fact]
public void TotalRecalculationsTest()
{
// TODO unit test for the property 'TotalRecalculations'
}
/// <summary>
/// Test the property 'TotalOverPoors'
/// </summary>
[Fact]
public void TotalOverPoorsTest()
{
// TODO unit test for the property 'TotalOverPoors'
}
/// <summary>
/// Test the property 'TotalSkips'
/// </summary>
[Fact]
public void TotalSkipsTest()
{
// TODO unit test for the property 'TotalSkips'
}
/// <summary>
/// Test the property 'TotalUnderPours'
/// </summary>
[Fact]
public void TotalUnderPoursTest()
{
// TODO unit test for the property 'TotalUnderPours'
}
/// <summary>
/// Test the property 'FormulaVersionDate'
/// </summary>
[Fact]
public void FormulaVersionDateTest()
{
// TODO unit test for the property 'FormulaVersionDate'
}
/// <summary>
/// Test the property 'SomeCode'
/// </summary>
[Fact]
public void SomeCodeTest()
{
// TODO unit test for the property 'SomeCode'
}
/// <summary>
/// Test the property 'BatchNumber'
/// </summary>
[Fact]
public void BatchNumberTest()
{
// TODO unit test for the property 'BatchNumber'
}
/// <summary>
/// Test the property 'BrandCode'
/// </summary>
[Fact]
public void BrandCodeTest()
{
// TODO unit test for the property 'BrandCode'
}
/// <summary>
/// Test the property 'BrandId'
/// </summary>
[Fact]
public void BrandIdTest()
{
// TODO unit test for the property 'BrandId'
}
/// <summary>
/// Test the property 'BrandName'
/// </summary>
[Fact]
public void BrandNameTest()
{
// TODO unit test for the property 'BrandName'
}
/// <summary>
/// Test the property 'CategoryCode'
/// </summary>
[Fact]
public void CategoryCodeTest()
{
// TODO unit test for the property 'CategoryCode'
}
/// <summary>
/// Test the property 'Color'
/// </summary>
[Fact]
public void ColorTest()
{
// TODO unit test for the property 'Color'
}
/// <summary>
/// Test the property 'ColorDescription'
/// </summary>
[Fact]
public void ColorDescriptionTest()
{
// TODO unit test for the property 'ColorDescription'
}
/// <summary>
/// Test the property 'Comment'
/// </summary>
[Fact]
public void CommentTest()
{
// TODO unit test for the property 'Comment'
}
/// <summary>
/// Test the property 'CommercialProductCode'
/// </summary>
[Fact]
public void CommercialProductCodeTest()
{
// TODO unit test for the property 'CommercialProductCode'
}
/// <summary>
/// Test the property 'ProductLineCode'
/// </summary>
[Fact]
public void ProductLineCodeTest()
{
// TODO unit test for the property 'ProductLineCode'
}
/// <summary>
/// Test the property 'Country'
/// </summary>
[Fact]
public void CountryTest()
{
// TODO unit test for the property 'Country'
}
/// <summary>
/// Test the property 'CreatedBy'
/// </summary>
[Fact]
public void CreatedByTest()
{
// TODO unit test for the property 'CreatedBy'
}
/// <summary>
/// Test the property 'CreatedByFirstName'
/// </summary>
[Fact]
public void CreatedByFirstNameTest()
{
// TODO unit test for the property 'CreatedByFirstName'
}
/// <summary>
/// Test the property 'CreatedByLastName'
/// </summary>
[Fact]
public void CreatedByLastNameTest()
{
// TODO unit test for the property 'CreatedByLastName'
}
/// <summary>
/// Test the property 'DeltaECalculationRepaired'
/// </summary>
[Fact]
public void DeltaECalculationRepairedTest()
{
// TODO unit test for the property 'DeltaECalculationRepaired'
}
/// <summary>
/// Test the property 'DeltaECalculationSprayout'
/// </summary>
[Fact]
public void DeltaECalculationSprayoutTest()
{
// TODO unit test for the property 'DeltaECalculationSprayout'
}
/// <summary>
/// Test the property 'OwnColorVariantNumber'
/// </summary>
[Fact]
public void OwnColorVariantNumberTest()
{
// TODO unit test for the property 'OwnColorVariantNumber'
}
/// <summary>
/// Test the property 'PrimerProductId'
/// </summary>
[Fact]
public void PrimerProductIdTest()
{
// TODO unit test for the property 'PrimerProductId'
}
/// <summary>
/// Test the property 'ProductId'
/// </summary>
[Fact]
public void ProductIdTest()
{
// TODO unit test for the property 'ProductId'
}
/// <summary>
/// Test the property 'ProductName'
/// </summary>
[Fact]
public void ProductNameTest()
{
// TODO unit test for the property 'ProductName'
}
/// <summary>
/// Test the property 'SelectedVersionIndex'
/// </summary>
[Fact]
public void SelectedVersionIndexTest()
{
// TODO unit test for the property 'SelectedVersionIndex'
}
}
}

View File

@ -0,0 +1,543 @@
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.IO;
using System.Runtime.Serialization;
using System.Text;
using System.Text.RegularExpressions;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
using FileParameter = Org.OpenAPITools.Client.FileParameter;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model
{
/// <summary>
/// MixLog
/// </summary>
[DataContract(Name = "MixLog")]
public partial class MixLog : IEquatable<MixLog>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="MixLog" /> class.
/// </summary>
[JsonConstructorAttribute]
protected MixLog()
{
this.AdditionalProperties = new Dictionary<string, object>();
}
/// <summary>
/// Initializes a new instance of the <see cref="MixLog" /> class.
/// </summary>
/// <param name="id">id (required).</param>
/// <param name="description">description (required).</param>
/// <param name="mixDate">mixDate (required).</param>
/// <param name="shopId">shopId.</param>
/// <param name="totalPrice">totalPrice.</param>
/// <param name="totalRecalculations">totalRecalculations (required).</param>
/// <param name="totalOverPoors">totalOverPoors (required).</param>
/// <param name="totalSkips">totalSkips (required).</param>
/// <param name="totalUnderPours">totalUnderPours (required).</param>
/// <param name="formulaVersionDate">formulaVersionDate (required).</param>
/// <param name="someCode">SomeCode is only required for color mixes.</param>
/// <param name="batchNumber">batchNumber.</param>
/// <param name="brandCode">BrandCode is only required for non-color mixes.</param>
/// <param name="brandId">BrandId is only required for color mixes.</param>
/// <param name="brandName">BrandName is only required for color mixes.</param>
/// <param name="categoryCode">CategoryCode is not used anymore.</param>
/// <param name="color">Color is only required for color mixes.</param>
/// <param name="colorDescription">colorDescription.</param>
/// <param name="comment">comment.</param>
/// <param name="commercialProductCode">commercialProductCode.</param>
/// <param name="productLineCode">ProductLineCode is only required for color mixes.</param>
/// <param name="country">country.</param>
/// <param name="createdBy">createdBy.</param>
/// <param name="createdByFirstName">createdByFirstName.</param>
/// <param name="createdByLastName">createdByLastName.</param>
/// <param name="deltaECalculationRepaired">deltaECalculationRepaired.</param>
/// <param name="deltaECalculationSprayout">deltaECalculationSprayout.</param>
/// <param name="ownColorVariantNumber">ownColorVariantNumber.</param>
/// <param name="primerProductId">primerProductId.</param>
/// <param name="productId">ProductId is only required for color mixes.</param>
/// <param name="productName">ProductName is only required for color mixes.</param>
/// <param name="selectedVersionIndex">selectedVersionIndex.</param>
public MixLog(Guid id = default(Guid), string description = default(string), DateTime mixDate = default(DateTime), Guid shopId = default(Guid), float? totalPrice = default(float?), int totalRecalculations = default(int), int totalOverPoors = default(int), int totalSkips = default(int), int totalUnderPours = default(int), DateTime formulaVersionDate = default(DateTime), string someCode = default(string), string batchNumber = default(string), string brandCode = default(string), string brandId = default(string), string brandName = default(string), string categoryCode = default(string), string color = default(string), string colorDescription = default(string), string comment = default(string), string commercialProductCode = default(string), string productLineCode = default(string), string country = default(string), string createdBy = default(string), string createdByFirstName = default(string), string createdByLastName = default(string), string deltaECalculationRepaired = default(string), string deltaECalculationSprayout = default(string), int? ownColorVariantNumber = default(int?), string primerProductId = default(string), string productId = default(string), string productName = default(string), int selectedVersionIndex = default(int))
{
this.Id = id;
// to ensure "description" is required (not null)
if (description == null)
{
throw new ArgumentNullException("description is a required property for MixLog and cannot be null");
}
this.Description = description;
this.MixDate = mixDate;
this.TotalRecalculations = totalRecalculations;
this.TotalOverPoors = totalOverPoors;
this.TotalSkips = totalSkips;
this.TotalUnderPours = totalUnderPours;
this.FormulaVersionDate = formulaVersionDate;
this.ShopId = shopId;
this.TotalPrice = totalPrice;
this.SomeCode = someCode;
this.BatchNumber = batchNumber;
this.BrandCode = brandCode;
this.BrandId = brandId;
this.BrandName = brandName;
this.CategoryCode = categoryCode;
this.Color = color;
this.ColorDescription = colorDescription;
this.Comment = comment;
this.CommercialProductCode = commercialProductCode;
this.ProductLineCode = productLineCode;
this.Country = country;
this.CreatedBy = createdBy;
this.CreatedByFirstName = createdByFirstName;
this.CreatedByLastName = createdByLastName;
this.DeltaECalculationRepaired = deltaECalculationRepaired;
this.DeltaECalculationSprayout = deltaECalculationSprayout;
this.OwnColorVariantNumber = ownColorVariantNumber;
this.PrimerProductId = primerProductId;
this.ProductId = productId;
this.ProductName = productName;
this.SelectedVersionIndex = selectedVersionIndex;
this.AdditionalProperties = new Dictionary<string, object>();
}
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
public Guid Id { get; set; }
/// <summary>
/// Gets or Sets Description
/// </summary>
[DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)]
public string Description { get; set; }
/// <summary>
/// Gets or Sets MixDate
/// </summary>
[DataMember(Name = "mixDate", IsRequired = true, EmitDefaultValue = true)]
public DateTime MixDate { get; set; }
/// <summary>
/// Gets or Sets ShopId
/// </summary>
[DataMember(Name = "shopId", EmitDefaultValue = false)]
public Guid ShopId { get; set; }
/// <summary>
/// Gets or Sets TotalPrice
/// </summary>
[DataMember(Name = "totalPrice", EmitDefaultValue = true)]
public float? TotalPrice { get; set; }
/// <summary>
/// Gets or Sets TotalRecalculations
/// </summary>
[DataMember(Name = "totalRecalculations", IsRequired = true, EmitDefaultValue = true)]
public int TotalRecalculations { get; set; }
/// <summary>
/// Gets or Sets TotalOverPoors
/// </summary>
[DataMember(Name = "totalOverPoors", IsRequired = true, EmitDefaultValue = true)]
public int TotalOverPoors { get; set; }
/// <summary>
/// Gets or Sets TotalSkips
/// </summary>
[DataMember(Name = "totalSkips", IsRequired = true, EmitDefaultValue = true)]
public int TotalSkips { get; set; }
/// <summary>
/// Gets or Sets TotalUnderPours
/// </summary>
[DataMember(Name = "totalUnderPours", IsRequired = true, EmitDefaultValue = true)]
public int TotalUnderPours { get; set; }
/// <summary>
/// Gets or Sets FormulaVersionDate
/// </summary>
[DataMember(Name = "formulaVersionDate", IsRequired = true, EmitDefaultValue = true)]
public DateTime FormulaVersionDate { get; set; }
/// <summary>
/// SomeCode is only required for color mixes
/// </summary>
/// <value>SomeCode is only required for color mixes</value>
[DataMember(Name = "someCode", EmitDefaultValue = true)]
public string SomeCode { get; set; }
/// <summary>
/// Gets or Sets BatchNumber
/// </summary>
[DataMember(Name = "batchNumber", EmitDefaultValue = false)]
public string BatchNumber { get; set; }
/// <summary>
/// BrandCode is only required for non-color mixes
/// </summary>
/// <value>BrandCode is only required for non-color mixes</value>
[DataMember(Name = "brandCode", EmitDefaultValue = false)]
public string BrandCode { get; set; }
/// <summary>
/// BrandId is only required for color mixes
/// </summary>
/// <value>BrandId is only required for color mixes</value>
[DataMember(Name = "brandId", EmitDefaultValue = false)]
public string BrandId { get; set; }
/// <summary>
/// BrandName is only required for color mixes
/// </summary>
/// <value>BrandName is only required for color mixes</value>
[DataMember(Name = "brandName", EmitDefaultValue = false)]
public string BrandName { get; set; }
/// <summary>
/// CategoryCode is not used anymore
/// </summary>
/// <value>CategoryCode is not used anymore</value>
[DataMember(Name = "categoryCode", EmitDefaultValue = false)]
public string CategoryCode { get; set; }
/// <summary>
/// Color is only required for color mixes
/// </summary>
/// <value>Color is only required for color mixes</value>
[DataMember(Name = "color", EmitDefaultValue = false)]
public string Color { get; set; }
/// <summary>
/// Gets or Sets ColorDescription
/// </summary>
[DataMember(Name = "colorDescription", EmitDefaultValue = false)]
public string ColorDescription { get; set; }
/// <summary>
/// Gets or Sets Comment
/// </summary>
[DataMember(Name = "comment", EmitDefaultValue = false)]
public string Comment { get; set; }
/// <summary>
/// Gets or Sets CommercialProductCode
/// </summary>
[DataMember(Name = "commercialProductCode", EmitDefaultValue = false)]
public string CommercialProductCode { get; set; }
/// <summary>
/// ProductLineCode is only required for color mixes
/// </summary>
/// <value>ProductLineCode is only required for color mixes</value>
[DataMember(Name = "productLineCode", EmitDefaultValue = false)]
public string ProductLineCode { get; set; }
/// <summary>
/// Gets or Sets Country
/// </summary>
[DataMember(Name = "country", EmitDefaultValue = false)]
public string Country { get; set; }
/// <summary>
/// Gets or Sets CreatedBy
/// </summary>
[DataMember(Name = "createdBy", EmitDefaultValue = false)]
public string CreatedBy { get; set; }
/// <summary>
/// Gets or Sets CreatedByFirstName
/// </summary>
[DataMember(Name = "createdByFirstName", EmitDefaultValue = false)]
public string CreatedByFirstName { get; set; }
/// <summary>
/// Gets or Sets CreatedByLastName
/// </summary>
[DataMember(Name = "createdByLastName", EmitDefaultValue = false)]
public string CreatedByLastName { get; set; }
/// <summary>
/// Gets or Sets DeltaECalculationRepaired
/// </summary>
[DataMember(Name = "deltaECalculationRepaired", EmitDefaultValue = false)]
public string DeltaECalculationRepaired { get; set; }
/// <summary>
/// Gets or Sets DeltaECalculationSprayout
/// </summary>
[DataMember(Name = "deltaECalculationSprayout", EmitDefaultValue = false)]
public string DeltaECalculationSprayout { get; set; }
/// <summary>
/// Gets or Sets OwnColorVariantNumber
/// </summary>
[DataMember(Name = "ownColorVariantNumber", EmitDefaultValue = true)]
public int? OwnColorVariantNumber { get; set; }
/// <summary>
/// Gets or Sets PrimerProductId
/// </summary>
[DataMember(Name = "primerProductId", EmitDefaultValue = false)]
public string PrimerProductId { get; set; }
/// <summary>
/// ProductId is only required for color mixes
/// </summary>
/// <value>ProductId is only required for color mixes</value>
[DataMember(Name = "productId", EmitDefaultValue = false)]
public string ProductId { get; set; }
/// <summary>
/// ProductName is only required for color mixes
/// </summary>
/// <value>ProductName is only required for color mixes</value>
[DataMember(Name = "productName", EmitDefaultValue = false)]
public string ProductName { get; set; }
/// <summary>
/// Gets or Sets SelectedVersionIndex
/// </summary>
[DataMember(Name = "selectedVersionIndex", EmitDefaultValue = false)]
public int SelectedVersionIndex { get; set; }
/// <summary>
/// Gets or Sets additional properties
/// </summary>
[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class MixLog {\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" Description: ").Append(Description).Append("\n");
sb.Append(" MixDate: ").Append(MixDate).Append("\n");
sb.Append(" ShopId: ").Append(ShopId).Append("\n");
sb.Append(" TotalPrice: ").Append(TotalPrice).Append("\n");
sb.Append(" TotalRecalculations: ").Append(TotalRecalculations).Append("\n");
sb.Append(" TotalOverPoors: ").Append(TotalOverPoors).Append("\n");
sb.Append(" TotalSkips: ").Append(TotalSkips).Append("\n");
sb.Append(" TotalUnderPours: ").Append(TotalUnderPours).Append("\n");
sb.Append(" FormulaVersionDate: ").Append(FormulaVersionDate).Append("\n");
sb.Append(" SomeCode: ").Append(SomeCode).Append("\n");
sb.Append(" BatchNumber: ").Append(BatchNumber).Append("\n");
sb.Append(" BrandCode: ").Append(BrandCode).Append("\n");
sb.Append(" BrandId: ").Append(BrandId).Append("\n");
sb.Append(" BrandName: ").Append(BrandName).Append("\n");
sb.Append(" CategoryCode: ").Append(CategoryCode).Append("\n");
sb.Append(" Color: ").Append(Color).Append("\n");
sb.Append(" ColorDescription: ").Append(ColorDescription).Append("\n");
sb.Append(" Comment: ").Append(Comment).Append("\n");
sb.Append(" CommercialProductCode: ").Append(CommercialProductCode).Append("\n");
sb.Append(" ProductLineCode: ").Append(ProductLineCode).Append("\n");
sb.Append(" Country: ").Append(Country).Append("\n");
sb.Append(" CreatedBy: ").Append(CreatedBy).Append("\n");
sb.Append(" CreatedByFirstName: ").Append(CreatedByFirstName).Append("\n");
sb.Append(" CreatedByLastName: ").Append(CreatedByLastName).Append("\n");
sb.Append(" DeltaECalculationRepaired: ").Append(DeltaECalculationRepaired).Append("\n");
sb.Append(" DeltaECalculationSprayout: ").Append(DeltaECalculationSprayout).Append("\n");
sb.Append(" OwnColorVariantNumber: ").Append(OwnColorVariantNumber).Append("\n");
sb.Append(" PrimerProductId: ").Append(PrimerProductId).Append("\n");
sb.Append(" ProductId: ").Append(ProductId).Append("\n");
sb.Append(" ProductName: ").Append(ProductName).Append("\n");
sb.Append(" SelectedVersionIndex: ").Append(SelectedVersionIndex).Append("\n");
sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public virtual string ToJson()
{
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return OpenAPIClientUtils.compareLogic.Compare(this, input as MixLog).AreEqual;
}
/// <summary>
/// Returns true if MixLog instances are equal
/// </summary>
/// <param name="input">Instance of MixLog to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(MixLog input)
{
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Id != null)
{
hashCode = (hashCode * 59) + this.Id.GetHashCode();
}
if (this.Description != null)
{
hashCode = (hashCode * 59) + this.Description.GetHashCode();
}
if (this.MixDate != null)
{
hashCode = (hashCode * 59) + this.MixDate.GetHashCode();
}
if (this.ShopId != null)
{
hashCode = (hashCode * 59) + this.ShopId.GetHashCode();
}
if (this.TotalPrice != null)
{
hashCode = (hashCode * 59) + this.TotalPrice.GetHashCode();
}
hashCode = (hashCode * 59) + this.TotalRecalculations.GetHashCode();
hashCode = (hashCode * 59) + this.TotalOverPoors.GetHashCode();
hashCode = (hashCode * 59) + this.TotalSkips.GetHashCode();
hashCode = (hashCode * 59) + this.TotalUnderPours.GetHashCode();
if (this.FormulaVersionDate != null)
{
hashCode = (hashCode * 59) + this.FormulaVersionDate.GetHashCode();
}
if (this.SomeCode != null)
{
hashCode = (hashCode * 59) + this.SomeCode.GetHashCode();
}
if (this.BatchNumber != null)
{
hashCode = (hashCode * 59) + this.BatchNumber.GetHashCode();
}
if (this.BrandCode != null)
{
hashCode = (hashCode * 59) + this.BrandCode.GetHashCode();
}
if (this.BrandId != null)
{
hashCode = (hashCode * 59) + this.BrandId.GetHashCode();
}
if (this.BrandName != null)
{
hashCode = (hashCode * 59) + this.BrandName.GetHashCode();
}
if (this.CategoryCode != null)
{
hashCode = (hashCode * 59) + this.CategoryCode.GetHashCode();
}
if (this.Color != null)
{
hashCode = (hashCode * 59) + this.Color.GetHashCode();
}
if (this.ColorDescription != null)
{
hashCode = (hashCode * 59) + this.ColorDescription.GetHashCode();
}
if (this.Comment != null)
{
hashCode = (hashCode * 59) + this.Comment.GetHashCode();
}
if (this.CommercialProductCode != null)
{
hashCode = (hashCode * 59) + this.CommercialProductCode.GetHashCode();
}
if (this.ProductLineCode != null)
{
hashCode = (hashCode * 59) + this.ProductLineCode.GetHashCode();
}
if (this.Country != null)
{
hashCode = (hashCode * 59) + this.Country.GetHashCode();
}
if (this.CreatedBy != null)
{
hashCode = (hashCode * 59) + this.CreatedBy.GetHashCode();
}
if (this.CreatedByFirstName != null)
{
hashCode = (hashCode * 59) + this.CreatedByFirstName.GetHashCode();
}
if (this.CreatedByLastName != null)
{
hashCode = (hashCode * 59) + this.CreatedByLastName.GetHashCode();
}
if (this.DeltaECalculationRepaired != null)
{
hashCode = (hashCode * 59) + this.DeltaECalculationRepaired.GetHashCode();
}
if (this.DeltaECalculationSprayout != null)
{
hashCode = (hashCode * 59) + this.DeltaECalculationSprayout.GetHashCode();
}
if (this.OwnColorVariantNumber != null)
{
hashCode = (hashCode * 59) + this.OwnColorVariantNumber.GetHashCode();
}
if (this.PrimerProductId != null)
{
hashCode = (hashCode * 59) + this.PrimerProductId.GetHashCode();
}
if (this.ProductId != null)
{
hashCode = (hashCode * 59) + this.ProductId.GetHashCode();
}
if (this.ProductName != null)
{
hashCode = (hashCode * 59) + this.ProductName.GetHashCode();
}
hashCode = (hashCode * 59) + this.SelectedVersionIndex.GetHashCode();
if (this.AdditionalProperties != null)
{
hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode();
}
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}

View File

@ -51,6 +51,7 @@ docs/List.md
docs/LiteralStringClass.md
docs/Mammal.md
docs/MapTest.md
docs/MixLog.md
docs/MixedPropertiesAndAdditionalPropertiesClass.md
docs/Model200Response.md
docs/ModelClient.md
@ -173,6 +174,7 @@ src/Org.OpenAPITools/Model/List.cs
src/Org.OpenAPITools/Model/LiteralStringClass.cs
src/Org.OpenAPITools/Model/Mammal.cs
src/Org.OpenAPITools/Model/MapTest.cs
src/Org.OpenAPITools/Model/MixLog.cs
src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
src/Org.OpenAPITools/Model/Model200Response.cs
src/Org.OpenAPITools/Model/ModelClient.cs

View File

@ -211,6 +211,7 @@ Class | Method | HTTP request | Description
- [Model.LiteralStringClass](docs/LiteralStringClass.md)
- [Model.Mammal](docs/Mammal.md)
- [Model.MapTest](docs/MapTest.md)
- [Model.MixLog](docs/MixLog.md)
- [Model.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
- [Model.Model200Response](docs/Model200Response.md)
- [Model.ModelClient](docs/ModelClient.md)

View File

@ -2706,6 +2706,108 @@ components:
- a_objVariableobject
- pkiNotificationtestID
type: object
MixLog:
properties:
id:
format: uuid
type: string
description:
type: string
mixDate:
format: date-time
type: string
shopId:
format: uuid
type: string
totalPrice:
format: float
nullable: true
type: number
totalRecalculations:
format: int32
type: integer
totalOverPoors:
format: int32
type: integer
totalSkips:
format: int32
type: integer
totalUnderPours:
format: int32
type: integer
formulaVersionDate:
format: date-time
type: string
someCode:
description: SomeCode is only required for color mixes
nullable: true
type: string
batchNumber:
type: string
brandCode:
description: BrandCode is only required for non-color mixes
type: string
brandId:
description: BrandId is only required for color mixes
type: string
brandName:
description: BrandName is only required for color mixes
type: string
categoryCode:
description: CategoryCode is not used anymore
type: string
color:
description: Color is only required for color mixes
type: string
colorDescription:
type: string
comment:
type: string
commercialProductCode:
type: string
productLineCode:
description: ProductLineCode is only required for color mixes
type: string
country:
type: string
createdBy:
type: string
createdByFirstName:
type: string
createdByLastName:
type: string
deltaECalculationRepaired:
type: string
deltaECalculationSprayout:
type: string
ownColorVariantNumber:
format: int32
nullable: true
type: integer
primerProductId:
type: string
productId:
description: ProductId is only required for color mixes
type: string
productName:
description: ProductName is only required for color mixes
type: string
selectedVersionIndex:
format: int32
type: integer
required:
- description
- formulaVersionDate
- id
- mixDate
- totalOverPoors
- totalRecalculations
- totalSkips
- totalUnderPours
type: object
uuid:
format: uuid
type: string
_foo_get_default_response:
example:
string:

View File

@ -0,0 +1,41 @@
# Org.OpenAPITools.Model.MixLog
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | **Guid** | |
**Description** | **string** | |
**MixDate** | **DateTime** | |
**ShopId** | **Guid** | | [optional]
**TotalPrice** | **float?** | | [optional]
**TotalRecalculations** | **int** | |
**TotalOverPoors** | **int** | |
**TotalSkips** | **int** | |
**TotalUnderPours** | **int** | |
**FormulaVersionDate** | **DateTime** | |
**SomeCode** | **string** | SomeCode is only required for color mixes | [optional]
**BatchNumber** | **string** | | [optional]
**BrandCode** | **string** | BrandCode is only required for non-color mixes | [optional]
**BrandId** | **string** | BrandId is only required for color mixes | [optional]
**BrandName** | **string** | BrandName is only required for color mixes | [optional]
**CategoryCode** | **string** | CategoryCode is not used anymore | [optional]
**Color** | **string** | Color is only required for color mixes | [optional]
**ColorDescription** | **string** | | [optional]
**Comment** | **string** | | [optional]
**CommercialProductCode** | **string** | | [optional]
**ProductLineCode** | **string** | ProductLineCode is only required for color mixes | [optional]
**Country** | **string** | | [optional]
**CreatedBy** | **string** | | [optional]
**CreatedByFirstName** | **string** | | [optional]
**CreatedByLastName** | **string** | | [optional]
**DeltaECalculationRepaired** | **string** | | [optional]
**DeltaECalculationSprayout** | **string** | | [optional]
**OwnColorVariantNumber** | **int?** | | [optional]
**PrimerProductId** | **string** | | [optional]
**ProductId** | **string** | ProductId is only required for color mixes | [optional]
**ProductName** | **string** | ProductName is only required for color mixes | [optional]
**SelectedVersionIndex** | **int** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,345 @@
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using Xunit;
using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using Org.OpenAPITools.Model;
using Org.OpenAPITools.Client;
using System.Reflection;
using Newtonsoft.Json;
namespace Org.OpenAPITools.Test.Model
{
/// <summary>
/// Class for testing MixLog
/// </summary>
/// <remarks>
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
public class MixLogTests : IDisposable
{
// TODO uncomment below to declare an instance variable for MixLog
//private MixLog instance;
public MixLogTests()
{
// TODO uncomment below to create an instance of MixLog
//instance = new MixLog();
}
public void Dispose()
{
// Cleanup when everything is done.
}
/// <summary>
/// Test an instance of MixLog
/// </summary>
[Fact]
public void MixLogInstanceTest()
{
// TODO uncomment below to test "IsType" MixLog
//Assert.IsType<MixLog>(instance);
}
/// <summary>
/// Test the property 'Id'
/// </summary>
[Fact]
public void IdTest()
{
// TODO unit test for the property 'Id'
}
/// <summary>
/// Test the property 'Description'
/// </summary>
[Fact]
public void DescriptionTest()
{
// TODO unit test for the property 'Description'
}
/// <summary>
/// Test the property 'MixDate'
/// </summary>
[Fact]
public void MixDateTest()
{
// TODO unit test for the property 'MixDate'
}
/// <summary>
/// Test the property 'ShopId'
/// </summary>
[Fact]
public void ShopIdTest()
{
// TODO unit test for the property 'ShopId'
}
/// <summary>
/// Test the property 'TotalPrice'
/// </summary>
[Fact]
public void TotalPriceTest()
{
// TODO unit test for the property 'TotalPrice'
}
/// <summary>
/// Test the property 'TotalRecalculations'
/// </summary>
[Fact]
public void TotalRecalculationsTest()
{
// TODO unit test for the property 'TotalRecalculations'
}
/// <summary>
/// Test the property 'TotalOverPoors'
/// </summary>
[Fact]
public void TotalOverPoorsTest()
{
// TODO unit test for the property 'TotalOverPoors'
}
/// <summary>
/// Test the property 'TotalSkips'
/// </summary>
[Fact]
public void TotalSkipsTest()
{
// TODO unit test for the property 'TotalSkips'
}
/// <summary>
/// Test the property 'TotalUnderPours'
/// </summary>
[Fact]
public void TotalUnderPoursTest()
{
// TODO unit test for the property 'TotalUnderPours'
}
/// <summary>
/// Test the property 'FormulaVersionDate'
/// </summary>
[Fact]
public void FormulaVersionDateTest()
{
// TODO unit test for the property 'FormulaVersionDate'
}
/// <summary>
/// Test the property 'SomeCode'
/// </summary>
[Fact]
public void SomeCodeTest()
{
// TODO unit test for the property 'SomeCode'
}
/// <summary>
/// Test the property 'BatchNumber'
/// </summary>
[Fact]
public void BatchNumberTest()
{
// TODO unit test for the property 'BatchNumber'
}
/// <summary>
/// Test the property 'BrandCode'
/// </summary>
[Fact]
public void BrandCodeTest()
{
// TODO unit test for the property 'BrandCode'
}
/// <summary>
/// Test the property 'BrandId'
/// </summary>
[Fact]
public void BrandIdTest()
{
// TODO unit test for the property 'BrandId'
}
/// <summary>
/// Test the property 'BrandName'
/// </summary>
[Fact]
public void BrandNameTest()
{
// TODO unit test for the property 'BrandName'
}
/// <summary>
/// Test the property 'CategoryCode'
/// </summary>
[Fact]
public void CategoryCodeTest()
{
// TODO unit test for the property 'CategoryCode'
}
/// <summary>
/// Test the property 'Color'
/// </summary>
[Fact]
public void ColorTest()
{
// TODO unit test for the property 'Color'
}
/// <summary>
/// Test the property 'ColorDescription'
/// </summary>
[Fact]
public void ColorDescriptionTest()
{
// TODO unit test for the property 'ColorDescription'
}
/// <summary>
/// Test the property 'Comment'
/// </summary>
[Fact]
public void CommentTest()
{
// TODO unit test for the property 'Comment'
}
/// <summary>
/// Test the property 'CommercialProductCode'
/// </summary>
[Fact]
public void CommercialProductCodeTest()
{
// TODO unit test for the property 'CommercialProductCode'
}
/// <summary>
/// Test the property 'ProductLineCode'
/// </summary>
[Fact]
public void ProductLineCodeTest()
{
// TODO unit test for the property 'ProductLineCode'
}
/// <summary>
/// Test the property 'Country'
/// </summary>
[Fact]
public void CountryTest()
{
// TODO unit test for the property 'Country'
}
/// <summary>
/// Test the property 'CreatedBy'
/// </summary>
[Fact]
public void CreatedByTest()
{
// TODO unit test for the property 'CreatedBy'
}
/// <summary>
/// Test the property 'CreatedByFirstName'
/// </summary>
[Fact]
public void CreatedByFirstNameTest()
{
// TODO unit test for the property 'CreatedByFirstName'
}
/// <summary>
/// Test the property 'CreatedByLastName'
/// </summary>
[Fact]
public void CreatedByLastNameTest()
{
// TODO unit test for the property 'CreatedByLastName'
}
/// <summary>
/// Test the property 'DeltaECalculationRepaired'
/// </summary>
[Fact]
public void DeltaECalculationRepairedTest()
{
// TODO unit test for the property 'DeltaECalculationRepaired'
}
/// <summary>
/// Test the property 'DeltaECalculationSprayout'
/// </summary>
[Fact]
public void DeltaECalculationSprayoutTest()
{
// TODO unit test for the property 'DeltaECalculationSprayout'
}
/// <summary>
/// Test the property 'OwnColorVariantNumber'
/// </summary>
[Fact]
public void OwnColorVariantNumberTest()
{
// TODO unit test for the property 'OwnColorVariantNumber'
}
/// <summary>
/// Test the property 'PrimerProductId'
/// </summary>
[Fact]
public void PrimerProductIdTest()
{
// TODO unit test for the property 'PrimerProductId'
}
/// <summary>
/// Test the property 'ProductId'
/// </summary>
[Fact]
public void ProductIdTest()
{
// TODO unit test for the property 'ProductId'
}
/// <summary>
/// Test the property 'ProductName'
/// </summary>
[Fact]
public void ProductNameTest()
{
// TODO unit test for the property 'ProductName'
}
/// <summary>
/// Test the property 'SelectedVersionIndex'
/// </summary>
[Fact]
public void SelectedVersionIndexTest()
{
// TODO unit test for the property 'SelectedVersionIndex'
}
}
}

View File

@ -0,0 +1,527 @@
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.IO;
using System.Runtime.Serialization;
using System.Text;
using System.Text.RegularExpressions;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
using OpenAPIClientUtils = Org.OpenAPITools.Client.ClientUtils;
namespace Org.OpenAPITools.Model
{
/// <summary>
/// MixLog
/// </summary>
[DataContract(Name = "MixLog")]
public partial class MixLog : IEquatable<MixLog>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="MixLog" /> class.
/// </summary>
[JsonConstructorAttribute]
protected MixLog() { }
/// <summary>
/// Initializes a new instance of the <see cref="MixLog" /> class.
/// </summary>
/// <param name="id">id (required).</param>
/// <param name="description">description (required).</param>
/// <param name="mixDate">mixDate (required).</param>
/// <param name="shopId">shopId.</param>
/// <param name="totalPrice">totalPrice.</param>
/// <param name="totalRecalculations">totalRecalculations (required).</param>
/// <param name="totalOverPoors">totalOverPoors (required).</param>
/// <param name="totalSkips">totalSkips (required).</param>
/// <param name="totalUnderPours">totalUnderPours (required).</param>
/// <param name="formulaVersionDate">formulaVersionDate (required).</param>
/// <param name="someCode">SomeCode is only required for color mixes.</param>
/// <param name="batchNumber">batchNumber.</param>
/// <param name="brandCode">BrandCode is only required for non-color mixes.</param>
/// <param name="brandId">BrandId is only required for color mixes.</param>
/// <param name="brandName">BrandName is only required for color mixes.</param>
/// <param name="categoryCode">CategoryCode is not used anymore.</param>
/// <param name="color">Color is only required for color mixes.</param>
/// <param name="colorDescription">colorDescription.</param>
/// <param name="comment">comment.</param>
/// <param name="commercialProductCode">commercialProductCode.</param>
/// <param name="productLineCode">ProductLineCode is only required for color mixes.</param>
/// <param name="country">country.</param>
/// <param name="createdBy">createdBy.</param>
/// <param name="createdByFirstName">createdByFirstName.</param>
/// <param name="createdByLastName">createdByLastName.</param>
/// <param name="deltaECalculationRepaired">deltaECalculationRepaired.</param>
/// <param name="deltaECalculationSprayout">deltaECalculationSprayout.</param>
/// <param name="ownColorVariantNumber">ownColorVariantNumber.</param>
/// <param name="primerProductId">primerProductId.</param>
/// <param name="productId">ProductId is only required for color mixes.</param>
/// <param name="productName">ProductName is only required for color mixes.</param>
/// <param name="selectedVersionIndex">selectedVersionIndex.</param>
public MixLog(Guid id = default(Guid), string description = default(string), DateTime mixDate = default(DateTime), Guid shopId = default(Guid), float? totalPrice = default(float?), int totalRecalculations = default(int), int totalOverPoors = default(int), int totalSkips = default(int), int totalUnderPours = default(int), DateTime formulaVersionDate = default(DateTime), string someCode = default(string), string batchNumber = default(string), string brandCode = default(string), string brandId = default(string), string brandName = default(string), string categoryCode = default(string), string color = default(string), string colorDescription = default(string), string comment = default(string), string commercialProductCode = default(string), string productLineCode = default(string), string country = default(string), string createdBy = default(string), string createdByFirstName = default(string), string createdByLastName = default(string), string deltaECalculationRepaired = default(string), string deltaECalculationSprayout = default(string), int? ownColorVariantNumber = default(int?), string primerProductId = default(string), string productId = default(string), string productName = default(string), int selectedVersionIndex = default(int))
{
this.Id = id;
// to ensure "description" is required (not null)
if (description == null)
{
throw new ArgumentNullException("description is a required property for MixLog and cannot be null");
}
this.Description = description;
this.MixDate = mixDate;
this.TotalRecalculations = totalRecalculations;
this.TotalOverPoors = totalOverPoors;
this.TotalSkips = totalSkips;
this.TotalUnderPours = totalUnderPours;
this.FormulaVersionDate = formulaVersionDate;
this.ShopId = shopId;
this.TotalPrice = totalPrice;
this.SomeCode = someCode;
this.BatchNumber = batchNumber;
this.BrandCode = brandCode;
this.BrandId = brandId;
this.BrandName = brandName;
this.CategoryCode = categoryCode;
this.Color = color;
this.ColorDescription = colorDescription;
this.Comment = comment;
this.CommercialProductCode = commercialProductCode;
this.ProductLineCode = productLineCode;
this.Country = country;
this.CreatedBy = createdBy;
this.CreatedByFirstName = createdByFirstName;
this.CreatedByLastName = createdByLastName;
this.DeltaECalculationRepaired = deltaECalculationRepaired;
this.DeltaECalculationSprayout = deltaECalculationSprayout;
this.OwnColorVariantNumber = ownColorVariantNumber;
this.PrimerProductId = primerProductId;
this.ProductId = productId;
this.ProductName = productName;
this.SelectedVersionIndex = selectedVersionIndex;
}
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
public Guid Id { get; set; }
/// <summary>
/// Gets or Sets Description
/// </summary>
[DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)]
public string Description { get; set; }
/// <summary>
/// Gets or Sets MixDate
/// </summary>
[DataMember(Name = "mixDate", IsRequired = true, EmitDefaultValue = true)]
public DateTime MixDate { get; set; }
/// <summary>
/// Gets or Sets ShopId
/// </summary>
[DataMember(Name = "shopId", EmitDefaultValue = false)]
public Guid ShopId { get; set; }
/// <summary>
/// Gets or Sets TotalPrice
/// </summary>
[DataMember(Name = "totalPrice", EmitDefaultValue = true)]
public float? TotalPrice { get; set; }
/// <summary>
/// Gets or Sets TotalRecalculations
/// </summary>
[DataMember(Name = "totalRecalculations", IsRequired = true, EmitDefaultValue = true)]
public int TotalRecalculations { get; set; }
/// <summary>
/// Gets or Sets TotalOverPoors
/// </summary>
[DataMember(Name = "totalOverPoors", IsRequired = true, EmitDefaultValue = true)]
public int TotalOverPoors { get; set; }
/// <summary>
/// Gets or Sets TotalSkips
/// </summary>
[DataMember(Name = "totalSkips", IsRequired = true, EmitDefaultValue = true)]
public int TotalSkips { get; set; }
/// <summary>
/// Gets or Sets TotalUnderPours
/// </summary>
[DataMember(Name = "totalUnderPours", IsRequired = true, EmitDefaultValue = true)]
public int TotalUnderPours { get; set; }
/// <summary>
/// Gets or Sets FormulaVersionDate
/// </summary>
[DataMember(Name = "formulaVersionDate", IsRequired = true, EmitDefaultValue = true)]
public DateTime FormulaVersionDate { get; set; }
/// <summary>
/// SomeCode is only required for color mixes
/// </summary>
/// <value>SomeCode is only required for color mixes</value>
[DataMember(Name = "someCode", EmitDefaultValue = true)]
public string SomeCode { get; set; }
/// <summary>
/// Gets or Sets BatchNumber
/// </summary>
[DataMember(Name = "batchNumber", EmitDefaultValue = false)]
public string BatchNumber { get; set; }
/// <summary>
/// BrandCode is only required for non-color mixes
/// </summary>
/// <value>BrandCode is only required for non-color mixes</value>
[DataMember(Name = "brandCode", EmitDefaultValue = false)]
public string BrandCode { get; set; }
/// <summary>
/// BrandId is only required for color mixes
/// </summary>
/// <value>BrandId is only required for color mixes</value>
[DataMember(Name = "brandId", EmitDefaultValue = false)]
public string BrandId { get; set; }
/// <summary>
/// BrandName is only required for color mixes
/// </summary>
/// <value>BrandName is only required for color mixes</value>
[DataMember(Name = "brandName", EmitDefaultValue = false)]
public string BrandName { get; set; }
/// <summary>
/// CategoryCode is not used anymore
/// </summary>
/// <value>CategoryCode is not used anymore</value>
[DataMember(Name = "categoryCode", EmitDefaultValue = false)]
public string CategoryCode { get; set; }
/// <summary>
/// Color is only required for color mixes
/// </summary>
/// <value>Color is only required for color mixes</value>
[DataMember(Name = "color", EmitDefaultValue = false)]
public string Color { get; set; }
/// <summary>
/// Gets or Sets ColorDescription
/// </summary>
[DataMember(Name = "colorDescription", EmitDefaultValue = false)]
public string ColorDescription { get; set; }
/// <summary>
/// Gets or Sets Comment
/// </summary>
[DataMember(Name = "comment", EmitDefaultValue = false)]
public string Comment { get; set; }
/// <summary>
/// Gets or Sets CommercialProductCode
/// </summary>
[DataMember(Name = "commercialProductCode", EmitDefaultValue = false)]
public string CommercialProductCode { get; set; }
/// <summary>
/// ProductLineCode is only required for color mixes
/// </summary>
/// <value>ProductLineCode is only required for color mixes</value>
[DataMember(Name = "productLineCode", EmitDefaultValue = false)]
public string ProductLineCode { get; set; }
/// <summary>
/// Gets or Sets Country
/// </summary>
[DataMember(Name = "country", EmitDefaultValue = false)]
public string Country { get; set; }
/// <summary>
/// Gets or Sets CreatedBy
/// </summary>
[DataMember(Name = "createdBy", EmitDefaultValue = false)]
public string CreatedBy { get; set; }
/// <summary>
/// Gets or Sets CreatedByFirstName
/// </summary>
[DataMember(Name = "createdByFirstName", EmitDefaultValue = false)]
public string CreatedByFirstName { get; set; }
/// <summary>
/// Gets or Sets CreatedByLastName
/// </summary>
[DataMember(Name = "createdByLastName", EmitDefaultValue = false)]
public string CreatedByLastName { get; set; }
/// <summary>
/// Gets or Sets DeltaECalculationRepaired
/// </summary>
[DataMember(Name = "deltaECalculationRepaired", EmitDefaultValue = false)]
public string DeltaECalculationRepaired { get; set; }
/// <summary>
/// Gets or Sets DeltaECalculationSprayout
/// </summary>
[DataMember(Name = "deltaECalculationSprayout", EmitDefaultValue = false)]
public string DeltaECalculationSprayout { get; set; }
/// <summary>
/// Gets or Sets OwnColorVariantNumber
/// </summary>
[DataMember(Name = "ownColorVariantNumber", EmitDefaultValue = true)]
public int? OwnColorVariantNumber { get; set; }
/// <summary>
/// Gets or Sets PrimerProductId
/// </summary>
[DataMember(Name = "primerProductId", EmitDefaultValue = false)]
public string PrimerProductId { get; set; }
/// <summary>
/// ProductId is only required for color mixes
/// </summary>
/// <value>ProductId is only required for color mixes</value>
[DataMember(Name = "productId", EmitDefaultValue = false)]
public string ProductId { get; set; }
/// <summary>
/// ProductName is only required for color mixes
/// </summary>
/// <value>ProductName is only required for color mixes</value>
[DataMember(Name = "productName", EmitDefaultValue = false)]
public string ProductName { get; set; }
/// <summary>
/// Gets or Sets SelectedVersionIndex
/// </summary>
[DataMember(Name = "selectedVersionIndex", EmitDefaultValue = false)]
public int SelectedVersionIndex { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class MixLog {\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" Description: ").Append(Description).Append("\n");
sb.Append(" MixDate: ").Append(MixDate).Append("\n");
sb.Append(" ShopId: ").Append(ShopId).Append("\n");
sb.Append(" TotalPrice: ").Append(TotalPrice).Append("\n");
sb.Append(" TotalRecalculations: ").Append(TotalRecalculations).Append("\n");
sb.Append(" TotalOverPoors: ").Append(TotalOverPoors).Append("\n");
sb.Append(" TotalSkips: ").Append(TotalSkips).Append("\n");
sb.Append(" TotalUnderPours: ").Append(TotalUnderPours).Append("\n");
sb.Append(" FormulaVersionDate: ").Append(FormulaVersionDate).Append("\n");
sb.Append(" SomeCode: ").Append(SomeCode).Append("\n");
sb.Append(" BatchNumber: ").Append(BatchNumber).Append("\n");
sb.Append(" BrandCode: ").Append(BrandCode).Append("\n");
sb.Append(" BrandId: ").Append(BrandId).Append("\n");
sb.Append(" BrandName: ").Append(BrandName).Append("\n");
sb.Append(" CategoryCode: ").Append(CategoryCode).Append("\n");
sb.Append(" Color: ").Append(Color).Append("\n");
sb.Append(" ColorDescription: ").Append(ColorDescription).Append("\n");
sb.Append(" Comment: ").Append(Comment).Append("\n");
sb.Append(" CommercialProductCode: ").Append(CommercialProductCode).Append("\n");
sb.Append(" ProductLineCode: ").Append(ProductLineCode).Append("\n");
sb.Append(" Country: ").Append(Country).Append("\n");
sb.Append(" CreatedBy: ").Append(CreatedBy).Append("\n");
sb.Append(" CreatedByFirstName: ").Append(CreatedByFirstName).Append("\n");
sb.Append(" CreatedByLastName: ").Append(CreatedByLastName).Append("\n");
sb.Append(" DeltaECalculationRepaired: ").Append(DeltaECalculationRepaired).Append("\n");
sb.Append(" DeltaECalculationSprayout: ").Append(DeltaECalculationSprayout).Append("\n");
sb.Append(" OwnColorVariantNumber: ").Append(OwnColorVariantNumber).Append("\n");
sb.Append(" PrimerProductId: ").Append(PrimerProductId).Append("\n");
sb.Append(" ProductId: ").Append(ProductId).Append("\n");
sb.Append(" ProductName: ").Append(ProductName).Append("\n");
sb.Append(" SelectedVersionIndex: ").Append(SelectedVersionIndex).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public virtual string ToJson()
{
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return OpenAPIClientUtils.compareLogic.Compare(this, input as MixLog).AreEqual;
}
/// <summary>
/// Returns true if MixLog instances are equal
/// </summary>
/// <param name="input">Instance of MixLog to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(MixLog input)
{
return OpenAPIClientUtils.compareLogic.Compare(this, input).AreEqual;
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Id != null)
{
hashCode = (hashCode * 59) + this.Id.GetHashCode();
}
if (this.Description != null)
{
hashCode = (hashCode * 59) + this.Description.GetHashCode();
}
if (this.MixDate != null)
{
hashCode = (hashCode * 59) + this.MixDate.GetHashCode();
}
if (this.ShopId != null)
{
hashCode = (hashCode * 59) + this.ShopId.GetHashCode();
}
if (this.TotalPrice != null)
{
hashCode = (hashCode * 59) + this.TotalPrice.GetHashCode();
}
hashCode = (hashCode * 59) + this.TotalRecalculations.GetHashCode();
hashCode = (hashCode * 59) + this.TotalOverPoors.GetHashCode();
hashCode = (hashCode * 59) + this.TotalSkips.GetHashCode();
hashCode = (hashCode * 59) + this.TotalUnderPours.GetHashCode();
if (this.FormulaVersionDate != null)
{
hashCode = (hashCode * 59) + this.FormulaVersionDate.GetHashCode();
}
if (this.SomeCode != null)
{
hashCode = (hashCode * 59) + this.SomeCode.GetHashCode();
}
if (this.BatchNumber != null)
{
hashCode = (hashCode * 59) + this.BatchNumber.GetHashCode();
}
if (this.BrandCode != null)
{
hashCode = (hashCode * 59) + this.BrandCode.GetHashCode();
}
if (this.BrandId != null)
{
hashCode = (hashCode * 59) + this.BrandId.GetHashCode();
}
if (this.BrandName != null)
{
hashCode = (hashCode * 59) + this.BrandName.GetHashCode();
}
if (this.CategoryCode != null)
{
hashCode = (hashCode * 59) + this.CategoryCode.GetHashCode();
}
if (this.Color != null)
{
hashCode = (hashCode * 59) + this.Color.GetHashCode();
}
if (this.ColorDescription != null)
{
hashCode = (hashCode * 59) + this.ColorDescription.GetHashCode();
}
if (this.Comment != null)
{
hashCode = (hashCode * 59) + this.Comment.GetHashCode();
}
if (this.CommercialProductCode != null)
{
hashCode = (hashCode * 59) + this.CommercialProductCode.GetHashCode();
}
if (this.ProductLineCode != null)
{
hashCode = (hashCode * 59) + this.ProductLineCode.GetHashCode();
}
if (this.Country != null)
{
hashCode = (hashCode * 59) + this.Country.GetHashCode();
}
if (this.CreatedBy != null)
{
hashCode = (hashCode * 59) + this.CreatedBy.GetHashCode();
}
if (this.CreatedByFirstName != null)
{
hashCode = (hashCode * 59) + this.CreatedByFirstName.GetHashCode();
}
if (this.CreatedByLastName != null)
{
hashCode = (hashCode * 59) + this.CreatedByLastName.GetHashCode();
}
if (this.DeltaECalculationRepaired != null)
{
hashCode = (hashCode * 59) + this.DeltaECalculationRepaired.GetHashCode();
}
if (this.DeltaECalculationSprayout != null)
{
hashCode = (hashCode * 59) + this.DeltaECalculationSprayout.GetHashCode();
}
if (this.OwnColorVariantNumber != null)
{
hashCode = (hashCode * 59) + this.OwnColorVariantNumber.GetHashCode();
}
if (this.PrimerProductId != null)
{
hashCode = (hashCode * 59) + this.PrimerProductId.GetHashCode();
}
if (this.ProductId != null)
{
hashCode = (hashCode * 59) + this.ProductId.GetHashCode();
}
if (this.ProductName != null)
{
hashCode = (hashCode * 59) + this.ProductName.GetHashCode();
}
hashCode = (hashCode * 59) + this.SelectedVersionIndex.GetHashCode();
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}

View File

@ -51,6 +51,7 @@ docs/List.md
docs/LiteralStringClass.md
docs/Mammal.md
docs/MapTest.md
docs/MixLog.md
docs/MixedPropertiesAndAdditionalPropertiesClass.md
docs/Model200Response.md
docs/ModelClient.md
@ -174,6 +175,7 @@ src/Org.OpenAPITools/Model/List.cs
src/Org.OpenAPITools/Model/LiteralStringClass.cs
src/Org.OpenAPITools/Model/Mammal.cs
src/Org.OpenAPITools/Model/MapTest.cs
src/Org.OpenAPITools/Model/MixLog.cs
src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
src/Org.OpenAPITools/Model/Model200Response.cs
src/Org.OpenAPITools/Model/ModelClient.cs

View File

@ -199,6 +199,7 @@ Class | Method | HTTP request | Description
- [Model.LiteralStringClass](docs/LiteralStringClass.md)
- [Model.Mammal](docs/Mammal.md)
- [Model.MapTest](docs/MapTest.md)
- [Model.MixLog](docs/MixLog.md)
- [Model.MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
- [Model.Model200Response](docs/Model200Response.md)
- [Model.ModelClient](docs/ModelClient.md)

View File

@ -2706,6 +2706,108 @@ components:
- a_objVariableobject
- pkiNotificationtestID
type: object
MixLog:
properties:
id:
format: uuid
type: string
description:
type: string
mixDate:
format: date-time
type: string
shopId:
format: uuid
type: string
totalPrice:
format: float
nullable: true
type: number
totalRecalculations:
format: int32
type: integer
totalOverPoors:
format: int32
type: integer
totalSkips:
format: int32
type: integer
totalUnderPours:
format: int32
type: integer
formulaVersionDate:
format: date-time
type: string
someCode:
description: SomeCode is only required for color mixes
nullable: true
type: string
batchNumber:
type: string
brandCode:
description: BrandCode is only required for non-color mixes
type: string
brandId:
description: BrandId is only required for color mixes
type: string
brandName:
description: BrandName is only required for color mixes
type: string
categoryCode:
description: CategoryCode is not used anymore
type: string
color:
description: Color is only required for color mixes
type: string
colorDescription:
type: string
comment:
type: string
commercialProductCode:
type: string
productLineCode:
description: ProductLineCode is only required for color mixes
type: string
country:
type: string
createdBy:
type: string
createdByFirstName:
type: string
createdByLastName:
type: string
deltaECalculationRepaired:
type: string
deltaECalculationSprayout:
type: string
ownColorVariantNumber:
format: int32
nullable: true
type: integer
primerProductId:
type: string
productId:
description: ProductId is only required for color mixes
type: string
productName:
description: ProductName is only required for color mixes
type: string
selectedVersionIndex:
format: int32
type: integer
required:
- description
- formulaVersionDate
- id
- mixDate
- totalOverPoors
- totalRecalculations
- totalSkips
- totalUnderPours
type: object
uuid:
format: uuid
type: string
_foo_get_default_response:
example:
string:

View File

@ -0,0 +1,41 @@
# Org.OpenAPITools.Model.MixLog
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | **Guid** | |
**Description** | **string** | |
**MixDate** | **DateTime** | |
**ShopId** | **Guid** | | [optional]
**TotalPrice** | **float?** | | [optional]
**TotalRecalculations** | **int** | |
**TotalOverPoors** | **int** | |
**TotalSkips** | **int** | |
**TotalUnderPours** | **int** | |
**FormulaVersionDate** | **DateTime** | |
**SomeCode** | **string** | SomeCode is only required for color mixes | [optional]
**BatchNumber** | **string** | | [optional]
**BrandCode** | **string** | BrandCode is only required for non-color mixes | [optional]
**BrandId** | **string** | BrandId is only required for color mixes | [optional]
**BrandName** | **string** | BrandName is only required for color mixes | [optional]
**CategoryCode** | **string** | CategoryCode is not used anymore | [optional]
**Color** | **string** | Color is only required for color mixes | [optional]
**ColorDescription** | **string** | | [optional]
**Comment** | **string** | | [optional]
**CommercialProductCode** | **string** | | [optional]
**ProductLineCode** | **string** | ProductLineCode is only required for color mixes | [optional]
**Country** | **string** | | [optional]
**CreatedBy** | **string** | | [optional]
**CreatedByFirstName** | **string** | | [optional]
**CreatedByLastName** | **string** | | [optional]
**DeltaECalculationRepaired** | **string** | | [optional]
**DeltaECalculationSprayout** | **string** | | [optional]
**OwnColorVariantNumber** | **int?** | | [optional]
**PrimerProductId** | **string** | | [optional]
**ProductId** | **string** | ProductId is only required for color mixes | [optional]
**ProductName** | **string** | ProductName is only required for color mixes | [optional]
**SelectedVersionIndex** | **int** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,345 @@
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using Xunit;
using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using Org.OpenAPITools.Model;
using Org.OpenAPITools.Client;
using System.Reflection;
using Newtonsoft.Json;
namespace Org.OpenAPITools.Test.Model
{
/// <summary>
/// Class for testing MixLog
/// </summary>
/// <remarks>
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
public class MixLogTests : IDisposable
{
// TODO uncomment below to declare an instance variable for MixLog
//private MixLog instance;
public MixLogTests()
{
// TODO uncomment below to create an instance of MixLog
//instance = new MixLog();
}
public void Dispose()
{
// Cleanup when everything is done.
}
/// <summary>
/// Test an instance of MixLog
/// </summary>
[Fact]
public void MixLogInstanceTest()
{
// TODO uncomment below to test "IsType" MixLog
//Assert.IsType<MixLog>(instance);
}
/// <summary>
/// Test the property 'Id'
/// </summary>
[Fact]
public void IdTest()
{
// TODO unit test for the property 'Id'
}
/// <summary>
/// Test the property 'Description'
/// </summary>
[Fact]
public void DescriptionTest()
{
// TODO unit test for the property 'Description'
}
/// <summary>
/// Test the property 'MixDate'
/// </summary>
[Fact]
public void MixDateTest()
{
// TODO unit test for the property 'MixDate'
}
/// <summary>
/// Test the property 'ShopId'
/// </summary>
[Fact]
public void ShopIdTest()
{
// TODO unit test for the property 'ShopId'
}
/// <summary>
/// Test the property 'TotalPrice'
/// </summary>
[Fact]
public void TotalPriceTest()
{
// TODO unit test for the property 'TotalPrice'
}
/// <summary>
/// Test the property 'TotalRecalculations'
/// </summary>
[Fact]
public void TotalRecalculationsTest()
{
// TODO unit test for the property 'TotalRecalculations'
}
/// <summary>
/// Test the property 'TotalOverPoors'
/// </summary>
[Fact]
public void TotalOverPoorsTest()
{
// TODO unit test for the property 'TotalOverPoors'
}
/// <summary>
/// Test the property 'TotalSkips'
/// </summary>
[Fact]
public void TotalSkipsTest()
{
// TODO unit test for the property 'TotalSkips'
}
/// <summary>
/// Test the property 'TotalUnderPours'
/// </summary>
[Fact]
public void TotalUnderPoursTest()
{
// TODO unit test for the property 'TotalUnderPours'
}
/// <summary>
/// Test the property 'FormulaVersionDate'
/// </summary>
[Fact]
public void FormulaVersionDateTest()
{
// TODO unit test for the property 'FormulaVersionDate'
}
/// <summary>
/// Test the property 'SomeCode'
/// </summary>
[Fact]
public void SomeCodeTest()
{
// TODO unit test for the property 'SomeCode'
}
/// <summary>
/// Test the property 'BatchNumber'
/// </summary>
[Fact]
public void BatchNumberTest()
{
// TODO unit test for the property 'BatchNumber'
}
/// <summary>
/// Test the property 'BrandCode'
/// </summary>
[Fact]
public void BrandCodeTest()
{
// TODO unit test for the property 'BrandCode'
}
/// <summary>
/// Test the property 'BrandId'
/// </summary>
[Fact]
public void BrandIdTest()
{
// TODO unit test for the property 'BrandId'
}
/// <summary>
/// Test the property 'BrandName'
/// </summary>
[Fact]
public void BrandNameTest()
{
// TODO unit test for the property 'BrandName'
}
/// <summary>
/// Test the property 'CategoryCode'
/// </summary>
[Fact]
public void CategoryCodeTest()
{
// TODO unit test for the property 'CategoryCode'
}
/// <summary>
/// Test the property 'Color'
/// </summary>
[Fact]
public void ColorTest()
{
// TODO unit test for the property 'Color'
}
/// <summary>
/// Test the property 'ColorDescription'
/// </summary>
[Fact]
public void ColorDescriptionTest()
{
// TODO unit test for the property 'ColorDescription'
}
/// <summary>
/// Test the property 'Comment'
/// </summary>
[Fact]
public void CommentTest()
{
// TODO unit test for the property 'Comment'
}
/// <summary>
/// Test the property 'CommercialProductCode'
/// </summary>
[Fact]
public void CommercialProductCodeTest()
{
// TODO unit test for the property 'CommercialProductCode'
}
/// <summary>
/// Test the property 'ProductLineCode'
/// </summary>
[Fact]
public void ProductLineCodeTest()
{
// TODO unit test for the property 'ProductLineCode'
}
/// <summary>
/// Test the property 'Country'
/// </summary>
[Fact]
public void CountryTest()
{
// TODO unit test for the property 'Country'
}
/// <summary>
/// Test the property 'CreatedBy'
/// </summary>
[Fact]
public void CreatedByTest()
{
// TODO unit test for the property 'CreatedBy'
}
/// <summary>
/// Test the property 'CreatedByFirstName'
/// </summary>
[Fact]
public void CreatedByFirstNameTest()
{
// TODO unit test for the property 'CreatedByFirstName'
}
/// <summary>
/// Test the property 'CreatedByLastName'
/// </summary>
[Fact]
public void CreatedByLastNameTest()
{
// TODO unit test for the property 'CreatedByLastName'
}
/// <summary>
/// Test the property 'DeltaECalculationRepaired'
/// </summary>
[Fact]
public void DeltaECalculationRepairedTest()
{
// TODO unit test for the property 'DeltaECalculationRepaired'
}
/// <summary>
/// Test the property 'DeltaECalculationSprayout'
/// </summary>
[Fact]
public void DeltaECalculationSprayoutTest()
{
// TODO unit test for the property 'DeltaECalculationSprayout'
}
/// <summary>
/// Test the property 'OwnColorVariantNumber'
/// </summary>
[Fact]
public void OwnColorVariantNumberTest()
{
// TODO unit test for the property 'OwnColorVariantNumber'
}
/// <summary>
/// Test the property 'PrimerProductId'
/// </summary>
[Fact]
public void PrimerProductIdTest()
{
// TODO unit test for the property 'PrimerProductId'
}
/// <summary>
/// Test the property 'ProductId'
/// </summary>
[Fact]
public void ProductIdTest()
{
// TODO unit test for the property 'ProductId'
}
/// <summary>
/// Test the property 'ProductName'
/// </summary>
[Fact]
public void ProductNameTest()
{
// TODO unit test for the property 'ProductName'
}
/// <summary>
/// Test the property 'SelectedVersionIndex'
/// </summary>
[Fact]
public void SelectedVersionIndexTest()
{
// TODO unit test for the property 'SelectedVersionIndex'
}
}
}

View File

@ -49,6 +49,7 @@ docs/List.md
docs/LiteralStringClass.md
docs/Mammal.md
docs/MapTest.md
docs/MixLog.md
docs/MixedPropertiesAndAdditionalPropertiesClass.md
docs/Model200Response.md
docs/ModelClient.md
@ -170,6 +171,7 @@ src/Org.OpenAPITools/Model/List.cs
src/Org.OpenAPITools/Model/LiteralStringClass.cs
src/Org.OpenAPITools/Model/Mammal.cs
src/Org.OpenAPITools/Model/MapTest.cs
src/Org.OpenAPITools/Model/MixLog.cs
src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs
src/Org.OpenAPITools/Model/Model200Response.cs
src/Org.OpenAPITools/Model/ModelClient.cs

View File

@ -185,6 +185,7 @@ Class | Method | HTTP request | Description
- [Model.LiteralStringClass](LiteralStringClass.md)
- [Model.Mammal](Mammal.md)
- [Model.MapTest](MapTest.md)
- [Model.MixLog](MixLog.md)
- [Model.MixedPropertiesAndAdditionalPropertiesClass](MixedPropertiesAndAdditionalPropertiesClass.md)
- [Model.Model200Response](Model200Response.md)
- [Model.ModelClient](ModelClient.md)

View File

@ -2706,6 +2706,108 @@ components:
- a_objVariableobject
- pkiNotificationtestID
type: object
MixLog:
properties:
id:
format: uuid
type: string
description:
type: string
mixDate:
format: date-time
type: string
shopId:
format: uuid
type: string
totalPrice:
format: float
nullable: true
type: number
totalRecalculations:
format: int32
type: integer
totalOverPoors:
format: int32
type: integer
totalSkips:
format: int32
type: integer
totalUnderPours:
format: int32
type: integer
formulaVersionDate:
format: date-time
type: string
someCode:
description: SomeCode is only required for color mixes
nullable: true
type: string
batchNumber:
type: string
brandCode:
description: BrandCode is only required for non-color mixes
type: string
brandId:
description: BrandId is only required for color mixes
type: string
brandName:
description: BrandName is only required for color mixes
type: string
categoryCode:
description: CategoryCode is not used anymore
type: string
color:
description: Color is only required for color mixes
type: string
colorDescription:
type: string
comment:
type: string
commercialProductCode:
type: string
productLineCode:
description: ProductLineCode is only required for color mixes
type: string
country:
type: string
createdBy:
type: string
createdByFirstName:
type: string
createdByLastName:
type: string
deltaECalculationRepaired:
type: string
deltaECalculationSprayout:
type: string
ownColorVariantNumber:
format: int32
nullable: true
type: integer
primerProductId:
type: string
productId:
description: ProductId is only required for color mixes
type: string
productName:
description: ProductName is only required for color mixes
type: string
selectedVersionIndex:
format: int32
type: integer
required:
- description
- formulaVersionDate
- id
- mixDate
- totalOverPoors
- totalRecalculations
- totalSkips
- totalUnderPours
type: object
uuid:
format: uuid
type: string
_foo_get_default_response:
example:
string:

View File

@ -0,0 +1,41 @@
# Org.OpenAPITools.Model.MixLog
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | **Guid** | |
**Description** | **string** | |
**MixDate** | **DateTime** | |
**ShopId** | **Guid** | | [optional]
**TotalPrice** | **float?** | | [optional]
**TotalRecalculations** | **int** | |
**TotalOverPoors** | **int** | |
**TotalSkips** | **int** | |
**TotalUnderPours** | **int** | |
**FormulaVersionDate** | **DateTime** | |
**SomeCode** | **string** | SomeCode is only required for color mixes | [optional]
**BatchNumber** | **string** | | [optional]
**BrandCode** | **string** | BrandCode is only required for non-color mixes | [optional]
**BrandId** | **string** | BrandId is only required for color mixes | [optional]
**BrandName** | **string** | BrandName is only required for color mixes | [optional]
**CategoryCode** | **string** | CategoryCode is not used anymore | [optional]
**Color** | **string** | Color is only required for color mixes | [optional]
**ColorDescription** | **string** | | [optional]
**Comment** | **string** | | [optional]
**CommercialProductCode** | **string** | | [optional]
**ProductLineCode** | **string** | ProductLineCode is only required for color mixes | [optional]
**Country** | **string** | | [optional]
**CreatedBy** | **string** | | [optional]
**CreatedByFirstName** | **string** | | [optional]
**CreatedByLastName** | **string** | | [optional]
**DeltaECalculationRepaired** | **string** | | [optional]
**DeltaECalculationSprayout** | **string** | | [optional]
**OwnColorVariantNumber** | **int?** | | [optional]
**PrimerProductId** | **string** | | [optional]
**ProductId** | **string** | ProductId is only required for color mixes | [optional]
**ProductName** | **string** | ProductName is only required for color mixes | [optional]
**SelectedVersionIndex** | **int** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -0,0 +1,314 @@
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Model;
using Org.OpenAPITools.Client;
using System.Reflection;
using Newtonsoft.Json;
using NUnit.Framework;
namespace Org.OpenAPITools.Test.Model
{
/// <summary>
/// Class for testing MixLog
/// </summary>
/// <remarks>
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
/// Please update the test case below to test the model.
/// </remarks>
public class MixLogTests : IDisposable
{
// TODO uncomment below to declare an instance variable for MixLog
//private MixLog instance;
public MixLogTests()
{
// TODO uncomment below to create an instance of MixLog
//instance = new MixLog();
}
public void Dispose()
{
// Cleanup when everything is done.
}
/// <summary>
/// Test an instance of MixLog
/// </summary>
[Test]
public void MixLogInstanceTest()
{
// TODO uncomment below to test "IsType" MixLog
//Assert.IsType<MixLog>(instance);
}
/// <summary>
/// Test the property 'Id'
/// </summary>
[Test]
public void IdTest()
{
// TODO unit test for the property 'Id'
}
/// <summary>
/// Test the property 'Description'
/// </summary>
[Test]
public void DescriptionTest()
{
// TODO unit test for the property 'Description'
}
/// <summary>
/// Test the property 'MixDate'
/// </summary>
[Test]
public void MixDateTest()
{
// TODO unit test for the property 'MixDate'
}
/// <summary>
/// Test the property 'ShopId'
/// </summary>
[Test]
public void ShopIdTest()
{
// TODO unit test for the property 'ShopId'
}
/// <summary>
/// Test the property 'TotalPrice'
/// </summary>
[Test]
public void TotalPriceTest()
{
// TODO unit test for the property 'TotalPrice'
}
/// <summary>
/// Test the property 'TotalRecalculations'
/// </summary>
[Test]
public void TotalRecalculationsTest()
{
// TODO unit test for the property 'TotalRecalculations'
}
/// <summary>
/// Test the property 'TotalOverPoors'
/// </summary>
[Test]
public void TotalOverPoorsTest()
{
// TODO unit test for the property 'TotalOverPoors'
}
/// <summary>
/// Test the property 'TotalSkips'
/// </summary>
[Test]
public void TotalSkipsTest()
{
// TODO unit test for the property 'TotalSkips'
}
/// <summary>
/// Test the property 'TotalUnderPours'
/// </summary>
[Test]
public void TotalUnderPoursTest()
{
// TODO unit test for the property 'TotalUnderPours'
}
/// <summary>
/// Test the property 'FormulaVersionDate'
/// </summary>
[Test]
public void FormulaVersionDateTest()
{
// TODO unit test for the property 'FormulaVersionDate'
}
/// <summary>
/// Test the property 'SomeCode'
/// </summary>
[Test]
public void SomeCodeTest()
{
// TODO unit test for the property 'SomeCode'
}
/// <summary>
/// Test the property 'BatchNumber'
/// </summary>
[Test]
public void BatchNumberTest()
{
// TODO unit test for the property 'BatchNumber'
}
/// <summary>
/// Test the property 'BrandCode'
/// </summary>
[Test]
public void BrandCodeTest()
{
// TODO unit test for the property 'BrandCode'
}
/// <summary>
/// Test the property 'BrandId'
/// </summary>
[Test]
public void BrandIdTest()
{
// TODO unit test for the property 'BrandId'
}
/// <summary>
/// Test the property 'BrandName'
/// </summary>
[Test]
public void BrandNameTest()
{
// TODO unit test for the property 'BrandName'
}
/// <summary>
/// Test the property 'CategoryCode'
/// </summary>
[Test]
public void CategoryCodeTest()
{
// TODO unit test for the property 'CategoryCode'
}
/// <summary>
/// Test the property 'Color'
/// </summary>
[Test]
public void ColorTest()
{
// TODO unit test for the property 'Color'
}
/// <summary>
/// Test the property 'ColorDescription'
/// </summary>
[Test]
public void ColorDescriptionTest()
{
// TODO unit test for the property 'ColorDescription'
}
/// <summary>
/// Test the property 'Comment'
/// </summary>
[Test]
public void CommentTest()
{
// TODO unit test for the property 'Comment'
}
/// <summary>
/// Test the property 'CommercialProductCode'
/// </summary>
[Test]
public void CommercialProductCodeTest()
{
// TODO unit test for the property 'CommercialProductCode'
}
/// <summary>
/// Test the property 'ProductLineCode'
/// </summary>
[Test]
public void ProductLineCodeTest()
{
// TODO unit test for the property 'ProductLineCode'
}
/// <summary>
/// Test the property 'Country'
/// </summary>
[Test]
public void CountryTest()
{
// TODO unit test for the property 'Country'
}
/// <summary>
/// Test the property 'CreatedBy'
/// </summary>
[Test]
public void CreatedByTest()
{
// TODO unit test for the property 'CreatedBy'
}
/// <summary>
/// Test the property 'CreatedByFirstName'
/// </summary>
[Test]
public void CreatedByFirstNameTest()
{
// TODO unit test for the property 'CreatedByFirstName'
}
/// <summary>
/// Test the property 'CreatedByLastName'
/// </summary>
[Test]
public void CreatedByLastNameTest()
{
// TODO unit test for the property 'CreatedByLastName'
}
/// <summary>
/// Test the property 'DeltaECalculationRepaired'
/// </summary>
[Test]
public void DeltaECalculationRepairedTest()
{
// TODO unit test for the property 'DeltaECalculationRepaired'
}
/// <summary>
/// Test the property 'DeltaECalculationSprayout'
/// </summary>
[Test]
public void DeltaECalculationSprayoutTest()
{
// TODO unit test for the property 'DeltaECalculationSprayout'
}
/// <summary>
/// Test the property 'OwnColorVariantNumber'
/// </summary>
[Test]
public void OwnColorVariantNumberTest()
{
// TODO unit test for the property 'OwnColorVariantNumber'
}
/// <summary>
/// Test the property 'PrimerProductId'
/// </summary>
[Test]
public void PrimerProductIdTest()
{
// TODO unit test for the property 'PrimerProductId'
}
/// <summary>
/// Test the property 'ProductId'
/// </summary>
[Test]
public void ProductIdTest()
{
// TODO unit test for the property 'ProductId'
}
/// <summary>
/// Test the property 'ProductName'
/// </summary>
[Test]
public void ProductNameTest()
{
// TODO unit test for the property 'ProductName'
}
/// <summary>
/// Test the property 'SelectedVersionIndex'
/// </summary>
[Test]
public void SelectedVersionIndexTest()
{
// TODO unit test for the property 'SelectedVersionIndex'
}
}
}

View File

@ -0,0 +1,675 @@
/*
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.IO;
using System.Runtime.Serialization;
using System.Text;
using System.Text.RegularExpressions;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
namespace Org.OpenAPITools.Model
{
/// <summary>
/// MixLog
/// </summary>
[DataContract(Name = "MixLog")]
public partial class MixLog : IEquatable<MixLog>
{
/// <summary>
/// Initializes a new instance of the <see cref="MixLog" /> class.
/// </summary>
[JsonConstructorAttribute]
protected MixLog() { }
/// <summary>
/// Initializes a new instance of the <see cref="MixLog" /> class.
/// </summary>
/// <param name="id">id (required).</param>
/// <param name="description">description (required).</param>
/// <param name="mixDate">mixDate (required).</param>
/// <param name="shopId">shopId.</param>
/// <param name="totalPrice">totalPrice.</param>
/// <param name="totalRecalculations">totalRecalculations (required).</param>
/// <param name="totalOverPoors">totalOverPoors (required).</param>
/// <param name="totalSkips">totalSkips (required).</param>
/// <param name="totalUnderPours">totalUnderPours (required).</param>
/// <param name="formulaVersionDate">formulaVersionDate (required).</param>
/// <param name="someCode">SomeCode is only required for color mixes.</param>
/// <param name="batchNumber">batchNumber.</param>
/// <param name="brandCode">BrandCode is only required for non-color mixes.</param>
/// <param name="brandId">BrandId is only required for color mixes.</param>
/// <param name="brandName">BrandName is only required for color mixes.</param>
/// <param name="categoryCode">CategoryCode is not used anymore.</param>
/// <param name="color">Color is only required for color mixes.</param>
/// <param name="colorDescription">colorDescription.</param>
/// <param name="comment">comment.</param>
/// <param name="commercialProductCode">commercialProductCode.</param>
/// <param name="productLineCode">ProductLineCode is only required for color mixes.</param>
/// <param name="country">country.</param>
/// <param name="createdBy">createdBy.</param>
/// <param name="createdByFirstName">createdByFirstName.</param>
/// <param name="createdByLastName">createdByLastName.</param>
/// <param name="deltaECalculationRepaired">deltaECalculationRepaired.</param>
/// <param name="deltaECalculationSprayout">deltaECalculationSprayout.</param>
/// <param name="ownColorVariantNumber">ownColorVariantNumber.</param>
/// <param name="primerProductId">primerProductId.</param>
/// <param name="productId">ProductId is only required for color mixes.</param>
/// <param name="productName">ProductName is only required for color mixes.</param>
/// <param name="selectedVersionIndex">selectedVersionIndex.</param>
public MixLog(Guid id = default(Guid), string description = default(string), DateTime mixDate = default(DateTime), Guid shopId = default(Guid), float? totalPrice = default(float?), int totalRecalculations = default(int), int totalOverPoors = default(int), int totalSkips = default(int), int totalUnderPours = default(int), DateTime formulaVersionDate = default(DateTime), string someCode = default(string), string batchNumber = default(string), string brandCode = default(string), string brandId = default(string), string brandName = default(string), string categoryCode = default(string), string color = default(string), string colorDescription = default(string), string comment = default(string), string commercialProductCode = default(string), string productLineCode = default(string), string country = default(string), string createdBy = default(string), string createdByFirstName = default(string), string createdByLastName = default(string), string deltaECalculationRepaired = default(string), string deltaECalculationSprayout = default(string), int? ownColorVariantNumber = default(int?), string primerProductId = default(string), string productId = default(string), string productName = default(string), int selectedVersionIndex = default(int))
{
this.Id = id;
// to ensure "description" is required (not null)
if (description == null)
{
throw new ArgumentNullException("description is a required property for MixLog and cannot be null");
}
this.Description = description;
this.MixDate = mixDate;
this.TotalRecalculations = totalRecalculations;
this.TotalOverPoors = totalOverPoors;
this.TotalSkips = totalSkips;
this.TotalUnderPours = totalUnderPours;
this.FormulaVersionDate = formulaVersionDate;
this.ShopId = shopId;
this.TotalPrice = totalPrice;
this.SomeCode = someCode;
this.BatchNumber = batchNumber;
this.BrandCode = brandCode;
this.BrandId = brandId;
this.BrandName = brandName;
this.CategoryCode = categoryCode;
this.Color = color;
this.ColorDescription = colorDescription;
this.Comment = comment;
this.CommercialProductCode = commercialProductCode;
this.ProductLineCode = productLineCode;
this.Country = country;
this.CreatedBy = createdBy;
this.CreatedByFirstName = createdByFirstName;
this.CreatedByLastName = createdByLastName;
this.DeltaECalculationRepaired = deltaECalculationRepaired;
this.DeltaECalculationSprayout = deltaECalculationSprayout;
this.OwnColorVariantNumber = ownColorVariantNumber;
this.PrimerProductId = primerProductId;
this.ProductId = productId;
this.ProductName = productName;
this.SelectedVersionIndex = selectedVersionIndex;
}
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
public Guid Id { get; set; }
/// <summary>
/// Gets or Sets Description
/// </summary>
[DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)]
public string Description { get; set; }
/// <summary>
/// Gets or Sets MixDate
/// </summary>
[DataMember(Name = "mixDate", IsRequired = true, EmitDefaultValue = true)]
public DateTime MixDate { get; set; }
/// <summary>
/// Gets or Sets ShopId
/// </summary>
[DataMember(Name = "shopId", EmitDefaultValue = false)]
public Guid ShopId { get; set; }
/// <summary>
/// Gets or Sets TotalPrice
/// </summary>
[DataMember(Name = "totalPrice", EmitDefaultValue = true)]
public float? TotalPrice { get; set; }
/// <summary>
/// Gets or Sets TotalRecalculations
/// </summary>
[DataMember(Name = "totalRecalculations", IsRequired = true, EmitDefaultValue = true)]
public int TotalRecalculations { get; set; }
/// <summary>
/// Gets or Sets TotalOverPoors
/// </summary>
[DataMember(Name = "totalOverPoors", IsRequired = true, EmitDefaultValue = true)]
public int TotalOverPoors { get; set; }
/// <summary>
/// Gets or Sets TotalSkips
/// </summary>
[DataMember(Name = "totalSkips", IsRequired = true, EmitDefaultValue = true)]
public int TotalSkips { get; set; }
/// <summary>
/// Gets or Sets TotalUnderPours
/// </summary>
[DataMember(Name = "totalUnderPours", IsRequired = true, EmitDefaultValue = true)]
public int TotalUnderPours { get; set; }
/// <summary>
/// Gets or Sets FormulaVersionDate
/// </summary>
[DataMember(Name = "formulaVersionDate", IsRequired = true, EmitDefaultValue = true)]
public DateTime FormulaVersionDate { get; set; }
/// <summary>
/// SomeCode is only required for color mixes
/// </summary>
/// <value>SomeCode is only required for color mixes</value>
[DataMember(Name = "someCode", EmitDefaultValue = true)]
public string SomeCode { get; set; }
/// <summary>
/// Gets or Sets BatchNumber
/// </summary>
[DataMember(Name = "batchNumber", EmitDefaultValue = false)]
public string BatchNumber { get; set; }
/// <summary>
/// BrandCode is only required for non-color mixes
/// </summary>
/// <value>BrandCode is only required for non-color mixes</value>
[DataMember(Name = "brandCode", EmitDefaultValue = false)]
public string BrandCode { get; set; }
/// <summary>
/// BrandId is only required for color mixes
/// </summary>
/// <value>BrandId is only required for color mixes</value>
[DataMember(Name = "brandId", EmitDefaultValue = false)]
public string BrandId { get; set; }
/// <summary>
/// BrandName is only required for color mixes
/// </summary>
/// <value>BrandName is only required for color mixes</value>
[DataMember(Name = "brandName", EmitDefaultValue = false)]
public string BrandName { get; set; }
/// <summary>
/// CategoryCode is not used anymore
/// </summary>
/// <value>CategoryCode is not used anymore</value>
[DataMember(Name = "categoryCode", EmitDefaultValue = false)]
public string CategoryCode { get; set; }
/// <summary>
/// Color is only required for color mixes
/// </summary>
/// <value>Color is only required for color mixes</value>
[DataMember(Name = "color", EmitDefaultValue = false)]
public string Color { get; set; }
/// <summary>
/// Gets or Sets ColorDescription
/// </summary>
[DataMember(Name = "colorDescription", EmitDefaultValue = false)]
public string ColorDescription { get; set; }
/// <summary>
/// Gets or Sets Comment
/// </summary>
[DataMember(Name = "comment", EmitDefaultValue = false)]
public string Comment { get; set; }
/// <summary>
/// Gets or Sets CommercialProductCode
/// </summary>
[DataMember(Name = "commercialProductCode", EmitDefaultValue = false)]
public string CommercialProductCode { get; set; }
/// <summary>
/// ProductLineCode is only required for color mixes
/// </summary>
/// <value>ProductLineCode is only required for color mixes</value>
[DataMember(Name = "productLineCode", EmitDefaultValue = false)]
public string ProductLineCode { get; set; }
/// <summary>
/// Gets or Sets Country
/// </summary>
[DataMember(Name = "country", EmitDefaultValue = false)]
public string Country { get; set; }
/// <summary>
/// Gets or Sets CreatedBy
/// </summary>
[DataMember(Name = "createdBy", EmitDefaultValue = false)]
public string CreatedBy { get; set; }
/// <summary>
/// Gets or Sets CreatedByFirstName
/// </summary>
[DataMember(Name = "createdByFirstName", EmitDefaultValue = false)]
public string CreatedByFirstName { get; set; }
/// <summary>
/// Gets or Sets CreatedByLastName
/// </summary>
[DataMember(Name = "createdByLastName", EmitDefaultValue = false)]
public string CreatedByLastName { get; set; }
/// <summary>
/// Gets or Sets DeltaECalculationRepaired
/// </summary>
[DataMember(Name = "deltaECalculationRepaired", EmitDefaultValue = false)]
public string DeltaECalculationRepaired { get; set; }
/// <summary>
/// Gets or Sets DeltaECalculationSprayout
/// </summary>
[DataMember(Name = "deltaECalculationSprayout", EmitDefaultValue = false)]
public string DeltaECalculationSprayout { get; set; }
/// <summary>
/// Gets or Sets OwnColorVariantNumber
/// </summary>
[DataMember(Name = "ownColorVariantNumber", EmitDefaultValue = true)]
public int? OwnColorVariantNumber { get; set; }
/// <summary>
/// Gets or Sets PrimerProductId
/// </summary>
[DataMember(Name = "primerProductId", EmitDefaultValue = false)]
public string PrimerProductId { get; set; }
/// <summary>
/// ProductId is only required for color mixes
/// </summary>
/// <value>ProductId is only required for color mixes</value>
[DataMember(Name = "productId", EmitDefaultValue = false)]
public string ProductId { get; set; }
/// <summary>
/// ProductName is only required for color mixes
/// </summary>
/// <value>ProductName is only required for color mixes</value>
[DataMember(Name = "productName", EmitDefaultValue = false)]
public string ProductName { get; set; }
/// <summary>
/// Gets or Sets SelectedVersionIndex
/// </summary>
[DataMember(Name = "selectedVersionIndex", EmitDefaultValue = false)]
public int SelectedVersionIndex { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class MixLog {\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" Description: ").Append(Description).Append("\n");
sb.Append(" MixDate: ").Append(MixDate).Append("\n");
sb.Append(" ShopId: ").Append(ShopId).Append("\n");
sb.Append(" TotalPrice: ").Append(TotalPrice).Append("\n");
sb.Append(" TotalRecalculations: ").Append(TotalRecalculations).Append("\n");
sb.Append(" TotalOverPoors: ").Append(TotalOverPoors).Append("\n");
sb.Append(" TotalSkips: ").Append(TotalSkips).Append("\n");
sb.Append(" TotalUnderPours: ").Append(TotalUnderPours).Append("\n");
sb.Append(" FormulaVersionDate: ").Append(FormulaVersionDate).Append("\n");
sb.Append(" SomeCode: ").Append(SomeCode).Append("\n");
sb.Append(" BatchNumber: ").Append(BatchNumber).Append("\n");
sb.Append(" BrandCode: ").Append(BrandCode).Append("\n");
sb.Append(" BrandId: ").Append(BrandId).Append("\n");
sb.Append(" BrandName: ").Append(BrandName).Append("\n");
sb.Append(" CategoryCode: ").Append(CategoryCode).Append("\n");
sb.Append(" Color: ").Append(Color).Append("\n");
sb.Append(" ColorDescription: ").Append(ColorDescription).Append("\n");
sb.Append(" Comment: ").Append(Comment).Append("\n");
sb.Append(" CommercialProductCode: ").Append(CommercialProductCode).Append("\n");
sb.Append(" ProductLineCode: ").Append(ProductLineCode).Append("\n");
sb.Append(" Country: ").Append(Country).Append("\n");
sb.Append(" CreatedBy: ").Append(CreatedBy).Append("\n");
sb.Append(" CreatedByFirstName: ").Append(CreatedByFirstName).Append("\n");
sb.Append(" CreatedByLastName: ").Append(CreatedByLastName).Append("\n");
sb.Append(" DeltaECalculationRepaired: ").Append(DeltaECalculationRepaired).Append("\n");
sb.Append(" DeltaECalculationSprayout: ").Append(DeltaECalculationSprayout).Append("\n");
sb.Append(" OwnColorVariantNumber: ").Append(OwnColorVariantNumber).Append("\n");
sb.Append(" PrimerProductId: ").Append(PrimerProductId).Append("\n");
sb.Append(" ProductId: ").Append(ProductId).Append("\n");
sb.Append(" ProductName: ").Append(ProductName).Append("\n");
sb.Append(" SelectedVersionIndex: ").Append(SelectedVersionIndex).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public virtual string ToJson()
{
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as MixLog);
}
/// <summary>
/// Returns true if MixLog instances are equal
/// </summary>
/// <param name="input">Instance of MixLog to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(MixLog input)
{
if (input == null)
{
return false;
}
return
(
this.Id == input.Id ||
(this.Id != null &&
this.Id.Equals(input.Id))
) &&
(
this.Description == input.Description ||
(this.Description != null &&
this.Description.Equals(input.Description))
) &&
(
this.MixDate == input.MixDate ||
(this.MixDate != null &&
this.MixDate.Equals(input.MixDate))
) &&
(
this.ShopId == input.ShopId ||
(this.ShopId != null &&
this.ShopId.Equals(input.ShopId))
) &&
(
this.TotalPrice == input.TotalPrice ||
(this.TotalPrice != null &&
this.TotalPrice.Equals(input.TotalPrice))
) &&
(
this.TotalRecalculations == input.TotalRecalculations ||
this.TotalRecalculations.Equals(input.TotalRecalculations)
) &&
(
this.TotalOverPoors == input.TotalOverPoors ||
this.TotalOverPoors.Equals(input.TotalOverPoors)
) &&
(
this.TotalSkips == input.TotalSkips ||
this.TotalSkips.Equals(input.TotalSkips)
) &&
(
this.TotalUnderPours == input.TotalUnderPours ||
this.TotalUnderPours.Equals(input.TotalUnderPours)
) &&
(
this.FormulaVersionDate == input.FormulaVersionDate ||
(this.FormulaVersionDate != null &&
this.FormulaVersionDate.Equals(input.FormulaVersionDate))
) &&
(
this.SomeCode == input.SomeCode ||
(this.SomeCode != null &&
this.SomeCode.Equals(input.SomeCode))
) &&
(
this.BatchNumber == input.BatchNumber ||
(this.BatchNumber != null &&
this.BatchNumber.Equals(input.BatchNumber))
) &&
(
this.BrandCode == input.BrandCode ||
(this.BrandCode != null &&
this.BrandCode.Equals(input.BrandCode))
) &&
(
this.BrandId == input.BrandId ||
(this.BrandId != null &&
this.BrandId.Equals(input.BrandId))
) &&
(
this.BrandName == input.BrandName ||
(this.BrandName != null &&
this.BrandName.Equals(input.BrandName))
) &&
(
this.CategoryCode == input.CategoryCode ||
(this.CategoryCode != null &&
this.CategoryCode.Equals(input.CategoryCode))
) &&
(
this.Color == input.Color ||
(this.Color != null &&
this.Color.Equals(input.Color))
) &&
(
this.ColorDescription == input.ColorDescription ||
(this.ColorDescription != null &&
this.ColorDescription.Equals(input.ColorDescription))
) &&
(
this.Comment == input.Comment ||
(this.Comment != null &&
this.Comment.Equals(input.Comment))
) &&
(
this.CommercialProductCode == input.CommercialProductCode ||
(this.CommercialProductCode != null &&
this.CommercialProductCode.Equals(input.CommercialProductCode))
) &&
(
this.ProductLineCode == input.ProductLineCode ||
(this.ProductLineCode != null &&
this.ProductLineCode.Equals(input.ProductLineCode))
) &&
(
this.Country == input.Country ||
(this.Country != null &&
this.Country.Equals(input.Country))
) &&
(
this.CreatedBy == input.CreatedBy ||
(this.CreatedBy != null &&
this.CreatedBy.Equals(input.CreatedBy))
) &&
(
this.CreatedByFirstName == input.CreatedByFirstName ||
(this.CreatedByFirstName != null &&
this.CreatedByFirstName.Equals(input.CreatedByFirstName))
) &&
(
this.CreatedByLastName == input.CreatedByLastName ||
(this.CreatedByLastName != null &&
this.CreatedByLastName.Equals(input.CreatedByLastName))
) &&
(
this.DeltaECalculationRepaired == input.DeltaECalculationRepaired ||
(this.DeltaECalculationRepaired != null &&
this.DeltaECalculationRepaired.Equals(input.DeltaECalculationRepaired))
) &&
(
this.DeltaECalculationSprayout == input.DeltaECalculationSprayout ||
(this.DeltaECalculationSprayout != null &&
this.DeltaECalculationSprayout.Equals(input.DeltaECalculationSprayout))
) &&
(
this.OwnColorVariantNumber == input.OwnColorVariantNumber ||
(this.OwnColorVariantNumber != null &&
this.OwnColorVariantNumber.Equals(input.OwnColorVariantNumber))
) &&
(
this.PrimerProductId == input.PrimerProductId ||
(this.PrimerProductId != null &&
this.PrimerProductId.Equals(input.PrimerProductId))
) &&
(
this.ProductId == input.ProductId ||
(this.ProductId != null &&
this.ProductId.Equals(input.ProductId))
) &&
(
this.ProductName == input.ProductName ||
(this.ProductName != null &&
this.ProductName.Equals(input.ProductName))
) &&
(
this.SelectedVersionIndex == input.SelectedVersionIndex ||
this.SelectedVersionIndex.Equals(input.SelectedVersionIndex)
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Id != null)
{
hashCode = (hashCode * 59) + this.Id.GetHashCode();
}
if (this.Description != null)
{
hashCode = (hashCode * 59) + this.Description.GetHashCode();
}
if (this.MixDate != null)
{
hashCode = (hashCode * 59) + this.MixDate.GetHashCode();
}
if (this.ShopId != null)
{
hashCode = (hashCode * 59) + this.ShopId.GetHashCode();
}
if (this.TotalPrice != null)
{
hashCode = (hashCode * 59) + this.TotalPrice.GetHashCode();
}
hashCode = (hashCode * 59) + this.TotalRecalculations.GetHashCode();
hashCode = (hashCode * 59) + this.TotalOverPoors.GetHashCode();
hashCode = (hashCode * 59) + this.TotalSkips.GetHashCode();
hashCode = (hashCode * 59) + this.TotalUnderPours.GetHashCode();
if (this.FormulaVersionDate != null)
{
hashCode = (hashCode * 59) + this.FormulaVersionDate.GetHashCode();
}
if (this.SomeCode != null)
{
hashCode = (hashCode * 59) + this.SomeCode.GetHashCode();
}
if (this.BatchNumber != null)
{
hashCode = (hashCode * 59) + this.BatchNumber.GetHashCode();
}
if (this.BrandCode != null)
{
hashCode = (hashCode * 59) + this.BrandCode.GetHashCode();
}
if (this.BrandId != null)
{
hashCode = (hashCode * 59) + this.BrandId.GetHashCode();
}
if (this.BrandName != null)
{
hashCode = (hashCode * 59) + this.BrandName.GetHashCode();
}
if (this.CategoryCode != null)
{
hashCode = (hashCode * 59) + this.CategoryCode.GetHashCode();
}
if (this.Color != null)
{
hashCode = (hashCode * 59) + this.Color.GetHashCode();
}
if (this.ColorDescription != null)
{
hashCode = (hashCode * 59) + this.ColorDescription.GetHashCode();
}
if (this.Comment != null)
{
hashCode = (hashCode * 59) + this.Comment.GetHashCode();
}
if (this.CommercialProductCode != null)
{
hashCode = (hashCode * 59) + this.CommercialProductCode.GetHashCode();
}
if (this.ProductLineCode != null)
{
hashCode = (hashCode * 59) + this.ProductLineCode.GetHashCode();
}
if (this.Country != null)
{
hashCode = (hashCode * 59) + this.Country.GetHashCode();
}
if (this.CreatedBy != null)
{
hashCode = (hashCode * 59) + this.CreatedBy.GetHashCode();
}
if (this.CreatedByFirstName != null)
{
hashCode = (hashCode * 59) + this.CreatedByFirstName.GetHashCode();
}
if (this.CreatedByLastName != null)
{
hashCode = (hashCode * 59) + this.CreatedByLastName.GetHashCode();
}
if (this.DeltaECalculationRepaired != null)
{
hashCode = (hashCode * 59) + this.DeltaECalculationRepaired.GetHashCode();
}
if (this.DeltaECalculationSprayout != null)
{
hashCode = (hashCode * 59) + this.DeltaECalculationSprayout.GetHashCode();
}
if (this.OwnColorVariantNumber != null)
{
hashCode = (hashCode * 59) + this.OwnColorVariantNumber.GetHashCode();
}
if (this.PrimerProductId != null)
{
hashCode = (hashCode * 59) + this.PrimerProductId.GetHashCode();
}
if (this.ProductId != null)
{
hashCode = (hashCode * 59) + this.ProductId.GetHashCode();
}
if (this.ProductName != null)
{
hashCode = (hashCode * 59) + this.ProductName.GetHashCode();
}
hashCode = (hashCode * 59) + this.SelectedVersionIndex.GetHashCode();
return hashCode;
}
}
}
}