diff --git a/README.md b/README.md index a66df66..4d08995 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Or add the following to `composer.json`: ```json { "require": { - "monei/monei-php-sdk": "^0.1.4" + "monei/monei-php-sdk": "^0.1.5" } } ``` diff --git a/build/config.json b/build/config.json index 7b3db39..6d12234 100644 --- a/build/config.json +++ b/build/config.json @@ -1,6 +1,6 @@ { "packageName": "MONEI PHP SDK", - "packageVersion": "0.1.4", + "packageVersion": "0.1.5", "gitHost": "github.com", "gitUserId": "monei", "gitRepoId": "monei-php-sdk" diff --git a/build/package.json b/build/package.json index 8af85b4..c3d894f 100644 --- a/build/package.json +++ b/build/package.json @@ -1,6 +1,6 @@ { "name": "monei-php-sdk", - "version": "0.1.4", + "version": "0.1.5", "description": "MONEI PHP SDK", "author": "monei", "scripts": { diff --git a/lib/Api/PaymentsApi.php b/lib/Api/PaymentsApi.php index 2e1f83a..fe0c69b 100644 --- a/lib/Api/PaymentsApi.php +++ b/lib/Api/PaymentsApi.php @@ -1529,16 +1529,16 @@ protected function getRequest($id) * * Recurring Payment * - * @param string $id The payment ID (required) + * @param string $sequence_id The sequence ID (required) * @param \OpenAPI\Client\Model\RecurringPaymentRequest $recurring_payment_request recurring_payment_request (optional) * * @throws \OpenAPI\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \OpenAPI\Client\Model\Payment */ - public function recurring($id, $recurring_payment_request = null) + public function recurring($sequence_id, $recurring_payment_request = null) { - list($response) = $this->recurringWithHttpInfo($id, $recurring_payment_request); + list($response) = $this->recurringWithHttpInfo($sequence_id, $recurring_payment_request); return $response; } @@ -1547,16 +1547,16 @@ public function recurring($id, $recurring_payment_request = null) * * Recurring Payment * - * @param string $id The payment ID (required) + * @param string $sequence_id The sequence ID (required) * @param \OpenAPI\Client\Model\RecurringPaymentRequest $recurring_payment_request (optional) * * @throws \OpenAPI\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \OpenAPI\Client\Model\Payment, HTTP status code, HTTP response headers (array of strings) */ - public function recurringWithHttpInfo($id, $recurring_payment_request = null) + public function recurringWithHttpInfo($sequence_id, $recurring_payment_request = null) { - $request = $this->recurringRequest($id, $recurring_payment_request); + $request = $this->recurringRequest($sequence_id, $recurring_payment_request); try { $options = $this->createHttpClientOption(); @@ -1636,15 +1636,15 @@ public function recurringWithHttpInfo($id, $recurring_payment_request = null) * * Recurring Payment * - * @param string $id The payment ID (required) + * @param string $sequence_id The sequence ID (required) * @param \OpenAPI\Client\Model\RecurringPaymentRequest $recurring_payment_request (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function recurringAsync($id, $recurring_payment_request = null) + public function recurringAsync($sequence_id, $recurring_payment_request = null) { - return $this->recurringAsyncWithHttpInfo($id, $recurring_payment_request) + return $this->recurringAsyncWithHttpInfo($sequence_id, $recurring_payment_request) ->then( function ($response) { return $response[0]; @@ -1657,16 +1657,16 @@ function ($response) { * * Recurring Payment * - * @param string $id The payment ID (required) + * @param string $sequence_id The sequence ID (required) * @param \OpenAPI\Client\Model\RecurringPaymentRequest $recurring_payment_request (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function recurringAsyncWithHttpInfo($id, $recurring_payment_request = null) + public function recurringAsyncWithHttpInfo($sequence_id, $recurring_payment_request = null) { $returnType = '\OpenAPI\Client\Model\Payment'; - $request = $this->recurringRequest($id, $recurring_payment_request); + $request = $this->recurringRequest($sequence_id, $recurring_payment_request); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1705,22 +1705,22 @@ function ($exception) { /** * Create request for operation 'recurring' * - * @param string $id The payment ID (required) + * @param string $sequence_id The sequence ID (required) * @param \OpenAPI\Client\Model\RecurringPaymentRequest $recurring_payment_request (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - protected function recurringRequest($id, $recurring_payment_request = null) + protected function recurringRequest($sequence_id, $recurring_payment_request = null) { - // verify the required parameter 'id' is set - if ($id === null || (is_array($id) && count($id) === 0)) { + // verify the required parameter 'sequence_id' is set + if ($sequence_id === null || (is_array($sequence_id) && count($sequence_id) === 0)) { throw new \InvalidArgumentException( - 'Missing the required parameter $id when calling recurring' + 'Missing the required parameter $sequence_id when calling recurring' ); } - $resourcePath = '/payments/{id}/recurring'; + $resourcePath = '/payments/{sequenceId}/recurring'; $formParams = []; $queryParams = []; $headerParams = []; @@ -1730,10 +1730,10 @@ protected function recurringRequest($id, $recurring_payment_request = null) // path params - if ($id !== null) { + if ($sequence_id !== null) { $resourcePath = str_replace( - '{' . 'id' . '}', - ObjectSerializer::toPathValue($id), + '{' . 'sequenceId' . '}', + ObjectSerializer::toPathValue($sequence_id), $resourcePath ); } diff --git a/lib/Model/CreatePaymentRequest.php b/lib/Model/CreatePaymentRequest.php index b073aa2..9691aaf 100644 --- a/lib/Model/CreatePaymentRequest.php +++ b/lib/Model/CreatePaymentRequest.php @@ -70,7 +70,7 @@ class CreatePaymentRequest implements ModelInterface, ArrayAccess 'payment_method' => '\OpenAPI\Client\Model\PaymentPaymentMethodInput', 'allowed_payment_methods' => '\OpenAPI\Client\Model\PaymentPaymentMethods', 'transaction_type' => '\OpenAPI\Client\Model\PaymentTransactionType', - 'recurring' => '\OpenAPI\Client\Model\PaymentRecurring', + 'sequence' => '\OpenAPI\Client\Model\PaymentSequence', 'description' => 'string', 'customer' => '\OpenAPI\Client\Model\PaymentCustomer', 'billing_details' => '\OpenAPI\Client\Model\PaymentBillingDetails', @@ -97,7 +97,7 @@ class CreatePaymentRequest implements ModelInterface, ArrayAccess 'payment_method' => null, 'allowed_payment_methods' => null, 'transaction_type' => null, - 'recurring' => null, + 'sequence' => null, 'description' => null, 'customer' => null, 'billing_details' => null, @@ -145,7 +145,7 @@ public static function openAPIFormats() 'payment_method' => 'paymentMethod', 'allowed_payment_methods' => 'allowedPaymentMethods', 'transaction_type' => 'transactionType', - 'recurring' => 'recurring', + 'sequence' => 'sequence', 'description' => 'description', 'customer' => 'customer', 'billing_details' => 'billingDetails', @@ -172,7 +172,7 @@ public static function openAPIFormats() 'payment_method' => 'setPaymentMethod', 'allowed_payment_methods' => 'setAllowedPaymentMethods', 'transaction_type' => 'setTransactionType', - 'recurring' => 'setRecurring', + 'sequence' => 'setSequence', 'description' => 'setDescription', 'customer' => 'setCustomer', 'billing_details' => 'setBillingDetails', @@ -199,7 +199,7 @@ public static function openAPIFormats() 'payment_method' => 'getPaymentMethod', 'allowed_payment_methods' => 'getAllowedPaymentMethods', 'transaction_type' => 'getTransactionType', - 'recurring' => 'getRecurring', + 'sequence' => 'getSequence', 'description' => 'getDescription', 'customer' => 'getCustomer', 'billing_details' => 'getBillingDetails', @@ -280,7 +280,7 @@ public function __construct(array $data = null) $this->container['payment_method'] = isset($data['payment_method']) ? $data['payment_method'] : null; $this->container['allowed_payment_methods'] = isset($data['allowed_payment_methods']) ? $data['allowed_payment_methods'] : null; $this->container['transaction_type'] = isset($data['transaction_type']) ? $data['transaction_type'] : null; - $this->container['recurring'] = isset($data['recurring']) ? $data['recurring'] : null; + $this->container['sequence'] = isset($data['sequence']) ? $data['sequence'] : null; $this->container['description'] = isset($data['description']) ? $data['description'] : null; $this->container['customer'] = isset($data['customer']) ? $data['customer'] : null; $this->container['billing_details'] = isset($data['billing_details']) ? $data['billing_details'] : null; @@ -640,25 +640,25 @@ public function setTransactionType($transaction_type) } /** - * Gets recurring + * Gets sequence * - * @return \OpenAPI\Client\Model\PaymentRecurring|null + * @return \OpenAPI\Client\Model\PaymentSequence|null */ - public function getRecurring() + public function getSequence() { - return $this->container['recurring']; + return $this->container['sequence']; } /** - * Sets recurring + * Sets sequence * - * @param \OpenAPI\Client\Model\PaymentRecurring|null $recurring recurring + * @param \OpenAPI\Client\Model\PaymentSequence|null $sequence sequence * * @return $this */ - public function setRecurring($recurring) + public function setSequence($sequence) { - $this->container['recurring'] = $recurring; + $this->container['sequence'] = $sequence; return $this; } diff --git a/lib/Model/PaymentSequence.php b/lib/Model/PaymentSequence.php new file mode 100644 index 0000000..00c1364 --- /dev/null +++ b/lib/Model/PaymentSequence.php @@ -0,0 +1,371 @@ + 'string', + 'recurring' => '\OpenAPI\Client\Model\PaymentSequenceRecurring' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'type' => null, + 'recurring' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'type' => 'type', + 'recurring' => 'recurring' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'type' => 'setType', + 'recurring' => 'setRecurring' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'type' => 'getType', + 'recurring' => 'getRecurring' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const TYPE_RECURRING = 'recurring'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_RECURRING, + ]; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['type'] = isset($data['type']) ? $data['type'] : null; + $this->container['recurring'] = isset($data['recurring']) ? $data['recurring'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['type'] === null) { + $invalidProperties[] = "'type' can't be null"; + } + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type type + * + * @return $this + */ + public function setType($type) + { + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'type', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets recurring + * + * @return \OpenAPI\Client\Model\PaymentSequenceRecurring|null + */ + public function getRecurring() + { + return $this->container['recurring']; + } + + /** + * Sets recurring + * + * @param \OpenAPI\Client\Model\PaymentSequenceRecurring|null $recurring recurring + * + * @return $this + */ + public function setRecurring($recurring) + { + $this->container['recurring'] = $recurring; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/PaymentSequenceRecurring.php b/lib/Model/PaymentSequenceRecurring.php new file mode 100644 index 0000000..81aeb46 --- /dev/null +++ b/lib/Model/PaymentSequenceRecurring.php @@ -0,0 +1,338 @@ + 'string', + 'frequency' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPIFormats = [ + 'expiry' => null, + 'frequency' => 'int32' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'expiry' => 'expiry', + 'frequency' => 'frequency' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'expiry' => 'setExpiry', + 'frequency' => 'setFrequency' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'expiry' => 'getExpiry', + 'frequency' => 'getFrequency' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['expiry'] = isset($data['expiry']) ? $data['expiry'] : '*(The payment method or card expiration)*'; + $this->container['frequency'] = isset($data['frequency']) ? $data['frequency'] : 25; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets expiry + * + * @return string|null + */ + public function getExpiry() + { + return $this->container['expiry']; + } + + /** + * Sets expiry + * + * @param string|null $expiry Date after which no further recurring payments will be performed. Must be formatted as `YYYYMMDD`. + * + * @return $this + */ + public function setExpiry($expiry) + { + $this->container['expiry'] = $expiry; + + return $this; + } + + /** + * Gets frequency + * + * @return int|null + */ + public function getFrequency() + { + return $this->container['frequency']; + } + + /** + * Sets frequency + * + * @param int|null $frequency The minimum number of **days** between the different recurring payments. + * + * @return $this + */ + public function setFrequency($frequency) + { + $this->container['frequency'] = $frequency; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed + */ + public function offsetGet($offset) + { + return isset($this->container[$offset]) ? $this->container[$offset] : null; + } + + /** + * Sets value based on offset. + * + * @param integer $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/lib/Model/PaymentTransactionType.php b/lib/Model/PaymentTransactionType.php index 9353ef9..03da729 100644 --- a/lib/Model/PaymentTransactionType.php +++ b/lib/Model/PaymentTransactionType.php @@ -34,7 +34,7 @@ * PaymentTransactionType Class Doc Comment * * @category Class - * @description Controls when the funds will be captured. - `SALE` - **Default**. MONEI automatically captures funds when the customer authorizes the payment. - `AUTH` - Place a hold on the funds when the customer authorizes the payment, but don’t capture the funds until later. - `RECURRING` - To specify the start of a recurring payment (or subscription). Specific configurations can be set in the `recurring` parameter. + * @description Controls when the funds will be captured. - `SALE` - **Default**. MONEI automatically captures funds when the customer authorizes the payment. - `AUTH` - Place a hold on the funds when the customer authorizes the payment, but don’t capture the funds until later. * @package OpenAPI\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -46,7 +46,6 @@ class PaymentTransactionType */ const SALE = 'SALE'; const AUTH = 'AUTH'; - const RECURRING = 'RECURRING'; /** * Gets allowable values of the enum @@ -57,7 +56,6 @@ public static function getAllowableEnumValues() return [ self::SALE, self::AUTH, - self::RECURRING, ]; } } diff --git a/lib/Model/RecurringPaymentRequest.php b/lib/Model/RecurringPaymentRequest.php index eb0d889..89dbc9e 100644 --- a/lib/Model/RecurringPaymentRequest.php +++ b/lib/Model/RecurringPaymentRequest.php @@ -59,6 +59,7 @@ class RecurringPaymentRequest implements ModelInterface, ArrayAccess protected static $openAPITypes = [ 'order_id' => 'string', 'amount' => 'int', + 'transaction_type' => 'PaymentTransactionType', 'description' => 'string', 'customer' => '\OpenAPI\Client\Model\PaymentCustomer', 'billing_details' => '\OpenAPI\Client\Model\PaymentBillingDetails', @@ -74,6 +75,7 @@ class RecurringPaymentRequest implements ModelInterface, ArrayAccess protected static $openAPIFormats = [ 'order_id' => null, 'amount' => null, + 'transaction_type' => null, 'description' => null, 'customer' => null, 'billing_details' => null, @@ -110,6 +112,7 @@ public static function openAPIFormats() protected static $attributeMap = [ 'order_id' => 'orderId', 'amount' => 'amount', + 'transaction_type' => 'transactionType', 'description' => 'description', 'customer' => 'customer', 'billing_details' => 'billingDetails', @@ -125,6 +128,7 @@ public static function openAPIFormats() protected static $setters = [ 'order_id' => 'setOrderId', 'amount' => 'setAmount', + 'transaction_type' => 'setTransactionType', 'description' => 'setDescription', 'customer' => 'setCustomer', 'billing_details' => 'setBillingDetails', @@ -140,6 +144,7 @@ public static function openAPIFormats() protected static $getters = [ 'order_id' => 'getOrderId', 'amount' => 'getAmount', + 'transaction_type' => 'getTransactionType', 'description' => 'getDescription', 'customer' => 'getCustomer', 'billing_details' => 'getBillingDetails', @@ -209,6 +214,7 @@ public function __construct(array $data = null) { $this->container['order_id'] = isset($data['order_id']) ? $data['order_id'] : null; $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + $this->container['transaction_type'] = isset($data['transaction_type']) ? $data['transaction_type'] : null; $this->container['description'] = isset($data['description']) ? $data['description'] : null; $this->container['customer'] = isset($data['customer']) ? $data['customer'] : null; $this->container['billing_details'] = isset($data['billing_details']) ? $data['billing_details'] : null; @@ -291,6 +297,30 @@ public function setAmount($amount) return $this; } + /** + * Gets transaction_type + * + * @return PaymentTransactionType|null + */ + public function getTransactionType() + { + return $this->container['transaction_type']; + } + + /** + * Sets transaction_type + * + * @param PaymentTransactionType|null $transaction_type Same as the `transactionType` parameter from [create payment](https://docs.monei.net/api/#operation/payments_create). If not sent, it will default in the same transaction type used in the initial payment. + * + * @return $this + */ + public function setTransactionType($transaction_type) + { + $this->container['transaction_type'] = $transaction_type; + + return $this; + } + /** * Gets description * diff --git a/lib/MoneiClient.php b/lib/MoneiClient.php index f6f499e..dbbfb04 100644 --- a/lib/MoneiClient.php +++ b/lib/MoneiClient.php @@ -46,7 +46,7 @@ public function __construct( ) { $this->config = $config ?: Configuration::getDefaultConfiguration(); $this->config->setApiKey('Authorization', $apiKey); - $this->config->setUserAgent('MONEI/PHP/0.1.4'); + $this->config->setUserAgent('MONEI/PHP/0.1.5'); $this->payments = new PaymentsApi(null, $this->config); } diff --git a/test/Model/PaymentSequenceRecurringTest.php b/test/Model/PaymentSequenceRecurringTest.php new file mode 100644 index 0000000..a160781 --- /dev/null +++ b/test/Model/PaymentSequenceRecurringTest.php @@ -0,0 +1,94 @@ +