Class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails

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

Details about the previous subscription that this new subscription upgrades/ downgrades from.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails

Returns a new instance of GoogleCloudPaymentsResellerSubscriptionV1SubscriptionUpgradeDowngradeDetails.



1179
1180
1181
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1179

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

Instance Attribute Details

#billing_cycle_specString

Required. Specifies the billing cycle spec for the new upgraded/downgraded subscription. Corresponds to the JSON property billingCycleSpec

Returns:

  • (String)


1171
1172
1173
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1171

def billing_cycle_spec
  @billing_cycle_spec
end

#previous_subscription_idString

Required. The previous subscription id to be replaced. This is not the full resource name, use the subscription_id segment only. Corresponds to the JSON property previousSubscriptionId

Returns:

  • (String)


1177
1178
1179
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1177

def previous_subscription_id
  @previous_subscription_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1184
1185
1186
1187
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1184

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