CatglobeCost class

From Catglobe Wiki
Revision as of 08:36, 24 November 2016 by Nguyenduyan (talk | contribs) (Created page with "{{CGscriptClass_Template |Name=CatglobeCost |Description=The cost object |Methods= {{CGscriptMethods_Template|ReturnType=string|Name=ToString|Description=The string representa...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

CatglobeCost



The cost object


Methods

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

Properties

  • number CollectedCost { get; } - Get collected answers cost for the questionnaire in the specified period
  • number ExpiredCost { get; } - Get cost of expired packages for the resource in the specified period
  • number ImportedCost { get; } - Get imported answers cost for the questionnaire in the specified period
  • number MailCost { get; } - Get cost for the resource mails in the specified period
  • string Name { get; } - Get name of the resource
  • string ObjectTypeName { get; } - The name of the type of object.
  • number Purchase { get; } - Get any purchase in the specified period
  • int ResourceId { get; } - Get resource id
  • number ScriptedCost { get; } - Get scripted answers cost for the questionnaire in the specified period
  • TypeInformation TypeInformation { get; } - Get information about this class.


Examples

array endDate=getCurrentDateTime();
array startDate = DateTime_subtractDays(endDate,7);
 
CatglobeCost cCost = Catglobe.Payment.GetSimpleUsageCost(startDate, endDate);
print("CollectedCost:");
print(cCost.CollectedCost);//7080000
print("ExpiredCost:");
print(cCost.ExpiredCost);//0
print("ImportedCost:");
print(cCost.ImportedCost);//29350
print("MailCost:");
print(cCost.MailCost);//0
print("Name");
print(cCost.Name);//
print("Purchase");
print(cCost.Purchase);//0
print("ResourceId");
print(cCost.ResourceId);//0
print("ScriptedCost:");
print(cCost.ScriptedCost);//4785000