Class: Google::Apis::ResellerV1::Address
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ResellerV1::Address
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/reseller_v1/classes.rb,
 generated/google/apis/reseller_v1/representations.rb,
 generated/google/apis/reseller_v1/representations.rb
Overview
JSON template for address of a customer.
Instance Attribute Summary collapse
- 
  
    
      #address_line1  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A customer's physical address. 
- 
  
    
      #address_line2  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Line 2 of the address. 
- 
  
    
      #address_line3  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Line 3 of the address. 
- 
  
    
      #contact_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The customer contact's name. 
- 
  
    
      #country_code  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    For countryCode information, see the ISO 3166 country code elements. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Identifies the resource as a customer address. 
- 
  
    
      #locality  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    An example of a locality value is the city of San Francisco. 
- 
  
    
      #organization_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The company or company division name. 
- 
  
    
      #postal_code  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A postalCode example is a postal zip code such as 94043. 
- 
  
    
      #region  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    An example of a region value is CA for the state of California. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Address 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Address. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Address
Returns a new instance of Address
| 83 84 85 | # File 'generated/google/apis/reseller_v1/classes.rb', line 83 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#address_line1 ⇒ String
A customer's physical address. An address can be composed of one to three
lines. The addressline2 and addressLine3 are optional.
Corresponds to the JSON property addressLine1
| 33 34 35 | # File 'generated/google/apis/reseller_v1/classes.rb', line 33 def address_line1 @address_line1 end | 
#address_line2 ⇒ String
Line 2 of the address.
Corresponds to the JSON property addressLine2
| 38 39 40 | # File 'generated/google/apis/reseller_v1/classes.rb', line 38 def address_line2 @address_line2 end | 
#address_line3 ⇒ String
Line 3 of the address.
Corresponds to the JSON property addressLine3
| 43 44 45 | # File 'generated/google/apis/reseller_v1/classes.rb', line 43 def address_line3 @address_line3 end | 
#contact_name ⇒ String
The customer contact's name. This is required.
Corresponds to the JSON property contactName
| 48 49 50 | # File 'generated/google/apis/reseller_v1/classes.rb', line 48 def contact_name @contact_name end | 
#country_code ⇒ String
For countryCode information, see the ISO 3166 country code elements. Verify
that country is approved for resale of Google products. This property is
required when creating a new customer.
Corresponds to the JSON property countryCode
| 55 56 57 | # File 'generated/google/apis/reseller_v1/classes.rb', line 55 def country_code @country_code end | 
#kind ⇒ String
Identifies the resource as a customer address. Value: customers#address
Corresponds to the JSON property kind
| 60 61 62 | # File 'generated/google/apis/reseller_v1/classes.rb', line 60 def kind @kind end | 
#locality ⇒ String
An example of a locality value is the city of San Francisco.
Corresponds to the JSON property locality
| 65 66 67 | # File 'generated/google/apis/reseller_v1/classes.rb', line 65 def locality @locality end | 
#organization_name ⇒ String
The company or company division name. This is required.
Corresponds to the JSON property organizationName
| 70 71 72 | # File 'generated/google/apis/reseller_v1/classes.rb', line 70 def organization_name @organization_name end | 
#postal_code ⇒ String
A postalCode example is a postal zip code such as 94043. This property is
required when creating a new customer.
Corresponds to the JSON property postalCode
| 76 77 78 | # File 'generated/google/apis/reseller_v1/classes.rb', line 76 def postal_code @postal_code end | 
#region ⇒ String
An example of a region value is CA for the state of California.
Corresponds to the JSON property region
| 81 82 83 | # File 'generated/google/apis/reseller_v1/classes.rb', line 81 def region @region end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 88 89 90 91 92 93 94 95 96 97 98 99 | # File 'generated/google/apis/reseller_v1/classes.rb', line 88 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) @kind = args[:kind] if args.key?(:kind) @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 |