Sha256: df4a4b8c46a328579aec6f222c67eaa76b57e0adfdac78c6c5285fc4a1bc8018

Contents?: true

Size: 1.2 KB

Versions: 1

Compression:

Stored size: 1.2 KB

Contents

require_relative '../../../common/jsonifier'

module MangoModel

  # User entity of +PersonType::NATURAL+
  # A Natural User represents an actual person.
  class NaturalUser < User
    include MangoPay::Jsonifier

    # [String] Their first name
    attr_accessor :first_name

    # [String] Their last name
    attr_accessor :last_name

    # [Address] Their address
    attr_accessor :address

    # [Integer] Their date of birth (UNIX timestamp)
    attr_accessor :birthday

    # [String] Their place of birth
    attr_accessor :birthplace

    # [CountryIso] Their nationality
    attr_accessor :nationality

    # [CountryIso] Their current country of residence
    attr_accessor :country_of_residence

    # [String] Their occupation
    attr_accessor :occupation

    # [Integer] Their income range (see MangoModel::IncomeRange)
    attr_accessor :income_range

    # [String] Proof of their identity
    attr_accessor :proof_of_identity

    # [String] Proof of their address
    attr_accessor :proof_of_address

    # [String] Their capacity within MangoPay
    attr_accessor :capacity

    def initialize
      self.person_type = PersonType::NATURAL
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mangopay-v4-4.0.0 lib/mangopay/model/entity/user/natural_user.rb