Class: Google::Apis::ResellerV1::Address

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Address

Returns a new instance of Address.



82
83
84
# File 'generated/google/apis/reseller_v1/classes.rb', line 82

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#address_line1String

Address line 1 of the address. Corresponds to the JSON property addressLine1

Returns:

  • (String)


32
33
34
# File 'generated/google/apis/reseller_v1/classes.rb', line 32

def address_line1
  @address_line1
end

#address_line2String

Address line 2 of the address. Corresponds to the JSON property addressLine2

Returns:

  • (String)


37
38
39
# File 'generated/google/apis/reseller_v1/classes.rb', line 37

def address_line2
  @address_line2
end

#address_line3String

Address line 3 of the address. Corresponds to the JSON property addressLine3

Returns:

  • (String)


42
43
44
# File 'generated/google/apis/reseller_v1/classes.rb', line 42

def address_line3
  @address_line3
end

#contact_nameString

Name of the contact person. Corresponds to the JSON property contactName

Returns:

  • (String)


47
48
49
# File 'generated/google/apis/reseller_v1/classes.rb', line 47

def contact_name
  @contact_name
end

#country_codeString

ISO 3166 country code. Corresponds to the JSON property countryCode

Returns:

  • (String)


52
53
54
# File 'generated/google/apis/reseller_v1/classes.rb', line 52

def country_code
  @country_code
end

#kindString

Identifies the resource as a customer address. Corresponds to the JSON property kind

Returns:

  • (String)


57
58
59
# File 'generated/google/apis/reseller_v1/classes.rb', line 57

def kind
  @kind
end

#localityString

Name of the locality. This is in accordance with - http://portablecontacts.net/ draft-spec.html#address_element. Corresponds to the JSON property locality

Returns:

  • (String)


63
64
65
# File 'generated/google/apis/reseller_v1/classes.rb', line 63

def locality
  @locality
end

#organization_nameString

Name of the organization. Corresponds to the JSON property organizationName

Returns:

  • (String)


68
69
70
# File 'generated/google/apis/reseller_v1/classes.rb', line 68

def organization_name
  @organization_name
end

#postal_codeString

The postal code. This is in accordance with - http://portablecontacts.net/ draft-spec.html#address_element. Corresponds to the JSON property postalCode

Returns:

  • (String)


74
75
76
# File 'generated/google/apis/reseller_v1/classes.rb', line 74

def postal_code
  @postal_code
end

#regionString

Name of the region. This is in accordance with - http://portablecontacts.net/ draft-spec.html#address_element. Corresponds to the JSON property region

Returns:

  • (String)


80
81
82
# File 'generated/google/apis/reseller_v1/classes.rb', line 80

def region
  @region
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



87
88
89
90
91
92
93
94
95
96
97
98
# 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