TransactionBuilder

open class TransactionBuilder

Builder class used to construct ExternalAccountTransactions, enforcing that all mandatory fields have been provided.

See also

Functions

build
Link copied to clipboard
open fun build(): ExternalAccountTransaction
Build and return the ExternalAccountTransaction, ensuring that the provided data isvalid before continuing
id
Link copied to clipboard
open fun id(@NonNull() id: String): TransactionBuilder
Sets the minimum required fields to match receipts using the external transaction id.
maskedAccountNumber
Link copied to clipboard
open fun maskedAccountNumber(maskedAccountNumber: String): TransactionBuilder
Sets the optional maskedAccountNumber field.
merchantName
Link copied to clipboard
open fun merchantName(merchantName: String): TransactionBuilder
Sets the optional merchantName field.
metaDataWithDate
Link copied to clipboard
open fun metaDataWithDate(@NonNull() date: String, @NonNull() amount: Double, @NonNull() currencyCode: String): TransactionBuilder
Sets the minimum required fields to match receipts using metadata with a transaction date.
metaDataWithPostDate
Link copied to clipboard
open fun metaDataWithPostDate(@NonNull() postDate: String, @NonNull() amount: Double, @NonNull() currencyCode: String): TransactionBuilder
Sets the minimum and required fields to match receipts with metadata with a transaction posteddate.
postedDate
Link copied to clipboard
open fun postedDate(postedDate: String): TransactionBuilder
Sets the optional postedDate field.
summary
Link copied to clipboard
open fun summary(summary: String): TransactionBuilder
Sets the optional summary field.