Class QuoteCreateParams.TransferData.Builder

java.lang.Object
com.stripe.param.QuoteCreateParams.TransferData.Builder
Enclosing class:
QuoteCreateParams.TransferData

public static class QuoteCreateParams.TransferData.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      Finalize and obtain parameter instance from this builder.
    • setAmount

      public QuoteCreateParams.TransferData.Builder setAmount(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 QuoteCreateParams.TransferData.Builder setAmountPercent(BigDecimal amountPercent)
      A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total 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 QuoteCreateParams.TransferData.Builder setDestination(String destination)
      Required. ID of an existing, connected Stripe account.
    • putExtraParam

      public QuoteCreateParams.TransferData.Builder putExtraParam(String key, 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. See QuoteCreateParams.TransferData.extraParams for the field documentation.
    • putAllExtraParam

      public QuoteCreateParams.TransferData.Builder putAllExtraParam(Map<String,Object> map)