Package io.moov.sdk.models.components
Class CreateTransfer
- java.lang.Object
-
- io.moov.sdk.models.components.CreateTransfer
-
public class CreateTransfer extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateTransfer.Builder
-
Constructor Summary
Constructors Constructor Description CreateTransfer(CreateTransferSource source, CreateTransferDestination destination, Amount amount)CreateTransfer(CreateTransferSource source, CreateTransferDestination destination, Amount amount, java.util.Optional<? extends FacilitatorFee> facilitatorFee, 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 Amount> salesTaxAmount)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Amountamount()static CreateTransfer.Builderbuilder()java.util.Optional<java.lang.String>description()An optional description of the transfer that is used on receipts and for your own internal use.CreateTransferDestinationdestination()The final stage of a transfer and the ultimate recipient of the funds.booleanequals(java.lang.Object o)java.util.Optional<FacilitatorFee>facilitatorFee()Total or markup fee.inthashCode()java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>metadata()Free-form key-value pair list.java.util.Optional<Amount>salesTaxAmount()Optional sales tax amount.CreateTransferSourcesource()Where funds for a transfer originate.java.lang.StringtoString()CreateTransferwithAmount(Amount amount)CreateTransferwithDescription(java.lang.String description)An optional description of the transfer that is used on receipts and for your own internal use.CreateTransferwithDescription(java.util.Optional<java.lang.String> description)An optional description of the transfer that is used on receipts and for your own internal use.CreateTransferwithDestination(CreateTransferDestination destination)The final stage of a transfer and the ultimate recipient of the funds.CreateTransferwithFacilitatorFee(FacilitatorFee facilitatorFee)Total or markup fee.CreateTransferwithFacilitatorFee(java.util.Optional<? extends FacilitatorFee> facilitatorFee)Total or markup fee.CreateTransferwithMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)Free-form key-value pair list.CreateTransferwithMetadata(java.util.Optional<? extends java.util.Map<java.lang.String,java.lang.String>> metadata)Free-form key-value pair list.CreateTransferwithSalesTaxAmount(Amount salesTaxAmount)Optional sales tax amount.CreateTransferwithSalesTaxAmount(java.util.Optional<? extends Amount> salesTaxAmount)Optional sales tax amount.CreateTransferwithSource(CreateTransferSource source)Where funds for a transfer originate.
-
-
-
Constructor Detail
-
CreateTransfer
public CreateTransfer(CreateTransferSource source, CreateTransferDestination destination, Amount amount, java.util.Optional<? extends FacilitatorFee> facilitatorFee, 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 Amount> salesTaxAmount)
-
CreateTransfer
public CreateTransfer(CreateTransferSource source, CreateTransferDestination destination, Amount amount)
-
-
Method Detail
-
source
public CreateTransferSource source()
Where funds for a transfer originate. For the source, you must include either a `paymentMethodID` or a `transferID`.
-
destination
public CreateTransferDestination destination()
The final stage of a transfer and the ultimate recipient of the funds.
-
amount
public Amount amount()
-
facilitatorFee
public java.util.Optional<FacilitatorFee> facilitatorFee()
Total or markup fee.
-
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.
-
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 CreateTransfer.Builder builder()
-
withSource
public CreateTransfer withSource(CreateTransferSource source)
Where funds for a transfer originate. For the source, you must include either a `paymentMethodID` or a `transferID`.
-
withDestination
public CreateTransfer withDestination(CreateTransferDestination destination)
The final stage of a transfer and the ultimate recipient of the funds.
-
withAmount
public CreateTransfer withAmount(Amount amount)
-
withFacilitatorFee
public CreateTransfer withFacilitatorFee(FacilitatorFee facilitatorFee)
Total or markup fee.
-
withFacilitatorFee
public CreateTransfer withFacilitatorFee(java.util.Optional<? extends FacilitatorFee> facilitatorFee)
Total or markup fee.
-
withDescription
public CreateTransfer withDescription(java.lang.String description)
An optional description of the transfer that is used on receipts and for your own internal use.
-
withDescription
public CreateTransfer 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 CreateTransfer 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 CreateTransfer 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.
-
withSalesTaxAmount
public CreateTransfer 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 CreateTransfer 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.Object
-
-