Class: Google::Apis::ResellerV1::Customer

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 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) ⇒ Customer

Returns a new instance of Customer.


190
191
192
# File 'generated/google/apis/reseller_v1/classes.rb', line 190

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

Instance Attribute Details

#alternate_emailString

The alternate email of the customer. Corresponds to the JSON property alternateEmail

Returns:

  • (String)

152
153
154
# File 'generated/google/apis/reseller_v1/classes.rb', line 152

def alternate_email
  @alternate_email
end

#customer_domainString

The domain name of the customer. Corresponds to the JSON property customerDomain

Returns:

  • (String)

157
158
159
# File 'generated/google/apis/reseller_v1/classes.rb', line 157

def customer_domain
  @customer_domain
end

#customer_domain_verifiedBoolean Also known as: customer_domain_verified?

Whether the customer's primary domain has been verified. Corresponds to the JSON property customerDomainVerified

Returns:

  • (Boolean)

162
163
164
# File 'generated/google/apis/reseller_v1/classes.rb', line 162

def customer_domain_verified
  @customer_domain_verified
end

#customer_idString

The id of the customer. Corresponds to the JSON property customerId

Returns:

  • (String)

168
169
170
# File 'generated/google/apis/reseller_v1/classes.rb', line 168

def customer_id
  @customer_id
end

#kindString

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

Returns:

  • (String)

173
174
175
# File 'generated/google/apis/reseller_v1/classes.rb', line 173

def kind
  @kind
end

#phone_numberString

The phone number of the customer. Corresponds to the JSON property phoneNumber

Returns:

  • (String)

178
179
180
# File 'generated/google/apis/reseller_v1/classes.rb', line 178

def phone_number
  @phone_number
end

#postal_addressGoogle::Apis::ResellerV1::Address

JSON template for address of a customer. Corresponds to the JSON property postalAddress


183
184
185
# File 'generated/google/apis/reseller_v1/classes.rb', line 183

def postal_address
  @postal_address
end

#resource_ui_urlString

Ui url for customer resource. Corresponds to the JSON property resourceUiUrl

Returns:

  • (String)

188
189
190
# File 'generated/google/apis/reseller_v1/classes.rb', line 188

def resource_ui_url
  @resource_ui_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


195
196
197
198
199
200
201
202
203
204
# File 'generated/google/apis/reseller_v1/classes.rb', line 195

def update!(**args)
  @alternate_email = args[:alternate_email] if args.key?(:alternate_email)
  @customer_domain = args[:customer_domain] if args.key?(:customer_domain)
  @customer_domain_verified = args[:customer_domain_verified] if args.key?(:customer_domain_verified)
  @customer_id = args[:customer_id] if args.key?(:customer_id)
  @kind = args[:kind] if args.key?(:kind)
  @phone_number = args[:phone_number] if args.key?(:phone_number)
  @postal_address = args[:postal_address] if args.key?(:postal_address)
  @resource_ui_url = args[:resource_ui_url] if args.key?(:resource_ui_url)
end