Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down Expand Up @@ -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`
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion docs/Model/PaymentFlowPaymentMethodOptionsCardRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
1 change: 1 addition & 0 deletions docs/Model/PaymentFlowResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Name | Type | Description | Notes
**lastPaymentError** | **array<string,mixed>** | |
**cancellationReason** | [**\PAYJPV2\Model\PaymentFlowCancellationReason**](PaymentFlowCancellationReason.md) | |
**canceledAt** | **\DateTime** | |
**expiredAt** | **\DateTime** | | [optional]
**metadata** | **array<string,mixed>** | メタデータ |
**createdAt** | **\DateTime** | 作成日時 (UTC, ISO 8601 形式) |
**updatedAt** | **\DateTime** | 更新日時 (UTC, ISO 8601 形式) |
Expand Down
6 changes: 3 additions & 3 deletions lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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;
Expand Down
4 changes: 3 additions & 1 deletion lib/Model/CheckoutSessionPaymentMethodOptionsCardRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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,
];
}
Expand Down Expand Up @@ -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
*/
Expand Down
4 changes: 3 additions & 1 deletion lib/Model/PaymentFlowPaymentMethodOptionsCardRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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,
];
}
Expand Down Expand Up @@ -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
*/
Expand Down
41 changes: 41 additions & 0 deletions lib/Model/PaymentFlowResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ class PaymentFlowResponse implements ModelInterface, ArrayAccess, \JsonSerializa
'lastPaymentError' => 'array<string,mixed>',
'cancellationReason' => '\PAYJPV2\Model\PaymentFlowCancellationReason',
'canceledAt' => '\DateTime',
'expiredAt' => '\DateTime',
'metadata' => 'array<string,mixed>',
'createdAt' => '\DateTime',
'updatedAt' => '\DateTime',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -142,6 +144,7 @@ class PaymentFlowResponse implements ModelInterface, ArrayAccess, \JsonSerializa
'lastPaymentError' => true,
'cancellationReason' => true,
'canceledAt' => true,
'expiredAt' => true,
'metadata' => false,
'createdAt' => false,
'updatedAt' => false,
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -284,6 +288,7 @@ public function isNullableSetToNull(string $property): bool
'lastPaymentError' => 'setLastPaymentError',
'cancellationReason' => 'setCancellationReason',
'canceledAt' => 'setCanceledAt',
'expiredAt' => 'setExpiredAt',
'metadata' => 'setMetadata',
'createdAt' => 'setCreatedAt',
'updatedAt' => 'setUpdatedAt',
Expand Down Expand Up @@ -315,6 +320,7 @@ public function isNullableSetToNull(string $property): bool
'lastPaymentError' => 'getLastPaymentError',
'cancellationReason' => 'getCancellationReason',
'canceledAt' => 'getCanceledAt',
'expiredAt' => 'getExpiredAt',
'metadata' => 'getMetadata',
'createdAt' => 'getCreatedAt',
'updatedAt' => 'getUpdatedAt',
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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
*
Expand Down
9 changes: 9 additions & 0 deletions test/Model/PaymentFlowResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"
*/
Expand Down
Loading