public static class Transaction.Builder extends Object
Transaction.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
Transaction |
build()
Builds a new
Transaction object using the set fields. |
Transaction.Builder |
clientId(String clientId)
Setter for clientId.
|
Transaction.Builder |
createdAt(String createdAt)
Setter for createdAt.
|
Transaction.Builder |
id(String id)
Setter for id.
|
Transaction.Builder |
locationId(String locationId)
Setter for locationId.
|
Transaction.Builder |
orderId(String orderId)
Setter for orderId.
|
Transaction.Builder |
product(String product)
Setter for product.
|
Transaction.Builder |
referenceId(String referenceId)
Setter for referenceId.
|
Transaction.Builder |
refunds(List<Refund> refunds)
Setter for refunds.
|
Transaction.Builder |
shippingAddress(Address shippingAddress)
Setter for shippingAddress.
|
Transaction.Builder |
tenders(List<Tender> tenders)
Setter for tenders.
|
public Transaction.Builder id(String id)
id - String value for id.public Transaction.Builder locationId(String locationId)
locationId - String value for locationId.public Transaction.Builder createdAt(String createdAt)
createdAt - String value for createdAt.public Transaction.Builder tenders(List<Tender> tenders)
tenders - List of Tender value for tenders.public Transaction.Builder refunds(List<Refund> refunds)
refunds - List of Refund value for refunds.public Transaction.Builder referenceId(String referenceId)
referenceId - String value for referenceId.public Transaction.Builder product(String product)
product - String value for product.public Transaction.Builder clientId(String clientId)
clientId - String value for clientId.public Transaction.Builder shippingAddress(Address shippingAddress)
shippingAddress - Address value for shippingAddress.public Transaction.Builder orderId(String orderId)
orderId - String value for orderId.public Transaction build()
Transaction object using the set fields.TransactionCopyright © 2022. All rights reserved.