MerchantPaymentsRepository

interface MerchantPaymentsRepository

Functions

createPaymentRequest
Link copied to clipboard

Create a new payment request for a customer

abstract fun createPaymentRequest(paymentRequest: NewPaymentRequest): ApiResult<CreatePaymentRequestResult>
deletePaymentRequest
Link copied to clipboard

Delete a payment request

abstract fun deletePaymentRequest(paymentRequestId: String): ApiResult<Unit>
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
getPaymentRequestDetailsBy
Link copied to clipboard

Retrieve a payment request by it's ID. The request may have been "completed" that is the customer has made a payment.

abstract fun getPaymentRequestDetailsBy(paymentRequestId: String): ApiResult<MerchantPaymentDetails>
hashCode
Link copied to clipboard
open override fun hashCode(): Int
listPayments
Link copied to clipboard

Retrieve a list of the payments initiated by the merchant, both pending and complete

abstract fun listPayments(type: String?, page: Int?, pageSize: Int?): ApiResult<MerchantPaymentSummaries>
refundTransaction
Link copied to clipboard

Refund a transaction to a customer

abstract fun refundTransaction(transactionId: String, refundDetails: TransactionRefundDetails): ApiResult<MerchantTransactionSummary>
toString
Link copied to clipboard
open override fun toString(): String