Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postCustomers
Synopsis
- postCustomers :: forall m. MonadHTTP m => Maybe PostCustomersRequestBody -> ClientT m (Response PostCustomersResponse)
- data PostCustomersRequestBody = PostCustomersRequestBody {
- postCustomersRequestBodyAddress :: Maybe PostCustomersRequestBodyAddress'Variants
- postCustomersRequestBodyBalance :: Maybe Int
- postCustomersRequestBodyCoupon :: Maybe Text
- postCustomersRequestBodyDescription :: Maybe Text
- postCustomersRequestBodyEmail :: Maybe Text
- postCustomersRequestBodyExpand :: Maybe [Text]
- postCustomersRequestBodyInvoicePrefix :: Maybe Text
- postCustomersRequestBodyInvoiceSettings :: Maybe PostCustomersRequestBodyInvoiceSettings'
- postCustomersRequestBodyMetadata :: Maybe PostCustomersRequestBodyMetadata'Variants
- postCustomersRequestBodyName :: Maybe Text
- postCustomersRequestBodyNextInvoiceSequence :: Maybe Int
- postCustomersRequestBodyPaymentMethod :: Maybe Text
- postCustomersRequestBodyPhone :: Maybe Text
- postCustomersRequestBodyPreferredLocales :: Maybe [Text]
- postCustomersRequestBodyPromotionCode :: Maybe Text
- postCustomersRequestBodyShipping :: Maybe PostCustomersRequestBodyShipping'Variants
- postCustomersRequestBodySource :: Maybe Text
- postCustomersRequestBodyTax :: Maybe PostCustomersRequestBodyTax'
- postCustomersRequestBodyTaxExempt :: Maybe PostCustomersRequestBodyTaxExempt'
- postCustomersRequestBodyTaxIdData :: Maybe [PostCustomersRequestBodyTaxIdData']
- mkPostCustomersRequestBody :: PostCustomersRequestBody
- data PostCustomersRequestBodyAddress'OneOf1 = PostCustomersRequestBodyAddress'OneOf1 {
- postCustomersRequestBodyAddress'OneOf1City :: Maybe Text
- postCustomersRequestBodyAddress'OneOf1Country :: Maybe Text
- postCustomersRequestBodyAddress'OneOf1Line1 :: Maybe Text
- postCustomersRequestBodyAddress'OneOf1Line2 :: Maybe Text
- postCustomersRequestBodyAddress'OneOf1PostalCode :: Maybe Text
- postCustomersRequestBodyAddress'OneOf1State :: Maybe Text
- mkPostCustomersRequestBodyAddress'OneOf1 :: PostCustomersRequestBodyAddress'OneOf1
- data PostCustomersRequestBodyAddress'Variants
- data PostCustomersRequestBodyInvoiceSettings' = PostCustomersRequestBodyInvoiceSettings' {}
- mkPostCustomersRequestBodyInvoiceSettings' :: PostCustomersRequestBodyInvoiceSettings'
- data PostCustomersRequestBodyInvoiceSettings'CustomFields'OneOf1 = PostCustomersRequestBodyInvoiceSettings'CustomFields'OneOf1 {}
- mkPostCustomersRequestBodyInvoiceSettings'CustomFields'OneOf1 :: Text -> Text -> PostCustomersRequestBodyInvoiceSettings'CustomFields'OneOf1
- data PostCustomersRequestBodyInvoiceSettings'CustomFields'Variants
- data PostCustomersRequestBodyMetadata'Variants
- data PostCustomersRequestBodyShipping'OneOf1 = PostCustomersRequestBodyShipping'OneOf1 {}
- mkPostCustomersRequestBodyShipping'OneOf1 :: PostCustomersRequestBodyShipping'OneOf1Address' -> Text -> PostCustomersRequestBodyShipping'OneOf1
- data PostCustomersRequestBodyShipping'OneOf1Address' = PostCustomersRequestBodyShipping'OneOf1Address' {
- postCustomersRequestBodyShipping'OneOf1Address'City :: Maybe Text
- postCustomersRequestBodyShipping'OneOf1Address'Country :: Maybe Text
- postCustomersRequestBodyShipping'OneOf1Address'Line1 :: Text
- postCustomersRequestBodyShipping'OneOf1Address'Line2 :: Maybe Text
- postCustomersRequestBodyShipping'OneOf1Address'PostalCode :: Maybe Text
- postCustomersRequestBodyShipping'OneOf1Address'State :: Maybe Text
- mkPostCustomersRequestBodyShipping'OneOf1Address' :: Text -> PostCustomersRequestBodyShipping'OneOf1Address'
- data PostCustomersRequestBodyShipping'Variants
- data PostCustomersRequestBodyTax' = PostCustomersRequestBodyTax' {}
- mkPostCustomersRequestBodyTax' :: PostCustomersRequestBodyTax'
- data PostCustomersRequestBodyTax'IpAddress'Variants
- data PostCustomersRequestBodyTaxExempt'
- data PostCustomersRequestBodyTaxIdData' = PostCustomersRequestBodyTaxIdData' {}
- mkPostCustomersRequestBodyTaxIdData' :: PostCustomersRequestBodyTaxIdData'Type' -> Text -> PostCustomersRequestBodyTaxIdData'
- data PostCustomersRequestBodyTaxIdData'Type'
- = PostCustomersRequestBodyTaxIdData'Type'Other Value
- | PostCustomersRequestBodyTaxIdData'Type'Typed Text
- | PostCustomersRequestBodyTaxIdData'Type'EnumAeTrn
- | PostCustomersRequestBodyTaxIdData'Type'EnumAuAbn
- | PostCustomersRequestBodyTaxIdData'Type'EnumBrCnpj
- | PostCustomersRequestBodyTaxIdData'Type'EnumBrCpf
- | PostCustomersRequestBodyTaxIdData'Type'EnumCaBn
- | PostCustomersRequestBodyTaxIdData'Type'EnumCaGstHst
- | PostCustomersRequestBodyTaxIdData'Type'EnumCaPstBc
- | PostCustomersRequestBodyTaxIdData'Type'EnumCaPstMb
- | PostCustomersRequestBodyTaxIdData'Type'EnumCaPstSk
- | PostCustomersRequestBodyTaxIdData'Type'EnumCaQst
- | PostCustomersRequestBodyTaxIdData'Type'EnumChVat
- | PostCustomersRequestBodyTaxIdData'Type'EnumClTin
- | PostCustomersRequestBodyTaxIdData'Type'EnumEsCif
- | PostCustomersRequestBodyTaxIdData'Type'EnumEuVat
- | PostCustomersRequestBodyTaxIdData'Type'EnumGbVat
- | PostCustomersRequestBodyTaxIdData'Type'EnumHkBr
- | PostCustomersRequestBodyTaxIdData'Type'EnumIdNpwp
- | PostCustomersRequestBodyTaxIdData'Type'EnumIlVat
- | PostCustomersRequestBodyTaxIdData'Type'EnumInGst
- | PostCustomersRequestBodyTaxIdData'Type'EnumJpCn
- | PostCustomersRequestBodyTaxIdData'Type'EnumJpRn
- | PostCustomersRequestBodyTaxIdData'Type'EnumKrBrn
- | PostCustomersRequestBodyTaxIdData'Type'EnumLiUid
- | PostCustomersRequestBodyTaxIdData'Type'EnumMxRfc
- | PostCustomersRequestBodyTaxIdData'Type'EnumMyFrp
- | PostCustomersRequestBodyTaxIdData'Type'EnumMyItn
- | PostCustomersRequestBodyTaxIdData'Type'EnumMySst
- | PostCustomersRequestBodyTaxIdData'Type'EnumNoVat
- | PostCustomersRequestBodyTaxIdData'Type'EnumNzGst
- | PostCustomersRequestBodyTaxIdData'Type'EnumRuInn
- | PostCustomersRequestBodyTaxIdData'Type'EnumRuKpp
- | PostCustomersRequestBodyTaxIdData'Type'EnumSaVat
- | PostCustomersRequestBodyTaxIdData'Type'EnumSgGst
- | PostCustomersRequestBodyTaxIdData'Type'EnumSgUen
- | PostCustomersRequestBodyTaxIdData'Type'EnumThVat
- | PostCustomersRequestBodyTaxIdData'Type'EnumTwVat
- | PostCustomersRequestBodyTaxIdData'Type'EnumUsEin
- | PostCustomersRequestBodyTaxIdData'Type'EnumZaVat
- data PostCustomersResponse
Documentation
:: forall m. MonadHTTP m | |
=> Maybe PostCustomersRequestBody | The request body to send |
-> ClientT m (Response PostCustomersResponse) | Monadic computation which returns the result of the operation |
POST /v1/customers
<p>Creates a new customer object.</p>
data PostCustomersRequestBody Source #
Defines the object schema located at paths./v1/customers.POST.requestBody.content.application/x-www-form-urlencoded.schema
in the specification.
PostCustomersRequestBody | |
|
Instances
mkPostCustomersRequestBody :: PostCustomersRequestBody Source #
Create a new PostCustomersRequestBody
with all required fields.
data PostCustomersRequestBodyAddress'OneOf1 Source #
Defines the object schema located at paths./v1/customers.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.address.anyOf
in the specification.
PostCustomersRequestBodyAddress'OneOf1 | |
|
mkPostCustomersRequestBodyAddress'OneOf1 :: PostCustomersRequestBodyAddress'OneOf1 Source #
Create a new PostCustomersRequestBodyAddress'OneOf1
with all required fields.
data PostCustomersRequestBodyAddress'Variants Source #
Defines the oneOf schema located at paths./v1/customers.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.address.anyOf
in the specification.
The customer's address.
PostCustomersRequestBodyAddress'EmptyString | Represents the JSON value |
PostCustomersRequestBodyAddress'PostCustomersRequestBodyAddress'OneOf1 PostCustomersRequestBodyAddress'OneOf1 |
data PostCustomersRequestBodyInvoiceSettings' Source #
Defines the object schema located at paths./v1/customers.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.invoice_settings
in the specification.
Default invoice settings for this customer.
PostCustomersRequestBodyInvoiceSettings' | |
|
mkPostCustomersRequestBodyInvoiceSettings' :: PostCustomersRequestBodyInvoiceSettings' Source #
Create a new PostCustomersRequestBodyInvoiceSettings'
with all required fields.
data PostCustomersRequestBodyInvoiceSettings'CustomFields'OneOf1 Source #
Defines the object schema located at paths./v1/customers.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.invoice_settings.properties.custom_fields.anyOf.items
in the specification.
PostCustomersRequestBodyInvoiceSettings'CustomFields'OneOf1 | |
|
Instances
mkPostCustomersRequestBodyInvoiceSettings'CustomFields'OneOf1 Source #
Create a new PostCustomersRequestBodyInvoiceSettings'CustomFields'OneOf1
with all required fields.
data PostCustomersRequestBodyInvoiceSettings'CustomFields'Variants Source #
Defines the oneOf schema located at paths./v1/customers.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.invoice_settings.properties.custom_fields.anyOf
in the specification.
Instances
data PostCustomersRequestBodyMetadata'Variants Source #
Defines the oneOf schema located at paths./v1/customers.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.metadata.anyOf
in the specification.
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`.
PostCustomersRequestBodyMetadata'EmptyString | Represents the JSON value |
PostCustomersRequestBodyMetadata'Object Object |
data PostCustomersRequestBodyShipping'OneOf1 Source #
Defines the object schema located at paths./v1/customers.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.shipping.anyOf
in the specification.
PostCustomersRequestBodyShipping'OneOf1 | |
|
mkPostCustomersRequestBodyShipping'OneOf1 Source #
Create a new PostCustomersRequestBodyShipping'OneOf1
with all required fields.
data PostCustomersRequestBodyShipping'OneOf1Address' Source #
Defines the object schema located at paths./v1/customers.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.shipping.anyOf.properties.address
in the specification.
PostCustomersRequestBodyShipping'OneOf1Address' | |
|
Instances
mkPostCustomersRequestBodyShipping'OneOf1Address' Source #
Create a new PostCustomersRequestBodyShipping'OneOf1Address'
with all required fields.
data PostCustomersRequestBodyShipping'Variants Source #
Defines the oneOf schema located at paths./v1/customers.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.shipping.anyOf
in the specification.
The customer's shipping information. Appears on invoices emailed to this customer.
PostCustomersRequestBodyShipping'EmptyString | Represents the JSON value |
PostCustomersRequestBodyShipping'PostCustomersRequestBodyShipping'OneOf1 PostCustomersRequestBodyShipping'OneOf1 |
data PostCustomersRequestBodyTax' Source #
Defines the object schema located at paths./v1/customers.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.tax
in the specification.
Tax details about the customer.
Instances
mkPostCustomersRequestBodyTax' :: PostCustomersRequestBodyTax' Source #
Create a new PostCustomersRequestBodyTax'
with all required fields.
data PostCustomersRequestBodyTax'IpAddress'Variants Source #
Defines the oneOf schema located at paths./v1/customers.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.tax.properties.ip_address.anyOf
in the specification.
PostCustomersRequestBodyTax'IpAddress'EmptyString | Represents the JSON value |
PostCustomersRequestBodyTax'IpAddress'Text Text |
Instances
data PostCustomersRequestBodyTaxExempt' Source #
Defines the enum schema located at paths./v1/customers.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.tax_exempt
in the specification.
The customer's tax exemption. One of `none`, `exempt`, or `reverse`.
PostCustomersRequestBodyTaxExempt'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
PostCustomersRequestBodyTaxExempt'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
PostCustomersRequestBodyTaxExempt'EnumEmptyString | Represents the JSON value |
PostCustomersRequestBodyTaxExempt'EnumExempt | Represents the JSON value |
PostCustomersRequestBodyTaxExempt'EnumNone | Represents the JSON value |
PostCustomersRequestBodyTaxExempt'EnumReverse | Represents the JSON value |
data PostCustomersRequestBodyTaxIdData' Source #
Defines the object schema located at paths./v1/customers.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.tax_id_data.items
in the specification.
PostCustomersRequestBodyTaxIdData' | |
|
mkPostCustomersRequestBodyTaxIdData' Source #
Create a new PostCustomersRequestBodyTaxIdData'
with all required fields.
data PostCustomersRequestBodyTaxIdData'Type' Source #
Defines the enum schema located at paths./v1/customers.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.tax_id_data.items.properties.type
in the specification.
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 # |