API/Autodoc/Files/RuStoreProductSubscription.gd.md
Source code
# @brief Информация о подписке.
class_name RuStoreProductSubscription extends RefCounted
# @brief Период подписки.
var subscriptionPeriod: RuStoreSubscriptionPeriod = null
# @brief Пробный период подписки.
var freeTrialPeriod: RuStoreSubscriptionPeriod = null
# @brief Льготный период подписки.
var gracePeriod: RuStoreSubscriptionPeriod = null
# @brief Отформатированная вступительная цена подписки, включая знак валюты, на языке RuStoreProduct.language.
var introductoryPrice: String = ""
# @brief Вступительная цена в минимальных единицах валюты (напрмер в копейках).
var introductoryPriceAmount: String = ""
# @brief Расчётный период вступительной цены.
var introductoryPricePeriod: RuStoreSubscriptionPeriod = null
func _init(json: String = ""):
if json != "":
var obj = JSON.parse_string(json)
if obj.has("subscriptionPeriod"):
subscriptionPeriod = RuStoreSubscriptionPeriod.new(str(obj["subscriptionPeriod"]))
if obj.has("freeTrialPeriod"):
freeTrialPeriod = RuStoreSubscriptionPeriod.new(obj["freeTrialPeriod"])
if obj.has("gracePeriod"):
gracePeriod = RuStoreSubscriptionPeriod.new(obj["gracePeriod"])
if obj.has("introductoryPrice"):
introductoryPrice = obj["introductoryPrice"]
if obj.has("introductoryPriceAmount"):
introductoryPriceAmount = obj["introductoryPriceAmount"]
if obj.has("introductoryPricePeriod"):
introductoryPricePeriod = RuStoreSubscriptionPeriod.new(obj["introductoryPricePeriod"])
- Страницы
- ERuStoreProductStatus.gd.en
- ERuStoreProductStatus.gd
- ERuStoreProductType.gd.en
- ERuStoreProductType.gd
- ERuStorePurchaseState.gd.en
- ERuStorePurchaseState.gd
- ERuStoreTheme.gd.en
- ERuStoreTheme.gd
- RuStoreBillingJsonParser.gd.en
- RuStoreBillingJsonParser.gd
- RuStoreBillingUserAuthorizationStatus.gd.en
- RuStoreBillingUserAuthorizationStatus.gd
- RuStoreError.gd.en
- RuStoreError.gd
- RuStoreFeatureAvailabilityResult.gd.en
- RuStoreFeatureAvailabilityResult.gd
- RuStoreGodotBilling.en
- RuStoreGodotBilling.gd.en
- RuStoreGodotBilling.gd
- RuStoreGodotBilling
- RuStoreGodotCore.en
- RuStoreGodotCore
- RuStorePaymentResult.gd.en
- RuStorePaymentResult.gd
- RuStoreProduct.gd.en
- RuStoreProduct.gd
- RuStoreProductSubscription.gd.en
- RuStoreProductSubscription.gd
- RuStorePurchase.gd.en
- RuStorePurchase.gd
- RuStorePurchaseAvailabilityResult.gd.en
- RuStorePurchaseAvailabilityResult.gd
- RuStoreSubscriptionPeriod.gd.en
- RuStoreSubscriptionPeriod.gd
- addons.en
- addons
- docs.en
- docs
- godot_example.en
- godot_example
- ERuStoreProductStatus.gd.en
- ERuStoreProductStatus.gd
- ERuStoreProductType.gd.en
- ERuStoreProductType.gd
- ERuStorePurchaseState.gd.en
- ERuStorePurchaseState.gd
- ERuStoreTheme.gd.en
- ERuStoreTheme.gd
- RuStoreBillingJsonParser.gd.en
- RuStoreBillingJsonParser.gd
- RuStoreBillingUserAuthorizationStatus.gd.en
- RuStoreBillingUserAuthorizationStatus.gd
- RuStoreError.gd.en
- RuStoreError.gd
- RuStoreFeatureAvailabilityResult.gd.en
- RuStoreFeatureAvailabilityResult.gd
- RuStoreGodotBilling.en
- RuStoreGodotBilling.gd.en
- RuStoreGodotBilling.gd
- RuStoreGodotBilling
- RuStoreGodotCore.en
- RuStoreGodotCore
- RuStorePaymentResult.gd.en
- RuStorePaymentResult.gd
- RuStoreProduct.gd.en
- RuStoreProduct.gd
- RuStoreProductSubscription.gd.en
- RuStoreProductSubscription.gd
- RuStorePurchase.gd.en
- RuStorePurchase.gd
- RuStorePurchaseAvailabilityResult.gd.en
- RuStorePurchaseAvailabilityResult.gd
- RuStoreSubscriptionPeriod.gd.en
- RuStoreSubscriptionPeriod.gd
- addons.en
- addons
- docs.en
- docs
- godot_example.en
- godot_example