Class SourceUpdateParams.Mandate.Builder

java.lang.Object
com.stripe.param.SourceUpdateParams.Mandate.Builder
Enclosing class:
SourceUpdateParams.Mandate

public static class SourceUpdateParams.Mandate.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      Finalize and obtain parameter instance from this builder.
    • setAcceptance

      The parameters required to notify Stripe of a mandate acceptance or refusal by the customer.
    • setAmount

      public SourceUpdateParams.Mandate.Builder setAmount(Long amount)
      The amount specified by the mandate. (Leave null for a mandate covering all amounts)
    • setAmount

      The amount specified by the mandate. (Leave null for a mandate covering all amounts)
    • setCurrency

      public SourceUpdateParams.Mandate.Builder setCurrency(String currency)
      The currency specified by the mandate. (Must match currency of the source)
    • setCurrency

      public SourceUpdateParams.Mandate.Builder setCurrency(EmptyParam currency)
      The currency specified by the mandate. (Must match currency of the source)
    • putExtraParam

      public SourceUpdateParams.Mandate.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 SourceUpdateParams.Mandate.extraParams for the field documentation.
    • putAllExtraParam

      public SourceUpdateParams.Mandate.Builder putAllExtraParam(Map<String,Object> map)
      Add all map key/value pairs 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 SourceUpdateParams.Mandate.extraParams for the field documentation.
    • setInterval

      The interval of debits permitted by the mandate. Either one_time (just permitting a single debit), scheduled (with debits on an agreed schedule or for clearly-defined events), or variable(for debits with any frequency)
    • setNotificationMethod

      public SourceUpdateParams.Mandate.Builder setNotificationMethod(SourceUpdateParams.Mandate.NotificationMethod notificationMethod)
      The method Stripe should use to notify the customer of upcoming debit instructions and/or mandate confirmation as required by the underlying debit network. Either email (an email is sent directly to the customer), manual (a source.mandate_notification event is sent to your webhooks endpoint and you should handle the notification) or none (the underlying debit network does not require any notification).