diff --git a/.openapi-generator/config.yml b/.openapi-generator/config.yml index 7131494c..ad72b919 100644 --- a/.openapi-generator/config.yml +++ b/.openapi-generator/config.yml @@ -1,4 +1,4 @@ invokerPackage: Freee\Accounting gitUserId: freee gitRepoId: freee-accounting-sdk-php -artifactVersion: v2.25.0 +artifactVersion: v2.26.0 diff --git a/CHANGELOG.md b/CHANGELOG.md index 5630f19a..0cda330e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 2.26.0 +リリース日時 2023-03-02 07:49:17 +対象差分 +https://github.com/freee/freee-api-schema/releases/tag/v0.0.112 + ## 2.25.0 リリース日時 2023-02-24 12:53:37 対象差分 diff --git a/README_auto-generated.md b/README_auto-generated.md index d7b174d0..44576d12 100644 --- a/README_auto-generated.md +++ b/README_auto-generated.md @@ -545,5 +545,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.25.0` + - Package version: `v2.26.0` - Build package: `org.openapitools.codegen.languages.PhpClientCodegen` diff --git a/composer.json b/composer.json index 70f4b21e..4ff4bff8 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "freee/freee-accounting-sdk", - "version": "v2.25.0", + "version": "v2.26.0", "description": "Accounting freee PHP SDK", "keywords": [ "openapitools", diff --git a/docs/Model/PartnerCreateParams.md b/docs/Model/PartnerCreateParams.md index 615ce889..a1428bf2 100644 --- a/docs/Model/PartnerCreateParams.md +++ b/docs/Model/PartnerCreateParams.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **default_title** | **string** | 敬称(御中、様、(空白)の3つから選択) | [optional] **email** | **string** | 担当者 メールアドレス (255文字以内) | [optional] **invoice_payment_term_attributes** | [**\Freee\Accounting\Model\PartnerCreateParamsInvoicePaymentTermAttributes**](PartnerCreateParamsInvoicePaymentTermAttributes.md) | | [optional] +**invoice_registration_number** | **string** | この項目はインボイス制度で利用する項目です。2023年4月頃から利用できる予定です。 インボイス制度適格請求書発行事業者登録番号 - 先頭T数字13桁の固定14桁の文字列 <a target=\"_blank\" href=\"https://www.invoice-kohyo.nta.go.jp/index.html\">国税庁インボイス制度適格請求書発行事業者公表サイト</a> | [optional] **long_name** | **string** | 正式名称(255文字以内) | [optional] **name** | **string** | 取引先名 (255文字以内、重複不可) | **name_kana** | **string** | カナ名称(255文字以内) | [optional] @@ -21,6 +22,7 @@ Name | Type | Description | Notes **payer_walletable_id** | **int** | 振込元口座ID(一括振込ファイル用):(walletableのtypeが'bank_account'のidのみ指定できます。また、未設定にする場合は、nullを指定してください。) | [optional] **payment_term_attributes** | [**\Freee\Accounting\Model\PartnerCreateParamsPaymentTermAttributes**](PartnerCreateParamsPaymentTermAttributes.md) | | [optional] **phone** | **string** | 電話番号 | [optional] +**qualified_invoice_issuer** | **bool** | この項目はインボイス制度で利用する項目です。2023年4月頃から利用できる予定です。 インボイス制度適格請求書発行事業者(true: 対象事業者、false: 非対象事業者) <a target=\"_blank\" href=\"https://www.invoice-kohyo.nta.go.jp/index.html\">国税庁インボイス制度適格請求書発行事業者公表サイト</a> | [optional] [default to false] **shortcut1** | **string** | ショートカット1 (255文字以内) | [optional] **shortcut2** | **string** | ショートカット2 (255文字以内) | [optional] **transfer_fee_handling_side** | **string** | 振込手数料負担(一括振込ファイル用): (振込元(当方): payer, 振込先(先方): payee)、指定しない場合payerになります。 | [optional] diff --git a/docs/Model/PartnerResponsePartner.md b/docs/Model/PartnerResponsePartner.md index 78af6fdf..33d51f31 100644 --- a/docs/Model/PartnerResponsePartner.md +++ b/docs/Model/PartnerResponsePartner.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **email** | **string** | 担当者 メールアドレス | [optional] **id** | **int** | 取引先ID | **invoice_payment_term_attributes** | [**\Freee\Accounting\Model\PartnerResponsePartnerInvoicePaymentTermAttributes**](PartnerResponsePartnerInvoicePaymentTermAttributes.md) | | [optional] +**invoice_registration_number** | **string** | この項目はインボイス制度で利用する項目です。2023年4月頃から利用できる予定です。 インボイス制度適格請求書発行事業者登録番号 - 先頭T数字13桁の固定14桁の文字列 <a target=\"_blank\" href=\"https://www.invoice-kohyo.nta.go.jp/index.html\">国税庁インボイス制度適格請求書発行事業者公表サイト</a> | [optional] **long_name** | **string** | 正式名称(255文字以内) | [optional] **name** | **string** | 取引先名 | **name_kana** | **string** | カナ名称(255文字以内) | [optional] @@ -23,6 +24,7 @@ Name | Type | Description | Notes **payer_walletable_id** | **int** | 振込元口座ID(一括振込ファイル用):(未設定の場合は、nullです。) | [optional] **payment_term_attributes** | [**\Freee\Accounting\Model\PartnerResponsePartnerPaymentTermAttributes**](PartnerResponsePartnerPaymentTermAttributes.md) | | [optional] **phone** | **string** | 電話番号 | [optional] +**qualified_invoice_issuer** | **bool** | この項目はインボイス制度で利用する項目です。2023年4月頃から利用できる予定です。 インボイス制度適格請求書発行事業者(true: 対象事業者、false: 非対象事業者) <a target=\"_blank\" href=\"https://www.invoice-kohyo.nta.go.jp/index.html\">国税庁インボイス制度適格請求書発行事業者公表サイト</a> | [optional] **shortcut1** | **string** | ショートカット1 (255文字以内) | [optional] **shortcut2** | **string** | ショートカット2 (255文字以内) | [optional] **transfer_fee_handling_side** | **string** | 振込手数料負担(一括振込ファイル用): (振込元(当方): payer, 振込先(先方): payee) | [optional] diff --git a/docs/Model/PartnerUpdateParams.md b/docs/Model/PartnerUpdateParams.md index 3e0d14f2..39567890 100644 --- a/docs/Model/PartnerUpdateParams.md +++ b/docs/Model/PartnerUpdateParams.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **default_title** | **string** | 敬称(御中、様、(空白)の3つから選択) | [optional] **email** | **string** | 担当者 メールアドレス (255文字以内) | [optional] **invoice_payment_term_attributes** | [**\Freee\Accounting\Model\PartnerUpdateParamsInvoicePaymentTermAttributes**](PartnerUpdateParamsInvoicePaymentTermAttributes.md) | | [optional] +**invoice_registration_number** | **string** | この項目はインボイス制度で利用する項目です。2023年4月頃から利用できる予定です。 インボイス制度適格請求書発行事業者登録番号 - 先頭T数字13桁の固定14桁の文字列 <a target=\"_blank\" href=\"https://www.invoice-kohyo.nta.go.jp/index.html\">国税庁インボイス制度適格請求書発行事業者公表サイト</a> | [optional] **long_name** | **string** | 正式名称(255文字以内) | [optional] **name** | **string** | 取引先名 (255文字以内、重複不可) | **name_kana** | **string** | カナ名称(255文字以内) | [optional] @@ -20,6 +21,7 @@ Name | Type | Description | Notes **payer_walletable_id** | **int** | 振込元口座ID(一括振込ファイル用):(walletableのtypeが'bank_account'のidのみ指定できます。また、未設定にする場合は、nullを指定してください。) | [optional] **payment_term_attributes** | [**\Freee\Accounting\Model\PartnerUpdateParamsPaymentTermAttributes**](PartnerUpdateParamsPaymentTermAttributes.md) | | [optional] **phone** | **string** | 電話番号 | [optional] +**qualified_invoice_issuer** | **bool** | この項目はインボイス制度で利用する項目です。2023年4月頃から利用できる予定です。 インボイス制度適格請求書発行事業者(true: 対象事業者、false: 非対象事業者) <a target=\"_blank\" href=\"https://www.invoice-kohyo.nta.go.jp/index.html\">国税庁インボイス制度適格請求書発行事業者公表サイト</a> | [optional] **shortcut1** | **string** | ショートカット1 (255文字以内) | [optional] **shortcut2** | **string** | ショートカット2 (255文字以内) | [optional] **transfer_fee_handling_side** | **string** | 振込手数料負担(一括振込ファイル用): (振込元(当方): payer, 振込先(先方): payee)、指定しない場合payerになります。 | [optional] diff --git a/docs/Model/PartnersResponsePartners.md b/docs/Model/PartnersResponsePartners.md index 74c50fca..d58178d9 100644 --- a/docs/Model/PartnersResponsePartners.md +++ b/docs/Model/PartnersResponsePartners.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **default_title** | **string** | 敬称(御中、様、(空白)の3つから選択) | [optional] **email** | **string** | 担当者 メールアドレス | [optional] **id** | **int** | 取引先ID | +**invoice_registration_number** | **string** | この項目はインボイス制度で利用する項目です。2023年4月頃から利用できる予定です。 インボイス制度適格請求書発行事業者登録番号 - 先頭T数字13桁の固定14桁の文字列 <a target=\"_blank\" href=\"https://www.invoice-kohyo.nta.go.jp/index.html\">国税庁インボイス制度適格請求書発行事業者公表サイト</a> | [optional] **long_name** | **string** | 正式名称(255文字以内) | [optional] **name** | **string** | 取引先名 | **name_kana** | **string** | カナ名称(255文字以内) | [optional] @@ -21,6 +22,7 @@ Name | Type | Description | Notes **partner_doc_setting_attributes** | [**\Freee\Accounting\Model\PartnerCreateParamsPartnerDocSettingAttributes**](PartnerCreateParamsPartnerDocSettingAttributes.md) | | [optional] **payer_walletable_id** | **int** | 振込元口座ID(一括振込ファイル用):(未設定の場合は、nullです。) | [optional] **phone** | **string** | 電話番号 | [optional] +**qualified_invoice_issuer** | **bool** | この項目はインボイス制度で利用する項目です。2023年4月頃から利用できる予定です。 インボイス制度適格請求書発行事業者(true: 対象事業者、false: 非対象事業者) <a target=\"_blank\" href=\"https://www.invoice-kohyo.nta.go.jp/index.html\">国税庁インボイス制度適格請求書発行事業者公表サイト</a> | [optional] **shortcut1** | **string** | ショートカット1 (255文字以内) | [optional] **shortcut2** | **string** | ショートカット2 (255文字以内) | [optional] **transfer_fee_handling_side** | **string** | 振込手数料負担(一括振込ファイル用): (振込元(当方): payer, 振込先(先方): payee) | [optional] diff --git a/lib/Configuration.php b/lib/Configuration.php index d75f5679..4ebaa4d3 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -90,7 +90,7 @@ class Configuration * * @var string */ - protected $userAgent = 'OpenAPI-Generator/v2.25.0/PHP'; + protected $userAgent = 'OpenAPI-Generator/v2.26.0/PHP'; /** * Debug switch (default set to false) @@ -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.25.0' . PHP_EOL; + $report .= ' SDK Package Version: v2.26.0' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report; diff --git a/lib/Model/PartnerCreateParams.php b/lib/Model/PartnerCreateParams.php index 39373cef..d51217aa 100644 --- a/lib/Model/PartnerCreateParams.php +++ b/lib/Model/PartnerCreateParams.php @@ -67,6 +67,7 @@ class PartnerCreateParams implements ModelInterface, ArrayAccess, \JsonSerializa 'default_title' => 'string', 'email' => 'string', 'invoice_payment_term_attributes' => '\Freee\Accounting\Model\PartnerCreateParamsInvoicePaymentTermAttributes', + 'invoice_registration_number' => 'string', 'long_name' => 'string', 'name' => 'string', 'name_kana' => 'string', @@ -76,6 +77,7 @@ class PartnerCreateParams implements ModelInterface, ArrayAccess, \JsonSerializa 'payer_walletable_id' => 'int', 'payment_term_attributes' => '\Freee\Accounting\Model\PartnerCreateParamsPaymentTermAttributes', 'phone' => 'string', + 'qualified_invoice_issuer' => 'bool', 'shortcut1' => 'string', 'shortcut2' => 'string', 'transfer_fee_handling_side' => 'string' @@ -97,6 +99,7 @@ class PartnerCreateParams implements ModelInterface, ArrayAccess, \JsonSerializa 'default_title' => null, 'email' => null, 'invoice_payment_term_attributes' => null, + 'invoice_registration_number' => null, 'long_name' => null, 'name' => null, 'name_kana' => null, @@ -106,6 +109,7 @@ class PartnerCreateParams implements ModelInterface, ArrayAccess, \JsonSerializa 'payer_walletable_id' => null, 'payment_term_attributes' => null, 'phone' => null, + 'qualified_invoice_issuer' => null, 'shortcut1' => null, 'shortcut2' => null, 'transfer_fee_handling_side' => null @@ -146,6 +150,7 @@ public static function openAPIFormats() 'default_title' => 'default_title', 'email' => 'email', 'invoice_payment_term_attributes' => 'invoice_payment_term_attributes', + 'invoice_registration_number' => 'invoice_registration_number', 'long_name' => 'long_name', 'name' => 'name', 'name_kana' => 'name_kana', @@ -155,6 +160,7 @@ public static function openAPIFormats() 'payer_walletable_id' => 'payer_walletable_id', 'payment_term_attributes' => 'payment_term_attributes', 'phone' => 'phone', + 'qualified_invoice_issuer' => 'qualified_invoice_issuer', 'shortcut1' => 'shortcut1', 'shortcut2' => 'shortcut2', 'transfer_fee_handling_side' => 'transfer_fee_handling_side' @@ -174,6 +180,7 @@ public static function openAPIFormats() 'default_title' => 'setDefaultTitle', 'email' => 'setEmail', 'invoice_payment_term_attributes' => 'setInvoicePaymentTermAttributes', + 'invoice_registration_number' => 'setInvoiceRegistrationNumber', 'long_name' => 'setLongName', 'name' => 'setName', 'name_kana' => 'setNameKana', @@ -183,6 +190,7 @@ public static function openAPIFormats() 'payer_walletable_id' => 'setPayerWalletableId', 'payment_term_attributes' => 'setPaymentTermAttributes', 'phone' => 'setPhone', + 'qualified_invoice_issuer' => 'setQualifiedInvoiceIssuer', 'shortcut1' => 'setShortcut1', 'shortcut2' => 'setShortcut2', 'transfer_fee_handling_side' => 'setTransferFeeHandlingSide' @@ -202,6 +210,7 @@ public static function openAPIFormats() 'default_title' => 'getDefaultTitle', 'email' => 'getEmail', 'invoice_payment_term_attributes' => 'getInvoicePaymentTermAttributes', + 'invoice_registration_number' => 'getInvoiceRegistrationNumber', 'long_name' => 'getLongName', 'name' => 'getName', 'name_kana' => 'getNameKana', @@ -211,6 +220,7 @@ public static function openAPIFormats() 'payer_walletable_id' => 'getPayerWalletableId', 'payment_term_attributes' => 'getPaymentTermAttributes', 'phone' => 'getPhone', + 'qualified_invoice_issuer' => 'getQualifiedInvoiceIssuer', 'shortcut1' => 'getShortcut1', 'shortcut2' => 'getShortcut2', 'transfer_fee_handling_side' => 'getTransferFeeHandlingSide' @@ -326,6 +336,7 @@ public function __construct(array $data = null) $this->container['default_title'] = $data['default_title'] ?? null; $this->container['email'] = $data['email'] ?? null; $this->container['invoice_payment_term_attributes'] = $data['invoice_payment_term_attributes'] ?? null; + $this->container['invoice_registration_number'] = $data['invoice_registration_number'] ?? null; $this->container['long_name'] = $data['long_name'] ?? null; $this->container['name'] = $data['name'] ?? null; $this->container['name_kana'] = $data['name_kana'] ?? null; @@ -335,6 +346,7 @@ public function __construct(array $data = null) $this->container['payer_walletable_id'] = $data['payer_walletable_id'] ?? null; $this->container['payment_term_attributes'] = $data['payment_term_attributes'] ?? null; $this->container['phone'] = $data['phone'] ?? null; + $this->container['qualified_invoice_issuer'] = $data['qualified_invoice_issuer'] ?? false; $this->container['shortcut1'] = $data['shortcut1'] ?? null; $this->container['shortcut2'] = $data['shortcut2'] ?? null; $this->container['transfer_fee_handling_side'] = $data['transfer_fee_handling_side'] ?? null; @@ -377,6 +389,18 @@ public function listInvalidProperties() $invalidProperties[] = "invalid value for 'email', the character length must be smaller than or equal to 255."; } + if (!is_null($this->container['invoice_registration_number']) && (mb_strlen($this->container['invoice_registration_number']) > 14)) { + $invalidProperties[] = "invalid value for 'invoice_registration_number', the character length must be smaller than or equal to 14."; + } + + if (!is_null($this->container['invoice_registration_number']) && (mb_strlen($this->container['invoice_registration_number']) < 13)) { + $invalidProperties[] = "invalid value for 'invoice_registration_number', the character length must be bigger than or equal to 13."; + } + + if (!is_null($this->container['invoice_registration_number']) && !preg_match("/^T?[1-9][0-9]{12}$/", $this->container['invoice_registration_number'])) { + $invalidProperties[] = "invalid value for 'invoice_registration_number', must be conform to the pattern /^T?[1-9][0-9]{12}$/."; + } + if (!is_null($this->container['long_name']) && (mb_strlen($this->container['long_name']) > 255)) { $invalidProperties[] = "invalid value for 'long_name', the character length must be smaller than or equal to 255."; } @@ -659,6 +683,40 @@ public function setInvoicePaymentTermAttributes($invoice_payment_term_attributes return $this; } + /** + * Gets invoice_registration_number + * + * @return string|null + */ + public function getInvoiceRegistrationNumber() + { + return $this->container['invoice_registration_number']; + } + + /** + * Sets invoice_registration_number + * + * @param string|null $invoice_registration_number この項目はインボイス制度で利用する項目です。2023年4月頃から利用できる予定です。 インボイス制度適格請求書発行事業者登録番号 - 先頭T数字13桁の固定14桁の文字列 国税庁インボイス制度適格請求書発行事業者公表サイト + * + * @return self + */ + public function setInvoiceRegistrationNumber($invoice_registration_number) + { + if (!is_null($invoice_registration_number) && (mb_strlen($invoice_registration_number) > 14)) { + throw new \InvalidArgumentException('invalid length for $invoice_registration_number when calling PartnerCreateParams., must be smaller than or equal to 14.'); + } + if (!is_null($invoice_registration_number) && (mb_strlen($invoice_registration_number) < 13)) { + throw new \InvalidArgumentException('invalid length for $invoice_registration_number when calling PartnerCreateParams., must be bigger than or equal to 13.'); + } + if (!is_null($invoice_registration_number) && (!preg_match("/^T?[1-9][0-9]{12}$/", $invoice_registration_number))) { + throw new \InvalidArgumentException("invalid value for $invoice_registration_number when calling PartnerCreateParams., must conform to the pattern /^T?[1-9][0-9]{12}$/."); + } + + $this->container['invoice_registration_number'] = $invoice_registration_number; + + return $this; + } + /** * Gets long_name * @@ -905,6 +963,30 @@ public function setPhone($phone) return $this; } + /** + * Gets qualified_invoice_issuer + * + * @return bool|null + */ + public function getQualifiedInvoiceIssuer() + { + return $this->container['qualified_invoice_issuer']; + } + + /** + * Sets qualified_invoice_issuer + * + * @param bool|null $qualified_invoice_issuer この項目はインボイス制度で利用する項目です。2023年4月頃から利用できる予定です。 インボイス制度適格請求書発行事業者(true: 対象事業者、false: 非対象事業者) 国税庁インボイス制度適格請求書発行事業者公表サイト + * + * @return self + */ + public function setQualifiedInvoiceIssuer($qualified_invoice_issuer) + { + $this->container['qualified_invoice_issuer'] = $qualified_invoice_issuer; + + return $this; + } + /** * Gets shortcut1 * diff --git a/lib/Model/PartnerResponsePartner.php b/lib/Model/PartnerResponsePartner.php index 3a97548e..0b71e904 100644 --- a/lib/Model/PartnerResponsePartner.php +++ b/lib/Model/PartnerResponsePartner.php @@ -69,6 +69,7 @@ class PartnerResponsePartner implements ModelInterface, ArrayAccess, \JsonSerial 'email' => 'string', 'id' => 'int', 'invoice_payment_term_attributes' => '\Freee\Accounting\Model\PartnerResponsePartnerInvoicePaymentTermAttributes', + 'invoice_registration_number' => 'string', 'long_name' => 'string', 'name' => 'string', 'name_kana' => 'string', @@ -78,6 +79,7 @@ class PartnerResponsePartner implements ModelInterface, ArrayAccess, \JsonSerial 'payer_walletable_id' => 'int', 'payment_term_attributes' => '\Freee\Accounting\Model\PartnerResponsePartnerPaymentTermAttributes', 'phone' => 'string', + 'qualified_invoice_issuer' => 'bool', 'shortcut1' => 'string', 'shortcut2' => 'string', 'transfer_fee_handling_side' => 'string', @@ -102,6 +104,7 @@ class PartnerResponsePartner implements ModelInterface, ArrayAccess, \JsonSerial 'email' => null, 'id' => null, 'invoice_payment_term_attributes' => null, + 'invoice_registration_number' => null, 'long_name' => null, 'name' => null, 'name_kana' => null, @@ -111,6 +114,7 @@ class PartnerResponsePartner implements ModelInterface, ArrayAccess, \JsonSerial 'payer_walletable_id' => null, 'payment_term_attributes' => null, 'phone' => null, + 'qualified_invoice_issuer' => null, 'shortcut1' => null, 'shortcut2' => null, 'transfer_fee_handling_side' => null, @@ -154,6 +158,7 @@ public static function openAPIFormats() 'email' => 'email', 'id' => 'id', 'invoice_payment_term_attributes' => 'invoice_payment_term_attributes', + 'invoice_registration_number' => 'invoice_registration_number', 'long_name' => 'long_name', 'name' => 'name', 'name_kana' => 'name_kana', @@ -163,6 +168,7 @@ public static function openAPIFormats() 'payer_walletable_id' => 'payer_walletable_id', 'payment_term_attributes' => 'payment_term_attributes', 'phone' => 'phone', + 'qualified_invoice_issuer' => 'qualified_invoice_issuer', 'shortcut1' => 'shortcut1', 'shortcut2' => 'shortcut2', 'transfer_fee_handling_side' => 'transfer_fee_handling_side', @@ -185,6 +191,7 @@ public static function openAPIFormats() 'email' => 'setEmail', 'id' => 'setId', 'invoice_payment_term_attributes' => 'setInvoicePaymentTermAttributes', + 'invoice_registration_number' => 'setInvoiceRegistrationNumber', 'long_name' => 'setLongName', 'name' => 'setName', 'name_kana' => 'setNameKana', @@ -194,6 +201,7 @@ public static function openAPIFormats() 'payer_walletable_id' => 'setPayerWalletableId', 'payment_term_attributes' => 'setPaymentTermAttributes', 'phone' => 'setPhone', + 'qualified_invoice_issuer' => 'setQualifiedInvoiceIssuer', 'shortcut1' => 'setShortcut1', 'shortcut2' => 'setShortcut2', 'transfer_fee_handling_side' => 'setTransferFeeHandlingSide', @@ -216,6 +224,7 @@ public static function openAPIFormats() 'email' => 'getEmail', 'id' => 'getId', 'invoice_payment_term_attributes' => 'getInvoicePaymentTermAttributes', + 'invoice_registration_number' => 'getInvoiceRegistrationNumber', 'long_name' => 'getLongName', 'name' => 'getName', 'name_kana' => 'getNameKana', @@ -225,6 +234,7 @@ public static function openAPIFormats() 'payer_walletable_id' => 'getPayerWalletableId', 'payment_term_attributes' => 'getPaymentTermAttributes', 'phone' => 'getPhone', + 'qualified_invoice_issuer' => 'getQualifiedInvoiceIssuer', 'shortcut1' => 'getShortcut1', 'shortcut2' => 'getShortcut2', 'transfer_fee_handling_side' => 'getTransferFeeHandlingSide', @@ -313,6 +323,7 @@ public function __construct(array $data = null) $this->container['email'] = $data['email'] ?? null; $this->container['id'] = $data['id'] ?? null; $this->container['invoice_payment_term_attributes'] = $data['invoice_payment_term_attributes'] ?? null; + $this->container['invoice_registration_number'] = $data['invoice_registration_number'] ?? null; $this->container['long_name'] = $data['long_name'] ?? null; $this->container['name'] = $data['name'] ?? null; $this->container['name_kana'] = $data['name_kana'] ?? null; @@ -322,6 +333,7 @@ public function __construct(array $data = null) $this->container['payer_walletable_id'] = $data['payer_walletable_id'] ?? null; $this->container['payment_term_attributes'] = $data['payment_term_attributes'] ?? null; $this->container['phone'] = $data['phone'] ?? null; + $this->container['qualified_invoice_issuer'] = $data['qualified_invoice_issuer'] ?? null; $this->container['shortcut1'] = $data['shortcut1'] ?? null; $this->container['shortcut2'] = $data['shortcut2'] ?? null; $this->container['transfer_fee_handling_side'] = $data['transfer_fee_handling_side'] ?? null; @@ -683,6 +695,30 @@ public function setInvoicePaymentTermAttributes($invoice_payment_term_attributes return $this; } + /** + * Gets invoice_registration_number + * + * @return string|null + */ + public function getInvoiceRegistrationNumber() + { + return $this->container['invoice_registration_number']; + } + + /** + * Sets invoice_registration_number + * + * @param string|null $invoice_registration_number この項目はインボイス制度で利用する項目です。2023年4月頃から利用できる予定です。 インボイス制度適格請求書発行事業者登録番号 - 先頭T数字13桁の固定14桁の文字列 国税庁インボイス制度適格請求書発行事業者公表サイト + * + * @return self + */ + public function setInvoiceRegistrationNumber($invoice_registration_number) + { + $this->container['invoice_registration_number'] = $invoice_registration_number; + + return $this; + } + /** * Gets long_name * @@ -923,6 +959,30 @@ public function setPhone($phone) return $this; } + /** + * Gets qualified_invoice_issuer + * + * @return bool|null + */ + public function getQualifiedInvoiceIssuer() + { + return $this->container['qualified_invoice_issuer']; + } + + /** + * Sets qualified_invoice_issuer + * + * @param bool|null $qualified_invoice_issuer この項目はインボイス制度で利用する項目です。2023年4月頃から利用できる予定です。 インボイス制度適格請求書発行事業者(true: 対象事業者、false: 非対象事業者) 国税庁インボイス制度適格請求書発行事業者公表サイト + * + * @return self + */ + public function setQualifiedInvoiceIssuer($qualified_invoice_issuer) + { + $this->container['qualified_invoice_issuer'] = $qualified_invoice_issuer; + + return $this; + } + /** * Gets shortcut1 * diff --git a/lib/Model/PartnerUpdateParams.php b/lib/Model/PartnerUpdateParams.php index 3e53b544..67de3340 100644 --- a/lib/Model/PartnerUpdateParams.php +++ b/lib/Model/PartnerUpdateParams.php @@ -66,6 +66,7 @@ class PartnerUpdateParams implements ModelInterface, ArrayAccess, \JsonSerializa 'default_title' => 'string', 'email' => 'string', 'invoice_payment_term_attributes' => '\Freee\Accounting\Model\PartnerUpdateParamsInvoicePaymentTermAttributes', + 'invoice_registration_number' => 'string', 'long_name' => 'string', 'name' => 'string', 'name_kana' => 'string', @@ -75,6 +76,7 @@ class PartnerUpdateParams implements ModelInterface, ArrayAccess, \JsonSerializa 'payer_walletable_id' => 'int', 'payment_term_attributes' => '\Freee\Accounting\Model\PartnerUpdateParamsPaymentTermAttributes', 'phone' => 'string', + 'qualified_invoice_issuer' => 'bool', 'shortcut1' => 'string', 'shortcut2' => 'string', 'transfer_fee_handling_side' => 'string' @@ -95,6 +97,7 @@ class PartnerUpdateParams implements ModelInterface, ArrayAccess, \JsonSerializa 'default_title' => null, 'email' => null, 'invoice_payment_term_attributes' => null, + 'invoice_registration_number' => null, 'long_name' => null, 'name' => null, 'name_kana' => null, @@ -104,6 +107,7 @@ class PartnerUpdateParams implements ModelInterface, ArrayAccess, \JsonSerializa 'payer_walletable_id' => null, 'payment_term_attributes' => null, 'phone' => null, + 'qualified_invoice_issuer' => null, 'shortcut1' => null, 'shortcut2' => null, 'transfer_fee_handling_side' => null @@ -143,6 +147,7 @@ public static function openAPIFormats() 'default_title' => 'default_title', 'email' => 'email', 'invoice_payment_term_attributes' => 'invoice_payment_term_attributes', + 'invoice_registration_number' => 'invoice_registration_number', 'long_name' => 'long_name', 'name' => 'name', 'name_kana' => 'name_kana', @@ -152,6 +157,7 @@ public static function openAPIFormats() 'payer_walletable_id' => 'payer_walletable_id', 'payment_term_attributes' => 'payment_term_attributes', 'phone' => 'phone', + 'qualified_invoice_issuer' => 'qualified_invoice_issuer', 'shortcut1' => 'shortcut1', 'shortcut2' => 'shortcut2', 'transfer_fee_handling_side' => 'transfer_fee_handling_side' @@ -170,6 +176,7 @@ public static function openAPIFormats() 'default_title' => 'setDefaultTitle', 'email' => 'setEmail', 'invoice_payment_term_attributes' => 'setInvoicePaymentTermAttributes', + 'invoice_registration_number' => 'setInvoiceRegistrationNumber', 'long_name' => 'setLongName', 'name' => 'setName', 'name_kana' => 'setNameKana', @@ -179,6 +186,7 @@ public static function openAPIFormats() 'payer_walletable_id' => 'setPayerWalletableId', 'payment_term_attributes' => 'setPaymentTermAttributes', 'phone' => 'setPhone', + 'qualified_invoice_issuer' => 'setQualifiedInvoiceIssuer', 'shortcut1' => 'setShortcut1', 'shortcut2' => 'setShortcut2', 'transfer_fee_handling_side' => 'setTransferFeeHandlingSide' @@ -197,6 +205,7 @@ public static function openAPIFormats() 'default_title' => 'getDefaultTitle', 'email' => 'getEmail', 'invoice_payment_term_attributes' => 'getInvoicePaymentTermAttributes', + 'invoice_registration_number' => 'getInvoiceRegistrationNumber', 'long_name' => 'getLongName', 'name' => 'getName', 'name_kana' => 'getNameKana', @@ -206,6 +215,7 @@ public static function openAPIFormats() 'payer_walletable_id' => 'getPayerWalletableId', 'payment_term_attributes' => 'getPaymentTermAttributes', 'phone' => 'getPhone', + 'qualified_invoice_issuer' => 'getQualifiedInvoiceIssuer', 'shortcut1' => 'getShortcut1', 'shortcut2' => 'getShortcut2', 'transfer_fee_handling_side' => 'getTransferFeeHandlingSide' @@ -320,6 +330,7 @@ public function __construct(array $data = null) $this->container['default_title'] = $data['default_title'] ?? null; $this->container['email'] = $data['email'] ?? null; $this->container['invoice_payment_term_attributes'] = $data['invoice_payment_term_attributes'] ?? null; + $this->container['invoice_registration_number'] = $data['invoice_registration_number'] ?? null; $this->container['long_name'] = $data['long_name'] ?? null; $this->container['name'] = $data['name'] ?? null; $this->container['name_kana'] = $data['name_kana'] ?? null; @@ -329,6 +340,7 @@ public function __construct(array $data = null) $this->container['payer_walletable_id'] = $data['payer_walletable_id'] ?? null; $this->container['payment_term_attributes'] = $data['payment_term_attributes'] ?? null; $this->container['phone'] = $data['phone'] ?? null; + $this->container['qualified_invoice_issuer'] = $data['qualified_invoice_issuer'] ?? null; $this->container['shortcut1'] = $data['shortcut1'] ?? null; $this->container['shortcut2'] = $data['shortcut2'] ?? null; $this->container['transfer_fee_handling_side'] = $data['transfer_fee_handling_side'] ?? null; @@ -371,6 +383,18 @@ public function listInvalidProperties() $invalidProperties[] = "invalid value for 'email', the character length must be smaller than or equal to 255."; } + if (!is_null($this->container['invoice_registration_number']) && (mb_strlen($this->container['invoice_registration_number']) > 14)) { + $invalidProperties[] = "invalid value for 'invoice_registration_number', the character length must be smaller than or equal to 14."; + } + + if (!is_null($this->container['invoice_registration_number']) && (mb_strlen($this->container['invoice_registration_number']) < 13)) { + $invalidProperties[] = "invalid value for 'invoice_registration_number', the character length must be bigger than or equal to 13."; + } + + if (!is_null($this->container['invoice_registration_number']) && !preg_match("/^T?[1-9][0-9]{12}$/", $this->container['invoice_registration_number'])) { + $invalidProperties[] = "invalid value for 'invoice_registration_number', must be conform to the pattern /^T?[1-9][0-9]{12}$/."; + } + if (!is_null($this->container['long_name']) && (mb_strlen($this->container['long_name']) > 255)) { $invalidProperties[] = "invalid value for 'long_name', the character length must be smaller than or equal to 255."; } @@ -629,6 +653,40 @@ public function setInvoicePaymentTermAttributes($invoice_payment_term_attributes return $this; } + /** + * Gets invoice_registration_number + * + * @return string|null + */ + public function getInvoiceRegistrationNumber() + { + return $this->container['invoice_registration_number']; + } + + /** + * Sets invoice_registration_number + * + * @param string|null $invoice_registration_number この項目はインボイス制度で利用する項目です。2023年4月頃から利用できる予定です。 インボイス制度適格請求書発行事業者登録番号 - 先頭T数字13桁の固定14桁の文字列 国税庁インボイス制度適格請求書発行事業者公表サイト + * + * @return self + */ + public function setInvoiceRegistrationNumber($invoice_registration_number) + { + if (!is_null($invoice_registration_number) && (mb_strlen($invoice_registration_number) > 14)) { + throw new \InvalidArgumentException('invalid length for $invoice_registration_number when calling PartnerUpdateParams., must be smaller than or equal to 14.'); + } + if (!is_null($invoice_registration_number) && (mb_strlen($invoice_registration_number) < 13)) { + throw new \InvalidArgumentException('invalid length for $invoice_registration_number when calling PartnerUpdateParams., must be bigger than or equal to 13.'); + } + if (!is_null($invoice_registration_number) && (!preg_match("/^T?[1-9][0-9]{12}$/", $invoice_registration_number))) { + throw new \InvalidArgumentException("invalid value for $invoice_registration_number when calling PartnerUpdateParams., must conform to the pattern /^T?[1-9][0-9]{12}$/."); + } + + $this->container['invoice_registration_number'] = $invoice_registration_number; + + return $this; + } + /** * Gets long_name * @@ -875,6 +933,30 @@ public function setPhone($phone) return $this; } + /** + * Gets qualified_invoice_issuer + * + * @return bool|null + */ + public function getQualifiedInvoiceIssuer() + { + return $this->container['qualified_invoice_issuer']; + } + + /** + * Sets qualified_invoice_issuer + * + * @param bool|null $qualified_invoice_issuer この項目はインボイス制度で利用する項目です。2023年4月頃から利用できる予定です。 インボイス制度適格請求書発行事業者(true: 対象事業者、false: 非対象事業者) 国税庁インボイス制度適格請求書発行事業者公表サイト + * + * @return self + */ + public function setQualifiedInvoiceIssuer($qualified_invoice_issuer) + { + $this->container['qualified_invoice_issuer'] = $qualified_invoice_issuer; + + return $this; + } + /** * Gets shortcut1 * diff --git a/lib/Model/PartnersResponsePartners.php b/lib/Model/PartnersResponsePartners.php index 565289ac..f29024e4 100644 --- a/lib/Model/PartnersResponsePartners.php +++ b/lib/Model/PartnersResponsePartners.php @@ -68,6 +68,7 @@ class PartnersResponsePartners implements ModelInterface, ArrayAccess, \JsonSeri 'default_title' => 'string', 'email' => 'string', 'id' => 'int', + 'invoice_registration_number' => 'string', 'long_name' => 'string', 'name' => 'string', 'name_kana' => 'string', @@ -76,6 +77,7 @@ class PartnersResponsePartners implements ModelInterface, ArrayAccess, \JsonSeri 'partner_doc_setting_attributes' => '\Freee\Accounting\Model\PartnerCreateParamsPartnerDocSettingAttributes', 'payer_walletable_id' => 'int', 'phone' => 'string', + 'qualified_invoice_issuer' => 'bool', 'shortcut1' => 'string', 'shortcut2' => 'string', 'transfer_fee_handling_side' => 'string', @@ -99,6 +101,7 @@ class PartnersResponsePartners implements ModelInterface, ArrayAccess, \JsonSeri 'default_title' => null, 'email' => null, 'id' => null, + 'invoice_registration_number' => null, 'long_name' => null, 'name' => null, 'name_kana' => null, @@ -107,6 +110,7 @@ class PartnersResponsePartners implements ModelInterface, ArrayAccess, \JsonSeri 'partner_doc_setting_attributes' => null, 'payer_walletable_id' => null, 'phone' => null, + 'qualified_invoice_issuer' => null, 'shortcut1' => null, 'shortcut2' => null, 'transfer_fee_handling_side' => null, @@ -149,6 +153,7 @@ public static function openAPIFormats() 'default_title' => 'default_title', 'email' => 'email', 'id' => 'id', + 'invoice_registration_number' => 'invoice_registration_number', 'long_name' => 'long_name', 'name' => 'name', 'name_kana' => 'name_kana', @@ -157,6 +162,7 @@ public static function openAPIFormats() 'partner_doc_setting_attributes' => 'partner_doc_setting_attributes', 'payer_walletable_id' => 'payer_walletable_id', 'phone' => 'phone', + 'qualified_invoice_issuer' => 'qualified_invoice_issuer', 'shortcut1' => 'shortcut1', 'shortcut2' => 'shortcut2', 'transfer_fee_handling_side' => 'transfer_fee_handling_side', @@ -178,6 +184,7 @@ public static function openAPIFormats() 'default_title' => 'setDefaultTitle', 'email' => 'setEmail', 'id' => 'setId', + 'invoice_registration_number' => 'setInvoiceRegistrationNumber', 'long_name' => 'setLongName', 'name' => 'setName', 'name_kana' => 'setNameKana', @@ -186,6 +193,7 @@ public static function openAPIFormats() 'partner_doc_setting_attributes' => 'setPartnerDocSettingAttributes', 'payer_walletable_id' => 'setPayerWalletableId', 'phone' => 'setPhone', + 'qualified_invoice_issuer' => 'setQualifiedInvoiceIssuer', 'shortcut1' => 'setShortcut1', 'shortcut2' => 'setShortcut2', 'transfer_fee_handling_side' => 'setTransferFeeHandlingSide', @@ -207,6 +215,7 @@ public static function openAPIFormats() 'default_title' => 'getDefaultTitle', 'email' => 'getEmail', 'id' => 'getId', + 'invoice_registration_number' => 'getInvoiceRegistrationNumber', 'long_name' => 'getLongName', 'name' => 'getName', 'name_kana' => 'getNameKana', @@ -215,6 +224,7 @@ public static function openAPIFormats() 'partner_doc_setting_attributes' => 'getPartnerDocSettingAttributes', 'payer_walletable_id' => 'getPayerWalletableId', 'phone' => 'getPhone', + 'qualified_invoice_issuer' => 'getQualifiedInvoiceIssuer', 'shortcut1' => 'getShortcut1', 'shortcut2' => 'getShortcut2', 'transfer_fee_handling_side' => 'getTransferFeeHandlingSide', @@ -302,6 +312,7 @@ public function __construct(array $data = null) $this->container['default_title'] = $data['default_title'] ?? null; $this->container['email'] = $data['email'] ?? null; $this->container['id'] = $data['id'] ?? null; + $this->container['invoice_registration_number'] = $data['invoice_registration_number'] ?? null; $this->container['long_name'] = $data['long_name'] ?? null; $this->container['name'] = $data['name'] ?? null; $this->container['name_kana'] = $data['name_kana'] ?? null; @@ -310,6 +321,7 @@ public function __construct(array $data = null) $this->container['partner_doc_setting_attributes'] = $data['partner_doc_setting_attributes'] ?? null; $this->container['payer_walletable_id'] = $data['payer_walletable_id'] ?? null; $this->container['phone'] = $data['phone'] ?? null; + $this->container['qualified_invoice_issuer'] = $data['qualified_invoice_issuer'] ?? null; $this->container['shortcut1'] = $data['shortcut1'] ?? null; $this->container['shortcut2'] = $data['shortcut2'] ?? null; $this->container['transfer_fee_handling_side'] = $data['transfer_fee_handling_side'] ?? null; @@ -647,6 +659,30 @@ public function setId($id) return $this; } + /** + * Gets invoice_registration_number + * + * @return string|null + */ + public function getInvoiceRegistrationNumber() + { + return $this->container['invoice_registration_number']; + } + + /** + * Sets invoice_registration_number + * + * @param string|null $invoice_registration_number この項目はインボイス制度で利用する項目です。2023年4月頃から利用できる予定です。 インボイス制度適格請求書発行事業者登録番号 - 先頭T数字13桁の固定14桁の文字列 国税庁インボイス制度適格請求書発行事業者公表サイト + * + * @return self + */ + public function setInvoiceRegistrationNumber($invoice_registration_number) + { + $this->container['invoice_registration_number'] = $invoice_registration_number; + + return $this; + } + /** * Gets long_name * @@ -863,6 +899,30 @@ public function setPhone($phone) return $this; } + /** + * Gets qualified_invoice_issuer + * + * @return bool|null + */ + public function getQualifiedInvoiceIssuer() + { + return $this->container['qualified_invoice_issuer']; + } + + /** + * Sets qualified_invoice_issuer + * + * @param bool|null $qualified_invoice_issuer この項目はインボイス制度で利用する項目です。2023年4月頃から利用できる予定です。 インボイス制度適格請求書発行事業者(true: 対象事業者、false: 非対象事業者) 国税庁インボイス制度適格請求書発行事業者公表サイト + * + * @return self + */ + public function setQualifiedInvoiceIssuer($qualified_invoice_issuer) + { + $this->container['qualified_invoice_issuer'] = $qualified_invoice_issuer; + + return $this; + } + /** * Gets shortcut1 * diff --git a/test/Model/PartnerCreateParamsTest.php b/test/Model/PartnerCreateParamsTest.php index de1f6713..5aecd6b7 100644 --- a/test/Model/PartnerCreateParamsTest.php +++ b/test/Model/PartnerCreateParamsTest.php @@ -151,6 +151,15 @@ public function testPropertyInvoicePaymentTermAttributes() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "invoice_registration_number" + */ + public function testPropertyInvoiceRegistrationNumber() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "long_name" */ @@ -232,6 +241,15 @@ public function testPropertyPhone() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "qualified_invoice_issuer" + */ + public function testPropertyQualifiedInvoiceIssuer() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "shortcut1" */ diff --git a/test/Model/PartnerResponsePartnerTest.php b/test/Model/PartnerResponsePartnerTest.php index cd8f3b49..bf593683 100644 --- a/test/Model/PartnerResponsePartnerTest.php +++ b/test/Model/PartnerResponsePartnerTest.php @@ -169,6 +169,15 @@ public function testPropertyInvoicePaymentTermAttributes() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "invoice_registration_number" + */ + public function testPropertyInvoiceRegistrationNumber() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "long_name" */ @@ -250,6 +259,15 @@ public function testPropertyPhone() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "qualified_invoice_issuer" + */ + public function testPropertyQualifiedInvoiceIssuer() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "shortcut1" */ diff --git a/test/Model/PartnerUpdateParamsTest.php b/test/Model/PartnerUpdateParamsTest.php index ed3f3d75..fc9bf063 100644 --- a/test/Model/PartnerUpdateParamsTest.php +++ b/test/Model/PartnerUpdateParamsTest.php @@ -142,6 +142,15 @@ public function testPropertyInvoicePaymentTermAttributes() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "invoice_registration_number" + */ + public function testPropertyInvoiceRegistrationNumber() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "long_name" */ @@ -223,6 +232,15 @@ public function testPropertyPhone() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "qualified_invoice_issuer" + */ + public function testPropertyQualifiedInvoiceIssuer() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "shortcut1" */ diff --git a/test/Model/PartnersResponsePartnersTest.php b/test/Model/PartnersResponsePartnersTest.php index 2125e917..f0067bf4 100644 --- a/test/Model/PartnersResponsePartnersTest.php +++ b/test/Model/PartnersResponsePartnersTest.php @@ -160,6 +160,15 @@ public function testPropertyId() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "invoice_registration_number" + */ + public function testPropertyInvoiceRegistrationNumber() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "long_name" */ @@ -232,6 +241,15 @@ public function testPropertyPhone() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "qualified_invoice_issuer" + */ + public function testPropertyQualifiedInvoiceIssuer() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "shortcut1" */