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
<?php
namespace Braintree;
use Braintree\Instance;
/**
* Line item associated with a transaction
*
* @package Braintree
*/
/**
* creates an instance of TransactionLineItem
*
*
* @package Braintree
*
* @property-read string $quantity
* @property-read string $name
* @property-read string $description
* @property-read string $kind
* @property-read string $unitAmount
* @property-read string $unitTaxAmount
* @property-read string $totalAmount
* @property-read string $discountAmount
* @property-read string $unitOfMeasure
* @property-read string $productCode
* @property-read string $commodityCode
* @property-read string $url
*/
class TransactionLineItem extends Instance
{
// LineItem Kinds
const CREDIT = 'credit';
const DEBIT = 'debit';
protected $_attributes = [];
/**
* @ignore
*/
public function __construct($attributes)
{
parent::__construct($attributes);
}
public static function findAll($transactionId)
{
return Configuration::gateway()->transactionLineItem()->findAll($transactionId);
}
}
class_alias('Braintree\TransactionLineItem', 'Braintree_TransactionLineItem');
class_alias('Braintree\TransactionLineItem', 'Braintree\Transaction\LineItem');
class_alias('Braintree\TransactionLineItem', 'Braintree_Transaction_LineItem');