client->makeRequest( '/payment/create-invoice', 'POST', [ 'createInvoice' => json_encode($createInvoice) ] ); } /** * Update Invoice * * @param array $updateInvoice * @return \RetailCrm\Response\ApiResponse */ public function paymentUpdateInvoice($updateInvoice) { if (!count($updateInvoice)) { throw new \InvalidArgumentException( 'Parameters `updateInvoice` must contains a data' ); } /* @noinspection PhpUndefinedMethodInspection */ return $this->client->makeRequest( '/payment/update-invoice', 'POST', [ 'updateInvoice' => json_encode($updateInvoice) ] ); } /** * Check Invoice * * @param array $check * @return \RetailCrm\Response\ApiResponse */ public function paymentCheckInvoice($check) { if (!count($check)) { throw new \InvalidArgumentException( 'Parameters `check` must contains a data' ); } /* @noinspection PhpUndefinedMethodInspection */ return $this->client->makeRequest( '/payment/check', 'POST', [ 'check' => json_encode($check) ] ); } }