-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstatement.php
More file actions
34 lines (29 loc) · 929 Bytes
/
statement.php
File metadata and controls
34 lines (29 loc) · 929 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
//see: http://docs.corepro.io/api/Statement/
class Statement {
public $customerId;
public $statementId;
public $month;
public $type;
public $year;
public function Get($customerId, $statementId){
$requestor = new Requestor();
$model = $requestor->Get("/statement/get/".$customerId."/".$statementId, "Statement");
return $model;
}
public function ListAll($customerId){
$requestor = new Requestor();
$model = $requestor->Get("/statement/list/".$customerId, "Statement");
return $model;
}
public function Search($customerId,$type,$year,$month){
$requestor = new Requestor();
$model = $requestor->Get("/statement/search/".$customerId."/".$type."/".$year."/".$month, "Statement");
return $model;
}
public function Download($customerId, $statementId){
$requestor = new Requestor();
$model = $requestor->GetDownload("/statement/download/".$customerId."/".$statementId);
return $model;
}
}