Module response

Module response 

Source
Expand description

This defines the possible responses you could receive from the Square API.

The most of the structs have almost all of their fields set as optional as this makes dealing with the Square API’s response pattern more manageable.

Structs§

ResponseError
The ResponseError defines the error schema returned by the Square API should an error occur. This makes error handling possible by checking if the error field of the SquareResponse is some.
SquareResponse
The SquareResponse response defines the generic response type that encompasses almost all possible Square API responses. All fields are optional to allow for handling of possible errors returned by the Square API.