Package io.moov.sdk.models.components
Class CreateTransfer.Builder
- java.lang.Object
-
- io.moov.sdk.models.components.CreateTransfer.Builder
-
- Enclosing class:
- CreateTransfer
public static final class CreateTransfer.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateTransfer.Builderamount(Amount amount)CreateTransferbuild()CreateTransfer.Builderdescription(java.lang.String description)An optional description of the transfer that is used on receipts and for your own internal use.CreateTransfer.Builderdescription(java.util.Optional<java.lang.String> description)An optional description of the transfer that is used on receipts and for your own internal use.CreateTransfer.Builderdestination(CreateTransferDestination destination)The final stage of a transfer and the ultimate recipient of the funds.CreateTransfer.BuilderfacilitatorFee(FacilitatorFee facilitatorFee)Total or markup fee.CreateTransfer.BuilderfacilitatorFee(java.util.Optional<? extends FacilitatorFee> facilitatorFee)Total or markup fee.CreateTransfer.Buildermetadata(java.util.Map<java.lang.String,java.lang.String> metadata)Free-form key-value pair list.CreateTransfer.Buildermetadata(java.util.Optional<? extends java.util.Map<java.lang.String,java.lang.String>> metadata)Free-form key-value pair list.CreateTransfer.BuildersalesTaxAmount(Amount salesTaxAmount)Optional sales tax amount.CreateTransfer.BuildersalesTaxAmount(java.util.Optional<? extends Amount> salesTaxAmount)Optional sales tax amount.CreateTransfer.Buildersource(CreateTransferSource source)Where funds for a transfer originate.
-
-
-
Method Detail
-
source
public CreateTransfer.Builder source(CreateTransferSource source)
Where funds for a transfer originate. For the source, you must include either a `paymentMethodID` or a `transferID`.
-
destination
public CreateTransfer.Builder destination(CreateTransferDestination destination)
The final stage of a transfer and the ultimate recipient of the funds.
-
amount
public CreateTransfer.Builder amount(Amount amount)
-
facilitatorFee
public CreateTransfer.Builder facilitatorFee(FacilitatorFee facilitatorFee)
Total or markup fee.
-
facilitatorFee
public CreateTransfer.Builder facilitatorFee(java.util.Optional<? extends FacilitatorFee> facilitatorFee)
Total or markup fee.
-
description
public CreateTransfer.Builder description(java.lang.String description)
An optional description of the transfer that is used on receipts and for your own internal use.
-
description
public CreateTransfer.Builder description(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 CreateTransfer.Builder metadata(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.
-
metadata
public CreateTransfer.Builder metadata(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.
-
salesTaxAmount
public CreateTransfer.Builder salesTaxAmount(Amount salesTaxAmount)
Optional sales tax amount. `transfer.amount.value` should be inclusive of any sales tax and represents the total amount charged.
-
salesTaxAmount
public CreateTransfer.Builder salesTaxAmount(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.
-
build
public CreateTransfer build()
-
-