Package io.moov.sdk.models.errors
Class Transfer
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.moov.sdk.models.errors.Transfer
-
- All Implemented Interfaces:
java.io.Serializable
public class Transfer extends java.lang.RuntimeExceptionTransferDetails of a Transfer.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTransfer.Builder
-
Constructor Summary
Constructors Constructor Description Transfer(java.lang.String transferID, java.time.OffsetDateTime createdOn, TransferSource source, TransferDestination destination, TransferStatus status, Amount amount)Transfer(java.lang.String transferID, java.time.OffsetDateTime createdOn, TransferSource source, TransferDestination destination, java.util.Optional<java.time.OffsetDateTime> completedOn, TransferStatus status, java.util.Optional<? extends TransferFailureReason> failureReason, Amount amount, java.util.Optional<java.lang.String> description, java.util.Optional<? extends java.util.Map<java.lang.String,java.lang.String>> metadata, java.util.Optional<? extends FacilitatorFee> facilitatorFee, java.util.Optional<java.lang.Long> moovFee, java.util.Optional<java.lang.String> moovFeeDecimal, java.util.Optional<? extends MoovFeeDetails> moovFeeDetails, java.util.Optional<? extends java.util.List<MoovFee>> moovFees, java.util.Optional<java.lang.String> groupID, java.util.Optional<? extends java.util.List<Cancellation>> cancellations, java.util.Optional<? extends Amount> refundedAmount, java.util.Optional<? extends java.util.List<CardAcquiringRefund>> refunds, java.util.Optional<? extends Amount> disputedAmount, java.util.Optional<? extends java.util.List<CardAcquiringDispute>> disputes, java.util.Optional<java.lang.String> sweepID, java.util.Optional<java.lang.String> scheduleID, java.util.Optional<java.lang.String> occurrenceID, java.util.Optional<java.lang.String> paymentLinkCode, java.util.Optional<? extends Amount> salesTaxAmount)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Amountamount()static Transfer.Builderbuilder()java.util.Optional<java.util.List<Cancellation>>cancellations()java.util.Optional<java.time.OffsetDateTime>completedOn()java.time.OffsetDateTimecreatedOn()java.util.Optional<java.lang.String>description()An optional description of the transfer that is used on receipts and for your own internal use.TransferDestinationdestination()java.util.Optional<Amount>disputedAmount()java.util.Optional<java.util.List<CardAcquiringDispute>>disputes()booleanequals(java.lang.Object o)java.util.Optional<FacilitatorFee>facilitatorFee()Total or markup fee.java.util.Optional<TransferFailureReason>failureReason()Reason for a transfer's failure.java.util.Optional<java.lang.String>groupID()inthashCode()java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>metadata()Free-form key-value pair list.java.util.Optional<java.lang.Long>moovFee()Fees charged to your platform account for transfers.java.util.Optional<java.lang.String>moovFeeDecimal()Same as `moovFee`, but a decimal-formatted numerical string that represents up to 9 decimal place precision.java.util.Optional<MoovFeeDetails>moovFeeDetails()Processing and pass-through costs that add up to the moovFee.java.util.Optional<java.util.List<MoovFee>>moovFees()Fees charged to accounts involved in the transfer.java.util.Optional<java.lang.String>occurrenceID()java.util.Optional<java.lang.String>paymentLinkCode()java.util.Optional<Amount>refundedAmount()java.util.Optional<java.util.List<CardAcquiringRefund>>refunds()java.util.Optional<Amount>salesTaxAmount()Optional sales tax amount.java.util.Optional<java.lang.String>scheduleID()TransferSourcesource()TransferStatusstatus()Status of a transfer.java.util.Optional<java.lang.String>sweepID()java.lang.StringtoString()java.lang.StringtransferID()TransferwithAmount(Amount amount)TransferwithCancellations(java.util.List<Cancellation> cancellations)TransferwithCancellations(java.util.Optional<? extends java.util.List<Cancellation>> cancellations)TransferwithCompletedOn(java.time.OffsetDateTime completedOn)TransferwithCompletedOn(java.util.Optional<java.time.OffsetDateTime> completedOn)TransferwithCreatedOn(java.time.OffsetDateTime createdOn)TransferwithDescription(java.lang.String description)An optional description of the transfer that is used on receipts and for your own internal use.TransferwithDescription(java.util.Optional<java.lang.String> description)An optional description of the transfer that is used on receipts and for your own internal use.TransferwithDestination(TransferDestination destination)TransferwithDisputedAmount(Amount disputedAmount)TransferwithDisputedAmount(java.util.Optional<? extends Amount> disputedAmount)TransferwithDisputes(java.util.List<CardAcquiringDispute> disputes)TransferwithDisputes(java.util.Optional<? extends java.util.List<CardAcquiringDispute>> disputes)TransferwithFacilitatorFee(FacilitatorFee facilitatorFee)Total or markup fee.TransferwithFacilitatorFee(java.util.Optional<? extends FacilitatorFee> facilitatorFee)Total or markup fee.TransferwithFailureReason(TransferFailureReason failureReason)Reason for a transfer's failure.TransferwithFailureReason(java.util.Optional<? extends TransferFailureReason> failureReason)Reason for a transfer's failure.TransferwithGroupID(java.lang.String groupID)TransferwithGroupID(java.util.Optional<java.lang.String> groupID)TransferwithMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)Free-form key-value pair list.TransferwithMetadata(java.util.Optional<? extends java.util.Map<java.lang.String,java.lang.String>> metadata)Free-form key-value pair list.TransferwithMoovFee(long moovFee)Fees charged to your platform account for transfers.TransferwithMoovFee(java.util.Optional<java.lang.Long> moovFee)Fees charged to your platform account for transfers.TransferwithMoovFeeDecimal(java.lang.String moovFeeDecimal)Same as `moovFee`, but a decimal-formatted numerical string that represents up to 9 decimal place precision.TransferwithMoovFeeDecimal(java.util.Optional<java.lang.String> moovFeeDecimal)Same as `moovFee`, but a decimal-formatted numerical string that represents up to 9 decimal place precision.TransferwithMoovFeeDetails(MoovFeeDetails moovFeeDetails)Processing and pass-through costs that add up to the moovFee.TransferwithMoovFeeDetails(java.util.Optional<? extends MoovFeeDetails> moovFeeDetails)Processing and pass-through costs that add up to the moovFee.TransferwithMoovFees(java.util.List<MoovFee> moovFees)Fees charged to accounts involved in the transfer.TransferwithMoovFees(java.util.Optional<? extends java.util.List<MoovFee>> moovFees)Fees charged to accounts involved in the transfer.TransferwithOccurrenceID(java.lang.String occurrenceID)TransferwithOccurrenceID(java.util.Optional<java.lang.String> occurrenceID)TransferwithPaymentLinkCode(java.lang.String paymentLinkCode)TransferwithPaymentLinkCode(java.util.Optional<java.lang.String> paymentLinkCode)TransferwithRefundedAmount(Amount refundedAmount)TransferwithRefundedAmount(java.util.Optional<? extends Amount> refundedAmount)TransferwithRefunds(java.util.List<CardAcquiringRefund> refunds)TransferwithRefunds(java.util.Optional<? extends java.util.List<CardAcquiringRefund>> refunds)TransferwithSalesTaxAmount(Amount salesTaxAmount)Optional sales tax amount.TransferwithSalesTaxAmount(java.util.Optional<? extends Amount> salesTaxAmount)Optional sales tax amount.TransferwithScheduleID(java.lang.String scheduleID)TransferwithScheduleID(java.util.Optional<java.lang.String> scheduleID)TransferwithSource(TransferSource source)TransferwithStatus(TransferStatus status)Status of a transfer.TransferwithSweepID(java.lang.String sweepID)TransferwithSweepID(java.util.Optional<java.lang.String> sweepID)TransferwithTransferID(java.lang.String transferID)
-
-
-
Constructor Detail
-
Transfer
public Transfer(java.lang.String transferID, java.time.OffsetDateTime createdOn, TransferSource source, TransferDestination destination, java.util.Optional<java.time.OffsetDateTime> completedOn, TransferStatus status, java.util.Optional<? extends TransferFailureReason> failureReason, Amount amount, java.util.Optional<java.lang.String> description, java.util.Optional<? extends java.util.Map<java.lang.String,java.lang.String>> metadata, java.util.Optional<? extends FacilitatorFee> facilitatorFee, java.util.Optional<java.lang.Long> moovFee, java.util.Optional<java.lang.String> moovFeeDecimal, java.util.Optional<? extends MoovFeeDetails> moovFeeDetails, java.util.Optional<? extends java.util.List<MoovFee>> moovFees, java.util.Optional<java.lang.String> groupID, java.util.Optional<? extends java.util.List<Cancellation>> cancellations, java.util.Optional<? extends Amount> refundedAmount, java.util.Optional<? extends java.util.List<CardAcquiringRefund>> refunds, java.util.Optional<? extends Amount> disputedAmount, java.util.Optional<? extends java.util.List<CardAcquiringDispute>> disputes, java.util.Optional<java.lang.String> sweepID, java.util.Optional<java.lang.String> scheduleID, java.util.Optional<java.lang.String> occurrenceID, java.util.Optional<java.lang.String> paymentLinkCode, java.util.Optional<? extends Amount> salesTaxAmount)
-
Transfer
public Transfer(java.lang.String transferID, java.time.OffsetDateTime createdOn, TransferSource source, TransferDestination destination, TransferStatus status, Amount amount)
-
-
Method Detail
-
transferID
public java.lang.String transferID()
-
createdOn
public java.time.OffsetDateTime createdOn()
-
source
public TransferSource source()
-
destination
public TransferDestination destination()
-
completedOn
public java.util.Optional<java.time.OffsetDateTime> completedOn()
-
status
public TransferStatus status()
Status of a transfer.
-
failureReason
public java.util.Optional<TransferFailureReason> failureReason()
Reason for a transfer's failure.
-
amount
public Amount amount()
-
description
public java.util.Optional<java.lang.String> description()
An optional description of the transfer that is used on receipts and for your own internal use.
-
metadata
public java.util.Optional<java.util.Map<java.lang.String,java.lang.String>> metadata()
Free-form key-value pair list. Useful for storing information that is not captured elsewhere.
-
facilitatorFee
public java.util.Optional<FacilitatorFee> facilitatorFee()
Total or markup fee.
-
moovFee
public java.util.Optional<java.lang.Long> moovFee()
Fees charged to your platform account for transfers.
-
moovFeeDecimal
public java.util.Optional<java.lang.String> moovFeeDecimal()
Same as `moovFee`, but a decimal-formatted numerical string that represents up to 9 decimal place precision.
-
moovFeeDetails
public java.util.Optional<MoovFeeDetails> moovFeeDetails()
Processing and pass-through costs that add up to the moovFee.
-
moovFees
public java.util.Optional<java.util.List<MoovFee>> moovFees()
Fees charged to accounts involved in the transfer.
-
groupID
public java.util.Optional<java.lang.String> groupID()
-
cancellations
public java.util.Optional<java.util.List<Cancellation>> cancellations()
-
refundedAmount
public java.util.Optional<Amount> refundedAmount()
-
refunds
public java.util.Optional<java.util.List<CardAcquiringRefund>> refunds()
-
disputedAmount
public java.util.Optional<Amount> disputedAmount()
-
disputes
public java.util.Optional<java.util.List<CardAcquiringDispute>> disputes()
-
sweepID
public java.util.Optional<java.lang.String> sweepID()
-
scheduleID
public java.util.Optional<java.lang.String> scheduleID()
-
occurrenceID
public java.util.Optional<java.lang.String> occurrenceID()
-
paymentLinkCode
public java.util.Optional<java.lang.String> paymentLinkCode()
-
salesTaxAmount
public java.util.Optional<Amount> salesTaxAmount()
Optional sales tax amount. `transfer.amount.value` should be inclusive of any sales tax and represents the total amount charged.
-
builder
public static final Transfer.Builder builder()
-
withTransferID
public Transfer withTransferID(java.lang.String transferID)
-
withCreatedOn
public Transfer withCreatedOn(java.time.OffsetDateTime createdOn)
-
withSource
public Transfer withSource(TransferSource source)
-
withDestination
public Transfer withDestination(TransferDestination destination)
-
withCompletedOn
public Transfer withCompletedOn(java.time.OffsetDateTime completedOn)
-
withCompletedOn
public Transfer withCompletedOn(java.util.Optional<java.time.OffsetDateTime> completedOn)
-
withStatus
public Transfer withStatus(TransferStatus status)
Status of a transfer.
-
withFailureReason
public Transfer withFailureReason(TransferFailureReason failureReason)
Reason for a transfer's failure.
-
withFailureReason
public Transfer withFailureReason(java.util.Optional<? extends TransferFailureReason> failureReason)
Reason for a transfer's failure.
-
withDescription
public Transfer withDescription(java.lang.String description)
An optional description of the transfer that is used on receipts and for your own internal use.
-
withDescription
public Transfer withDescription(java.util.Optional<java.lang.String> description)
An optional description of the transfer that is used on receipts and for your own internal use.
-
withMetadata
public Transfer withMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Free-form key-value pair list. Useful for storing information that is not captured elsewhere.
-
withMetadata
public Transfer withMetadata(java.util.Optional<? extends java.util.Map<java.lang.String,java.lang.String>> metadata)
Free-form key-value pair list. Useful for storing information that is not captured elsewhere.
-
withFacilitatorFee
public Transfer withFacilitatorFee(FacilitatorFee facilitatorFee)
Total or markup fee.
-
withFacilitatorFee
public Transfer withFacilitatorFee(java.util.Optional<? extends FacilitatorFee> facilitatorFee)
Total or markup fee.
-
withMoovFee
public Transfer withMoovFee(long moovFee)
Fees charged to your platform account for transfers.
-
withMoovFee
public Transfer withMoovFee(java.util.Optional<java.lang.Long> moovFee)
Fees charged to your platform account for transfers.
-
withMoovFeeDecimal
public Transfer withMoovFeeDecimal(java.lang.String moovFeeDecimal)
Same as `moovFee`, but a decimal-formatted numerical string that represents up to 9 decimal place precision.
-
withMoovFeeDecimal
public Transfer withMoovFeeDecimal(java.util.Optional<java.lang.String> moovFeeDecimal)
Same as `moovFee`, but a decimal-formatted numerical string that represents up to 9 decimal place precision.
-
withMoovFeeDetails
public Transfer withMoovFeeDetails(MoovFeeDetails moovFeeDetails)
Processing and pass-through costs that add up to the moovFee.
-
withMoovFeeDetails
public Transfer withMoovFeeDetails(java.util.Optional<? extends MoovFeeDetails> moovFeeDetails)
Processing and pass-through costs that add up to the moovFee.
-
withMoovFees
public Transfer withMoovFees(java.util.List<MoovFee> moovFees)
Fees charged to accounts involved in the transfer.
-
withMoovFees
public Transfer withMoovFees(java.util.Optional<? extends java.util.List<MoovFee>> moovFees)
Fees charged to accounts involved in the transfer.
-
withGroupID
public Transfer withGroupID(java.lang.String groupID)
-
withGroupID
public Transfer withGroupID(java.util.Optional<java.lang.String> groupID)
-
withCancellations
public Transfer withCancellations(java.util.List<Cancellation> cancellations)
-
withCancellations
public Transfer withCancellations(java.util.Optional<? extends java.util.List<Cancellation>> cancellations)
-
withRefundedAmount
public Transfer withRefundedAmount(java.util.Optional<? extends Amount> refundedAmount)
-
withRefunds
public Transfer withRefunds(java.util.List<CardAcquiringRefund> refunds)
-
withRefunds
public Transfer withRefunds(java.util.Optional<? extends java.util.List<CardAcquiringRefund>> refunds)
-
withDisputedAmount
public Transfer withDisputedAmount(java.util.Optional<? extends Amount> disputedAmount)
-
withDisputes
public Transfer withDisputes(java.util.List<CardAcquiringDispute> disputes)
-
withDisputes
public Transfer withDisputes(java.util.Optional<? extends java.util.List<CardAcquiringDispute>> disputes)
-
withSweepID
public Transfer withSweepID(java.lang.String sweepID)
-
withSweepID
public Transfer withSweepID(java.util.Optional<java.lang.String> sweepID)
-
withScheduleID
public Transfer withScheduleID(java.lang.String scheduleID)
-
withScheduleID
public Transfer withScheduleID(java.util.Optional<java.lang.String> scheduleID)
-
withOccurrenceID
public Transfer withOccurrenceID(java.lang.String occurrenceID)
-
withOccurrenceID
public Transfer withOccurrenceID(java.util.Optional<java.lang.String> occurrenceID)
-
withPaymentLinkCode
public Transfer withPaymentLinkCode(java.lang.String paymentLinkCode)
-
withPaymentLinkCode
public Transfer withPaymentLinkCode(java.util.Optional<java.lang.String> paymentLinkCode)
-
withSalesTaxAmount
public Transfer withSalesTaxAmount(Amount salesTaxAmount)
Optional sales tax amount. `transfer.amount.value` should be inclusive of any sales tax and represents the total amount charged.
-
withSalesTaxAmount
public Transfer withSalesTaxAmount(java.util.Optional<? extends Amount> salesTaxAmount)
Optional sales tax amount. `transfer.amount.value` should be inclusive of any sales tax and represents the total amount charged.
-
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.Throwable
-
-