stripeapi-2.0.0.1: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostPaymentMethods

Description

Contains the different functions to run the operation postPaymentMethods

Synopsis

Documentation

postPaymentMethods Source #

Arguments

:: forall m. MonadHTTP m 
=> Maybe PostPaymentMethodsRequestBody

The request body to send

-> ClientT m (Response PostPaymentMethodsResponse)

Monadic computation which returns the result of the operation

POST /v1/payment_methods

<p>Creates a PaymentMethod object. Read the <a href="/docs/stripe-js/reference#stripe-create-payment-method">Stripe.js reference</a> to learn how to create PaymentMethods via Stripe.js.</p>

data PostPaymentMethodsRequestBody Source #

Defines the object schema located at paths./v1/payment_methods.POST.requestBody.content.application/x-www-form-urlencoded.schema in the specification.

Constructors

PostPaymentMethodsRequestBody 

Fields

data PostPaymentMethodsRequestBodyAcssDebit' Source #

Defines the object schema located at paths./v1/payment_methods.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.acss_debit in the specification.

If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.

Constructors

PostPaymentMethodsRequestBodyAcssDebit' 

Fields

data PostPaymentMethodsRequestBodyAuBecsDebit' Source #

Defines the object schema located at paths./v1/payment_methods.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.au_becs_debit in the specification.

If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.

Constructors

PostPaymentMethodsRequestBodyAuBecsDebit' 

Fields

data PostPaymentMethodsRequestBodyBacsDebit' Source #

Defines the object schema located at paths./v1/payment_methods.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.bacs_debit in the specification.

If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.

Constructors

PostPaymentMethodsRequestBodyBacsDebit' 

Fields

data PostPaymentMethodsRequestBodyBillingDetails' Source #

Defines the object schema located at paths./v1/payment_methods.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.billing_details in the specification.

Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.

data PostPaymentMethodsRequestBodyBillingDetails'Address'OneOf1 Source #

Defines the object schema located at paths./v1/payment_methods.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.billing_details.properties.address.anyOf in the specification.

Instances

Instances details
Eq PostPaymentMethodsRequestBodyBillingDetails'Address'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostPaymentMethods

Show PostPaymentMethodsRequestBodyBillingDetails'Address'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostPaymentMethods

ToJSON PostPaymentMethodsRequestBodyBillingDetails'Address'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostPaymentMethods

FromJSON PostPaymentMethodsRequestBodyBillingDetails'Address'OneOf1 Source # 
Instance details

Defined in StripeAPI.Operations.PostPaymentMethods

data PostPaymentMethodsRequestBodyBillingDetails'Address'Variants Source #

Defines the oneOf schema located at paths./v1/payment_methods.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.billing_details.properties.address.anyOf in the specification.

Instances

Instances details
Eq PostPaymentMethodsRequestBodyBillingDetails'Address'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostPaymentMethods

Show PostPaymentMethodsRequestBodyBillingDetails'Address'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostPaymentMethods

ToJSON PostPaymentMethodsRequestBodyBillingDetails'Address'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostPaymentMethods

FromJSON PostPaymentMethodsRequestBodyBillingDetails'Address'Variants Source # 
Instance details

Defined in StripeAPI.Operations.PostPaymentMethods

data PostPaymentMethodsRequestBodyBoleto' Source #

Defines the object schema located at paths./v1/payment_methods.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.boleto in the specification.

If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.

Constructors

PostPaymentMethodsRequestBodyBoleto' 

Fields

data PostPaymentMethodsRequestBodyCard' Source #

Defines the object schema located at paths./v1/payment_methods.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.card.anyOf in the specification.

