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.

CatglobeCost class: Difference between revisions

From Catglobe Wiki
No edit summary
No edit summary
 
Line 2: Line 2:
|Name=<nowiki>CatglobeCost</nowiki>
|Name=<nowiki>CatglobeCost</nowiki>
|Description=<nowiki>The cost object</nowiki>
|Description=<nowiki>The cost object</nowiki>
|Methods=
|InheritsFrom=object|Methods=
{{CGscriptMethods_Template|ReturnType=string|Name=<nowiki>ToString</nowiki>|Description=<nowiki>The string representation of the object.</nowiki>}}
{{CGscriptMethods_Template|ReturnType=string|Name=<nowiki>ToString</nowiki>|Description=<nowiki>The string representation of the object.</nowiki>}}
|Properties=
|Properties=
Line 17: Line 17:
{{CGscriptProperties_Template|ReturnType=number|Name=<nowiki>SmsCost</nowiki>|HasGetter=1|Description=<nowiki>Get cost for the resources sms in the specified period</nowiki>}}
{{CGscriptProperties_Template|ReturnType=number|Name=<nowiki>SmsCost</nowiki>|HasGetter=1|Description=<nowiki>Get cost for the resources sms in the specified period</nowiki>}}
{{CGscriptProperties_Template|ReturnType=number|Name=<nowiki>Total</nowiki>|HasGetter=1|Description=<nowiki>Get total in the specified period</nowiki>}}
{{CGscriptProperties_Template|ReturnType=number|Name=<nowiki>Total</nowiki>|HasGetter=1|Description=<nowiki>Get total in the specified period</nowiki>}}
{{CGscriptProperties_Template|ReturnType=TypeInformation|Name=<nowiki>TypeInformation</nowiki>|HasGetter=1|Description=<nowiki>Get information about this class.</nowiki>}}
{{CGscriptProperties_Template|ReturnType=TypeInformation|Name=<nowiki>TypeInformation</nowiki>|HasGetter=1|Inherited=object|Description=<nowiki>Get information about this class.</nowiki>}}
}}
}}



Latest revision as of 06:40, 2 July 2020

CatglobeCost



The cost object

Parent class

Inherits from 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
  • DateTime LastTransaction { get; } - Get last movement in the specified period
  • number MailCost { get; } - Get cost for the resources 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
  • number SmsCost { get; } - Get cost for the resources sms in the specified period
  • number Total { get; } - Get total in the specified period
  • (From object) 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