# Builder

class Builder(localId: String, amountMoney: Money, status: Payment.OfflineStatus, locationId: String, sourceType: Payment.SourceType)

Builder class for constructing OfflinePayment objects.

This class is provided for testing purposes.

## Constructors

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

## Functions

amount
Link copied to clipboard
fun amount(amountMoney: Money): Payment.OfflinePayment.Builder
appFeeMoney
Link copied to clipboard
fun appFeeMoney(appFeeMoney: Money): Payment.OfflinePayment.Builder
build
Link copied to clipboard
fun build(): Payment.OfflinePayment
cardDetails
Link copied to clipboard
fun cardDetails(cardDetails: CardPaymentDetails.OfflineCardPaymentDetails): Payment.OfflinePayment.Builder
cashDetails
Link copied to clipboard
fun cashDetails(cashDetails: CashPaymentDetails): Payment.OfflinePayment.Builder
createdAt
Link copied to clipboard
fun createdAt(createdAt: Date): Payment.OfflinePayment.Builder
digitalWalletDetails
Link copied to clipboard
fun digitalWalletDetails(digitalWalletDetails: DigitalWalletDetails): Payment.OfflinePayment.Builder
externalDetails
Link copied to clipboard
fun externalDetails(externalDetails: ExternalPaymentDetails): Payment.OfflinePayment.Builder
id
Link copied to clipboard
fun id(id: String?): Payment.OfflinePayment.Builder
localId
Link copied to clipboard
fun localId(id: String): Payment.OfflinePayment.Builder
locationId
Link copied to clipboard
fun locationId(locationId: String): Payment.OfflinePayment.Builder
orderId
Link copied to clipboard
fun orderId(orderId: String?): Payment.OfflinePayment.Builder
referenceId
Link copied to clipboard
fun referenceId(referenceId: String?): Payment.OfflinePayment.Builder
status
Link copied to clipboard
fun status(status: Payment.OfflineStatus): Payment.OfflinePayment.Builder
tipMoney
Link copied to clipboard
fun tipMoney(tipMoney: Money): Payment.OfflinePayment.Builder
updatedAt
Link copied to clipboard
fun updatedAt(updatedAt: Date): Payment.OfflinePayment.Builder
uploadedAt
Link copied to clipboard
fun uploadedAt(uploadedAt: Date?): Payment.OfflinePayment.Builder