Class: Google::Apis::PaymentsresellersubscriptionV1::Extension
- Inherits:
-
Object
- Object
- Google::Apis::PaymentsresellersubscriptionV1::Extension
- 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 the details of an extension request.
Instance Attribute Summary collapse
-
#duration ⇒ Google::Apis::PaymentsresellersubscriptionV1::Duration
Describes the length of a period of a time.
-
#partner_user_token ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Extension
constructor
A new instance of Extension.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Extension
Returns a new instance of Extension.
380 381 382 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 380 def initialize(**args) update!(**args) end |
Instance Attribute Details
#duration ⇒ Google::Apis::PaymentsresellersubscriptionV1::Duration
Describes the length of a period of a time.
Corresponds to the JSON property duration
373 374 375 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 373 def duration @duration end |
#partner_user_token ⇒ String
Required. Identifier of the end-user in partner’s system.
Corresponds to the JSON property partnerUserToken
378 379 380 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 378 def partner_user_token @partner_user_token end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
385 386 387 388 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 385 def update!(**args) @duration = args[:duration] if args.key?(:duration) @partner_user_token = args[:partner_user_token] if args.key?(:partner_user_token) end |