Class: Google::Apis::PaymentsresellersubscriptionV1::Extension

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 the details of an extension request.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#durationGoogle::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_tokenString

Required. Identifier of the end-user in partner’s system. Corresponds to the JSON property partnerUserToken

Returns:

  • (String)


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