package com.bonus.canteen.core.pay.channel.ali.mq;

import com.bonus.canteen.core.common.constant.LeMqConstant;
import com.bonus.canteen.core.common.utils.JacksonUtil;
import com.bonus.canteen.core.order.mq.MqUtil;
import com.bonus.canteen.core.pay.channel.ali.api.AlipayAPI;
import com.bonus.canteen.core.pay.channel.ali.po.AliEnterpriseCodeAsyncPayPO;

public class PayMqSender {
   public static void enterpriseCodePayAsync(AlipayAPI.EnterpriseCodeAliParam param) {
      AliEnterpriseCodeAsyncPayPO po = AliEnterpriseCodeAsyncPayPO.of(param);
      MqUtil.sendDelay(JacksonUtil.writeValueAsStringIgnoreNull(po), LeMqConstant.Topic.PAY_ALI_ENTERPRISE_CODE_PAY_ASYNC, 60000);
   }
}
