Total Complexity | 3 |
Total Lines | 60 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
5 | class TransactionRequest extends BaseDataType |
||
6 | { |
||
7 | const AUTH_ONLY = 'authOnlyTransaction'; |
||
8 | const PRIOR_AUTH_CAPTURE = 'priorAuthCaptureTransaction'; |
||
9 | const AUTH_CAPTURE = 'authCaptureTransaction'; |
||
10 | const CAPTURE_ONLY = 'captureOnlyTransaction'; |
||
11 | const REFUND = 'refundTransaction'; |
||
12 | const VOID = 'voidTransaction'; |
||
13 | |||
14 | protected $propertyMap = [ |
||
15 | 'transactionType', |
||
16 | 'amount', |
||
17 | 'currencyCode', |
||
18 | 'payment', |
||
19 | 'profile', |
||
20 | 'solution', |
||
21 | 'callId', |
||
22 | 'terminalNumber', |
||
23 | 'authCode', |
||
24 | 'refTransId', |
||
25 | 'order', |
||
26 | 'lineItems', |
||
27 | 'tax', |
||
28 | 'duty', |
||
29 | 'shipping', |
||
30 | 'taxExempt', |
||
31 | 'poNumber', |
||
32 | 'customer', |
||
33 | 'billTo', |
||
34 | 'shipTo', |
||
35 | 'customerIP', |
||
36 | 'cardholderAuthentication', |
||
37 | 'retail', |
||
38 | 'employeeId', |
||
39 | 'transactionSettings', |
||
40 | 'userFields', |
||
41 | 'surcharge', |
||
42 | 'merchantDescriptor', |
||
43 | ]; |
||
44 | |||
45 | protected $properties = [ |
||
46 | 'solution' => [ |
||
47 | 'id' => 'A1000009', |
||
48 | ], |
||
49 | ]; |
||
50 | |||
51 | 9 | public function addPayment(PaymentMethodInterface $paymentMethod) |
|
54 | 9 | } |
|
55 | |||
56 | 8 | public function addOrder(Order $order) |
|
59 | 8 | } |
|
60 | |||
61 | 1 | public function addLineItem(LineItem $lineItem) |
|
68 |