API/Autodoc/Files/SubscriptionPurchase.cs.md


Namespaces

Name

Classes

Name
class RuStore::PayClient::SubscriptionPurchase — Информация о покупке.

Source code

#nullable enable

using System;

namespace RuStore.PayClient {

    public class SubscriptionPurchase : BaseFields, IPurchaseStatus<SubscriptionPurchaseStatus> {

        public PurchaseId purchaseId { get; }

        public InvoiceId invoiceId { get; }

        public OrderId? orderId { get; }

        public PurchaseType purchaseType { get; }

        public SubscriptionPurchaseStatus status { get; }
        Enum IPurchase.status => status;

        public Description description { get; }

        public DateTime? purchaseTime { get; }

        public Price price { get; }

        public AmountLabel amountLabel { get; }

        public Currency currency { get; }

        public DeveloperPayload? developerPayload { get; }

        public bool sandbox { get; }

        public ProductId productId { get; }

        public DateTime? expirationDate { get; }

        public bool gracePeriodEnabled { get; }


        public SubscriptionPurchase(
            PurchaseId purchaseId,
            InvoiceId invoiceId,
            OrderId? orderId,
            PurchaseType purchaseType,
            SubscriptionPurchaseStatus status,
            Description description,
            DateTime? purchaseTime,
            Price price,
            AmountLabel amountLabel,
            Currency currency,
            DeveloperPayload? developerPayload,
            bool sandbox,
            ProductId productId,
            DateTime? expirationDate,
            bool gracePeriodEnabled) {

            this.purchaseId = purchaseId;
            this.invoiceId = invoiceId;
            this.orderId = orderId;
            this.purchaseType = purchaseType;
            this.status = status;
            this.description = description;
            this.purchaseTime = purchaseTime;
            this.price = price;
            this.amountLabel = amountLabel;
            this.currency = currency;
            this.developerPayload = developerPayload;
            this.sandbox = sandbox;
            this.productId = productId;
            this.expirationDate = expirationDate;
            this.gracePeriodEnabled = gracePeriodEnabled;
        }
    }
}

Назад