MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / getBillingTemplates

Function getBillingTemplates

static/js/payment.js:762–768  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

760}
761
762function getBillingTemplates() {
763 const raw = storage.get(BILLING_TEMPLATE_STORAGE_KEY, []);
764 if (!Array.isArray(raw)) return [];
765 return raw
766 .filter((item) => item && typeof item === "object" && item.id && item.name && item.data)
767 .slice(0, BILLING_TEMPLATE_MAX);
768}
769
770function saveBillingTemplates(list) {
771 const safeList = Array.isArray(list) ? list.slice(0, BILLING_TEMPLATE_MAX) : [];

Callers 6

saveCurrentAsTemplateFunction · 0.85
applySelectedTemplateFunction · 0.85
deleteSelectedTemplateFunction · 0.85
bindBillingEventsFunction · 0.85

Calls 2

getMethod · 0.45
filterMethod · 0.45

Tested by

no test coverage detected