_post('credit_notes', $parameters); } /** * Retrieves an existing credit note. * * @param string $creditNoteId * @return array */ public function find($creditNoteId) { return $this->_get("credit_notes/{$creditNoteId}"); } /** * Updates an existing credit notes. * * @param string $creditNoteId * @param array $parameters * @return array */ public function update($creditNoteId, array $parameters = []) { return $this->_post("credit_notes/{$creditNoteId}", $parameters); } /** * Void the given credit note. * * @param string $creditNoteId * @return array */ public function void($creditNoteId) { return $this->_post("credit_notes/{$creditNoteId}/void"); } /** * Lists all credit notes. * * @param array $parameters * @return array */ public function all(array $parameters = []) { return $this->_get('credit_notes', $parameters); } }