Class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Location

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/paymentsresellersubscription_v1/classes.rb,
lib/google/apis/paymentsresellersubscription_v1/representations.rb,
lib/google/apis/paymentsresellersubscription_v1/representations.rb

Overview

Describes a location of an end user.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudPaymentsResellerSubscriptionV1Location

Returns a new instance of GoogleCloudPaymentsResellerSubscriptionV1Location.



499
500
501
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 499

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

Instance Attribute Details

#postal_codeString

The postal code this location refers to. Ex. "94043" Corresponds to the JSON property postalCode

Returns:

  • (String)


491
492
493
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 491

def postal_code
  @postal_code
end

#region_codeString

2-letter ISO region code for current content region. Ex. “US” Please refers to: https://en.wikipedia.org/wiki/ISO_3166-1 Corresponds to the JSON property regionCode

Returns:

  • (String)


497
498
499
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 497

def region_code
  @region_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



504
505
506
507
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 504

def update!(**args)
  @postal_code = args[:postal_code] if args.key?(:postal_code)
  @region_code = args[:region_code] if args.key?(:region_code)
end