Class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Extension

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) ⇒ GoogleCloudPaymentsResellerSubscriptionV1Extension

Returns a new instance of GoogleCloudPaymentsResellerSubscriptionV1Extension.



355
356
357
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 355

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#durationGoogle::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Duration

Describes the length of a period of a time. Corresponds to the JSON property duration



348
349
350
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 348

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)


353
354
355
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 353

def partner_user_token
  @partner_user_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



360
361
362
363
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 360

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