Payment

data class Payment(val payer: Party, val gateway: Party, val paymentProviderId: UUID? = null, val endToEndId: String, val paymentInstructionId: AttachmentId, val status: Payment.PaymentStatus, val additionalInfo: String? = null, val uniquePaymentId: UUID = UUID.randomUUID(), val timestamp: Instant = Instant.now()) : QueryableState

Data class describing Payment state in Corda business network

Parameters

payer

Corda party, which initiated payment

gateway

Corda party, which processes payment

paymentProviderId

ID of payment provider, which processes payment

endToEndId

Unique value for the payment in debtor-creditor scope

paymentInstructionId

Link to payment instruction, stored as attachment. See AttachmentId

status

Status of the payment in workflow

additionalInfo

Payment info provided by the bank or other processing party. Null if there is no additional information associated with the state.

uniquePaymentId

Unique value for the payment in Corda business network

timestamp

Timestamp to record when payment state was proposed/changed. Generated with Instant.now by default.

Constructors

Link copied to clipboard
fun Payment(payer: Party, gateway: Party, paymentProviderId: UUID? = null, endToEndId: String, paymentInstructionId: AttachmentId, status: Payment.PaymentStatus, additionalInfo: String? = null, uniquePaymentId: UUID = UUID.randomUUID(), timestamp: Instant = Instant.now())

Types

Link copied to clipboard

Possible payment statuses

Functions

Link copied to clipboard
open override fun generateMappedObject(schema: MappedSchema): PersistentState
Link copied to clipboard
open override fun supportedSchemas(): Iterable<MappedSchema>

Properties

Link copied to clipboard
val additionalInfo: String? = null
Link copied to clipboard
Link copied to clipboard
val gateway: Party
Link copied to clipboard
open override val participants: List<AbstractParty>
Link copied to clipboard
val payer: Party
Link copied to clipboard
val paymentInstructionId: AttachmentId
Link copied to clipboard
val paymentProviderId: UUID? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard