public class PaymentController
extends java.lang.Object
| Constructor and Description |
|---|
PaymentController(NodeRPCConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
Order |
getOrder(java.lang.String orderId)
Get the order information by the order id.
|
java.util.List<Order> |
getOrders(java.lang.String subscription)
Get the orders by the subscription type.
|
Receipt |
getReceipt(java.lang.String orderId)
Get the receipt by the order id.
|
java.lang.String |
getVersion()
Get the version of the payment module.
|
Receipt |
payOrder(java.lang.String orderId,
java.lang.String transactionId)
Pay the order by the order id and the transaction id.
|
Order |
placeOrder(java.lang.String subscription,
java.lang.String pricingName)
This is for creating the payment order which upgrades the pricing plan of the vault or the backup.
|
public PaymentController(NodeRPCConnection connection)
public Order placeOrder(java.lang.String subscription, java.lang.String pricingName) throws HiveException
subscription - The value is "vault" or "backup".pricingName - The pricing plan name.HiveException - The error comes from the hive node.public Receipt payOrder(java.lang.String orderId, java.lang.String transactionId) throws HiveException
orderId - The order id.transactionId - The transaction id.HiveException - The error comes from the hive node.public Order getOrder(java.lang.String orderId) throws HiveException
orderId - The order id.HiveException - The error comes from the hive node.public java.util.List<Order> getOrders(java.lang.String subscription) throws HiveException
subscription - The value is "vault" or "backup".HiveException - The error comes from the hive node.public Receipt getReceipt(java.lang.String orderId) throws HiveException
orderId - The order id.HiveException - The error comes from the hive node.public java.lang.String getVersion()
throws HiveException
HiveException - The error comes from the hive node.