Class: PayoneerApi::Payee

Inherits:
Base
  • Object
show all
Defined in:
lib/payoneer_api/payee.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ Payee

Returns a new instance of Payee.



7
8
9
10
# File 'lib/payoneer_api/payee.rb', line 7

def initialize(attrs = {})
  super
  initialize_card_attrs if card?
end

Instance Attribute Details

#address1Object (readonly)

Returns the value of attribute address1.



3
4
5
# File 'lib/payoneer_api/payee.rb', line 3

def address1
  @address1
end

#address2Object (readonly)

Returns the value of attribute address2.



3
4
5
# File 'lib/payoneer_api/payee.rb', line 3

def address2
  @address2
end

#card_activation_statusObject (readonly)

Returns the value of attribute card_activation_status.



3
4
5
# File 'lib/payoneer_api/payee.rb', line 3

def card_activation_status
  @card_activation_status
end

#card_idObject (readonly)

Returns the value of attribute card_id.



3
4
5
# File 'lib/payoneer_api/payee.rb', line 3

def card_id
  @card_id
end

#card_ship_dateObject (readonly)

Returns the value of attribute card_ship_date.



3
4
5
# File 'lib/payoneer_api/payee.rb', line 3

def card_ship_date
  @card_ship_date
end

#card_statusObject (readonly)

Returns the value of attribute card_status.



3
4
5
# File 'lib/payoneer_api/payee.rb', line 3

def card_status
  @card_status
end

#cardsObject (readonly)

Returns the value of attribute cards.



3
4
5
# File 'lib/payoneer_api/payee.rb', line 3

def cards
  @cards
end

#cityObject (readonly)

Returns the value of attribute city.



3
4
5
# File 'lib/payoneer_api/payee.rb', line 3

def city
  @city
end

#countryObject (readonly)

Returns the value of attribute country.



3
4
5
# File 'lib/payoneer_api/payee.rb', line 3

def country
  @country
end

#emailObject (readonly)

Returns the value of attribute email.



3
4
5
# File 'lib/payoneer_api/payee.rb', line 3

def email
  @email
end

#first_nameObject (readonly)

Returns the value of attribute first_name.



3
4
5
# File 'lib/payoneer_api/payee.rb', line 3

def first_name
  @first_name
end

#last_nameObject (readonly)

Returns the value of attribute last_name.



3
4
5
# File 'lib/payoneer_api/payee.rb', line 3

def last_name
  @last_name
end

#mobileObject (readonly)

Returns the value of attribute mobile.



3
4
5
# File 'lib/payoneer_api/payee.rb', line 3

def mobile
  @mobile
end

#pay_out_methodObject (readonly)

Returns the value of attribute pay_out_method.



3
4
5
# File 'lib/payoneer_api/payee.rb', line 3

def pay_out_method
  @pay_out_method
end

#payee_statusObject (readonly)

Returns the value of attribute payee_status.



3
4
5
# File 'lib/payoneer_api/payee.rb', line 3

def payee_status
  @payee_status
end

#phoneObject (readonly)

Returns the value of attribute phone.



3
4
5
# File 'lib/payoneer_api/payee.rb', line 3

def phone
  @phone
end

#reg_dateObject (readonly)

Returns the value of attribute reg_date.



3
4
5
# File 'lib/payoneer_api/payee.rb', line 3

def reg_date
  @reg_date
end

#stateObject (readonly)

Returns the value of attribute state.



3
4
5
# File 'lib/payoneer_api/payee.rb', line 3

def state
  @state
end

#zipObject (readonly)

Returns the value of attribute zip.



3
4
5
# File 'lib/payoneer_api/payee.rb', line 3

def zip
  @zip
end

Instance Method Details

#card?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/payoneer_api/payee.rb', line 12

def card?
  pay_out_method == 'Prepaid Card'
end

#direct_deposit?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/payoneer_api/payee.rb', line 16

def direct_deposit?
  pay_out_method == 'Direct deposit'
end

#iach?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/payoneer_api/payee.rb', line 20

def iach?
  pay_out_method == 'iACH'
end