Metadata
public struct Metadata
The metadata contains any custom information regarding the upload (used later for reporting), creating HTTP headers with an specific format.
-
The document metadata initializer with the branch ID (i.e: the BLZ of a Bank in Germany) and additional headers.
Declaration
Swift
public init( branchId: String? = nil, uploadMetadata: UploadMetadata? = nil, bankSDKVersion: String? = nil, additionalHeaders: [String: String]? = nil )
Parameters
branchId
The branch id (i.e: the BLZ of a Bank in Germany)
additionalHeaders
Additional headers for the metadata. i.e: [“customerId”:“123456”]
-
Adds GiniBankSDK version to upload metadata
Declaration
Swift
public mutating func addGiniBankSDKVersion(_ giniBankSDKVersion: String)
Parameters
giniBankSDKVersion
GiniBankSDKVersion
-
Adds upload metadata
Declaration
Swift
public mutating func addUploadMetadata(_ uploadMetadata: UploadMetadata)
Parameters
uploadMetadata
Upload metadata
-
Checks if upload metadata is present
Declaration
Swift
public func hasUploadMetadata() -> Bool