Difference between revisions of "CatglobeCost class"

From Catglobe Wiki
Jump to: navigation, search
Line 1: Line 1:
 
{{CGscriptClass_Template
 
{{CGscriptClass_Template
|Name=CatglobeCost
+
|Name=<nowiki>CatglobeCost</nowiki>
|Description=The cost object
+
|Description=<nowiki>The cost object</nowiki>
 
|Methods=
 
|Methods=
{{CGscriptMethods_Template|ReturnType=string|Name=ToString|Description=The string representation of the object.}}
+
{{CGscriptMethods_Template|ReturnType=string|Name=<nowiki>ToString</nowiki>|Description=<nowiki>The string representation of the object.</nowiki>}}
 
|Properties=
 
|Properties=
{{CGscriptProperties_Template|ReturnType=number|Name=CollectedCost|HasGetter=1|Description=Get collected answers cost for the questionnaire in the specified period}}
+
{{CGscriptProperties_Template|ReturnType=number|Name=<nowiki>CollectedCost</nowiki>|HasGetter=1|Description=<nowiki>Get collected answers cost for the questionnaire in the specified period</nowiki>}}
{{CGscriptProperties_Template|ReturnType=number|Name=ExpiredCost|HasGetter=1|Description=Get cost of expired packages for the resource in the specified period}}
+
{{CGscriptProperties_Template|ReturnType=number|Name=<nowiki>ExpiredCost</nowiki>|HasGetter=1|Description=<nowiki>Get cost of expired packages for the resource in the specified period</nowiki>}}
{{CGscriptProperties_Template|ReturnType=number|Name=ImportedCost|HasGetter=1|Description=Get imported answers cost for the questionnaire in the specified period}}
+
{{CGscriptProperties_Template|ReturnType=number|Name=<nowiki>ImportedCost</nowiki>|HasGetter=1|Description=<nowiki>Get imported answers cost for the questionnaire in the specified period</nowiki>}}
{{CGscriptProperties_Template|ReturnType=DateTime|Name=LastTransaction|HasGetter=1|Description=Get last movement in the specified period}}
+
{{CGscriptProperties_Template|ReturnType=DateTime|Name=<nowiki>LastTransaction</nowiki>|HasGetter=1|Description=<nowiki>Get last movement in the specified period</nowiki>}}
{{CGscriptProperties_Template|ReturnType=number|Name=MailCost|HasGetter=1|Description=Get cost for the resource mails in the specified period}}
+
{{CGscriptProperties_Template|ReturnType=number|Name=<nowiki>MailCost</nowiki>|HasGetter=1|Description=<nowiki>Get cost for the resources mails in the specified period</nowiki>}}
{{CGscriptProperties_Template|ReturnType=string|Name=Name|HasGetter=1|Description=Get name of the resource}}
+
{{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>Name</nowiki>|HasGetter=1|Description=<nowiki>Get name of the resource</nowiki>}}
{{CGscriptProperties_Template|ReturnType=string|Name=ObjectTypeName|HasGetter=1|Description=The name of the type of object.}}
+
{{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>ObjectTypeName</nowiki>|HasGetter=1|Description=<nowiki>The name of the type of object.</nowiki>}}
{{CGscriptProperties_Template|ReturnType=number|Name=Purchase|HasGetter=1|Description=Get any purchase in the specified period}}
+
{{CGscriptProperties_Template|ReturnType=number|Name=<nowiki>Purchase</nowiki>|HasGetter=1|Description=<nowiki>Get any purchase in the specified period</nowiki>}}
{{CGscriptProperties_Template|ReturnType=int|Name=ResourceId|HasGetter=1|Description=Get resource id}}
+
{{CGscriptProperties_Template|ReturnType=int|Name=<nowiki>ResourceId</nowiki>|HasGetter=1|Description=<nowiki>Get resource id</nowiki>}}
{{CGscriptProperties_Template|ReturnType=number|Name=ScriptedCost|HasGetter=1|Description=Get scripted answers cost for the questionnaire in the specified period}}
+
{{CGscriptProperties_Template|ReturnType=number|Name=<nowiki>ScriptedCost</nowiki>|HasGetter=1|Description=<nowiki>Get scripted answers cost for the questionnaire in the specified period</nowiki>}}
{{CGscriptProperties_Template|ReturnType=number|Name=Total|HasGetter=1|Description=Get total in the specified period}}
+
{{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=TypeInformation|Name=TypeInformation|HasGetter=1|Description=Get information about this class.}}
+
{{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>}}
 
}}
 
}}
  

Revision as of 11:34, 12 October 2018

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