public class CashPaymentFlow
extends AbstractCashFlow
Initiates a flow that sends cash to a recipient.
Modifier and Type | Class and Description |
---|---|
static class |
CashPaymentFlow.PaymentRequest |
AbstractCashFlow.AbstractRequest, AbstractCashFlow.Companion, AbstractCashFlow.Result
Companion
Constructor and Description |
---|
CashPaymentFlow(Amount<java.util.Currency> amount,
Party recipient,
boolean anonymous,
ProgressTracker progressTracker,
java.util.Set<net.corda.core.identity.Party> issuerConstraint,
Party notary)
Initiates a flow that sends cash to a recipient.
|
CashPaymentFlow(Amount<java.util.Currency> amount,
Party recipient)
A straightforward constructor that constructs spends using cash states of any issuer.
|
CashPaymentFlow(Amount<java.util.Currency> amount,
Party recipient,
boolean anonymous)
A straightforward constructor that constructs spends using cash states of any issuer.
|
CashPaymentFlow(Amount<java.util.Currency> amount,
Party recipient,
boolean anonymous,
Party notary) |
CashPaymentFlow(CashPaymentFlow.PaymentRequest request) |
Modifier and Type | Method and Description |
---|---|
AbstractCashFlow.Result |
call()
This is where you fill out your business logic.
|
Amount<java.util.Currency> |
getAmount()
the amount of a currency to pay to the recipient.
|
boolean |
getAnonymous()
whether to anonymous the recipient party.
|
java.util.Set<net.corda.core.identity.Party> |
getIssuerConstraint()
if specified,
|
Party |
getNotary()
if not specified,
|
Party |
getRecipient()
the party to pay the currency to.
|
finaliseTx, getProgressTracker
await, await, call, checkFlowIsNotKilled, checkFlowIsNotKilled, checkFlowPermission, close, flowStackSnapshot, getFlowInfo, getLogger, getOurIdentity, getOurIdentityAndCert, getProgressTracker, getRunId, getServiceHub, initiateFlow, initiateFlow, isKilled, persistFlowStackSnapshot, receive, receiveAll, receiveAllMap, recordAuditEvent, send, sendAll, sendAllMap, sendAndReceive, subFlow, track, trackStepsTree, trackStepsTreeIndex, waitForLedgerCommit, waitForStateConsumption
public CashPaymentFlow(Amount<java.util.Currency> amount, Party recipient, boolean anonymous, ProgressTracker progressTracker, java.util.Set<net.corda.core.identity.Party> issuerConstraint, Party notary)
Initiates a flow that sends cash to a recipient.
amount
- the amount of a currency to pay to the recipient.recipient
- the party to pay the currency to.anonymous
- whether to anonymous the recipient party. Should be true for normal usage, but may be falseissuerConstraint
- if specified, the payment will be made using only cash issued by the given parties.notary
- if not specified, the first notary of the network map is selectedfor testing purposes.amount
- the amount of a currency to pay to the recipient.recipient
- the party to pay the currency to.issuerConstraint
- if specified, the payment will be made using only cash issued by the given parties.anonymous
- whether to anonymous the recipient party. Should be true for normal usage, but may be falsenotary
- if not specified, the first notary of the network map is selected
for testing purposes.public CashPaymentFlow(Amount<java.util.Currency> amount, Party recipient)
A straightforward constructor that constructs spends using cash states of any issuer.
public CashPaymentFlow(Amount<java.util.Currency> amount, Party recipient, boolean anonymous)
A straightforward constructor that constructs spends using cash states of any issuer.
public CashPaymentFlow(Amount<java.util.Currency> amount, Party recipient, boolean anonymous, Party notary)
public CashPaymentFlow(CashPaymentFlow.PaymentRequest request)
public AbstractCashFlow.Result call()
This is where you fill out your business logic.
public Amount<java.util.Currency> getAmount()
the amount of a currency to pay to the recipient.
public Party getRecipient()
the party to pay the currency to.
public boolean getAnonymous()
whether to anonymous the recipient party.
Should be true for normal usage, but may be false
public java.util.Set<net.corda.core.identity.Party> getIssuerConstraint()
if specified,
the payment will be made using only cash issued by the given parties.
public Party getNotary()
if not specified,
the first notary of the network map is selectedfor testing purposes.