Class: TD::Types::StorePaymentPurpose::PremiumSubscription

Inherits:
TD::Types::StorePaymentPurpose show all
Defined in:
lib/tdlib/types/store_payment_purpose/premium_subscription.rb

Overview

The user subscribing to Telegram Premium.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#is_restoreBoolean

Pass true if this is a restore of a Telegram Premium purchase; only for App Store.

Returns:

  • (Boolean)

    the current value of is_restore



7
8
9
# File 'lib/tdlib/types/store_payment_purpose/premium_subscription.rb', line 7

def is_restore
  @is_restore
end

#is_upgradeBoolean

Pass true if this is an upgrade from a monthly subscription to early subscription; only for App Store.

Returns:

  • (Boolean)

    the current value of is_upgrade



7
8
9
# File 'lib/tdlib/types/store_payment_purpose/premium_subscription.rb', line 7

def is_upgrade
  @is_upgrade
end