If this is a \`card\` PaymentMethod, this hash contains the user\'s card details. For backwards compatibility, you can alternatively provide a Stripe token (e.g., for Apple Pay, Amex Express Checkout, or legacy Checkout) into the card hash with format \`card: {token: \"tok_visa\"}\`. When providing a card number, you must meet the requirements for PCI compliance. We strongly recommend using Stripe.js instead of interacting with this API directly.

data PostPaymentMethodsRequestBodyEps' Source #

Defines the object schema located at paths./v1/payment_methods.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.eps in the specification.

If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.

data PostPaymentMethodsRequestBodyEps'Bank' Source #

Defines the enum schema located at paths./v1/payment_methods.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.eps.properties.bank in the specification.

Constructors

PostPaymentMethodsRequestBodyEps'Bank'Other Value

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

PostPaymentMethodsRequestBodyEps'Bank'Typed Text

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

PostPaymentMethodsRequestBodyEps'Bank'EnumArzteUndApothekerBank

Represents the JSON value "arzte_und_apotheker_bank"

PostPaymentMethodsRequestBodyEps'Bank'EnumAustrianAnadiBankAg

Represents the JSON value "austrian_anadi_bank_ag"

PostPaymentMethodsRequestBodyEps'Bank'EnumBankAustria

Represents the JSON value "bank_austria"

PostPaymentMethodsRequestBodyEps'Bank'EnumBankhausCarlSpangler

Represents the JSON value "bankhaus_carl_spangler"

PostPaymentMethodsRequestBodyEps'Bank'EnumBankhausSchelhammerUndSchatteraAg

Represents the JSON value "bankhaus_schelhammer_und_schattera_ag"

PostPaymentMethodsRequestBodyEps'Bank'EnumBawagPskAg

Represents the JSON value "bawag_psk_ag"

PostPaymentMethodsRequestBodyEps'Bank'EnumBksBankAg

Represents the JSON value "bks_bank_ag"

PostPaymentMethodsRequestBodyEps'Bank'EnumBrullKallmusBankAg

Represents the JSON value "brull_kallmus_bank_ag"

PostPaymentMethodsRequestBodyEps'Bank'EnumBtvVierLanderBank

Represents the JSON value "btv_vier_lander_bank"

PostPaymentMethodsRequestBodyEps'Bank'EnumCapitalBankGraweGruppeAg

Represents the JSON value "capital_bank_grawe_gruppe_ag"

PostPaymentMethodsRequestBodyEps'Bank'EnumDolomitenbank

Represents the JSON value "dolomitenbank"

PostPaymentMethodsRequestBodyEps'Bank'EnumEasybankAg

Represents the JSON value "easybank_ag"

PostPaymentMethodsRequestBodyEps'Bank'EnumErsteBankUndSparkassen

Represents the JSON value "erste_bank_und_sparkassen"

PostPaymentMethodsRequestBodyEps'Bank'EnumHypoAlpeadriabankInternationalAg

Represents the JSON value "hypo_alpeadriabank_international_ag"

PostPaymentMethodsRequestBodyEps'Bank'EnumHypoBankBurgenlandAktiengesellschaft

Represents the JSON value "hypo_bank_burgenland_aktiengesellschaft"

PostPaymentMethodsRequestBodyEps'Bank'EnumHypoNoeLbFurNiederosterreichUWien

Represents the JSON value "hypo_noe_lb_fur_niederosterreich_u_wien"

PostPaymentMethodsRequestBodyEps'Bank'EnumHypoOberosterreichSalzburgSteiermark

Represents the JSON value "hypo_oberosterreich_salzburg_steiermark"

PostPaymentMethodsRequestBodyEps'Bank'EnumHypoTirolBankAg

Represents the JSON value "hypo_tirol_bank_ag"

PostPaymentMethodsRequestBodyEps'Bank'EnumHypoVorarlbergBankAg

Represents the JSON value "hypo_vorarlberg_bank_ag"

PostPaymentMethodsRequestBodyEps'Bank'EnumMarchfelderBank

Represents the JSON value "marchfelder_bank"

PostPaymentMethodsRequestBodyEps'Bank'EnumOberbankAg

Represents the JSON value "oberbank_ag"

PostPaymentMethodsRequestBodyEps'Bank'EnumRaiffeisenBankengruppeOsterreich

Represents the JSON value "raiffeisen_bankengruppe_osterreich"

PostPaymentMethodsRequestBodyEps'Bank'EnumSchoellerbankAg

Represents the JSON value "schoellerbank_ag"

PostPaymentMethodsRequestBodyEps'Bank'EnumSpardaBankWien

Represents the JSON value "sparda_bank_wien"

PostPaymentMethodsRequestBodyEps'Bank'EnumVolksbankGruppe

Represents the JSON value "volksbank_gruppe"

PostPaymentMethodsRequestBodyEps'Bank'EnumVolkskreditbankAg

Represents the JSON value "volkskreditbank_ag"

PostPaymentMethodsRequestBodyEps'Bank'EnumVrBankBraunau

Represents the JSON value "vr_bank_braunau"

data PostPaymentMethodsRequestBodyFpx' Source #

Defines the object schema located at paths./v1/payment_methods.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.fpx in the specification.

If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.

data PostPaymentMethodsRequestBodyFpx'Bank' Source #

Defines the enum schema located at paths./v1/payment_methods.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.fpx.properties.bank in the specification.

Constructors

PostPaymentMethodsRequestBodyFpx'Bank'Other Value

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

PostPaymentMethodsRequestBodyFpx'Bank'Typed Text

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

PostPaymentMethodsRequestBodyFpx'Bank'EnumAffinBank

Represents the JSON value "affin_bank"

PostPaymentMethodsRequestBodyFpx'Bank'EnumAllianceBank

Represents the JSON value "alliance_bank"

PostPaymentMethodsRequestBodyFpx'Bank'EnumAmbank

Represents the JSON value "ambank"

PostPaymentMethodsRequestBodyFpx'Bank'EnumBankIslam

Represents the JSON value "bank_islam"

PostPaymentMethodsRequestBodyFpx'Bank'EnumBankMuamalat

Represents the JSON value "bank_muamalat"

PostPaymentMethodsRequestBodyFpx'Bank'EnumBankRakyat

Represents the JSON value "bank_rakyat"

PostPaymentMethodsRequestBodyFpx'Bank'EnumBsn

Represents the JSON value "bsn"

PostPaymentMethodsRequestBodyFpx'Bank'EnumCimb

Represents the JSON value "cimb"

PostPaymentMethodsRequestBodyFpx'Bank'EnumDeutscheBank

Represents the JSON value "deutsche_bank"

PostPaymentMethodsRequestBodyFpx'Bank'EnumHongLeongBank

Represents the JSON value "hong_leong_bank"

PostPaymentMethodsRequestBodyFpx'Bank'EnumHsbc

Represents the JSON value "hsbc"

PostPaymentMethodsRequestBodyFpx'Bank'EnumKfh

Represents the JSON value "kfh"

PostPaymentMethodsRequestBodyFpx'Bank'EnumMaybank2e

Represents the JSON value "maybank2e"

PostPaymentMethodsRequestBodyFpx'Bank'EnumMaybank2u

Represents the JSON value "maybank2u"

PostPaymentMethodsRequestBodyFpx'Bank'EnumOcbc

Represents the JSON value "ocbc"

PostPaymentMethodsRequestBodyFpx'Bank'EnumPbEnterprise

Represents the JSON value "pb_enterprise"

PostPaymentMethodsRequestBodyFpx'Bank'EnumPublicBank

Represents the JSON value "public_bank"

PostPaymentMethodsRequestBodyFpx'Bank'EnumRhb

Represents the JSON value "rhb"

PostPaymentMethodsRequestBodyFpx'Bank'EnumStandardChartered

Represents the JSON value "standard_chartered"

PostPaymentMethodsRequestBodyFpx'Bank'EnumUob

Represents the JSON value "uob"

data PostPaymentMethodsRequestBodyIdeal' Source #

Defines the object schema located at paths./v1/payment_methods.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.ideal in the specification.

If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.

data PostPaymentMethodsRequestBodyIdeal'Bank' Source #

Defines the enum schema located at paths./v1/payment_methods.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.ideal.properties.bank in the specification.

Constructors

PostPaymentMethodsRequestBodyIdeal'Bank'Other Value

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

PostPaymentMethodsRequestBodyIdeal'Bank'Typed Text

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

PostPaymentMethodsRequestBodyIdeal'Bank'EnumAbnAmro

Represents the JSON value "abn_amro"

PostPaymentMethodsRequestBodyIdeal'Bank'EnumAsnBank

Represents the JSON value "asn_bank"

PostPaymentMethodsRequestBodyIdeal'Bank'EnumBunq

Represents the JSON value "bunq"

PostPaymentMethodsRequestBodyIdeal'Bank'EnumHandelsbanken

Represents the JSON value "handelsbanken"

PostPaymentMethodsRequestBodyIdeal'Bank'EnumIng

Represents the JSON value "ing"

PostPaymentMethodsRequestBodyIdeal'Bank'EnumKnab

Represents the JSON value "knab"

PostPaymentMethodsRequestBodyIdeal'Bank'EnumMoneyou

Represents the JSON value "moneyou"

PostPaymentMethodsRequestBodyIdeal'Bank'EnumRabobank

Represents the JSON value "rabobank"

PostPaymentMethodsRequestBodyIdeal'Bank'EnumRegiobank

Represents the JSON value "regiobank"

PostPaymentMethodsRequestBodyIdeal'Bank'EnumRevolut

Represents the JSON value "revolut"

PostPaymentMethodsRequestBodyIdeal'Bank'EnumSnsBank

Represents the JSON value "sns_bank"

PostPaymentMethodsRequestBodyIdeal'Bank'EnumTriodosBank

Represents the JSON value "triodos_bank"

PostPaymentMethodsRequestBodyIdeal'Bank'EnumVanLanschot

Represents the JSON value "van_lanschot"

data PostPaymentMethodsRequestBodyP24' Source #

Defines the object schema located at paths./v1/payment_methods.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.p24 in the specification.

If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.

data PostPaymentMethodsRequestBodyP24'Bank' Source #

Defines the enum schema located at paths./v1/payment_methods.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.p24.properties.bank in the specification.

Constructors

PostPaymentMethodsRequestBodyP24'Bank'Other Value

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

PostPaymentMethodsRequestBodyP24'Bank'Typed Text

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

PostPaymentMethodsRequestBodyP24'Bank'EnumAliorBank

Represents the JSON value "alior_bank"

PostPaymentMethodsRequestBodyP24'Bank'EnumBankMillennium

Represents the JSON value "bank_millennium"

PostPaymentMethodsRequestBodyP24'Bank'EnumBankNowyBfgSa

Represents the JSON value "bank_nowy_bfg_sa"

PostPaymentMethodsRequestBodyP24'Bank'EnumBankPekaoSa

Represents the JSON value "bank_pekao_sa"

PostPaymentMethodsRequestBodyP24'Bank'EnumBankiSpbdzielcze

Represents the JSON value "banki_spbdzielcze"

PostPaymentMethodsRequestBodyP24'Bank'EnumBlik

Represents the JSON value "blik"

PostPaymentMethodsRequestBodyP24'Bank'EnumBnpParibas

Represents the JSON value "bnp_paribas"

PostPaymentMethodsRequestBodyP24'Bank'EnumBoz

Represents the JSON value "boz"

PostPaymentMethodsRequestBodyP24'Bank'EnumCitiHandlowy

Represents the JSON value "citi_handlowy"

PostPaymentMethodsRequestBodyP24'Bank'EnumCreditAgricole

Represents the JSON value "credit_agricole"

PostPaymentMethodsRequestBodyP24'Bank'EnumEnvelobank

Represents the JSON value "envelobank"

PostPaymentMethodsRequestBodyP24'Bank'EnumEtransferPocztowy24

Represents the JSON value "etransfer_pocztowy24"

PostPaymentMethodsRequestBodyP24'Bank'EnumGetinBank

Represents the JSON value "getin_bank"

PostPaymentMethodsRequestBodyP24'Bank'EnumIdeabank

Represents the JSON value "ideabank"

PostPaymentMethodsRequestBodyP24'Bank'EnumIng

Represents the JSON value "ing"

PostPaymentMethodsRequestBodyP24'Bank'EnumInteligo

Represents the JSON value "inteligo"

PostPaymentMethodsRequestBodyP24'Bank'EnumMbankMtransfer

Represents the JSON value "mbank_mtransfer"

PostPaymentMethodsRequestBodyP24'Bank'EnumNestPrzelew

Represents the JSON value "nest_przelew"

PostPaymentMethodsRequestBodyP24'Bank'EnumNoblePay

Represents the JSON value "noble_pay"

PostPaymentMethodsRequestBodyP24'Bank'EnumPbacZIpko

Represents the JSON value "pbac_z_ipko"

PostPaymentMethodsRequestBodyP24'Bank'EnumPlusBank

Represents the JSON value "plus_bank"

PostPaymentMethodsRequestBodyP24'Bank'EnumSantanderPrzelew24

Represents the JSON value "santander_przelew24"

PostPaymentMethodsRequestBodyP24'Bank'EnumTmobileUsbugiBankowe

Represents the JSON value "tmobile_usbugi_bankowe"

PostPaymentMethodsRequestBodyP24'Bank'EnumToyotaBank

Represents the JSON value "toyota_bank"

PostPaymentMethodsRequestBodyP24'Bank'EnumVolkswagenBank

Represents the JSON value "volkswagen_bank"

data PostPaymentMethodsRequestBodySepaDebit' Source #

Defines the object schema located at paths./v1/payment_methods.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.sepa_debit in the specification.

If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.

Constructors

PostPaymentMethodsRequestBodySepaDebit' 

Fields

data PostPaymentMethodsRequestBodySofort' Source #

Defines the object schema located at paths./v1/payment_methods.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.sofort in the specification.

If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.

data PostPaymentMethodsRequestBodySofort'Country' Source #

Defines the enum schema located at paths./v1/payment_methods.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.sofort.properties.country in the specification.

Constructors

PostPaymentMethodsRequestBodySofort'Country'Other Value

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

PostPaymentMethodsRequestBodySofort'Country'Typed Text

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

PostPaymentMethodsRequestBodySofort'Country'EnumAT

Represents the JSON value AT

PostPaymentMethodsRequestBodySofort'Country'EnumBE

Represents the JSON value BE

PostPaymentMethodsRequestBodySofort'Country'EnumDE

Represents the JSON value DE

PostPaymentMethodsRequestBodySofort'Country'EnumES

Represents the JSON value ES

PostPaymentMethodsRequestBodySofort'Country'EnumIT

Represents the JSON value IT

PostPaymentMethodsRequestBodySofort'Country'EnumNL

Represents the JSON value NL

data PostPaymentMethodsRequestBodyType' Source #

Defines the enum schema located at paths./v1/payment_methods.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.type in the specification.

The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.

Constructors

PostPaymentMethodsRequestBodyType'Other Value

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

PostPaymentMethodsRequestBodyType'Typed Text

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

PostPaymentMethodsRequestBodyType'EnumAcssDebit

Represents the JSON value "acss_debit"

PostPaymentMethodsRequestBodyType'EnumAfterpayClearpay

Represents the JSON value "afterpay_clearpay"

PostPaymentMethodsRequestBodyType'EnumAlipay

Represents the JSON value "alipay"

PostPaymentMethodsRequestBodyType'EnumAuBecsDebit

Represents the JSON value "au_becs_debit"

PostPaymentMethodsRequestBodyType'EnumBacsDebit

Represents the JSON value "bacs_debit"

PostPaymentMethodsRequestBodyType'EnumBancontact

Represents the JSON value "bancontact"

PostPaymentMethodsRequestBodyType'EnumBoleto

Represents the JSON value "boleto"

PostPaymentMethodsRequestBodyType'EnumCard

Represents the JSON value "card"

PostPaymentMethodsRequestBodyType'EnumEps

Represents the JSON value "eps"

PostPaymentMethodsRequestBodyType'EnumFpx

Represents the JSON value "fpx"

PostPaymentMethodsRequestBodyType'EnumGiropay

Represents the JSON value "giropay"

PostPaymentMethodsRequestBodyType'EnumGrabpay

Represents the JSON value "grabpay"

PostPaymentMethodsRequestBodyType'EnumIdeal

Represents the JSON value "ideal"

PostPaymentMethodsRequestBodyType'EnumOxxo

Represents the JSON value "oxxo"

PostPaymentMethodsRequestBodyType'EnumP24

Represents the JSON value "p24"

PostPaymentMethodsRequestBodyType'EnumSepaDebit

Represents the JSON value "sepa_debit"

PostPaymentMethodsRequestBodyType'EnumSofort

Represents the JSON value "sofort"

data PostPaymentMethodsResponse Source #

Represents a response of the operation postPaymentMethods.

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

Constructors

PostPaymentMethodsResponseError String

Means either no matching case available or a parse error

PostPaymentMethodsResponse200 PaymentMethod

Successful response.

PostPaymentMethodsResponseDefault Error

Error response.