Class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest

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

Request message for extending a Subscription resource. A new recurrence will be made based on the subscription schedule defined by the original product.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest

Returns a new instance of GoogleCloudPaymentsResellerSubscriptionV1ExtendSubscriptionRequest.



229
230
231
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 229

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

Instance Attribute Details

#extensionGoogle::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1Extension

Describes the details of an extension request. Corresponds to the JSON property extension



219
220
221
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 219

def extension
  @extension
end

#request_idString

Required. Restricted to 36 ASCII characters. A random UUID is recommended. The idempotency key for the request. The ID generation logic is controlled by the partner. request_id should be the same as on retries of the same request. A different request_id must be used for a extension of a different cycle. Corresponds to the JSON property requestId

Returns:

  • (String)


227
228
229
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 227

def request_id
  @request_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



234
235
236
237
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 234

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