MiniProPrepayRequest.java 691 Bytes
package com.diligrp.cashier.pipeline.domain;

import java.time.LocalDateTime;

public class MiniProPrepayRequest extends OnlinePaymentRequest {
    // 小程序openId
    private final String openId;
    // 超时时间-秒
    private final Long timeout;

    public MiniProPrepayRequest(String paymentId, long amount, String goods, String description, LocalDateTime when,
                                String openId, Long timeout) {
        super(paymentId, amount, goods, description, when);
        this.openId = openId;
        this.timeout = timeout;
    }

    public String getOpenId() {
        return openId;
    }

    public Long getTimeout() {
        return timeout;
    }
}