From 1b4beeea125f5b55180f2c5f0213450c027d9d26 Mon Sep 17 00:00:00 2001 From: Dispatch receiver Date: Thu, 17 Nov 2022 00:07:07 +0000 Subject: [PATCH 1/3] Generated by release dipatch tag: v0.0.105 From 25270b145474665bec42f964d7f54153a5696575 Mon Sep 17 00:00:00 2001 From: API Generator Date: Thu, 17 Nov 2022 00:07:50 +0000 Subject: [PATCH 2/3] Generate SDK code for 2.19.0 --- .openapi-generator/config.yml | 2 +- CHANGELOG.md | 5 + sdk/docs/InlineResponse20013.md | 4 +- sdk/docs/UserCapabilityWithConfirm.md | 17 ++ sdk/docs/UserCapabilityWithSync.md | 17 ++ sdk/docs/UsersApi.md | 2 +- sdk/pom.xml | 8 +- .../models/InlineResponse20013.java | 18 +- .../models/UserCapabilityWithConfirm.java | 216 +++++++++++++++++ .../models/UserCapabilityWithSync.java | 218 ++++++++++++++++++ .../models/InlineResponse20013Test.java | 2 + .../models/UserCapabilityWithConfirmTest.java | 83 +++++++ .../models/UserCapabilityWithSyncTest.java | 83 +++++++ 13 files changed, 656 insertions(+), 19 deletions(-) create mode 100644 sdk/docs/UserCapabilityWithConfirm.md create mode 100644 sdk/docs/UserCapabilityWithSync.md create mode 100644 sdk/src/main/java/jp/co/freee/accounting/models/UserCapabilityWithConfirm.java create mode 100644 sdk/src/main/java/jp/co/freee/accounting/models/UserCapabilityWithSync.java create mode 100644 sdk/src/test/java/jp/co/freee/accounting/models/UserCapabilityWithConfirmTest.java create mode 100644 sdk/src/test/java/jp/co/freee/accounting/models/UserCapabilityWithSyncTest.java diff --git a/.openapi-generator/config.yml b/.openapi-generator/config.yml index d023bd8..568026d 100644 --- a/.openapi-generator/config.yml +++ b/.openapi-generator/config.yml @@ -1,7 +1,7 @@ ensureUniqueParams: false allowUnicodeIdentifiers: true snapshotVersion: true -artifactVersion: 2.18.0 +artifactVersion: 2.19.0 groupId: "jp.co.freee" artifactId: "freee-accounting-sdk" apiPackage: "jp.co.freee.accounting.api" diff --git a/CHANGELOG.md b/CHANGELOG.md index 5ca2c6e..fb2a404 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 2.19.0 +リリース日時 2022-11-17 09:07:50 +対象差分 +https://github.com/freee/freee-api-schema/releases/tag/v0.0.105 + ## 2.18.0 リリース日時 2022-11-14 15:46:45 対象差分 diff --git a/sdk/docs/InlineResponse20013.md b/sdk/docs/InlineResponse20013.md index 94142bc..d7e5a35 100644 --- a/sdk/docs/InlineResponse20013.md +++ b/sdk/docs/InlineResponse20013.md @@ -63,8 +63,8 @@ Name | Type | Description | Notes **taxes** | [**UserCapability**](UserCapability.md) | | **transfers** | [**UserCapabilityWithSelfOnly**](UserCapabilityWithSelfOnly.md) | | **userMatchers** | [**UserCapability**](UserCapability.md) | | -**walletTxns** | [**UserCapability**](UserCapability.md) | | -**walletables** | [**UserCapability**](UserCapability.md) | | +**walletTxns** | [**UserCapabilityWithConfirm**](UserCapabilityWithConfirm.md) | | +**walletables** | [**UserCapabilityWithSync**](UserCapabilityWithSync.md) | | **workflows** | [**UserCapability**](UserCapability.md) | | **yearEnd** | [**UserCapability**](UserCapability.md) | | diff --git a/sdk/docs/UserCapabilityWithConfirm.md b/sdk/docs/UserCapabilityWithConfirm.md new file mode 100644 index 0000000..00f6384 --- /dev/null +++ b/sdk/docs/UserCapabilityWithConfirm.md @@ -0,0 +1,17 @@ + + +# UserCapabilityWithConfirm + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**confirm** | **Boolean** | 「自動で経理」の操作 | [optional] +**create** | **Boolean** | 「取得した明細」の作成 | [optional] +**destroy** | **Boolean** | 「取得した明細」の削除 | [optional] +**read** | **Boolean** | 「取得した明細」の閲覧 | [optional] +**update** | **Boolean** | 「取得した明細」の更新 | [optional] + + + diff --git a/sdk/docs/UserCapabilityWithSync.md b/sdk/docs/UserCapabilityWithSync.md new file mode 100644 index 0000000..519379d --- /dev/null +++ b/sdk/docs/UserCapabilityWithSync.md @@ -0,0 +1,17 @@ + + +# UserCapabilityWithSync + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**create** | **Boolean** | 「口座」の作成 | [optional] +**destroy** | **Boolean** | 「口座」の削除 | [optional] +**read** | **Boolean** | 「口座」の閲覧 | [optional] +**sync** | **Boolean** | 「口座の同期」の実行(廃止予定) | [optional] +**update** | **Boolean** | 「口座」の更新 | [optional] + + + diff --git a/sdk/docs/UsersApi.md b/sdk/docs/UsersApi.md index 2d2977a..3d0750e 100644 --- a/sdk/docs/UsersApi.md +++ b/sdk/docs/UsersApi.md @@ -153,7 +153,7 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | <p>レスポンスの各キーは以下の項目と対応しています。</p> <p>詳細は <a href=\"https://support.freee.co.jp/hc/ja/articles/210265673\">https://support.freee.co.jp/hc/ja/articles/210265673</a> を参照してください。</p> <table> <thead> <tr> <th style=\"padding: 5px\">キー</th> <th style=\"padding: 5px\">対応する項目</th> </tr> </thead> <tbody> <tr> <td style=\"padding: 5px\">wallet_txns</td> <td style=\"padding: 5px\">自動で経理 / 取得した明細</td> </tr> <tr> <td style=\"padding: 5px\">deals</td> <td style=\"padding: 5px\">取引</td> </tr> <tr> <td style=\"padding: 5px\">transfers</td> <td style=\"padding: 5px\">口座振替</td> </tr> <tr> <td style=\"padding: 5px\">docs</td> <td style=\"padding: 5px\">見積書・納品書・請求書・領収書・発注書</td> </tr> <tr> <td style=\"padding: 5px\">doc_postings</td> <td style=\"padding: 5px\">(請求書の)郵送</td> </tr> <tr> <td style=\"padding: 5px\">receipts</td> <td style=\"padding: 5px\">ファイルボックス</td> </tr> <tr> <td style=\"padding: 5px\">receipt_stream_editor</td> <td style=\"padding: 5px\">連続取引登録</td> </tr> <tr> <td style=\"padding: 5px\">expense_applications</td> <td style=\"padding: 5px\">経費精算</td> </tr> <tr> <td style=\"padding: 5px\">spreadsheets</td> <td style=\"padding: 5px\">エクセルインポート</td> </tr> <tr> <td style=\"padding: 5px\">payment_requests</td> <td style=\"padding: 5px\">支払依頼</td> </tr> <tr> <td style=\"padding: 5px\">request_forms</td> <td style=\"padding: 5px\">申請フォーム</td> </tr> <tr> <td style=\"padding: 5px\">approval_requests</td> <td style=\"padding: 5px\">各種申請</td> </tr> <tr> <td style=\"padding: 5px\">reports</td> <td style=\"padding: 5px\">収益 / 費用レポート</td> </tr> <tr> <td style=\"padding: 5px\">reports_income_expense</td> <td style=\"padding: 5px\">損益レポート</td> </tr> <tr> <td style=\"padding: 5px\">reports_receivables</td> <td style=\"padding: 5px\">入金管理レポート</td> </tr> <tr> <td style=\"padding: 5px\">reports_payables</td> <td style=\"padding: 5px\">支払管理レポート(一括振込ファイルを含む)</td> </tr> <tr> <td style=\"padding: 5px\">reports_cash_balance</td> <td style=\"padding: 5px\">現預金レポート/資金繰りレポート</td> </tr> <tr> <td style=\"padding: 5px\">reports_crosstabs</td> <td style=\"padding: 5px\">集計表</td> </tr> <tr> <td style=\"padding: 5px\">reports_general_ledgers</td> <td style=\"padding: 5px\">総勘定元帳</td> </tr> <tr> <td style=\"padding: 5px\">reports_pl</td> <td style=\"padding: 5px\">損益計算書(月次推移/試算表)</td> </tr> <tr> <td style=\"padding: 5px\">reports_bs</td> <td style=\"padding: 5px\">貸借対照表(月次推移/試算表)</td> </tr> <tr> <td style=\"padding: 5px\">reports_journals</td> <td style=\"padding: 5px\">仕訳帳</td> </tr> <tr> <td style=\"padding: 5px\">reports_managements_planning</td> <td style=\"padding: 5px\">経営プランニング</td> </tr> <tr> <td style=\"padding: 5px\">reports_managements_navigation</td> <td style=\"padding: 5px\">経営ナビゲーション</td> </tr> <tr> <td style=\"padding: 5px\">manual_journals</td> <td style=\"padding: 5px\">振替伝票</td> </tr> <tr> <td style=\"padding: 5px\">fixed_assets</td> <td style=\"padding: 5px\">固定資産台帳</td> </tr> <tr> <td style=\"padding: 5px\">inventory_refreshes</td> <td style=\"padding: 5px\">在庫棚卸</td> </tr> <tr> <td style=\"padding: 5px\">biz_allocations</td> <td style=\"padding: 5px\">家事按分</td> </tr> <tr> <td style=\"padding: 5px\">payment_records</td> <td style=\"padding: 5px\">支払調書</td> </tr> <tr> <td style=\"padding: 5px\">annual_reports</td> <td style=\"padding: 5px\">決算書、確定申告書類</td> </tr> <tr> <td style=\"padding: 5px\">tax_reports</td> <td style=\"padding: 5px\">消費税区分別表・消費税集計表</td> </tr> <tr> <td style=\"padding: 5px\">consumption_entries</td> <td style=\"padding: 5px\">消費税申告書</td> </tr> <tr> <td style=\"padding: 5px\">tax_return</td> <td style=\"padding: 5px\">連携用データ</td> </tr> <tr> <td style=\"padding: 5px\">account_item_statements</td> <td style=\"padding: 5px\">勘定科目内訳明細書</td> </tr> <tr> <td style=\"padding: 5px\">month_end</td> <td style=\"padding: 5px\">月締め</td> </tr> <tr> <td style=\"padding: 5px\">year_end</td> <td style=\"padding: 5px\">年度締め</td> </tr> <tr> <td style=\"padding: 5px\">walletables</td> <td style=\"padding: 5px\">口座</td> </tr> <tr> <td style=\"padding: 5px\">companies</td> <td style=\"padding: 5px\">事業所の設定</td> </tr> <tr> <td style=\"padding: 5px\">invitations</td> <td style=\"padding: 5px\">メンバー招待</td> </tr> <tr> <td style=\"padding: 5px\">sign_in_logs</td> <td style=\"padding: 5px\">ログイン履歴</td> </tr> <tr> <td style=\"padding: 5px\">backups</td> <td style=\"padding: 5px\">バックアップ</td> </tr> <tr> <td style=\"padding: 5px\">opening_balances</td> <td style=\"padding: 5px\">開始残高の設定</td> </tr> <tr> <td style=\"padding: 5px\">system_conversion</td> <td style=\"padding: 5px\">乗り換え設定</td> </tr> <tr> <td style=\"padding: 5px\">resets</td> <td style=\"padding: 5px\">リセット</td> </tr> <tr> <td style=\"padding: 5px\">partners</td> <td style=\"padding: 5px\">取引先</td> </tr> <tr> <td style=\"padding: 5px\">items</td> <td style=\"padding: 5px\">品目</td> </tr> <tr> <td style=\"padding: 5px\">sections</td> <td style=\"padding: 5px\">部門</td> </tr> <tr> <td style=\"padding: 5px\">tags</td> <td style=\"padding: 5px\">メモタグ</td> </tr> <tr> <td style=\"padding: 5px\">account_items</td> <td style=\"padding: 5px\">勘定科目</td> </tr> <tr> <td style=\"padding: 5px\">taxes</td> <td style=\"padding: 5px\">税区分</td> </tr> <tr> <td style=\"padding: 5px\">user_matchers</td> <td style=\"padding: 5px\">自動登録ルール</td> </tr> <tr> <td style=\"padding: 5px\">deal_templates</td> <td style=\"padding: 5px\">取引テンプレート</td> </tr> <tr> <td style=\"padding: 5px\">manual_journal_templates</td> <td style=\"padding: 5px\">振替伝票テンプレート</td> </tr> <tr> <td style=\"padding: 5px\">cost_allocations</td> <td style=\"padding: 5px\">部門配賦</td> </tr> <tr> <td style=\"padding: 5px\">approval_flow_routes</td> <td style=\"padding: 5px\">承認経路</td> </tr> <tr> <td style=\"padding: 5px\">expense_application_templates</td> <td style=\"padding: 5px\">経費科目</td> </tr> <tr> <td style=\"padding: 5px\">workflows</td> <td style=\"padding: 5px\">仕訳承認</td> </tr> <tr> <td style=\"padding: 5px\">oauth_applications</td> <td style=\"padding: 5px\">アプリ利用</td> </tr> <tr> <td style=\"padding: 5px\">oauth_authorizations</td> <td style=\"padding: 5px\">アプリ認可</td> </tr> <tr> <td style=\"padding: 5px\">bank_accountant_staff_users</td> <td style=\"padding: 5px\">アドバイザー事業所内でのメンバー管理</td> </tr> </tbody> </table> | - | +| **200** | <p>レスポンスの各キーは以下の項目と対応しています。</p> <p>詳細は <a href=\"https://support.freee.co.jp/hc/ja/articles/210265673\">https://support.freee.co.jp/hc/ja/articles/210265673</a> を参照してください。</p> <table> <thead> <tr> <th style=\"padding: 5px\">キー</th> <th style=\"padding: 5px\">対応する項目</th> </tr> </thead> <tbody> <tr> <td style=\"padding: 5px\">wallet_txns</td> <td style=\"padding: 5px\">自動で経理 / 取得した明細</td> </tr> <tr> <td style=\"padding: 5px\">deals</td> <td style=\"padding: 5px\">取引</td> </tr> <tr> <td style=\"padding: 5px\">transfers</td> <td style=\"padding: 5px\">口座振替</td> </tr> <tr> <td style=\"padding: 5px\">docs</td> <td style=\"padding: 5px\">見積書・納品書・請求書・領収書・発注書</td> </tr> <tr> <td style=\"padding: 5px\">doc_postings</td> <td style=\"padding: 5px\">(請求書の)郵送</td> </tr> <tr> <td style=\"padding: 5px\">receipts</td> <td style=\"padding: 5px\">ファイルボックス</td> </tr> <tr> <td style=\"padding: 5px\">receipt_stream_editor</td> <td style=\"padding: 5px\">連続取引登録</td> </tr> <tr> <td style=\"padding: 5px\">expense_applications</td> <td style=\"padding: 5px\">経費精算</td> </tr> <tr> <td style=\"padding: 5px\">spreadsheets</td> <td style=\"padding: 5px\">エクセルインポート</td> </tr> <tr> <td style=\"padding: 5px\">payment_requests</td> <td style=\"padding: 5px\">支払依頼</td> </tr> <tr> <td style=\"padding: 5px\">request_forms</td> <td style=\"padding: 5px\">申請フォーム</td> </tr> <tr> <td style=\"padding: 5px\">approval_requests</td> <td style=\"padding: 5px\">各種申請</td> </tr> <tr> <td style=\"padding: 5px\">reports</td> <td style=\"padding: 5px\">収益 / 費用レポート</td> </tr> <tr> <td style=\"padding: 5px\">reports_income_expense</td> <td style=\"padding: 5px\">損益レポート</td> </tr> <tr> <td style=\"padding: 5px\">reports_receivables</td> <td style=\"padding: 5px\">入金管理レポート</td> </tr> <tr> <td style=\"padding: 5px\">reports_payables</td> <td style=\"padding: 5px\">支払管理レポート(一括振込ファイルを含む)</td> </tr> <tr> <td style=\"padding: 5px\">reports_cash_balance</td> <td style=\"padding: 5px\">現預金レポート/資金繰りレポート</td> </tr> <tr> <td style=\"padding: 5px\">reports_crosstabs</td> <td style=\"padding: 5px\">集計表</td> </tr> <tr> <td style=\"padding: 5px\">reports_general_ledgers</td> <td style=\"padding: 5px\">総勘定元帳</td> </tr> <tr> <td style=\"padding: 5px\">reports_pl</td> <td style=\"padding: 5px\">損益計算書(月次推移/試算表)</td> </tr> <tr> <td style=\"padding: 5px\">reports_bs</td> <td style=\"padding: 5px\">貸借対照表(月次推移/試算表)</td> </tr> <tr> <td style=\"padding: 5px\">reports_journals</td> <td style=\"padding: 5px\">仕訳帳</td> </tr> <tr> <td style=\"padding: 5px\">reports_managements_planning</td> <td style=\"padding: 5px\">経営プランニング</td> </tr> <tr> <td style=\"padding: 5px\">reports_managements_navigation</td> <td style=\"padding: 5px\">経営ナビゲーション</td> </tr> <tr> <td style=\"padding: 5px\">manual_journals</td> <td style=\"padding: 5px\">振替伝票</td> </tr> <tr> <td style=\"padding: 5px\">fixed_assets</td> <td style=\"padding: 5px\">固定資産台帳</td> </tr> <tr> <td style=\"padding: 5px\">inventory_refreshes</td> <td style=\"padding: 5px\">在庫棚卸</td> </tr> <tr> <td style=\"padding: 5px\">biz_allocations</td> <td style=\"padding: 5px\">家事按分</td> </tr> <tr> <td style=\"padding: 5px\">payment_records</td> <td style=\"padding: 5px\">支払調書</td> </tr> <tr> <td style=\"padding: 5px\">annual_reports</td> <td style=\"padding: 5px\">決算書、確定申告書類</td> </tr> <tr> <td style=\"padding: 5px\">tax_reports</td> <td style=\"padding: 5px\">消費税区分別表・消費税集計表</td> </tr> <tr> <td style=\"padding: 5px\">consumption_entries</td> <td style=\"padding: 5px\">消費税申告書</td> </tr> <tr> <td style=\"padding: 5px\">tax_return</td> <td style=\"padding: 5px\">連携用データ</td> </tr> <tr> <td style=\"padding: 5px\">account_item_statements</td> <td style=\"padding: 5px\">勘定科目内訳明細書</td> </tr> <tr> <td style=\"padding: 5px\">month_end</td> <td style=\"padding: 5px\">月締め</td> </tr> <tr> <td style=\"padding: 5px\">year_end</td> <td style=\"padding: 5px\">年度締め</td> </tr> <tr> <td style=\"padding: 5px\">walletables</td> <td style=\"padding: 5px\">口座 / 口座の同期</td> </tr> <tr> <td style=\"padding: 5px\">companies</td> <td style=\"padding: 5px\">事業所の設定</td> </tr> <tr> <td style=\"padding: 5px\">invitations</td> <td style=\"padding: 5px\">メンバー招待</td> </tr> <tr> <td style=\"padding: 5px\">sign_in_logs</td> <td style=\"padding: 5px\">ログイン履歴</td> </tr> <tr> <td style=\"padding: 5px\">backups</td> <td style=\"padding: 5px\">バックアップ</td> </tr> <tr> <td style=\"padding: 5px\">opening_balances</td> <td style=\"padding: 5px\">開始残高の設定</td> </tr> <tr> <td style=\"padding: 5px\">system_conversion</td> <td style=\"padding: 5px\">乗り換え設定</td> </tr> <tr> <td style=\"padding: 5px\">resets</td> <td style=\"padding: 5px\">リセット</td> </tr> <tr> <td style=\"padding: 5px\">partners</td> <td style=\"padding: 5px\">取引先</td> </tr> <tr> <td style=\"padding: 5px\">items</td> <td style=\"padding: 5px\">品目</td> </tr> <tr> <td style=\"padding: 5px\">sections</td> <td style=\"padding: 5px\">部門</td> </tr> <tr> <td style=\"padding: 5px\">tags</td> <td style=\"padding: 5px\">メモタグ</td> </tr> <tr> <td style=\"padding: 5px\">account_items</td> <td style=\"padding: 5px\">勘定科目</td> </tr> <tr> <td style=\"padding: 5px\">taxes</td> <td style=\"padding: 5px\">税区分</td> </tr> <tr> <td style=\"padding: 5px\">user_matchers</td> <td style=\"padding: 5px\">自動登録ルール</td> </tr> <tr> <td style=\"padding: 5px\">deal_templates</td> <td style=\"padding: 5px\">取引テンプレート</td> </tr> <tr> <td style=\"padding: 5px\">manual_journal_templates</td> <td style=\"padding: 5px\">振替伝票テンプレート</td> </tr> <tr> <td style=\"padding: 5px\">cost_allocations</td> <td style=\"padding: 5px\">部門配賦</td> </tr> <tr> <td style=\"padding: 5px\">approval_flow_routes</td> <td style=\"padding: 5px\">承認経路</td> </tr> <tr> <td style=\"padding: 5px\">expense_application_templates</td> <td style=\"padding: 5px\">経費科目</td> </tr> <tr> <td style=\"padding: 5px\">workflows</td> <td style=\"padding: 5px\">仕訳承認</td> </tr> <tr> <td style=\"padding: 5px\">oauth_applications</td> <td style=\"padding: 5px\">アプリ利用</td> </tr> <tr> <td style=\"padding: 5px\">oauth_authorizations</td> <td style=\"padding: 5px\">アプリ認可</td> </tr> <tr> <td style=\"padding: 5px\">bank_accountant_staff_users</td> <td style=\"padding: 5px\">アドバイザー事業所内でのメンバー管理</td> </tr> </tbody> </table> | - | | **400** | | - | | **401** | | - | | **403** | | - | diff --git a/sdk/pom.xml b/sdk/pom.xml index 3422231..3b2a929 100644 --- a/sdk/pom.xml +++ b/sdk/pom.xml @@ -276,12 +276,6 @@ ${jakarta-annotation-version} provided - - - org.openapitools - jackson-databind-nullable - 0.2.1 - junit @@ -291,7 +285,7 @@ - 2.18.0 + 2.19.0 -SNAPSHOT UTF-8 1.8 diff --git a/sdk/src/main/java/jp/co/freee/accounting/models/InlineResponse20013.java b/sdk/src/main/java/jp/co/freee/accounting/models/InlineResponse20013.java index 871b7c7..3f347ab 100644 --- a/sdk/src/main/java/jp/co/freee/accounting/models/InlineResponse20013.java +++ b/sdk/src/main/java/jp/co/freee/accounting/models/InlineResponse20013.java @@ -24,7 +24,9 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import jp.co.freee.accounting.models.UserCapability; +import jp.co.freee.accounting.models.UserCapabilityWithConfirm; import jp.co.freee.accounting.models.UserCapabilityWithSelfOnly; +import jp.co.freee.accounting.models.UserCapabilityWithSync; /** * InlineResponse20013 @@ -257,11 +259,11 @@ public class InlineResponse20013 { public static final String SERIALIZED_NAME_WALLET_TXNS = "wallet_txns"; @SerializedName(SERIALIZED_NAME_WALLET_TXNS) - private UserCapability walletTxns; + private UserCapabilityWithConfirm walletTxns; public static final String SERIALIZED_NAME_WALLETABLES = "walletables"; @SerializedName(SERIALIZED_NAME_WALLETABLES) - private UserCapability walletables; + private UserCapabilityWithSync walletables; public static final String SERIALIZED_NAME_WORKFLOWS = "workflows"; @SerializedName(SERIALIZED_NAME_WORKFLOWS) @@ -1562,7 +1564,7 @@ public void setUserMatchers(UserCapability userMatchers) { } - public InlineResponse20013 walletTxns(UserCapability walletTxns) { + public InlineResponse20013 walletTxns(UserCapabilityWithConfirm walletTxns) { this.walletTxns = walletTxns; return this; @@ -1575,17 +1577,17 @@ public InlineResponse20013 walletTxns(UserCapability walletTxns) { @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") - public UserCapability getWalletTxns() { + public UserCapabilityWithConfirm getWalletTxns() { return walletTxns; } - public void setWalletTxns(UserCapability walletTxns) { + public void setWalletTxns(UserCapabilityWithConfirm walletTxns) { this.walletTxns = walletTxns; } - public InlineResponse20013 walletables(UserCapability walletables) { + public InlineResponse20013 walletables(UserCapabilityWithSync walletables) { this.walletables = walletables; return this; @@ -1598,12 +1600,12 @@ public InlineResponse20013 walletables(UserCapability walletables) { @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") - public UserCapability getWalletables() { + public UserCapabilityWithSync getWalletables() { return walletables; } - public void setWalletables(UserCapability walletables) { + public void setWalletables(UserCapabilityWithSync walletables) { this.walletables = walletables; } diff --git a/sdk/src/main/java/jp/co/freee/accounting/models/UserCapabilityWithConfirm.java b/sdk/src/main/java/jp/co/freee/accounting/models/UserCapabilityWithConfirm.java new file mode 100644 index 0000000..c200c2b --- /dev/null +++ b/sdk/src/main/java/jp/co/freee/accounting/models/UserCapabilityWithConfirm.java @@ -0,0 +1,216 @@ +/* + * freee API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package jp.co.freee.accounting.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * UserCapabilityWithConfirm + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class UserCapabilityWithConfirm { + public static final String SERIALIZED_NAME_CONFIRM = "confirm"; + @SerializedName(SERIALIZED_NAME_CONFIRM) + private Boolean confirm; + + public static final String SERIALIZED_NAME_CREATE = "create"; + @SerializedName(SERIALIZED_NAME_CREATE) + private Boolean create; + + public static final String SERIALIZED_NAME_DESTROY = "destroy"; + @SerializedName(SERIALIZED_NAME_DESTROY) + private Boolean destroy; + + public static final String SERIALIZED_NAME_READ = "read"; + @SerializedName(SERIALIZED_NAME_READ) + private Boolean read; + + public static final String SERIALIZED_NAME_UPDATE = "update"; + @SerializedName(SERIALIZED_NAME_UPDATE) + private Boolean update; + + public UserCapabilityWithConfirm() { + } + + public UserCapabilityWithConfirm confirm(Boolean confirm) { + + this.confirm = confirm; + return this; + } + + /** + * 「自動で経理」の操作 + * @return confirm + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "true", value = "「自動で経理」の操作") + + public Boolean getConfirm() { + return confirm; + } + + + public void setConfirm(Boolean confirm) { + this.confirm = confirm; + } + + + public UserCapabilityWithConfirm create(Boolean create) { + + this.create = create; + return this; + } + + /** + * 「取得した明細」の作成 + * @return create + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "true", value = "「取得した明細」の作成") + + public Boolean getCreate() { + return create; + } + + + public void setCreate(Boolean create) { + this.create = create; + } + + + public UserCapabilityWithConfirm destroy(Boolean destroy) { + + this.destroy = destroy; + return this; + } + + /** + * 「取得した明細」の削除 + * @return destroy + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "true", value = "「取得した明細」の削除") + + public Boolean getDestroy() { + return destroy; + } + + + public void setDestroy(Boolean destroy) { + this.destroy = destroy; + } + + + public UserCapabilityWithConfirm read(Boolean read) { + + this.read = read; + return this; + } + + /** + * 「取得した明細」の閲覧 + * @return read + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "true", value = "「取得した明細」の閲覧") + + public Boolean getRead() { + return read; + } + + + public void setRead(Boolean read) { + this.read = read; + } + + + public UserCapabilityWithConfirm update(Boolean update) { + + this.update = update; + return this; + } + + /** + * 「取得した明細」の更新 + * @return update + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "true", value = "「取得した明細」の更新") + + public Boolean getUpdate() { + return update; + } + + + public void setUpdate(Boolean update) { + this.update = update; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UserCapabilityWithConfirm userCapabilityWithConfirm = (UserCapabilityWithConfirm) o; + return Objects.equals(this.confirm, userCapabilityWithConfirm.confirm) && + Objects.equals(this.create, userCapabilityWithConfirm.create) && + Objects.equals(this.destroy, userCapabilityWithConfirm.destroy) && + Objects.equals(this.read, userCapabilityWithConfirm.read) && + Objects.equals(this.update, userCapabilityWithConfirm.update); + } + + @Override + public int hashCode() { + return Objects.hash(confirm, create, destroy, read, update); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UserCapabilityWithConfirm {\n"); + sb.append(" confirm: ").append(toIndentedString(confirm)).append("\n"); + sb.append(" create: ").append(toIndentedString(create)).append("\n"); + sb.append(" destroy: ").append(toIndentedString(destroy)).append("\n"); + sb.append(" read: ").append(toIndentedString(read)).append("\n"); + sb.append(" update: ").append(toIndentedString(update)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/main/java/jp/co/freee/accounting/models/UserCapabilityWithSync.java b/sdk/src/main/java/jp/co/freee/accounting/models/UserCapabilityWithSync.java new file mode 100644 index 0000000..4a51ff1 --- /dev/null +++ b/sdk/src/main/java/jp/co/freee/accounting/models/UserCapabilityWithSync.java @@ -0,0 +1,218 @@ +/* + * freee API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package jp.co.freee.accounting.models; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * UserCapabilityWithSync + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class UserCapabilityWithSync { + public static final String SERIALIZED_NAME_CREATE = "create"; + @SerializedName(SERIALIZED_NAME_CREATE) + private Boolean create; + + public static final String SERIALIZED_NAME_DESTROY = "destroy"; + @SerializedName(SERIALIZED_NAME_DESTROY) + private Boolean destroy; + + public static final String SERIALIZED_NAME_READ = "read"; + @SerializedName(SERIALIZED_NAME_READ) + private Boolean read; + + public static final String SERIALIZED_NAME_SYNC = "sync"; + @SerializedName(SERIALIZED_NAME_SYNC) + private Boolean sync; + + public static final String SERIALIZED_NAME_UPDATE = "update"; + @SerializedName(SERIALIZED_NAME_UPDATE) + private Boolean update; + + public UserCapabilityWithSync() { + } + + public UserCapabilityWithSync create(Boolean create) { + + this.create = create; + return this; + } + + /** + * 「口座」の作成 + * @return create + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "true", value = "「口座」の作成") + + public Boolean getCreate() { + return create; + } + + + public void setCreate(Boolean create) { + this.create = create; + } + + + public UserCapabilityWithSync destroy(Boolean destroy) { + + this.destroy = destroy; + return this; + } + + /** + * 「口座」の削除 + * @return destroy + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "true", value = "「口座」の削除") + + public Boolean getDestroy() { + return destroy; + } + + + public void setDestroy(Boolean destroy) { + this.destroy = destroy; + } + + + public UserCapabilityWithSync read(Boolean read) { + + this.read = read; + return this; + } + + /** + * 「口座」の閲覧 + * @return read + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "true", value = "「口座」の閲覧") + + public Boolean getRead() { + return read; + } + + + public void setRead(Boolean read) { + this.read = read; + } + + + public UserCapabilityWithSync sync(Boolean sync) { + + this.sync = sync; + return this; + } + + /** + * 「口座の同期」の実行(廃止予定) + * @return sync + * @deprecated + **/ + @Deprecated + @javax.annotation.Nullable + @ApiModelProperty(example = "true", value = "「口座の同期」の実行(廃止予定)") + + public Boolean getSync() { + return sync; + } + + + public void setSync(Boolean sync) { + this.sync = sync; + } + + + public UserCapabilityWithSync update(Boolean update) { + + this.update = update; + return this; + } + + /** + * 「口座」の更新 + * @return update + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "true", value = "「口座」の更新") + + public Boolean getUpdate() { + return update; + } + + + public void setUpdate(Boolean update) { + this.update = update; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UserCapabilityWithSync userCapabilityWithSync = (UserCapabilityWithSync) o; + return Objects.equals(this.create, userCapabilityWithSync.create) && + Objects.equals(this.destroy, userCapabilityWithSync.destroy) && + Objects.equals(this.read, userCapabilityWithSync.read) && + Objects.equals(this.sync, userCapabilityWithSync.sync) && + Objects.equals(this.update, userCapabilityWithSync.update); + } + + @Override + public int hashCode() { + return Objects.hash(create, destroy, read, sync, update); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UserCapabilityWithSync {\n"); + sb.append(" create: ").append(toIndentedString(create)).append("\n"); + sb.append(" destroy: ").append(toIndentedString(destroy)).append("\n"); + sb.append(" read: ").append(toIndentedString(read)).append("\n"); + sb.append(" sync: ").append(toIndentedString(sync)).append("\n"); + sb.append(" update: ").append(toIndentedString(update)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/sdk/src/test/java/jp/co/freee/accounting/models/InlineResponse20013Test.java b/sdk/src/test/java/jp/co/freee/accounting/models/InlineResponse20013Test.java index 6f65f2d..b63c65b 100644 --- a/sdk/src/test/java/jp/co/freee/accounting/models/InlineResponse20013Test.java +++ b/sdk/src/test/java/jp/co/freee/accounting/models/InlineResponse20013Test.java @@ -22,7 +22,9 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import jp.co.freee.accounting.models.UserCapability; +import jp.co.freee.accounting.models.UserCapabilityWithConfirm; import jp.co.freee.accounting.models.UserCapabilityWithSelfOnly; +import jp.co.freee.accounting.models.UserCapabilityWithSync; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; diff --git a/sdk/src/test/java/jp/co/freee/accounting/models/UserCapabilityWithConfirmTest.java b/sdk/src/test/java/jp/co/freee/accounting/models/UserCapabilityWithConfirmTest.java new file mode 100644 index 0000000..9f36716 --- /dev/null +++ b/sdk/src/test/java/jp/co/freee/accounting/models/UserCapabilityWithConfirmTest.java @@ -0,0 +1,83 @@ +/* + * freee API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package jp.co.freee.accounting.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for UserCapabilityWithConfirm + */ +public class UserCapabilityWithConfirmTest { + private final UserCapabilityWithConfirm model = new UserCapabilityWithConfirm(); + + /** + * Model tests for UserCapabilityWithConfirm + */ + @Test + public void testUserCapabilityWithConfirm() { + // TODO: test UserCapabilityWithConfirm + } + + /** + * Test the property 'confirm' + */ + @Test + public void confirmTest() { + // TODO: test confirm + } + + /** + * Test the property 'create' + */ + @Test + public void createTest() { + // TODO: test create + } + + /** + * Test the property 'destroy' + */ + @Test + public void destroyTest() { + // TODO: test destroy + } + + /** + * Test the property 'read' + */ + @Test + public void readTest() { + // TODO: test read + } + + /** + * Test the property 'update' + */ + @Test + public void updateTest() { + // TODO: test update + } + +} diff --git a/sdk/src/test/java/jp/co/freee/accounting/models/UserCapabilityWithSyncTest.java b/sdk/src/test/java/jp/co/freee/accounting/models/UserCapabilityWithSyncTest.java new file mode 100644 index 0000000..35f888b --- /dev/null +++ b/sdk/src/test/java/jp/co/freee/accounting/models/UserCapabilityWithSyncTest.java @@ -0,0 +1,83 @@ +/* + * freee API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package jp.co.freee.accounting.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for UserCapabilityWithSync + */ +public class UserCapabilityWithSyncTest { + private final UserCapabilityWithSync model = new UserCapabilityWithSync(); + + /** + * Model tests for UserCapabilityWithSync + */ + @Test + public void testUserCapabilityWithSync() { + // TODO: test UserCapabilityWithSync + } + + /** + * Test the property 'create' + */ + @Test + public void createTest() { + // TODO: test create + } + + /** + * Test the property 'destroy' + */ + @Test + public void destroyTest() { + // TODO: test destroy + } + + /** + * Test the property 'read' + */ + @Test + public void readTest() { + // TODO: test read + } + + /** + * Test the property 'sync' + */ + @Test + public void syncTest() { + // TODO: test sync + } + + /** + * Test the property 'update' + */ + @Test + public void updateTest() { + // TODO: test update + } + +} From e3aadc09c942d5f62797e6f5aab8a81891f62a7e Mon Sep 17 00:00:00 2001 From: soga-yuichi Date: Thu, 17 Nov 2022 09:19:01 +0900 Subject: [PATCH 3/3] =?UTF-8?q?jackson-databind-nullable=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- samples/basic-sample/pom.xml | 2 +- samples/basic-websample-rx/pom.xml | 2 +- samples/basic-websample/pom.xml | 2 +- sdk/pom.xml | 8 +++++++- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/samples/basic-sample/pom.xml b/samples/basic-sample/pom.xml index 20c6d16..cf987e4 100644 --- a/samples/basic-sample/pom.xml +++ b/samples/basic-sample/pom.xml @@ -16,7 +16,7 @@ jp.co.freee freee-accounting-sdk - 2.18.0 + 2.19.0 diff --git a/samples/basic-websample-rx/pom.xml b/samples/basic-websample-rx/pom.xml index 1096b41..0352a82 100644 --- a/samples/basic-websample-rx/pom.xml +++ b/samples/basic-websample-rx/pom.xml @@ -46,7 +46,7 @@ jp.co.freee freee-accounting-sdk - 2.18.0 + 2.19.0 org.webjars diff --git a/samples/basic-websample/pom.xml b/samples/basic-websample/pom.xml index 6dc2321..cde6d2a 100644 --- a/samples/basic-websample/pom.xml +++ b/samples/basic-websample/pom.xml @@ -63,7 +63,7 @@ jp.co.freee freee-accounting-sdk - 2.18.0 + 2.19.0 diff --git a/sdk/pom.xml b/sdk/pom.xml index 3b2a929..ca7d5c0 100644 --- a/sdk/pom.xml +++ b/sdk/pom.xml @@ -276,6 +276,12 @@ ${jakarta-annotation-version} provided + + + org.openapitools + jackson-databind-nullable + 0.2.1 + junit @@ -299,4 +305,4 @@ 1.0.1 4.13.1 - \ No newline at end of file +