Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the types generated from the schema File
Synopsis
- data File = File {
- fileCreated :: Int
- fileExpiresAt :: Maybe Int
- fileFilename :: Maybe Text
- fileId :: Text
- fileLinks :: Maybe FileLinks'
- filePurpose :: FilePurpose'
- fileSize :: Int
- fileTitle :: Maybe Text
- fileType :: Maybe Text
- fileUrl :: Maybe Text
- mkFile :: Int -> Text -> FilePurpose' -> Int -> File
- data FileLinks' = FileLinks' {}
- mkFileLinks' :: [FileLink] -> Bool -> Text -> FileLinks'
- data FilePurpose'
- = FilePurpose'Other Value
- | FilePurpose'Typed Text
- | FilePurpose'EnumAccountRequirement
- | FilePurpose'EnumAdditionalVerification
- | FilePurpose'EnumBusinessIcon
- | FilePurpose'EnumBusinessLogo
- | FilePurpose'EnumCustomerSignature
- | FilePurpose'EnumDisputeEvidence
- | FilePurpose'EnumDocumentProviderIdentityDocument
- | FilePurpose'EnumFinanceReportRun
- | FilePurpose'EnumIdentityDocument
- | FilePurpose'EnumIdentityDocumentDownloadable
- | FilePurpose'EnumPciDocument
- | FilePurpose'EnumSelfie
- | FilePurpose'EnumSigmaScheduledQuery
- | FilePurpose'EnumTaxDocumentUserUpload
Documentation
Defines the object schema located at components.schemas.file
in the specification.
This is an object representing a file hosted on Stripe's servers. The file may have been uploaded by yourself using the create file request (for example, when uploading dispute evidence) or it may have been created by Stripe (for example, the results of a Sigma scheduled query).
Related guide: File Upload Guide.
File | |
|
Create a new File
with all required fields.
data FileLinks' Source #
Defines the object schema located at components.schemas.file.properties.links
in the specification.
A list of file links that point at this file.
FileLinks' | |
|
Instances
Eq FileLinks' Source # | |
Defined in StripeAPI.Types.File (==) :: FileLinks' -> FileLinks' -> Bool # (/=) :: FileLinks' -> FileLinks' -> Bool # | |
Show FileLinks' Source # | |
Defined in StripeAPI.Types.File showsPrec :: Int -> FileLinks' -> ShowS # show :: FileLinks' -> String # showList :: [FileLinks'] -> ShowS # | |
ToJSON FileLinks' Source # | |
Defined in StripeAPI.Types.File toJSON :: FileLinks' -> Value # toEncoding :: FileLinks' -> Encoding # toJSONList :: [FileLinks'] -> Value # toEncodingList :: [FileLinks'] -> Encoding # | |
FromJSON FileLinks' Source # | |
Defined in StripeAPI.Types.File parseJSON :: Value -> Parser FileLinks' # parseJSONList :: Value -> Parser [FileLinks'] # |
Create a new FileLinks'
with all required fields.
data FilePurpose' Source #
Defines the enum schema located at components.schemas.file.properties.purpose
in the specification.
The purpose of the uploaded file.
FilePurpose'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
FilePurpose'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
FilePurpose'EnumAccountRequirement | Represents the JSON value |
FilePurpose'EnumAdditionalVerification | Represents the JSON value |
FilePurpose'EnumBusinessIcon | Represents the JSON value |
FilePurpose'EnumBusinessLogo | Represents the JSON value |
FilePurpose'EnumCustomerSignature | Represents the JSON value |
FilePurpose'EnumDisputeEvidence | Represents the JSON value |
FilePurpose'EnumDocumentProviderIdentityDocument | Represents the JSON value |
FilePurpose'EnumFinanceReportRun | Represents the JSON value |
FilePurpose'EnumIdentityDocument | Represents the JSON value |
FilePurpose'EnumIdentityDocumentDownloadable | Represents the JSON value |
FilePurpose'EnumPciDocument | Represents the JSON value |
FilePurpose'EnumSelfie | Represents the JSON value |
FilePurpose'EnumSigmaScheduledQuery | Represents the JSON value |
FilePurpose'EnumTaxDocumentUserUpload | Represents the JSON value |
Instances
Eq FilePurpose' Source # | |
Defined in StripeAPI.Types.File (==) :: FilePurpose' -> FilePurpose' -> Bool # (/=) :: FilePurpose' -> FilePurpose' -> Bool # | |
Show FilePurpose' Source # | |
Defined in StripeAPI.Types.File showsPrec :: Int -> FilePurpose' -> ShowS # show :: FilePurpose' -> String # showList :: [FilePurpose'] -> ShowS # | |
ToJSON FilePurpose' Source # | |
Defined in StripeAPI.Types.File toJSON :: FilePurpose' -> Value # toEncoding :: FilePurpose' -> Encoding # toJSONList :: [FilePurpose'] -> Value # toEncodingList :: [FilePurpose'] -> Encoding # | |
FromJSON FilePurpose' Source # | |
Defined in StripeAPI.Types.File parseJSON :: Value -> Parser FilePurpose' # parseJSONList :: Value -> Parser [FilePurpose'] # |