public class EggFlow extends Object
Code},
#com.systemcn.data800.sdk.type.Code| 限定符和类型 | 字段和说明 |
|---|---|
static String |
BUY_API
购买产品的API路径。
|
static String |
FIND_ORDER_API
查找订单的API路径。
|
static String |
FIND_PRODUCT_API
查找产品的API路径。
|
static String |
GET_BALANCE_API
获取账户余额的API路径。
|
static String |
GET_ORDER_API
获取指定流量产品的API路径。
|
static String |
GET_PRODUCT_API
获取指定流量产品的API路径。
|
static String |
HTTPS_URL
正式服务器URL。
|
static String |
HTTPS_URL_TEST
测试服务器URL。
|
static String |
URL
正式服务器URL。
|
static String |
URL_TEST
测试服务器URL。
|
| 限定符和类型 | 方法和说明 |
|---|---|
OrderResponse |
buy(int amount,
Scope scope,
String mobile,
EggAdcEffectRule effect,
String orderId,
String callbackUrl)
订购流量包。
|
boolean |
callbackCheckSign(String sign,
String orderId,
int status,
String msg)
处理结果回调签名检查方法。
|
boolean |
callbackCheckSign(String sign,
String orderId,
String status,
String msg)
处理结果回调签名检查方法。
|
OrdersResponse |
findOrders(String mobile,
String productId,
int pageNo,
int pageSize)
按条件查询多个订单。
|
ProductsResponse |
findProducts()
查询所有可用流量包。
|
ProductsResponse |
findProducts(String mobile)
查询可用流量包。
|
BalanceResponse |
getBalance()
获取账户余额。
|
OrderResponse |
getOrder(String orderId)
查找指定id的订单。
|
ProductResponse |
getProduct(String productId)
获取指定的产品信息。
|
ProductResponse |
getProduct(String mobile,
int amount)
通过手机号和流量包大小获取指定的产品信息。
|
public ProductResponse getProduct(String productId)
productId - 产品ID。public ProductResponse getProduct(String mobile, int amount)
mobile - 产品适用的手机号。amount - 流量产品的流量大小,单位为MB。public ProductsResponse findProducts()
public ProductsResponse findProducts(String mobile)
mobile - 产品适用的手机号,不提供则查询所有可购买的流量包。public OrderResponse buy(int amount, Scope scope, String mobile, EggAdcEffectRule effect, String orderId, String callbackUrl)
amount - 订购的流量包MB数量(必须)。scope - 适用范围(必需)。mobile - 充值的手机号(必须)。effect - 流量生效模式(必须)。orderId - 自定义订单ID(可选,不指定时输入null)。callbackUrl - 自定义回调地址(可选,不指定时输入null)。public OrderResponse getOrder(String orderId)
orderId - 订单Id。public OrdersResponse findOrders(String mobile, String productId, int pageNo, int pageSize)
mobile - 要查询的手机号码。productId - 要查询的产品Id。pageNo - 返回第几页数据。pageSize - 每页数据条数。public BalanceResponse getBalance()
public boolean callbackCheckSign(String sign, String orderId, int status, String msg)
sign - 回调时提交的签名值。orderId - 回调时提交的订单Id。status - 回调时提交的处理状态。msg - 回调时提交的错误信息。Copyright © 2019. All rights reserved.