Package com.stripe.param
Class QuoteUpdateParams.TransferData.Builder
- java.lang.Object
-
- com.stripe.param.QuoteUpdateParams.TransferData.Builder
-
- Enclosing class:
- QuoteUpdateParams.TransferData
public static class QuoteUpdateParams.TransferData.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QuoteUpdateParams.TransferData
build()
Finalize and obtain parameter instance from this builder.QuoteUpdateParams.TransferData.Builder
putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
QuoteUpdateParams.TransferData.Builder
putExtraParam(java.lang.String key, java.lang.Object value)
Add a key/value pair to `extraParams` map.QuoteUpdateParams.TransferData.Builder
setAmount(java.lang.Long amount)
The amount that will be transferred automatically when the invoice is paid.QuoteUpdateParams.TransferData.Builder
setAmountPercent(java.math.BigDecimal amountPercent)
A non-negative decimal between 0 and 100, with at most two decimal places.QuoteUpdateParams.TransferData.Builder
setDestination(EmptyParam destination)
ID of an existing, connected Stripe account.QuoteUpdateParams.TransferData.Builder
setDestination(java.lang.String destination)
ID of an existing, connected Stripe account.
-
-
-
Method Detail
-
build
public QuoteUpdateParams.TransferData build()
Finalize and obtain parameter instance from this builder.
-
setAmount
public QuoteUpdateParams.TransferData.Builder setAmount(java.lang.Long amount)
The amount that will be transferred automatically when the invoice is paid. If no amount is set, the full amount is transferred. There cannot be any line items with recurring prices when using this field.
-
setAmountPercent
public QuoteUpdateParams.TransferData.Builder setAmountPercent(java.math.BigDecimal amountPercent)
A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice subtotal that will be transferred to the destination account. By default, the entire amount is transferred to the destination. There must be at least 1 line item with a recurring price to use this field.
-
setDestination
public QuoteUpdateParams.TransferData.Builder setDestination(java.lang.String destination)
ID of an existing, connected Stripe account.
-
setDestination
public QuoteUpdateParams.TransferData.Builder setDestination(EmptyParam destination)
ID of an existing, connected Stripe account.
-
putExtraParam
public QuoteUpdateParams.TransferData.Builder putExtraParam(java.lang.String key, java.lang.Object value)
Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeQuoteUpdateParams.TransferData.extraParams
for the field documentation.
-
putAllExtraParam
public QuoteUpdateParams.TransferData.Builder putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
-
-