package com.izouma.nineth.config;

import com.izouma.nineth.utils.ikudot.IkudotpayClient;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@AllArgsConstructor
@Slf4j
@Configuration
@EnableConfigurationProperties(IkudotpayProperties.class)
public class IkudotpayConfig {

    private IkudotpayProperties ikudotpayProperties;

    @Bean
    public IkudotpayClient ikudotpayClient(){
        IkudotpayClient ikudotpayClient = new IkudotpayClient(ikudotpayProperties);
        return ikudotpayClient;
    }
}
