package com.ruoyi.app.utils.linepay;

import com.alibaba.fastjson2.JSONObject;

/** Parsed LINE response plus original JSON for audit. */
public record LinePayResponse(int httpStatus, String returnCode, String returnMessage,
                              String transactionId, JSONObject info, String rawBody) {
    public boolean isSuccess() {
        return httpStatus >= 200 && httpStatus < 300 && "0000".equals(returnCode);
    }
}

