2017-04-18 05:44:08 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace Stripe;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Class Token
|
|
|
|
|
*
|
|
|
|
|
* @property string $id
|
|
|
|
|
* @property string $object
|
2019-05-03 02:22:27 +02:00
|
|
|
* @property BankAccount $bank_account
|
|
|
|
|
* @property Card $card
|
2018-03-06 13:52:56 +01:00
|
|
|
* @property string $client_ip
|
2017-04-18 05:44:08 +02:00
|
|
|
* @property int $created
|
|
|
|
|
* @property bool $livemode
|
|
|
|
|
* @property string $type
|
|
|
|
|
* @property bool $used
|
|
|
|
|
*
|
|
|
|
|
* @package Stripe
|
|
|
|
|
*/
|
|
|
|
|
class Token extends ApiResource
|
|
|
|
|
{
|
2019-05-03 02:22:27 +02:00
|
|
|
|
|
|
|
|
const OBJECT_NAME = "token";
|
|
|
|
|
|
2018-03-06 13:52:56 +01:00
|
|
|
use ApiOperations\Create;
|
|
|
|
|
use ApiOperations\Retrieve;
|
2019-05-03 02:22:27 +02:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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';
|
2017-04-18 05:44:08 +02:00
|
|
|
}
|