ChargebackNotified

@MountedCommand(aggregate = "payment", transformsTo = [RefundPayment::class])
data class ChargebackNotified(val merchantReference: String, val disputeId: String, val reason: String)

The payment gateway's chargeback callback, in the gateway's shape: the buyer disputed a payment with their bank, which took the money back. Mounted under the payment's routes, it is no command of the payment's; the payment server's transformer turns it into the RefundPayment of the payment merchantReference names (the gateway knows a payment by the reference it was charged under, the payment's id), and keeps disputeId in the command's headers, so the payment's event stream says which dispute refunded it.

Constructors

Link copied to clipboard
constructor(merchantReference: String, disputeId: String, reason: String)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard