Skip to content

Instantly share code, notes, and snippets.

@brenden-t-r
Created August 17, 2019 21:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brenden-t-r/2fa02fc686d9d835be10556891c3331c to your computer and use it in GitHub Desktop.
Save brenden-t-r/2fa02fc686d9d835be10556891c3331c to your computer and use it in GitHub Desktop.
data class CustomPayment<T : TokenType>(
override val paymentReference: PaymentReference,
override val amount: Amount<T>,
override var status: PaymentStatus = PaymentStatus.SENT
) : Payment<T> {
override fun toString(): String {
return "Amount: $amount, Transaction ID: $paymentReference, Status: $status"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment