stripeapi-0.1.0.2: Stripe-Library

Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostCustomers

Description

Contains the different functions to run the operation postCustomers

Synopsis

Documentation

postCustomers Source #

Arguments

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

The configuration to use in the request

-> Maybe PostCustomersRequestBody

The request body to send

-> m (Either HttpException (Response PostCustomersResponse))

Monad containing the result of the operation

POST /v1/customers

<p>Creates a new customer object.</p>

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

POST /v1/customers

The same as postCustomers but returns the raw ByteString

data PostCustomersRequestBody Source #

Defines the data type for the schema postCustomersRequestBody

Constructors

PostCustomersRequestBody 

Fields

data PostCustomersRequestBodyAddress'OneOf1 Source #

Defines the enum schema postCustomersRequestBodyAddress'OneOf1

data PostCustomersRequestBodyAddress'OneOf2 Source #

Defines the data type for the schema postCustomersRequestBodyAddress'OneOf2

Constructors

PostCustomersRequestBodyAddress'OneOf2 

Fields

data PostCustomersRequestBodyAddress'Variants Source #

Define the one-of schema postCustomersRequestBodyAddress'

The customer's address.

Instances
Eq PostCustomersRequestBodyAddress'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomers

Show PostCustomersRequestBodyAddress'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomers

Generic PostCustomersRequestBodyAddress'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomers

ToJSON PostCustomersRequestBodyAddress'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomers

FromJSON PostCustomersRequestBodyAddress'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomers

type Rep PostCustomersRequestBodyAddress'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomers

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

data PostCustomersRequestBodyInvoiceSettings' Source #

Defines the data type for the schema postCustomersRequestBodyInvoice_settings'

Default invoice settings for this customer.

data PostCustomersRequestBodyInvoiceSettings'CustomFields'OneOf1 Source #

Defines the enum schema postCustomersRequestBodyInvoice_settings'Custom_fields'OneOf1

Instances
Eq PostCustomersRequestBodyInvoiceSettings'CustomFields'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomers

Show PostCustomersRequestBodyInvoiceSettings'CustomFields'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomers

ToJSON PostCustomersRequestBodyInvoiceSettings'CustomFields'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomers

FromJSON PostCustomersRequestBodyInvoiceSettings'CustomFields'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomers

data PostCustomersRequestBodyInvoiceSettings'CustomFields'OneOf2 Source #

Defines the data type for the schema postCustomersRequestBodyInvoice_settings'Custom_fields'OneOf2

Instances
Eq PostCustomersRequestBodyInvoiceSettings'CustomFields'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomers

Show PostCustomersRequestBodyInvoiceSettings'CustomFields'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomers

ToJSON PostCustomersRequestBodyInvoiceSettings'CustomFields'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomers

FromJSON PostCustomersRequestBodyInvoiceSettings'CustomFields'OneOf2 Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomers

data PostCustomersRequestBodyInvoiceSettings'CustomFields'Variants Source #

Define the one-of schema postCustomersRequestBodyInvoice_settings'Custom_fields'

Instances
Eq PostCustomersRequestBodyInvoiceSettings'CustomFields'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomers

Show PostCustomersRequestBodyInvoiceSettings'CustomFields'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomers

Generic PostCustomersRequestBodyInvoiceSettings'CustomFields'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomers

ToJSON PostCustomersRequestBodyInvoiceSettings'CustomFields'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomers

FromJSON PostCustomersRequestBodyInvoiceSettings'CustomFields'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomers

type Rep PostCustomersRequestBodyInvoiceSettings'CustomFields'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomers

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

data PostCustomersRequestBodyMetadata' Source #

Defines the data type for the schema postCustomersRequestBodyMetadata'

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 PostCustomersRequestBodyShipping'OneOf1 Source #

Defines the enum schema postCustomersRequestBodyShipping'OneOf1

data PostCustomersRequestBodyShipping'OneOf2 Source #

Defines the data type for the schema postCustomersRequestBodyShipping'OneOf2

data PostCustomersRequestBodyShipping'OneOf2Address' Source #

Defines the data type for the schema postCustomersRequestBodyShipping'OneOf2Address'

Constructors

PostCustomersRequestBodyShipping'OneOf2Address' 

Fields

data PostCustomersRequestBodyShipping'Variants Source #

Define the one-of schema postCustomersRequestBodyShipping'

The customer's shipping information. Appears on invoices emailed to this customer.

Instances
Eq PostCustomersRequestBodyShipping'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomers

Show PostCustomersRequestBodyShipping'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomers

Generic PostCustomersRequestBodyShipping'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomers

ToJSON PostCustomersRequestBodyShipping'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomers

FromJSON PostCustomersRequestBodyShipping'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomers

type Rep PostCustomersRequestBodyShipping'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomers

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

data PostCustomersRequestBodyTaxExempt' Source #

Defines the enum schema postCustomersRequestBodyTax_exempt'

The customer's tax exemption. One of `none`, `exempt`, or `reverse`.

data PostCustomersRequestBodyTaxIdData' Source #

Defines the data type for the schema postCustomersRequestBodyTax_id_data'

data PostCustomersRequestBodyTaxIdData'Type' Source #

Defines the enum schema postCustomersRequestBodyTax_id_data'Type'

data PostCustomersResponse Source #

Represents a response of the operation postCustomers.

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), PostCustomersResponseError is used.

Constructors

PostCustomersResponseError String

Means either no matching case available or a parse error

PostCustomersResponse200 Customer

Successful response.

PostCustomersResponseDefault Error

Error response.