TrustedPurchaseRecord

Overview

This data model is needed to track purchase analytics without validation from Magify.

Properties

ProductId

string ProductId { get; internal set; }

The id of the purchased product.

TransactionId

string TransactionId { get; internal set; }

Unique identifier of the current transaction.

OriginalTransactionId

string OriginalTransactionId { get; init; }

Unique identifier of the original transaction (in case the current purchase is original, might be equal to TransactionId). For example, in the case of renewal of subscription it will be equal to the TransactionId of the original purchase transaction.

PurchasedAt

double PurchasedAt { get; init; }

The time at which the purchase was made. Format: number seconds by UTC from the start of the Unix epoch.

Price

string Price { get; init; }

The price of the purchased product.

Currency

string Currency { get; init; }

The currency of the purchased product.

TrustedPurchaseEnvironment

TrustedPurchaseEnvironment? Environment { get; set; }

Determines trusted purchase environment. This field can be null, then the default value will be Production

StoreFront

string StoreFront { get; init; }

Store Region. For example, a user has country “A” set in their AppStore settings, but physically they may be in country “B”, in this case this field should contain “A”.

StoreName

string StoreName { get; set; }

The name of the store where the purchase was made. It can take any value, but it is highly recommended to use one of our suggested values from.

PurchaseType

PurchaseType Type { get; init; }

Optional: Defines the type of purchase. More details can be found here - PurchaseType

PeriodType

PeriodType PeriodType { get; init; }

Optional: Defines the type of purchase. More details can be found here - PeriodType

IsTrialConversion

bool? IsTrialConversion { get; init; }

Optional: This field is needed to indicate that the current purchase event describes the transition of a trial subscription to a paid subscription. You only need to use it once, at the moment when the previous subscription was in the trial period, and all subsequent ones will already be paid. For paid subscriptions renewing, this field must Not contain true.

ProductIdType

ProductIdType ProductIdType { get; init; }

Optional: Clarifies exactly what type of purchase was made.

Related articles

AghanimOrderStatus

Content

IPopupsProvider

IInAppStore

MagifyManager․Content

Network