PaymentInstrumentsRepository

interface PaymentInstrumentsRepository

Functions

delete
Link copied to clipboard

Delete a PaymentInstrument} from a {@link Wallet

abstract fun delete(instrument: String): ApiResult<Unit>
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
getByToken
Link copied to clipboard

Get the specified payment instrument of the customer.

abstract fun getByToken(paymentToken: String, publicKey: String?): ApiResult<IndividualPaymentInstrument>
hashCode
Link copied to clipboard
open override fun hashCode(): Int
initiateAddition
Link copied to clipboard

Initiate the addition of a new PaymentInstrument for the customer.

To complete the addition the customer will have to use the returned URL details to enter the instrument details.

abstract fun initiateAddition(instrument: PaymentInstrumentAddition): ApiResult<PaymentInstrumentAdditionResult>
list
Link copied to clipboard

Retrieve the customer's registered PaymentInstruments

abstract fun list(): ApiResult<WalletContents>
toString
Link copied to clipboard
open override fun toString(): String