forked from stripe/stripe-php
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathToken.php
36 lines (31 loc) · 767 Bytes
/
Token.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
namespace Stripe;
/**
* Class Token
*
* @property string $id
* @property string $object
* @property BankAccount $bank_account
* @property Card $card
* @property string $client_ip
* @property int $created
* @property bool $livemode
* @property string $type
* @property bool $used
*
* @package Stripe
*/
class Token extends ApiResource
{
const OBJECT_NAME = "token";
use ApiOperations\Create;
use ApiOperations\Retrieve;
/**
* Possible string representations of the token type.
* @link https://stripe.com/docs/api/tokens/object#token_object-type
*/
const TYPE_ACCOUNT = 'account';
const TYPE_BANK_ACCOUNT = 'bank_account';
const TYPE_CARD = 'card';
const TYPE_PII = 'pii';
}