Class: Moov::Models::Components::Underwriting
- Inherits:
-
Object
- Object
- Moov::Models::Components::Underwriting
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/underwriting.rb
Overview
Describes underwriting values (in USD) used for card payment acceptance.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(average_transaction_size: nil, max_transaction_size: nil, average_monthly_transaction_volume: nil, status: nil, volume_by_customer_type: nil, card_volume_distribution: nil, fulfillment: nil, geographic_reach: nil, business_presence: nil, pending_litigation: nil, volume_share_by_customer_type: nil, collect_funds: nil, money_transfer: nil, send_funds: nil) ⇒ Underwriting
constructor
A new instance of Underwriting.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(average_transaction_size: nil, max_transaction_size: nil, average_monthly_transaction_volume: nil, status: nil, volume_by_customer_type: nil, card_volume_distribution: nil, fulfillment: nil, geographic_reach: nil, business_presence: nil, pending_litigation: nil, volume_share_by_customer_type: nil, collect_funds: nil, money_transfer: nil, send_funds: nil) ⇒ Underwriting
Returns a new instance of Underwriting.
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/moov/models/components/underwriting.rb', line 46 def initialize(average_transaction_size: nil, max_transaction_size: nil, average_monthly_transaction_volume: nil, status: nil, volume_by_customer_type: nil, card_volume_distribution: nil, fulfillment: nil, geographic_reach: nil, business_presence: nil, pending_litigation: nil, volume_share_by_customer_type: nil, collect_funds: nil, money_transfer: nil, send_funds: nil) @average_transaction_size = average_transaction_size @max_transaction_size = max_transaction_size @average_monthly_transaction_volume = average_monthly_transaction_volume @status = status @volume_by_customer_type = volume_by_customer_type @card_volume_distribution = card_volume_distribution @fulfillment = fulfillment @geographic_reach = geographic_reach @business_presence = business_presence @pending_litigation = pending_litigation @volume_share_by_customer_type = volume_share_by_customer_type @collect_funds = collect_funds @money_transfer = money_transfer @send_funds = send_funds end |
Instance Method Details
#==(other) ⇒ Object
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/moov/models/components/underwriting.rb', line 64 def ==(other) return false unless other.is_a? self.class return false unless @average_transaction_size == other.average_transaction_size return false unless @max_transaction_size == other.max_transaction_size return false unless @average_monthly_transaction_volume == other.average_monthly_transaction_volume return false unless @status == other.status return false unless @volume_by_customer_type == other.volume_by_customer_type return false unless @card_volume_distribution == other.card_volume_distribution return false unless @fulfillment == other.fulfillment return false unless @geographic_reach == other.geographic_reach return false unless @business_presence == other.business_presence return false unless @pending_litigation == other.pending_litigation return false unless @volume_share_by_customer_type == other.volume_share_by_customer_type return false unless @collect_funds == other.collect_funds return false unless @money_transfer == other.money_transfer return false unless @send_funds == other.send_funds true end |