Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
TransactionInterface.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Sales\Api\Data;
7 
16 {
21  const TYPE_PAYMENT = 'payment';
22 
23  const TYPE_ORDER = 'order';
24 
25  const TYPE_AUTH = 'authorization';
26 
27  const TYPE_CAPTURE = 'capture';
28 
29  const TYPE_VOID = 'void';
30 
31  const TYPE_REFUND = 'refund';
32 
38  /*
39  * Transaction ID.
40  */
41  const TRANSACTION_ID = 'transaction_id';
42  /*
43  * Parent ID.
44  */
45  const PARENT_ID = 'parent_id';
46  /*
47  * Order ID.
48  */
49  const ORDER_ID = 'order_id';
50  /*
51  * Payment ID.
52  */
53  const PAYMENT_ID = 'payment_id';
54  /*
55  * Transaction business ID.
56  */
57  const TXN_ID = 'txn_id';
58  /*
59  * Parent transaction ID.
60  */
61  const PARENT_TXN_ID = 'parent_txn_id';
62  /*
63  * Transaction type.
64  */
65  const TXN_TYPE = 'txn_type';
66  /*
67  * Is closed flag.
68  */
69  const IS_CLOSED = 'is_closed';
70  /*
71  * Additional information.
72  */
73  const ADDITIONAL_INFORMATION = 'additional_information';
74  /*
75  * Created-at timestamp.
76  */
77  const CREATED_AT = 'created_at';
78  /*
79  * Method.
80  */
81  const METHOD = 'method';
82  /*
83  * Increment ID.
84  */
85  const INCREMENT_ID = 'increment_id';
86  /*
87  * Child transactions.
88  */
89  const CHILD_TRANSACTIONS = 'child_transactions';
90 
96  public function getTransactionId();
97 
104  public function setTransactionId($id);
105 
111  public function getParentId();
112 
118  public function getOrderId();
119 
125  public function getPaymentId();
126 
132  public function getTxnId();
133 
139  public function getParentTxnId();
140 
146  public function getTxnType();
147 
153  public function getIsClosed();
154 
160  public function getAdditionalInformation();
161 
167  public function getCreatedAt();
168 
175  public function setCreatedAt($createdAt);
176 
182  public function getChildTransactions();
183 
190  public function setParentId($id);
191 
198  public function setOrderId($id);
199 
206  public function setPaymentId($id);
207 
214  public function setTxnId($id);
215 
222  public function setParentTxnId($id);
223 
230  public function setTxnType($txnType);
231 
238  public function setIsClosed($isClosed);
239 
250  public function setAdditionalInformation($key, $value);
251 
257  public function getExtensionAttributes();
258 
265  public function setExtensionAttributes(\Magento\Sales\Api\Data\TransactionExtensionInterface $extensionAttributes);
266 }
$id
Definition: fieldset.phtml:14
setExtensionAttributes(\Magento\Sales\Api\Data\TransactionExtensionInterface $extensionAttributes)
$value
Definition: gender.phtml:16
$extensionAttributes
Definition: payment.php:22