Class: ActiveMerchant::Shipping::ReturnShipment

Inherits:
Shipment show all
Defined in:
lib/active_shipping/shipping/return_shipment.rb

Constant Summary

Constants inherited from Shipment

Shipment::FEDEX_DROPOFF_TYPES, Shipment::FEDEX_PAYMENT_TYPES, Shipment::FEDEX_RATE_REQUEST_TYPES

Instance Attribute Summary collapse

Attributes inherited from Shipment

#dropoff_type, #label, #package_count, #packaging_type, #payment_type, #payor_account_country, #payor_account_number, #rate_request_type, #recipient, #requested_packages, #service, #ship_at, #shipper, #special_services, #total_insured_amount, #total_insured_currency, #total_weight_units, #total_weight_value, #tracking_number, #transit_time

Instance Method Summary collapse

Methods included from ActiveMerchant::Shipping

#payor_account_country=

Constructor Details

#initialize(opts = {}) ⇒ ReturnShipment

Returns a new instance of ReturnShipment.



6
7
8
9
10
11
# File 'lib/active_shipping/shipping/return_shipment.rb', line 6

def initialize(opts = {})
  super
  self.rma_number = opts[:rma_number]
  self.payment_type ||= 'RECIPIENT'
  @return_type = opts[:return_type] || 'PRINT_RETURN_LABEL'
end

Instance Attribute Details

#return_typeObject (readonly)

Returns the value of attribute return_type.



5
6
7
# File 'lib/active_shipping/shipping/return_shipment.rb', line 5

def return_type
  @return_type
end

#rma_numberObject

Returns the value of attribute rma_number.



4
5
6
# File 'lib/active_shipping/shipping/return_shipment.rb', line 4

def rma_number
  @rma_number
end