Skip to content

Commit

Permalink
Update: authorize float for amounts in EurekaPaymentGatewayClient
Browse files Browse the repository at this point in the history
  • Loading branch information
BeBlood committed Sep 9, 2020
1 parent 72d9d08 commit 35ddbd0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Gateway/Client/EurekaPaymentGatewayClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ private function resolvePayOrderRankRequestMessageOptions(array $payOrderRankReq
'Attempt' => 1,
'Rank' => 1,
])
->setAllowedTypes('Amount', ['int'])
->setAllowedTypes('Amount', ['int', 'float'])
->setAllowedTypes('OrderRef', ['string'])
->setAllowedTypes('Attempt', ['int'])
->setAllowedTypes('Rank', ['int'])
Expand All @@ -458,8 +458,8 @@ private function resolveUpdateOrderRequestMessageOptions(array $updateOrderReque
'OrderRef',
'ScoringToken',
])
->setAllowedTypes('NewAmount', ['int'])
->setAllowedTypes('OldAmount', ['int'])
->setAllowedTypes('NewAmount', ['int', 'float'])
->setAllowedTypes('OldAmount', ['int', 'float'])
->setAllowedTypes('OrderRef', ['string'])
->setAllowedTypes('ScoringToken', ['string'])
;
Expand Down Expand Up @@ -833,7 +833,7 @@ private function resolveOrderOptions(array $orderOptions): array
])
->setAllowedTypes('ShoppingCartItemCount', ['int'])
->setAllowedTypes('ShoppingCartRef', ['int', 'string'])
->setAllowedTypes('TotalAmount', ['int'])
->setAllowedTypes('TotalAmount', ['int', 'float'])
;

return $orderResolver->resolve($orderOptions);
Expand All @@ -858,7 +858,7 @@ private function resolveOptionalCustomerHistoryOptions(array $optionalCustomerHi
'PaidLitigationOrderAmount24Month',
'ScoreSimulationCount7Days',
])
->setAllowedTypes('CanceledOrderAmount', ['null', 'int'])
->setAllowedTypes('CanceledOrderAmount', ['null', 'int', 'float'])
->setAllowedTypes('CanceledOrderCount', ['null', 'int'])
->setAllowedTypes('FirstOrderDate', ['null', 'string', \DateTime::class])
->setNormalizer('FirstOrderDate', function (Options $options, $value) {
Expand Down Expand Up @@ -903,8 +903,8 @@ private function resolveOptionalCustomerHistoryOptions(array $optionalCustomerHi
->setAllowedTypes('ValidatedOneTimeOrderCount', ['null', 'int'])
->setAllowedTypes('ValidatedOrderCount', ['null', 'int'])
->setAllowedTypes('ClientIpAddressRecurrence', ['null', 'int'])
->setAllowedTypes('OngoingLitigationOrderAmount', ['null', 'int'])
->setAllowedTypes('PaidLitigationOrderAmount24Month', ['null', 'int'])
->setAllowedTypes('OngoingLitigationOrderAmount', ['null', 'int', 'float'])
->setAllowedTypes('PaidLitigationOrderAmount24Month', ['null', 'int', 'float'])
->setAllowedTypes('ScoreSimulationCount7Days', ['null', 'int'])
;

Expand Down

0 comments on commit 35ddbd0

Please sign in to comment.