Class: ActiveMerchant::Shipping::StampsAccountInfoResponse

Inherits:
Response 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 = {}) ⇒ StampsAccountInfoResponse


772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 772

def initialize(success, message, params = {}, options = {})
  super
  @customer_id = options[:customer_id]
  @meter_number = options[:meter_number]
  @user_id = options[:user_id]
  @available_postage = options[:available_postage]
  @control_total = options[:control_total]
  @max_postage_balance = options[:max_postage_balance]
  @lpo = Location.new(
    city: options[:lpo_city],
    state: options[:lpo_state],
    zip: options[:lpo_zip]
  )
  @can_print_shipping         = options[:can_print_shipping]
  @can_use_cost_codes         = options[:can_use_cost_codes]
  @can_use_hidden_postage     = options[:can_use_hidden_postage]
  @can_purchase_sdc_insurance = options[:can_purchase_sdc_insurance]
  @can_print_memo             = options[:can_print_memo]
  @can_print_international    = options[:can_print_international]
  @can_purchase_postage       = options[:can_purchase_postage]
  @can_edit_cost_codes        = options[:can_edit_cost_codes]
  @must_use_cost_codes        = options[:must_use_cost_codes]
  @can_view_online_reports    = options[:can_view_online_reports]
  @per_print_limit            = options[:per_print_limit]
end

Instance Attribute Details

#available_postageObject (readonly)

Returns the value of attribute available_postage


757
758
759
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 757

def available_postage
  @available_postage
end

#can_edit_cost_codesObject (readonly) Also known as: can_edit_cost_codes?

Returns the value of attribute can_edit_cost_codes


759
760
761
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 759

def can_edit_cost_codes
  @can_edit_cost_codes
end

#can_print_internationalObject (readonly) Also known as: can_print_international?

Returns the value of attribute can_print_international


758
759
760
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 758

def can_print_international
  @can_print_international
end

#can_print_memoObject (readonly) Also known as: can_print_memo?

Returns the value of attribute can_print_memo


759
760
761
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 759

def can_print_memo
  @can_print_memo
end

#can_print_shippingObject (readonly) Also known as: can_print_shipping?

Returns the value of attribute can_print_shipping


758
759
760
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 758

def can_print_shipping
  @can_print_shipping
end

#can_purchase_postageObject (readonly) Also known as: can_purchase_postage?

Returns the value of attribute can_purchase_postage


759
760
761
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 759

def can_purchase_postage
  @can_purchase_postage
end

#can_purchase_sdc_insuranceObject (readonly) Also known as: can_purchase_sdc_insurance?

Returns the value of attribute can_purchase_sdc_insurance


758
759
760
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 758

def can_purchase_sdc_insurance
  @can_purchase_sdc_insurance
end

#can_use_cost_codesObject (readonly) Also known as: can_use_cost_codes?

Returns the value of attribute can_use_cost_codes


758
759
760
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 758

def can_use_cost_codes
  @can_use_cost_codes
end

#can_use_hidden_postageObject (readonly) Also known as: can_use_hidden_postage?

Returns the value of attribute can_use_hidden_postage


758
759
760
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 758

def can_use_hidden_postage
  @can_use_hidden_postage
end

#can_view_online_reportsObject (readonly) Also known as: can_view_online_reports?

Returns the value of attribute can_view_online_reports


759
760
761
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 759

def can_view_online_reports
  @can_view_online_reports
end

#control_totalObject (readonly)

Returns the value of attribute control_total


757
758
759
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 757

def control_total
  @control_total
end

#customer_idObject (readonly)

Returns the value of attribute customer_id


757
758
759
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 757

def customer_id
  @customer_id
end

#lpoObject (readonly)

Returns the value of attribute lpo


757
758
759
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 757

def lpo
  @lpo
end

#max_postage_balanceObject (readonly)

Returns the value of attribute max_postage_balance


757
758
759
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 757

def max_postage_balance
  @max_postage_balance
end

#meter_numberObject (readonly)

Returns the value of attribute meter_number


757
758
759
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 757

def meter_number
  @meter_number
end

#must_use_cost_codesObject (readonly) Also known as: must_use_cost_codes?

Returns the value of attribute must_use_cost_codes


759
760
761
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 759

def must_use_cost_codes
  @must_use_cost_codes
end

#per_print_limitObject (readonly)

Returns the value of attribute per_print_limit


759
760
761
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 759

def per_print_limit
  @per_print_limit
end

#user_idObject (readonly)

Returns the value of attribute user_id


757
758
759
# File 'lib/active_shipping/shipping/carriers/stamps.rb', line 757

def user_id
  @user_id
end