# 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): <Error class: unknown class>
amount
Link copied to clipboard
fun amount(amountMoney: Money): <Error class: unknown class>
appFeeMoney
Link copied to clipboard
fun appFeeMoney(appFeeMoney: Money?): <Error class: unknown class>
build
Link copied to clipboard
fun build(): Payment.OnlinePayment
capabilities
Link copied to clipboard
fun capabilities(capabilities: Payment.Capabilities): <Error class: unknown class>
cardDetails
Link copied to clipboard
fun cardDetails(cardDetails: CardPaymentDetails.OnlineCardPaymentDetails): <Error class: unknown class>
cashDetails
Link copied to clipboard
fun cashDetails(cashDetails: CashPaymentDetails): <Error class: unknown class>
createdAt
Link copied to clipboard
fun createdAt(createdAt: Date): <Error class: unknown class>
customerId
Link copied to clipboard
fun customerId(customerId: String): <Error class: unknown class>
digitalWalletDetails
Link copied to clipboard
fun digitalWalletDetails(digitalWalletDetails: DigitalWalletDetails): <Error class: unknown class>
externalDetails
Link copied to clipboard
fun externalDetails(externalDetails: ExternalPaymentDetails): <Error class: unknown class>
id
Link copied to clipboard
fun id(id: String): <Error class: unknown class>
locationId
Link copied to clipboard
fun locationId(locationId: String): <Error class: unknown class>
note
Link copied to clipboard
fun note(note: String): <Error class: unknown class>
orderId
Link copied to clipboard
fun orderId(orderId: String): <Error class: unknown class>
receiptNumber
Link copied to clipboard
fun receiptNumber(receiptNumber: String?): <Error class: unknown class>
receiptUrl
Link copied to clipboard
fun receiptUrl(receiptUrl: String?): <Error class: unknown class>
referenceId
Link copied to clipboard
fun referenceId(referenceId: String): <Error class: unknown class>
remainingBalance
Link copied to clipboard
fun remainingBalance(remainingBalance: Money?): <Error class: unknown class>
squareAccountDetails
Link copied to clipboard
fun squareAccountDetails(squareAccountDetails: SquareAccountDetails): <Error class: unknown class>
statementDescription
Link copied to clipboard
fun statementDescription(statementDescription: String?): <Error class: unknown class>
status
Link copied to clipboard
fun status(status: Payment.Status): <Error class: unknown class>
teamMemberId
Link copied to clipboard
fun teamMemberId(teamMemberId: String?): <Error class: unknown class>
tipMoney
Link copied to clipboard
fun tipMoney(tipMoney: Money?): <Error class: unknown class>
updatedAt
Link copied to clipboard
fun updatedAt(updatedAt: Date): <Error class: unknown class>