active_shipping icon indicating copy to clipboard operation
active_shipping copied to clipboard

Add Discounts to Rate Output

Open rdaniels opened this issue 11 years ago • 2 comments

Love the gem, nice work! I'm getting a discount from FedEx and I'd like to split it with my customers. There is a TotalFreightDiscount field in the FedEx return. Any chance you could add this to Rates and Rate_Estimates? I'm using my own gem to call ActiveShipping, so I can't add my own github fork to my .gemspec file

fedex.rb, line 370

:total_discount => rated_shipment.get_text('RatedShipmentDetails/ShipmentRateDetail/TotalFreightDiscounts/Amount').to_s.to_f

rdaniels avatar Mar 25 '14 16:03 rdaniels

Any chance you can create a PR for it?

maartenvg avatar Mar 25 '14 16:03 maartenvg

will do

rdaniels avatar Mar 26 '14 20:03 rdaniels