Skip to content

Commit

Permalink
Release 4.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
wallee-deployment-user committed Nov 29, 2023
1 parent 369cc05 commit 05181e6
Show file tree
Hide file tree
Showing 17 changed files with 1,185 additions and 83 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wallee/sdk",
"version": "4.0.0",
"version": "4.0.1",
"description": "wallee SDK for PHP",
"keywords": [
"wallee",
Expand Down
16 changes: 14 additions & 2 deletions lib/ApiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ final class ApiClient {
* @var array
*/
private $defaultHeaders = [
'x-meta-sdk-version' => "4.0.0",
'x-meta-sdk-version' => "4.0.1",
'x-meta-sdk-language' => 'php',
'x-meta-sdk-provider' => "wallee",
];
Expand All @@ -58,7 +58,7 @@ final class ApiClient {
*
* @var string
*/
private $userAgent = 'PHP-Client/4.0.0/php';
private $userAgent = 'PHP-Client/4.0.1/php';

/**
* The path to the certificate authority file.
Expand Down Expand Up @@ -1833,6 +1833,18 @@ public function getWebAppService() {
return $this->webAppService;
}

protected $webhookEncryptionService;

/**
* @return \Wallee\Sdk\Service\WebhookEncryptionService
*/
public function getWebhookEncryptionService() {
if(is_null($this->webhookEncryptionService)){
$this->webhookEncryptionService = new \Wallee\Sdk\Service\WebhookEncryptionService($this);
}
return $this->webhookEncryptionService;
}

protected $webhookListenerService;

/**
Expand Down
6 changes: 3 additions & 3 deletions lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class Configuration
*
* @var string
*/
protected $userAgent = 'Wallee\Sdk/4.0.0/php';
protected $userAgent = 'Wallee\Sdk/4.0.1/php';

/**
* Debug switch (default set to false)
Expand Down Expand Up @@ -388,8 +388,8 @@ public static function toDebugReport()
$report = 'PHP SDK (Wallee\Sdk) Debug Report:' . PHP_EOL;
$report .= ' OS: ' . php_uname() . PHP_EOL;
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
$report .= ' OpenAPI Spec Version: 4.0.0' . PHP_EOL;
$report .= ' SDK Package Version: 4.0.0' . PHP_EOL;
$report .= ' OpenAPI Spec Version: 4.0.1' . PHP_EOL;
$report .= ' SDK Package Version: 4.0.1' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/AbstractPaymentLinkUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ public function getLineItems()
/**
* Sets line_items
*
* @param \Wallee\Sdk\Model\LineItemCreate[] $line_items The line items allows to define the line items for this payment link. When the line items are defined they cannot be overridden through the request parameters.
* @param \Wallee\Sdk\Model\LineItemCreate[] $line_items The line items allows to define the line items for this payment link. When the line items are defined they cannot be overridden through the request parameters. If no amount for the payment link is defined, the additional checkout page to enter the amount is shown to the consumer.
*
* @return $this
*/
Expand Down
12 changes: 6 additions & 6 deletions lib/Model/CardAuthenticationResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ class CardAuthenticationResponse
/**
* Possible values of this enum
*/
const ENROLLMENT_VERIFICATION_ERROR = 'ENROLLMENT_VERIFICATION_ERROR';
const FULLY_AUTHENTICATED = 'FULLY_AUTHENTICATED';
const AUTHENTICATION_NOT_REQUIRED = 'AUTHENTICATION_NOT_REQUIRED';
const NOT_ENROLLED = 'NOT_ENROLLED';
const ENROLLMENT_ERROR = 'ENROLLMENT_ERROR';
const AUTHENTICATION_ERROR = 'AUTHENTICATION_ERROR';
const AUTHENTICATION_NOT_REQUIRED = 'AUTHENTICATION_NOT_REQUIRED';
const FULLY_AUTHENTICATED = 'FULLY_AUTHENTICATED';

/**
* Gets allowable values of the enum
Expand All @@ -48,11 +48,11 @@ class CardAuthenticationResponse
public static function getAllowableEnumValues()
{
return [
self::ENROLLMENT_VERIFICATION_ERROR,
self::FULLY_AUTHENTICATED,
self::AUTHENTICATION_NOT_REQUIRED,
self::NOT_ENROLLED,
self::ENROLLMENT_ERROR,
self::AUTHENTICATION_ERROR,
self::AUTHENTICATION_NOT_REQUIRED,
self::FULLY_AUTHENTICATED,
];
}
}
Expand Down
26 changes: 13 additions & 13 deletions lib/Model/ChargeAttempt.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class ChargeAttempt extends TransactionAwareEntity
'token_version' => '\Wallee\Sdk\Model\TokenVersion',
'user_failure_message' => 'string',
'version' => 'int',
'wallet_type' => '\Wallee\Sdk\Model\WalletType'
'wallet' => '\Wallee\Sdk\Model\WalletType'
];

/**
Expand Down Expand Up @@ -106,7 +106,7 @@ class ChargeAttempt extends TransactionAwareEntity
'token_version' => null,
'user_failure_message' => null,
'version' => 'int32',
'wallet_type' => null
'wallet' => null
];

/**
Expand Down Expand Up @@ -141,7 +141,7 @@ class ChargeAttempt extends TransactionAwareEntity
'token_version' => 'tokenVersion',
'user_failure_message' => 'userFailureMessage',
'version' => 'version',
'wallet_type' => 'walletType'
'wallet' => 'wallet'
];

/**
Expand Down Expand Up @@ -175,7 +175,7 @@ class ChargeAttempt extends TransactionAwareEntity
'token_version' => 'setTokenVersion',
'user_failure_message' => 'setUserFailureMessage',
'version' => 'setVersion',
'wallet_type' => 'setWalletType'
'wallet' => 'setWallet'
];

/**
Expand Down Expand Up @@ -209,7 +209,7 @@ class ChargeAttempt extends TransactionAwareEntity
'token_version' => 'getTokenVersion',
'user_failure_message' => 'getUserFailureMessage',
'version' => 'getVersion',
'wallet_type' => 'getWalletType'
'wallet' => 'getWallet'
];


Expand Down Expand Up @@ -276,7 +276,7 @@ public function __construct(array $data = null)

$this->container['version'] = isset($data['version']) ? $data['version'] : null;

$this->container['wallet_type'] = isset($data['wallet_type']) ? $data['wallet_type'] : null;
$this->container['wallet'] = isset($data['wallet']) ? $data['wallet'] : null;

}

Expand Down Expand Up @@ -1003,25 +1003,25 @@ public function setVersion($version)


/**
* Gets wallet_type
* Gets wallet
*
* @return \Wallee\Sdk\Model\WalletType
*/
public function getWalletType()
public function getWallet()
{
return $this->container['wallet_type'];
return $this->container['wallet'];
}

/**
* Sets wallet_type
* Sets wallet
*
* @param \Wallee\Sdk\Model\WalletType $wallet_type
* @param \Wallee\Sdk\Model\WalletType $wallet
*
* @return $this
*/
public function setWalletType($wallet_type)
public function setWallet($wallet)
{
$this->container['wallet_type'] = $wallet_type;
$this->container['wallet'] = $wallet;

return $this;
}
Expand Down
32 changes: 32 additions & 0 deletions lib/Model/PaymentConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class PaymentConnector implements ModelInterface, ArrayAccess
'payment_method_brand' => '\Wallee\Sdk\Model\PaymentMethodBrand',
'primary_risk_taker' => '\Wallee\Sdk\Model\PaymentPrimaryRiskTaker',
'processor' => 'int',
'supported_currencies' => 'string[]',
'supported_customers_presences' => '\Wallee\Sdk\Model\CustomersPresence[]',
'supported_features' => 'int[]'
];
Expand All @@ -81,6 +82,7 @@ class PaymentConnector implements ModelInterface, ArrayAccess
'payment_method_brand' => null,
'primary_risk_taker' => null,
'processor' => 'int64',
'supported_currencies' => null,
'supported_customers_presences' => null,
'supported_features' => 'int64'
];
Expand All @@ -103,6 +105,7 @@ class PaymentConnector implements ModelInterface, ArrayAccess
'payment_method_brand' => 'paymentMethodBrand',
'primary_risk_taker' => 'primaryRiskTaker',
'processor' => 'processor',
'supported_currencies' => 'supportedCurrencies',
'supported_customers_presences' => 'supportedCustomersPresences',
'supported_features' => 'supportedFeatures'
];
Expand All @@ -124,6 +127,7 @@ class PaymentConnector implements ModelInterface, ArrayAccess
'payment_method_brand' => 'setPaymentMethodBrand',
'primary_risk_taker' => 'setPrimaryRiskTaker',
'processor' => 'setProcessor',
'supported_currencies' => 'setSupportedCurrencies',
'supported_customers_presences' => 'setSupportedCustomersPresences',
'supported_features' => 'setSupportedFeatures'
];
Expand All @@ -145,6 +149,7 @@ class PaymentConnector implements ModelInterface, ArrayAccess
'payment_method_brand' => 'getPaymentMethodBrand',
'primary_risk_taker' => 'getPrimaryRiskTaker',
'processor' => 'getProcessor',
'supported_currencies' => 'getSupportedCurrencies',
'supported_customers_presences' => 'getSupportedCustomersPresences',
'supported_features' => 'getSupportedFeatures'
];
Expand Down Expand Up @@ -189,6 +194,8 @@ public function __construct(array $data = null)

$this->container['processor'] = isset($data['processor']) ? $data['processor'] : null;

$this->container['supported_currencies'] = isset($data['supported_currencies']) ? $data['supported_currencies'] : null;

$this->container['supported_customers_presences'] = isset($data['supported_customers_presences']) ? $data['supported_customers_presences'] : null;

$this->container['supported_features'] = isset($data['supported_features']) ? $data['supported_features'] : null;
Expand Down Expand Up @@ -559,6 +566,31 @@ public function setProcessor($processor)
}


/**
* Gets supported_currencies
*
* @return string[]
*/
public function getSupportedCurrencies()
{
return $this->container['supported_currencies'];
}

/**
* Sets supported_currencies
*
* @param string[] $supported_currencies
*
* @return $this
*/
public function setSupportedCurrencies($supported_currencies)
{
$this->container['supported_currencies'] = $supported_currencies;

return $this;
}


/**
* Gets supported_customers_presences
*
Expand Down
32 changes: 32 additions & 0 deletions lib/Model/PaymentContract.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class PaymentContract implements ModelInterface, ArrayAccess
'created_on' => '\DateTime',
'external_id' => 'string',
'id' => 'int',
'last_modified_date' => '\DateTime',
'rejected_on' => '\DateTime',
'rejection_reason' => '\Wallee\Sdk\Model\FailureReason',
'start_terminating_on' => '\DateTime',
Expand All @@ -80,6 +81,7 @@ class PaymentContract implements ModelInterface, ArrayAccess
'created_on' => 'date-time',
'external_id' => null,
'id' => 'int64',
'last_modified_date' => 'date-time',
'rejected_on' => 'date-time',
'rejection_reason' => null,
'start_terminating_on' => 'date-time',
Expand All @@ -104,6 +106,7 @@ class PaymentContract implements ModelInterface, ArrayAccess
'created_on' => 'createdOn',
'external_id' => 'externalId',
'id' => 'id',
'last_modified_date' => 'lastModifiedDate',
'rejected_on' => 'rejectedOn',
'rejection_reason' => 'rejectionReason',
'start_terminating_on' => 'startTerminatingOn',
Expand All @@ -127,6 +130,7 @@ class PaymentContract implements ModelInterface, ArrayAccess
'created_on' => 'setCreatedOn',
'external_id' => 'setExternalId',
'id' => 'setId',
'last_modified_date' => 'setLastModifiedDate',
'rejected_on' => 'setRejectedOn',
'rejection_reason' => 'setRejectionReason',
'start_terminating_on' => 'setStartTerminatingOn',
Expand All @@ -150,6 +154,7 @@ class PaymentContract implements ModelInterface, ArrayAccess
'created_on' => 'getCreatedOn',
'external_id' => 'getExternalId',
'id' => 'getId',
'last_modified_date' => 'getLastModifiedDate',
'rejected_on' => 'getRejectedOn',
'rejection_reason' => 'getRejectionReason',
'start_terminating_on' => 'getStartTerminatingOn',
Expand Down Expand Up @@ -193,6 +198,8 @@ public function __construct(array $data = null)

$this->container['id'] = isset($data['id']) ? $data['id'] : null;

$this->container['last_modified_date'] = isset($data['last_modified_date']) ? $data['last_modified_date'] : null;

$this->container['rejected_on'] = isset($data['rejected_on']) ? $data['rejected_on'] : null;

$this->container['rejection_reason'] = isset($data['rejection_reason']) ? $data['rejection_reason'] : null;
Expand Down Expand Up @@ -498,6 +505,31 @@ public function setId($id)
}


/**
* Gets last_modified_date
*
* @return \DateTime
*/
public function getLastModifiedDate()
{
return $this->container['last_modified_date'];
}

