API/Autodoc/Classes/RuStore.PayClient.ProductPurchaseResult.en.md


RuStore::PayClient::ProductPurchaseResult

Result of a successful digital product purchase (for single-stage payment) or successful funds holding (for two-stage payment).

Inherits from RuStore.PayClient.BaseFields

Public Functions

Name
ProductPurchaseResult(InvoiceId invoiceId, OrderId? orderId, ProductId productId, ProductType productType, PurchaseId purchaseId, PurchaseType purchaseType, Quantity quantity, bool sandbox)
Constructor.

Public Properties

Name
InvoiceId invoiceId — Invoice ID.
OrderId? orderId — Unique payment identifier generated by the app (optional parameter). If you specify this parameter in your system, you will receive it in the response when working with the API. If not specified, it will be generated automatically (uuid). Maximum length of 150 characters.
ProductId productId — Product ID that was assigned to the product in the RuStore console.
PurchaseId purchaseId — Purchase ID.
Quantity quantity — Quantity of purchased product.
bool sandbox — Determines whether the payment is a test payment. Values can be true or false, where true indicates a test payment and false indicates a real one.

Additional inherited members

Public Functions inherited from RuStore.PayClient.BaseFields

Name
override bool Equals(object obj)
override int GetHashCode()
override string ToString()

function ProductPurchaseResult

ProductPurchaseResult(
    InvoiceId invoiceId,
    OrderId? orderId,
    ProductId productId,
    ProductType productType,
    PurchaseId purchaseId,
    PurchaseType purchaseType,
    Quantity quantity,
    bool sandbox
)

Constructor.

Parameters:

  • invoiceId Invoice ID.
  • orderId Unique payment identifier generated by the app (optional parameter). If you specify this parameter in your system, you will receive it in the response when working with the API. If not specified, it will be generated automatically (uuid). Maximum length of 150 characters.
  • productType Product type.
  • purchaseId Purchase ID.
  • purchaseType Purchase type.
  • quantity Quantity of purchased product.
  • sandbox Determines whether the payment is a test payment. Values can be true or false, where true indicates a test payment and false indicates a real one.

property invoiceId

InvoiceId invoiceId;

Invoice ID.

property orderId

OrderId? orderId;

Unique payment identifier generated by the app (optional parameter). If you specify this parameter in your system, you will receive it in the response when working with the API. If not specified, it will be generated automatically (uuid). Maximum length of 150 characters.

property productId

ProductId productId;

Product ID that was assigned to the product in the RuStore console.

property productType

ProductType productType;

Product type.

property purchaseId

PurchaseId purchaseId;

Purchase ID.

property purchaseType

PurchaseType purchaseType;

Purchase type.

property quantity

Quantity quantity;

Quantity of purchased product.

property sandbox

bool sandbox;

Determines whether the payment is a test payment. Values can be true or false, where true indicates a test payment and false indicates a real one.


Назад