stripeapi-0.1.0.2: Stripe-Library

Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostInvoices

Description

Contains the different functions to run the operation postInvoices

Synopsis

Documentation

postInvoices Source #

Arguments

:: (MonadHTTP m, SecurityScheme s) 
=> Configuration s

The configuration to use in the request

-> PostInvoicesRequestBody

The request body to send

-> m (Either HttpException (Response PostInvoicesResponse))

Monad containing the result of the operation

POST /v1/invoices

<p>This endpoint creates a draft invoice for a given customer. The draft invoice created pulls in all pending invoice items on that customer, including prorations.</p>

postInvoicesRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostInvoicesRequestBody -> m (Either HttpException (Response ByteString)) Source #

POST /v1/invoices

The same as postInvoices but returns the raw ByteString

data PostInvoicesRequestBody Source #

Defines the data type for the schema postInvoicesRequestBody

Constructors

PostInvoicesRequestBody 

Fields

data PostInvoicesRequestBodyCollectionMethod' Source #

Defines the enum schema postInvoicesRequestBodyCollection_method'

Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay this invoice using the default source attached to the customer. When sending an invoice, Stripe will email this invoice to the customer with payment instructions. Defaults to `charge_automatically`.

data PostInvoicesRequestBodyCustomFields'OneOf1 Source #

Defines the enum schema postInvoicesRequestBodyCustom_fields'OneOf1

data PostInvoicesRequestBodyCustomFields'OneOf2 Source #

Defines the data type for the schema postInvoicesRequestBodyCustom_fields'OneOf2

Constructors

PostInvoicesRequestBodyCustomFields'OneOf2 

Fields

data PostInvoicesRequestBodyCustomFields'Variants Source #

Define the one-of schema postInvoicesRequestBodyCustom_fields'

A list of up to 4 custom fields to be displayed on the invoice.

Instances
Eq PostInvoicesRequestBodyCustomFields'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostInvoices

Show PostInvoicesRequestBodyCustomFields'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostInvoices

Generic PostInvoicesRequestBodyCustomFields'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostInvoices

ToJSON PostInvoicesRequestBodyCustomFields'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostInvoices

FromJSON PostInvoicesRequestBodyCustomFields'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostInvoices

type Rep PostInvoicesRequestBodyCustomFields'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostInvoices

type Rep PostInvoicesRequestBodyCustomFields'Variants = D1 (MetaData "PostInvoicesRequestBodyCustomFields'Variants" "StripeAPI.Operations.PostInvoices" "stripeapi-0.1.0.2-D0ebvtj6l9B4TLqRwmHKaP" False) (C1 (MetaCons "PostInvoicesRequestBodyCustomFields'PostInvoicesRequestBodyCustomFields'OneOf1" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 PostInvoicesRequestBodyCustomFields'OneOf1)) :+: C1 (MetaCons "PostInvoicesRequestBodyCustomFields'ListPostInvoicesRequestBodyCustomFields'OneOf2" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [PostInvoicesRequestBodyCustomFields'OneOf2])))

data PostInvoicesRequestBodyMetadata' Source #

Defines the data type for the schema postInvoicesRequestBodyMetadata'

Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.

data PostInvoicesResponse Source #

Represents a response of the operation postInvoices.

The response constructor is chosen by the status code of the response. If no case matches (no specific case for the response code, no range case, no default case), PostInvoicesResponseError is used.

Constructors

PostInvoicesResponseError String

Means either no matching case available or a parse error

PostInvoicesResponse200 Invoice

Successful response.

PostInvoicesResponseDefault Error

Error response.