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

Commit

Permalink
Merge pull request #83 from freee/auto-generated
Browse files Browse the repository at this point in the history
2.20.0
  • Loading branch information
deraru authored Nov 24, 2022
2 parents b6f7674 + 6cf4c42 commit 37bffe7
Show file tree
Hide file tree
Showing 14 changed files with 38 additions and 592 deletions.
3 changes: 0 additions & 3 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ docs/Model/PartnerUpdateParams.md
docs/Model/PartnerUpdateParamsInvoicePaymentTermAttributes.md
docs/Model/PartnerUpdateParamsPaymentTermAttributes.md
docs/Model/PartnersResponse.md
docs/Model/PartnersResponseAddressAttributes.md
docs/Model/PartnersResponsePartners.md
docs/Model/PaymentParams.md
docs/Model/PaymentRequestActionCreateParams.md
Expand Down Expand Up @@ -501,7 +500,6 @@ lib/Model/PartnerUpdateParams.php
lib/Model/PartnerUpdateParamsInvoicePaymentTermAttributes.php
lib/Model/PartnerUpdateParamsPaymentTermAttributes.php
lib/Model/PartnersResponse.php
lib/Model/PartnersResponseAddressAttributes.php
lib/Model/PartnersResponsePartners.php
lib/Model/PaymentParams.php
lib/Model/PaymentRequestActionCreateParams.php
Expand Down Expand Up @@ -815,7 +813,6 @@ test/Model/PartnerResponseTest.php
test/Model/PartnerUpdateParamsInvoicePaymentTermAttributesTest.php
test/Model/PartnerUpdateParamsPaymentTermAttributesTest.php
test/Model/PartnerUpdateParamsTest.php
test/Model/PartnersResponseAddressAttributesTest.php
test/Model/PartnersResponsePartnersTest.php
test/Model/PartnersResponseTest.php
test/Model/PaymentParamsTest.php
Expand Down
2 changes: 1 addition & 1 deletion .openapi-generator/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
invokerPackage: Freee\Accounting
gitUserId: freee
gitRepoId: freee-accounting-sdk-php
artifactVersion: v2.19.0
artifactVersion: v2.20.0
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 2.20.0
リリース日時 2022-11-24 13:02:43
対象差分
https://github.com/freee/freee-api-schema/releases/tag/v0.0.106

## 2.19.0
リリース日時 2022-11-17 09:08:08
対象差分
Expand Down
3 changes: 1 addition & 2 deletions README_auto-generated.md
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,6 @@ Class | Method | HTTP request | Description
- [PartnerUpdateParamsInvoicePaymentTermAttributes](docs/Model/PartnerUpdateParamsInvoicePaymentTermAttributes.md)
- [PartnerUpdateParamsPaymentTermAttributes](docs/Model/PartnerUpdateParamsPaymentTermAttributes.md)
- [PartnersResponse](docs/Model/PartnersResponse.md)
- [PartnersResponseAddressAttributes](docs/Model/PartnersResponseAddressAttributes.md)
- [PartnersResponsePartners](docs/Model/PartnersResponsePartners.md)
- [PaymentParams](docs/Model/PaymentParams.md)
- [PaymentRequestActionCreateParams](docs/Model/PaymentRequestActionCreateParams.md)
Expand Down Expand Up @@ -529,5 +528,5 @@ vendor/bin/phpunit
This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: `v1.0`
- Package version: `v2.19.0`
- Package version: `v2.20.0`
- Build package: `org.openapitools.codegen.languages.PhpClientCodegen`
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "freee/freee-accounting-sdk",
"version": "v2.19.0",
"version": "v2.20.0",
"description": "Accounting freee PHP SDK",
"keywords": [
"openapitools",
Expand Down
2 changes: 1 addition & 1 deletion docs/Model/PartnerResponsePartnerAddressAttributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**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]
**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]
**street_name1** | **string** | 市区町村・番地 | [optional]
**street_name2** | **string** | 建物名・部屋番号など | [optional]
**zipcode** | **string** | 郵便番号 | [optional]
Expand Down
12 changes: 0 additions & 12 deletions docs/Model/PartnersResponseAddressAttributes.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/Model/PartnersResponsePartners.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**address_attributes** | [**\Freee\Accounting\Model\PartnersResponseAddressAttributes**](PartnersResponseAddressAttributes.md) | | [optional]
**address_attributes** | [**\Freee\Accounting\Model\PartnerResponsePartnerAddressAttributes**](PartnerResponsePartnerAddressAttributes.md) | | [optional]
**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> |
**code** | **string** | 取引先コード |
**company_id** | **int** | 事業所ID |
Expand Down
4 changes: 2 additions & 2 deletions lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class Configuration
*
* @var string
*/
protected $userAgent = 'OpenAPI-Generator/v2.19.0/PHP';
protected $userAgent = 'OpenAPI-Generator/v2.20.0/PHP';

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

