-
Notifications
You must be signed in to change notification settings - Fork 848
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #567 from stripe/remi-add-account-links
Add support for the Account Link resource
- Loading branch information
Showing
6 changed files
with
46 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace Stripe; | ||
|
||
/** | ||
* Class AccountLink | ||
* | ||
* @property string $object | ||
* @property int $created | ||
* @property int $expires_at | ||
* @property string $url | ||
* | ||
* @package Stripe | ||
*/ | ||
class AccountLink extends ApiResource | ||
{ | ||
|
||
const OBJECT_NAME = "account_link"; | ||
|
||
use ApiOperations\Create; | ||
} |
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,21 @@ | ||
<?php | ||
|
||
namespace Stripe; | ||
|
||
class AccountLinkTest extends TestCase | ||
{ | ||
public function testIsCreatable() | ||
{ | ||
$this->expectsRequest( | ||
'post', | ||
'/v1/account_links' | ||
); | ||
$resource = AccountLink::create([ | ||
"account" => "acct_123", | ||
"failure_url" => "https://stripe.com/failure", | ||
"success_url" => "https://stripe.com/success", | ||
"type" => "custom_account_verification", | ||
]); | ||
$this->assertInstanceOf("Stripe\\AccountLink", $resource); | ||
} | ||
} |
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