# SourceType

enum SourceType : Enum<Payment.SourceType>

The source type of the payment.

## Entries

CARD
Link copied to clipboard
CARD

The payment was made with a credit or debit card.

CASH
Link copied to clipboard
CASH

The payment was made with cash.

EXTERNAL
Link copied to clipboard
EXTERNAL

The payment was made with an external payment method.

WALLET
Link copied to clipboard
WALLET

The payment was made with a digital wallet.

BANK_ACCOUNT
Link copied to clipboard
BANK_ACCOUNT

An ACH bank account payment.

CARD_ON_FILE
Link copied to clipboard
CARD_ON_FILE

A payment made with a saved Card on File.

SQUARE_ACCOUNT
Link copied to clipboard
SQUARE_ACCOUNT

A payment made with a Square Account.

## Properties

entries
Link copied to clipboard
val entries: EnumEntries<Payment.SourceType>

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

name
Link copied to clipboard
val name: String
ordinal
Link copied to clipboard
val ordinal: Int

## Functions

valueOf
Link copied to clipboard
fun valueOf(value: String): Payment.SourceType

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.)

values
Link copied to clipboard
fun values(): Array<Payment.SourceType>

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