@@ -30,52 +30,6 @@ namespace Freee.Accounting.Models
3030 [ DataContract ( Name = "partnerCreateParams_partner_bank_account_attributes" ) ]
3131 public partial class PartnerCreateParamsPartnerBankAccountAttributes : IEquatable < PartnerCreateParamsPartnerBankAccountAttributes >
3232 {
33- /// <summary>
34- /// 口座種別(ordinary:普通、checking:当座、earmarked:納税準備預金、savings:貯蓄、other:その他)、指定しない場合ordinaryになります。
35- /// </summary>
36- /// <value>口座種別(ordinary:普通、checking:当座、earmarked:納税準備預金、savings:貯蓄、other:その他)、指定しない場合ordinaryになります。</value>
37- [ JsonConverter ( typeof ( StringEnumConverter ) ) ]
38- public enum AccountTypeEnum
39- {
40- /// <summary>
41- /// Enum Ordinary for value: ordinary
42- /// </summary>
43- [ EnumMember ( Value = "ordinary" ) ]
44- Ordinary = 1 ,
45-
46- /// <summary>
47- /// Enum Checking for value: checking
48- /// </summary>
49- [ EnumMember ( Value = "checking" ) ]
50- Checking = 2 ,
51-
52- /// <summary>
53- /// Enum Earmarked for value: earmarked
54- /// </summary>
55- [ EnumMember ( Value = "earmarked" ) ]
56- Earmarked = 3 ,
57-
58- /// <summary>
59- /// Enum Savings for value: savings
60- /// </summary>
61- [ EnumMember ( Value = "savings" ) ]
62- Savings = 4 ,
63-
64- /// <summary>
65- /// Enum Other for value: other
66- /// </summary>
67- [ EnumMember ( Value = "other" ) ]
68- Other = 5
69-
70- }
71-
72-
73- /// <summary>
74- /// 口座種別(ordinary:普通、checking:当座、earmarked:納税準備預金、savings:貯蓄、other:その他)、指定しない場合ordinaryになります。
75- /// </summary>
76- /// <value>口座種別(ordinary:普通、checking:当座、earmarked:納税準備預金、savings:貯蓄、other:その他)、指定しない場合ordinaryになります。</value>
77- [ DataMember ( Name = "account_type" , EmitDefaultValue = false ) ]
78- public AccountTypeEnum ? AccountType { get ; set ; }
7933 /// <summary>
8034 /// Initializes a new instance of the <see cref="PartnerCreateParamsPartnerBankAccountAttributes" /> class.
8135 /// </summary>
@@ -89,7 +43,7 @@ public enum AccountTypeEnum
8943 /// <param name="branchKana">支店名(カナ).</param>
9044 /// <param name="branchName">支店名.</param>
9145 /// <param name="longAccountName">受取人名.</param>
92- public PartnerCreateParamsPartnerBankAccountAttributes ( string accountName = default ( string ) , string accountNumber = default ( string ) , AccountTypeEnum ? accountType = default ( AccountTypeEnum ? ) , string bankCode = default ( string ) , string bankName = default ( string ) , string bankNameKana = default ( string ) , string branchCode = default ( string ) , string branchKana = default ( string ) , string branchName = default ( string ) , string longAccountName = default ( string ) )
46+ public PartnerCreateParamsPartnerBankAccountAttributes ( string accountName = default ( string ) , string accountNumber = default ( string ) , string accountType = default ( string ) , string bankCode = default ( string ) , string bankName = default ( string ) , string bankNameKana = default ( string ) , string branchCode = default ( string ) , string branchKana = default ( string ) , string branchName = default ( string ) , string longAccountName = default ( string ) )
9347 {
9448 this . AccountName = accountName ;
9549 this . AccountNumber = accountNumber ;
@@ -117,6 +71,13 @@ public enum AccountTypeEnum
11771 [ DataMember ( Name = "account_number" , EmitDefaultValue = false ) ]
11872 public string AccountNumber { get ; set ; }
11973
74+ /// <summary>
75+ /// 口座種別(ordinary:普通、checking:当座、earmarked:納税準備預金、savings:貯蓄、other:その他)、指定しない場合ordinaryになります。
76+ /// </summary>
77+ /// <value>口座種別(ordinary:普通、checking:当座、earmarked:納税準備預金、savings:貯蓄、other:その他)、指定しない場合ordinaryになります。</value>
78+ [ DataMember ( Name = "account_type" , EmitDefaultValue = false ) ]
79+ public string AccountType { get ; set ; }
80+
12081 /// <summary>
12182 /// 銀行コード
12283 /// </summary>
@@ -231,7 +192,8 @@ public bool Equals(PartnerCreateParamsPartnerBankAccountAttributes input)
231192 ) &&
232193 (
233194 this . AccountType == input . AccountType ||
234- this . AccountType . Equals ( input . AccountType )
195+ ( this . AccountType != null &&
196+ this . AccountType . Equals ( input . AccountType ) )
235197 ) &&
236198 (
237199 this . BankCode == input . BankCode ||
@@ -287,7 +249,10 @@ public override int GetHashCode()
287249 {
288250 hashCode = ( hashCode * 59 ) + this . AccountNumber . GetHashCode ( ) ;
289251 }
290- hashCode = ( hashCode * 59 ) + this . AccountType . GetHashCode ( ) ;
252+ if ( this . AccountType != null )
253+ {
254+ hashCode = ( hashCode * 59 ) + this . AccountType . GetHashCode ( ) ;
255+ }
291256 if ( this . BankCode != null )
292257 {
293258 hashCode = ( hashCode * 59 ) + this . BankCode . GetHashCode ( ) ;
0 commit comments