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.



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

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)


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

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



3229
3230
3231
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3229

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)


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

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)


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

def subsequent_committed_payments_count
  @subsequent_committed_payments_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3249
3250
3251
3252
3253
3254
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 3249

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