Expand description
Terminal Models
This file contains the models and enums for working with the terminal endpoint.
Structs
- The data about the event to send to the API. For the
invoice
type, you need to pass the invoice id and offline reference:{id: invoice_id, reference: offline_reference}
. For thetransaction type, you can pass the transaction id:
{id: transaction_id}` - This struct represents the response for checking the status of an event sent to the Terminal
- This struct represents the data of the event status
- This struct represents the response for fetch terminal.
- Response Data for Fetch Terminal Route
- This struct represents the response for checking the status of an event sent to the Terminal
- This struct represents the data of the event status
- This struct is used to create an event body for sending an event to the paystack Terminal using the Paystack API. This struct should be created using the
SendEventBodyBuilder
The Builder derivation allows for the automatic implementation of the builder - Builder for
SendEventBody
. - This struct represents the response of sending an event to the terminal.
- This struct represents the data of the event response.
- Response of updating the terminal data
- The terminal update information to send to the API.
- Builder for
UpdateTerminalBody
.
Enums
- Represents the different action the Terminal needs to perform.
- Represents the different terminal event types supported by the Paystack API.
- Error type for SendEventBodyBuilder
- Error type for UpdateTerminalBodyBuilder