This repository has been archived by the owner on Jul 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #71 from freee/auto-generated
2.23.0
- Loading branch information
Showing
10 changed files
with
1,222 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
134 changes: 134 additions & 0 deletions
134
src/Freee.Accounting/Models/SelectablesIndexResponseDefaultTaxTaxRate10Exempt50.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
/* | ||
* freee API | ||
* | ||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | ||
* | ||
* The version of the OpenAPI document: v1.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 = Freee.Accounting.Client.OpenAPIDateConverter; | ||
|
||
namespace Freee.Accounting.Models | ||
{ | ||
/// <summary> | ||
/// SelectablesIndexResponseDefaultTaxTaxRate10Exempt50 | ||
/// </summary> | ||
[DataContract(Name = "selectablesIndexResponse_default_tax_tax_rate_10_exempt_50")] | ||
public partial class SelectablesIndexResponseDefaultTaxTaxRate10Exempt50 : IEquatable<SelectablesIndexResponseDefaultTaxTaxRate10Exempt50> | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="SelectablesIndexResponseDefaultTaxTaxRate10Exempt50" /> class. | ||
/// </summary> | ||
/// <param name="code">税区分コード(この項目はインボイス制度で利用する項目です。2023年7月頃から利用できる予定です。).</param> | ||
/// <param name="name">税区分.</param> | ||
public SelectablesIndexResponseDefaultTaxTaxRate10Exempt50(int code = default(int), string name = default(string)) | ||
{ | ||
this.Code = code; | ||
this.Name = name; | ||
} | ||
|
||
/// <summary> | ||
/// 税区分コード(この項目はインボイス制度で利用する項目です。2023年7月頃から利用できる予定です。) | ||
/// </summary> | ||
/// <value>税区分コード(この項目はインボイス制度で利用する項目です。2023年7月頃から利用できる予定です。)</value> | ||
[DataMember(Name = "code", EmitDefaultValue = false)] | ||
public int Code { get; set; } | ||
|
||
/// <summary> | ||
/// 税区分 | ||
/// </summary> | ||
/// <value>税区分</value> | ||
[DataMember(Name = "name", EmitDefaultValue = false)] | ||
public string Name { 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 SelectablesIndexResponseDefaultTaxTaxRate10Exempt50 {\n"); | ||
sb.Append(" Code: ").Append(Code).Append("\n"); | ||
sb.Append(" Name: ").Append(Name).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 SelectablesIndexResponseDefaultTaxTaxRate10Exempt50); | ||
} | ||
|
||
/// <summary> | ||
/// Returns true if SelectablesIndexResponseDefaultTaxTaxRate10Exempt50 instances are equal | ||
/// </summary> | ||
/// <param name="input">Instance of SelectablesIndexResponseDefaultTaxTaxRate10Exempt50 to be compared</param> | ||
/// <returns>Boolean</returns> | ||
public bool Equals(SelectablesIndexResponseDefaultTaxTaxRate10Exempt50 input) | ||
{ | ||
if (input == null) | ||
{ | ||
return false; | ||
} | ||
return | ||
( | ||
this.Code == input.Code || | ||
this.Code.Equals(input.Code) | ||
) && | ||
( | ||
this.Name == input.Name || | ||
(this.Name != null && | ||
this.Name.Equals(input.Name)) | ||
); | ||
} | ||
|
||
/// <summary> | ||
/// Gets the hash code | ||
/// </summary> | ||
/// <returns>Hash code</returns> | ||
public override int GetHashCode() | ||
{ | ||
unchecked // Overflow is fine, just wrap | ||
{ | ||
int hashCode = 41; | ||
hashCode = (hashCode * 59) + this.Code.GetHashCode(); | ||
if (this.Name != null) | ||
{ | ||
hashCode = (hashCode * 59) + this.Name.GetHashCode(); | ||
} | ||
return hashCode; | ||
} | ||
} | ||
|
||
} | ||
|
||
} |
Oops, something went wrong.