WalletTransaction WalletTransaction WalletTransaction WalletTransaction Class

Definition

Represents a single wallet transaction in the transaction history.

public : sealed class WalletTransaction : IWalletTransactionpublic sealed class WalletTransaction : IWalletTransactionPublic NotInheritable Class WalletTransaction Implements IWalletTransaction// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

A WalletTransaction object represents the individual items for the WalletItem.TransactionHistory property.

Most of the APIs for this class can be seen in example usages in the Quickstart: Using the APIs topic.

If you update the values in any WalletTransaction object, which is contributing to the data of a WalletItem object, make sure to call WalletItemStore.UpdateAsync (passing that WalletItem object) to commit the changes to the backing wallet store.

Constructors

WalletTransaction() WalletTransaction() WalletTransaction() WalletTransaction()

Initializes a new instance of the WalletTransaction class.

public : WalletTransaction()public WalletTransaction()Public Sub New()// You can use this method in JavaScript.

Properties

Description Description Description Description

Gets or sets the summary description (suitable for user UI) of the transaction.

public : PlatForm::String Description { get; set; }public string Description { get; set; }Public ReadWrite Property Description As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

The transaction description.

DisplayAmount DisplayAmount DisplayAmount DisplayAmount

Gets or sets the transaction amount.

public : PlatForm::String DisplayAmount { get; set; }public string DisplayAmount { get; set; }Public ReadWrite Property DisplayAmount As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

The transaction amount.

Remarks

This is a string, not a number, and the entity that writes data to the WalletTransaction is responsible for currency symbols, decimal forms, other localization considerations and so on.

DisplayLocation DisplayLocation DisplayLocation DisplayLocation

Gets or sets a description (suitable for user UI) of the transaction location.

public : PlatForm::String DisplayLocation { get; set; }public string DisplayLocation { get; set; }Public ReadWrite Property DisplayLocation As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

The text description of the transaction location.

IgnoreTimeOfDay IgnoreTimeOfDay IgnoreTimeOfDay IgnoreTimeOfDay

Gets or sets whether to display the time of the transaction.

public : PlatForm::Boolean IgnoreTimeOfDay { get; set; }public bool IgnoreTimeOfDay { get; set; }Public ReadWrite Property IgnoreTimeOfDay As bool// You can use this property in JavaScript.
Value
PlatForm::Boolean bool bool bool

true if the time of the transaction should be displayed; otherwise, false.

IsLaunchable IsLaunchable IsLaunchable IsLaunchable

Gets or sets whether to launch your app when the user taps "see more transaction history".

public : PlatForm::Boolean IsLaunchable { get; set; }public bool IsLaunchable { get; set; }Public ReadWrite Property IsLaunchable As bool// You can use this property in JavaScript.
Value
PlatForm::Boolean bool bool bool

true if your app should be launched when the user taps "see more transaction history"; otherwise, false.

See Also

TransactionDate TransactionDate TransactionDate TransactionDate

Gets or sets the date and time of the transaction.

public : IReference<DateTime> TransactionDate { get; set; }public Nullable<DateTimeOffset> TransactionDate { get; set; }Public ReadWrite Property TransactionDate As Nullable<DateTimeOffset>// You can use this property in JavaScript.
Value
IReference<DateTime> Nullable<DateTimeOffset> Nullable<DateTimeOffset> Nullable<DateTimeOffset>

The date and time of the transaction. Can be null (the default), but for this particular property it's uncommon for the value to remain null when you're viewing an existing transaction.

See Also