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

Commit 37bffe7

Browse files
authored
Merge pull request #83 from freee/auto-generated
2.20.0
2 parents b6f7674 + 6cf4c42 commit 37bffe7

14 files changed

+38
-592
lines changed

.openapi-generator/FILES

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ docs/Model/PartnerUpdateParams.md
183183
docs/Model/PartnerUpdateParamsInvoicePaymentTermAttributes.md
184184
docs/Model/PartnerUpdateParamsPaymentTermAttributes.md
185185
docs/Model/PartnersResponse.md
186-
docs/Model/PartnersResponseAddressAttributes.md
187186
docs/Model/PartnersResponsePartners.md
188187
docs/Model/PaymentParams.md
189188
docs/Model/PaymentRequestActionCreateParams.md
@@ -501,7 +500,6 @@ lib/Model/PartnerUpdateParams.php
501500
lib/Model/PartnerUpdateParamsInvoicePaymentTermAttributes.php
502501
lib/Model/PartnerUpdateParamsPaymentTermAttributes.php
503502
lib/Model/PartnersResponse.php
504-
lib/Model/PartnersResponseAddressAttributes.php
505503
lib/Model/PartnersResponsePartners.php
506504
lib/Model/PaymentParams.php
507505
lib/Model/PaymentRequestActionCreateParams.php
@@ -815,7 +813,6 @@ test/Model/PartnerResponseTest.php
815813
test/Model/PartnerUpdateParamsInvoicePaymentTermAttributesTest.php
816814
test/Model/PartnerUpdateParamsPaymentTermAttributesTest.php
817815
test/Model/PartnerUpdateParamsTest.php
818-
test/Model/PartnersResponseAddressAttributesTest.php
819816
test/Model/PartnersResponsePartnersTest.php
820817
test/Model/PartnersResponseTest.php
821818
test/Model/PaymentParamsTest.php

.openapi-generator/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
invokerPackage: Freee\Accounting
22
gitUserId: freee
33
gitRepoId: freee-accounting-sdk-php
4-
artifactVersion: v2.19.0
4+
artifactVersion: v2.20.0

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 2.20.0
2+
リリース日時 2022-11-24 13:02:43
3+
対象差分
4+
https://github.com/freee/freee-api-schema/releases/tag/v0.0.106
5+
16
## 2.19.0
27
リリース日時 2022-11-17 09:08:08
38
対象差分

README_auto-generated.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,6 @@ Class | Method | HTTP request | Description
366366
- [PartnerUpdateParamsInvoicePaymentTermAttributes](docs/Model/PartnerUpdateParamsInvoicePaymentTermAttributes.md)
367367
- [PartnerUpdateParamsPaymentTermAttributes](docs/Model/PartnerUpdateParamsPaymentTermAttributes.md)
368368
- [PartnersResponse](docs/Model/PartnersResponse.md)
369-
- [PartnersResponseAddressAttributes](docs/Model/PartnersResponseAddressAttributes.md)
370369
- [PartnersResponsePartners](docs/Model/PartnersResponsePartners.md)
371370
- [PaymentParams](docs/Model/PaymentParams.md)
372371
- [PaymentRequestActionCreateParams](docs/Model/PaymentRequestActionCreateParams.md)
@@ -529,5 +528,5 @@ vendor/bin/phpunit
529528
This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
530529

