CardType

An enum representing card brands supported by Olo for Google Pay

Important

When submitting a basket to the Olo Ordering API, it is necessary to use the oloDescription property for the endpoint's cardtype parameter or the basket submission will fail. See the oloDescription property for more details

Entries

Link copied to clipboard

Visa

Link copied to clipboard

American Express

Link copied to clipboard

Discover

Link copied to clipboard

Mastercard

Link copied to clipboard

Interac. Not supported by Olo's Ordering API.

Link copied to clipboard

JCB

Link copied to clipboard

Unsupported card type

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard

A string representation of the enum as required by Olo's Ordering API. Use this for the cardtype parameter of the endpoint when submitting a basket to the Olo Ordering API.

Functions

Link copied to clipboard
fun valueOf(value: String): CardType

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.