SettlementBatchSummary.php
1.1 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
namespace Braintree;
/**
* @property-read array $records
*/
class SettlementBatchSummary extends Base
{
/**
*
* @param array $attributes
* @return SettlementBatchSummary
*/
public static function factory($attributes)
{
$instance = new self();
$instance->_initialize($attributes);
return $instance;
}
/**
* @ignore
* @param array $attributes
*/
protected function _initialize($attributes)
{
$this->_attributes = $attributes;
}
public function records()
{
return $this->_attributes['records'];
}
/**
* static method redirecting to gateway
*
* @param string $settlement_date Date YYYY-MM-DD
* @param string $groupByCustomField
* @return Result\Successful|Result\Error
*/
public static function generate($settlement_date, $groupByCustomField = NULL)
{
return Configuration::gateway()->settlementBatchSummary()->generate($settlement_date, $groupByCustomField);
}
}
class_alias('Braintree\SettlementBatchSummary', 'Braintree_SettlementBatchSummary');