package com.izouma.nineth.config;

import com.izouma.nineth.utils.lianlianpay.LianlianpayClient;
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(LianlianpayProperties.class)
public class LianlianpayConfig {

    private LianlianpayProperties lianlianpayProperties;


    @Bean
    public LianlianpayClient lianlianPayClient(){
        LianlianpayClient lianlianpayClient = new LianlianpayClient(lianlianpayProperties);
        return lianlianpayClient;
    }


}
