Sha256: 8e52b369aa3d4fa176c0a8ba2e82aeefaca4faa9dc4bdacb015c3fea7d948ef5

Contents?: true

Size: 1.15 KB

Versions: 3

Compression:

Stored size: 1.15 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

3 entries across 3 versions & 1 rubygems

Version Path
mangopay-v4-4.1.0 lib/mangopay/model/entity/user/natural_user.rb
mangopay-v4-4.0.2 lib/mangopay/model/entity/user/natural_user.rb
mangopay-v4-4.0.1 lib/mangopay/model/entity/user/natural_user.rb