From 7403ae90851b3ea4eb27a7a71474f5bdeb392215 Mon Sep 17 00:00:00 2001 From: EC2 Default User Date: Tue, 10 May 2022 05:28:50 +0000 Subject: [PATCH] Update schema files --- _sdk_compatible/open-api-3/api-schema.json | 304 ++++++++++++++++++++- _sdk_compatible/open-api-3/api-schema.yml | 239 +++++++++++++++- v2020_06_15/open-api-3/api-schema.json | 304 ++++++++++++++++++++- v2020_06_15/open-api-3/api-schema.yml | 239 +++++++++++++++- 4 files changed, 1076 insertions(+), 10 deletions(-) diff --git a/_sdk_compatible/open-api-3/api-schema.json b/_sdk_compatible/open-api-3/api-schema.json index 16f6c87..13c126b 100644 --- a/_sdk_compatible/open-api-3/api-schema.json +++ b/_sdk_compatible/open-api-3/api-schema.json @@ -27211,7 +27211,7 @@ }, "due_amount": { "type": "integer", - "description": "支払金額", + "description": "支払残額", "example": 0 }, "type": { @@ -27475,7 +27475,7 @@ }, "due_amount": { "type": "integer", - "description": "支払金額", + "description": "支払残額", "example": 0 }, "type": { @@ -28777,7 +28777,8 @@ "phone1": { "type": "string", "description": "電話番号1", - "example": "03-1234-xxxx" + "example": "03-1234-xxxx", + "nullable": true }, "phone2": { "type": "string", @@ -28990,6 +28991,303 @@ "items": { "$ref": "#/components/schemas/fiscal_years" } + }, + "account_items": { + "type": "array", + "items": { + "type": "object", + "required": [ + "id", + "name", + "categories" + ], + "properties": { + "id": { + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "description": "勘定科目ID", + "example": 1 + }, + "name": { + "type": "string", + "description": "勘定科目名 (30文字以内)", + "example": "ソフトウェア" + }, + "shortcut": { + "type": "string", + "maxLength": 20, + "description": "ショートカット1 (20文字以内)", + "example": "SOFUTO", + "nullable": true + }, + "default_tax_id": { + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "description": "デフォルト設定がされている税区分ID", + "example": 34 + }, + "categories": { + "type": "array", + "items": { + "type": "string", + "description": "勘定科目カテゴリー", + "example": "資産" + } + } + } + } + }, + "tax_codes": { + "type": "array", + "items": { + "type": "object", + "required": [ + "code", + "name", + "name_ja" + ], + "properties": { + "code": { + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "description": "税区分コード", + "example": 21 + }, + "name": { + "type": "string", + "description": "税区分名", + "example": "sales_with_tax" + }, + "name_ja": { + "type": "string", + "description": "税区分名(日本語表示用)", + "example": "課税売上" + } + } + } + }, + "taxes": { + "type": "array", + "items": { + "type": "object", + "required": [ + "id", + "name" + ], + "properties": { + "id": { + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "description": "税区分ID(廃止予定。tax_codeを使用してください。)", + "example": 21 + }, + "name": { + "type": "string", + "description": "税区分名", + "example": "sales_with_tax" + } + } + } + }, + "items": { + "type": "array", + "items": { + "type": "object", + "required": [ + "id", + "name" + ], + "properties": { + "id": { + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "description": "品目ID", + "example": 101 + }, + "name": { + "type": "string", + "maxLength": 30, + "description": "品目名 (30文字以内)", + "example": "タクシー代" + }, + "shortcut1": { + "type": "string", + "description": "ショートカット1 (20文字以内)", + "example": "TAXI", + "nullable": true + }, + "shortcut2": { + "type": "string", + "description": "ショートカット2 (20文字以内)", + "example": 201, + "nullable": true + } + } + } + }, + "partners": { + "type": "array", + "items": { + "type": "object", + "required": [ + "id", + "code", + "name" + ], + "properties": { + "id": { + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "description": "取引先ID", + "example": 1 + }, + "code": { + "type": "string", + "description": "取引先コード", + "example": "code001", + "nullable": true + }, + "name": { + "type": "string", + "description": "取引先名", + "example": "ABC商店" + }, + "shortcut1": { + "type": "string", + "maxLength": 255, + "description": "ショートカット1 (255文字以内)", + "example": "ABC", + "nullable": true + }, + "shortcut2": { + "type": "string", + "maxLength": 255, + "description": "ショートカット2 (255文字以内)", + "example": "501", + "nullable": true + } + } + } + }, + "sections": { + "type": "array", + "items": { + "type": "object", + "required": [ + "id", + "name" + ], + "properties": { + "id": { + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "description": "部門ID", + "example": 1 + }, + "name": { + "type": "string", + "maxLength": 30, + "description": "部門名 (30文字以内)", + "example": "開発部門" + }, + "shortcut1": { + "type": "string", + "maxLength": 20, + "description": "ショートカット1 (20文字以内)", + "example": "DEVELOPER", + "nullable": true + }, + "shortcut2": { + "type": "string", + "maxLength": 20, + "description": "ショートカット2 (20文字以内)", + "example": "123", + "nullable": true + } + } + } + }, + "tags": { + "type": "array", + "items": { + "type": "object", + "required": [ + "id", + "name" + ], + "properties": { + "id": { + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "description": "タグID", + "example": 1 + }, + "name": { + "type": "string", + "maxLength": 30, + "description": "名前(30文字以内)", + "example": "メモタグ" + }, + "shortcut1": { + "type": "string", + "maxLength": 255, + "description": "ショートカット1 (255文字以内)", + "example": "MEMOTAG", + "nullable": true + }, + "shortcut2": { + "type": "string", + "maxLength": 255, + "description": "ショートカット2 (255文字以内)", + "example": "123", + "nullable": true + } + } + } + }, + "walletables": { + "type": "array", + "items": { + "type": "object", + "required": [ + "id", + "name", + "type" + ], + "properties": { + "id": { + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "description": "口座ID", + "example": 1 + }, + "name": { + "type": "string", + "maxLength": 255, + "description": "口座名 (255文字以内)", + "example": "freee銀行" + }, + "type": { + "type": "string", + "description": "口座区分 (銀行口座: bank_account, クレジットカード: credit_card, 現金: wallet)", + "example": "bank_account", + "enum": [ + "bank_account", + "credit_card", + "wallet" + ] + } + } + } } } } diff --git a/_sdk_compatible/open-api-3/api-schema.yml b/_sdk_compatible/open-api-3/api-schema.yml index 2d3f5ea..391b20a 100644 --- a/_sdk_compatible/open-api-3/api-schema.yml +++ b/_sdk_compatible/open-api-3/api-schema.yml @@ -12729,6 +12729,74 @@ components: properties: company: properties: + tags: + items: + properties: + id: + description: タグID + example: 1 + maximum: 2147483647 + minimum: 1 + type: integer + name: + description: 名前(30文字以内) + example: メモタグ + maxLength: 30 + type: string + shortcut1: + description: ショートカット1 (255文字以内) + example: MEMOTAG + maxLength: 255 + nullable: true + type: string + shortcut2: + description: ショートカット2 (255文字以内) + example: '123' + maxLength: 255 + nullable: true + type: string + required: + - id + - name + type: object + type: array + account_items: + items: + properties: + categories: + items: + description: 勘定科目カテゴリー + example: 資産 + type: string + type: array + default_tax_id: + description: デフォルト設定がされている税区分ID + example: 34 + maximum: 2147483647 + minimum: 1 + type: integer + id: + description: 勘定科目ID + example: 1 + maximum: 2147483647 + minimum: 1 + type: integer + name: + description: 勘定科目名 (30文字以内) + example: ソフトウェア + type: string + shortcut: + description: ショートカット1 (20文字以内) + example: SOFUTO + maxLength: 20 + nullable: true + type: string + required: + - id + - name + - categories + type: object + type: array amount_fraction: description: '金額端数処理方法(0: 切り捨て、1: 切り上げ、2: 四捨五入)' example: 0 @@ -12992,6 +13060,35 @@ components: - envelope_modern example: default_classic type: string + items: + items: + properties: + id: + description: 品目ID + example: 101 + maximum: 2147483647 + minimum: 1 + type: integer + name: + description: 品目名 (30文字以内) + example: タクシー代 + maxLength: 30 + type: string + shortcut1: + description: ショートカット1 (20文字以内) + example: TAXI + nullable: true + type: string + shortcut2: + description: ショートカット2 (20文字以内) + example: 201 + nullable: true + type: string + required: + - id + - name + type: object + type: array minus_format: description: 'マイナスの表示方法(0: -、 1: △)' example: 0 @@ -13010,9 +13107,46 @@ components: maxLength: 100 nullable: true type: string + partners: + items: + properties: + code: + description: 取引先コード + example: code001 + nullable: true + type: string + id: + description: 取引先ID + example: 1 + maximum: 2147483647 + minimum: 1 + type: integer + name: + description: 取引先名 + example: ABC商店 + type: string + shortcut1: + description: ショートカット1 (255文字以内) + example: ABC + maxLength: 255 + nullable: true + type: string + shortcut2: + description: ショートカット2 (255文字以内) + example: '501' + maxLength: 255 + nullable: true + type: string + required: + - id + - code + - name + type: object + type: array phone1: description: 電話番号1 example: 03-1234-xxxx + nullable: true type: string phone2: description: 電話番号2 @@ -13040,6 +13174,37 @@ components: - workflow example: admin type: string + sections: + items: + properties: + id: + description: 部門ID + example: 1 + maximum: 2147483647 + minimum: 1 + type: integer + name: + description: 部門名 (30文字以内) + example: 開発部門 + maxLength: 30 + type: string + shortcut1: + description: ショートカット1 (20文字以内) + example: DEVELOPER + maxLength: 20 + nullable: true + type: string + shortcut2: + description: ショートカット2 (20文字以内) + example: '123' + maxLength: 20 + nullable: true + type: string + required: + - id + - name + type: object + type: array street_name1: description: 市区町村・番地 example: XX区YY1−1−1 @@ -13054,6 +13219,47 @@ components: maximum: 1 minimum: 0 type: integer + tax_codes: + items: + properties: + code: + description: 税区分コード + example: 21 + maximum: 2147483647 + minimum: 1 + type: integer + name: + description: 税区分名 + example: sales_with_tax + type: string + name_ja: + description: 税区分名(日本語表示用) + example: 課税売上 + type: string + required: + - code + - name + - name_ja + type: object + type: array + taxes: + items: + properties: + id: + description: 税区分ID(廃止予定。tax_codeを使用してください。) + example: 21 + maximum: 2147483647 + minimum: 1 + type: integer + name: + description: 税区分名 + example: sales_with_tax + type: string + required: + - id + - name + type: object + type: array txn_number_format: description: '仕訳番号形式(not_used: 使用しない、digits: 数字(例:5091824)、alnum: 英数字(例:59J0P))' enum: @@ -13066,6 +13272,35 @@ components: description: '取引先コードの利用設定(true: 有効、 false: 無効)' example: true type: boolean + walletables: + items: + properties: + id: + description: 口座ID + example: 1 + maximum: 2147483647 + minimum: 1 + type: integer + name: + description: 口座名 (255文字以内) + example: freee銀行 + maxLength: 255 + type: string + type: + description: '口座区分 (銀行口座: bank_account, クレジットカード: credit_card, + 現金: wallet)' + enum: + - bank_account + - credit_card + - wallet + example: bank_account + type: string + required: + - id + - name + - type + type: object + type: array workflow_setting: description: '仕訳承認フロー(enable: 有効、 disable: 無効)' enum: @@ -13227,7 +13462,7 @@ components: type: object type: array due_amount: - description: 支払金額 + description: 支払残額 example: 0 type: integer due_date: @@ -13847,7 +14082,7 @@ components: type: object type: array due_amount: - description: 支払金額 + description: 支払残額 example: 0 type: integer due_date: diff --git a/v2020_06_15/open-api-3/api-schema.json b/v2020_06_15/open-api-3/api-schema.json index 7485bc9..32bec77 100644 --- a/v2020_06_15/open-api-3/api-schema.json +++ b/v2020_06_15/open-api-3/api-schema.json @@ -27205,7 +27205,7 @@ }, "due_amount": { "type": "integer", - "description": "支払金額", + "description": "支払残額", "example": 0 }, "type": { @@ -27469,7 +27469,7 @@ }, "due_amount": { "type": "integer", - "description": "支払金額", + "description": "支払残額", "example": 0 }, "type": { @@ -28771,7 +28771,8 @@ "phone1": { "type": "string", "description": "電話番号1", - "example": "03-1234-xxxx" + "example": "03-1234-xxxx", + "nullable": true }, "phone2": { "type": "string", @@ -28984,6 +28985,303 @@ "items": { "$ref": "#/components/schemas/fiscal_years" } + }, + "account_items": { + "type": "array", + "items": { + "type": "object", + "required": [ + "id", + "name", + "categories" + ], + "properties": { + "id": { + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "description": "勘定科目ID", + "example": 1 + }, + "name": { + "type": "string", + "description": "勘定科目名 (30文字以内)", + "example": "ソフトウェア" + }, + "shortcut": { + "type": "string", + "maxLength": 20, + "description": "ショートカット1 (20文字以内)", + "example": "SOFUTO", + "nullable": true + }, + "default_tax_id": { + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "description": "デフォルト設定がされている税区分ID", + "example": 34 + }, + "categories": { + "type": "array", + "items": { + "type": "string", + "description": "勘定科目カテゴリー", + "example": "資産" + } + } + } + } + }, + "tax_codes": { + "type": "array", + "items": { + "type": "object", + "required": [ + "code", + "name", + "name_ja" + ], + "properties": { + "code": { + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "description": "税区分コード", + "example": 21 + }, + "name": { + "type": "string", + "description": "税区分名", + "example": "sales_with_tax" + }, + "name_ja": { + "type": "string", + "description": "税区分名(日本語表示用)", + "example": "課税売上" + } + } + } + }, + "taxes": { + "type": "array", + "items": { + "type": "object", + "required": [ + "id", + "name" + ], + "properties": { + "id": { + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "description": "税区分ID(廃止予定。tax_codeを使用してください。)", + "example": 21 + }, + "name": { + "type": "string", + "description": "税区分名", + "example": "sales_with_tax" + } + } + } + }, + "items": { + "type": "array", + "items": { + "type": "object", + "required": [ + "id", + "name" + ], + "properties": { + "id": { + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "description": "品目ID", + "example": 101 + }, + "name": { + "type": "string", + "maxLength": 30, + "description": "品目名 (30文字以内)", + "example": "タクシー代" + }, + "shortcut1": { + "type": "string", + "description": "ショートカット1 (20文字以内)", + "example": "TAXI", + "nullable": true + }, + "shortcut2": { + "type": "string", + "description": "ショートカット2 (20文字以内)", + "example": 201, + "nullable": true + } + } + } + }, + "partners": { + "type": "array", + "items": { + "type": "object", + "required": [ + "id", + "code", + "name" + ], + "properties": { + "id": { + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "description": "取引先ID", + "example": 1 + }, + "code": { + "type": "string", + "description": "取引先コード", + "example": "code001", + "nullable": true + }, + "name": { + "type": "string", + "description": "取引先名", + "example": "ABC商店" + }, + "shortcut1": { + "type": "string", + "maxLength": 255, + "description": "ショートカット1 (255文字以内)", + "example": "ABC", + "nullable": true + }, + "shortcut2": { + "type": "string", + "maxLength": 255, + "description": "ショートカット2 (255文字以内)", + "example": "501", + "nullable": true + } + } + } + }, + "sections": { + "type": "array", + "items": { + "type": "object", + "required": [ + "id", + "name" + ], + "properties": { + "id": { + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "description": "部門ID", + "example": 1 + }, + "name": { + "type": "string", + "maxLength": 30, + "description": "部門名 (30文字以内)", + "example": "開発部門" + }, + "shortcut1": { + "type": "string", + "maxLength": 20, + "description": "ショートカット1 (20文字以内)", + "example": "DEVELOPER", + "nullable": true + }, + "shortcut2": { + "type": "string", + "maxLength": 20, + "description": "ショートカット2 (20文字以内)", + "example": "123", + "nullable": true + } + } + } + }, + "tags": { + "type": "array", + "items": { + "type": "object", + "required": [ + "id", + "name" + ], + "properties": { + "id": { + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "description": "タグID", + "example": 1 + }, + "name": { + "type": "string", + "maxLength": 30, + "description": "名前(30文字以内)", + "example": "メモタグ" + }, + "shortcut1": { + "type": "string", + "maxLength": 255, + "description": "ショートカット1 (255文字以内)", + "example": "MEMOTAG", + "nullable": true + }, + "shortcut2": { + "type": "string", + "maxLength": 255, + "description": "ショートカット2 (255文字以内)", + "example": "123", + "nullable": true + } + } + } + }, + "walletables": { + "type": "array", + "items": { + "type": "object", + "required": [ + "id", + "name", + "type" + ], + "properties": { + "id": { + "type": "integer", + "minimum": 1, + "maximum": 2147483647, + "description": "口座ID", + "example": 1 + }, + "name": { + "type": "string", + "maxLength": 255, + "description": "口座名 (255文字以内)", + "example": "freee銀行" + }, + "type": { + "type": "string", + "description": "口座区分 (銀行口座: bank_account, クレジットカード: credit_card, 現金: wallet)", + "example": "bank_account", + "enum": [ + "bank_account", + "credit_card", + "wallet" + ] + } + } + } } } } diff --git a/v2020_06_15/open-api-3/api-schema.yml b/v2020_06_15/open-api-3/api-schema.yml index c5d6377..c9e3944 100644 --- a/v2020_06_15/open-api-3/api-schema.yml +++ b/v2020_06_15/open-api-3/api-schema.yml @@ -16602,6 +16602,74 @@ components: properties: company: properties: + tags: + items: + properties: + id: + description: タグID + example: 1 + maximum: 2147483647 + minimum: 1 + type: integer + name: + description: 名前(30文字以内) + example: メモタグ + maxLength: 30 + type: string + shortcut1: + description: ショートカット1 (255文字以内) + example: MEMOTAG + maxLength: 255 + nullable: true + type: string + shortcut2: + description: ショートカット2 (255文字以内) + example: '123' + maxLength: 255 + nullable: true + type: string + required: + - id + - name + type: object + type: array + account_items: + items: + properties: + categories: + items: + description: 勘定科目カテゴリー + example: 資産 + type: string + type: array + default_tax_id: + description: デフォルト設定がされている税区分ID + example: 34 + maximum: 2147483647 + minimum: 1 + type: integer + id: + description: 勘定科目ID + example: 1 + maximum: 2147483647 + minimum: 1 + type: integer + name: + description: 勘定科目名 (30文字以内) + example: ソフトウェア + type: string + shortcut: + description: ショートカット1 (20文字以内) + example: SOFUTO + maxLength: 20 + nullable: true + type: string + required: + - id + - name + - categories + type: object + type: array amount_fraction: description: '金額端数処理方法(0: 切り捨て、1: 切り上げ、2: 四捨五入)' example: 0 @@ -16865,6 +16933,35 @@ components: - envelope_modern example: default_classic type: string + items: + items: + properties: + id: + description: 品目ID + example: 101 + maximum: 2147483647 + minimum: 1 + type: integer + name: + description: 品目名 (30文字以内) + example: タクシー代 + maxLength: 30 + type: string + shortcut1: + description: ショートカット1 (20文字以内) + example: TAXI + nullable: true + type: string + shortcut2: + description: ショートカット2 (20文字以内) + example: 201 + nullable: true + type: string + required: + - id + - name + type: object + type: array minus_format: description: 'マイナスの表示方法(0: -、 1: △)' example: 0 @@ -16883,9 +16980,46 @@ components: maxLength: 100 nullable: true type: string + partners: + items: + properties: + code: + description: 取引先コード + example: code001 + nullable: true + type: string + id: + description: 取引先ID + example: 1 + maximum: 2147483647 + minimum: 1 + type: integer + name: + description: 取引先名 + example: ABC商店 + type: string + shortcut1: + description: ショートカット1 (255文字以内) + example: ABC + maxLength: 255 + nullable: true + type: string + shortcut2: + description: ショートカット2 (255文字以内) + example: '501' + maxLength: 255 + nullable: true + type: string + required: + - id + - code + - name + type: object + type: array phone1: description: 電話番号1 example: 03-1234-xxxx + nullable: true type: string phone2: description: 電話番号2 @@ -16913,6 +17047,37 @@ components: - workflow example: admin type: string + sections: + items: + properties: + id: + description: 部門ID + example: 1 + maximum: 2147483647 + minimum: 1 + type: integer + name: + description: 部門名 (30文字以内) + example: 開発部門 + maxLength: 30 + type: string + shortcut1: + description: ショートカット1 (20文字以内) + example: DEVELOPER + maxLength: 20 + nullable: true + type: string + shortcut2: + description: ショートカット2 (20文字以内) + example: '123' + maxLength: 20 + nullable: true + type: string + required: + - id + - name + type: object + type: array street_name1: description: 市区町村・番地 example: XX区YY1−1−1 @@ -16927,6 +17092,47 @@ components: maximum: 1 minimum: 0 type: integer + tax_codes: + items: + properties: + code: + description: 税区分コード + example: 21 + maximum: 2147483647 + minimum: 1 + type: integer + name: + description: 税区分名 + example: sales_with_tax + type: string + name_ja: + description: 税区分名(日本語表示用) + example: 課税売上 + type: string + required: + - code + - name + - name_ja + type: object + type: array + taxes: + items: + properties: + id: + description: 税区分ID(廃止予定。tax_codeを使用してください。) + example: 21 + maximum: 2147483647 + minimum: 1 + type: integer + name: + description: 税区分名 + example: sales_with_tax + type: string + required: + - id + - name + type: object + type: array txn_number_format: description: '仕訳番号形式(not_used: 使用しない、digits: 数字(例:5091824)、alnum: 英数字(例:59J0P))' enum: @@ -16939,6 +17145,35 @@ components: description: '取引先コードの利用設定(true: 有効、 false: 無効)' example: true type: boolean + walletables: + items: + properties: + id: + description: 口座ID + example: 1 + maximum: 2147483647 + minimum: 1 + type: integer + name: + description: 口座名 (255文字以内) + example: freee銀行 + maxLength: 255 + type: string + type: + description: '口座区分 (銀行口座: bank_account, クレジットカード: credit_card, + 現金: wallet)' + enum: + - bank_account + - credit_card + - wallet + example: bank_account + type: string + required: + - id + - name + - type + type: object + type: array workflow_setting: description: '仕訳承認フロー(enable: 有効、 disable: 無効)' enum: @@ -17100,7 +17335,7 @@ components: type: object type: array due_amount: - description: 支払金額 + description: 支払残額 example: 0 type: integer due_date: @@ -17720,7 +17955,7 @@ components: type: object type: array due_amount: - description: 支払金額 + description: 支払残額 example: 0 type: integer due_date: