Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request #71 from freee/auto-generated
Browse files Browse the repository at this point in the history
2.23.0
  • Loading branch information
deraru authored Jan 6, 2023
2 parents f65e380 + 82e409a commit 91a6742
Show file tree
Hide file tree
Showing 10 changed files with 1,222 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 2.23.0
リリース日時 2023-01-06 12:50:35
対象差分
https://github.com/freee/freee-api-schema/releases/tag/v0.0.109

## 2.22.0
リリース日時 2022-12-23 18:47:30
対象差分
Expand Down
146 changes: 145 additions & 1 deletion src/Freee.Accounting/Models/SelectablesIndexResponseDefaultTax.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,31 @@ public partial class SelectablesIndexResponseDefaultTax : IEquatable<Selectables
/// Initializes a new instance of the <see cref="SelectablesIndexResponseDefaultTax" /> class.
/// </summary>
/// <param name="taxRate10">taxRate10.</param>
/// <param name="taxRate10Exempt50">taxRate10Exempt50.</param>
/// <param name="taxRate10Exempt80">taxRate10Exempt80.</param>
/// <param name="taxRate5">taxRate5.</param>
/// <param name="taxRate5Exempt50">taxRate5Exempt50.</param>
/// <param name="taxRate5Exempt80">taxRate5Exempt80.</param>
/// <param name="taxRate8">taxRate8.</param>
/// <param name="taxRate8Exempt50">taxRate8Exempt50.</param>
/// <param name="taxRate8Exempt80">taxRate8Exempt80.</param>
/// <param name="taxRateR8">taxRateR8.</param>
public SelectablesIndexResponseDefaultTax(SelectablesIndexResponseDefaultTaxTaxRate10 taxRate10 = default(SelectablesIndexResponseDefaultTaxTaxRate10), SelectablesIndexResponseDefaultTaxTaxRate5 taxRate5 = default(SelectablesIndexResponseDefaultTaxTaxRate5), SelectablesIndexResponseDefaultTaxTaxRate8 taxRate8 = default(SelectablesIndexResponseDefaultTaxTaxRate8), SelectablesIndexResponseDefaultTaxTaxRateR8 taxRateR8 = default(SelectablesIndexResponseDefaultTaxTaxRateR8))
/// <param name="taxRateR8Exempt50">taxRateR8Exempt50.</param>
/// <param name="taxRateR8Exempt80">taxRateR8Exempt80.</param>
public SelectablesIndexResponseDefaultTax(SelectablesIndexResponseDefaultTaxTaxRate10 taxRate10 = default(SelectablesIndexResponseDefaultTaxTaxRate10), SelectablesIndexResponseDefaultTaxTaxRate10Exempt50 taxRate10Exempt50 = default(SelectablesIndexResponseDefaultTaxTaxRate10Exempt50), SelectablesIndexResponseDefaultTaxTaxRate10Exempt80 taxRate10Exempt80 = default(SelectablesIndexResponseDefaultTaxTaxRate10Exempt80), SelectablesIndexResponseDefaultTaxTaxRate5 taxRate5 = default(SelectablesIndexResponseDefaultTaxTaxRate5), SelectablesIndexResponseDefaultTaxTaxRate5Exempt50 taxRate5Exempt50 = default(SelectablesIndexResponseDefaultTaxTaxRate5Exempt50), SelectablesIndexResponseDefaultTaxTaxRate5Exempt80 taxRate5Exempt80 = default(SelectablesIndexResponseDefaultTaxTaxRate5Exempt80), SelectablesIndexResponseDefaultTaxTaxRate8 taxRate8 = default(SelectablesIndexResponseDefaultTaxTaxRate8), SelectablesIndexResponseDefaultTaxTaxRate8Exempt50 taxRate8Exempt50 = default(SelectablesIndexResponseDefaultTaxTaxRate8Exempt50), SelectablesIndexResponseDefaultTaxTaxRate8Exempt80 taxRate8Exempt80 = default(SelectablesIndexResponseDefaultTaxTaxRate8Exempt80), SelectablesIndexResponseDefaultTaxTaxRateR8 taxRateR8 = default(SelectablesIndexResponseDefaultTaxTaxRateR8), SelectablesIndexResponseDefaultTaxTaxRateR8Exempt50 taxRateR8Exempt50 = default(SelectablesIndexResponseDefaultTaxTaxRateR8Exempt50), SelectablesIndexResponseDefaultTaxTaxRateR8Exempt80 taxRateR8Exempt80 = default(SelectablesIndexResponseDefaultTaxTaxRateR8Exempt80))
{
this.TaxRate10 = taxRate10;
this.TaxRate10Exempt50 = taxRate10Exempt50;
this.TaxRate10Exempt80 = taxRate10Exempt80;
this.TaxRate5 = taxRate5;
this.TaxRate5Exempt50 = taxRate5Exempt50;
this.TaxRate5Exempt80 = taxRate5Exempt80;
this.TaxRate8 = taxRate8;
this.TaxRate8Exempt50 = taxRate8Exempt50;
this.TaxRate8Exempt80 = taxRate8Exempt80;
this.TaxRateR8 = taxRateR8;
this.TaxRateR8Exempt50 = taxRateR8Exempt50;
this.TaxRateR8Exempt80 = taxRateR8Exempt80;
}

