From 3ce990059b092c884e651796daf370d75dceb412 Mon Sep 17 00:00:00 2001 From: wangning <164851225@qq.com> Date: Mon, 16 Apr 2018 15:29:38 +0800 Subject: [PATCH] update --- .../entity/impls/EmailSendStandByModify.java | 32 +++++++++++++++++++ .../merchants/entity/impls/RefuseModify.java | 30 +++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 src/main/java/au/com/royalpay/payment/manage/merchants/entity/impls/EmailSendStandByModify.java create mode 100644 src/main/java/au/com/royalpay/payment/manage/merchants/entity/impls/RefuseModify.java diff --git a/src/main/java/au/com/royalpay/payment/manage/merchants/entity/impls/EmailSendStandByModify.java b/src/main/java/au/com/royalpay/payment/manage/merchants/entity/impls/EmailSendStandByModify.java new file mode 100644 index 000000000..f8e4f9323 --- /dev/null +++ b/src/main/java/au/com/royalpay/payment/manage/merchants/entity/impls/EmailSendStandByModify.java @@ -0,0 +1,32 @@ +package au.com.royalpay.payment.manage.merchants.entity.impls; + +import au.com.royalpay.payment.manage.merchants.entity.ClientConfigModify; + +import com.alibaba.fastjson.JSONObject; + +import java.math.BigDecimal; + +/** + * Create by yixian at 2018-04-12 16:43 + */ +public class EmailSendStandByModify extends ClientConfigModify { + private BigDecimal max_order_amount; + + + public EmailSendStandByModify(JSONObject account, String clientMoniker, BigDecimal max_order_amount) { + super(account, clientMoniker); + this.max_order_amount = max_order_amount; + } + + @Override + protected String business() { + return "修改商户最大订单额为:"+max_order_amount; + } + + @Override + protected JSONObject getModifyResult() { + JSONObject modify = new JSONObject(); + modify.put("max_order_amount", max_order_amount); + return modify; + } +} diff --git a/src/main/java/au/com/royalpay/payment/manage/merchants/entity/impls/RefuseModify.java b/src/main/java/au/com/royalpay/payment/manage/merchants/entity/impls/RefuseModify.java new file mode 100644 index 000000000..cd8b57b4e --- /dev/null +++ b/src/main/java/au/com/royalpay/payment/manage/merchants/entity/impls/RefuseModify.java @@ -0,0 +1,30 @@ +package au.com.royalpay.payment.manage.merchants.entity.impls; + +import com.alibaba.fastjson.JSONObject; + +import au.com.royalpay.payment.manage.merchants.entity.ClientModify; + +/** + * Create by yixian at 2018-04-12 16:43 + */ +public class RefuseModify extends ClientModify { + private int source; + + public RefuseModify(JSONObject account, String clientMoniker, int source) { + super(account, clientMoniker); + this.source = source; + } + + @Override + protected String business() { + return "修改商户source状态为:" + source; + } + + @Override + protected JSONObject getModifyResult() { + JSONObject modify = new JSONObject(); + modify.put("source", source); + return modify; + } + +}