package com.ai.da.mapper.primary.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("t_payment_info")
public class PaymentInfo extends BaseEntity{

    private String orderNo;//商品订单编号

    private String transactionId;//支付系统交易编号

    private String paymentType;//支付类型

    /**
     * PayPal 订单状态：CREATED/SAVED/APPROVED/VOIDED/COMPLETED/PAYER_ACTION_REQUIRED
     * Stripe 订单状态： 原 session 状态：open/completed/expired ; 现 invoice 状态：draft/open/paid/uncollectible/void
     * Alipay-HK 订单状态：wait, paid, expired, liquidated
     *  paid and liquidated means the refund request has been executed.
     *  expired means the request has been rejected.
     *  wait means the request is still under processing.
     * -------------------------------------------------
     *  退款：Partial refund 部分退款; Refunded 全部退款
     */
    private String tradeState;//交易状态

    private Float payerTotal;//支付金额(元)

    private String content;//通知参数

    // 支付类型  new || renewal || credits
    private String type;

    // 当前支付是否已邮件通知  0 || 1
    private Integer notified;

    private String paymentMethod;

    private String last4;

    // 发票托管页面
    private String hostedInvoiceUrl;

    private String ipAddress;

    private String country;

    private String city;

    private String promotionCode;
}
