我刚开始浏览Razorpay
文档。根据他们的文件,他们的Payment
对象具有结构
{
"id": "pay_29QQoUBi66xm2f",
"entity": "payment",
"amount": 5000,
"currency": "INR",
"status": "captured",
"method": "card",
"description": "Payment for adidas shoes",
"amount_refunded": 0,
"refund_status": null,
"email": "test@razorpay.com",
"contact": "9364591752",
"notes": {},
"fee": 1145,
"tax": 145,
"error_code": null,
"error_description": null,
"created_at": 1400826750
}
但是当我导入他们的对象import com.razorpay.Payment
并在我的代码编辑器中单击该类时,我没有找到任何字段。
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
package com.razorpay;
import org.json.JSONObject;
public class Payment extends Entity {
public Payment(JSONObject jsonObject) {
super(jsonObject);
}
}
没有字段和吸气剂。那么如何将Payment
对象内容映射到我的自定义类?我的理解错了吗?
谢谢你。