Class ReceiptResponse


  • public class ReceiptResponse
    extends java.lang.Object
    • 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.
      • 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.
      • 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:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object