Skip to content

Commit

Permalink
Merge pull request #61 from hyperwallet/V4
Browse files Browse the repository at this point in the history
V4
  • Loading branch information
akalichety-hw authored Oct 23, 2020
2 parents 756aeab + 12b7761 commit 2f3a313
Show file tree
Hide file tree
Showing 40 changed files with 2,596 additions and 587 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
ChangeLog
=========
2.0.0
-------------------
- Updated the methods to point to V4 Rest APIs
- Added Business Stakeholders - create, update, list methods
- Added Business Stakeholders - upload multipart document

1.5.1
-------------------
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
Hyperwallet REST SDK (Beta)
===========================

A library to manage users, transfer methods and payments through the Hyperwallet Rest V3 API
A library to manage users, transfer methods and payments through the Hyperwallet Rest V4 API
To access V3 Rest APIs, please use SDK v1.5

Prerequisites
------------
Expand Down
Empty file added hasPreviousPage
Empty file.
423 changes: 340 additions & 83 deletions src/Hyperwallet/Hyperwallet.php

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/Hyperwallet/Model/AuthenticationToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
namespace Hyperwallet\Model;

/**
* Represents a V3 Authentication Token
* Represents a V4 Authentication Token
*
* @property string $value The client token value
Expand Down Expand Up @@ -39,4 +39,4 @@ public function getValue() {
return $this->value;
}

}
}
8 changes: 6 additions & 2 deletions src/Hyperwallet/Model/Balance.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
namespace Hyperwallet\Model;

/**
* Represents a V3 Balance
* Represents a V4 Balance
*
* @property string $currency The currency
* @property string $amount The amount
Expand All @@ -13,13 +13,17 @@ class Balance extends BaseModel {

/**
* @internal
*
*
* Read only fields
*
* @var string[]
*/
private static $READ_ONLY_FIELDS = array('currency', 'amount');

public static function FILTERS_ARRAY() {
return array('currency');
}

/**
* Creates a instance of Balance
*
Expand Down
7 changes: 6 additions & 1 deletion src/Hyperwallet/Model/BankAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
namespace Hyperwallet\Model;

/**
* Represents a V3 Bank Account
* Represents a V4 Bank Account
*
* @property string $token The bank account token
* @property string $type The transfer method type
Expand Down Expand Up @@ -87,6 +87,11 @@ class BankAccount extends BaseModel {
const PROFILE_TYPE_INDIVIDUAL = 'INDIVIDUAL';
const PROFILE_TYPE_BUSINESS = 'BUSINESS';

public static function FILTERS_ARRAY() {
return array('type','status');
}


/**
* Creates a instance of BankAccount
*
Expand Down
4 changes: 2 additions & 2 deletions src/Hyperwallet/Model/BankAccountStatusTransition.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
namespace Hyperwallet\Model;

/**
* Represents a V3 Bank Account Status Transition
* Represents a V4 Bank Account Status Transition
*
* @package Hyperwallet\Model
*/
Expand All @@ -19,4 +19,4 @@ public function __construct(array $properties = array()) {
parent::__construct($properties);
}

}
}
4 changes: 4 additions & 0 deletions src/Hyperwallet/Model/BankCard.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ class BankCard extends BaseModel {
const CARD_BRAND_VISA = 'VISA';
const CARD_BRAND_MASTERCARD = 'MASTERCARD';

public static function FILTERS_ARRAY() {
return array('status');
}

/**
* Creates a instance of BankCard
*
Expand Down
4 changes: 2 additions & 2 deletions src/Hyperwallet/Model/BankCardStatusTransition.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
namespace Hyperwallet\Model;

/**
* Represents a V3 Bank Card Status Transition
* Represents a V4 Bank Card Status Transition
*
* @package Hyperwallet\Model
*/
Expand All @@ -18,4 +18,4 @@ public function __construct(array $properties = array()) {
parent::__construct($properties);
}

}
}
Loading

0 comments on commit 2f3a313

Please sign in to comment.