Class: Google::Apis::AndroidpublisherV3::InstallmentPlan

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/androidpublisher_v3/classes.rb,
lib/google/apis/androidpublisher_v3/representations.rb,
lib/google/apis/androidpublisher_v3/representations.rb

Overview

Information to a installment plan.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstallmentPlan

Returns a new instance of InstallmentPlan.



3236
3237
3238
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3236

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

Instance Attribute Details

#initial_committed_payments_countFixnum

Total number of payments the user is initially committed for. Corresponds to the JSON property initialCommittedPaymentsCount

Returns:

  • (Fixnum)


3214
3215
3216
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3214

def initial_committed_payments_count
  @initial_committed_payments_count
end

#pending_cancellationGoogle::Apis::AndroidpublisherV3::PendingCancellation

This is an indicator of whether there is a pending cancellation on the virtual installment plan. The cancellation will happen only after the user finished all committed payments. Corresponds to the JSON property pendingCancellation



3221
3222
3223
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3221

def pending_cancellation
  @pending_cancellation
end

#remaining_committed_payments_countFixnum

Total number of committed payments remaining to be paid for in this renewal cycle. Corresponds to the JSON property remainingCommittedPaymentsCount

Returns:

  • (Fixnum)


3227
3228
3229
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3227

def remaining_committed_payments_count
  @remaining_committed_payments_count
end

#subsequent_committed_payments_countFixnum

Total number of payments the user will be committed for after each commitment period. Empty means the installment plan will fall back to a normal auto-renew subscription after initial commitment. Corresponds to the JSON property subsequentCommittedPaymentsCount

Returns:

  • (Fixnum)


3234
3235
3236
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3234

def subsequent_committed_payments_count
  @subsequent_committed_payments_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3241
3242
3243
3244
3245
3246
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3241

def update!(**args)
  @initial_committed_payments_count = args[:initial_committed_payments_count] if args.key?(:initial_committed_payments_count)
  @pending_cancellation = args[:pending_cancellation] if args.key?(:pending_cancellation)
  @remaining_committed_payments_count = args[:remaining_committed_payments_count] if args.key?(:remaining_committed_payments_count)
  @subsequent_committed_payments_count = args[:subsequent_committed_payments_count] if args.key?(:subsequent_committed_payments_count)
end