lib/fedex/rate.rb in fedex-0.1.0 vs lib/fedex/rate.rb in fedex-1.0.0
- old
+ new
@@ -21,14 +21,16 @@
attr_accessor :rate_type, :rate_zone, :total_bilint_weight, :total_freight_discounts, :total_net_charge, :total_taxes, :total_net_freight, :total_surcharges, :total_base_charge
def initialize(options = {})
@rate_type = options[:rate_type]
@rate_zone = options[:rate_zone]
@total_billing_weight = "#{options[:total_billing_weight][:value]} #{options[:total_billing_weight][:units]}"
- @total_freight_discounts = options[:total_fright_discounts]
+ @total_freight_discounts = options[:total_freight_discounts]
@total_net_charge = options[:total_net_charge][:amount]
@total_taxes = options[:total_taxes][:amount]
@total_net_freight = options[:total_net_freight][:amount]
@total_surcharges = options[:total_surcharges][:amount]
@total_base_charge = options[:total_base_charge][:amount]
+ @total_net_fedex_charge = (options[:total_net_fe_dex_charge]||={})[:amount]
+ @total_rebates = (options[:total_rebates]||={})[:amount]
end
end
end
\ No newline at end of file