Sha256: 280257110a8b37fc0692402425f6ed04cf99d72026a579d61a04fb22414caef7

Contents?: true

Size: 556 Bytes

Versions: 5

Compression:

Stored size: 556 Bytes

Contents

module Yoti
  # Manages the AML check Address object
  class AmlAddress
    # @return [String] the country of residence in a ISO 3166 3-letter code format
    attr_accessor :country

    # @return [String] the postcode required for USA, optional otherwise
    attr_accessor :post_code

    #
    # @param [String] country
    # @param [String] post_code
    #
    def initialize(country, post_code = nil)
      raise AmlError, 'AmlAddress requires a country.' if country.to_s.empty?

      @country = country
      @post_code = post_code
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
yoti-1.10.0 lib/yoti/http/payloads/aml_address.rb
yoti-1.9.0 lib/yoti/http/payloads/aml_address.rb
yoti-1.8.0 lib/yoti/http/payloads/aml_address.rb
yoti-1.7.1 lib/yoti/http/payloads/aml_address.rb
yoti-1.7.0 lib/yoti/http/payloads/aml_address.rb