return $report;
Expand Down
42 changes: 21 additions & 21 deletions lib/Model/PartnerResponsePartnerAddressAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class PartnerResponsePartnerAddressAttributes implements ModelInterface, ArrayAc
* @var string[]
*/
protected static $openAPITypes = [
'prefecture_codes' => 'int',
'prefecture_code' => 'int',
'street_name1' => 'string',
'street_name2' => 'string',
'zipcode' => 'string'
Expand All @@ -73,7 +73,7 @@ class PartnerResponsePartnerAddressAttributes implements ModelInterface, ArrayAc
* @psalm-var array<string, string|null>
*/
protected static $openAPIFormats = [
'prefecture_codes' => null,
'prefecture_code' => null,
'street_name1' => null,
'street_name2' => null,
'zipcode' => null
Expand Down Expand Up @@ -106,7 +106,7 @@ public static function openAPIFormats()
* @var string[]
*/
protected static $attributeMap = [
'prefecture_codes' => 'prefecture_codes',
'prefecture_code' => 'prefecture_code',
'street_name1' => 'street_name1',
'street_name2' => 'street_name2',
'zipcode' => 'zipcode'
Expand All @@ -118,7 +118,7 @@ public static function openAPIFormats()
* @var string[]
*/
protected static $setters = [
'prefecture_codes' => 'setPrefectureCodes',
'prefecture_code' => 'setPrefectureCode',
'street_name1' => 'setStreetName1',
'street_name2' => 'setStreetName2',
'zipcode' => 'setZipcode'
Expand All @@ -130,7 +130,7 @@ public static function openAPIFormats()
* @var string[]
*/
protected static $getters = [
'prefecture_codes' => 'getPrefectureCodes',
'prefecture_code' => 'getPrefectureCode',
'street_name1' => 'getStreetName1',
'street_name2' => 'getStreetName2',
'zipcode' => 'getZipcode'
Expand Down Expand Up @@ -193,7 +193,7 @@ public function getModelName()
*/
public function __construct(array $data = null)
{
$this->container['prefecture_codes'] = $data['prefecture_codes'] ?? null;
$this->container['prefecture_code'] = $data['prefecture_code'] ?? null;
$this->container['street_name1'] = $data['street_name1'] ?? null;
$this->container['street_name2'] = $data['street_name2'] ?? null;
$this->container['zipcode'] = $data['zipcode'] ?? null;
Expand All @@ -208,12 +208,12 @@ public function listInvalidProperties()
{
$invalidProperties = [];

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

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

return $invalidProperties;
Expand All @@ -232,33 +232,33 @@ public function valid()


/**
* Gets prefecture_codes
* Gets prefecture_code
*
* @return int|null
*/
public function getPrefectureCodes()
public function getPrefectureCode()
{
return $this->container['prefecture_codes'];
return $this->container['prefecture_code'];
}

/**
* Sets prefecture_codes
* Sets prefecture_code
*
* @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:沖縄
* @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:沖縄
*
* @return self
*/
public function setPrefectureCodes($prefecture_codes)
public function setPrefectureCode($prefecture_code)
{

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

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

return $this;
}
Expand Down
Loading

0 comments on commit 37bffe7

Please sign in to comment.