Class: Google::Apis::PaymentsresellersubscriptionV1::SubscriptionUpgradeDowngradeDetails
- Inherits:
-
Object
- Object
- Google::Apis::PaymentsresellersubscriptionV1::SubscriptionUpgradeDowngradeDetails
- 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
-
#billing_cycle_spec ⇒ String
Required.
-
#previous_subscription_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SubscriptionUpgradeDowngradeDetails
constructor
A new instance of SubscriptionUpgradeDowngradeDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SubscriptionUpgradeDowngradeDetails
Returns a new instance of SubscriptionUpgradeDowngradeDetails.
1565 1566 1567 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1565 def initialize(**args) update!(**args) end |
Instance Attribute Details
#billing_cycle_spec ⇒ String
Required. Specifies the billing cycle spec for the new upgraded/downgraded
subscription.
Corresponds to the JSON property billingCycleSpec
1555 1556 1557 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1555 def billing_cycle_spec @billing_cycle_spec end |
#previous_subscription_id ⇒ String
Required. The previous subscription id to be replaced. The format can be one
of the following: 1. subscription_id: the old subscription id under the same
partner_id. 2. partners/partner_id/subscriptions/subscription_id`. A
different partner_id is allowed. But they must be under the same partner group.
Corresponds to the JSON propertypreviousSubscriptionId`
1563 1564 1565 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1563 def previous_subscription_id @previous_subscription_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1570 1571 1572 1573 |
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 1570 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 |