diff --git a/composer.json b/composer.json index 6bdbe54b..0e694bd7 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "gocardless/gocardless-pro", "description": "GoCardless Pro PHP Client Library", - "version": "5.9.0", + "version": "5.10.0", "keywords": [ "gocardless", "direct debit", diff --git a/lib/Client.php b/lib/Client.php index 57fecdf5..0294a4a3 100644 --- a/lib/Client.php +++ b/lib/Client.php @@ -58,7 +58,7 @@ public function __construct($config) 'Content-Type' => 'application/json', 'Authorization' => "Bearer " . $access_token, 'GoCardless-Client-Library' => 'gocardless-pro-php', - 'GoCardless-Client-Version' => '5.9.0', + 'GoCardless-Client-Version' => '5.10.0', 'User-Agent' => $this->getUserAgent() ), 'http_errors' => false, @@ -98,6 +98,8 @@ public function __construct($config) $this->services['events'] = new Services\EventsService($this->api_client); + $this->services['exports'] = new Services\ExportsService($this->api_client); + $this->services['instalment_schedules'] = new Services\InstalmentSchedulesService($this->api_client); $this->services['institutions'] = new Services\InstitutionsService($this->api_client); @@ -314,6 +316,19 @@ public function events() return $this->services['events']; } + /** + * Service for interacting with exports + * + * @return Services\ExportsService + */ + public function exports() + { + if (!isset($this->services['exports'])) { + throw new \Exception('Key exports does not exist in services array'); + } + return $this->services['exports']; + } + /** * Service for interacting with instalment schedule * @@ -649,7 +664,7 @@ private function getUserAgent() { $curlinfo = curl_version(); $uagent = array(); - $uagent[] = 'gocardless-pro-php/5.9.0'; + $uagent[] = 'gocardless-pro-php/5.10.0'; $uagent[] = 'schema-version/2015-07-06'; if (defined('\GuzzleHttp\Client::MAJOR_VERSION')) { $uagent[] = 'GuzzleHttp/' . \GuzzleHttp\Client::MAJOR_VERSION; diff --git a/lib/Resources/BillingRequestTemplate.php b/lib/Resources/BillingRequestTemplate.php index d9d5e4d8..1545e7e3 100644 --- a/lib/Resources/BillingRequestTemplate.php +++ b/lib/Resources/BillingRequestTemplate.php @@ -127,7 +127,7 @@ class BillingRequestTemplate extends BaseResource /** * [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency * code. `GBP` and `EUR` supported; `GBP` with your customers in the UK and - * for `EUR` with your customers in Germany only. + * for `EUR` with your customers in supported Eurozone countries only. */ protected $payment_request_currency; @@ -147,10 +147,10 @@ class BillingRequestTemplate extends BaseResource /** * (Optional) A scheme used for Open Banking payments. Currently * `faster_payments` is supported in the UK (GBP) and `sepa_credit_transfer` - * and `sepa_instant_credit_transfer` are supported in Germany (EUR). In - * Germany, `sepa_credit_transfer` is used as the default. Please be aware - * that `sepa_instant_credit_transfer` may incur an additional fee for your - * customer. + * and `sepa_instant_credit_transfer` are supported in supported Eurozone + * countries (EUR). For Eurozone countries, `sepa_credit_transfer` is used + * as the default. Please be aware that `sepa_instant_credit_transfer` may + * incur an additional fee for your customer. */ protected $payment_request_scheme; diff --git a/lib/Resources/CustomerBankAccount.php b/lib/Resources/CustomerBankAccount.php index 20f64ef4..e132f24a 100644 --- a/lib/Resources/CustomerBankAccount.php +++ b/lib/Resources/CustomerBankAccount.php @@ -28,11 +28,9 @@ class CustomerBankAccount extends BaseResource protected $model_name = "CustomerBankAccount"; /** - * Name of the account holder, as known by the bank. Usually this is the - * same as the name stored with the linked - * [creditor](#core-endpoints-creditors). This field will be transliterated, - * upcased and truncated to 18 characters. This field is required unless the - * request includes a [customer bank account + * Name of the account holder, as known by the bank. This field will be + * transliterated, upcased and truncated to 18 characters. This field is + * required unless the request includes a [customer bank account * token](#javascript-flow-customer-bank-account-tokens). */ protected $account_holder_name; diff --git a/lib/Resources/Event.php b/lib/Resources/Event.php index 63de9a52..dd2a60cb 100644 --- a/lib/Resources/Event.php +++ b/lib/Resources/Event.php @@ -84,6 +84,7 @@ class Event extends BaseResource *