public function all($recurringApplicationChargeId, array $params = array())
    {
        $endpoint = '/admin/recurring_application_charges/'.$recurringApplicationChargeId.'/usage_charges.json';
        $response = $this->request($endpoint, 'GET', $params);
        return $this->createCollection(UsageCharge::class, $response['usage_charges']);
    }
public function all($recurringApplicationChargeId, array $params = array())
    {
        $endpoint = '/admin/recurring_application_charges/'.$recurringApplicationChargeId.'/usage_charges.json';
        $response = $this->request($endpoint, 'GET', $params);
        return $this->createCollection(UsageCharge::class, $response['usage_charges']);
    }
public function all ( $ recurringApplicationChargeId , array $ params = array ( ) ) { $ endpoint = '/admin/recurring_application_charges/' . $ recurringApplicationChargeId . '/usage_charges.json' ; $ response = $ this -> request ( $ endpoint , 'GET' , $ params ) ; return $ this -> createCollection ( UsageCharge :: class , $ response [ 'usage_charges' ] ) ; }
Retrieve all usage charges

@link   https://help.shopify.com/api/reference/usagecharge#index
@param  integer $recurringApplicationChargeId
@param  array   $params
@return UsageCharge[]
Retrieve all usage charges