BraintreeSettlementBatchSummary

The PayPal for WooCommerce Braintree SettlementBatchSummary class.

Defined (1)

The class is defined in the following location(s).

/classes/lib/Braintree/Braintree/SettlementBatchSummary.php  
  1. class SettlementBatchSummary extends Base 
  2. /** 
  3. * @param array $attributes 
  4. * @return SettlementBatchSummary 
  5. */ 
  6. public static function factory($attributes) 
  7. $instance = new self(); 
  8. $instance->_initialize($attributes); 
  9. return $instance; 
  10.  
  11. /** 
  12. * @ignore 
  13. * @param array $attributes 
  14. */ 
  15. protected function _initialize($attributes) 
  16. $this->_attributes = $attributes; 
  17.  
  18. public function records() 
  19. return $this->_attributes['records']; 
  20.  
  21.  
  22. /** 
  23. * static method redirecting to gateway 
  24. * @param string $settlement_date Date YYYY-MM-DD 
  25. * @param string $groupByCustomField 
  26. * @return Result\Successful|Result\Error 
  27. */ 
  28. public static function generate($settlement_date, $groupByCustomField = NULL) 
  29. return Configuration::gateway()->settlementBatchSummary()->generate($settlement_date, $groupByCustomField);