Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

CatglobeCostPurchase class

From Catglobe Wiki
Revision as of 06:40, 2 July 2020 by Administrator (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

CatglobeCostPurchase



Represents a purchase made

Parent class

Inherits from object

Methods

  • string ToString() - The string representation of the object.

Properties

  • string BuyStatusAsString { get; } - How was it bought
  • DateTime ExpireDate { get; } - When does the purchase expire. May be empty
  • string ObjectTypeName { get; } - The name of the type of object.
  • DateTime PurchaseDate { get; } - When was the purchase
  • int ResourceId { get; } - For which resource was the purchase made
  • (From object) TypeInformation TypeInformation { get; } - Get information about this class.
  • number Units { get; } - How many units was purchased
  • string UsageStatusAsString { get; } - What is current usage status


Examples

number folderRId=15556593;
array purInfo = Catglobe.Payment.GetPurchaseInformation(folderRId);
CatglobeCostPurchase a = purInfo[0];
print(a.BuyStatusAsString);
print(a.ExpireDate);
print(a.PurchaseDate);
print(a.ResourceId);
print(a.Units);
print(a.UsageStatusAsString);