Statements API
This topic describes the end of day statement APIs for the Integration Framework.
API
Name | Description |
---|---|
StatementInfo CreateStatement(LogonInfo, RecordIdentifier, bool) |
Create end of day statements for a specific store. Returns the created statement info. Parameters:
|
List<StatementInfo> CreateStatements(LogonInfo, bool) |
Create end of day statements for all stores. Returns the created statement info for each store. Parameters:
|
List<StatementInfo> GetStatements(LogonInfo, DateTime) |
Get all end of day statements, from all stores, created after a specific date. Parameters:
|
List<StatementInfo> GetStatements(LogonInfo, DateTime, RecordIdentifier) |
Get all end of day statements, for a specific store, created after a specific date. Parameters:
|
Business objects
The following business objects are used by the end of day statements API.

Name | Description |
---|---|
Calculated | Indicates if the statement has been calculated. |
CalculatedTime | The date and time at which the statement was calculated. |
EndingTime | The end date time of the statement. |
ERPProcessed | Indicates if the statement has been retrieved and process by an ERP connector. |
FromPeriodType | Indicates if the statement start from the end of day, end of shift or from the last statement. |
FromType | Indicates if the statement starts from a period (FromPeriodType) or from a manual time. |
Posted | Indicates if the statement has been posted. |
PostingDate | The date and time at which the statement was posted. |
EndingTime | The start date time of the statement. |
StoreID | The ID of the store on which this statement was created. |
ToPeriodType | Indicates if the statement is until the end of day or end of shift. |
ToType | Indicates if the statement ends from a period (ToPeriodType) or from a manual time. |
Examples

By default, when creating statements, the end time will be the current time and the starting time will be the time of the last statement. If there is no statement, the last end of day transaction will be used. If there is no end of day transaction either, the process cannot continue.
Creating statements
StatementInfo statement = wcfStatementsService.CreateStatement(CreateLogonInfo(dataModel), "S0001", true);
if(statement != null)
//Statement has been succesfully created
In the above example we are creating a statement for a specific store.
Getting statements
List<StatementInfo> statements = wcfStatementsService.GetStatements(CreateLogonInfo(dataModel), DateTime.Now.AddMonths(-1));
foreach(StatementInfo st in statements)
{
//Do something
}
In the above example we are getting all statements, from all stores, that were created from one month ago until now.