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

travel.wink.wise.partner.credentials.client.WiseCredentialsClient Maven / Gradle / Ivy

The newest version!
package travel.wink.wise.partner.credentials.client;

import reactor.core.publisher.Mono;
import travel.wink.wise.partner.credentials.api.WiseUser;
import travel.wink.wise.partner.credentials.api.WiseUserTokens;

/**
 * The interface Wise credentials client.
 */
public interface WiseCredentialsClient {

    /**
     * Sign up mono.
     *
     * @param email            the email
     * @param registrationCode the registration code
     * @return the mono
     */
    Mono signUp(String email, String registrationCode);

    /**
     * Gets user tokens for code.
     *
     * @param code       the code
     * @param customerId the customer id
     * @return the user tokens for code
     */
    Mono getUserTokensForCode(String code, Long customerId);

    /**
     * Gets user tokens.
     *
     * @param twUser the tw user
     * @return the user tokens
     */
    Mono getUserTokens(WiseUser twUser);

    /**
     * Refresh mono.
     *
     * @param twUserTokens the tw user tokens
     * @return the mono
     */
    Mono refresh(WiseUserTokens twUserTokens);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy