CashIssueAndPaymentFlow.<init> - corda

corda / net.corda.finance.flows / CashIssueAndPaymentFlow / <init>

# <init>

`CashIssueAndPaymentFlow(amount: Amount<Currency>, issueRef: OpaqueBytes, recipient: Party, anonymous: Boolean, notary: Party)`
`CashIssueAndPaymentFlow(request: IssueAndPaymentRequest)` `CashIssueAndPaymentFlow(amount: Amount<Currency>, issueRef: OpaqueBytes, recipient: Party, anonymous: Boolean, notary: Party, progressTracker: ProgressTracker)`

Initiates a flow that self-issues cash and then send this to a recipient.

We issue cash only to ourselves so that all KYC/AML checks on payments are enforced consistently, rather than risk checks for issuance and payments differing. Outside of test scenarios it would be extremely unusual to issue cash and immediately transfer it, so impact of this limitation is considered minimal.

### Parameters

`amount` - the amount of currency to issue.

`issueRef` - a reference to put on the issued currency.

`recipient` - the recipient of the currency

`anonymous` - if true, the recipient of the cash will be anonymous. Should be true for normal usage

`notary` - the notary to set on the output states.