Class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Location
- Inherits:
-
Object
- Object
- Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Location
- 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
-
#postal_code ⇒ String
The postal code this location refers to.
-
#region_code ⇒ String
2-letter ISO region code for current content region.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudPaymentsResellerSubscriptionV1Location
constructor
A new instance of GoogleCloudPaymentsResellerSubscriptionV1Location.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudPaymentsResellerSubscriptionV1Location
Returns a new instance of GoogleCloudPaymentsResellerSubscriptionV1Location.
446 447 448 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 446 def initialize(**args) update!(**args) end |
Instance Attribute Details
#postal_code ⇒ String
The postal code this location refers to. Ex. "94043"
Corresponds to the JSON property postalCode
438 439 440 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 438 def postal_code @postal_code end |
#region_code ⇒ String
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
444 445 446 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 444 def region_code @region_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
451 452 453 454 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 451 def update!(**args) @postal_code = args[:postal_code] if args.key?(:postal_code) @region_code = args[:region_code] if args.key?(:region_code) end |