lib/fedex/rate.rb in fedex-3.1.0 vs lib/fedex/rate.rb in fedex-3.3.0
- old
+ new
@@ -16,12 +16,13 @@
# @total_net_charge #The net charge after applying all discounts and surcharges
# @total_taxes #Total of the transportation-based taxes
# @total_net_freight #The freight charge minus dicounts
# @total_surcharges #The total amount of all surcharges applied to this shipment
# @total_base_charge #The total base charge
- 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
+ attr_accessor :service_type, :rate_type, :rate_zone, :total_billing_weight, :total_freight_discounts, :total_net_charge, :total_taxes, :total_net_freight, :total_surcharges, :total_base_charge
def initialize(options = {})
+ @service_type = options[:service_type]
@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_freight_discounts]
@total_net_charge = options[:total_net_charge][:amount]
@@ -31,6 +32,6 @@
@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
+end