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.
635 636 637 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 635 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
627 628 629 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 627 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
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 |