stripeapi-1.0.0.0: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Types.File

Description

Contains the types generated from the schema File

Synopsis

Documentation

data File Source #

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.

Constructors

File 

Fields

  • fileCreated :: Int

    created: Time at which the object was created. Measured in seconds since the Unix epoch.

  • fileExpiresAt :: Maybe Int

    expires_at: The time at which the file expires and is no longer available in epoch seconds.

  • fileFilename :: Maybe Text

    filename: A filename for the file, suitable for saving to a filesystem.

    Constraints:

    • Maximum length of 5000
  • fileId :: Text

    id: Unique identifier for the object.

    Constraints:

    • Maximum length of 5000
  • fileLinks :: Maybe FileLinks'

    links: A list of file links that point at this file.

  • filePurpose :: FilePurpose'

    purpose: The purpose of the uploaded file.

  • fileSize :: Int

    size: The size in bytes of the file object.

  • fileTitle :: Maybe Text

    title: A user friendly title for the document.

    Constraints:

    • Maximum length of 5000
  • fileType :: Maybe Text

    type: The type of the file returned (e.g., `csv`, `pdf`, `jpg`, or `png`).

    Constraints:

    • Maximum length of 5000
  • fileUrl :: Maybe Text

    url: The URL from which the file can be downloaded using your live secret API key.

    Constraints:

    • Maximum length of 5000

Instances

Instances details
Eq File Source # 
Instance details

Defined in StripeAPI.Types.File

Methods

(==) :: File -> File -> Bool #

(/=) :: File -> File -> Bool #

Show File Source # 
Instance details

Defined in StripeAPI.Types.File

Methods

showsPrec :: Int -> File -> ShowS #

show :: File -> String #

showList :: [File] -> ShowS #

ToJSON File Source # 
Instance details

Defined in StripeAPI.Types.File

FromJSON File Source # 
Instance details

Defined in StripeAPI.Types.File

mkFile Source #

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.

Constructors

FileLinks' 

Fields

mkFileLinks' Source #

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.

Constructors

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 "account_requirement"

FilePurpose'EnumAdditionalVerification

Represents the JSON value "additional_verification"

FilePurpose'EnumBusinessIcon

Represents the JSON value "business_icon"

Represents the JSON value "business_logo"

FilePurpose'EnumCustomerSignature

Represents the JSON value "customer_signature"

FilePurpose'EnumDisputeEvidence

Represents the JSON value "dispute_evidence"

FilePurpose'EnumDocumentProviderIdentityDocument

Represents the JSON value "document_provider_identity_document"

FilePurpose'EnumFinanceReportRun

Represents the JSON value "finance_report_run"

FilePurpose'EnumIdentityDocument

Represents the JSON value "identity_document"

FilePurpose'EnumIdentityDocumentDownloadable

Represents the JSON value "identity_document_downloadable"

FilePurpose'EnumPciDocument

Represents the JSON value "pci_document"

FilePurpose'EnumSelfie

Represents the JSON value "selfie"

FilePurpose'EnumSigmaScheduledQuery

Represents the JSON value "sigma_scheduled_query"

FilePurpose'EnumTaxDocumentUserUpload

Represents the JSON value "tax_document_user_upload"