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

Commit 810dbbc

Browse files
authored
Merge pull request #74 from freee/auto-generated
2.13.0
2 parents 0158f36 + 7b4729b commit 810dbbc

15 files changed

+1124
-57
lines changed

.openapi-generator/FILES

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ docs/Model/PartnerResponsePartnerInvoicePaymentTermAttributes.md
178178
docs/Model/PartnerResponsePartnerPartnerBankAccountAttributes.md
179179
docs/Model/PartnerResponsePartnerPaymentTermAttributes.md
180180
docs/Model/PartnerUpdateParams.md
181+
docs/Model/PartnerUpdateParamsInvoicePaymentTermAttributes.md
182+
docs/Model/PartnerUpdateParamsPaymentTermAttributes.md
181183
docs/Model/PartnersResponse.md
182184
docs/Model/PartnersResponseAddressAttributes.md
183185
docs/Model/PartnersResponsePartners.md
@@ -488,6 +490,8 @@ lib/Model/PartnerResponsePartnerInvoicePaymentTermAttributes.php
488490
lib/Model/PartnerResponsePartnerPartnerBankAccountAttributes.php
489491
lib/Model/PartnerResponsePartnerPaymentTermAttributes.php
490492
lib/Model/PartnerUpdateParams.php
493+
lib/Model/PartnerUpdateParamsInvoicePaymentTermAttributes.php
494+
lib/Model/PartnerUpdateParamsPaymentTermAttributes.php
491495
lib/Model/PartnersResponse.php
492496
lib/Model/PartnersResponseAddressAttributes.php
493497
lib/Model/PartnersResponsePartners.php
@@ -794,6 +798,8 @@ test/Model/PartnerResponsePartnerPartnerBankAccountAttributesTest.php
794798
test/Model/PartnerResponsePartnerPaymentTermAttributesTest.php
795799
test/Model/PartnerResponsePartnerTest.php
796800
test/Model/PartnerResponseTest.php
801+
test/Model/PartnerUpdateParamsInvoicePaymentTermAttributesTest.php
802+
test/Model/PartnerUpdateParamsPaymentTermAttributesTest.php
797803
test/Model/PartnerUpdateParamsTest.php
798804
test/Model/PartnersResponseAddressAttributesTest.php
799805
test/Model/PartnersResponsePartnersTest.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.12.0
4+
artifactVersion: v2.13.0

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 2.13.0
2+
リリース日時 2022-09-08 11:00:00
3+
対象差分
4+
https://github.com/freee/freee-api-schema/releases/tag/v0.0.98
5+
16
## 2.12.0
27
リリース日時 2022-08-18 10:01:11
38
対象差分

README_auto-generated.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,8 @@ Class | Method | HTTP request | Description
361361
- [PartnerResponsePartnerPartnerBankAccountAttributes](docs/Model/PartnerResponsePartnerPartnerBankAccountAttributes.md)
362362
- [PartnerResponsePartnerPaymentTermAttributes](docs/Model/PartnerResponsePartnerPaymentTermAttributes.md)
363363
- [PartnerUpdateParams](docs/Model/PartnerUpdateParams.md)
364+
- [PartnerUpdateParamsInvoicePaymentTermAttributes](docs/Model/PartnerUpdateParamsInvoicePaymentTermAttributes.md)
365+
- [PartnerUpdateParamsPaymentTermAttributes](docs/Model/PartnerUpdateParamsPaymentTermAttributes.md)
364366
- [PartnersResponse](docs/Model/PartnersResponse.md)
365367
- [PartnersResponseAddressAttributes](docs/Model/PartnersResponseAddressAttributes.md)
366368
- [PartnersResponsePartners](docs/Model/PartnersResponsePartners.md)
@@ -521,5 +523,5 @@ vendor/bin/phpunit
521523
This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
522524

523525
- API version: `v1.0`
524-
- Package version: `v2.12.0`
526+
- Package version: `v2.13.0`
525527
- 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.12.0",
3+
"version": "v2.13.0",
44
"description": "Accounting freee PHP SDK",
55
"keywords": [
66
"openapitools",

docs/Model/PartnerUpdateParams.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ Name | Type | Description | Notes
1010
**country_code** | **string** | 地域(JP: 国内、ZZ:国外)、指定しない場合JPになります。 | [optional]
1111
**default_title** | **string** | 敬称(御中、様、(空白)の3つから選択) | [optional]
1212
**email** | **string** | 担当者 メールアドレス (255文字以内) | [optional]
13-
**invoice_payment_term_attributes** | [**\Freee\Accounting\Model\PartnerCreateParamsInvoicePaymentTermAttributes**](PartnerCreateParamsInvoicePaymentTermAttributes.md) | | [optional]
13+
**invoice_payment_term_attributes** | [**\Freee\Accounting\Model\PartnerUpdateParamsInvoicePaymentTermAttributes**](PartnerUpdateParamsInvoicePaymentTermAttributes.md) | | [optional]
1414
**long_name** | **string** | 正式名称(255文字以内) | [optional]
1515
**name** | **string** | 取引先名 (255文字以内) |
1616
**name_kana** | **string** | カナ名称(255文字以内) | [optional]
1717
**org_code** | **int** | 事業所種別(null: 未設定、1: 法人、2: 個人) | [optional]
1818
**partner_bank_account_attributes** | [**\Freee\Accounting\Model\PartnerCreateParamsPartnerBankAccountAttributes**](PartnerCreateParamsPartnerBankAccountAttributes.md) | | [optional]
1919
**partner_doc_setting_attributes** | [**\Freee\Accounting\Model\PartnerCreateParamsPartnerDocSettingAttributes**](PartnerCreateParamsPartnerDocSettingAttributes.md) | | [optional]
2020
**payer_walletable_id** | **int** | 振込元口座ID(一括振込ファイル用):(walletableのtypeが'bank_account'のidのみ指定できます。また、未設定にする場合は、nullを指定してください。) | [optional]
21-
**payment_term_attributes** | [**\Freee\Accounting\Model\PartnerCreateParamsPaymentTermAttributes**](PartnerCreateParamsPaymentTermAttributes.md) | | [optional]
21+
**payment_term_attributes** | [**\Freee\Accounting\Model\PartnerUpdateParamsPaymentTermAttributes**](PartnerUpdateParamsPaymentTermAttributes.md) | | [optional]
2222
**phone** | **string** | 電話番号 | [optional]
2323
**shortcut1** | **string** | ショートカット1 (255文字以内) | [optional]
2424
**shortcut2** | **string** | ショートカット2 (255文字以内) | [optional]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# # PartnerUpdateParamsInvoicePaymentTermAttributes
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**additional_months** | **int** | 入金月 | [optional]
8+
**cutoff_day** | **int** | 締め日(29, 30, 31日の末日を指定する場合は、32を指定してください。) | [optional]
9+
**fixed_day** | **int** | 入金日(29, 30, 31日の末日を指定する場合は、32を指定してください。) | [optional]
10+
11+
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# # PartnerUpdateParamsPaymentTermAttributes
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**additional_months** | **int** | 支払月 | [optional]
8+
**cutoff_day** | **int** | 締め日(29, 30, 31日の末日を指定する場合は、32を指定してください。) | [optional]
9+
**fixed_day** | **int** | 支払日(29, 30, 31日の末日を指定する場合は、32を指定してください。) | [optional]
10+
11+
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)

lib/Api/PaymentRequestsApi.php

