DestinyVendorReceipt class
If a character purchased an item that is refundable, a Vendor Receipt will be created on the user's Destiny Profile. These expire after a configurable period of time, but until then can be used to get refunds on items. BNet does not provide the ability to refund a purchase yet, but you know.
- Annotations
-
- @JsonSerializable()
Constructors
- DestinyVendorReceipt()
-
DestinyVendorReceipt.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
currencyPaid
↔ List<
DestinyItemQuantity> ? -
The amount paid for the item, in terms of items that were consumed in the purchase and their quantity.
getter/setter pair
- expiresOn ↔ String?
-
The date at which this receipt is rendered invalid.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- itemReceived ↔ DestinyItemQuantity?
-
The item that was received, and its quantity.
getter/setter pair
- licenseUnlockHash ↔ int?
-
The unlock flag used to determine whether you still have the purchased item.
getter/setter pair
- purchasedByCharacterId ↔ String?
-
The ID of the character who made the purchase.
getter/setter pair
- refundPolicy ↔ DestinyVendorItemRefundPolicy?
-
Whether you can get a refund, and what happens in order for the refund to be received. See the DestinyVendorItemRefundPolicy enum for details.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sequenceNumber ↔ int?
-
The identifier of this receipt.
getter/setter pair
- timeToExpiration ↔ String?
-
The seconds since epoch at which this receipt is rendered invalid.
getter/setter pair
Methods
-
asyncToJson(
) → Future< Map< String, dynamic> > -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
asyncFromJson(
Map< String, dynamic> json) → Future<DestinyVendorReceipt>