STPFile
public class STPFile : NSObject, STPAPIResponseDecodable
Representation of a file upload object in the Stripe API.
-
The token for this file.
Declaration
Swift
@objc public private(set) var fileId: String? { get }
-
The date this file was created.
Declaration
Swift
@objc public private(set) var created: Date? { get }
-
The purpose of this file. This can be either an identifing document or an evidence dispute.
Declaration
Swift
@objc public private(set) var purpose: STPFilePurpose { get }
-
The file size in bytes.
Declaration
Swift
@objc public private(set) var size: NSNumber? { get }
-
The file type. This can be “jpg”, “png”, or “pdf”.
Declaration
Swift
@objc public private(set) var type: String? { get }
-
Returns the string value for a purpose.
Declaration
Swift
@objc(stringFromPurpose:) public class func string(from purpose: STPFilePurpose) -> String?
-
Declaration
Swift
@objc private(set) public var allResponseFields: [AnyHashable : Any] { get }
-
Declaration
Swift
@objc public class func decodedObject(fromAPIResponse response: [AnyHashable : Any]?) -> `Self`?