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

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

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

import travel.wink.wise.partner.credentials.api.WiseUserTokens;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
import travel.wink.wise.partner.credentials.api.CreatePersonalProfile;
import travel.wink.wise.partner.credentials.api.WiseProfile;
import travel.wink.wise.partner.credentials.api.UpdatePersonalProfile;

/**
 * The interface Wise profile client.
 */
public interface WiseProfileClient {

    /**
     * Create personal profile mono.
     *
     * @param twUserTokens          the tw user tokens
     * @param createPersonalProfile the create personal profile
     * @return the mono
     */
    Mono createPersonalProfile(WiseUserTokens twUserTokens, CreatePersonalProfile createPersonalProfile);

    /**
     * Update personal profile mono.
     *
     * @param twUserTokens          the tw user tokens
     * @param updatePersonalProfile the update personal profile
     * @return the mono
     */
    Mono updatePersonalProfile(WiseUserTokens twUserTokens, UpdatePersonalProfile updatePersonalProfile);

    /**
     * Gets profile.
     *
     * @param twUserTokens the tw user tokens
     * @param twProfileId  the tw profile id
     * @return the profile
     */
    Mono getProfile(WiseUserTokens twUserTokens, Long twProfileId);

    /**
     * Gets profiles.
     *
     * @param twUserTokens the tw user tokens
     * @return the profiles
     */
    Flux getProfiles(WiseUserTokens twUserTokens);

    /**
     * Open update window mono.
     *
     * @param twUserTokens the tw user tokens
     * @param twProfileId  the tw profile id
     * @return the mono
     */
    Mono openUpdateWindow(WiseUserTokens twUserTokens, Long twProfileId);

    /**
     * Close update window mono.
     *
     * @param twUserTokens the tw user tokens
     * @param twProfileId  the tw profile id
     * @return the mono
     */
    Mono closeUpdateWindow(WiseUserTokens twUserTokens, Long twProfileId);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy