Receive a single usage charge

@link   https://help.shopify.com/api/reference/usagecharge#show
@param  integer $recurringApplicationChargeId
@param  integer $usageChargeId
@param  array   $params
@return UsageCharge
194892
public function get($recurringApplicationChargeId, $usageChargeId, array $params = array())
    {
        $endpoint = '/admin/recurring_application_charges/'.$recurringApplicationChargeId.'/usage_charges/'.$usageChargeId.'.json';
        $response = $this->request($endpoint, 'GET', $params);
        return $this->createObject(UsageCharge::class, $response['usage_charge']);
    }
1162365
public function renewAppCallback(Request $request, ApiApplication $application)
    {
        $this->assertJsonRequestFormat($request);

        try {
            $this->getApiApplicationManipulator()
                ->setRedirectUri($application, $request->request->get("callback"));
        } catch (InvalidArgumentException $e) {
            return $this->app->json(['success' => false]);
        }

        return $this->app->json(['success' => true]);
    }
575960
public void updateCharging(String subscriptionId, String serviceContextId, long units) throws Exception {
    // Fetch existing Ro session
    ClientCCASession roSession = roSessions.get(serviceContextId);

    // Create and Send CCR (UPDATE)
    JCreditControlRequest updateCCR = createCCR(CC_REQUEST_TYPE_UPDATE, subscriptionId, serviceContextId);
    roSession.sendCreditControlRequest(updateCCR);

    switchStateMachine(SENT_CCR_UPDATE);
  }
378575
public function getChargeHistory($chargeId)
	{


		$requestPayload = array (
			'authorization' => $this->_apiSetting->getSecretKey(),
			'mode'          => $this->_apiSetting->getMode(),
			'method'         => 'GET',
		);

		$retrieveChargeHistoryWithChargeUri = sprintf ($this->_apiUrl->getRetrieveChargeHistoryApiUri(),$chargeId);

		$processCharge = \com\checkout\helpers\ApiHttpClient::getRequest($retrieveChargeHistoryWithChargeUri,
			$this->_apiSetting->getSecretKey(),$requestPayload);

		$responseModel = new ResponseModels\ChargeHistory($processCharge);
		return $responseModel;
	}
399198
def delete_additional_charge(self, recurring_billing_id):
        
        fmt = 'recurringBillItems/{}'.format(recurring_billing_id)
        return self.client._delete(self.url + fmt, headers=self.get_headers())
494868
def get_recurring_bill_by_client(self, *, customer_id, date_begin=None, date_final=None):
        
        params = {
            "customerId": customer_id,
        }
        if date_begin and date_final:
            params['dateBegin'] = date_begin.strftime('%Y-%m-%d')
            params['dateFinal'] = date_final.strftime('%Y-%m-%d')
        return self.client._get(self.url + 'recurringBill', params=params, headers=self.get_headers())
1262691
private Billing generateDefaultReservation() {
        Billing billing = new Billing();
        Billing.Reservation reservation = new Billing.Reservation();
        billing.setReservation(reservation);
        reservation.setReservationLength(1);
        return billing;
    }
328537
public java.util.List<RecurringCharge> getRecurringCharges() {
        if (recurringCharges == null) {
            recurringCharges = new com.amazonaws.internal.SdkInternalList<RecurringCharge>();
        }
        return recurringCharges;
    }
94406
public function activate(RecurringApplicationCharge $recurringApplicationCharge)
    {
        $endpoint = '/admin/recurring_application_charges/'.$recurringApplicationCharge->id.'/activate.json';
        $response = $this->request($endpoint, 'POST');
        $recurringApplicationCharge->setData($response['recurring_application_charge']);
    }
1250626
public function addChargeAtTermEnd(string $id, array $data, array $headers = [])
    {
        $url = $this->url('subscriptions/%s/add_charge_at_term_end', $id);

        return $this->post($url, $data, $headers);
    }
705269
public function createSinglePlan(RequestModels\BaseRecurringPayment $requestModel)
    {
        $recurringPaymentMapper = new \com\checkout\ApiServices\RecurringPayments\RecurringPaymentMapper($requestModel);

        $requestPayload = array (
            'authorization' => $this->_apiSetting->getSecretKey(),
            'mode'          => $this->_apiSetting->getMode(),
            'postedParam'   => $recurringPaymentMapper->requestPayloadConverter(),

        );

        $processCharge = \com\checkout\helpers\ApiHttpClient::postRequest($this->_apiUrl->getRecurringPaymentsApiUri(),
            $this->_apiSetting->getSecretKey(),$requestPayload);

        $responseModel = new ResponseModels\RecurringPayment($processCharge);

        return $responseModel;
    }
1018279
public function initBillingAgreementPaymentInfo(
        Adyen_Payment_Model_Billing_Agreement $billingAgreement,
        Mage_Sales_Model_Quote_Payment $paymentInfo
    ) {
        try {
            $recurringDetailReference = $billingAgreement->getReferenceId();
            $paymentInfo->setMethod('adyen_oneclick_' . $recurringDetailReference);
            $paymentInfo->setAdditionalInformation('recurring_detail_reference', $recurringDetailReference);

            // set the ccType needed for Sepa, Sofort and Ideal
            $agreementData = $billingAgreement->getAgreementData();
            if (isset($agreementData['variant'])) {
                $paymentInfo->setCcType($agreementData['variant']);
            }
        } catch (Exception $e) {
            Adyen_Payment_Exception::logException($e);
        }

        return $this;
    }
51035
public function all(array $params = array())
    {
        $data = $this->request('/admin/application_charges.json', 'GET', $params);
        return $this->createCollection(ApplicationCharge::class, $data['application_charges']);
    }
1083097
public function create(ApplicationCharge &$applicationCharge)
    {
        $data = $applicationCharge->exportData();
        $endpoint = '/admin/application_charges.json';
        $response = $this->request(
            '/admin/application_charges.json', 'POST', array(
            'application_charge' => $data
            )
        );
        $applicationCharge->setData($response['application_charge']);
    }
131046
public Reservation findByChargingStationIdEvseIdUserId(ChargingStationId chargingStationId, EvseId evseid, UserIdentity UserId) throws NoResultException {
        EntityManager entityManager = getEntityManager();
        try {
            return entityManager.createQuery("SELECT t FROM io.motown.operatorapi.viewmodel.persistence.entities.Reservation AS t WHERE t.chargingStationId = :chargingStationId AND evseId = :evseId AND userId = :userId", Reservation.class)
                    .setParameter("chargingStationId", chargingStationId.getId())
                    .setParameter("evseId", evseid)
                    .setParameter("userId", UserId.getId())
                    .getSingleResult();
        } finally {
            entityManager.close();
        }
    }
732503
public function flowChargeProvince($phoneNum, $grade, $outRechargeId, $reason = '')
    {
        return new FlowChargeProvince($phoneNum, $grade, $outRechargeId, $reason);
    }
4424
public function delete(RecurringApplicationCharge $recurringApplicationCharge)
    {
        $endpoint= '/admin/recurring_application_charges/'.$recurringApplicationCharge->id.'.json';
        $response = $this->request($endpoint, 'DELETE');
    }