public interface PaymentService
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.CompletableFuture<Order> |
getOrder(java.lang.String orderId)
Obtain the order detail according to the given order id.
|
java.util.concurrent.CompletableFuture<java.util.List<Order>> |
getOrderList()
Obtain all the list of order detail.
|
java.util.concurrent.CompletableFuture<Receipt> |
getReceipt(java.lang.String orderId)
Obtain the receipt detail according to the order id.
|
java.util.concurrent.CompletableFuture<java.lang.String> |
getVersion()
Obtain the version of the payment module.
|
java.util.concurrent.CompletableFuture<Receipt> |
payOrder(java.lang.String orderId,
java.lang.String transactionId)
Pay for the order with a given id.
|
java.util.concurrent.CompletableFuture<Order> |
placeOrder(java.lang.String planName)
Place an order for new subscription or extending the existing subscription
service.
|
java.util.concurrent.CompletableFuture<Order> placeOrder(java.lang.String planName)
planName - the name of the pricing planjava.util.concurrent.CompletableFuture<Order> getOrder(java.lang.String orderId)
orderId - order idjava.util.concurrent.CompletableFuture<java.util.List<Order>> getOrderList()
java.util.concurrent.CompletableFuture<Receipt> payOrder(java.lang.String orderId, java.lang.String transactionId)
orderId - order idtransactionId - the transaction id on the block-chain.java.util.concurrent.CompletableFuture<Receipt> getReceipt(java.lang.String orderId)
orderId - order id.java.util.concurrent.CompletableFuture<java.lang.String> getVersion()