pub struct TransactionData {Show 30 fields
pub id: u64,
pub original_id: u64,
pub web_order_line_item_id: Option<String>,
pub product_id: String,
pub subscription_group_id: Option<String>,
pub app_bundle_id: String,
pub purchase_date: String,
pub original_purchase_date: String,
pub expiration_date: Option<String>,
pub purchased_quantity: u64,
pub is_upgraded: bool,
pub ownership_type: OwnershipType,
pub signed_date: String,
pub jws_representation: String,
pub verification_failure: Option<VerificationFailure>,
pub revocation_date: Option<String>,
pub revocation_reason: Option<RevocationReason>,
pub revocation_type: Option<RevocationType>,
pub product_type: Option<ProductType>,
pub app_account_token: Option<String>,
pub environment: Option<AppStoreEnvironment>,
pub reason: Option<TransactionReason>,
pub storefront: Option<Storefront>,
pub price: Option<String>,
pub currency_code: Option<String>,
pub billing_plan_type: Option<BillingPlanType>,
pub commitment_info: Option<TransactionCommitmentInfo>,
pub app_transaction_id: Option<String>,
pub offer: Option<TransactionOffer>,
pub json_representation: Vec<u8>,
}Expand description
Carries decoded fields from a StoreKit.Transaction payload.
Fields§
§id: u64StoreKit identifier for this value.
original_id: u64Original StoreKit transaction identifier.
web_order_line_item_id: Option<String>Web order line item identifier reported by StoreKit.
product_id: StringProduct identifier reported by StoreKit.
subscription_group_id: Option<String>Subscription group identifier reported by StoreKit.
app_bundle_id: StringBundle identifier reported by StoreKit.
purchase_date: StringPurchase date reported by StoreKit.
original_purchase_date: StringOriginal purchase date reported by StoreKit.
expiration_date: Option<String>Expiration date reported by StoreKit.
purchased_quantity: u64Purchased quantity reported by StoreKit.
is_upgraded: boolWhether StoreKit reported upgraded.
ownership_type: OwnershipTypeOwnership type reported by StoreKit.
signed_date: StringSignature timestamp reported by StoreKit.
jws_representation: StringStoreKit-provided jws_representation value.
verification_failure: Option<VerificationFailure>Verification failure reported by StoreKit.
revocation_date: Option<String>Revocation date reported by StoreKit.
revocation_reason: Option<RevocationReason>Revocation reason reported by StoreKit.
revocation_type: Option<RevocationType>Revocation type reported by StoreKit.
product_type: Option<ProductType>Product type reported by StoreKit.
app_account_token: Option<String>App account token reported by StoreKit.
environment: Option<AppStoreEnvironment>Environment reported by StoreKit.
reason: Option<TransactionReason>Reason reported by StoreKit.
storefront: Option<Storefront>Storefront metadata reported by StoreKit.
price: Option<String>Price reported by StoreKit.
currency_code: Option<String>Currency code reported by StoreKit.
billing_plan_type: Option<BillingPlanType>Billing plan type reported by StoreKit.
commitment_info: Option<TransactionCommitmentInfo>Commitment info reported by StoreKit.
app_transaction_id: Option<String>App transaction identifier reported by StoreKit.
offer: Option<TransactionOffer>Offer metadata reported by StoreKit.
json_representation: Vec<u8>Decoded JSON representation returned by StoreKit.
Trait Implementations§
Source§impl Clone for TransactionData
impl Clone for TransactionData
Source§fn clone(&self) -> TransactionData
fn clone(&self) -> TransactionData
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TransactionData
impl Debug for TransactionData
Source§impl PartialEq for TransactionData
impl PartialEq for TransactionData
Source§fn eq(&self, other: &TransactionData) -> bool
fn eq(&self, other: &TransactionData) -> bool
self and other values to be equal, and is used by ==.