Class: EVSS::PPIU::PaymentAddress
- Inherits:
-
Object
- Object
- EVSS::PPIU::PaymentAddress
- Defined in:
- lib/evss/ppiu/payment_address.rb
Overview
Model for the user’s payment address
Instance Attribute Summary collapse
-
#address_effective_date ⇒ DateTime
The date at which the address is known to be valid.
-
#address_one ⇒ String
The first line of the address.
-
#address_three ⇒ String
The third line of the address.
-
#address_two ⇒ String
The second line of the address.
-
#city ⇒ String
The name of the city.
-
#country_name ⇒ String
The name of the country.
-
#military_post_office_type_code ⇒ String
For military addresses, the post office type code.
-
#military_state_code ⇒ String
For military addresses, the state code.
-
#state_code ⇒ String
Two-character abbreviation for a state, i.e.
-
#type ⇒ String
The address type, i.e.
-
#zip_code ⇒ String
The address zip code.
-
#zip_suffix ⇒ String
The optional suffix for the zip code.
Instance Attribute Details
#address_effective_date ⇒ DateTime
Returns 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_one ⇒ String
Returns 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_three ⇒ String
Returns 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_two ⇒ String
Returns 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 |
#city ⇒ String
Returns 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_name ⇒ String
Returns 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_code ⇒ String
Returns 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_code ⇒ String
Returns 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_code ⇒ String
Returns 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 |
#type ⇒ String
Returns 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_code ⇒ String
Returns 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_suffix ⇒ String
Returns 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 |