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


RuStore::PayClient::ProductPurchaseResult

Result of successful payment for a digital product (for single-stage payment) or successful holding of funds (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 identifier.
OrderId? orderId – Unique payment identifier generated by the application (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 is 150 characters.
ProductId productId – Product identifier assigned to the product in the RuStore console.
PurchaseId purchaseId – Purchase identifier.
Quantity quantity – Quantity of the purchased product.
bool sandbox – Determines whether the payment is a test. 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 identifier.
  • orderId Unique payment identifier generated by the application (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 is 150 characters.
  • productType Product type.
  • purchaseId Purchase identifier.
  • purchaseType Purchase type.
  • quantity Quantity of the purchased product.
  • sandbox Determines whether the payment is a test. Values can be true or false, where true indicates a test payment and false indicates a real one.

property invoiceId

InvoiceId invoiceId;

Invoice identifier.

property orderId

OrderId? orderId;

Unique payment identifier generated by the application (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 is 150 characters.

property productId

ProductId productId;

property productType

ProductType productType;

Product type.

property purchaseId

PurchaseId purchaseId;

Purchase identifier.

property purchaseType

PurchaseType purchaseType;

Purchase type.

property quantity

Quantity quantity;

Quantity of the purchased product.

property sandbox

bool sandbox;

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


Назад