package com.izouma.nineth.config;

import com.izouma.nineth.utils.payeasenet.PayeasenetClient;
import lombok.AllArgsConstructor;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@AllArgsConstructor
@Configuration
@EnableConfigurationProperties(PayeasenetProperties.class)
public class PayeasenetConfig {


    private PayeasenetProperties payeasenetProperties;

    @Bean
    public PayeasenetClient payeasenetClient(){
        PayeasenetClient payEasenetClient = new PayeasenetClient(payeasenetProperties);
        return payEasenetClient;
    }


}
