This repository has been archived by the owner on Sep 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Card.php
78 lines (68 loc) · 1.57 KB
/
Card.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php declare(strict_types=1);
namespace Squid\Patreon\Entities;
class Card extends Entity
{
/**
* Resource type (from Patreon).
*
* @var string
*/
protected $type = 'card';
/**
* Type of payment method.
* Example: "card"
*
* @var string
*/
public $card_type;
/**
* Timestamp of when the card was added, ISO 8601 combined date and time in UTC.
* Example: "2017-12-01T16:33:48+00:00"
*
* @var string
*/
public $created_at;
/**
* Timestamp of when the card is due to expire, ISO 8601 combined date and
* time in UTC. Appears to always be the first day of the month with 0 seconds.
* Example: "2020-12-01T00:00:00+00:00"
*
* @var string
*/
public $expiration_date;
/**
* Has a payment attempt to this card failed?
* Maybe: this may refer to has a payment failed *ever* or did the last payment
* attempt fail. Clarification required.
*
* @var bool
*/
public $has_a_failed_payment;
/**
* Unknown.
* Probably: if the card has been verified with an authorization charge.
*
* @var bool
*/
public $is_verified;
/**
* Last 4 digits of the card.
* Example: 1234
*
* @var string
*/
public $number;
/**
* Stripe payment token.
*
* @var string
*/
public $payment_token;
/**
* Unknown.
* Probably: an ID referencing the payment token for payment log auditing?
*
* @var integer
*/
public $payment_token_id;
}