Difference between revisions of "PaymentNamespace class"
Nguyenduyan (talk | contribs) |
Nguyenduyan (talk | contribs) |
||
Line 11: | Line 11: | ||
{{CGscriptMethods_Template|ReturnType=array|Name=GetDetailedUsageCostByDay|Parameters= | {{CGscriptMethods_Template|ReturnType=array|Name=GetDetailedUsageCostByDay|Parameters= | ||
{{CGscriptParameters_Template|Type=array|Name=startDate|Description=Period start date|Comma=,}}{{CGscriptParameters_Template|Type=array|Name=endDate|Description=Period end date}} | {{CGscriptParameters_Template|Type=array|Name=startDate|Description=Period start date|Comma=,}}{{CGscriptParameters_Template|Type=array|Name=endDate|Description=Period end date}} | ||
− | |Description=Get detailed information about cost in the specified period for each day with cost}} | + | |Description=Get detailed information about cost in the specified period for each day with cost. Return array of CatglobeCostPerDay}} |
{{CGscriptMethods_Template|ReturnType=array|Name=GetDetailedUsageCostByDay|Parameters= | {{CGscriptMethods_Template|ReturnType=array|Name=GetDetailedUsageCostByDay|Parameters= | ||
{{CGscriptParameters_Template|Type=array|Name=startDate|Description=Period start date|Comma=,}}{{CGscriptParameters_Template|Type=array|Name=endDate|Description=Period end date|Comma=,}}{{CGscriptParameters_Template|Type=int|Name=inFolderResourceId|Description=Top level folder to limit the search to}} | {{CGscriptParameters_Template|Type=array|Name=startDate|Description=Period start date|Comma=,}}{{CGscriptParameters_Template|Type=array|Name=endDate|Description=Period end date|Comma=,}}{{CGscriptParameters_Template|Type=int|Name=inFolderResourceId|Description=Top level folder to limit the search to}} | ||
− | |Description=Get detailed information about cost in the specified period for each day with cost}} | + | |Description=Get detailed information about cost in the specified period for each day with cost. Return array of CatglobeCostPerDay}} |
{{CGscriptMethods_Template|ReturnType=array|Name=GetPurchaseInformation|Parameters= | {{CGscriptMethods_Template|ReturnType=array|Name=GetPurchaseInformation|Parameters= | ||
{{CGscriptParameters_Template|Type=int|Name=inFolderResourceId|Description=Top level folder to get information about}} | {{CGscriptParameters_Template|Type=int|Name=inFolderResourceId|Description=Top level folder to get information about}} | ||
− | |Description=Get detailed information about purchases made for a given resource}} | + | |Description=Get detailed information about purchases made for a given resource. Return array of CatglobeCostPurchase}} |
{{CGscriptMethods_Template|ReturnType=CatglobeCost|Name=GetSimpleUsageCost|Parameters= | {{CGscriptMethods_Template|ReturnType=CatglobeCost|Name=GetSimpleUsageCost|Parameters= | ||
{{CGscriptParameters_Template|Type=array|Name=startDate|Description=Period start date|Comma=,}}{{CGscriptParameters_Template|Type=array|Name=endDate|Description=Period end date}} | {{CGscriptParameters_Template|Type=array|Name=startDate|Description=Period start date|Comma=,}}{{CGscriptParameters_Template|Type=array|Name=endDate|Description=Period end date}} |
Revision as of 10:06, 17 January 2017
PaymentNamespace
The payment namespace
Methods
- array GetDetailedUsageCost(array startDate "Period start date", array endDate "Period end date") - Get detailed information about cost in the specified period
- array GetDetailedUsageCost(array startDate "Period start date", array endDate "Period end date", int inFolderResourceId "Top level folder to limit the search to") - Get detailed information about cost in the specified period
- array GetDetailedUsageCostByDay(array startDate "Period start date", array endDate "Period end date") - Get detailed information about cost in the specified period for each day with cost. Return array of CatglobeCostPerDay
- array GetDetailedUsageCostByDay(array startDate "Period start date", array endDate "Period end date", int inFolderResourceId "Top level folder to limit the search to") - Get detailed information about cost in the specified period for each day with cost. Return array of CatglobeCostPerDay
- array GetPurchaseInformation(int inFolderResourceId "Top level folder to get information about") - Get detailed information about purchases made for a given resource. Return array of CatglobeCostPurchase
- CatglobeCost GetSimpleUsageCost(array startDate "Period start date", array endDate "Period end date") - Get simple information about cost in the specified period
- CatglobeCost GetSimpleUsageCost(array startDate "Period start date", array endDate "Period end date", int inFolderResourceId "Top level folder to limit the search to") - Get simple information about cost in the specified period
- string ToString() - The string representation of the object.
- Empty UpdateExpired(int inFolderResourceId "Top level folder to limit the search to") - Register any expired packages as used units
Properties
- string ObjectTypeName { get; } - The name of the type of object.
- TypeInformation TypeInformation { get; } - Get information about this class.
Examples
array startDate ={2016,12,30,0,0};
array endDate = {2016,12,31,23,59};
number folderRId =15555058;
array DetailedUsageCost1 = Catglobe.Payment.GetDetailedUsageCost(startDate, endDate);
array DetailedUsageCost2 = Catglobe.Payment.GetDetailedUsageCost(startDate, endDate,folderRId);
print(DetailedUsageCost1);
print(DetailedUsageCost2);
array startDate ={2016,12,30,0,0};
array endDate = {2016,12,31,23,59};
number folderRId =15555058;
array a = Catglobe.Payment.GetDetailedUsageCostByDay(startDate, endDate);
array a = Catglobe.Payment.GetDetailedUsageCostByDay(startDate, endDate, folderRId);
array startDate ={2016,12,30,0,0};
array endDate = {2016,12,31,23,59};
number folderRId =15555058;
CatglobeCost SimpleUsageCost1 = Catglobe.Payment.GetSimpleUsageCost(startDate, endDate);
CatglobeCost SimpleUsageCost2 = Catglobe.Payment.GetSimpleUsageCost(startDate, endDate,folderRId);
print(SimpleUsageCost1);//(Q:11000, Cgs:8000, Import:4000, Mail:8000, Exp:0, Bought:-400000) = -369000
print(SimpleUsageCost2);//(Q:11000, Cgs:8000, Import:4000, Mail:8000, Exp:0, Bought:-200000) = -169000