lib/shippinglogic/fedex/rate.rb in binarylogic-shippinglogic-1.1.0 vs lib/shippinglogic/fedex/rate.rb in binarylogic-shippinglogic-1.1.1

- old
+ new

@@ -4,19 +4,29 @@ # or a single rate for a specific service. # # == Options # === Shipper options # + # * <tt>shipper_name</tt> - name of the shipper. + # * <tt>shipper_title</tt> - title of the shipper. + # * <tt>shipper_company_name</tt> - company name of the shipper. + # * <tt>shipper_phone_number</tt> - phone number of the shipper. + # * <tt>shipper_email</tt> - email of the shipper. # * <tt>shipper_streets</tt> - street part of the address, separate multiple streets with a new line, dont include blank lines. # * <tt>shipper_city</tt> - city part of the address. # * <tt>shipper_state_</tt> - state part of the address, use state abreviations. # * <tt>shipper_postal_code</tt> - postal code part of the address. Ex: zip for the US. # * <tt>shipper_country</tt> - country code part of the address. FedEx expects abbreviations, but Shippinglogic will convert full names to abbreviations for you. # * <tt>shipper_residential</tt> - a boolean value representing if the address is redential or not (default: false) # # === Recipient options # + # * <tt>recipient_name</tt> - name of the recipient. + # * <tt>recipient_title</tt> - title of the recipient. + # * <tt>recipient_company_name</tt> - company name of the recipient. + # * <tt>recipient_phone_number</tt> - phone number of the recipient. + # * <tt>recipient_email</tt> - email of the recipient. # * <tt>recipient_streets</tt> - street part of the address, separate multiple streets with a new line, dont include blank lines. # * <tt>recipient_city</tt> - city part of the address. # * <tt>recipient_state</tt> - state part of the address, use state abreviations. # * <tt>recipient_postal_code</tt> - postal code part of the address. Ex: zip for the US. # * <tt>recipient_country</tt> - country code part of the address. FedEx expects abbreviations, but Shippinglogic will convert full names to abbreviations for you. @@ -90,17 +100,27 @@ class Service; attr_accessor :name, :type, :saturday, :delivered_by, :speed, :rate, :currency; end VERSION = {:major => 6, :intermediate => 0, :minor => 0} # shipper options + attribute :shipper_name, :string + attribute :shipper_title, :string + attribute :shipper_company_name, :string + attribute :shipper_phone_number, :string + attribute :shipper_email, :string attribute :shipper_streets, :string attribute :shipper_city, :string attribute :shipper_state, :string attribute :shipper_postal_code, :string attribute :shipper_country, :string, :modifier => :country_code attribute :shipper_residential, :boolean, :default => false # recipient options + attribute :recipient_name, :string + attribute :recipient_title, :string + attribute :recipient_company_name, :string + attribute :recipient_phone_number, :string + attribute :recipient_email, :string attribute :recipient_streets, :string attribute :recipient_city, :string attribute :recipient_state, :string attribute :recipient_postal_code, :string attribute :recipient_country, :string, :modifier => :country_code \ No newline at end of file