stripeapi-1.0.0.0: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostCustomers

Description

Contains the different functions to run the operation postCustomers

Synopsis

Documentation

postCustomers Source #

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

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

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.

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.

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.

Instances

Instances details
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'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

Instances details
Eq PostCustomersRequestBodyInvoiceSettings'CustomFields'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostCustomers

Show 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

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`.

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.

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

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.

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.

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.

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 "exempt"

PostCustomersRequestBodyTaxExempt'EnumNone

Represents the JSON value "none"

PostCustomersRequestBodyTaxExempt'EnumReverse

Represents the JSON value "reverse"

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.

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

PostCustomersRequestBodyTaxIdData'Type'Other Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

PostCustomersRequestBodyTaxIdData'Type'Typed Text

This constructor can be used to send values to the server which are not present in the specification yet.

PostCustomersRequestBodyTaxIdData'Type'EnumAeTrn

Represents the JSON value "ae_trn"

PostCustomersRequestBodyTaxIdData'Type'EnumAuAbn

Represents the JSON value "au_abn"

PostCustomersRequestBodyTaxIdData'Type'EnumBrCnpj

Represents the JSON value "br_cnpj"

PostCustomersRequestBodyTaxIdData'Type'EnumBrCpf

Represents the JSON value "br_cpf"

PostCustomersRequestBodyTaxIdData'Type'EnumCaBn

Represents the JSON value "ca_bn"

PostCustomersRequestBodyTaxIdData'Type'EnumCaGstHst

Represents the JSON value "ca_gst_hst"

PostCustomersRequestBodyTaxIdData'Type'EnumCaPstBc

Represents the JSON value "ca_pst_bc"

PostCustomersRequestBodyTaxIdData'Type'EnumCaPstMb

Represents the JSON value "ca_pst_mb"

PostCustomersRequestBodyTaxIdData'Type'EnumCaPstSk

Represents the JSON value "ca_pst_sk"

PostCustomersRequestBodyTaxIdData'Type'EnumCaQst

Represents the JSON value "ca_qst"

PostCustomersRequestBodyTaxIdData'Type'EnumChVat

Represents the JSON value "ch_vat"

PostCustomersRequestBodyTaxIdData'Type'EnumClTin

Represents the JSON value "cl_tin"

PostCustomersRequestBodyTaxIdData'Type'EnumEsCif

Represents the JSON value "es_cif"

PostCustomersRequestBodyTaxIdData'Type'EnumEuVat

Represents the JSON value "eu_vat"

PostCustomersRequestBodyTaxIdData'Type'EnumGbVat

Represents the JSON value "gb_vat"

PostCustomersRequestBodyTaxIdData'Type'EnumHkBr

Represents the JSON value "hk_br"

PostCustomersRequestBodyTaxIdData'Type'EnumIdNpwp

Represents the JSON value "id_npwp"

PostCustomersRequestBodyTaxIdData'Type'EnumIlVat

Represents the JSON value "il_vat"

PostCustomersRequestBodyTaxIdData'Type'EnumInGst

Represents the JSON value "in_gst"

PostCustomersRequestBodyTaxIdData'Type'EnumJpCn

Represents the JSON value "jp_cn"

PostCustomersRequestBodyTaxIdData'Type'EnumJpRn

Represents the JSON value "jp_rn"

PostCustomersRequestBodyTaxIdData'Type'EnumKrBrn

Represents the JSON value "kr_brn"

PostCustomersRequestBodyTaxIdData'Type'EnumLiUid

Represents the JSON value "li_uid"

PostCustomersRequestBodyTaxIdData'Type'EnumMxRfc

Represents the JSON value "mx_rfc"

PostCustomersRequestBodyTaxIdData'Type'EnumMyFrp

Represents the JSON value "my_frp"

PostCustomersRequestBodyTaxIdData'Type'EnumMyItn

Represents the JSON value "my_itn"

PostCustomersRequestBodyTaxIdData'Type'EnumMySst

Represents the JSON value "my_sst"

PostCustomersRequestBodyTaxIdData'Type'EnumNoVat

Represents the JSON value "no_vat"

PostCustomersRequestBodyTaxIdData'Type'EnumNzGst

Represents the JSON value "nz_gst"

PostCustomersRequestBodyTaxIdData'Type'EnumRuInn

Represents the JSON value "ru_inn"

PostCustomersRequestBodyTaxIdData'Type'EnumRuKpp

Represents the JSON value "ru_kpp"

PostCustomersRequestBodyTaxIdData'Type'EnumSaVat

Represents the JSON value "sa_vat"

PostCustomersRequestBodyTaxIdData'Type'EnumSgGst

Represents the JSON value "sg_gst"

PostCustomersRequestBodyTaxIdData'Type'EnumSgUen

Represents the JSON value "sg_uen"

PostCustomersRequestBodyTaxIdData'Type'EnumThVat

Represents the JSON value "th_vat"

PostCustomersRequestBodyTaxIdData'Type'EnumTwVat

Represents the JSON value "tw_vat"

PostCustomersRequestBodyTaxIdData'Type'EnumUsEin

Represents the JSON value "us_ein"

PostCustomersRequestBodyTaxIdData'Type'EnumZaVat

Represents the JSON value "za_vat"

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.