travel.wink.sdk.channel.manager.ChannelManagerSDKConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of channel-manager-sdk-java Show documentation
Show all versions of channel-manager-sdk-java Show documentation
Java SDK for the channel manager integrators wanting to communicate with the Wink Travel Platform.
package travel.wink.sdk.channel.manager;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.reactive.function.client.WebClient;
import travel.wink.sdk.channel.manager.api.ChannelManagerApi;
import travel.wink.sdk.channel.manager.invoker.ApiClient;
@RequiredArgsConstructor
@Configuration
public class ChannelManagerSDKConfiguration {
private final WebClient webClient;
@Bean
public ApiClient apiClient() {
return new ApiClient(this.webClient);
}
@Bean
public ChannelManagerApi channelManagerApi() {
return new ChannelManagerApi(apiClient());
}
}