Categorygithub.com/arylatt/go-monzo
modulepackage
0.1.6
Repository: https://github.com/arylatt/go-monzo.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

No description provided by the author
New creates a new Monzo API client based on the parent HTTP client.
OAuth2Config creates an OAuth2 config based on the provided client ID, client secret, and redirect URL.
ParseResponse attempts to decode the HTTP response body into the provided structure.
WebhookPayloadHandler returns a HTTP HandlerFunc that can be used to receive the payloads that Monzo sends.

# Constants

AccountTypeUKRetail is the single owner UK Current Account type.
AccountTypeUKRetailJoint is the joint owner UK Current Account type.
BaseURL is the default Monzo API URL.
DefaultUserAgent is the user-agent string that will be sent to the server, unless it is overridden on the Client.
FeedTypeBasic is currently the only supported feed type.

# Variables

ErrPotClientNil is returned if Pot object has a nil client configured (e.g.
ErrPotInvalidDedupeID is returned if a null/empty deduplication ID is supplied.
ErrPotInvalidDepositAmount is returned if a zero/negative deposit amount is supplied.
ErrPotInvalidID is returned if a null/empty Pot ID is supplied.
ErrPotInvalidSourceAccountID is returned if a null/empty Source Account ID is supplied.
ErrPotInvalidWithdrawAmount is returned if a zero/negative withdrawal amount is supplied.
ErrTransactionClientNil is returned if Transaction object has a nil client configured (e.g.
ErrWebhookClientNil is returned if Webhook object has a nil client configured (e.g.
ErrWebhookInvalidAccountID is returned if a null/empty Account ID is supplied.
ErrWebhookInvalidURL is returned if a null/empty URL is supplied.
OAuth2Endpoint returns the default OAuth2 endpoint for the Monzo API.

# Structs

Account represents the account data provided by the Monzo API.
AccountOwner represents the inner account owner data provided by the Monzo API.
AccountsList represents the response from the Monzo API for a list of accounts.
Balance represents the balance data provided by the Monzo API.
Client is the Monzo API client.
No description provided by the author
FeedItem represents an item that can be posted to a user's feed.
FeedItemParamsBasic represents the customization for the basic feed item type.
MerchantAddress represents the inner merchant data provided by the Monzo API.
MerchantAddress represents the inner merchant address data provided by the Monzo API.
No description provided by the author
PaymentDetails represents the inner payment details account data provided by the Monzo API.
PaymentDetailsLocaleUK represents the inner payment details account data for UK accounts provided by the Monzo API.
Pot represents a pot object provided by the Monzo API.
PotsList represents the response from the Monzo API for a list of pots.
Transaction represents a transaction provided by the Monzo API.
TransactionList represents the response from the Monzo API for a list of transactions.
TransactionSingle represents the response from the Monzo API for a single transaction.
Webhook represents a webhook object provided by the Monzo API.
WebhookList represents the response from the Monzo API for a list of webhooks.
WebhookPayload represents the data that Monzo will send to registered webhook URLs.
WebhookSingle represents the response from the Monzo API for a single webhook.
Pot represents data about the currently authenticated user provided by the Monzo API.

# Type aliases

Accounts represent a store of funds, and have a list of transactions.
No description provided by the author
Images (eg.
Retrieve information about an account's balance.
The Monzo app is organised around the feed – a reverse-chronological stream of events.
A pot is a place to keep some money separate from the main spending account.
Receipts are line-item purchase data added to a transaction.
Transactions are movements of funds into or out of an account.
Webhooks allow your application to receive real-time, push notification of events in an account.