Lines changed: 4 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public function getConfig()
124124
*
125125
* @throws \Freee\Accounting\ApiException on non-2xx response
126126
* @throws \InvalidArgumentException
127-
* @return \Freee\Accounting\Model\PaymentRequestResponse|\Freee\Accounting\Model\BadRequestError|\Freee\Accounting\Model\UnauthorizedError|\Freee\Accounting\Model\ForbiddenError|\Freee\Accounting\Model\BadRequestNotFoundError|\Freee\Accounting\Model\InternalServerError
127+
* @return \Freee\Accounting\Model\PaymentRequestResponse|\Freee\Accounting\Model\BadRequestError|\Freee\Accounting\Model\UnauthorizedError|\Freee\Accounting\Model\ForbiddenError|\Freee\Accounting\Model\InternalServerError
128128
*/
129129
public function createPaymentRequest($payment_request_create_params = null)
130130
{
@@ -141,7 +141,7 @@ public function createPaymentRequest($payment_request_create_params = null)
141141
*
142142
* @throws \Freee\Accounting\ApiException on non-2xx response
143143
* @throws \InvalidArgumentException
144-
* @return array of \Freee\Accounting\Model\PaymentRequestResponse|\Freee\Accounting\Model\BadRequestError|\Freee\Accounting\Model\UnauthorizedError|\Freee\Accounting\Model\ForbiddenError|\Freee\Accounting\Model\BadRequestNotFoundError|\Freee\Accounting\Model\InternalServerError, HTTP status code, HTTP response headers (array of strings)
144+
* @return array of \Freee\Accounting\Model\PaymentRequestResponse|\Freee\Accounting\Model\BadRequestError|\Freee\Accounting\Model\UnauthorizedError|\Freee\Accounting\Model\ForbiddenError|\Freee\Accounting\Model\InternalServerError, HTTP status code, HTTP response headers (array of strings)
145145
*/
146146
public function createPaymentRequestWithHttpInfo($payment_request_create_params = null)
147147
{
@@ -231,18 +231,6 @@ public function createPaymentRequestWithHttpInfo($payment_request_create_params
231231
$response->getStatusCode(),
232232
$response->getHeaders()
233233
];
234-
case 404:
235-
if ('\Freee\Accounting\Model\BadRequestNotFoundError' === '\SplFileObject') {
236-
$content = $response->getBody(); //stream goes to serializer
237-
} else {
238-
$content = (string) $response->getBody();
239-
}
240-
241-
return [
242-
ObjectSerializer::deserialize($content, '\Freee\Accounting\Model\BadRequestNotFoundError', []),
243-
$response->getStatusCode(),
244-
$response->getHeaders()
245-
];
246234
case 500:
247235
if ('\Freee\Accounting\Model\InternalServerError' === '\SplFileObject') {
248236
$content = $response->getBody(); //stream goes to serializer
@@ -304,14 +292,6 @@ public function createPaymentRequestWithHttpInfo($payment_request_create_params
304292
);
305293
$e->setResponseObject($data);
306294
break;
307-
case 404:
308-
$data = ObjectSerializer::deserialize(
309-
$e->getResponseBody(),
310-
'\Freee\Accounting\Model\BadRequestNotFoundError',
311-
$e->getResponseHeaders()
312-
);
313-
$e->setResponseObject($data);
314-
break;
315295
case 500:
316296
$data = ObjectSerializer::deserialize(
317297
$e->getResponseBody(),
@@ -1227,7 +1207,7 @@ public function getPaymentRequestRequest($id, $company_id)
12271207
*
12281208
* @throws \Freee\Accounting\ApiException on non-2xx response
12291209
* @throws \InvalidArgumentException
1230-
* @return \Freee\Accounting\Model\PaymentRequestsIndexResponse|\Freee\Accounting\Model\BadRequestError|\Freee\Accounting\Model\UnauthorizedError|\Freee\Accounting\Model\ForbiddenError|\Freee\Accounting\Model\BadRequestNotFoundError|\Freee\Accounting\Model\InternalServerError
1210+
* @return \Freee\Accounting\Model\PaymentRequestsIndexResponse|\Freee\Accounting\Model\BadRequestError|\Freee\Accounting\Model\UnauthorizedError|\Freee\Accounting\Model\ForbiddenError|\Freee\Accounting\Model\InternalServerError
12311211
*/
12321212
public function getPaymentRequests($company_id, $status = null, $start_application_date = null, $end_application_date = null, $start_issue_date = null, $end_issue_date = null, $application_number = null, $title = null, $applicant_id = null, $approver_id = null, $min_amount = null, $max_amount = null, $partner_id = null, $partner_code = null, $payment_method = null, $start_payment_date = null, $end_payment_date = null, $document_code = null, $offset = null, $limit = null)
12331213
{
@@ -1263,7 +1243,7 @@ public function getPaymentRequests($company_id, $status = null, $start_applicati
12631243
*
12641244
* @throws \Freee\Accounting\ApiException on non-2xx response
12651245
* @throws \InvalidArgumentException
1266-
* @return array of \Freee\Accounting\Model\PaymentRequestsIndexResponse|\Freee\Accounting\Model\BadRequestError|\Freee\Accounting\Model\UnauthorizedError|\Freee\Accounting\Model\ForbiddenError|\Freee\Accounting\Model\BadRequestNotFoundError|\Freee\Accounting\Model\InternalServerError, HTTP status code, HTTP response headers (array of strings)
1246+
* @return array of \Freee\Accounting\Model\PaymentRequestsIndexResponse|\Freee\Accounting\Model\BadRequestError|\Freee\Accounting\Model\UnauthorizedError|\Freee\Accounting\Model\ForbiddenError|\Freee\Accounting\Model\InternalServerError, HTTP status code, HTTP response headers (array of strings)
12671247
*/
12681248
public function getPaymentRequestsWithHttpInfo($company_id, $status = null, $start_application_date = null, $end_application_date = null, $start_issue_date = null, $end_issue_date = null, $application_number = null, $title = null, $applicant_id = null, $approver_id = null, $min_amount = null, $max_amount = null, $partner_id = null, $partner_code = null, $payment_method = null, $start_payment_date = null, $end_payment_date = null, $document_code = null, $offset = null, $limit = null)
12691249
{
@@ -1353,18 +1333,6 @@ public function getPaymentRequestsWithHttpInfo($company_id, $status = null, $sta
13531333
$response->getStatusCode(),
13541334
$response->getHeaders()
13551335
];
1356-
case 404:
1357-
if ('\Freee\Accounting\Model\BadRequestNotFoundError' === '\SplFileObject') {
1358-
$content = $response->getBody(); //stream goes to serializer
1359-
} else {
1360-
$content = (string) $response->getBody();
1361-
}
1362-
1363-
return [
1364-
ObjectSerializer::deserialize($content, '\Freee\Accounting\Model\BadRequestNotFoundError', []),
1365-
$response->getStatusCode(),
1366-
$response->getHeaders()
1367-
];
13681336
case 500:
13691337
if ('\Freee\Accounting\Model\InternalServerError' === '\SplFileObject') {
13701338
$content = $response->getBody(); //stream goes to serializer
@@ -1426,14 +1394,6 @@ public function getPaymentRequestsWithHttpInfo($company_id, $status = null, $sta
14261394
);
14271395
$e->setResponseObject($data);
14281396
break;
1429-
case 404:
1430-
$data = ObjectSerializer::deserialize(
1431-
$e->getResponseBody(),
1432-
'\Freee\Accounting\Model\BadRequestNotFoundError',
1433-
$e->getResponseHeaders()
1434-
);
1435-
$e->setResponseObject($data);
1436-
break;
14371397
case 500:
14381398
$data = ObjectSerializer::deserialize(
14391399
$e->getResponseBody(),

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.12.0/PHP';
93+
protected $userAgent = 'OpenAPI-Generator/v2.13.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.12.0' . PHP_EOL;
402+
$report .= ' SDK Package Version: v2.13.0' . PHP_EOL;
403403
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
404404

405405
return $report;

0 commit comments

Comments
 (0)