package com.ruoyi.erp.request;

import com.alibaba.fastjson2.JSONObject;

/**
 * 订单物流发货请求
 *
 * 对应接口：POST /api/open/order/ship
 */
public class OrderShipRequest extends ERPRequestBase {
	public OrderShipRequest(IERPAccount erpAccount) {
		super("https://open.goofish.pro/api/open/order/ship", erpAccount);
	}

	public void setOrderNo(String orderNo) { put("order_no", orderNo); }
	public void setShipName(String shipName) { put("ship_name", shipName); }
	public void setShipMobile(String shipMobile) { put("ship_mobile", shipMobile); }
	public void setShipDistrictId(Integer shipDistrictId) { put("ship_district_id", shipDistrictId); }
	public void setShipProvName(String shipProvName) { put("ship_prov_name", shipProvName); }
	public void setShipCityName(String shipCityName) { put("ship_city_name", shipCityName); }
	public void setShipAreaName(String shipAreaName) { put("ship_area_name", shipAreaName); }
	public void setShipAddress(String shipAddress) { put("ship_address", shipAddress); }
	public void setWaybillNo(String waybillNo) { put("waybill_no", waybillNo); }
	public void setExpressCode(String expressCode) { put("express_code", expressCode); }
	public void setExpressName(String expressName) { put("express_name", expressName); }

	private void put(String key, Object value) { if (value != null) { ensureBody(); this.requestBody.put(key, value); } }
	private void ensureBody() { if (this.requestBody == null) this.requestBody = new JSONObject(); }
}


