Class: EVSS::PPIU::PaymentAddress

Inherits:
Object
  • Object
show all
Defined in:
lib/evss/ppiu/payment_address.rb

Overview

Model for the user’s payment address

Instance Attribute Summary collapse

Instance Attribute Details

#address_effective_dateDateTime

Returns The date at which the address is known to be valid.

Returns:

  • (DateTime)

    The date at which the address is known to be valid



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/evss/ppiu/payment_address.rb', line 35

class PaymentAddress
  include Virtus.model

  attribute :type, String
  attribute :address_effective_date, DateTime
  attribute :address_one, String
  attribute :address_two, String
  attribute :address_three, String
  attribute :city, String
  attribute :state_code, String
  attribute :zip_code, String
  attribute :zip_suffix, String
  attribute :country_name, String
  attribute :military_post_office_type_code, String
  attribute :military_state_code, String
end

#address_oneString

Returns The first line of the address.

Returns:

  • (String)

    The first line of the address



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/evss/ppiu/payment_address.rb', line 35

class PaymentAddress
  include Virtus.model

  attribute :type, String
  attribute :address_effective_date, DateTime
  attribute :address_one, String
  attribute :address_two, String
  attribute :address_three, String
  attribute :city, String
  attribute :state_code, String
  attribute :zip_code, String
  attribute :zip_suffix, String
  attribute :country_name, String
  attribute :military_post_office_type_code, String
  attribute :military_state_code, String
end

#address_threeString

Returns The third line of the address.

Returns:

  • (String)

    The third line of the address



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/evss/ppiu/payment_address.rb', line 35

class PaymentAddress
  include Virtus.model

  attribute :type, String
  attribute :address_effective_date, DateTime
  attribute :address_one, String
  attribute :address_two, String
  attribute :address_three, String
  attribute :city, String
  attribute :state_code, String
  attribute :zip_code, String
  attribute :zip_suffix, String
  attribute :country_name, String
  attribute :military_post_office_type_code, String
  attribute :military_state_code, String
end

#address_twoString

Returns The second line of the address.

Returns:

  • (String)

    The second line of the address



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/evss/ppiu/payment_address.rb', line 35

class PaymentAddress
  include Virtus.model

  attribute :type, String
  attribute :address_effective_date, DateTime
  attribute :address_one, String
  attribute :address_two, String
  attribute :address_three, String
  attribute :city, String
  attribute :state_code, String
  attribute :zip_code, String
  attribute :zip_suffix, String
  attribute :country_name, String
  attribute :military_post_office_type_code, String
  attribute :military_state_code, String
end

#cityString

Returns The name of the city.

Returns:

  • (String)

    The name of the city



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/evss/ppiu/payment_address.rb', line 35

class PaymentAddress
  include Virtus.model

  attribute :type, String
  attribute :address_effective_date, DateTime
  attribute :address_one, String
  attribute :address_two, String
  attribute :address_three, String
  attribute :city, String
  attribute :state_code, String
  attribute :zip_code, String
  attribute :zip_suffix, String
  attribute :country_name, String
  attribute :military_post_office_type_code, String
  attribute :military_state_code, String
end

#country_nameString

Returns The name of the country.

Returns:

  • (String)

    The name of the country



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/evss/ppiu/payment_address.rb', line 35

class PaymentAddress
  include Virtus.model

  attribute :type, String
  attribute :address_effective_date, DateTime
  attribute :address_one, String
  attribute :address_two, String
  attribute :address_three, String
  attribute :city, String
  attribute :state_code, String
  attribute :zip_code, String
  attribute :zip_suffix, String
  attribute :country_name, String
  attribute :military_post_office_type_code, String
  attribute :military_state_code, String
end

#military_post_office_type_codeString

Returns For military addresses, the post office type code.

Returns:

  • (String)

    For military addresses, the post office type code



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/evss/ppiu/payment_address.rb', line 35

class PaymentAddress
  include Virtus.model

  attribute :type, String
  attribute :address_effective_date, DateTime
  attribute :address_one, String
  attribute :address_two, String
  attribute :address_three, String
  attribute :city, String
  attribute :state_code, String
  attribute :zip_code, String
  attribute :zip_suffix, String
  attribute :country_name, String
  attribute :military_post_office_type_code, String
  attribute :military_state_code, String
end

#military_state_codeString

Returns For military addresses, the state code.

Returns:

  • (String)

    For military addresses, the state code



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/evss/ppiu/payment_address.rb', line 35

class PaymentAddress
  include Virtus.model

  attribute :type, String
  attribute :address_effective_date, DateTime
  attribute :address_one, String
  attribute :address_two, String
  attribute :address_three, String
  attribute :city, String
  attribute :state_code, String
  attribute :zip_code, String
  attribute :zip_suffix, String
  attribute :country_name, String
  attribute :military_post_office_type_code, String
  attribute :military_state_code, String
end

#state_codeString

Returns Two-character abbreviation for a state, i.e. VA for Virginia.

Returns:

  • (String)

    Two-character abbreviation for a state, i.e. VA for Virginia



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/evss/ppiu/payment_address.rb', line 35

class PaymentAddress
  include Virtus.model

  attribute :type, String
  attribute :address_effective_date, DateTime
  attribute :address_one, String
  attribute :address_two, String
  attribute :address_three, String
  attribute :city, String
  attribute :state_code, String
  attribute :zip_code, String
  attribute :zip_suffix, String
  attribute :country_name, String
  attribute :military_post_office_type_code, String
  attribute :military_state_code, String
end

#typeString

Returns The address type, i.e. international, domestic, or military.

Returns:

  • (String)

    The address type, i.e. international, domestic, or military



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/evss/ppiu/payment_address.rb', line 35

class PaymentAddress
  include Virtus.model

  attribute :type, String
  attribute :address_effective_date, DateTime
  attribute :address_one, String
  attribute :address_two, String
  attribute :address_three, String
  attribute :city, String
  attribute :state_code, String
  attribute :zip_code, String
  attribute :zip_suffix, String
  attribute :country_name, String
  attribute :military_post_office_type_code, String
  attribute :military_state_code, String
end

#zip_codeString

Returns The address zip code.

Returns:

  • (String)

    The address zip code



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/evss/ppiu/payment_address.rb', line 35

class PaymentAddress
  include Virtus.model

  attribute :type, String
  attribute :address_effective_date, DateTime
  attribute :address_one, String
  attribute :address_two, String
  attribute :address_three, String
  attribute :city, String
  attribute :state_code, String
  attribute :zip_code, String
  attribute :zip_suffix, String
  attribute :country_name, String
  attribute :military_post_office_type_code, String
  attribute :military_state_code, String
end

#zip_suffixString

Returns The optional suffix for the zip code.

Returns:

  • (String)

    The optional suffix for the zip code



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/evss/ppiu/payment_address.rb', line 35

class PaymentAddress
  include Virtus.model

  attribute :type, String
  attribute :address_effective_date, DateTime
  attribute :address_one, String
  attribute :address_two, String
  attribute :address_three, String
  attribute :city, String
  attribute :state_code, String
  attribute :zip_code, String
  attribute :zip_suffix, String
  attribute :country_name, String
  attribute :military_post_office_type_code, String
  attribute :military_state_code, String
end