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.



293
294
295
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 293

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



286
287
288
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 286

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)


291
292
293
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 291

def partner_user_token
  @partner_user_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



298
299
300
301
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 298

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