Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
PaymentTokenInterface.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Vault\Api\Data;
7 
15 {
19  /*
20  * Entity ID.
21  */
22  const ENTITY_ID = 'entity_id';
23  /*
24  * Customer ID.
25  */
26  const CUSTOMER_ID = 'customer_id';
27  /*
28  * Unique hash for frontend.
29  */
30  const PUBLIC_HASH = 'public_hash';
31  /*
32  * Payment method code.
33  */
34  const PAYMENT_METHOD_CODE = 'payment_method_code';
35  /*
36  * Token type.
37  */
38  const TYPE = 'type';
39  /*
40  * Token creation timestamp.
41  */
42  const CREATED_AT = 'created_at';
43  /*
44  * Token expiration timestamp.
45  */
46  const EXPIRES_AT = 'expires_at';
47  /*
48  * Gateway token ID.
49  */
50  const GATEWAY_TOKEN = 'gateway_token';
51  /*
52  * Additional details.
53  */
54  const DETAILS = 'details';
55  /*
56  * Is vault payment record active.
57  */
58  const IS_ACTIVE = 'is_active';
59  /*
60  * Is vault payment token visible.
61  */
62  const IS_VISIBLE = 'is_visible';
63 
70  public function getEntityId();
71 
79  public function setEntityId($entityId);
80 
87  public function getCustomerId();
88 
96  public function setCustomerId($customerId);
97 
104  public function getPublicHash();
105 
113  public function setPublicHash($hash);
114 
121  public function getPaymentMethodCode();
122 
130  public function setPaymentMethodCode($code);
131 
138  public function getType();
139 
147  public function setType($type);
148 
155  public function getCreatedAt();
156 
164  public function setCreatedAt($timestamp);
165 
172  public function getExpiresAt();
173 
181  public function setExpiresAt($timestamp);
182 
189  public function getGatewayToken();
190 
198  public function setGatewayToken($token);
199 
206  public function getTokenDetails();
207 
215  public function setTokenDetails($details);
216 
224  public function getIsActive();
225 
233  public function setIsActive($isActive);
234 
242  public function getIsVisible();
243 
251  public function setIsVisible($isVisible);
252 }
$details
Definition: vault.phtml:10
$type
Definition: item.phtml:13
$code
Definition: info.phtml:12