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
fun StripeFileParams(file: File, purpose: StripeFilePurpose)

Types

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

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