com.lithic.api.services.blocking.PaymentService.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lithic-kotlin-core Show documentation
Show all versions of lithic-kotlin-core Show documentation
The Lithic Developer API is designed to provide a predictable programmatic
interface for accessing your Lithic account through an API and transaction
webhooks. Note that your API key is a secret and should be treated as such.
Don't share it with anyone, including us. We will never ask you for it.
The newest version!
// File generated from our OpenAPI spec by Stainless.
package com.lithic.api.services.blocking
import com.lithic.api.core.RequestOptions
import com.lithic.api.models.Payment
import com.lithic.api.models.PaymentCreateParams
import com.lithic.api.models.PaymentCreateResponse
import com.lithic.api.models.PaymentListPage
import com.lithic.api.models.PaymentListParams
import com.lithic.api.models.PaymentRetrieveParams
import com.lithic.api.models.PaymentRetryParams
import com.lithic.api.models.PaymentRetryResponse
import com.lithic.api.models.PaymentSimulateActionParams
import com.lithic.api.models.PaymentSimulateActionResponse
import com.lithic.api.models.PaymentSimulateReceiptParams
import com.lithic.api.models.PaymentSimulateReceiptResponse
import com.lithic.api.models.PaymentSimulateReleaseParams
import com.lithic.api.models.PaymentSimulateReleaseResponse
import com.lithic.api.models.PaymentSimulateReturnParams
import com.lithic.api.models.PaymentSimulateReturnResponse
interface PaymentService {
/** Initiates a payment between a financial account and an external bank account. */
fun create(
params: PaymentCreateParams,
requestOptions: RequestOptions = RequestOptions.none()
): PaymentCreateResponse
/** Get the payment by token. */
fun retrieve(
params: PaymentRetrieveParams,
requestOptions: RequestOptions = RequestOptions.none()
): Payment
/** List all the payments for the provided search criteria. */
fun list(
params: PaymentListParams,
requestOptions: RequestOptions = RequestOptions.none()
): PaymentListPage
/** Retry an origination which has been returned. */
fun retry(
params: PaymentRetryParams,
requestOptions: RequestOptions = RequestOptions.none()
): PaymentRetryResponse
/** Simulate payment lifecycle event */
fun simulateAction(
params: PaymentSimulateActionParams,
requestOptions: RequestOptions = RequestOptions.none()
): PaymentSimulateActionResponse
/** Simulates a receipt of a Payment. */
fun simulateReceipt(
params: PaymentSimulateReceiptParams,
requestOptions: RequestOptions = RequestOptions.none()
): PaymentSimulateReceiptResponse
/** Simulates a release of a Payment. */
fun simulateRelease(
params: PaymentSimulateReleaseParams,
requestOptions: RequestOptions = RequestOptions.none()
): PaymentSimulateReleaseResponse
/** Simulates a return of a Payment. */
fun simulateReturn(
params: PaymentSimulateReturnParams,
requestOptions: RequestOptions = RequestOptions.none()
): PaymentSimulateReturnResponse
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy