tech.carpentum.sdk.payment.internal.api.EnhancedOutgoingPaymentsApi.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of payment-client-v2 Show documentation
Show all versions of payment-client-v2 Show documentation
Carpentum Payment system Java SDK
The newest version!
package tech.carpentum.sdk.payment.internal.api
import tech.carpentum.sdk.payment.internal.generated.api.OutgoingPaymentsApi
import tech.carpentum.sdk.payment.internal.generated.infrastructure.RequestConfig
import java.time.Duration
internal class EnhancedOutgoingPaymentsApi(
basePath: String = defaultBasePath,
private val accessToken: String,
private val brand: String?,
callTimeout: Duration
) : OutgoingPaymentsApi(basePath, ApiUtils.getClient(callTimeout)) {
override fun updateRequestHeaders(requestConfig: RequestConfig) {
requestConfig.addAuthorizationHeader(accessToken)
brand?.apply { requestConfig.addBrandHeader(this) }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy