Skip to content

Document the enums and use them in the examples#2

Merged
martian56 merged 1 commit into
mainfrom
docs/enums
Jul 22, 2026
Merged

Document the enums and use them in the examples#2
martian56 merged 1 commit into
mainfrom
docs/enums

Conversation

@martian56

Copy link
Copy Markdown
Owner

The enums landed in 0.2.0 with no mention in the README at all, and the configuration examples still passed bare strings. This fixes both.

  • New Enums section in each README: what each one holds, and the note that checkout takes AZN, USD, EUR and RUB while split, pre-auth, refund, reverse, payout and wallet take AZN only.
  • Configuration and status examples use the enums.

Every snippet was checked rather than eyeballed: the Go example compiles against the package, the Python one runs, and the TypeScript one typechecks. That caught a real mistake in the first draft, where the Go example used client, err := epoint.New(...) even though New returns only *Client.

The enums shipped in 0.2.0 with no mention in the README, and the config examples
still passed bare strings. Every snippet here was compiled or run before landing.
@martian56
martian56 merged commit 8e770c5 into main Jul 22, 2026
6 checks passed
@martian56
martian56 deleted the docs/enums branch July 22, 2026 08:53
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.

1 participant