InternalStripeFileParams

data class InternalStripeFileParams(file: File, purpose: InternalStripeFilePurpose)

Internal copy of com.stripe.android.model.StripeFileParams. It's a public API object and can't be changed without introducing backward incompatibility. TODO(ccen): Move StripeFileParams to stripe-core and delete this copy during the next major version bump.

Constructors

Link copied to clipboard
fun InternalStripeFileParams(file: File, purpose: InternalStripeFilePurpose)

Properties

Link copied to clipboard
val 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).

Link copied to clipboard
val purpose: InternalStripeFilePurpose

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.