Class VirtualTransaction
Describes the Virtual transaction info, and outcome.
Inherited Members
Namespace: UnityEngine.GameFoundation
Syntax
public sealed class VirtualTransaction : BaseTransaction, IEquatable<CatalogItem>, IComparable<CatalogItem>
Properties
costs
The description of the cost of the transaction. That is what the player pays to get the payout.
Declaration
public TransactionExchangeDefinition costs { get; }
Property Value
Type | Description |
---|---|
TransactionExchangeDefinition |
Methods
AutoFillCostItemIds(ICollection<String>)
Gets a list of the first InventoryItem ids from the inventory that satisfy the cost of a transaction.
Declaration
public void AutoFillCostItemIds(ICollection<string> costItemIds)
Parameters
Type | Name | Description |
---|---|---|
ICollection<String> | costItemIds | An existing collection of strings to populate (must be non-null and must be empty). |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown if the collection passed in is not empty. |
VerifyCost(ICollection<Exception>)
Test whether the costs can be met by the currencies in the wallet and/or the items in the inventory.
Declaration
public void VerifyCost(ICollection<Exception> exceptions)
Parameters
Type | Name | Description |
---|---|---|
ICollection<Exception> | exceptions | A collection to populate with all exceptions generated. |
VerifyPayout(ICollection<Exception>)
Test whether the payouts are valid.
Declaration
public void VerifyPayout(ICollection<Exception> exceptions)
Parameters
Type | Name | Description |
---|---|---|
ICollection<Exception> | exceptions | A collection to populate with all exceptions generated. |