Sha256: db1bc80c7157d271c71993380e0b464eb86b732154fb702fba57b42ffb712037

Contents?: true

Size: 482 Bytes

Versions: 11

Compression:

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

    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

11 entries across 11 versions & 1 rubygems

Version Path
yoti-1.6.4 lib/yoti/http/payloads/aml_address.rb
yoti-1.6.3 lib/yoti/http/payloads/aml_address.rb
yoti-1.6.2 lib/yoti/http/payloads/aml_address.rb
yoti-1.6.1 lib/yoti/http/payloads/aml_address.rb
yoti-1.6.0 lib/yoti/http/payloads/aml_address.rb
yoti-1.5.0 lib/yoti/http/payloads/aml_address.rb
yoti-1.4.0 lib/yoti/http/payloads/aml_address.rb
yoti-1.3.1 lib/yoti/http/payloads/aml_address.rb
yoti-1.3.0 lib/yoti/http/payloads/aml_address.rb
yoti-1.2.1 lib/yoti/http/payloads/aml_address.rb
yoti-1.2.0 lib/yoti/http/payloads/aml_address.rb