forked from matt423/ups
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix rates response when there is only a single rate from UPS
- Loading branch information
1 parent
c3151ea
commit 7d22654
Showing
4 changed files
with
86 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<RatingServiceSelectionResponse> | ||
<Response> | ||
<ResponseStatusCode>1</ResponseStatusCode> | ||
<ResponseStatusDescription>Success</ResponseStatusDescription> | ||
</Response> | ||
<RatedShipment> | ||
<Service> | ||
<Code>11</Code> | ||
</Service> | ||
<RatedShipmentWarning>Your invoice may vary from the displayed reference rates</RatedShipmentWarning> | ||
<RatedShipmentWarning>Ship To Address Classification is changed from Commercial to Residential</RatedShipmentWarning> | ||
<BillingWeight> | ||
<UnitOfMeasurement> | ||
<Code>KGS</Code> | ||
</UnitOfMeasurement> | ||
<Weight>0.5</Weight> | ||
</BillingWeight> | ||
<TransportationCharges> | ||
<CurrencyCode>GBP</CurrencyCode> | ||
<MonetaryValue>25.03</MonetaryValue> | ||
</TransportationCharges> | ||
<ServiceOptionsCharges> | ||
<CurrencyCode>GBP</CurrencyCode> | ||
<MonetaryValue>0.00</MonetaryValue> | ||
</ServiceOptionsCharges> | ||
<TotalCharges> | ||
<CurrencyCode>GBP</CurrencyCode> | ||
<MonetaryValue>25.03</MonetaryValue> | ||
</TotalCharges> | ||
<GuaranteedDaysToDelivery /> | ||
<ScheduledDeliveryTime /> | ||
<RatedPackage> | ||
<TransportationCharges> | ||
<CurrencyCode /> | ||
<MonetaryValue /> | ||
</TransportationCharges> | ||
<ServiceOptionsCharges> | ||
<CurrencyCode /> | ||
<MonetaryValue /> | ||
</ServiceOptionsCharges> | ||
<TotalCharges> | ||
<CurrencyCode /> | ||
<MonetaryValue /> | ||
</TotalCharges> | ||
<Weight>0.5</Weight> | ||
<BillingWeight> | ||
<UnitOfMeasurement> | ||
<Code /> | ||
</UnitOfMeasurement> | ||
<Weight /> | ||
</BillingWeight> | ||
</RatedPackage> | ||
</RatedShipment> | ||
</RatingServiceSelectionResponse> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters