Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
faiberrec committed Jan 30, 2024
1 parent 9a7d14a commit f786afc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/recurly/general_ledger_account.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,28 @@ public static function get($id, $client = null) {
return Recurly_Base::_get(Recurly_GeneralLedgerAccount::uriForGeneralLedgerAccount($id), $client);
}

public function update() {
return $this->_save(Recurly_Client::PUT, $this->uri());
}

protected function uri() {
if (!empty($this->_href))
return $this->getHref();
else
return Recurly_GeneralLedgerAccount::uriForGeneralLedgerAccount($this->id);
}

protected static function uriForGeneralLedgerAccount($id) {
return self::_safeUri(Recurly_Client::PATH_GENERAL_LEDGER_ACCOUNTS, $id);
}

protected function getNodeName() {
return 'general_ledger_account';
}

protected function getWriteableAttributes() {
return array(
'code', 'account_type', 'description'
'code', 'account_type', 'description', 'created_at', 'updated_at'
);
}
}

0 comments on commit f786afc

Please sign in to comment.