Skip to content

Commit

Permalink
Removes purpose_code from Payments Find Entry Point. Update unit tests (
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathancouchman authored Dec 1, 2020
1 parent 672d559 commit 5dec3b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/EntryPoint/PaymentsEntryPoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ protected function convertPaymentToRequest(Payment $payment, $convertForFind = f
'beneficiary_id' => $payment->getBeneficiaryId(),
'conversion_id' => $payment->getConversionId(),
'unique_request_id' => $payment->getUniqueRequestId(),
'purpose_code' => $payment->getPurposeCode(),
'charge_type' => $payment->getChargeType(),
'fee_currency' => $payment->getFeeCurrency(),
'fee_amount' => $payment->getFeeAmount()
Expand All @@ -72,8 +71,9 @@ protected function convertPaymentToRequest(Payment $payment, $convertForFind = f
return $common + [
'reference' => $payment->getReference(),
'payment_date' => (null === $paymentDate) ? $paymentDate : $paymentDate->format('Y-m-d'),
'payment_type' => $payment->getPaymentType()
];
'payment_type' => $payment->getPaymentType(),
'purpose_code' => $payment->getPurposeCode()
];
}

/**
Expand Down
4 changes: 0 additions & 4 deletions tests/EntryPoint/PaymentsEntryPointTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,6 @@ public function canFindWithDefaultValues()
'order' => null,
'order_asc_desc' => null,
'unique_request_id' => null,
'purpose_code' => null,
'charge_type' => null,
'fee_amount' => null,
'fee_currency' => null
Expand Down Expand Up @@ -462,9 +461,6 @@ public function canFindWithSomeValues()
'order' => null,
'order_asc_desc' => null,
'unique_request_id' => null,
'purpose_code' => null,
'charge_type' => null,
'purpose_code' => null,
'charge_type' => null,
'fee_amount' => null,
'fee_currency' => null
Expand Down

0 comments on commit 5dec3b3

Please sign in to comment.