FileUpload

class FileUpload(options: ApiRequest.Options, appInfo: InternalAppInfo?, locale: Locale, apiVersion: String, sdkVersion: String, boundary: String) : RequestHeadersFactory.BaseApiHeadersFactory

Factory for FileUploadRequest.

Constructors

Link copied to clipboard
fun FileUpload(options: ApiRequest.Options, appInfo: InternalAppInfo? = null, locale: Locale = Locale.getDefault(), apiVersion: String = ApiVersion.get().code, sdkVersion: String = StripeSdkVersion.VERSION, boundary: String)

Functions

Link copied to clipboard
fun create(): Map<String, String>

Creates a map for headers attached to all requests.

Link copied to clipboard
fun createPostHeader(): Map<String, String>

Creates a map for headers attached to POST requests. Return am empty map if this factory is used for request that doesn't have POST options.