Safe Haskell | None |
---|---|
Language | Haskell2010 |
StripeAPI.Operations.PostCustomers
Description
Contains the different functions to run the operation postCustomers
Synopsis
- postCustomers :: forall m. MonadHTTP m => Maybe PostCustomersRequestBody -> StripeT 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
Arguments
:: forall m. MonadHTTP m | |
=> Maybe PostCustomersRequestBody | The request body to send |
-> StripeT 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.
Constructors
PostCustomersRequestBody | |
Fields
|
Instances
Eq PostCustomersRequestBody Source # | |
Defined in StripeAPI.Operations.PostCustomers Methods (==) :: PostCustomersRequestBody -> PostCustomersRequestBody -> Bool # (/=) :: PostCustomersRequestBody -> PostCustomersRequestBody -> Bool # | |
Show PostCustomersRequestBody Source # | |
Defined in StripeAPI.Operations.PostCustomers Methods showsPrec :: Int -> PostCustomersRequestBody -> ShowS # show :: PostCustomersRequestBody -> String # showList :: [PostCustomersRequestBody] -> ShowS # | |
ToJSON PostCustomersRequestBody Source # | |
Defined in StripeAPI.Operations.PostCustomers Methods toJSON :: PostCustomersRequestBody -> Value # toEncoding :: PostCustomersRequestBody -> Encoding # toJSONList :: [PostCustomersRequestBody] -> Value # | |
FromJSON PostCustomersRequestBody Source # | |
Defined in StripeAPI.Operations.PostCustomers Methods parseJSON :: Value -> Parser PostCustomersRequestBody # parseJSONList :: Value -> Parser [PostCustomersRequestBody] # |
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.
Constructors
PostCustomersRequestBodyAddress'OneOf1 | |
Fields
|
Instances
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.
Constructors
PostCustomersRequestBodyAddress'EmptyString | Represents the JSON value |
PostCustomersRequestBodyAddress'PostCustomersRequestBodyAddress'OneOf1 PostCustomersRequestBodyAddress'OneOf1 |
Instances
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.
Constructors
PostCustomersRequestBodyInvoiceSettings' | |
Fields
|
Instances
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.
Constructors
PostCustomersRequestBodyInvoiceSettings'CustomFields'OneOf1 | |
Fields
|
Instances
mkPostCustomersRequestBodyInvoiceSettings'CustomFields'OneOf1 Source #
Arguments
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.
Constructors
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`.
Constructors
PostCustomersRequestBodyMetadata'EmptyString | Represents the JSON value |
PostCustomersRequestBodyMetadata'Object Object |
Instances
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.
Constructors
PostCustomersRequestBodyShipping'OneOf1 | |
Fields
|
Instances
mkPostCustomersRequestBodyShipping'OneOf1 Source #
Arguments
:: PostCustomersRequestBodyShipping'OneOf1Address' | |
-> Text | |
-> PostCustomersRequestBodyShipping'OneOf1 |
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.
Constructors
PostCustomersRequestBodyShipping'OneOf1Address' | |
Fields
|
Instances
mkPostCustomersRequestBodyShipping'OneOf1Address' Source #
Arguments
:: Text | |
-> PostCustomersRequestBodyShipping'OneOf1Address' |
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.
Constructors
PostCustomersRequestBodyShipping'EmptyString | Represents the JSON value |
PostCustomersRequestBodyShipping'PostCustomersRequestBodyShipping'OneOf1 PostCustomersRequestBodyShipping'OneOf1 |
Instances
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.
Constructors
PostCustomersRequestBodyTax' | |
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.
Constructors
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`.
Constructors
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 |
Instances
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.
Constructors
PostCustomersRequestBodyTaxIdData' | |
Fields
|
Instances
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.
Constructors
Instances
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. |
Instances
Eq PostCustomersResponse Source # | |
Defined in StripeAPI.Operations.PostCustomers Methods (==) :: PostCustomersResponse -> PostCustomersResponse -> Bool # (/=) :: PostCustomersResponse -> PostCustomersResponse -> Bool # | |
Show PostCustomersResponse Source # | |
Defined in StripeAPI.Operations.PostCustomers Methods showsPrec :: Int -> PostCustomersResponse -> ShowS # show :: PostCustomersResponse -> String # showList :: [PostCustomersResponse] -> ShowS # |