package com.izouma.nineth.config;

import fosun.sumpay.merchant.integration.core.service.SumpayService;
import fosun.sumpay.merchant.integration.core.service.SumpayServiceImpl;
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(SumpayProperties.class)
public class SumpayConfig {

    private SumpayProperties sumpayProperties;


    @Bean
    public SumpayService sumpayService(){
        SumpayService sumpayService = new SumpayServiceImpl();

        return sumpayService;
    }




}
