Skip to content

Commit

Permalink
chore: Add Account Links API
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Gaspar <[email protected]>
  • Loading branch information
brunogaspar committed Dec 21, 2019
1 parent 0e6e865 commit ee264af
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Api/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,14 @@ public function persons()
{
return new Account\Persons($this->config);
}

/**
* Returns an account links api instance.
*
* @return \Cartalyst\Stripe\Api\Account\Persons
*/
public function accountLinks()
{
return new Account\AccountLink($this->config);
}
}
37 changes: 37 additions & 0 deletions src/Api/Account/AccountLink.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php

/**
* Part of the Stripe package.
*
* NOTICE OF LICENSE
*
* Licensed under the 3-clause BSD License.
*
* This source file is subject to the 3-clause BSD License that is
* bundled with this package in the LICENSE file.
*
* @package Stripe
* @version 2.3.0
* @author Cartalyst LLC
* @license BSD License (3-clause)
* @copyright (c) 2011-2019, Cartalyst LLC
* @link http://cartalyst.com
*/

namespace Cartalyst\Stripe\Api\Account;

use Cartalyst\Stripe\Api\Api;

class AccountLink extends Api
{
/**
* Creates a new account link.
*
* @param array $parameters
* @return array
*/
public function create(array $parameters = [])
{
return $this->_post('account_links', $parameters);
}
}

0 comments on commit ee264af

Please sign in to comment.