Sha256: 165040c1ab4fea26eb78b222e37a73a2d94af826b99b00582b9f9bcde6663e23

Contents?: true

Size: 1.61 KB

Versions: 1

Compression:

Stored size: 1.61 KB

Contents

module Unit
  class IndividualCustomer < Util::APIResource
    path '/customers'

    attribute :ssn, Types::String #	SSN (or ITIN) of the individual (numbers only). Either an SSN or a passport number is required.
    attribute :passport, Types::String # Passport number of the individual. Either an SSN or a passport number is required.
    attribute :nationality, Types::String # Required on if a passport is used as the main ID. Two letters representing the individual nationality. (e.g. "US").
    attribute :full_name, Types::FullName # Full name of the individual.
    attribute :date_of_birth, Types::Date # RFC3339 Date only (e.g. "2001-08-15").
    attribute :address, Types::Address # Address of the individual.
    attribute :phone, Types::Phone # Phone number of the individual.
    attribute :email, Types::String # Email address of the individual
    attribute :dba, Types::String # Optional. If the individual is a sole proprietor who is doing business under a different name.
    attribute :sole_proprietorship, Types::Boolean
    attribute :tags, Types::Hash # Optional. Tags that will be copied to the customer that this application creates
    attribute :idempotency_key, Types::String # Optional
    attribute :risk_rate, Types::String, readonly: true
    attribute :authorized_users, Types::Array, readonly: true
    attribute :created_at, Types::DateTime, readonly: true

    belongs_to :application, class_name: 'Unit::IndividualApplication'

    include Util::ResourceOperations::List
    include Util::ResourceOperations::Create
    include Util::ResourceOperations::Save
    include Util::ResourceOperations::Find
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
unit-ruby-0.1.0 lib/unit-ruby/individual_customer.rb