CatglobeCostPerDay class

From Catglobe Wiki
Revision as of 07:40, 2 July 2020 by Administrator (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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