Module: AdaptivePayments::ReceiverListAliases

Included in:
PayRequest, RefundRequest
Defined in:
lib/pp-adaptive/types/aliases/receiver_list_aliases.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/pp-adaptive/types/aliases/receiver_list_aliases.rb', line 3

def self.included(base)
  base.instance_eval do
    alias_params :receiver_list, {
      :receivers => :receivers
    }

    alias_params :first_receiver, {
      :receiver_email  => :email,
      :receiver_amount => :amount,
      :payment_type    => :payment_type,
      :payment_subtype => :payment_subtype,
      :invoice_id      => :invoice_id,
      :receiver_phone  => :phone
    }

    alias_params :receiver_phone, {
      :receiver_phone_number       => :phone_number,
      :receiver_phone_country_code => :country_code,
      :receiver_phone_extension    => :extension
    }
  end
end