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

com.unzer.payment.communication.api.ApiConfig Maven / Gradle / Ivy

package com.unzer.payment.communication.api;

import lombok.Getter;

@Getter
public class ApiConfig {

    public enum AuthMethod {
        BASIC,
        BEARER;
    }

    private final String baseUrl;
    private final String testBaseUrl;
    private final AuthMethod authMethod;

    public ApiConfig(String baseUrl, String testBaseUrl) {
        this(baseUrl, testBaseUrl, AuthMethod.BASIC);
    }

    public ApiConfig(String baseUrl, String testBaseUrl, AuthMethod authMethod) {
        this.baseUrl = baseUrl;
        this.testBaseUrl = testBaseUrl;
        this.authMethod = authMethod;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy