Class FileCreateParams.Builder

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

public static class FileCreateParams.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      public FileCreateParams build()
      Finalize and obtain parameter instance from this builder.
    • addExpand

      public FileCreateParams.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 FileCreateParams.expand for the field documentation.
    • addAllExpand

      public FileCreateParams.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 FileCreateParams.expand for the field documentation.
    • setFile

      public FileCreateParams.Builder setFile(File file)
      A file to upload. The file should follow the specifications of RFC 2388 (which defines file transfers for the `multipart/form-data` protocol).
    • setFile

      public FileCreateParams.Builder setFile(InputStream file)
      A file to upload. The file should follow the specifications of RFC 2388 (which defines file transfers for the `multipart/form-data` protocol).
    • setFileLinkData

      public FileCreateParams.Builder setFileLinkData(FileCreateParams.FileLinkData fileLinkData)
      Optional parameters to automatically create a [file link](#file_links) for the newly created file.
    • setPurpose

      The purpose of the uploaded file. Possible values are `business_icon`, `business_logo`, `customer_signature`, `dispute_evidence`, `identity_document`, `pci_document`, or `tax_document_user_upload`