Skip to content

Commit

Permalink
Merge pull request #88 from gocardless/template-changes
Browse files Browse the repository at this point in the history
Template changes
  • Loading branch information
paprikati authored May 4, 2020
2 parents 9c6efc1 + 6d09305 commit 3fc599b
Show file tree
Hide file tree
Showing 30 changed files with 170 additions and 87 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gocardless/gocardless-pro",
"description": "GoCardless Pro PHP Client Library",
"version": "4.1.0",
"version": "4.1.1",
"keywords": [
"gocardless",
"direct debit",
Expand Down
4 changes: 2 additions & 2 deletions lib/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function __construct($config)
'Content-Type' => 'application/json',
'Authorization' => "Bearer " . $access_token,
'GoCardless-Client-Library' => 'gocardless-pro-php',
'GoCardless-Client-Version' => '4.1.0',
'GoCardless-Client-Version' => '4.1.1',
'User-Agent' => $this->getUserAgent()
),
'http_errors' => false,
Expand Down Expand Up @@ -388,7 +388,7 @@ private function getUserAgent()
{
$curlinfo = curl_version();
$uagent = array();
$uagent[] = 'gocardless-pro-php/4.1.0';
$uagent[] = 'gocardless-pro-php/4.1.1';
$uagent[] = 'schema-version/2015-07-06';
$uagent[] = 'GuzzleHttp/' . \GuzzleHttp\Client::VERSION;
$uagent[] = 'php/' . phpversion();
Expand Down
5 changes: 2 additions & 3 deletions lib/Resources/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,8 @@ class Customer extends BaseResource

/**
* The customer's address region, county or department. For US customers a 2
* letter state code ([ISO
* 3166-2:US](https://en.wikipedia.org/wiki/ISO_3166-2:US) e.g CA) is
* required.
* letter [ISO3166-2:US](https://en.wikipedia.org/wiki/ISO_3166-2:US) state
* code is required (e.g. `CA` for California).
*/
protected $region;

Expand Down
8 changes: 4 additions & 4 deletions lib/Resources/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ class Payment extends BaseResource

/**
* A future date on which the payment should be collected. If not specified,
* the payment will be collected as soon as possible. This must be on or
* after the [mandate](#core-endpoints-mandates)'s
* `next_possible_charge_date`, and will be rolled-forwards by GoCardless if
* it is not a working day.
* the payment will be collected as soon as possible. If the value is before
* the [mandate](#core-endpoints-mandates)'s `next_possible_charge_date` we
* will roll it forwards to match. If the value is not a working day it will
* be rolled forwards to the next available one.
*/
protected $charge_date;

Expand Down
2 changes: 2 additions & 0 deletions lib/Services/BankDetailsLookupsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
/**
* Service that provides access to the BankDetailsLookup
* endpoints of the API
*
* @method create()
*/
class BankDetailsLookupsService extends BaseService
{
Expand Down
5 changes: 5 additions & 0 deletions lib/Services/CreditorBankAccountsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
/**
* Service that provides access to the CreditorBankAccount
* endpoints of the API
*
* @method create()
* @method list()
* @method get()
* @method disable()
*/
class CreditorBankAccountsService extends BaseService
{
Expand Down
5 changes: 5 additions & 0 deletions lib/Services/CreditorsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
/**
* Service that provides access to the Creditor
* endpoints of the API
*
* @method create()
* @method list()
* @method get()
* @method update()
*/
class CreditorsService extends BaseService
{
Expand Down
2 changes: 2 additions & 0 deletions lib/Services/CurrencyExchangeRatesService.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
/**
* Service that provides access to the CurrencyExchangeRate
* endpoints of the API
*
* @method list()
*/
class CurrencyExchangeRatesService extends BaseService
{
Expand Down
6 changes: 6 additions & 0 deletions lib/Services/CustomerBankAccountsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
/**
* Service that provides access to the CustomerBankAccount
* endpoints of the API
*
* @method create()
* @method list()
* @method get()
* @method update()
* @method disable()
*/
class CustomerBankAccountsService extends BaseService
{
Expand Down
2 changes: 2 additions & 0 deletions lib/Services/CustomerNotificationsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
/**
* Service that provides access to the CustomerNotification
* endpoints of the API
*
* @method handle()
*/
class CustomerNotificationsService extends BaseService
{
Expand Down
6 changes: 6 additions & 0 deletions lib/Services/CustomersService.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
/**
* Service that provides access to the Customer
* endpoints of the API
*
* @method create()
* @method list()
* @method get()
* @method update()
* @method remove()
*/
class CustomersService extends BaseService
{
Expand Down
3 changes: 3 additions & 0 deletions lib/Services/EventsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
/**
* Service that provides access to the Event
* endpoints of the API
*
* @method list()
* @method get()
*/
class EventsService extends BaseService
{
Expand Down
6 changes: 6 additions & 0 deletions lib/Services/InstalmentSchedulesService.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
/**
* Service that provides access to the InstalmentSchedule
* endpoints of the API
*
* @method createWithDates()
* @method createWithSchedule()
* @method list()
* @method get()
* @method cancel()
*/
class InstalmentSchedulesService extends BaseService
{
Expand Down
3 changes: 3 additions & 0 deletions lib/Services/MandateImportEntriesService.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
/**
* Service that provides access to the MandateImportEntry
* endpoints of the API
*
* @method create()
* @method list()
*/
class MandateImportEntriesService extends BaseService
{
Expand Down
5 changes: 5 additions & 0 deletions lib/Services/MandateImportsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
/**
* Service that provides access to the MandateImport
* endpoints of the API
*
* @method create()
* @method get()
* @method submit()
* @method cancel()
*/
class MandateImportsService extends BaseService
{
Expand Down
2 changes: 2 additions & 0 deletions lib/Services/MandatePdfsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
/**
* Service that provides access to the MandatePdf
* endpoints of the API
*
* @method create()
*/
class MandatePdfsService extends BaseService
{
Expand Down
Loading

0 comments on commit 3fc599b

Please sign in to comment.