@@ -314,7 +314,7 @@ public function testCollectRatesRateAmountOriginBased(
314
314
->willReturn (true );
315
315
316
316
$ accessTokenResponse = $ this ->getAccessToken ();
317
- $ rateResponse = $ this ->getRateResponse ($ amount );
317
+ $ rateResponse = $ this ->getRateResponse ($ amount, $ currencyCode , $ rateType );
318
318
319
319
$ this ->serializer ->method ('serialize ' )
320
320
->willReturn ('CollectRateString ' . $ amount );
@@ -632,9 +632,12 @@ public function getTrackResponse($shipTimeStamp, $expectedDate, $expectedTime) :
632
632
* Expected Rate Response
633
633
*
634
634
* @param string $amount
635
+ * @param string $currencyCode
636
+ * @param string $rateType
635
637
* @return array
638
+ * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
636
639
*/
637
- public function getRateResponse ($ amount ) : array
640
+ public function getRateResponse ($ amount, $ currencyCode , $ rateType ) : array
638
641
{
639
642
$ rateResponse = '{"transactionId":"9eb0f436-8bb1-4200-b951-ae10442489f3","output":{"alerts":[{"code":
640
643
"ORIGIN.STATEORPROVINCECODE.CHANGED","message":"The origin state/province code has been changed.",
@@ -749,9 +752,9 @@ public function getRateResponse($amount) : array
749
752
24.26,"totalNetCharge": ' .$ amount .',"totalNetFedExCharge":28.75,"shipmentRateDetail":{"rateZone":"5","dimDivisor"
750
753
:0,"fuelSurchargePercent":18.5,"totalSurcharges":4.49,"totalFreightDiscount":0.0,"surCharges":[{"type":"FUEL",
751
754
"description":"Fuel Surcharge","level":"PACKAGE","amount":4.49}],"totalBillingWeight":{"units":"LB","value":
752
- 23.0},"currency":"USD "},"ratedPackages":[{"groupNumber":0,"effectiveNetDiscount":0.0,"packageRateDetail":
753
- {"rateType":"PAYOR_LIST_PACKAGE ","ratedWeightMethod":"ACTUAL","baseCharge":24.26,"netFreight":24.26,
754
- "totalSurcharges":4.49,"netFedExCharge":28.75,"totalTaxes":0.0,"netCharge":28.75,"totalRebates":0.0,
755
+ 23.0},"currency":" ' . $ currencyCode . ' "},"ratedPackages":[{"groupNumber":0,"effectiveNetDiscount":0.0,
756
+ "packageRateDetail": {"rateType":" ' . $ rateType . ' ","ratedWeightMethod":"ACTUAL","baseCharge":24.26,"netFreight":
757
+ 24.26, "totalSurcharges":4.49,"netFedExCharge":28.75,"totalTaxes":0.0,"netCharge":28.75,"totalRebates":0.0,
755
758
"billingWeight":{"units":"KG","value":10.43},"totalFreightDiscounts":0.0,"surcharges":[{"type":"FUEL",
756
759
"description":"Fuel Surcharge","level":"PACKAGE","amount":4.49}],"currency":"USD"}}],"currency":"USD"}],
757
760
"operationalDetail":{"ineligibleForMoneyBackGuarantee":false,"astraDescription":"FXG","airportId":"ELP",
0 commit comments