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.



635
636
637
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 635

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)


627
628
629
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 627

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)


633
634
635
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 633

def region_code
  @region_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



640
641
642
643
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 640

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