@@ 83-89 (lines=7) @@ | ||
80 | ); |
|
81 | } |
|
82 | ||
83 | private function parseInvoicePayment($payment, Currency $currency): InvoicePayment |
|
84 | { |
|
85 | return new InvoicePayment( |
|
86 | Uuid::fromString($payment['uuid']), |
|
87 | new Money($payment['amount'], $currency) |
|
88 | ); |
|
89 | } |
|
90 | ||
91 | private function parseMobilePayment($payment, Currency $currency): MobilePayment |
|
92 | { |
|
@@ 91-97 (lines=7) @@ | ||
88 | ); |
|
89 | } |
|
90 | ||
91 | private function parseMobilePayment($payment, Currency $currency): MobilePayment |
|
92 | { |
|
93 | return new MobilePayment( |
|
94 | Uuid::fromString($payment['uuid']), |
|
95 | new Money($payment['amount'], $currency) |
|
96 | ); |
|
97 | } |
|
98 | ||
99 | private function parseSwichPayment($payment, Currency $currency): SwishPayment |
|
100 | { |
|
@@ 99-105 (lines=7) @@ | ||
96 | ); |
|
97 | } |
|
98 | ||
99 | private function parseSwichPayment($payment, Currency $currency): SwishPayment |
|
100 | { |
|
101 | return new SwishPayment( |
|
102 | Uuid::fromString($payment['uuid']), |
|
103 | new Money($payment['amount'], $currency) |
|
104 | ); |
|
105 | } |
|
106 | ||
107 | private function parseVippsPayment($payment, Currency $currency): VippsPayment |
|
108 | { |
|
@@ 107-113 (lines=7) @@ | ||
104 | ); |
|
105 | } |
|
106 | ||
107 | private function parseVippsPayment($payment, Currency $currency): VippsPayment |
|
108 | { |
|
109 | return new VippsPayment( |
|
110 | Uuid::fromString($payment['uuid']), |
|
111 | new Money($payment['amount'], $currency) |
|
112 | ); |
|
113 | } |
|
114 | ||
115 | private function getFromKey($key, array $data) |
|
116 | { |