Skip to content

Commit 35ddbd0

Browse files
committed
Update: authorize float for amounts in EurekaPaymentGatewayClient
1 parent 72d9d08 commit 35ddbd0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Gateway/Client/EurekaPaymentGatewayClient.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ private function resolvePayOrderRankRequestMessageOptions(array $payOrderRankReq
440440
'Attempt' => 1,
441441
'Rank' => 1,
442442
])
443-
->setAllowedTypes('Amount', ['int'])
443+
->setAllowedTypes('Amount', ['int', 'float'])
444444
->setAllowedTypes('OrderRef', ['string'])
445445
->setAllowedTypes('Attempt', ['int'])
446446
->setAllowedTypes('Rank', ['int'])
@@ -458,8 +458,8 @@ private function resolveUpdateOrderRequestMessageOptions(array $updateOrderReque
458458
'OrderRef',
459459
'ScoringToken',
460460
])
461-
->setAllowedTypes('NewAmount', ['int'])
462-
->setAllowedTypes('OldAmount', ['int'])
461+
->setAllowedTypes('NewAmount', ['int', 'float'])
462+
->setAllowedTypes('OldAmount', ['int', 'float'])
463463
->setAllowedTypes('OrderRef', ['string'])
464464
->setAllowedTypes('ScoringToken', ['string'])
465465
;
@@ -833,7 +833,7 @@ private function resolveOrderOptions(array $orderOptions): array
833833
])
834834
->setAllowedTypes('ShoppingCartItemCount', ['int'])
835835
->setAllowedTypes('ShoppingCartRef', ['int', 'string'])
836-
->setAllowedTypes('TotalAmount', ['int'])
836+
->setAllowedTypes('TotalAmount', ['int', 'float'])
837837
;
838838

839839
return $orderResolver->resolve($orderOptions);
@@ -858,7 +858,7 @@ private function resolveOptionalCustomerHistoryOptions(array $optionalCustomerHi
858858
'PaidLitigationOrderAmount24Month',
859859
'ScoreSimulationCount7Days',
860860
])
861-
->setAllowedTypes('CanceledOrderAmount', ['null', 'int'])
861+
->setAllowedTypes('CanceledOrderAmount', ['null', 'int', 'float'])
862862
->setAllowedTypes('CanceledOrderCount', ['null', 'int'])
863863
->setAllowedTypes('FirstOrderDate', ['null', 'string', \DateTime::class])
864864
->setNormalizer('FirstOrderDate', function (Options $options, $value) {
@@ -903,8 +903,8 @@ private function resolveOptionalCustomerHistoryOptions(array $optionalCustomerHi
903903
->setAllowedTypes('ValidatedOneTimeOrderCount', ['null', 'int'])
904904
->setAllowedTypes('ValidatedOrderCount', ['null', 'int'])
905905
->setAllowedTypes('ClientIpAddressRecurrence', ['null', 'int'])
906-
->setAllowedTypes('OngoingLitigationOrderAmount', ['null', 'int'])
907-
->setAllowedTypes('PaidLitigationOrderAmount24Month', ['null', 'int'])
906+
->setAllowedTypes('OngoingLitigationOrderAmount', ['null', 'int', 'float'])
907+
->setAllowedTypes('PaidLitigationOrderAmount24Month', ['null', 'int', 'float'])
908908
->setAllowedTypes('ScoreSimulationCount7Days', ['null', 'int'])
909909
;
910910

0 commit comments

Comments
 (0)