531530
- API version: `v1.0`
532-
- Package version: `v2.19.0`
531+
- Package version: `v2.20.0`
533532
- Build package: `org.openapitools.codegen.languages.PhpClientCodegen`

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "freee/freee-accounting-sdk",
3-
"version": "v2.19.0",
3+
"version": "v2.20.0",
44
"description": "Accounting freee PHP SDK",
55
"keywords": [
66
"openapitools",

docs/Model/PartnerResponsePartnerAddressAttributes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**prefecture_codes** | **int** | 都道府県コード(-1: 設定しない、0:北海道、1:青森、2:岩手、3:宮城、4:秋田、5:山形、6:福島、7:茨城、8:栃木、9:群馬、10:埼玉、11:千葉、12:東京、13:神奈川、14:新潟、15:富山、16:石川、17:福井、18:山梨、19:長野、20:岐阜、21:静岡、22:愛知、23:三重、24:滋賀、25:京都、26:大阪、27:兵庫、28:奈良、29:和歌山、30:鳥取、31:島根、32:岡山、33:広島、34:山口、35:徳島、36:香川、37:愛媛、38:高知、39:福岡、40:佐賀、41:長崎、42:熊本、43:大分、44:宮崎、45:鹿児島、46:沖縄 | [optional]
7+
**prefecture_code** | **int** | 都道府県コード(-1: 設定しない、0:北海道、1:青森、2:岩手、3:宮城、4:秋田、5:山形、6:福島、7:茨城、8:栃木、9:群馬、10:埼玉、11:千葉、12:東京、13:神奈川、14:新潟、15:富山、16:石川、17:福井、18:山梨、19:長野、20:岐阜、21:静岡、22:愛知、23:三重、24:滋賀、25:京都、26:大阪、27:兵庫、28:奈良、29:和歌山、30:鳥取、31:島根、32:岡山、33:広島、34:山口、35:徳島、36:香川、37:愛媛、38:高知、39:福岡、40:佐賀、41:長崎、42:熊本、43:大分、44:宮崎、45:鹿児島、46:沖縄 | [optional]
88
**street_name1** | **string** | 市区町村・番地 | [optional]
99
**street_name2** | **string** | 建物名・部屋番号など | [optional]
1010
**zipcode** | **string** | 郵便番号 | [optional]

docs/Model/PartnersResponseAddressAttributes.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

docs/Model/PartnersResponsePartners.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**address_attributes** | [**\Freee\Accounting\Model\PartnersResponseAddressAttributes**](PartnersResponseAddressAttributes.md) | | [optional]
7+
**address_attributes** | [**\Freee\Accounting\Model\PartnerResponsePartnerAddressAttributes**](PartnerResponsePartnerAddressAttributes.md) | | [optional]
88
**available** | **bool** | 取引先の使用設定(true: 使用する、false: 使用しない) <br> <ul> <li> 本APIでpartnerを作成した場合はtrueになります。 </li> <li> falseにする場合はWeb画面から変更できます。 </li> <li> trueの場合、Web画面での取引登録時などに入力候補として表示されます。 </li> <li> falseの場合、取引先自体は削除せず、Web画面での取引登録時などに入力候補として表示されません。ただし取引(収入/支出)の作成APIなどでfalseの取引先をパラメータに指定すれば、取引などにfalseの取引先を設定できます。 </li> </ul> |
99
**code** | **string** | 取引先コード |
1010
**company_id** | **int** | 事業所ID |

lib/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class Configuration
9090
*
9191
* @var string
9292
*/
93-
protected $userAgent = 'OpenAPI-Generator/v2.19.0/PHP';
93+
protected $userAgent = 'OpenAPI-Generator/v2.20.0/PHP';
9494

9595
/**
9696
* Debug switch (default set to false)
@@ -399,7 +399,7 @@ public static function toDebugReport()
399399
$report .= ' OS: ' . php_uname() . PHP_EOL;
400400
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
401401
$report .= ' The version of the OpenAPI document: v1.0' . PHP_EOL;
402-
$report .= ' SDK Package Version: v2.19.0' . PHP_EOL;
402+
$report .= ' SDK Package Version: v2.20.0' . PHP_EOL;
403403
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
404404

405405
return $report;

lib/Model/PartnerResponsePartnerAddressAttributes.php

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class PartnerResponsePartnerAddressAttributes implements ModelInterface, ArrayAc
5959
* @var string[]
6060
*/
6161
protected static $openAPITypes = [
62-
'prefecture_codes' => 'int',
62+
'prefecture_code' => 'int',
6363
'street_name1' => 'string',
6464
'street_name2' => 'string',
6565
'zipcode' => 'string'
@@ -73,7 +73,7 @@ class PartnerResponsePartnerAddressAttributes implements ModelInterface, ArrayAc
7373
* @psalm-var array<string, string|null>
7474
*/
7575
protected static $openAPIFormats = [
76-
'prefecture_codes' => null,
76+
'prefecture_code' => null,
7777
'street_name1' => null,
7878
'street_name2' => null,
7979
'zipcode' => null
@@ -106,7 +106,7 @@ public static function openAPIFormats()
106106
* @var string[]
107107
*/
108108
protected static $attributeMap = [
109-
'prefecture_codes' => 'prefecture_codes',
109+
'prefecture_code' => 'prefecture_code',
110110
'street_name1' => 'street_name1',
111111
'street_name2' => 'street_name2',
112112
'zipcode' => 'zipcode'
@@ -118,7 +118,7 @@ public static function openAPIFormats()
118118
* @var string[]
119119
*/
120120
protected static $setters = [
121-
'prefecture_codes' => 'setPrefectureCodes',
121+
'prefecture_code' => 'setPrefectureCode',
122122
'street_name1' => 'setStreetName1',
123123
'street_name2' => 'setStreetName2',
124124
'zipcode' => 'setZipcode'
@@ -130,7 +130,7 @@ public static function openAPIFormats()
130130
* @var string[]
131131
*/
132132
protected static $getters = [
133-
'prefecture_codes' => 'getPrefectureCodes',
133+
'prefecture_code' => 'getPrefectureCode',
134134
'street_name1' => 'getStreetName1',
135135
'street_name2' => 'getStreetName2',
136136
'zipcode' => 'getZipcode'
@@ -193,7 +193,7 @@ public function getModelName()
193193
*/
194194
public function __construct(array $data = null)
195195
{
196-
$this->container['prefecture_codes'] = $data['prefecture_codes'] ?? null;
196+
$this->container['prefecture_code'] = $data['prefecture_code'] ?? null;
197197
$this->container['street_name1'] = $data['street_name1'] ?? null;
198198
$this->container['street_name2'] = $data['street_name2'] ?? null;
199199
$this->container['zipcode'] = $data['zipcode'] ?? null;
@@ -208,12 +208,12 @@ public function listInvalidProperties()
208208
{
209209
$invalidProperties = [];
210210

211-
if (!is_null($this->container['prefecture_codes']) && ($this->container['prefecture_codes'] > 46)) {
212-
$invalidProperties[] = "invalid value for 'prefecture_codes', must be smaller than or equal to 46.";
211+
if (!is_null($this->container['prefecture_code']) && ($this->container['prefecture_code'] > 46)) {
212+
$invalidProperties[] = "invalid value for 'prefecture_code', must be smaller than or equal to 46.";
213213
}
214214

215-
if (!is_null($this->container['prefecture_codes']) && ($this->container['prefecture_codes'] < -1)) {
216-
$invalidProperties[] = "invalid value for 'prefecture_codes', must be bigger than or equal to -1.";
215+
if (!is_null($this->container['prefecture_code']) && ($this->container['prefecture_code'] < -1)) {
216+
$invalidProperties[] = "invalid value for 'prefecture_code', must be bigger than or equal to -1.";
217217
}
218218

219219
return $invalidProperties;
@@ -232,33 +232,33 @@ public function valid()
232232

233233

234234
/**
235-
* Gets prefecture_codes
235+
* Gets prefecture_code
236236
*
237237
* @return int|null
238238
*/
239-
public function getPrefectureCodes()
239+
public function getPrefectureCode()
240240
{
241-
return $this->container['prefecture_codes'];
241+
return $this->container['prefecture_code'];
242242
}
243243

244244
/**
245-
* Sets prefecture_codes
245+
* Sets prefecture_code
246246
*
247-
* @param int|null $prefecture_codes 都道府県コード(-1: 設定しない、0:北海道、1:青森、2:岩手、3:宮城、4:秋田、5:山形、6:福島、7:茨城、8:栃木、9:群馬、10:埼玉、11:千葉、12:東京、13:神奈川、14:新潟、15:富山、16:石川、17:福井、18:山梨、19:長野、20:岐阜、21:静岡、22:愛知、23:三重、24:滋賀、25:京都、26:大阪、27:兵庫、28:奈良、29:和歌山、30:鳥取、31:島根、32:岡山、33:広島、34:山口、35:徳島、36:香川、37:愛媛、38:高知、39:福岡、40:佐賀、41:長崎、42:熊本、43:大分、44:宮崎、45:鹿児島、46:沖縄
247+
* @param int|null $prefecture_code 都道府県コード(-1: 設定しない、0:北海道、1:青森、2:岩手、3:宮城、4:秋田、5:山形、6:福島、7:茨城、8:栃木、9:群馬、10:埼玉、11:千葉、12:東京、13:神奈川、14:新潟、15:富山、16:石川、17:福井、18:山梨、19:長野、20:岐阜、21:静岡、22:愛知、23:三重、24:滋賀、25:京都、26:大阪、27:兵庫、28:奈良、29:和歌山、30:鳥取、31:島根、32:岡山、33:広島、34:山口、35:徳島、36:香川、37:愛媛、38:高知、39:福岡、40:佐賀、41:長崎、42:熊本、43:大分、44:宮崎、45:鹿児島、46:沖縄
248248
*
249249
* @return self
250250
*/
251-
public function setPrefectureCodes($prefecture_codes)
251+
public function setPrefectureCode($prefecture_code)
252252
{
253253

254-
if (!is_null($prefecture_codes) && ($prefecture_codes > 46)) {
255-
throw new \InvalidArgumentException('invalid value for $prefecture_codes when calling PartnerResponsePartnerAddressAttributes., must be smaller than or equal to 46.');
254+
if (!is_null($prefecture_code) && ($prefecture_code > 46)) {
255+
throw new \InvalidArgumentException('invalid value for $prefecture_code when calling PartnerResponsePartnerAddressAttributes., must be smaller than or equal to 46.');
256256
}
257-
if (!is_null($prefecture_codes) && ($prefecture_codes < -1)) {
258-
throw new \InvalidArgumentException('invalid value for $prefecture_codes when calling PartnerResponsePartnerAddressAttributes., must be bigger than or equal to -1.');
257+
if (!is_null($prefecture_code) && ($prefecture_code < -1)) {
258+
throw new \InvalidArgumentException('invalid value for $prefecture_code when calling PartnerResponsePartnerAddressAttributes., must be bigger than or equal to -1.');
259259
}
260260

261-
$this->container['prefecture_codes'] = $prefecture_codes;
261+
$this->container['prefecture_code'] = $prefecture_code;
262262

263263
return $this;
264264
}

0 commit comments

Comments
 (0)