travel.wink.sdk.affiliate.AffiliateSDKConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of affiliate-sdk-java Show documentation
Show all versions of affiliate-sdk-java Show documentation
Java SDK for the wink Affiliate API
package travel.wink.sdk.affiliate;
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.affiliate.api.ApplicationApi;
import travel.wink.sdk.affiliate.api.BookingsApi;
import travel.wink.sdk.affiliate.api.CampaignApi;
import travel.wink.sdk.affiliate.api.CompanyApi;
import travel.wink.sdk.affiliate.api.CustomizationApi;
import travel.wink.sdk.affiliate.api.DiscoverApi;
import travel.wink.sdk.affiliate.api.InventoryCardsApi;
import travel.wink.sdk.affiliate.api.InventoryGridsApi;
import travel.wink.sdk.affiliate.api.InvoiceApi;
import travel.wink.sdk.affiliate.api.MapsApi;
import travel.wink.sdk.affiliate.api.ShareableLinksApi;
import travel.wink.sdk.affiliate.invoker.ApiClient;
@RequiredArgsConstructor
@Configuration
public class AffiliateSDKConfiguration {
private final WebClient webClient;
@Bean
public ApiClient apiClient() {
return new ApiClient(this.webClient);
}
@Bean
public BookingsApi bookingApi() {
return new BookingsApi(apiClient());
}
@Bean
public CampaignApi campaignApi() {
return new CampaignApi(apiClient());
}
@Bean
public ApplicationApi applicationApi() {
return new ApplicationApi(apiClient());
}
@Bean
public CompanyApi companyApi() {
return new CompanyApi(apiClient());
}
@Bean
public CustomizationApi customizationApi() {
return new CustomizationApi(apiClient());
}
@Bean
public DiscoverApi discoverApi() {
return new DiscoverApi(apiClient());
}
@Bean
public InventoryCardsApi inventoryCardsApi() {
return new InventoryCardsApi(apiClient());
}
@Bean
public InventoryGridsApi inventoryGridsApi() {
return new InventoryGridsApi(apiClient());
}
@Bean
public InvoiceApi invoiceApi() {
return new InvoiceApi(apiClient());
}
@Bean
public MapsApi mapsApi() {
return new MapsApi(apiClient());
}
@Bean
public ShareableLinksApi shareableLinksApi() {
return new ShareableLinksApi(apiClient());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy