示例#1
0
 /**
  * Obtain the Bank Account resource for the given identifier.
  *
  * @param string $bankAccountId
  * @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
  * @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
  * @return BankAccount
  */
 public static function get($bankAccountId, $apiContext = null, $restCall = null)
 {
     ArgumentValidator::validate($bankAccountId, 'bankAccountId');
     $payLoad = "";
     $json = self::executeCall("/v1/vault/bank-accounts/{$bankAccountId}", "GET", $payLoad, null, $apiContext, $restCall);
     $ret = new BankAccount();
     $ret->fromJson($json);
     return $ret;
 }