class Google::Apis::ResellerV1::Address

JSON template for address of a customer.

Attributes

address_line1[RW]

Address line 1 of the address. Corresponds to the JSON property `addressLine1` @return [String]

address_line2[RW]

Address line 2 of the address. Corresponds to the JSON property `addressLine2` @return [String]

address_line3[RW]

Address line 3 of the address. Corresponds to the JSON property `addressLine3` @return [String]

contact_name[RW]

Name of the contact person. Corresponds to the JSON property `contactName` @return [String]

country_code[RW]

ISO 3166 country code. Corresponds to the JSON property `countryCode` @return [String]

kind[RW]

Identifies the resource as a customer address. Corresponds to the JSON property `kind` @return [String]

locality[RW]

Name of the locality. This is in accordance with - portablecontacts.net/ draft-spec.html#address_element. Corresponds to the JSON property `locality` @return [String]

organization_name[RW]

Name of the organization. Corresponds to the JSON property `organizationName` @return [String]

postal_code[RW]

The postal code. This is in accordance with - portablecontacts.net/ draft-spec.html#address_element. Corresponds to the JSON property `postalCode` @return [String]

region[RW]

Name of the region. This is in accordance with - portablecontacts.net/ draft-spec.html#address_element. Corresponds to the JSON property `region` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/reseller_v1/classes.rb, line 82
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/reseller_v1/classes.rb, line 87
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