All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tech.carpentum.sdk.payment.EndpointDefinition.kt Maven / Gradle / Ivy

The newest version!
package tech.carpentum.sdk.payment

/**
 * Definition of simple endpoint.
 *
 * Used by individual API classes:
 *
 * - [AccountsApi]
 * - [IncomingPaymentsApi]
 * - [OutgoingPaymentsApi]
 * - [PaymentsApi]
 * - [MerchantInfoApi]
 *
 * See also [EndpointWithIdDefinition].
 */
data class EndpointDefinition(
    val method: Method,
    val resource: String
) {

    /**
     * Supported HTTP method of RESTful API used by [EndpointDefinition].
     */
    enum class Method {
        GET, POST
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy