Beispiel #1
0
 /**
  * Retrieves the template information of the merchant.
  *
  * @param array $params
  * @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 Templates
  */
 public static function getAll($params = array(), $apiContext = null, $restCall = null)
 {
     ArgumentValidator::validate($params, 'params');
     $payLoad = "";
     $allowedParams = array('fields' => 1);
     $json = self::executeCall("/v1/invoicing/templates/" . "?" . http_build_query(array_intersect_key($params, $allowedParams)), "GET", $payLoad, null, $apiContext, $restCall);
     $ret = new Templates();
     $ret->fromJson($json);
     return $ret;
 }