Class: Google::Apis::PaymentsresellersubscriptionV1::GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest

Returns a new instance of GoogleCloudPaymentsResellerSubscriptionV1CancelSubscriptionRequest.



69
70
71
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 69

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

Instance Attribute Details

#cancel_immediatelyBoolean Also known as: cancel_immediately?

Optional. If true, Google will cancel the subscription immediately, and may or may not (based on the contract) issue a prorated refund for the remainder of the billing cycle. Otherwise, Google defers the cancelation at renewal_time, and will not issue a refund. Corresponds to the JSON property cancelImmediately

Returns:

  • (Boolean)


61
62
63
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 61

def cancel_immediately
  @cancel_immediately
end

#cancellation_reasonString

Specifies the reason for the cancellation. Corresponds to the JSON property cancellationReason

Returns:

  • (String)


67
68
69
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 67

def cancellation_reason
  @cancellation_reason
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



74
75
76
77
# File 'lib/google/apis/paymentsresellersubscription_v1/classes.rb', line 74

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