Types
ApiException
Link copied to clipboard
ApiKeyRequestHeader
Link copied to clipboard
class ApiKeyRequestHeader(options: VillageOptions) : RequestHeaderFactory
Content copied to clipboard
ApiTokenType
Link copied to clipboard
sealed class ApiTokenType
Content copied to clipboard
BearerTokenRequestHeader
Link copied to clipboard
class BearerTokenRequestHeader<T : HasAccessToken>(token: String?) : RequestHeaderFactory, CredentialsStore<T>
Content copied to clipboard
CustomerApiRepositoryFactory
Link copied to clipboard
typealias CustomerApiRepositoryFactory = (VillageCustomerOptions, RequestHeadersFactory, ApiAuthenticator<HasAccessToken>) -> VillageCustomerApiRepository
Content copied to clipboard
EverydayPayWalletHeader
Link copied to clipboard
class EverydayPayWalletHeader(options: VillageOptions) : RequestHeaderFactory
Content copied to clipboard
HttpErrorException
Link copied to clipboard
class HttpErrorException(statusCode: Int, responseHeaders: Map<String, List<String>>, responseBody: String) : ApiException
Content copied to clipboard
JsonParsingException
Link copied to clipboard
class JsonParsingException(message: String, cause: Throwable?, details: Map<String, Any>?) : ApiException
Content copied to clipboard
MerchantApiRepositoryFactory
Link copied to clipboard
typealias MerchantApiRepositoryFactory = (VillageMerchantOptions, RequestHeadersFactory, ApiAuthenticator<HasAccessToken>) -> VillageMerchantApiRepository
Content copied to clipboard
MerchantIdRequestHeader
Link copied to clipboard
RequestHeaderChain
Link copied to clipboard
class RequestHeaderChain(factories: List<RequestHeaderFactory>) : RequestHeadersFactory
Content copied to clipboard
RequestHeaderFactory
Link copied to clipboard
interface RequestHeaderFactory
Content copied to clipboard
RequestHeadersFactory
Link copied to clipboard
interface RequestHeadersFactory
Content copied to clipboard
VillageCustomerApiRepository
Link copied to clipboard
interface VillageCustomerApiRepository
Content copied to clipboard
VillageCustomerOptions
Link copied to clipboard
class VillageCustomerOptions(apiKey: String, baseUrl: String, wallet: Wallet?, walletId: String?) : VillageOptions
Content copied to clipboard
VillageMerchantApiRepository
Link copied to clipboard
interface VillageMerchantApiRepository
Content copied to clipboard
VillageMerchantOptions
Link copied to clipboard
class VillageMerchantOptions(apiKey: String, baseUrl: String, wallet: Wallet?, merchantId: String?) : VillageOptions
Content copied to clipboard
VillageOptions
Link copied to clipboard
open class VillageOptions(apiKey: String, baseUrl: String, wallet: Wallet?)
Content copied to clipboard
WalletIdRequestHeader
Link copied to clipboard
Functions
createAuthentication
Link copied to clipboard
fun createAuthentication(token: ApiTokenType): Pair<ApiAuthenticator<HasAccessToken>, BearerTokenRequestHeader<HasAccessToken>?>
Content copied to clipboard
createCustomerSDK
Link copied to clipboard
fun createCustomerSDK(options: VillageCustomerOptions, token: ApiTokenType, repository: (VillageCustomerOptions, RequestHeadersFactory, ApiAuthenticator<HasAccessToken>) -> VillageCustomerApiRepository): VillageCustomerApiRepository
Content copied to clipboard
createMerchantSDK
Link copied to clipboard
fun createMerchantSDK(options: VillageMerchantOptions, token: ApiTokenType, repository: (VillageMerchantOptions, RequestHeadersFactory, ApiAuthenticator<HasAccessToken>) -> VillageMerchantApiRepository): VillageMerchantApiRepository
Content copied to clipboard
createSDKComponents
Link copied to clipboard
fun createSDKComponents(options: VillageOptions, token: ApiTokenType): Pair<MutableList<RequestHeaderFactory>, ApiAuthenticator<HasAccessToken>>
Content copied to clipboard
Properties
AUTHORISATION
Link copied to clipboard
X_API_KEY
Link copied to clipboard
X_EVERYDAY_PAY_WALLET
Link copied to clipboard
Header name to specify the use of the Everyday Pay Wallet
X_MERCHANT_ID
Link copied to clipboard
Header name to specify merchant ID
X_WALLET_ID
Link copied to clipboard
Header name to specify wallet ID