Przejdź do głównej zawartości

DigitalDownload

Digital content bought together with an order line item.

type DigitalDownload {
assetId: ID!
downloadsRemaining: Int
expiresAt: String
filename: String!
ready: Boolean!
sizeBytes: UnsignedInt64
}

Fields​

DigitalDownload.assetId ● ID! non-null scalar​

Identifier of the file. Pass it to the mutation that issues the download link.

DigitalDownload.downloadsRemaining ● Int scalar​

How many downloads the buyer has left. Null means no limit at all — it does not mean zero.

DigitalDownload.expiresAt ● String scalar​

When access expires (ISO 8601). Null means access never expires.

DigitalDownload.filename ● String! non-null scalar​

File name the buyer will see once the file has been downloaded.

DigitalDownload.ready ● Boolean! non-null scalar​

Whether the file is ready to download. false means its content is still being checked — render a pending state rather than an error.

DigitalDownload.sizeBytes ● UnsignedInt64 scalar​

File size in bytes, returned as a STRING (e.g. "41943040"), not a number — convert it (Number(sizeBytes)) before any arithmetic or formatting. Absent while the file is still being checked.

Member Of​

OrderLineItem object