Sha256: dc1f0b0e9cbcfa635956ab99f749d288927ea7c47bee3c89faa656c91c6a59f5

Contents?: true

Size: 458 Bytes

Versions: 5

Compression:

Stored size: 458 Bytes

Contents

module Tangany
  module Customers
    class Document < Object
      ALLOWED_TYPES = %w[id_card passport other].freeze

      attribute :country, Types::String
      attribute :nationality, Types::String
      attribute :number, Types::String
      attribute :issuedBy, Types::String
      attribute :issueDate, Types::Date
      attribute :validUntil, Types::Date
      attribute :type, Types::String

      to_date :issueDate, :validUntil
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tangany-0.0.5 lib/tangany/customers/objects/document.rb
tangany-0.0.4 lib/tangany/customers/objects/document.rb
tangany-0.0.3 lib/tangany/customers/objects/document.rb
tangany-0.0.2 lib/tangany/customers/objects/document.rb
tangany-0.0.1 lib/tangany/customers/objects/document.rb