Difference between revisions of "CatglobeCostPerDay class"
Nguyenduyan (talk | contribs) (Created page with "{{CGscriptClass_Template |Name=CatglobeCostPerDay |Description=The daily cost object |Methods= {{CGscriptMethods_Template|ReturnType=string|Name=ToString|Description=The strin...") |
|||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{CGscriptClass_Template | {{CGscriptClass_Template | ||
− | |Name=CatglobeCostPerDay | + | |Name=<nowiki>CatglobeCostPerDay</nowiki> |
− | |Description=The daily cost object | + | |Description=<nowiki>The daily cost object</nowiki> |
− | |Methods= | + | |InheritsFrom=object|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=int|Name=CollectionType|HasGetter=1|Description=Get collection type}} | + | {{CGscriptProperties_Template|ReturnType=int|Name=<nowiki>CollectionType</nowiki>|HasGetter=1|Description=<nowiki>Get collection type</nowiki>}} |
− | {{CGscriptProperties_Template|ReturnType=string|Name=CollectionTypeAsString|HasGetter=1|Description=Get collection type}} | + | {{CGscriptProperties_Template|ReturnType=string|Name=<nowiki>CollectionTypeAsString</nowiki>|HasGetter=1|Description=<nowiki>Get collection type</nowiki>}} |
− | {{CGscriptProperties_Template|ReturnType=DateTime|Name=Date|HasGetter=1|Description=The day of the cost}} | + | {{CGscriptProperties_Template|ReturnType=DateTime|Name=<nowiki>Date</nowiki>|HasGetter=1|Description=<nowiki>The day of the cost</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=TypeInformation|Name=TypeInformation|HasGetter=1|Description=Get information about this class.}} | + | {{CGscriptProperties_Template|ReturnType=TypeInformation|Name=<nowiki>TypeInformation</nowiki>|HasGetter=1|Inherited=object|Description=<nowiki>Get information about this class.</nowiki>}} |
− | {{CGscriptProperties_Template|ReturnType=number|Name=Units|HasGetter=1|Description=Get collected cost for the questionnaire one the given day}} | + | {{CGscriptProperties_Template|ReturnType=number|Name=<nowiki>Units</nowiki>|HasGetter=1|Description=<nowiki>Get collected cost for the questionnaire one the given day</nowiki>}} |
}} | }} | ||
+ | |||
+ | === <span style="color:#DF8621">'''Examples'''</span> === | ||
+ | <source lang="javascript"> | ||
+ | array endDate = {2016,11,28,23,59}; | ||
+ | array startDate ={2016,11,28,0,0}; | ||
+ | number folderRId =15548914;//"AnCompany" folder; | ||
+ | array arrayCatglobeCostPerDay = Catglobe.Payment.GetDetailedUsageCostByDay(startDate, endDate,folderRId);//{2016-00-28 (Units:20300, Type:ImportedData} | ||
+ | CatglobeCostPerDay CostPerDay = arrayCatglobeCostPerDay[0];//2016-00-28 (Units:20300, Type:ImportedData | ||
+ | CostPerDay.CollectionType;//1 | ||
+ | CostPerDay.CollectionTypeAsString ;//ImportedData | ||
+ | CostPerDay.Date;//2016-11-28 00:00:00 | ||
+ | CostPerDay.Units;//20300 | ||
+ | </source> |
Latest revision as of 07:40, 2 July 2020
CatglobeCostPerDay
The daily cost object
Parent class
Inherits from object
Methods
- string ToString() - The string representation of the object.
Properties
- int CollectionType { get; } - Get collection type
- string CollectionTypeAsString { get; } - Get collection type
- DateTime Date { get; } - The day of the cost
- string ObjectTypeName { get; } - The name of the type of object.
- (From object) TypeInformation TypeInformation { get; } - Get information about this class.
- number Units { get; } - Get collected cost for the questionnaire one the given day
Examples
array endDate = {2016,11,28,23,59};
array startDate ={2016,11,28,0,0};
number folderRId =15548914;//"AnCompany" folder;
array arrayCatglobeCostPerDay = Catglobe.Payment.GetDetailedUsageCostByDay(startDate, endDate,folderRId);//{2016-00-28 (Units:20300, Type:ImportedData}
CatglobeCostPerDay CostPerDay = arrayCatglobeCostPerDay[0];//2016-00-28 (Units:20300, Type:ImportedData
CostPerDay.CollectionType;//1
CostPerDay.CollectionTypeAsString ;//ImportedData
CostPerDay.Date;//2016-11-28 00:00:00
CostPerDay.Units;//20300