Package io.moov.sdk.models.components
Class ReceiptRequest
- java.lang.Object
-
- io.moov.sdk.models.components.ReceiptRequest
-
public class ReceiptRequest extends java.lang.ObjectReceiptRequestA receipt request for a specific transfer, schedule, or schedule occurrence.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classReceiptRequest.Builder
-
Constructor Summary
Constructors Constructor Description ReceiptRequest(Kind kind)ReceiptRequest(Kind kind, java.util.Optional<java.lang.String> email, java.util.Optional<java.lang.String> emailAccountID, java.util.Optional<java.lang.String> forTransferID, java.util.Optional<java.lang.String> forScheduleID, java.util.Optional<java.lang.String> forOccurrenceID)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReceiptRequest.Builderbuilder()java.util.Optional<java.lang.String>email()The email address to send the receipt to.java.util.Optional<java.lang.String>emailAccountID()The accountID to send the receipt to.booleanequals(java.lang.Object o)java.util.Optional<java.lang.String>forOccurrenceID()The ID of the schedule occurrence associated with this receipt.java.util.Optional<java.lang.String>forScheduleID()The ID of the schedule associated with this receipt.java.util.Optional<java.lang.String>forTransferID()The ID of the transfer associated with this receipt.inthashCode()Kindkind()java.lang.StringtoString()ReceiptRequestwithEmail(java.lang.String email)The email address to send the receipt to.ReceiptRequestwithEmail(java.util.Optional<java.lang.String> email)The email address to send the receipt to.ReceiptRequestwithEmailAccountID(java.lang.String emailAccountID)The accountID to send the receipt to.ReceiptRequestwithEmailAccountID(java.util.Optional<java.lang.String> emailAccountID)The accountID to send the receipt to.ReceiptRequestwithForOccurrenceID(java.lang.String forOccurrenceID)The ID of the schedule occurrence associated with this receipt.ReceiptRequestwithForOccurrenceID(java.util.Optional<java.lang.String> forOccurrenceID)The ID of the schedule occurrence associated with this receipt.ReceiptRequestwithForScheduleID(java.lang.String forScheduleID)The ID of the schedule associated with this receipt.ReceiptRequestwithForScheduleID(java.util.Optional<java.lang.String> forScheduleID)The ID of the schedule associated with this receipt.ReceiptRequestwithForTransferID(java.lang.String forTransferID)The ID of the transfer associated with this receipt.ReceiptRequestwithForTransferID(java.util.Optional<java.lang.String> forTransferID)The ID of the transfer associated with this receipt.ReceiptRequestwithKind(Kind kind)
-
-
-
Constructor Detail
-
ReceiptRequest
public ReceiptRequest(Kind kind, java.util.Optional<java.lang.String> email, java.util.Optional<java.lang.String> emailAccountID, java.util.Optional<java.lang.String> forTransferID, java.util.Optional<java.lang.String> forScheduleID, java.util.Optional<java.lang.String> forOccurrenceID)
-
ReceiptRequest
public ReceiptRequest(Kind kind)
-
-
Method Detail
-
kind
public Kind kind()
-
email
public 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 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 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 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 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.
-
builder
public static ReceiptRequest.Builder builder()
-
withKind
public ReceiptRequest withKind(Kind kind)
-
withEmail
public ReceiptRequest withEmail(java.lang.String email)
The email address to send the receipt to. Either email or emailAccountID must be provided, but not both.
-
withEmail
public ReceiptRequest withEmail(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.
-
withEmailAccountID
public ReceiptRequest withEmailAccountID(java.lang.String emailAccountID)
The accountID to send the receipt to. Either email or emailAccountID must be provided, but not both.
-
withEmailAccountID
public ReceiptRequest withEmailAccountID(java.util.Optional<java.lang.String> emailAccountID)
The accountID to send the receipt to. Either email or emailAccountID must be provided, but not both.
-
withForTransferID
public ReceiptRequest withForTransferID(java.lang.String forTransferID)
The ID of the transfer associated with this receipt. Exactly one of forTransferID, forScheduleID, or forOccurrenceID must be provided.
-
withForTransferID
public ReceiptRequest withForTransferID(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.
-
withForScheduleID
public ReceiptRequest withForScheduleID(java.lang.String forScheduleID)
The ID of the schedule associated with this receipt. Exactly one of forTransferID, forScheduleID, or forOccurrenceID must be provided.
-
withForScheduleID
public ReceiptRequest withForScheduleID(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.
-
withForOccurrenceID
public ReceiptRequest withForOccurrenceID(java.lang.String forOccurrenceID)
The ID of the schedule occurrence associated with this receipt. Exactly one of forTransferID, forScheduleID, or forOccurrenceID must be provided.
-
withForOccurrenceID
public ReceiptRequest withForOccurrenceID(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.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-