public interface PerRequestPaymentData extends MinimalPaymentData
Contains two fields: payPerRequest indicating if related invoice is only valid for one request and executed which is a flag set to true after a request have actually been processed (and related payment had pay per request to true) so it cannot be processed again.
Created by Philip Vendil on 2018-12-17.
Modifier and Type | Method and Description |
---|---|
boolean |
isExecuted() |
boolean |
isPayPerRequest() |
void |
setExecuted(boolean executed) |
void |
setPayPerRequest(boolean payPerRequest) |
getOrderAmount, getPreImageHash, isSettled, setOrderAmount, setPreImageHash, setSettled
boolean isPayPerRequest()
void setPayPerRequest(boolean payPerRequest)
payPerRequest
- flag indicating that this payment is for one request only. The implementation
can take the payPerRequest flag from the order request as guidance, but it is the PaymentHandler
that ultimately decides if payPerRequest should be set.boolean isExecuted()
void setExecuted(boolean executed)
executed
- true if related request have been executed, is set after successful processing
if a payed call and used to indicate that it cannot be processed again.