API/Autodoc/Files/ProductPurchase.cs.en.md


Namespaces

Name

Classes

Name
class RuStore::PayClient::ProductPurchase — Purchase information.

Source code

#nullable enable

using System;

namespace RuStore.PayClient {

    public class ProductPurchase : BaseFields, IPurchaseStatus<ProductPurchaseStatus> {

        public AmountLabel amountLabel { get; }

        public Currency currency { get; }

        public Description description { get; }

        public DeveloperPayload? developerPayload { get; }

        public InvoiceId invoiceId { get; }

        public OrderId? orderId { get; }

        public Price price { get; }

        public ProductId productId { get; }

        public ProductType productType { get; }

        public PurchaseId purchaseId { get; }

        public DateTime? purchaseTime { get; }

        public PurchaseType purchaseType { get; }

        public Quantity quantity { get; }

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

        public bool sandbox { get; }

        public ProductPurchase(
            AmountLabel amountLabel,
            Currency currency,
            Description description,
            DeveloperPayload? developerPayload,
            InvoiceId invoiceId,
            OrderId? orderId,
            Price price,
            ProductId productId,
            ProductType productType,
            PurchaseId purchaseId,
            DateTime? purchaseTime,
            PurchaseType purchaseType,
            Quantity quantity,
            ProductPurchaseStatus status,
            bool sandbox) {

            this.amountLabel = amountLabel;
            this.currency = currency;
            this.description = description;
            this.developerPayload = developerPayload;
            this.invoiceId = invoiceId;
            this.orderId = orderId;
            this.price = price;
            this.productId = productId;
            this.productType = productType;
            this.purchaseId = purchaseId;
            this.purchaseTime = purchaseTime;
            this.purchaseType = purchaseType;
            this.quantity = quantity;
            this.status = status;
            this.sandbox = sandbox;
        }
    }
}
Назад