Class: ActiveMerchant::Shipping::StampsPurchasePostageResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/active_shipping/shipping/carriers/stamps.rb

Instance Attribute Summary collapse

Attributes inherited from Response

#message, #params, #request, #test, #xml

Instance Method Summary collapse

Methods inherited from Response

#success?, #test?

Constructor Details

#initialize(success, message, params = {}, options = {}) ⇒ StampsPurchasePostageResponse

Returns a new instance of StampsPurchasePostageResponse


802
803
804
805
806
807
808
809
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 802

def initialize(success, message, params = {}, options = {})
  super
  @purchase_status   = options[:purchase_status]
  @transaction_id    = options[:transaction_id]
  @available_postage = options[:available_postage]
  @control_total     = options[:control_total]
  @rejection_reason  = options[:rejection_reason]
end

Instance Attribute Details

#available_postageObject (readonly)

Returns the value of attribute available_postage


800
801
802
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 800

def available_postage
  @available_postage
end

#control_totalObject (readonly)

Returns the value of attribute control_total


800
801
802
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 800

def control_total
  @control_total
end

#purchase_statusObject (readonly)

Returns the value of attribute purchase_status


800
801
802
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 800

def purchase_status
  @purchase_status
end

#rejection_reasonObject (readonly)

Returns the value of attribute rejection_reason


800
801
802
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 800

def rejection_reason
  @rejection_reason
end

#transaction_idObject (readonly)

Returns the value of attribute transaction_id


800
801
802
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 800

def transaction_id
  @transaction_id
end