Module terminal

Source
Expand description

§Terminal Models

This file contains the models and enums for working with the terminal endpoint.

Structs§

EventData
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 the transaction type, you can pass the transaction id: {id: transaction_id}`
FetchEventStatusResponse
This struct represents the response for checking the status of an event sent to the Terminal
FetchEventStatusResponseData
This struct represents the data of the event status
FetchTerminalResponse
This struct represents the response for fetch terminal.
FetchTerminalResponseData
Response Data for Fetch Terminal Route
FetchTerminalStatusResponse
This struct represents the response for checking the status of an event sent to the Terminal
FetchTerminalStatusResponseData
This struct represents the data of the event status
SendEventBody
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
SendEventBodyBuilder
Builder for SendEventBody.
SendEventResponse
This struct represents the response of sending an event to the terminal.
SendEventResponseData
This struct represents the data of the event response.
TerminalResponseWithNoData
Response of updating the terminal data
UpdateTerminalBody
The terminal update information to send to the API.
UpdateTerminalBodyBuilder
Builder for UpdateTerminalBody.

Enums§

ActionType
Represents the different action the Terminal needs to perform.
EventType
Represents the different terminal event types supported by the Paystack API.
SendEventBodyBuilderError
Error type for SendEventBodyBuilder
UpdateTerminalBodyBuilderError
Error type for UpdateTerminalBodyBuilder