InstrumentsApiRepository
public protocol InstrumentsApiRepository
Undocumented
-
Import a consumers credit cards (from WebPay) and paypal accounts to a new wallet. This API is IP restricted to allow unauthenticated server side calls.
Declaration
Swift
func importInstrument( importPaymentInstrumentsRequest: ImportPaymentInstrumentsRequest, completion: @escaping ApiCompletion<ImportPaymentInstrumentsResponse> )
Parameters
importPaymentInstrumentsRequest
Details of the consumers credits and paypal accounts to be imported.
-
Verify if a provided payment instrument is valid and optionally perform a fraud check on the instrument.
Declaration
Swift
func verify( verifyPaymentInstrumentsRequest: VerifyPaymentInstrumentsRequest, completion: @escaping ApiCompletion<VerifyPaymentInstrumentsSuccessResponse> )
Parameters
verifyPaymentInstrumentsRequest
Details of the payment instrument to be verified.
-
Get the stored payment intruments of a consumer.
Declaration
Swift
func getList(completion: @escaping ApiCompletion<ListPaymentInstrumentsResponse>)
-
Get the stored payment intruments of a consumer. This API is IP restricted to allow unauthenticated server side calls.
Declaration
Swift
func postList( listPaymentInstrumentsRequest: ListPaymentInstrumentsRequest, completion: @escaping ApiCompletion<ListPaymentInstrumentsResponse> )
Parameters
listPaymentInstrumentsRequest
Details of the consumer to list payment instruments for.
-
Delete a stored payment intrument of a consumer.
Declaration
Swift
func delete( paymentInstrumentId: String, completion: @escaping ApiCompletion<[String: Any]> )
Parameters
paymentInstrumentId
The id of the payment instrument to delete.