Package-level declarations

Types

Link copied to clipboard
interface Call<T> : Cloneable

An invocation of an SDK call that sends a request to Square servers and returns a response. Each call yields its own request and response. Use clone to make multiple calls with the same parameters to the same web server; this may be used to retry a failed call.

Link copied to clipboard
interface Callback<R>

Communicates the result of an asynchronous operation. onResult is invoked exactly once per operation.

Link copied to clipboard
data class Card(val brand: Card.Brand, val lastFourDigits: String, val expirationMonth: Int, val expirationYear: Int, val postalCode: String?, val type: Card.Type = Type.UNKNOWN, val prepaidType: Card.PrepaidType = PrepaidType.UNKNOWN)

Represents a payment card.

Link copied to clipboard
interface CardDetails

Represents the result of a successful operation to process card payment information.

Link copied to clipboard

Lets the application read and write the Square application ID via the squareApplicationId property. You can also specify the application ID at build time in the AndroidManifest.xml: