Package com.stripe.param
Class FileCreateParams.Builder
- java.lang.Object
-
- com.stripe.param.FileCreateParams.Builder
-
- Enclosing class:
- FileCreateParams
public static class FileCreateParams.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileCreateParams.Builder
addAllExpand(java.util.List<java.lang.String> elements)
Add all elements to `expand` list.FileCreateParams.Builder
addExpand(java.lang.String element)
Add an element to `expand` list.FileCreateParams
build()
Finalize and obtain parameter instance from this builder.FileCreateParams.Builder
setFile(java.io.File file)
A file to upload.FileCreateParams.Builder
setFile(java.io.InputStream file)
A file to upload.FileCreateParams.Builder
setFileLinkData(FileCreateParams.FileLinkData fileLinkData)
Optional parameters to automatically create a [file link](#file_links) for the newly created file.FileCreateParams.Builder
setPurpose(FileCreateParams.Purpose purpose)
The purpose of the uploaded file.
-
-
-
Method Detail
-
build
public FileCreateParams build()
Finalize and obtain parameter instance from this builder.
-
addExpand
public FileCreateParams.Builder addExpand(java.lang.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. SeeFileCreateParams.expand
for the field documentation.
-
addAllExpand
public FileCreateParams.Builder addAllExpand(java.util.List<java.lang.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. SeeFileCreateParams.expand
for the field documentation.
-
setFile
public FileCreateParams.Builder setFile(java.io.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(java.io.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
public FileCreateParams.Builder setPurpose(FileCreateParams.Purpose purpose)
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`
-
-