Skip to content

feat: add get_recurring_params(id) public query function - #132

Open
MarcusDavidG wants to merge 1 commit into
mainfrom
feat/get-recurring-params
Open

feat: add get_recurring_params(id) public query function#132
MarcusDavidG wants to merge 1 commit into
mainfrom
feat/get-recurring-params

Conversation

@MarcusDavidG

Copy link
Copy Markdown
Contributor

Exposes the full SubscriptionParams for a recurring invoice as a public read-only query.

Returns

  • creator, recipients, amounts, tokens
  • recurrence_interval (seconds between deadlines)
  • max_recurrences (0 = unlimited)
  • num_created (invoices generated so far in the chain)
  • None for non-recurring invoices

Use cases: SDK getRecurringParams(), dashboard recurring chain UI, subscription management pages.

Closes #115

Exposes the full SubscriptionParams stored per recurring invoice:
creator, recipients, amounts, tokens, recurrence_interval,
max_recurrences, and num_created.

Returns None for non-recurring invoices so callers can distinguish
subscription from one-off invoices without fetching the full state.

Closes #115
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add get_recurring_params(id) public query function

1 participant