JUCE API reference
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
juce::InAppPurchases::Purchase Struct Reference

Represents a purchase of a product in the store. More...

Public Member Functions

 Purchase ()
 
 Purchase (String orderId, StringArray productIds, String applicationBundleName, Time timeOfPurchase, String purchaseToken)
 
 Purchase (const Purchase &)
 
 Purchase (Purchase &&) noexcept
 
Purchase & operator= (const Purchase &)
 
Purchase & operator= (Purchase &&) noexcept
 
 ~Purchase ()
 

Public Attributes

String orderId
 A unique order identifier for the transaction (generated by the store).
 
StringArray productIds
 Unique identifiers of the products that were purchased.
 
String applicationBundleName
 This will be bundle ID on iOS and package name on Android, of the application for which this in-app product was purchased.
 
String purchaseTime
 Date of the purchase formatted as timeOfPurchase.toString (true, true, true, true).
 
Time timeOfPurchase
 Date of the purchase as a Time object.
 
String purchaseToken
 Android only: purchase token that should be used to consume purchase, provided that In-App product is consumable.
 

Detailed Description

Represents a purchase of a product in the store.

Constructor & Destructor Documentation

◆ Purchase() [1/4]

juce::InAppPurchases::Purchase::Purchase ( )

◆ Purchase() [2/4]

juce::InAppPurchases::Purchase::Purchase ( String  orderId,
StringArray  productIds,
String  applicationBundleName,
Time  timeOfPurchase,
String  purchaseToken 
)

◆ Purchase() [3/4]

juce::InAppPurchases::Purchase::Purchase ( const Purchase &  )

◆ Purchase() [4/4]

juce::InAppPurchases::Purchase::Purchase ( Purchase &&  )
noexcept

◆ ~Purchase()

juce::InAppPurchases::Purchase::~Purchase ( )

Member Function Documentation

◆ operator=() [1/2]

Purchase & juce::InAppPurchases::Purchase::operator= ( const Purchase &  )

◆ operator=() [2/2]

Purchase & juce::InAppPurchases::Purchase::operator= ( Purchase &&  )
noexcept

Member Data Documentation

◆ orderId

String juce::InAppPurchases::Purchase::orderId

A unique order identifier for the transaction (generated by the store).

◆ productIds

StringArray juce::InAppPurchases::Purchase::productIds

Unique identifiers of the products that were purchased.

◆ applicationBundleName

String juce::InAppPurchases::Purchase::applicationBundleName

This will be bundle ID on iOS and package name on Android, of the application for which this in-app product was purchased.

◆ purchaseTime

String juce::InAppPurchases::Purchase::purchaseTime

Date of the purchase formatted as timeOfPurchase.toString (true, true, true, true).

◆ timeOfPurchase

Time juce::InAppPurchases::Purchase::timeOfPurchase

Date of the purchase as a Time object.

◆ purchaseToken

String juce::InAppPurchases::Purchase::purchaseToken

Android only: purchase token that should be used to consume purchase, provided that In-App product is consumable.


The documentation for this struct was generated from the following file: