Class TopupCreateParams.Builder

java.lang.Object
com.stripe.param.TopupCreateParams.Builder
Enclosing class:
TopupCreateParams

public static class TopupCreateParams.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      public TopupCreateParams build()
      Finalize and obtain parameter instance from this builder.
    • setAmount

      public TopupCreateParams.Builder setAmount(Long amount)
      Required. A positive integer representing how much to transfer.
    • setCurrency

      public TopupCreateParams.Builder setCurrency(String currency)
      Required. Three-letter ISO currency code, in lowercase. Must be a supported currency.
    • setDescription

      public TopupCreateParams.Builder setDescription(String description)
      An arbitrary string attached to the object. Often useful for displaying to users.
    • addExpand

      public TopupCreateParams.Builder addExpand(String element)
      Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See TopupCreateParams.expand for the field documentation.
    • addAllExpand

      public TopupCreateParams.Builder addAllExpand(List<String> elements)
      Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See TopupCreateParams.expand for the field documentation.
    • putExtraParam

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

      public TopupCreateParams.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 TopupCreateParams.extraParams for the field documentation.
    • putMetadata

      public TopupCreateParams.Builder putMetadata(String key, String value)
      Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See TopupCreateParams.metadata for the field documentation.
    • putAllMetadata

      public TopupCreateParams.Builder putAllMetadata(Map<String,String> map)
      Add all map key/value pairs to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See TopupCreateParams.metadata for the field documentation.
    • setMetadata

      public TopupCreateParams.Builder setMetadata(EmptyParam metadata)
      Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to metadata.
    • setMetadata

      public TopupCreateParams.Builder setMetadata(Map<String,String> metadata)
      Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to metadata.
    • setSource

      public TopupCreateParams.Builder setSource(String source)
      The ID of a source to transfer funds from. For most users, this should be left unspecified which will use the bank account that was set up in the dashboard for the specified currency. In test mode, this can be a test bank token (see Testing Top-ups).
    • setStatementDescriptor

      public TopupCreateParams.Builder setStatementDescriptor(String statementDescriptor)
      Extra information about a top-up for the source's bank statement. Limited to 15 ASCII characters.
    • setTransferGroup

      public TopupCreateParams.Builder setTransferGroup(String transferGroup)
      A string that identifies this top-up as part of a group.