@@ -43,23 +43,19 @@ protected ExpenseApplicationCreateParams() { }
4343 /// <param name="companyId">事業所ID (required).</param>
4444 /// <param name="description">備考 (10000文字以内).</param>
4545 /// <param name="draft">経費申請のステータス<br> falseを指定した時は申請中(in_progress)で経費申請を作成します。<br> trueを指定した時は下書き(draft)で経費申請を作成します。<br> 未指定の時は下書きとみなして経費申請を作成します。 .</param>
46- /// <param name="expenseApplicationLines">expenseApplicationLines (required) .</param>
46+ /// <param name="expenseApplicationLines">経費申請の項目行一覧(配列) .</param>
4747 /// <param name="issueDate">申請日 (yyyy-mm-dd)<br> 指定しない場合は当日の日付が登録されます。 .</param>
4848 /// <param name="parentId">親申請ID(法人向けプロフェッショナル, 法人向け エンタープライズプラン)<br> <ul> <li>承認済みの既存各種申請IDのみ指定可能です。</li> <li>各種申請一覧APIを利用して取得してください。</li> </ul> .</param>
49+ /// <param name="purchaseLines">この項目はインボイス制度で利用する項目です。2023年4月頃から利用できる予定です。利用可能となる前に予告なく変更がある場合があります。<br> 経費申請の申請行一覧(配列) .</param>
4950 /// <param name="sectionId">部門ID.</param>
5051 /// <param name="segment1TagId">セグメント1ID(法人向けプロフェッショナル, 法人向けエンタープライズプラン)<br> セグメントタグ一覧の取得APIを利用して取得してください。<br> <a href=\"https://support.freee.co.jp/hc/ja/articles/360020679611\" target=\"_blank\">セグメント(分析用タグ)の設定</a><br> .</param>
5152 /// <param name="segment2TagId">セグメント2ID(法人向け エンタープライズプラン)<br> セグメントタグ一覧の取得APIを利用して取得してください。<br> <a href=\"https://support.freee.co.jp/hc/ja/articles/360020679611\" target=\"_blank\">セグメント(分析用タグ)の設定</a><br> .</param>
5253 /// <param name="segment3TagId">セグメント3ID(法人向け エンタープライズプラン)<br> セグメントタグ一覧の取得APIを利用して取得してください。<br> <a href=\"https://support.freee.co.jp/hc/ja/articles/360020679611\" target=\"_blank\">セグメント(分析用タグ)の設定</a><br> .</param>
5354 /// <param name="tagIds">メモタグID.</param>
5455 /// <param name="title">申請タイトル (250文字以内) (required).</param>
55- public ExpenseApplicationCreateParams ( int approvalFlowRouteId = default ( int ) , int approverId = default ( int ) , int companyId = default ( int ) , string description = default ( string ) , bool draft = default ( bool ) , List < ExpenseApplicationCreateParamsExpenseApplicationLines > expenseApplicationLines = default ( List < ExpenseApplicationCreateParamsExpenseApplicationLines > ) , string issueDate = default ( string ) , int parentId = default ( int ) , int sectionId = default ( int ) , long segment1TagId = default ( long ) , long segment2TagId = default ( long ) , long segment3TagId = default ( long ) , List < int > tagIds = default ( List < int > ) , string title = default ( string ) )
56+ public ExpenseApplicationCreateParams ( int approvalFlowRouteId = default ( int ) , int approverId = default ( int ) , int companyId = default ( int ) , string description = default ( string ) , bool draft = default ( bool ) , List < ExpenseApplicationCreateParamsExpenseApplicationLines > expenseApplicationLines = default ( List < ExpenseApplicationCreateParamsExpenseApplicationLines > ) , string issueDate = default ( string ) , int parentId = default ( int ) , List < ExpenseApplicationCreateParamsPurchaseLines > purchaseLines = default ( List < ExpenseApplicationCreateParamsPurchaseLines > ) , int sectionId = default ( int ) , long segment1TagId = default ( long ) , long segment2TagId = default ( long ) , long segment3TagId = default ( long ) , List < int > tagIds = default ( List < int > ) , string title = default ( string ) )
5657 {
5758 this . CompanyId = companyId ;
58- // to ensure "expenseApplicationLines" is required (not null)
59- if ( expenseApplicationLines == null ) {
60- throw new ArgumentNullException ( "expenseApplicationLines is a required property for ExpenseApplicationCreateParams and cannot be null" ) ;
61- }
62- this . ExpenseApplicationLines = expenseApplicationLines ;
6359 // to ensure "title" is required (not null)
6460 if ( title == null ) {
6561 throw new ArgumentNullException ( "title is a required property for ExpenseApplicationCreateParams and cannot be null" ) ;
@@ -69,8 +65,10 @@ protected ExpenseApplicationCreateParams() { }
6965 this . ApproverId = approverId ;
7066 this . Description = description ;
7167 this . Draft = draft ;
68+ this . ExpenseApplicationLines = expenseApplicationLines ;
7269 this . IssueDate = issueDate ;
7370 this . ParentId = parentId ;
71+ this . PurchaseLines = purchaseLines ;
7472 this . SectionId = sectionId ;
7573 this . Segment1TagId = segment1TagId ;
7674 this . Segment2TagId = segment2TagId ;
@@ -114,9 +112,10 @@ protected ExpenseApplicationCreateParams() { }
114112 public bool Draft { get ; set ; }
115113
116114 /// <summary>
117- /// Gets or Sets ExpenseApplicationLines
115+ /// 経費申請の項目行一覧(配列)
118116 /// </summary>
119- [ DataMember ( Name = "expense_application_lines" , IsRequired = true , EmitDefaultValue = false ) ]
117+ /// <value>経費申請の項目行一覧(配列)</value>
118+ [ DataMember ( Name = "expense_application_lines" , EmitDefaultValue = false ) ]
120119 public List < ExpenseApplicationCreateParamsExpenseApplicationLines > ExpenseApplicationLines { get ; set ; }
121120
122121 /// <summary>
@@ -133,6 +132,13 @@ protected ExpenseApplicationCreateParams() { }
133132 [ DataMember ( Name = "parent_id" , EmitDefaultValue = false ) ]
134133 public int ParentId { get ; set ; }
135134
135+ /// <summary>
136+ /// この項目はインボイス制度で利用する項目です。2023年4月頃から利用できる予定です。利用可能となる前に予告なく変更がある場合があります。<br> 経費申請の申請行一覧(配列)
137+ /// </summary>
138+ /// <value>この項目はインボイス制度で利用する項目です。2023年4月頃から利用できる予定です。利用可能となる前に予告なく変更がある場合があります。<br> 経費申請の申請行一覧(配列) </value>
139+ [ DataMember ( Name = "purchase_lines" , EmitDefaultValue = false ) ]
140+ public List < ExpenseApplicationCreateParamsPurchaseLines > PurchaseLines { get ; set ; }
141+
136142 /// <summary>
137143 /// 部門ID
138144 /// </summary>
@@ -191,6 +197,7 @@ public override string ToString()
191197 sb . Append ( " ExpenseApplicationLines: " ) . Append ( ExpenseApplicationLines ) . Append ( "\n " ) ;
192198 sb . Append ( " IssueDate: " ) . Append ( IssueDate ) . Append ( "\n " ) ;
193199 sb . Append ( " ParentId: " ) . Append ( ParentId ) . Append ( "\n " ) ;
200+ sb . Append ( " PurchaseLines: " ) . Append ( PurchaseLines ) . Append ( "\n " ) ;
194201 sb . Append ( " SectionId: " ) . Append ( SectionId ) . Append ( "\n " ) ;
195202 sb . Append ( " Segment1TagId: " ) . Append ( Segment1TagId ) . Append ( "\n " ) ;
196203 sb . Append ( " Segment2TagId: " ) . Append ( Segment2TagId ) . Append ( "\n " ) ;
@@ -268,6 +275,12 @@ public bool Equals(ExpenseApplicationCreateParams input)
268275 this . ParentId == input . ParentId ||
269276 this . ParentId . Equals ( input . ParentId )
270277 ) &&
278+ (
279+ this . PurchaseLines == input . PurchaseLines ||
280+ this . PurchaseLines != null &&
281+ input . PurchaseLines != null &&
282+ this . PurchaseLines . SequenceEqual ( input . PurchaseLines )
283+ ) &&
271284 (
272285 this . SectionId == input . SectionId ||
273286 this . SectionId . Equals ( input . SectionId )
@@ -323,6 +336,10 @@ public override int GetHashCode()
323336 hashCode = ( hashCode * 59 ) + this . IssueDate . GetHashCode ( ) ;
324337 }
325338 hashCode = ( hashCode * 59 ) + this . ParentId . GetHashCode ( ) ;
339+ if ( this . PurchaseLines != null )
340+ {
341+ hashCode = ( hashCode * 59 ) + this . PurchaseLines . GetHashCode ( ) ;
342+ }
326343 hashCode = ( hashCode * 59 ) + this . SectionId . GetHashCode ( ) ;
327344 hashCode = ( hashCode * 59 ) + this . Segment1TagId . GetHashCode ( ) ;
328345 hashCode = ( hashCode * 59 ) + this . Segment2TagId . GetHashCode ( ) ;
0 commit comments