package com.sonic.lion.service;

import com.sonic.lion.domain.bo.WebhookBo;
import com.sonic.lion.domain.input.CreateSubscribeCheckSessionInput;
import com.sonic.lion.domain.output.CreateSubscribeCheckoutSessionOutput;

public interface StripeSubscribeService {

    /**
     * 创建客户订阅结帐会话并生成支付url
     * @param userId
     * @param input
     * @return
     */
    CreateSubscribeCheckoutSessionOutput createSubscribeCheckoutSession(Long userId, CreateSubscribeCheckSessionInput input);

    /**
     * 订阅处理
     * @param notifyId
     * @param webhookBo
     */
    void subscriptionHandler(Long notifyId, WebhookBo webhookBo);
}
