Package io.moov.sdk.models.components
Class ReceiptResponse.Builder
- java.lang.Object
-
- io.moov.sdk.models.components.ReceiptResponse.Builder
-
- Enclosing class:
- ReceiptResponse
public static final class ReceiptResponse.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReceiptResponsebuild()ReceiptResponse.BuildercreatedBy(java.lang.String createdBy)AccountID for which the receipt request was created.ReceiptResponse.BuilderdisabledOn(java.time.OffsetDateTime disabledOn)The date and time the receipt was disabled.ReceiptResponse.BuilderdisabledOn(java.util.Optional<java.time.OffsetDateTime> disabledOn)The date and time the receipt was disabled.ReceiptResponse.Builderemail(java.lang.String email)The email address the receipt is sent to.ReceiptResponse.Builderemail(java.util.Optional<java.lang.String> email)The email address the receipt is sent to.ReceiptResponse.BuilderemailAccountID(java.lang.String emailAccountID)The accountID the receipt is sent to.ReceiptResponse.BuilderemailAccountID(java.util.Optional<java.lang.String> emailAccountID)The accountID the receipt is sent to.ReceiptResponse.BuilderforOccurrenceID(java.lang.String forOccurrenceID)The ID of the schedule occurrence associated with this receipt.ReceiptResponse.BuilderforOccurrenceID(java.util.Optional<java.lang.String> forOccurrenceID)The ID of the schedule occurrence associated with this receipt.ReceiptResponse.BuilderforScheduleID(java.lang.String forScheduleID)The ID of the schedule associated with this receipt.ReceiptResponse.BuilderforScheduleID(java.util.Optional<java.lang.String> forScheduleID)The ID of the schedule associated with this receipt.ReceiptResponse.BuilderforTransferID(java.lang.String forTransferID)The ID of the transfer associated with this receipt.ReceiptResponse.BuilderforTransferID(java.util.Optional<java.lang.String> forTransferID)The ID of the transfer associated with this receipt.ReceiptResponse.Builderkind(ReceiptKind kind)The type of receipt.ReceiptResponse.BuilderreceiptID(java.lang.String receiptID)Unique identifier for the receipt request.ReceiptResponse.BuildersentFor(java.util.List<SentReceipt> sentFor)The list of receipts that have been sent.ReceiptResponse.BuildersentFor(java.util.Optional<? extends java.util.List<SentReceipt>> sentFor)The list of receipts that have been sent.
-
-
-
Method Detail
-
receiptID
public ReceiptResponse.Builder receiptID(java.lang.String receiptID)
Unique identifier for the receipt request.
-
createdBy
public ReceiptResponse.Builder createdBy(java.lang.String createdBy)
AccountID for which the receipt request was created.
-
disabledOn
public ReceiptResponse.Builder disabledOn(java.time.OffsetDateTime disabledOn)
The date and time the receipt was disabled.
-
disabledOn
public ReceiptResponse.Builder disabledOn(java.util.Optional<java.time.OffsetDateTime> disabledOn)
The date and time the receipt was disabled.
-
kind
public ReceiptResponse.Builder kind(ReceiptKind kind)
The type of receipt.
-
email
public ReceiptResponse.Builder email(java.lang.String email)
The email address the receipt is sent to. Either email or emailAccountID will be in the response, but not both.
-
email
public ReceiptResponse.Builder email(java.util.Optional<java.lang.String> email)
The email address the receipt is sent to. Either email or emailAccountID will be in the response, but not both.
-
emailAccountID
public ReceiptResponse.Builder emailAccountID(java.lang.String emailAccountID)
The accountID the receipt is sent to. Either email or emailAccountID will be in the response, but not both.
-
emailAccountID
public ReceiptResponse.Builder emailAccountID(java.util.Optional<java.lang.String> emailAccountID)
The accountID the receipt is sent to. Either email or emailAccountID will be in the response, but not both.
-
forTransferID
public ReceiptResponse.Builder forTransferID(java.lang.String forTransferID)
The ID of the transfer associated with this receipt. Exactly one of forTransferID, forScheduleID, or forOccurrenceID must be provided.
-
forTransferID
public ReceiptResponse.Builder forTransferID(java.util.Optional<java.lang.String> forTransferID)
The ID of the transfer associated with this receipt. Exactly one of forTransferID, forScheduleID, or forOccurrenceID must be provided.
-
forScheduleID
public ReceiptResponse.Builder forScheduleID(java.lang.String forScheduleID)
The ID of the schedule associated with this receipt. Exactly one of forTransferID, forScheduleID, or forOccurrenceID must be provided.
-
forScheduleID
public ReceiptResponse.Builder forScheduleID(java.util.Optional<java.lang.String> forScheduleID)
The ID of the schedule associated with this receipt. Exactly one of forTransferID, forScheduleID, or forOccurrenceID must be provided.
-
forOccurrenceID
public ReceiptResponse.Builder forOccurrenceID(java.lang.String forOccurrenceID)
The ID of the schedule occurrence associated with this receipt. Exactly one of forTransferID, forScheduleID, or forOccurrenceID must be provided.
-
forOccurrenceID
public ReceiptResponse.Builder forOccurrenceID(java.util.Optional<java.lang.String> forOccurrenceID)
The ID of the schedule occurrence associated with this receipt. Exactly one of forTransferID, forScheduleID, or forOccurrenceID must be provided.
-
sentFor
public ReceiptResponse.Builder sentFor(java.util.List<SentReceipt> sentFor)
The list of receipts that have been sent.
-
sentFor
public ReceiptResponse.Builder sentFor(java.util.Optional<? extends java.util.List<SentReceipt>> sentFor)
The list of receipts that have been sent.
-
build
public ReceiptResponse build()
-
-