Skip to content

Latest commit

 

History

History
97 lines (52 loc) · 1.64 KB

CdvPurchase.Receipt.md

File metadata and controls

97 lines (52 loc) · 1.64 KB

Class: Receipt

CdvPurchase.Receipt

Hierarchy

Table of contents

Properties

Methods

Properties

platform

platform: Platform

Platform that generated the receipt


transactions

transactions: Transaction[] = []

List of transactions contained in the receipt, ordered by date ascending.

Methods

finish

finish(): Promise<void>

Finish all transactions in a receipt

Returns

Promise<void>


hasTransaction

hasTransaction(value): boolean

Return true if the receipt contains the given transaction

Parameters

Name Type
value Transaction

Returns

boolean


lastTransaction

lastTransaction(): Transaction

Return the last transaction in this receipt

Returns

Transaction


verify

verify(): Promise<void>

Verify a receipt

Returns

Promise<void>