| 1 | <?php  | 
            ||
| 10 | class Transaction  | 
            ||
| 11 | { | 
            ||
| 12 | /**  | 
            ||
| 13 | * Transaction id.  | 
            ||
| 14 | *  | 
            ||
| 15 | * @var string  | 
            ||
| 16 | */  | 
            ||
| 17 | protected $id;  | 
            ||
| 18 | |||
| 19 | /**  | 
            ||
| 20 | * Created time.  | 
            ||
| 21 | *  | 
            ||
| 22 | * @var \DateTime  | 
            ||
| 23 | */  | 
            ||
| 24 | protected $created;  | 
            ||
| 25 | |||
| 26 | /**  | 
            ||
| 27 | * Description.  | 
            ||
| 28 | *  | 
            ||
| 29 | * @var string  | 
            ||
| 30 | */  | 
            ||
| 31 | protected $description;  | 
            ||
| 32 | |||
| 33 | /**  | 
            ||
| 34 | * Amount.  | 
            ||
| 35 | *  | 
            ||
| 36 | * @var integer  | 
            ||
| 37 | */  | 
            ||
| 38 | protected $amount;  | 
            ||
| 39 | |||
| 40 | /**  | 
            ||
| 41 | * Currency.  | 
            ||
| 42 | *  | 
            ||
| 43 | * @var string  | 
            ||
| 44 | */  | 
            ||
| 45 | protected $currency;  | 
            ||
| 46 | |||
| 47 | /**  | 
            ||
| 48 | * Merchant.  | 
            ||
| 49 | *  | 
            ||
| 50 | * @var string  | 
            ||
| 51 | */  | 
            ||
| 52 | protected $merchant;  | 
            ||
| 53 | |||
| 54 | /**  | 
            ||
| 55 | * Notes.  | 
            ||
| 56 | *  | 
            ||
| 57 | * @var string  | 
            ||
| 58 | */  | 
            ||
| 59 | protected $notes;  | 
            ||
| 60 | |||
| 61 | /**  | 
            ||
| 62 | * Metadata.  | 
            ||
| 63 | *  | 
            ||
| 64 | * @var array  | 
            ||
| 65 | */  | 
            ||
| 66 | protected $metadata = [];  | 
            ||
| 67 | |||
| 68 | /**  | 
            ||
| 69 | * Balance.  | 
            ||
| 70 | *  | 
            ||
| 71 | * @var integer  | 
            ||
| 72 | */  | 
            ||
| 73 | protected $accountBalance;  | 
            ||
| 74 | |||
| 75 | /**  | 
            ||
| 76 | * Attachments.  | 
            ||
| 77 | *  | 
            ||
| 78 | * @var array  | 
            ||
| 79 | */  | 
            ||
| 80 | protected $attachments = [];  | 
            ||
| 81 | |||
| 82 | /**  | 
            ||
| 83 | * Category.  | 
            ||
| 84 | *  | 
            ||
| 85 | * @var string  | 
            ||
| 86 | */  | 
            ||
| 87 | protected $category;  | 
            ||
| 88 | |||
| 89 | /**  | 
            ||
| 90 | * Is load.  | 
            ||
| 91 | *  | 
            ||
| 92 | * @var boolean  | 
            ||
| 93 | */  | 
            ||
| 94 | protected $isLoad;  | 
            ||
| 95 | |||
| 96 | /**  | 
            ||
| 97 | * Settled.  | 
            ||
| 98 | *  | 
            ||
| 99 | * @var \DateTime  | 
            ||
| 100 | */  | 
            ||
| 101 | protected $settled;  | 
            ||
| 102 | |||
| 103 | /**  | 
            ||
| 104 | * Local amount.  | 
            ||
| 105 | *  | 
            ||
| 106 | * @var integer  | 
            ||
| 107 | */  | 
            ||
| 108 | protected $localAmount;  | 
            ||
| 109 | |||
| 110 | /**  | 
            ||
| 111 | * Local currency.  | 
            ||
| 112 | *  | 
            ||
| 113 | * @var integer  | 
            ||
| 114 | */  | 
            ||
| 115 | protected $localCurrency;  | 
            ||
| 116 | |||
| 117 | /**  | 
            ||
| 118 | * @return string  | 
            ||
| 119 | */  | 
            ||
| 120 | public function getId()  | 
            ||
| 124 | |||
| 125 | /**  | 
            ||
| 126 | * @return \DateTime  | 
            ||
| 127 | */  | 
            ||
| 128 | public function getCreated()  | 
            ||
| 132 | |||
| 133 | /**  | 
            ||
| 134 | * @return string  | 
            ||
| 135 | */  | 
            ||
| 136 | public function getDescription()  | 
            ||
| 140 | |||
| 141 | /**  | 
            ||
| 142 | * @return int  | 
            ||
| 143 | */  | 
            ||
| 144 | public function getAmount()  | 
            ||
| 148 | |||
| 149 | /**  | 
            ||
| 150 | * @return string  | 
            ||
| 151 | */  | 
            ||
| 152 | public function getCurrency()  | 
            ||
| 156 | |||
| 157 | /**  | 
            ||
| 158 | * @return string  | 
            ||
| 159 | */  | 
            ||
| 160 | public function getMerchant()  | 
            ||
| 164 | |||
| 165 | /**  | 
            ||
| 166 | * @return string  | 
            ||
| 167 | */  | 
            ||
| 168 | public function getNotes()  | 
            ||
| 172 | |||
| 173 | /**  | 
            ||
| 174 | * @return array  | 
            ||
| 175 | */  | 
            ||
| 176 | public function getMetadata()  | 
            ||
| 180 | |||
| 181 | /**  | 
            ||
| 182 | * @return int  | 
            ||
| 183 | */  | 
            ||
| 184 | public function getAccountBalance()  | 
            ||
| 188 | |||
| 189 | /**  | 
            ||
| 190 | * @return array  | 
            ||
| 191 | */  | 
            ||
| 192 | public function getAttachments()  | 
            ||
| 196 | |||
| 197 | /**  | 
            ||
| 198 | * @return string  | 
            ||
| 199 | */  | 
            ||
| 200 | public function getCategory()  | 
            ||
| 204 | |||
| 205 | /**  | 
            ||
| 206 | * @return boolean  | 
            ||
| 207 | */  | 
            ||
| 208 | public function isIsLoad()  | 
            ||
| 212 | |||
| 213 | /**  | 
            ||
| 214 | * @return \DateTime  | 
            ||
| 215 | */  | 
            ||
| 216 | public function getSettled()  | 
            ||
| 220 | |||
| 221 | /**  | 
            ||
| 222 | * @return int  | 
            ||
| 223 | */  | 
            ||
| 224 | public function getLocalAmount()  | 
            ||
| 228 | |||
| 229 | /**  | 
            ||
| 230 | * @return int  | 
            ||
| 231 | */  | 
            ||
| 232 | public function getLocalCurrency()  | 
            ||
| 236 | }  | 
            ||
| 237 |