Class: ActiveShipping::StampsAccountInfoResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/active_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

Returns a new instance of StampsAccountInfoResponse.



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

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.



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

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.



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

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.



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

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.



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

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.



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

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.



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

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.



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

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.



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

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.



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

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.



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

def can_view_online_reports
  @can_view_online_reports
end

#control_totalObject (readonly)

Returns the value of attribute control_total.



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

def control_total
  @control_total
end

#customer_idObject (readonly)

Returns the value of attribute customer_id.



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

def customer_id
  @customer_id
end

#lpoObject (readonly)

Returns the value of attribute lpo.



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

def lpo
  @lpo
end

#max_postage_balanceObject (readonly)

Returns the value of attribute max_postage_balance.



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

def max_postage_balance
  @max_postage_balance
end

#meter_numberObject (readonly)

Returns the value of attribute meter_number.



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

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.



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

def must_use_cost_codes
  @must_use_cost_codes
end

#per_print_limitObject (readonly)

Returns the value of attribute per_print_limit.



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

def per_print_limit
  @per_print_limit
end

#user_idObject (readonly)

Returns the value of attribute user_id.



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

def user_id
  @user_id
end