Class: Google::Apis::AdminDirectoryV1::CustomerPostalAddress
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::AdminDirectoryV1::CustomerPostalAddress
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/admin_directory_v1/classes.rb,
 generated/google/apis/admin_directory_v1/representations.rb,
 generated/google/apis/admin_directory_v1/representations.rb
Overview
JSON template for postal address of a customer.
Instance Attribute Summary collapse
- 
  
    
      #address_line1  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A customer's physical address. 
- 
  
    
      #address_line2  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Address line 2 of the address. 
- 
  
    
      #address_line3  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Address line 3 of the address. 
- 
  
    
      #contact_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The customer contact's name. 
- 
  
    
      #country_code  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    This is a required property. 
- 
  
    
      #locality  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Name of the locality. 
- 
  
    
      #organization_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The company or company division name. 
- 
  
    
      #postal_code  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The postal code. 
- 
  
    
      #region  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Name of the region. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ CustomerPostalAddress 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of CustomerPostalAddress. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CustomerPostalAddress
Returns a new instance of CustomerPostalAddress
| 1120 1121 1122 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 1120 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#address_line1 ⇒ String
A customer's physical address. The address can be composed of one to three
lines.
Corresponds to the JSON property addressLine1
| 1073 1074 1075 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 1073 def address_line1 @address_line1 end | 
#address_line2 ⇒ String
Address line 2 of the address.
Corresponds to the JSON property addressLine2
| 1078 1079 1080 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 1078 def address_line2 @address_line2 end | 
#address_line3 ⇒ String
Address line 3 of the address.
Corresponds to the JSON property addressLine3
| 1083 1084 1085 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 1083 def address_line3 @address_line3 end | 
#contact_name ⇒ String
The customer contact's name.
Corresponds to the JSON property contactName
| 1088 1089 1090 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 1088 def contact_name @contact_name end | 
#country_code ⇒ String
This is a required property. For countryCode information see the ISO 3166
country code elements.
Corresponds to the JSON property countryCode
| 1094 1095 1096 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 1094 def country_code @country_code end | 
#locality ⇒ String
Name of the locality. An example of a locality value is the city of San
Francisco.
Corresponds to the JSON property locality
| 1100 1101 1102 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 1100 def locality @locality end | 
#organization_name ⇒ String
The company or company division name.
Corresponds to the JSON property organizationName
| 1105 1106 1107 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 1105 def organization_name @organization_name end | 
#postal_code ⇒ String
The postal code. A postalCode example is a postal zip code such as 10009. This
is in accordance with - http://portablecontacts.net/draft-spec.html#
address_element.
Corresponds to the JSON property postalCode
| 1112 1113 1114 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 1112 def postal_code @postal_code end | 
#region ⇒ String
Name of the region. An example of a region value is NY for the state of New
York.
Corresponds to the JSON property region
| 1118 1119 1120 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 1118 def region @region end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 | # File 'generated/google/apis/admin_directory_v1/classes.rb', line 1125 def update!(**args) @address_line1 = args[:address_line1] if args.key?(:address_line1) @address_line2 = args[:address_line2] if args.key?(:address_line2) @address_line3 = args[:address_line3] if args.key?(:address_line3) @contact_name = args[:contact_name] if args.key?(:contact_name) @country_code = args[:country_code] if args.key?(:country_code) @locality = args[:locality] if args.key?(:locality) @organization_name = args[:organization_name] if args.key?(:organization_name) @postal_code = args[:postal_code] if args.key?(:postal_code) @region = args[:region] if args.key?(:region) end |