StripeFileParams

data class StripeFileParams(file: File, purpose: StripeFilePurpose)

Create a file

To upload a file to Stripe, you’ll need to send a request of type multipart/form-data. The request should contain the file you would like to upload, as well as the parameters for creating a file.

Constructors

Link copied to clipboard
constructor(file: File, purpose: StripeFilePurpose)

Types

Link copied to clipboard
data class FileLink @JvmOverloads constructor(create: Boolean = false, expiresAt: Long? = null, metadata: Map<String, String>? = null) : Parcelable

Optional parameters to automatically create a file link for the newly created file.