Package io.moov.sdk.models.components
Class ReceiptRequest.Builder
- java.lang.Object
-
- io.moov.sdk.models.components.ReceiptRequest.Builder
-
- Enclosing class:
- ReceiptRequest
public static final class ReceiptRequest.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReceiptRequestbuild()ReceiptRequest.Builderemail(java.lang.String email)The email address to send the receipt to.ReceiptRequest.Builderemail(java.util.Optional<java.lang.String> email)The email address to send the receipt to.ReceiptRequest.BuilderemailAccountID(java.lang.String emailAccountID)The accountID to send the receipt to.ReceiptRequest.BuilderemailAccountID(java.util.Optional<java.lang.String> emailAccountID)The accountID to send the receipt to.ReceiptRequest.BuilderforOccurrenceID(java.lang.String forOccurrenceID)The ID of the schedule occurrence associated with this receipt.ReceiptRequest.BuilderforOccurrenceID(java.util.Optional<java.lang.String> forOccurrenceID)The ID of the schedule occurrence associated with this receipt.ReceiptRequest.BuilderforScheduleID(java.lang.String forScheduleID)The ID of the schedule associated with this receipt.ReceiptRequest.BuilderforScheduleID(java.util.Optional<java.lang.String> forScheduleID)The ID of the schedule associated with this receipt.ReceiptRequest.BuilderforTransferID(java.lang.String forTransferID)The ID of the transfer associated with this receipt.ReceiptRequest.BuilderforTransferID(java.util.Optional<java.lang.String> forTransferID)The ID of the transfer associated with this receipt.ReceiptRequest.Builderkind(ReceiptKind kind)The type of receipt being requested.
-
-
-
Method Detail
-
kind
public ReceiptRequest.Builder kind(ReceiptKind kind)
The type of receipt being requested.
-
email
public ReceiptRequest.Builder email(java.lang.String email)
The email address to send the receipt to. Either email or emailAccountID must be provided, but not both.
-
email
public ReceiptRequest.Builder email(java.util.Optional<java.lang.String> email)
The email address to send the receipt to. Either email or emailAccountID must be provided, but not both.
-
emailAccountID
public ReceiptRequest.Builder emailAccountID(java.lang.String emailAccountID)
The accountID to send the receipt to. Either email or emailAccountID must be provided, but not both.
-
emailAccountID
public ReceiptRequest.Builder emailAccountID(java.util.Optional<java.lang.String> emailAccountID)
The accountID to send the receipt to. Either email or emailAccountID must be provided, but not both.
-
forTransferID
public ReceiptRequest.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 ReceiptRequest.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 ReceiptRequest.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 ReceiptRequest.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 ReceiptRequest.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 ReceiptRequest.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.
-
build
public ReceiptRequest build()
-
-