/// <summary>
Expand All @@ -51,24 +67,72 @@ public partial class SelectablesIndexResponseDefaultTax : IEquatable<Selectables
[DataMember(Name = "tax_rate_10", EmitDefaultValue = false)]
public SelectablesIndexResponseDefaultTaxTaxRate10 TaxRate10 { get; set; }

/// <summary>
/// Gets or Sets TaxRate10Exempt50
/// </summary>
[DataMember(Name = "tax_rate_10_exempt_50", EmitDefaultValue = false)]
public SelectablesIndexResponseDefaultTaxTaxRate10Exempt50 TaxRate10Exempt50 { get; set; }

/// <summary>
/// Gets or Sets TaxRate10Exempt80
/// </summary>
[DataMember(Name = "tax_rate_10_exempt_80", EmitDefaultValue = false)]
public SelectablesIndexResponseDefaultTaxTaxRate10Exempt80 TaxRate10Exempt80 { get; set; }

/// <summary>
/// Gets or Sets TaxRate5
/// </summary>
[DataMember(Name = "tax_rate_5", EmitDefaultValue = false)]
public SelectablesIndexResponseDefaultTaxTaxRate5 TaxRate5 { get; set; }

/// <summary>
/// Gets or Sets TaxRate5Exempt50
/// </summary>
[DataMember(Name = "tax_rate_5_exempt_50", EmitDefaultValue = false)]
public SelectablesIndexResponseDefaultTaxTaxRate5Exempt50 TaxRate5Exempt50 { get; set; }

/// <summary>
/// Gets or Sets TaxRate5Exempt80
/// </summary>
[DataMember(Name = "tax_rate_5_exempt_80", EmitDefaultValue = false)]
public SelectablesIndexResponseDefaultTaxTaxRate5Exempt80 TaxRate5Exempt80 { get; set; }

/// <summary>
/// Gets or Sets TaxRate8
/// </summary>
[DataMember(Name = "tax_rate_8", EmitDefaultValue = false)]
public SelectablesIndexResponseDefaultTaxTaxRate8 TaxRate8 { get; set; }

/// <summary>
/// Gets or Sets TaxRate8Exempt50
/// </summary>
[DataMember(Name = "tax_rate_8_exempt_50", EmitDefaultValue = false)]
public SelectablesIndexResponseDefaultTaxTaxRate8Exempt50 TaxRate8Exempt50 { get; set; }

/// <summary>
/// Gets or Sets TaxRate8Exempt80
/// </summary>
[DataMember(Name = "tax_rate_8_exempt_80", EmitDefaultValue = false)]
public SelectablesIndexResponseDefaultTaxTaxRate8Exempt80 TaxRate8Exempt80 { get; set; }

/// <summary>
/// Gets or Sets TaxRateR8
/// </summary>
[DataMember(Name = "tax_rate_r8", EmitDefaultValue = false)]
public SelectablesIndexResponseDefaultTaxTaxRateR8 TaxRateR8 { get; set; }

/// <summary>
/// Gets or Sets TaxRateR8Exempt50
/// </summary>
[DataMember(Name = "tax_rate_r8_exempt_50", EmitDefaultValue = false)]
public SelectablesIndexResponseDefaultTaxTaxRateR8Exempt50 TaxRateR8Exempt50 { get; set; }

