Skip to content

Commit

Permalink
Automated update by SDK Generator version:2.1.0 commit:486999d
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 11, 2023
1 parent edf0797 commit 0c73d43
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 20 deletions.
10 changes: 5 additions & 5 deletions src/gen/Apideck.sln
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Apideck", "src\Apideck\Apideck.csproj", "{F235342E-ACA3-4755-916A-11E928BCD642}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Apideck", "src\Apideck\Apideck.csproj", "{54AF8900-7ADB-429A-B480-58D39CB59AF9}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Apideck.Test", "src\Apideck.Test\Apideck.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
EndProject
Expand All @@ -12,10 +12,10 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{F235342E-ACA3-4755-916A-11E928BCD642}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F235342E-ACA3-4755-916A-11E928BCD642}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F235342E-ACA3-4755-916A-11E928BCD642}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F235342E-ACA3-4755-916A-11E928BCD642}.Release|Any CPU.Build.0 = Release|Any CPU
{54AF8900-7ADB-429A-B480-58D39CB59AF9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{54AF8900-7ADB-429A-B480-58D39CB59AF9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{54AF8900-7ADB-429A-B480-58D39CB59AF9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{54AF8900-7ADB-429A-B480-58D39CB59AF9}.Release|Any CPU.Build.0 = Release|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down
2 changes: 1 addition & 1 deletion src/gen/docs/Employee.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Name | Type | Description | Notes
**CompanyName** | **string** | The name of the company. | [optional]
**EmploymentStartDate** | **string** | A Start Date is the date that the employee started working at the company | [optional]
**EmploymentEndDate** | **string** | An End Date is the date that the employee ended working at the company | [optional]
**LeavingReason** | [**OneOfstringnull**](OneOfstringnull.md) | | [optional]
**LeavingReason** | **string** | The reason because the employment ended. | [optional]
**EmployeeNumber** | **string** | An Employee Number, Employee ID or Employee Code, is a unique number that has been assigned to each individual staff member within a company. | [optional]
**EmploymentStatus** | **EmploymentStatus** | | [optional]
**EmploymentRole** | [**EmployeeEmploymentRole**](EmployeeEmploymentRole.md) | | [optional]
Expand Down
58 changes: 44 additions & 14 deletions src/gen/src/Apideck/Model/Employee.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,46 @@ namespace Apideck.Model
[DataContract(Name = "Employee")]
public partial class Employee : IEquatable<Employee>, IValidatableObject
{
/// <summary>
/// The reason because the employment ended.
/// </summary>
/// <value>The reason because the employment ended.</value>
[JsonConverter(typeof(StringEnumConverter))]
public enum LeavingReasonEnum
{
/// <summary>
/// Enum Dismissed for value: dismissed
/// </summary>
[EnumMember(Value = "dismissed")]
Dismissed = 1,

/// <summary>
/// Enum Resigned for value: resigned
/// </summary>
[EnumMember(Value = "resigned")]
Resigned = 2,

/// <summary>
/// Enum Redundancy for value: redundancy
/// </summary>
[EnumMember(Value = "redundancy")]
Redundancy = 3,

/// <summary>
/// Enum Other for value: other
/// </summary>
[EnumMember(Value = "other")]
Other = 4

}


/// <summary>
/// The reason because the employment ended.
/// </summary>
/// <value>The reason because the employment ended.</value>
[DataMember(Name = "leaving_reason", EmitDefaultValue = true)]
public LeavingReasonEnum? LeavingReason { get; set; }

/// <summary>
/// Gets or Sets EmploymentStatus
Expand Down Expand Up @@ -71,7 +111,7 @@ protected Employee() { }
/// <param name="companyName">The name of the company..</param>
/// <param name="employmentStartDate">A Start Date is the date that the employee started working at the company.</param>
/// <param name="employmentEndDate">An End Date is the date that the employee ended working at the company.</param>
/// <param name="leavingReason">leavingReason.</param>
/// <param name="leavingReason">The reason because the employment ended..</param>
/// <param name="employeeNumber">An Employee Number, Employee ID or Employee Code, is a unique number that has been assigned to each individual staff member within a company..</param>
/// <param name="employmentStatus">employmentStatus.</param>
/// <param name="employmentRole">employmentRole.</param>
Expand Down Expand Up @@ -110,7 +150,7 @@ protected Employee() { }
/// <param name="tags">tags.</param>
/// <param name="rowVersion">A binary value used to detect updates to a object and prevent data conflicts. It is incremented each time an update is made to the object..</param>
/// <param name="deleted">Flag to indicate if the object is deleted..</param>
public Employee(string firstName = default(string), string lastName = default(string), string middleName = default(string), string displayName = default(string), string preferredName = default(string), string initials = default(string), string salutation = default(string), string title = default(string), string maritalStatus = default(string), Person partner = default(Person), string division = default(string), string divisionId = default(string), string department = default(string), string departmentId = default(string), string departmentName = default(string), Team team = default(Team), string companyId = default(string), string companyName = default(string), string employmentStartDate = default(string), string employmentEndDate = default(string), OneOfstringnull leavingReason = default(OneOfstringnull), string employeeNumber = default(string), EmploymentStatus? employmentStatus = default(EmploymentStatus?), EmployeeEmploymentRole employmentRole = default(EmployeeEmploymentRole), string ethnicity = default(string), EmployeeManager manager = default(EmployeeManager), List<string> directReports = default(List<string>), string socialSecurityNumber = default(string), DateTime? birthday = default(DateTime?), DateTime? deceasedOn = default(DateTime?), string countryOfBirth = default(string), string description = default(string), Gender? gender = default(Gender?), string pronouns = default(string), string preferredLanguage = default(string), List<string> languages = default(List<string>), List<string> nationalities = default(List<string>), string photoUrl = default(string), string timezone = default(string), string source = default(string), string sourceId = default(string), string recordUrl = default(string), List<EmployeeJob> jobs = default(List<EmployeeJob>), List<EmployeeCompensation> compensations = default(List<EmployeeCompensation>), bool? worksRemote = default(bool?), List<Address> addresses = default(List<Address>), List<PhoneNumber> phoneNumbers = default(List<PhoneNumber>), List<Email> emails = default(List<Email>), List<CustomField> customFields = default(List<CustomField>), List<SocialLink> socialLinks = default(List<SocialLink>), List<BankAccount> bankAccounts = default(List<BankAccount>), string taxCode = default(string), string taxId = default(string), string dietaryPreference = default(string), List<string> foodAllergies = default(List<string>), ProbationPeriod probationPeriod = default(ProbationPeriod), List<string> tags = default(List<string>), string rowVersion = default(string), bool? deleted = default(bool?))
public Employee(string firstName = default(string), string lastName = default(string), string middleName = default(string), string displayName = default(string), string preferredName = default(string), string initials = default(string), string salutation = default(string), string title = default(string), string maritalStatus = default(string), Person partner = default(Person), string division = default(string), string divisionId = default(string), string department = default(string), string departmentId = default(string), string departmentName = default(string), Team team = default(Team), string companyId = default(string), string companyName = default(string), string employmentStartDate = default(string), string employmentEndDate = default(string), LeavingReasonEnum? leavingReason = default(LeavingReasonEnum?), string employeeNumber = default(string), EmploymentStatus? employmentStatus = default(EmploymentStatus?), EmployeeEmploymentRole employmentRole = default(EmployeeEmploymentRole), string ethnicity = default(string), EmployeeManager manager = default(EmployeeManager), List<string> directReports = default(List<string>), string socialSecurityNumber = default(string), DateTime? birthday = default(DateTime?), DateTime? deceasedOn = default(DateTime?), string countryOfBirth = default(string), string description = default(string), Gender? gender = default(Gender?), string pronouns = default(string), string preferredLanguage = default(string), List<string> languages = default(List<string>), List<string> nationalities = default(List<string>), string photoUrl = default(string), string timezone = default(string), string source = default(string), string sourceId = default(string), string recordUrl = default(string), List<EmployeeJob> jobs = default(List<EmployeeJob>), List<EmployeeCompensation> compensations = default(List<EmployeeCompensation>), bool? worksRemote = default(bool?), List<Address> addresses = default(List<Address>), List<PhoneNumber> phoneNumbers = default(List<PhoneNumber>), List<Email> emails = default(List<Email>), List<CustomField> customFields = default(List<CustomField>), List<SocialLink> socialLinks = default(List<SocialLink>), List<BankAccount> bankAccounts = default(List<BankAccount>), string taxCode = default(string), string taxId = default(string), string dietaryPreference = default(string), List<string> foodAllergies = default(List<string>), ProbationPeriod probationPeriod = default(ProbationPeriod), List<string> tags = default(List<string>), string rowVersion = default(string), bool? deleted = default(bool?))
{
this.FirstName = firstName;
this.LastName = lastName;
Expand Down Expand Up @@ -327,12 +367,6 @@ public bool ShouldSerializeId()
[DataMember(Name = "employment_end_date", EmitDefaultValue = true)]
public string EmploymentEndDate { get; set; }

/// <summary>
/// Gets or Sets LeavingReason
/// </summary>
[DataMember(Name = "leaving_reason", EmitDefaultValue = true)]
public OneOfstringnull LeavingReason { get; set; }

/// <summary>
/// An Employee Number, Employee ID or Employee Code, is a unique number that has been assigned to each individual staff member within a company.
/// </summary>
Expand Down Expand Up @@ -860,8 +894,7 @@ public bool Equals(Employee input)
) &&
(
this.LeavingReason == input.LeavingReason ||
(this.LeavingReason != null &&
this.LeavingReason.Equals(input.LeavingReason))
this.LeavingReason.Equals(input.LeavingReason)
) &&
(
this.EmployeeNumber == input.EmployeeNumber ||
Expand Down Expand Up @@ -1184,10 +1217,7 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.EmploymentEndDate.GetHashCode();
}
if (this.LeavingReason != null)
{
hashCode = (hashCode * 59) + this.LeavingReason.GetHashCode();
}
hashCode = (hashCode * 59) + this.LeavingReason.GetHashCode();
if (this.EmployeeNumber != null)
{
hashCode = (hashCode * 59) + this.EmployeeNumber.GetHashCode();
Expand Down

0 comments on commit 0c73d43

Please sign in to comment.