Package io.moov.sdk.models.components
Class ReceiptResponse
- java.lang.Object
-
- io.moov.sdk.models.components.ReceiptResponse
-
public class ReceiptResponse extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classReceiptResponse.Builder
-
Constructor Summary
Constructors Constructor Description ReceiptResponse(java.lang.String receiptID, java.lang.String createdBy, ReceiptKind kind)ReceiptResponse(java.lang.String receiptID, java.lang.String createdBy, java.util.Optional<java.time.OffsetDateTime> disabledOn, ReceiptKind 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, java.util.Optional<? extends java.util.List<SentReceipt>> sentFor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReceiptResponse.Builderbuilder()java.lang.StringcreatedBy()AccountID for which the receipt request was created.java.util.Optional<java.time.OffsetDateTime>disabledOn()The date and time the receipt was disabled.java.util.Optional<java.lang.String>email()The email address the receipt is sent to.java.util.Optional<java.lang.String>emailAccountID()The accountID the receipt is sent 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()ReceiptKindkind()The type of receipt.java.lang.StringreceiptID()Unique identifier for the receipt request.java.util.Optional<java.util.List<SentReceipt>>sentFor()The list of receipts that have been sent.java.lang.StringtoString()ReceiptResponsewithCreatedBy(java.lang.String createdBy)AccountID for which the receipt request was created.ReceiptResponsewithDisabledOn(java.time.OffsetDateTime disabledOn)The date and time the receipt was disabled.ReceiptResponsewithDisabledOn(java.util.Optional<java.time.OffsetDateTime> disabledOn)The date and time the receipt was disabled.ReceiptResponsewithEmail(java.lang.String email)The email address the receipt is sent to.ReceiptResponsewithEmail(java.util.Optional<java.lang.String> email)The email address the receipt is sent to.ReceiptResponsewithEmailAccountID(java.lang.String emailAccountID)The accountID the receipt is sent to.ReceiptResponsewithEmailAccountID(java.util.Optional<java.lang.String> emailAccountID)The accountID the receipt is sent to.ReceiptResponsewithForOccurrenceID(java.lang.String forOccurrenceID)The ID of the schedule occurrence associated with this receipt.ReceiptResponsewithForOccurrenceID(java.util.Optional<java.lang.String> forOccurrenceID)The ID of the schedule occurrence associated with this receipt.ReceiptResponsewithForScheduleID(java.lang.String forScheduleID)The ID of the schedule associated with this receipt.ReceiptResponsewithForScheduleID(java.util.Optional<java.lang.String> forScheduleID)The ID of the schedule associated with this receipt.ReceiptResponsewithForTransferID(java.lang.String forTransferID)The ID of the transfer associated with this receipt.ReceiptResponsewithForTransferID(java.util.Optional<java.lang.String> forTransferID)The ID of the transfer associated with this receipt.ReceiptResponsewithKind(ReceiptKind kind)The type of receipt.ReceiptResponsewithReceiptID(java.lang.String receiptID)Unique identifier for the receipt request.ReceiptResponsewithSentFor(java.util.List<SentReceipt> sentFor)The list of receipts that have been sent.ReceiptResponsewithSentFor(java.util.Optional<? extends java.util.List<SentReceipt>> sentFor)The list of receipts that have been sent.
-
-
-
Constructor Detail
-
ReceiptResponse
public ReceiptResponse(java.lang.String receiptID, java.lang.String createdBy, java.util.Optional<java.time.OffsetDateTime> disabledOn, ReceiptKind 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, java.util.Optional<? extends java.util.List<SentReceipt>> sentFor)
-
ReceiptResponse
public ReceiptResponse(java.lang.String receiptID, java.lang.String createdBy, ReceiptKind kind)
-
-
Method Detail
-
receiptID
public java.lang.String receiptID()
Unique identifier for the receipt request.
-
createdBy
public java.lang.String createdBy()
AccountID for which the receipt request was created.
-
disabledOn
public java.util.Optional<java.time.OffsetDateTime> disabledOn()
The date and time the receipt was disabled.
-
kind
public ReceiptKind kind()
The type of receipt.
-
email
public 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 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 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.
-
sentFor
public java.util.Optional<java.util.List<SentReceipt>> sentFor()
The list of receipts that have been sent.
-
builder
public static ReceiptResponse.Builder builder()
-
withReceiptID
public ReceiptResponse withReceiptID(java.lang.String receiptID)
Unique identifier for the receipt request.
-
withCreatedBy
public ReceiptResponse withCreatedBy(java.lang.String createdBy)
AccountID for which the receipt request was created.
-
withDisabledOn
public ReceiptResponse withDisabledOn(java.time.OffsetDateTime disabledOn)
The date and time the receipt was disabled.
-
withDisabledOn
public ReceiptResponse withDisabledOn(java.util.Optional<java.time.OffsetDateTime> disabledOn)
The date and time the receipt was disabled.
-
withKind
public ReceiptResponse withKind(ReceiptKind kind)
The type of receipt.
-
withEmail
public ReceiptResponse withEmail(java.lang.String email)
The email address the receipt is sent to. Either email or emailAccountID will be in the response, but not both.
-
withEmail
public ReceiptResponse withEmail(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.
-
withEmailAccountID
public ReceiptResponse withEmailAccountID(java.lang.String emailAccountID)
The accountID the receipt is sent to. Either email or emailAccountID will be in the response, but not both.
-
withEmailAccountID
public ReceiptResponse withEmailAccountID(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.
-
withForTransferID
public ReceiptResponse 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 ReceiptResponse 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 ReceiptResponse 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 ReceiptResponse 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 ReceiptResponse 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 ReceiptResponse 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.
-
withSentFor
public ReceiptResponse withSentFor(java.util.List<SentReceipt> sentFor)
The list of receipts that have been sent.
-
withSentFor
public ReceiptResponse withSentFor(java.util.Optional<? extends java.util.List<SentReceipt>> sentFor)
The list of receipts that have been sent.
-
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
-
-