/**
* Sets last_modified_date
*
* @param \DateTime $last_modified_date The date and time when the object was last modified.
*
* @return $this
*/
public function setLastModifiedDate($last_modified_date)
{
$this->container['last_modified_date'] = $last_modified_date;

return $this;
}


/**
* Gets rejected_on
*
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/PaymentLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ public function getLineItems()
/**
* Sets line_items
*
* @param \Wallee\Sdk\Model\LineItem[] $line_items The line items allows to define the line items for this payment link. When the line items are defined they cannot be overridden through the request parameters.
* @param \Wallee\Sdk\Model\LineItem[] $line_items The line items allows to define the line items for this payment link. When the line items are defined they cannot be overridden through the request parameters. If no amount for the payment link is defined, the additional checkout page to enter the amount is shown to the consumer.
*
* @return $this
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/PaymentLinkUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ public function getLineItems()
/**
* Sets line_items
*
* @param \Wallee\Sdk\Model\LineItemCreate[] $line_items The line items allows to define the line items for this payment link. When the line items are defined they cannot be overridden through the request parameters.
* @param \Wallee\Sdk\Model\LineItemCreate[] $line_items The line items allows to define the line items for this payment link. When the line items are defined they cannot be overridden through the request parameters. If no amount for the payment link is defined, the additional checkout page to enter the amount is shown to the consumer.
*
* @return $this
*/
Expand Down
Loading

0 comments on commit 05181e6

Please sign in to comment.