stripeapi-2.0.0.1: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostCustomersCustomerTaxIds

Description

Contains the different functions to run the operation postCustomersCustomerTaxIds

Synopsis

Documentation

postCustomersCustomerTaxIds Source #

Arguments

:: forall m. MonadHTTP m 
=> Text

customer | Constraints: Maximum length of 5000

-> PostCustomersCustomerTaxIdsRequestBody

The request body to send

-> ClientT m (Response PostCustomersCustomerTaxIdsResponse)

Monadic computation which returns the result of the operation

POST /v1/customers/{customer}/tax_ids

<p>Creates a new <code>TaxID</code> object for a customer.</p>

data PostCustomersCustomerTaxIdsRequestBody Source #

Defines the object schema located at paths./v1/customers/{customer}/tax_ids.POST.requestBody.content.application/x-www-form-urlencoded.schema in the specification.

Constructors

PostCustomersCustomerTaxIdsRequestBody 

Fields

data PostCustomersCustomerTaxIdsRequestBodyType' Source #

Defines the enum schema located at paths./v1/customers/{customer}/tax_ids.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.type in the specification.

Type of the tax ID, one of `ae_trn`, `au_abn`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `es_cif`, `eu_vat`, `gb_vat`, `hk_br`, `id_npwp`, `il_vat`, `in_gst`, `jp_cn`, `jp_rn`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `th_vat`, `tw_vat`, `us_ein`, or `za_vat`

Constructors

PostCustomersCustomerTaxIdsRequestBodyType'Other Value

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

PostCustomersCustomerTaxIdsRequestBodyType'Typed Text

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

PostCustomersCustomerTaxIdsRequestBodyType'EnumAeTrn

Represents the JSON value "ae_trn"

PostCustomersCustomerTaxIdsRequestBodyType'EnumAuAbn

Represents the JSON value "au_abn"

PostCustomersCustomerTaxIdsRequestBodyType'EnumBrCnpj

Represents the JSON value "br_cnpj"

PostCustomersCustomerTaxIdsRequestBodyType'EnumBrCpf

Represents the JSON value "br_cpf"

PostCustomersCustomerTaxIdsRequestBodyType'EnumCaBn

Represents the JSON value "ca_bn"

PostCustomersCustomerTaxIdsRequestBodyType'EnumCaGstHst

Represents the JSON value "ca_gst_hst"

PostCustomersCustomerTaxIdsRequestBodyType'EnumCaPstBc

Represents the JSON value "ca_pst_bc"

PostCustomersCustomerTaxIdsRequestBodyType'EnumCaPstMb

Represents the JSON value "ca_pst_mb"

PostCustomersCustomerTaxIdsRequestBodyType'EnumCaPstSk

Represents the JSON value "ca_pst_sk"

PostCustomersCustomerTaxIdsRequestBodyType'EnumCaQst

Represents the JSON value "ca_qst"

PostCustomersCustomerTaxIdsRequestBodyType'EnumChVat

Represents the JSON value "ch_vat"

PostCustomersCustomerTaxIdsRequestBodyType'EnumClTin

Represents the JSON value "cl_tin"

PostCustomersCustomerTaxIdsRequestBodyType'EnumEsCif

Represents the JSON value "es_cif"

PostCustomersCustomerTaxIdsRequestBodyType'EnumEuVat

Represents the JSON value "eu_vat"

PostCustomersCustomerTaxIdsRequestBodyType'EnumGbVat

Represents the JSON value "gb_vat"

PostCustomersCustomerTaxIdsRequestBodyType'EnumHkBr

Represents the JSON value "hk_br"

PostCustomersCustomerTaxIdsRequestBodyType'EnumIdNpwp

Represents the JSON value "id_npwp"

PostCustomersCustomerTaxIdsRequestBodyType'EnumIlVat

Represents the JSON value "il_vat"

PostCustomersCustomerTaxIdsRequestBodyType'EnumInGst

Represents the JSON value "in_gst"

PostCustomersCustomerTaxIdsRequestBodyType'EnumJpCn

Represents the JSON value "jp_cn"

PostCustomersCustomerTaxIdsRequestBodyType'EnumJpRn

Represents the JSON value "jp_rn"

PostCustomersCustomerTaxIdsRequestBodyType'EnumKrBrn

Represents the JSON value "kr_brn"

PostCustomersCustomerTaxIdsRequestBodyType'EnumLiUid

Represents the JSON value "li_uid"

PostCustomersCustomerTaxIdsRequestBodyType'EnumMxRfc

Represents the JSON value "mx_rfc"

PostCustomersCustomerTaxIdsRequestBodyType'EnumMyFrp

Represents the JSON value "my_frp"

PostCustomersCustomerTaxIdsRequestBodyType'EnumMyItn

Represents the JSON value "my_itn"

PostCustomersCustomerTaxIdsRequestBodyType'EnumMySst

Represents the JSON value "my_sst"

PostCustomersCustomerTaxIdsRequestBodyType'EnumNoVat

Represents the JSON value "no_vat"

PostCustomersCustomerTaxIdsRequestBodyType'EnumNzGst

Represents the JSON value "nz_gst"

PostCustomersCustomerTaxIdsRequestBodyType'EnumRuInn

Represents the JSON value "ru_inn"

PostCustomersCustomerTaxIdsRequestBodyType'EnumRuKpp

Represents the JSON value "ru_kpp"

PostCustomersCustomerTaxIdsRequestBodyType'EnumSaVat

Represents the JSON value "sa_vat"

PostCustomersCustomerTaxIdsRequestBodyType'EnumSgGst

Represents the JSON value "sg_gst"

PostCustomersCustomerTaxIdsRequestBodyType'EnumSgUen

Represents the JSON value "sg_uen"

PostCustomersCustomerTaxIdsRequestBodyType'EnumThVat

Represents the JSON value "th_vat"

PostCustomersCustomerTaxIdsRequestBodyType'EnumTwVat

Represents the JSON value "tw_vat"

PostCustomersCustomerTaxIdsRequestBodyType'EnumUsEin

Represents the JSON value "us_ein"

PostCustomersCustomerTaxIdsRequestBodyType'EnumZaVat

Represents the JSON value "za_vat"

data PostCustomersCustomerTaxIdsResponse Source #

Represents a response of the operation postCustomersCustomerTaxIds.

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

Constructors

PostCustomersCustomerTaxIdsResponseError String

Means either no matching case available or a parse error

PostCustomersCustomerTaxIdsResponse200 TaxId

Successful response.

PostCustomersCustomerTaxIdsResponseDefault Error

Error response.