diff --git a/README.md b/README.md index d689bbd..fbdccf8 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ A PHP client library for the PAY.JP v2 API. This SDK provides a convenient way t This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: `2.0.0` -- Package version: `1.0.9` +- Package version: `1.0.10` - Generator version: `7.14.0` - Build package: `org.openapitools.codegen.languages.PhpClientCodegen` @@ -306,6 +306,6 @@ vendor/bin/phpunit This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: `2.0.0` -- Package version: `1.0.9` +- Package version: `1.0.10` - Generator version: `7.14.0` - Build package: `org.openapitools.codegen.languages.PhpClientCodegen` diff --git a/docs/Model/CheckoutSessionPaymentMethodOptionsCardRequest.md b/docs/Model/CheckoutSessionPaymentMethodOptionsCardRequest.md index 39d57ff..90d0bd2 100644 --- a/docs/Model/CheckoutSessionPaymentMethodOptionsCardRequest.md +++ b/docs/Model/CheckoutSessionPaymentMethodOptionsCardRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**requestExtendedAuthorization** | **string** | オーソリ期間の延長要求 | 指定できる値 | |:---| | **if_available**: オーソリ期間の延長が可能な場合に延長要求を行います。 | | **never**: オーソリ期間の延長要求を行いません。 | | [optional] +**requestExtendedAuthorization** | **string** | オーソリ期間の延長要求 | 指定できる値 | |:---| | **if_available**: オーソリ期間の延長が可能な場合に延長要求を行います。 | | **must_extend**: オーソリ期間の延長を必須とします。延長できない場合はエラーを返します。 | | **never**: オーソリ期間の延長要求を行いません。 | | [optional] **requestThreeDSecure** | **string** | 3D セキュア認証の要求方法 | 指定できる値 | |:---| | **any**: 3D セキュア認証を要求します。 | | **automatic**: 必要な場合にのみ 3D セキュア認証を要求します。 | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/PaymentFlowPaymentMethodOptionsCardRequest.md b/docs/Model/PaymentFlowPaymentMethodOptionsCardRequest.md index f2aa033..4945f29 100644 --- a/docs/Model/PaymentFlowPaymentMethodOptionsCardRequest.md +++ b/docs/Model/PaymentFlowPaymentMethodOptionsCardRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**requestExtendedAuthorization** | **string** | オーソリ期間の延長要求 | 値 | |:---| | **if_available**: オーソリ期間の延長が可能な場合に延長要求を行います。 | | **never**: オーソリ期間の延長要求を行いません。 | | [optional] +**requestExtendedAuthorization** | **string** | オーソリ期間の延長要求 | 値 | |:---| | **if_available**: オーソリ期間の延長が可能な場合に延長要求を行います。 | | **must_extend**: オーソリ期間の延長を必須とします。延長できない場合はエラーを返します。 | | **never**: オーソリ期間の延長要求を行いません。 | | [optional] **requestThreeDSecure** | **string** | 3D セキュア認証の要求方法。 | 値 | |:---| | **any**: 3D セキュア認証を要求します。 | | **automatic**: 必要な場合にのみ 3D セキュア認証を要求します。 | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/docs/Model/PaymentFlowResponse.md b/docs/Model/PaymentFlowResponse.md index f914447..7f37944 100644 --- a/docs/Model/PaymentFlowResponse.md +++ b/docs/Model/PaymentFlowResponse.md @@ -24,6 +24,7 @@ Name | Type | Description | Notes **lastPaymentError** | **array** | | **cancellationReason** | [**\PAYJPV2\Model\PaymentFlowCancellationReason**](PaymentFlowCancellationReason.md) | | **canceledAt** | **\DateTime** | | +**expiredAt** | **\DateTime** | | [optional] **metadata** | **array** | メタデータ | **createdAt** | **\DateTime** | 作成日時 (UTC, ISO 8601 形式) | **updatedAt** | **\DateTime** | 更新日時 (UTC, ISO 8601 形式) | diff --git a/lib/Configuration.php b/lib/Configuration.php index 80e7fff..c7f1f4d 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -101,7 +101,7 @@ class Configuration * * @var string */ - protected $userAgent = 'payjp/payjpv2 PHPBindings/1.0.9'; + protected $userAgent = 'payjp/payjpv2 PHPBindings/1.0.10'; /** * Debug switch (default set to false) @@ -339,7 +339,7 @@ public function getUserAgent(): string public static function buildClientUserAgent(): string { $uaInfo = [ - 'bindings_version' => '1.0.9', + 'bindings_version' => '1.0.10', 'lang' => 'php', 'lang_version' => PHP_VERSION, 'publisher' => 'payjp', @@ -458,7 +458,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: 2.0.0' . PHP_EOL; - $report .= ' SDK Package Version: 1.0.9' . PHP_EOL; + $report .= ' SDK Package Version: 1.0.10' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report; diff --git a/lib/Model/CheckoutSessionPaymentMethodOptionsCardRequest.php b/lib/Model/CheckoutSessionPaymentMethodOptionsCardRequest.php index e05f576..b607728 100644 --- a/lib/Model/CheckoutSessionPaymentMethodOptionsCardRequest.php +++ b/lib/Model/CheckoutSessionPaymentMethodOptionsCardRequest.php @@ -236,6 +236,7 @@ public function getModelName() } public const REQUEST_EXTENDED_AUTHORIZATION_IF_AVAILABLE = 'if_available'; + public const REQUEST_EXTENDED_AUTHORIZATION_MUST_EXTEND = 'must_extend'; public const REQUEST_EXTENDED_AUTHORIZATION_NEVER = 'never'; public const REQUEST_THREE_D_SECURE_ANY = 'any'; public const REQUEST_THREE_D_SECURE_AUTOMATIC = 'automatic'; @@ -249,6 +250,7 @@ public function getRequestExtendedAuthorizationAllowableValues() { return [ self::REQUEST_EXTENDED_AUTHORIZATION_IF_AVAILABLE, + self::REQUEST_EXTENDED_AUTHORIZATION_MUST_EXTEND, self::REQUEST_EXTENDED_AUTHORIZATION_NEVER, ]; } @@ -358,7 +360,7 @@ public function getRequestExtendedAuthorization(): ?string /** * Sets requestExtendedAuthorization * - * @param string|null $requestExtendedAuthorization オーソリ期間の延長要求 | 指定できる値 | |:---| | **if_available**: オーソリ期間の延長が可能な場合に延長要求を行います。 | | **never**: オーソリ期間の延長要求を行いません。 | + * @param string|null $requestExtendedAuthorization オーソリ期間の延長要求 | 指定できる値 | |:---| | **if_available**: オーソリ期間の延長が可能な場合に延長要求を行います。 | | **must_extend**: オーソリ期間の延長を必須とします。延長できない場合はエラーを返します。 | | **never**: オーソリ期間の延長要求を行いません。 | * * @return self */ diff --git a/lib/Model/PaymentFlowPaymentMethodOptionsCardRequest.php b/lib/Model/PaymentFlowPaymentMethodOptionsCardRequest.php index 9b89897..64bc6f2 100644 --- a/lib/Model/PaymentFlowPaymentMethodOptionsCardRequest.php +++ b/lib/Model/PaymentFlowPaymentMethodOptionsCardRequest.php @@ -236,6 +236,7 @@ public function getModelName() } public const REQUEST_EXTENDED_AUTHORIZATION_IF_AVAILABLE = 'if_available'; + public const REQUEST_EXTENDED_AUTHORIZATION_MUST_EXTEND = 'must_extend'; public const REQUEST_EXTENDED_AUTHORIZATION_NEVER = 'never'; public const REQUEST_THREE_D_SECURE_ANY = 'any'; public const REQUEST_THREE_D_SECURE_AUTOMATIC = 'automatic'; @@ -249,6 +250,7 @@ public function getRequestExtendedAuthorizationAllowableValues() { return [ self::REQUEST_EXTENDED_AUTHORIZATION_IF_AVAILABLE, + self::REQUEST_EXTENDED_AUTHORIZATION_MUST_EXTEND, self::REQUEST_EXTENDED_AUTHORIZATION_NEVER, ]; } @@ -358,7 +360,7 @@ public function getRequestExtendedAuthorization(): ?string /** * Sets requestExtendedAuthorization * - * @param string|null $requestExtendedAuthorization オーソリ期間の延長要求 | 値 | |:---| | **if_available**: オーソリ期間の延長が可能な場合に延長要求を行います。 | | **never**: オーソリ期間の延長要求を行いません。 | + * @param string|null $requestExtendedAuthorization オーソリ期間の延長要求 | 値 | |:---| | **if_available**: オーソリ期間の延長が可能な場合に延長要求を行います。 | | **must_extend**: オーソリ期間の延長を必須とします。延長できない場合はエラーを返します。 | | **never**: オーソリ期間の延長要求を行いません。 | * * @return self */ diff --git a/lib/Model/PaymentFlowResponse.php b/lib/Model/PaymentFlowResponse.php index 38ac826..d2a87c2 100644 --- a/lib/Model/PaymentFlowResponse.php +++ b/lib/Model/PaymentFlowResponse.php @@ -78,6 +78,7 @@ class PaymentFlowResponse implements ModelInterface, ArrayAccess, \JsonSerializa 'lastPaymentError' => 'array', 'cancellationReason' => '\PAYJPV2\Model\PaymentFlowCancellationReason', 'canceledAt' => '\DateTime', + 'expiredAt' => '\DateTime', 'metadata' => 'array', 'createdAt' => '\DateTime', 'updatedAt' => '\DateTime', @@ -111,6 +112,7 @@ class PaymentFlowResponse implements ModelInterface, ArrayAccess, \JsonSerializa 'lastPaymentError' => null, 'cancellationReason' => null, 'canceledAt' => 'date-time', + 'expiredAt' => 'date-time', 'metadata' => null, 'createdAt' => 'date-time', 'updatedAt' => 'date-time', @@ -142,6 +144,7 @@ class PaymentFlowResponse implements ModelInterface, ArrayAccess, \JsonSerializa 'lastPaymentError' => true, 'cancellationReason' => true, 'canceledAt' => true, + 'expiredAt' => true, 'metadata' => false, 'createdAt' => false, 'updatedAt' => false, @@ -253,6 +256,7 @@ public function isNullableSetToNull(string $property): bool 'lastPaymentError' => 'last_payment_error', 'cancellationReason' => 'cancellation_reason', 'canceledAt' => 'canceled_at', + 'expiredAt' => 'expired_at', 'metadata' => 'metadata', 'createdAt' => 'created_at', 'updatedAt' => 'updated_at', @@ -284,6 +288,7 @@ public function isNullableSetToNull(string $property): bool 'lastPaymentError' => 'setLastPaymentError', 'cancellationReason' => 'setCancellationReason', 'canceledAt' => 'setCanceledAt', + 'expiredAt' => 'setExpiredAt', 'metadata' => 'setMetadata', 'createdAt' => 'setCreatedAt', 'updatedAt' => 'setUpdatedAt', @@ -315,6 +320,7 @@ public function isNullableSetToNull(string $property): bool 'lastPaymentError' => 'getLastPaymentError', 'cancellationReason' => 'getCancellationReason', 'canceledAt' => 'getCanceledAt', + 'expiredAt' => 'getExpiredAt', 'metadata' => 'getMetadata', 'createdAt' => 'getCreatedAt', 'updatedAt' => 'getUpdatedAt', @@ -410,6 +416,7 @@ public function __construct(?array $data = null) $this->setIfExists('lastPaymentError', $data ?? [], null); $this->setIfExists('cancellationReason', $data ?? [], null); $this->setIfExists('canceledAt', $data ?? [], null); + $this->setIfExists('expiredAt', $data ?? [], null); $this->setIfExists('metadata', $data ?? [], null); $this->setIfExists('createdAt', $data ?? [], null); $this->setIfExists('updatedAt', $data ?? [], null); @@ -1192,6 +1199,40 @@ public function setCanceledAt(?\DateTime $canceledAt): self return $this; } + /** + * Gets expiredAt + * + * @return \DateTime|null + */ + public function getExpiredAt(): ?\DateTime + { + return $this->container['expiredAt']; + } + + /** + * Sets expiredAt + * + * @param \DateTime|null $expiredAt expiredAt + * + * @return self + */ + public function setExpiredAt(?\DateTime $expiredAt): self + { + if (is_null($expiredAt)) { + array_push($this->openAPINullablesSetToNull, 'expiredAt'); + } else { + $nullablesSetToNull = $this->getOpenAPINullablesSetToNull(); + $index = array_search('expiredAt', $nullablesSetToNull); + if ($index !== false) { + unset($nullablesSetToNull[$index]); + $this->setOpenAPINullablesSetToNull($nullablesSetToNull); + } + } + $this->container['expiredAt'] = $expiredAt; + + return $this; + } + /** * Gets metadata * diff --git a/test/Model/PaymentFlowResponseTest.php b/test/Model/PaymentFlowResponseTest.php index fc794dc..01b85ef 100644 --- a/test/Model/PaymentFlowResponseTest.php +++ b/test/Model/PaymentFlowResponseTest.php @@ -259,6 +259,15 @@ public function testPropertyCanceledAt() self::markTestIncomplete('Not implemented'); } + /** + * Test attribute "expiredAt" + */ + public function testPropertyExpiredAt() + { + // TODO: implement + self::markTestIncomplete('Not implemented'); + } + /** * Test attribute "metadata" */