Beispiel #1
0
 /**
  * @param string $customerUid
  * @return Pencepay_DeleteResult
  */
 public static function delete($customerUid)
 {
     return Pencepay_Util_HttpClient::delete("/customer/{$customerUid}");
 }
Beispiel #2
0
 /**
  * @param string $transactionUid
  * @param string $amount
  * @return Pencepay_Transaction
  */
 public static function refund($transactionUid, $amount)
 {
     $actionRequest = Pencepay_Request_TransactionAction::build()->amount($amount);
     return Pencepay_Util_HttpClient::post("/transaction/{$transactionUid}/refund", $actionRequest);
 }
Beispiel #3
0
 /**
  * Disables the two-factor authentication for this user.
  *
  * @param string $userUid
  * @param string $verificationCode
  * @return array
  */
 public static function disable2FA($userUid, $verificationCode)
 {
     $request = array('verificationCode' => $verificationCode);
     return Pencepay_Util_HttpClient::postArray("/user/{$userUid}/tfa_disable", $request);
 }
Beispiel #4
0
 /**
  * @param string $callbackUid
  * @return Pencepay_DeleteResult
  */
 public static function delete($callbackUid)
 {
     return Pencepay_Util_HttpClient::delete("/callback/{$callbackUid}");
 }
Beispiel #5
0
 /**
  * @param string $tagUid
  * @return Pencepay_DeleteResult
  */
 public static function delete($tagUid)
 {
     return Pencepay_Util_HttpClient::delete("/tag/{$tagUid}");
 }
Beispiel #6
0
 /**
  * @param string $accountUid
  * @param string $customerUid
  * @return Pencepay_DeleteResult
  */
 public static function delete($accountUid, $customerUid)
 {
     return Pencepay_Util_HttpClient::delete("/customer/{$customerUid}/bank_account/{$accountUid}");
 }
Beispiel #7
0
 /**
  * @param string $merchantUid
  * @return Pencepay_DeleteResult
  */
 public static function delete($merchantUid)
 {
     return Pencepay_Util_HttpClient::delete("/merchant/{$merchantUid}");
 }
Beispiel #8
0
 /**
  * @param string $roleUid
  * @return Pencepay_DeleteResult
  */
 public static function delete($roleUid)
 {
     return Pencepay_Util_HttpClient::delete("/role/{$roleUid}");
 }
Beispiel #9
0
 /**
  * @param Pencepay_Request_EventSearch $search
  * @return Pencepay_Collection
  */
 public static function search($search)
 {
     return Pencepay_Util_HttpClient::getWithParams("/events", $search);
 }