Sha256: 9b4cad45a180fe3d30d4d2b49f703a842759c805b6fb2b63bf4915b5ce6c69e4

Contents?: true

Size: 1.12 KB

Versions: 3

Compression:

Stored size: 1.12 KB

Contents

module ActiveMerchant #:nodoc:
  module Shipping
    
    class ShipmentAcceptResponse < Response
      
      attr_reader :shipment_charges
      attr_reader :identification_number
      attr_reader :billing_weight
      attr_reader :weight_unit
      attr_reader :currency_code
      attr_reader :shipment_packages
      attr_reader :high_value_report_image
      attr_reader :high_value_report_image_format
      
      def initialize(success, message, params = {}, options = {})
        @shipment_packages = []
        @identification_number = options[:identification_number]
        @shipment_charges = options[:shipment_charges]
        @currency_code = options[:currency_code]
        @billing_weight = options[:billing_weight]
        @weight_unit = options[:weight_unit]
        unless options[:high_value_report_image].blank?
          @high_value_report_image = options[:high_value_report_image]
          @high_value_report_image_format = options[:high_value_report_image_format] || "HTML"
        end
        options[:shipment_packages].each{ |package| @shipment_packages << package }
        super
      end
      
    end
    
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rclements_active_shipping-0.9.15 lib/active_shipping/shipping/shipment_accept_response.rb
rclements_active_shipping-0.9.14 lib/active_shipping/shipping/shipment_accept_response.rb
rclements_active_shipping-0.9.13 lib/active_shipping/shipping/shipment_accept_response.rb