Retrieve all Recurring Application Charges

@link   https://help.shopify.com/api/reference/recurringapplicationcharge#index
@param  array $params
@return RecurringApplicationCharge[]
484416
public function all(array $params = array())
    {
        $endpoint = '/admin/recurring_application_charges.json';
        $response = $this->request($endpoint, 'GET', $params);
        return $this->createCollection(RecurringApplicationCharge::class, $response['recurring_application_charges']);
    }
709242
public function all($params = array())
    {
        $arr = array(
            "currency" => $params["currency"]
        );
        $rawResponse = $this->client->request('get', 'api/deposit_money', $arr);
        return $rawResponse;
    }
452841
public static function getInstance(array $params): Report
    {
        $fields = static::QUERY_FIELDS;

        $bag = (new ParameterBagFactory($fields, $params))->build();

        return new static($bag);
    }
668601
public function request($params)
  {
    $query = array_merge($params, [
      'key' => $this->key
    ]);

    try {

      $response = $this->client->get(self::API_ENDPOINT, [
        'query' => $query
      ]);

    } catch (ClientException $exception) {

      return collect([]);

    }

    $results = json_decode($response->getBody(), true);

    $output = [];

    for($i = 0; $i < count($results['itemListElement']); $i++) {
      $output[] = new SearchResult($results['itemListElement'][$i]);
    }

    return collect($output);
  }
206722
public function all(array $params = array())
    {
        $endpoint = '/admin/marketing_events.json';
        $response = $this->request($endpoint, 'GET', $params);
        return $this->createCollection(MarketingEvent::class, $response['marketing_events']);
    }
1374847
public function generateToken(array $params)
    {
        $stripe = new Stripe(Billable::getStripeKey());

        try {
            $attributes = [
                'card' => [
                    'number'    => $params['cardNumber'],
                    'exp_month' => $params['expiryMonth'],
                    'cvc'       => $params['cvc'],
                    'exp_year'  => $params['expiryYear'],
                ],
            ];

            $token = $stripe->tokens()->create($attributes);

            return [
                'status' => 'success',
                'token' => $token['id']
            ];
        } catch (\Exception $e) {
            return [
                'status' => 'error',
                'message' => $e->getMessage()
            ];
        }
    }
345638
public function charges($params = null)
    {
        $params = $params ?: [];
        $params['customer'] = $this->id;
        $charges = Charge::all($params, $this->_opts);
        return $charges;
    }
1015319
public function findByParams($params = [])
    {
        $query = $this->paramsToQuery($params);

        return $this->findByQuery($query, $params);
    }
107202
public function search($params)
    {
        $query = WarehouseVoucherItems::find();
        $dataProvider = new ActiveDataProvider([
            'query' => $query,
        ]);
        $this->load($params);
        if (!$this->validate()) {
            // uncomment the following line if you do not want to return any records when validation fails
            // $query->where('0=1');
            return $dataProvider;
        }
        $query->andFilterWhere([
            'id'                   => $this->id,
            'warehouse_voucher'    => $this->warehouse_voucher,
            'warehouse_product'    => $this->warehouse_product,
            'product_unit'         => $this->product_unit,
            'product_unit_price'   => $this->product_unit_price,
            'quantity'             => $this->quantity,
            'supplier_quantity'    => $this->quantity,
            'supplier_total_price' => $this->supplier_total_price,
            'total_price'          => $this->total_price,
            'created_at'           => $this->created_at,
            'updated_at'           => $this->updated_at,
            'created_by'           => $this->created_by,
            'updated_by'           => $this->updated_by,
        ]);
        $query->andFilterWhere([
            'like',
            'currency_unit',
            $this->currency_unit,
        ]);

        return $dataProvider;
    }
533020
protected function query(array $params)
    {
        $params['appid'] = $this->app['config']->app_id;

        return $this->request($this->wrap('pay/orderquery'), $params);
    }
13282
public function all(array $params = array())
    {
        $response = $this->request('/admin/webhooks.json', 'GET', $params);
        return $this->createCollection(Webhook::class, $response['webhooks']);
    }
1054928
public function getPermissions(array $params = []): Collection
    {
        if ($this->permissions === null) {
            $this->permissions = $this->cache->remember(self::$cacheKey, self::$cacheExpirationTime, function () {
                return $this->getPermissionClass()
                    ->with('roles')
                    ->get();
            });
        }

        $permissions = clone $this->permissions;

        foreach ($params as $attr => $value) {
            $permissions = $permissions->where($attr, $value);
        }

        return $permissions;
    }
615256
public function all(array $params = array())
    {
        $endpoint = '/admin/reports.json';
        $response = $this->request($endpoint, 'GET', $params);
        return $this->createCollection(Report::class, $response['reports']);
    }
246929
public function getAssetList(array $queryParams = [])
    {
        $propertyList = $this->_getEntityList('Assets', $queryParams);
        $result = [];

        foreach ($propertyList as $properties) {
            $result[] = Asset::createFromOptions($properties);
        }

        return $result;
    }
950481
public function get($applicationChargeId, array $fields = array())
    {
        $params = array();
        if (!empty($fields)) {
            $params['fields'] = implode(',', $fields);
        }
        $data = $this->request('/admin/application_charges/'.$applicationChargeId.'.json', 'GET', $params);
        return $this->createObject(ApplicationCharge::class, $data['application_charge']);
    }
775376
private function createAssignsFromParams(array $params): array
    {
        $assigns = [];

        /** @var Param $param */
        foreach ($params as $param) {
            $propertyFetch = new PropertyFetch(new Variable('this'), $param->var->name);
            $assigns[] = new Assign($propertyFetch, new Variable($param->var->name));
        }

        return $assigns;
    }
507998
public function getRows(array $params = [])
    {
        $query = $this->createQueryBuilder('pc');

        if (array_key_exists('idPlayer', $params)) {
            $query->where('pc.idPlayer= :idPlayer')
                ->setParameter('idPlayer', $params['idPlayer']);
        }

        if (array_key_exists('limit', $params)) {
            $query->setMaxResults($params['limit']);
        }

        if (array_key_exists('orderBy', $params)) {
            $query->orderBy($params['orderBy']['column'], $params['orderBy']['order']);
        }

        return $query->getQuery()->getResult();
    }