BraintreeSettlementBatchSummary
The Paid Memberships Pro Braintree SettlementBatchSummary class.
Defined (1)
The class is defined in the following location(s).
- /includes/lib/Braintree/lib/Braintree/SettlementBatchSummary.php
- 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);
- }
- }