RequestHeadersFactory

sealed class RequestHeadersFactory

Types

Link copied to clipboard
object Analytics : RequestHeadersFactory

Factory for AnalyticsRequest.

Link copied to clipboard
class Api(options: ApiRequest.Options, appInfo: InternalAppInfo?, locale: Locale, apiVersion: String, sdkVersion: String) : RequestHeadersFactory.BaseApiHeadersFactory

Factory for ApiRequest.

Link copied to clipboard
open class BaseApiHeadersFactory(optionsProvider: () -> ApiRequest.Options, appInfo: InternalAppInfo?, locale: Locale, apiVersion: String, sdkVersion: String) : RequestHeadersFactory
Link copied to clipboard
object Companion
Link copied to clipboard
class FileUpload(options: ApiRequest.Options, appInfo: InternalAppInfo?, locale: Locale, apiVersion: String, sdkVersion: String, boundary: String) : RequestHeadersFactory.BaseApiHeadersFactory

Factory for FileUploadRequest.

Link copied to clipboard
class FraudDetection(guid: String) : RequestHeadersFactory

Factory for FraudDetectionDataRequest. TODO(ccen) Move FraudDetection to payments-core.

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.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard