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

travel.wink.wise.partner.recipient.client.WiseRecipientClient Maven / Gradle / Ivy

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

import travel.wink.wise.partner.credentials.api.WiseUserTokens;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
import travel.wink.wise.partner.recipient.api.Recipient;

import java.util.UUID;

/**
 * The interface Wise recipient client.
 */
public interface WiseRecipientClient {

    /**
     * Gets recipient.
     *
     * @param twUserTokens the tw user tokens
     * @param recipientId  the recipient id
     * @return the recipient
     */
    Mono getRecipient(WiseUserTokens twUserTokens, Long recipientId);

    /**
     * Gets all recipients.
     *
     * @param twUserTokens the tw user tokens
     * @param twProfileId  the tw profile id
     * @param currencyCode the currency code
     * @return the all recipients
     */
    Flux getAllRecipients(WiseUserTokens twUserTokens, Long twProfileId, String currencyCode);

    /**
     * Create mono.
     *
     * @param twUserTokens the tw user tokens
     * @param requestBody  the request body
     * @return the mono
     */
    Mono create(WiseUserTokens twUserTokens, String requestBody);

    /**
     * Gets requirements.
     *
     * @param twUserTokens the tw user tokens
     * @param quoteId      the quote id
     * @return the requirements
     */
    Mono getRequirements(WiseUserTokens twUserTokens, UUID quoteId);

    /**
     * Create requirements mono.
     *
     * @param twUserTokens the tw user tokens
     * @param quoteId      the quote id
     * @param requestBody  the request body
     * @return the mono
     */
    Mono createRequirements(WiseUserTokens twUserTokens, UUID quoteId, String requestBody);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy