/
model_destiny_vendors_destiny_vendor_receipt.go
33 lines (32 loc) · 1.83 KB
/
model_destiny_vendors_destiny_vendor_receipt.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
* Bungie.Net API
*
* These endpoints constitute the functionality exposed by Bungie.net, both for more traditional website functionality and for connectivity to Bungie video games and their related functionality.
*
* API version: 2.18.0
* Contact: support@bungie.com
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package D2Client
import (
"time"
)
// 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.
type DestinyVendorsDestinyVendorReceipt struct {
// The amount paid for the item, in terms of items that were consumed in the purchase and their quantity.
CurrencyPaid []DestinyDestinyItemQuantity `json:"currencyPaid,omitempty"`
// The item that was received, and its quantity.
ItemReceived *AllOfDestinyVendorsDestinyVendorReceiptItemReceived `json:"itemReceived,omitempty"`
// The unlock flag used to determine whether you still have the purchased item.
LicenseUnlockHash int32 `json:"licenseUnlockHash,omitempty"`
// The ID of the character who made the purchase.
PurchasedByCharacterId int64 `json:"purchasedByCharacterId,omitempty"`
// Whether you can get a refund, and what happens in order for the refund to be received. See the DestinyVendorItemRefundPolicy enum for details.
RefundPolicy int32 `json:"refundPolicy,omitempty"`
// The identifier of this receipt.
SequenceNumber int32 `json:"sequenceNumber,omitempty"`
// The seconds since epoch at which this receipt is rendered invalid.
TimeToExpiration int64 `json:"timeToExpiration,omitempty"`
// The date at which this receipt is rendered invalid.
ExpiresOn time.Time `json:"expiresOn,omitempty"`
}