Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postCustomers
Synopsis
- postCustomers :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostCustomersRequestBody -> m (Either HttpException (Response PostCustomersResponse))
- postCustomersRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostCustomersRequestBody -> m (Either HttpException (Response ByteString))
- postCustomersM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostCustomersRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostCustomersResponse))
- postCustomersRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostCustomersRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostCustomersRequestBody = PostCustomersRequestBody {
- postCustomersRequestBodyAddress :: Maybe PostCustomersRequestBodyAddress'Variants
- postCustomersRequestBodyBalance :: Maybe Integer
- postCustomersRequestBodyCoupon :: Maybe String
- postCustomersRequestBodyDescription :: Maybe String
- postCustomersRequestBodyEmail :: Maybe String
- postCustomersRequestBodyExpand :: Maybe ([] String)
- postCustomersRequestBodyInvoicePrefix :: Maybe String
- postCustomersRequestBodyInvoiceSettings :: Maybe PostCustomersRequestBodyInvoiceSettings'
- postCustomersRequestBodyMetadata :: Maybe PostCustomersRequestBodyMetadata'
- postCustomersRequestBodyName :: Maybe String
- postCustomersRequestBodyNextInvoiceSequence :: Maybe Integer
- postCustomersRequestBodyPaymentMethod :: Maybe String
- postCustomersRequestBodyPhone :: Maybe String
- postCustomersRequestBodyPreferredLocales :: Maybe ([] String)
- postCustomersRequestBodyShipping :: Maybe PostCustomersRequestBodyShipping'Variants
- postCustomersRequestBodySource :: Maybe String
- postCustomersRequestBodyTaxExempt :: Maybe PostCustomersRequestBodyTaxExempt'
- postCustomersRequestBodyTaxIdData :: Maybe ([] PostCustomersRequestBodyTaxIdData')
- data PostCustomersRequestBodyAddress'OneOf1
- data PostCustomersRequestBodyAddress'OneOf2 = PostCustomersRequestBodyAddress'OneOf2 {
- postCustomersRequestBodyAddress'OneOf2City :: Maybe String
- postCustomersRequestBodyAddress'OneOf2Country :: Maybe String
- postCustomersRequestBodyAddress'OneOf2Line1 :: String
- postCustomersRequestBodyAddress'OneOf2Line2 :: Maybe String
- postCustomersRequestBodyAddress'OneOf2PostalCode :: Maybe String
- postCustomersRequestBodyAddress'OneOf2State :: Maybe String
- data PostCustomersRequestBodyAddress'Variants
- data PostCustomersRequestBodyInvoiceSettings' = PostCustomersRequestBodyInvoiceSettings' {}
- data PostCustomersRequestBodyInvoiceSettings'CustomFields'OneOf1
- data PostCustomersRequestBodyInvoiceSettings'CustomFields'OneOf2 = PostCustomersRequestBodyInvoiceSettings'CustomFields'OneOf2 {}
- data PostCustomersRequestBodyInvoiceSettings'CustomFields'Variants
- = PostCustomersRequestBodyInvoiceSettings'CustomFields'PostCustomersRequestBodyInvoiceSettings'CustomFields'OneOf1 PostCustomersRequestBodyInvoiceSettings'CustomFields'OneOf1
- | PostCustomersRequestBodyInvoiceSettings'CustomFields'ListPostCustomersRequestBodyInvoiceSettings'CustomFields'OneOf2 ([] PostCustomersRequestBodyInvoiceSettings'CustomFields'OneOf2)
- data PostCustomersRequestBodyMetadata' = PostCustomersRequestBodyMetadata' {
- data PostCustomersRequestBodyShipping'OneOf1
- data PostCustomersRequestBodyShipping'OneOf2 = PostCustomersRequestBodyShipping'OneOf2 {}
- data PostCustomersRequestBodyShipping'OneOf2Address' = PostCustomersRequestBodyShipping'OneOf2Address' {
- postCustomersRequestBodyShipping'OneOf2Address'City :: Maybe String
- postCustomersRequestBodyShipping'OneOf2Address'Country :: Maybe String
- postCustomersRequestBodyShipping'OneOf2Address'Line1 :: String
- postCustomersRequestBodyShipping'OneOf2Address'Line2 :: Maybe String
- postCustomersRequestBodyShipping'OneOf2Address'PostalCode :: Maybe String
- postCustomersRequestBodyShipping'OneOf2Address'State :: Maybe String
- data PostCustomersRequestBodyShipping'Variants
- data PostCustomersRequestBodyTaxExempt'
- = PostCustomersRequestBodyTaxExempt'EnumOther Value
- | PostCustomersRequestBodyTaxExempt'EnumTyped String
- | PostCustomersRequestBodyTaxExempt'EnumString_
- | PostCustomersRequestBodyTaxExempt'EnumStringExempt
- | PostCustomersRequestBodyTaxExempt'EnumStringNone
- | PostCustomersRequestBodyTaxExempt'EnumStringReverse
- data PostCustomersRequestBodyTaxIdData' = PostCustomersRequestBodyTaxIdData' {}
- data PostCustomersRequestBodyTaxIdData'Type'
- = PostCustomersRequestBodyTaxIdData'Type'EnumOther Value
- | PostCustomersRequestBodyTaxIdData'Type'EnumTyped String
- | PostCustomersRequestBodyTaxIdData'Type'EnumStringAuAbn
- | PostCustomersRequestBodyTaxIdData'Type'EnumStringCaBn
- | PostCustomersRequestBodyTaxIdData'Type'EnumStringCaQst
- | PostCustomersRequestBodyTaxIdData'Type'EnumStringChVat
- | PostCustomersRequestBodyTaxIdData'Type'EnumStringEsCif
- | PostCustomersRequestBodyTaxIdData'Type'EnumStringEuVat
- | PostCustomersRequestBodyTaxIdData'Type'EnumStringHkBr
- | PostCustomersRequestBodyTaxIdData'Type'EnumStringInGst
- | PostCustomersRequestBodyTaxIdData'Type'EnumStringJpCn
- | PostCustomersRequestBodyTaxIdData'Type'EnumStringKrBrn
- | PostCustomersRequestBodyTaxIdData'Type'EnumStringLiUid
- | PostCustomersRequestBodyTaxIdData'Type'EnumStringMxRfc
- | PostCustomersRequestBodyTaxIdData'Type'EnumStringMyItn
- | PostCustomersRequestBodyTaxIdData'Type'EnumStringMySst
- | PostCustomersRequestBodyTaxIdData'Type'EnumStringNoVat
- | PostCustomersRequestBodyTaxIdData'Type'EnumStringNzGst
- | PostCustomersRequestBodyTaxIdData'Type'EnumStringRuInn
- | PostCustomersRequestBodyTaxIdData'Type'EnumStringSgUen
- | PostCustomersRequestBodyTaxIdData'Type'EnumStringThVat
- | PostCustomersRequestBodyTaxIdData'Type'EnumStringTwVat
- | PostCustomersRequestBodyTaxIdData'Type'EnumStringUsEin
- | PostCustomersRequestBodyTaxIdData'Type'EnumStringZaVat
- data PostCustomersResponse
Documentation
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> 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 -> PostCustomersRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/customers
The same as postCustomers
but returns the raw ByteString
postCustomersM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostCustomersRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostCustomersResponse)) Source #
POST /v1/customers
Monadic version of postCustomers
(use with runWithConfiguration
)
postCustomersRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostCustomersRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/customers
Monadic version of postCustomersRaw
(use with runWithConfiguration
)
data PostCustomersRequestBody Source #
Defines the data type for the schema postCustomersRequestBody
PostCustomersRequestBody | |
|
Instances
data PostCustomersRequestBodyAddress'OneOf1 Source #
Defines the enum schema postCustomersRequestBodyAddress'OneOf1
PostCustomersRequestBodyAddress'OneOf1EnumOther Value | |
PostCustomersRequestBodyAddress'OneOf1EnumTyped String | |
PostCustomersRequestBodyAddress'OneOf1EnumString_ |
data PostCustomersRequestBodyAddress'OneOf2 Source #
Defines the data type for the schema postCustomersRequestBodyAddress'OneOf2
PostCustomersRequestBodyAddress'OneOf2 | |
|
data PostCustomersRequestBodyAddress'Variants Source #
Define the one-of schema postCustomersRequestBodyAddress'
The customer's address.
Instances
data PostCustomersRequestBodyInvoiceSettings' Source #
Defines the data type for the schema postCustomersRequestBodyInvoice_settings'
Default invoice settings for this customer.
PostCustomersRequestBodyInvoiceSettings' | |
|
data PostCustomersRequestBodyInvoiceSettings'CustomFields'OneOf1 Source #
Defines the enum schema postCustomersRequestBodyInvoice_settings'Custom_fields'OneOf1
Instances
data PostCustomersRequestBodyInvoiceSettings'CustomFields'OneOf2 Source #
Defines the data type for the schema postCustomersRequestBodyInvoice_settings'Custom_fields'OneOf2
PostCustomersRequestBodyInvoiceSettings'CustomFields'OneOf2 | |
|
Instances
data PostCustomersRequestBodyInvoiceSettings'CustomFields'Variants Source #
Define the one-of schema postCustomersRequestBodyInvoice_settings'Custom_fields'
Instances
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
PostCustomersRequestBodyShipping'OneOf1EnumOther Value | |
PostCustomersRequestBodyShipping'OneOf1EnumTyped String | |
PostCustomersRequestBodyShipping'OneOf1EnumString_ |
data PostCustomersRequestBodyShipping'OneOf2 Source #
Defines the data type for the schema postCustomersRequestBodyShipping'OneOf2
PostCustomersRequestBodyShipping'OneOf2 | |
|
data PostCustomersRequestBodyShipping'OneOf2Address' Source #
Defines the data type for the schema postCustomersRequestBodyShipping'OneOf2Address'
PostCustomersRequestBodyShipping'OneOf2Address' | |
|
Instances
data PostCustomersRequestBodyShipping'Variants Source #
Define the one-of schema postCustomersRequestBodyShipping'
The customer's shipping information. Appears on invoices emailed to this customer.
Instances
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'
PostCustomersRequestBodyTaxIdData' | |
|
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.
PostCustomersResponseError String | Means either no matching case available or a parse error |
PostCustomersResponse200 Customer | Successful response. |
PostCustomersResponseDefault Error | Error response. |
Instances
Eq PostCustomersResponse Source # | |
Defined in StripeAPI.Operations.PostCustomers (==) :: PostCustomersResponse -> PostCustomersResponse -> Bool # (/=) :: PostCustomersResponse -> PostCustomersResponse -> Bool # | |
Show PostCustomersResponse Source # | |
Defined in StripeAPI.Operations.PostCustomers showsPrec :: Int -> PostCustomersResponse -> ShowS # show :: PostCustomersResponse -> String # showList :: [PostCustomersResponse] -> ShowS # |