/// <summary>
/// Gets or Sets TaxRateR8Exempt80
/// </summary>
[DataMember(Name = "tax_rate_r8_exempt_80", EmitDefaultValue = false)]
public SelectablesIndexResponseDefaultTaxTaxRateR8Exempt80 TaxRateR8Exempt80 { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand All @@ -78,9 +142,17 @@ public override string ToString()
StringBuilder sb = new StringBuilder();
sb.Append("class SelectablesIndexResponseDefaultTax {\n");
sb.Append(" TaxRate10: ").Append(TaxRate10).Append("\n");
sb.Append(" TaxRate10Exempt50: ").Append(TaxRate10Exempt50).Append("\n");
sb.Append(" TaxRate10Exempt80: ").Append(TaxRate10Exempt80).Append("\n");
sb.Append(" TaxRate5: ").Append(TaxRate5).Append("\n");
sb.Append(" TaxRate5Exempt50: ").Append(TaxRate5Exempt50).Append("\n");
sb.Append(" TaxRate5Exempt80: ").Append(TaxRate5Exempt80).Append("\n");
sb.Append(" TaxRate8: ").Append(TaxRate8).Append("\n");
sb.Append(" TaxRate8Exempt50: ").Append(TaxRate8Exempt50).Append("\n");
sb.Append(" TaxRate8Exempt80: ").Append(TaxRate8Exempt80).Append("\n");
sb.Append(" TaxRateR8: ").Append(TaxRateR8).Append("\n");
sb.Append(" TaxRateR8Exempt50: ").Append(TaxRateR8Exempt50).Append("\n");
sb.Append(" TaxRateR8Exempt80: ").Append(TaxRateR8Exempt80).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down Expand Up @@ -121,20 +193,60 @@ public bool Equals(SelectablesIndexResponseDefaultTax input)
(this.TaxRate10 != null &&
this.TaxRate10.Equals(input.TaxRate10))
) &&
(
this.TaxRate10Exempt50 == input.TaxRate10Exempt50 ||
(this.TaxRate10Exempt50 != null &&
this.TaxRate10Exempt50.Equals(input.TaxRate10Exempt50))
) &&
(
this.TaxRate10Exempt80 == input.TaxRate10Exempt80 ||
(this.TaxRate10Exempt80 != null &&
this.TaxRate10Exempt80.Equals(input.TaxRate10Exempt80))
) &&
(
this.TaxRate5 == input.TaxRate5 ||
(this.TaxRate5 != null &&
this.TaxRate5.Equals(input.TaxRate5))
) &&
(
this.TaxRate5Exempt50 == input.TaxRate5Exempt50 ||
(this.TaxRate5Exempt50 != null &&
this.TaxRate5Exempt50.Equals(input.TaxRate5Exempt50))
) &&
(
this.TaxRate5Exempt80 == input.TaxRate5Exempt80 ||
(this.TaxRate5Exempt80 != null &&
this.TaxRate5Exempt80.Equals(input.TaxRate5Exempt80))
) &&
(
this.TaxRate8 == input.TaxRate8 ||
(this.TaxRate8 != null &&
this.TaxRate8.Equals(input.TaxRate8))
) &&
(
this.TaxRate8Exempt50 == input.TaxRate8Exempt50 ||
(this.TaxRate8Exempt50 != null &&
this.TaxRate8Exempt50.Equals(input.TaxRate8Exempt50))
) &&
(
this.TaxRate8Exempt80 == input.TaxRate8Exempt80 ||
(this.TaxRate8Exempt80 != null &&
this.TaxRate8Exempt80.Equals(input.TaxRate8Exempt80))
) &&
(
this.TaxRateR8 == input.TaxRateR8 ||
(this.TaxRateR8 != null &&
this.TaxRateR8.Equals(input.TaxRateR8))
) &&
(
this.TaxRateR8Exempt50 == input.TaxRateR8Exempt50 ||
(this.TaxRateR8Exempt50 != null &&
this.TaxRateR8Exempt50.Equals(input.TaxRateR8Exempt50))
) &&
(
this.TaxRateR8Exempt80 == input.TaxRateR8Exempt80 ||
(this.TaxRateR8Exempt80 != null &&
this.TaxRateR8Exempt80.Equals(input.TaxRateR8Exempt80))
);
}

Expand All @@ -151,18 +263,50 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.TaxRate10.GetHashCode();
}
if (this.TaxRate10Exempt50 != null)
{
hashCode = (hashCode * 59) + this.TaxRate10Exempt50.GetHashCode();
}
if (this.TaxRate10Exempt80 != null)
{
hashCode = (hashCode * 59) + this.TaxRate10Exempt80.GetHashCode();
}
if (this.TaxRate5 != null)
{
hashCode = (hashCode * 59) + this.TaxRate5.GetHashCode();
}
if (this.TaxRate5Exempt50 != null)
{
hashCode = (hashCode * 59) + this.TaxRate5Exempt50.GetHashCode();
}
if (this.TaxRate5Exempt80 != null)
{
hashCode = (hashCode * 59) + this.TaxRate5Exempt80.GetHashCode();
}
if (this.TaxRate8 != null)
{
hashCode = (hashCode * 59) + this.TaxRate8.GetHashCode();
}
if (this.TaxRate8Exempt50 != null)
{
hashCode = (hashCode * 59) + this.TaxRate8Exempt50.GetHashCode();
}
if (this.TaxRate8Exempt80 != null)
{
hashCode = (hashCode * 59) + this.TaxRate8Exempt80.GetHashCode();
}
if (this.TaxRateR8 != null)
{
hashCode = (hashCode * 59) + this.TaxRateR8.GetHashCode();
}
if (this.TaxRateR8Exempt50 != null)
{
hashCode = (hashCode * 59) + this.TaxRateR8Exempt50.GetHashCode();
}
if (this.TaxRateR8Exempt80 != null)
{
hashCode = (hashCode * 59) + this.TaxRateR8Exempt80.GetHashCode();
}
return hashCode;
}
}
Expand Down
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;
}
}

}

}
Loading

0 comments on commit 91a6742

Please sign in to comment.