-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix/php-related-issues
# Conflicts: # MangoPay/Libraries/ApiBase.php
- Loading branch information
Showing
32 changed files
with
546 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?php | ||
|
||
namespace MangoPay; | ||
|
||
class ApiVirtualAccounts extends Libraries\ApiBase | ||
{ | ||
/** | ||
* Create new Virtual Account | ||
* @param String $walletId | ||
* @param VirtualAccount $virtualAccount | ||
* @return \MangoPay\VirtualAccount Virtual Account object returned from API | ||
*/ | ||
public function Create($virtualAccount, $walletId, $idempotencyKey = null) | ||
{ | ||
return $this->CreateObject('virtual_account_create', $virtualAccount, '\MangoPay\VirtualAccount', $walletId, $idempotencyKey); | ||
} | ||
|
||
/** | ||
* @param string $walletId | ||
* @param string $virtualAccountId | ||
* @return \MangoPay\VirtualAccount | ||
*/ | ||
public function Get($walletId, $virtualAccountId) | ||
{ | ||
return $this->GetObject('virtual_account_get', '\MangoPay\VirtualAccount', $walletId, $virtualAccountId); | ||
} | ||
|
||
/** | ||
* @param \MangoPay\Pagination $pagination Pagination object | ||
* @param string $walletId | ||
* @return \MangoPay\VirtualAccount[] | ||
*/ | ||
public function GetAll($walletId, $pagination = null, $sorting = null) | ||
{ | ||
return $this->GetList('virtual_account_get_all', $pagination, '\MangoPay\VirtualAccount', $walletId, $sorting); | ||
} | ||
|
||
/** | ||
* @param string $walletId | ||
* @param string $virtualAccountId | ||
* @return \MangoPay\VirtualAccount | ||
*/ | ||
public function Deactivate($walletId, $virtualAccountId) | ||
{ | ||
$empty_object = new VirtualAccount(); | ||
return $this->SaveObject('virtual_account_deactivate', $empty_object, '\MangoPay\VirtualAccount', $walletId, $virtualAccountId); | ||
} | ||
|
||
/** | ||
* @return \MangoPay\VirtualAccountAvailabilities | ||
*/ | ||
public function GetAvailabilities() | ||
{ | ||
return $this->GetObject('virtual_account_get_availabilities', '\MangoPay\VirtualAccountAvailabilities'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace MangoPay; | ||
|
||
class InternationalAccount extends Libraries\Dto | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
public $Iban; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $Bic; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace MangoPay; | ||
|
||
class InternationalAccountDetails extends Libraries\Dto | ||
{ | ||
/** | ||
* Information about the address associated with the international IBAN account. | ||
* @var VirtualAccountAddress | ||
*/ | ||
public $Address; | ||
|
||
/** | ||
* The IBAN and BIC of the account. | ||
* @var InternationalAccount | ||
*/ | ||
public $Account; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace MangoPay; | ||
|
||
class LocalAccount extends Libraries\Dto | ||
{ | ||
/** | ||
* The account number of the account | ||
* @var string | ||
*/ | ||
public $AccountNumber; | ||
|
||
/** | ||
* The sort code of the account. | ||
* @var string | ||
*/ | ||
public $SortCode; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace MangoPay; | ||
|
||
class LocalAccountDetails extends Libraries\Dto | ||
{ | ||
/** | ||
* Information about the address associated with the local IBAN account. | ||
* @var VirtualAccountAddress | ||
*/ | ||
public $Address; | ||
|
||
/** | ||
* Information about the address associated with the local IBAN account. | ||
* @var LocalAccount | ||
*/ | ||
public $Account; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.