CatglobeCostPurchase class

From Catglobe Wiki
Revision as of 09:34, 13 January 2017 by Nguyenduyan (talk | contribs)
Jump to: navigation, search

CatglobeCostPurchase



Represents a purchase made


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
  • 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);