# Builder

class Builder(id: String, amountMoney: Money, status: Payment.Status, locationId: String, sourceType: Payment.SourceType)

Builder class for constructing OnlinePayment objects.

This class is provided for testing purposes.

## Constructors

Builder
Link copied to clipboard
constructor(id: String, amountMoney: Money, status: Payment.Status, locationId: String, sourceType: Payment.SourceType)

## Functions

addProcessingFee
Link copied to clipboard
fun addProcessingFee(processingFee: PaymentProcessingFee): Payment.OnlinePayment.Builder
amount
Link copied to clipboard
fun amount(amountMoney: Money): Payment.OnlinePayment.Builder
appFeeMoney
Link copied to clipboard
fun appFeeMoney(appFeeMoney: Money?): Payment.OnlinePayment.Builder
build
Link copied to clipboard
fun build(): Payment.OnlinePayment
capabilities
Link copied to clipboard
fun capabilities(capabilities: Payment.Capabilities): Payment.OnlinePayment.Builder
cardDetails
Link copied to clipboard
fun cardDetails(cardDetails: CardPaymentDetails.OnlineCardPaymentDetails): Payment.OnlinePayment.Builder
cashDetails
Link copied to clipboard
fun cashDetails(cashDetails: CashPaymentDetails): Payment.OnlinePayment.Builder
createdAt
Link copied to clipboard
fun createdAt(createdAt: Date): Payment.OnlinePayment.Builder
customerId
Link copied to clipboard
fun customerId(customerId: String): Payment.OnlinePayment.Builder
digitalWalletDetails
Link copied to clipboard
fun digitalWalletDetails(digitalWalletDetails: DigitalWalletDetails): Payment.OnlinePayment.Builder
externalDetails
Link copied to clipboard
fun externalDetails(externalDetails: ExternalPaymentDetails): Payment.OnlinePayment.Builder
id
Link copied to clipboard
fun id(id: String): Payment.OnlinePayment.Builder
locationId
Link copied to clipboard
fun locationId(locationId: String): Payment.OnlinePayment.Builder
note
Link copied to clipboard
fun note(note: String): Payment.OnlinePayment.Builder
orderId
Link copied to clipboard
fun orderId(orderId: String): Payment.OnlinePayment.Builder
receiptNumber
Link copied to clipboard
fun receiptNumber(receiptNumber: String?): Payment.OnlinePayment.Builder
receiptUrl
Link copied to clipboard
fun receiptUrl(receiptUrl: String?): Payment.OnlinePayment.Builder
referenceId
Link copied to clipboard
fun referenceId(referenceId: String): Payment.OnlinePayment.Builder
remainingBalance
Link copied to clipboard
fun remainingBalance(remainingBalance: Money?): Payment.OnlinePayment.Builder
squareAccountDetails
Link copied to clipboard
fun squareAccountDetails(squareAccountDetails: SquareAccountDetails): Payment.OnlinePayment.Builder
statementDescription
Link copied to clipboard
fun statementDescription(statementDescription: String?): Payment.OnlinePayment.Builder
status
Link copied to clipboard
fun status(status: Payment.Status): Payment.OnlinePayment.Builder
teamMemberId
Link copied to clipboard
fun teamMemberId(teamMemberId: String?): Payment.OnlinePayment.Builder
tipMoney
Link copied to clipboard
fun tipMoney(tipMoney: Money?): Payment.OnlinePayment.Builder
updatedAt
Link copied to clipboard
fun updatedAt(updatedAt: Date): Payment.OnlinePayment.Builder