/**
  * update a customer record, assuming validations will pass
  *
  * if calling this method in static context, customerId
  * is the 2nd attribute. customerId is not sent in object context.
  * returns a Braintree_Customer object on success
  *
  * @access public
  * @param array $attributes
  * @param string $customerId
  * @return object Braintree_Customer
  * @throws Braintree_Exception_ValidationsFailed
  */
 public function updateNoValidate($customerId, $attributes)
 {
     $result = $this->update($customerId, $attributes);
     return Braintree_Util::returnObjectOrThrowException(__CLASS__, $result);
 }
 public function submitForSettlementNoValidate($transactionId, $amount = null)
 {
     $result = $this->submitForSettlement($transactionId, $amount);
     return Braintree_Util::returnObjectOrThrowException(__CLASS__, $result);
 }
Beispiel #3
0
 function testReturnObject()
 {
     $this->success = true;
     $this->transaction = new stdClass();
     $t = Braintree_Util::returnObjectOrThrowException('Braintree_Transaction', $this);
     $this->assertInternalType('object', $t);
 }