package com.fdkankan.ucenter.httpClient.client;

import com.dtflys.forest.annotation.*;
import com.fdkankan.ucenter.common.Result;
import com.fdkankan.ucenter.common.ResultData;
import com.fdkankan.ucenter.httpClient.address.LaserAddressSource;
import com.fdkankan.ucenter.httpClient.address.PayAddressSource;
import com.fdkankan.ucenter.httpClient.param.PayOrderParam;
import com.fdkankan.ucenter.httpClient.param.SSDownSceneParam;
import com.fdkankan.ucenter.httpClient.param.SsBindParam;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;
import java.util.Map;

/**
 * 获取，支付中心
 */
@Address(source = PayAddressSource.class)
public interface PayClient {

    /**
     * 下单
     */
    @Post("/service/pay/order/down")
    ResultData downOrder(@JSONBody PayOrderParam param);


    /**
     * 查询订单状态
     */
    @Get("/service/pay/order/info/{orderSn}")
    ResultData queryOrder(@Var("orderSn")String orderSn);

    /**
     * paypal取消订阅
     */
    @Get("/service/pay/paypal/cancel/{orderSn}")
    ResultData cancelSubscription(@Var("orderSn")String orderSn);

}
