Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postPaymentMethods
Synopsis
- postPaymentMethods :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostPaymentMethodsRequestBody -> m (Either HttpException (Response PostPaymentMethodsResponse))
- postPaymentMethodsRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostPaymentMethodsRequestBody -> m (Either HttpException (Response ByteString))
- postPaymentMethodsM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostPaymentMethodsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostPaymentMethodsResponse))
- postPaymentMethodsRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostPaymentMethodsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostPaymentMethodsRequestBody = PostPaymentMethodsRequestBody {
- postPaymentMethodsRequestBodyBillingDetails :: Maybe PostPaymentMethodsRequestBodyBillingDetails'
- postPaymentMethodsRequestBodyCard :: Maybe PostPaymentMethodsRequestBodyCard'
- postPaymentMethodsRequestBodyCustomer :: Maybe String
- postPaymentMethodsRequestBodyExpand :: Maybe ([] String)
- postPaymentMethodsRequestBodyFpx :: Maybe PostPaymentMethodsRequestBodyFpx'
- postPaymentMethodsRequestBodyIdeal :: Maybe PostPaymentMethodsRequestBodyIdeal'
- postPaymentMethodsRequestBodyMetadata :: Maybe PostPaymentMethodsRequestBodyMetadata'
- postPaymentMethodsRequestBodyPaymentMethod :: Maybe String
- postPaymentMethodsRequestBodySepaDebit :: Maybe PostPaymentMethodsRequestBodySepaDebit'
- postPaymentMethodsRequestBodyType :: Maybe PostPaymentMethodsRequestBodyType'
- data PostPaymentMethodsRequestBodyBillingDetails' = PostPaymentMethodsRequestBodyBillingDetails' {
- postPaymentMethodsRequestBodyBillingDetails'Address :: Maybe PostPaymentMethodsRequestBodyBillingDetails'Address'
- postPaymentMethodsRequestBodyBillingDetails'Email :: Maybe String
- postPaymentMethodsRequestBodyBillingDetails'Name :: Maybe String
- postPaymentMethodsRequestBodyBillingDetails'Phone :: Maybe String
- data PostPaymentMethodsRequestBodyBillingDetails'Address' = PostPaymentMethodsRequestBodyBillingDetails'Address' {
- postPaymentMethodsRequestBodyBillingDetails'Address'City :: Maybe String
- postPaymentMethodsRequestBodyBillingDetails'Address'Country :: Maybe String
- postPaymentMethodsRequestBodyBillingDetails'Address'Line1 :: Maybe String
- postPaymentMethodsRequestBodyBillingDetails'Address'Line2 :: Maybe String
- postPaymentMethodsRequestBodyBillingDetails'Address'PostalCode :: Maybe String
- postPaymentMethodsRequestBodyBillingDetails'Address'State :: Maybe String
- data PostPaymentMethodsRequestBodyCard' = PostPaymentMethodsRequestBodyCard' {}
- data PostPaymentMethodsRequestBodyFpx' = PostPaymentMethodsRequestBodyFpx' {}
- data PostPaymentMethodsRequestBodyFpx'Bank'
- = PostPaymentMethodsRequestBodyFpx'Bank'EnumOther Value
- | PostPaymentMethodsRequestBodyFpx'Bank'EnumTyped String
- | PostPaymentMethodsRequestBodyFpx'Bank'EnumStringAffinBank
- | PostPaymentMethodsRequestBodyFpx'Bank'EnumStringAllianceBank
- | PostPaymentMethodsRequestBodyFpx'Bank'EnumStringAmbank
- | PostPaymentMethodsRequestBodyFpx'Bank'EnumStringBankIslam
- | PostPaymentMethodsRequestBodyFpx'Bank'EnumStringBankMuamalat
- | PostPaymentMethodsRequestBodyFpx'Bank'EnumStringBankRakyat
- | PostPaymentMethodsRequestBodyFpx'Bank'EnumStringBsn
- | PostPaymentMethodsRequestBodyFpx'Bank'EnumStringCimb
- | PostPaymentMethodsRequestBodyFpx'Bank'EnumStringDeutscheBank
- | PostPaymentMethodsRequestBodyFpx'Bank'EnumStringHongLeongBank
- | PostPaymentMethodsRequestBodyFpx'Bank'EnumStringHsbc
- | PostPaymentMethodsRequestBodyFpx'Bank'EnumStringKfh
- | PostPaymentMethodsRequestBodyFpx'Bank'EnumStringMaybank2e
- | PostPaymentMethodsRequestBodyFpx'Bank'EnumStringMaybank2u
- | PostPaymentMethodsRequestBodyFpx'Bank'EnumStringOcbc
- | PostPaymentMethodsRequestBodyFpx'Bank'EnumStringPbEnterprise
- | PostPaymentMethodsRequestBodyFpx'Bank'EnumStringPublicBank
- | PostPaymentMethodsRequestBodyFpx'Bank'EnumStringRhb
- | PostPaymentMethodsRequestBodyFpx'Bank'EnumStringStandardChartered
- | PostPaymentMethodsRequestBodyFpx'Bank'EnumStringUob
- data PostPaymentMethodsRequestBodyIdeal' = PostPaymentMethodsRequestBodyIdeal' {}
- data PostPaymentMethodsRequestBodyIdeal'Bank'
- = PostPaymentMethodsRequestBodyIdeal'Bank'EnumOther Value
- | PostPaymentMethodsRequestBodyIdeal'Bank'EnumTyped String
- | PostPaymentMethodsRequestBodyIdeal'Bank'EnumStringAbnAmro
- | PostPaymentMethodsRequestBodyIdeal'Bank'EnumStringAsnBank
- | PostPaymentMethodsRequestBodyIdeal'Bank'EnumStringBunq
- | PostPaymentMethodsRequestBodyIdeal'Bank'EnumStringHandelsbanken
- | PostPaymentMethodsRequestBodyIdeal'Bank'EnumStringIng
- | PostPaymentMethodsRequestBodyIdeal'Bank'EnumStringKnab
- | PostPaymentMethodsRequestBodyIdeal'Bank'EnumStringMoneyou
- | PostPaymentMethodsRequestBodyIdeal'Bank'EnumStringRabobank
- | PostPaymentMethodsRequestBodyIdeal'Bank'EnumStringRegiobank
- | PostPaymentMethodsRequestBodyIdeal'Bank'EnumStringSnsBank
- | PostPaymentMethodsRequestBodyIdeal'Bank'EnumStringTriodosBank
- | PostPaymentMethodsRequestBodyIdeal'Bank'EnumStringVanLanschot
- data PostPaymentMethodsRequestBodyMetadata' = PostPaymentMethodsRequestBodyMetadata' {
- data PostPaymentMethodsRequestBodySepaDebit' = PostPaymentMethodsRequestBodySepaDebit' {}
- data PostPaymentMethodsRequestBodyType'
- = PostPaymentMethodsRequestBodyType'EnumOther Value
- | PostPaymentMethodsRequestBodyType'EnumTyped String
- | PostPaymentMethodsRequestBodyType'EnumStringCard
- | PostPaymentMethodsRequestBodyType'EnumStringFpx
- | PostPaymentMethodsRequestBodyType'EnumStringIdeal
- | PostPaymentMethodsRequestBodyType'EnumStringSepaDebit
- data PostPaymentMethodsResponse
Documentation
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> PostPaymentMethodsRequestBody | The request body to send |
-> m (Either HttpException (Response PostPaymentMethodsResponse)) | Monad containing 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>
postPaymentMethodsRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> PostPaymentMethodsRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/payment_methods
The same as postPaymentMethods
but returns the raw ByteString
postPaymentMethodsM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostPaymentMethodsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostPaymentMethodsResponse)) Source #
POST /v1/payment_methods
Monadic version of postPaymentMethods
(use with runWithConfiguration
)
postPaymentMethodsRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => PostPaymentMethodsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/payment_methods
Monadic version of postPaymentMethodsRaw
(use with runWithConfiguration
)
data PostPaymentMethodsRequestBody Source #
Defines the data type for the schema postPaymentMethodsRequestBody
PostPaymentMethodsRequestBody | |
|
Instances
data PostPaymentMethodsRequestBodyBillingDetails' Source #
Defines the data type for the schema postPaymentMethodsRequestBodyBilling_details'
Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
PostPaymentMethodsRequestBodyBillingDetails' | |
|
Instances
data PostPaymentMethodsRequestBodyBillingDetails'Address' Source #
Defines the data type for the schema postPaymentMethodsRequestBodyBilling_details'Address'
PostPaymentMethodsRequestBodyBillingDetails'Address' | |
|
Instances
data PostPaymentMethodsRequestBodyCard' Source #
Defines the data type for the schema postPaymentMethodsRequestBodyCard'
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 creating with a card number, you must meet the requirements for PCI compliance. We strongly recommend using Stripe.js instead of interacting with this API directly.
PostPaymentMethodsRequestBodyCard' | |
|
data PostPaymentMethodsRequestBodyFpx' Source #
Defines the data type for the schema postPaymentMethodsRequestBodyFpx'
If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
PostPaymentMethodsRequestBodyFpx' | |
|
data PostPaymentMethodsRequestBodyFpx'Bank' Source #
Defines the enum schema postPaymentMethodsRequestBodyFpx'Bank'
data PostPaymentMethodsRequestBodyIdeal' Source #
Defines the data type for the schema postPaymentMethodsRequestBodyIdeal'
If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
PostPaymentMethodsRequestBodyIdeal' | |
|
data PostPaymentMethodsRequestBodyIdeal'Bank' Source #
Defines the enum schema postPaymentMethodsRequestBodyIdeal'Bank'
data PostPaymentMethodsRequestBodyMetadata' Source #
Defines the data type for the schema postPaymentMethodsRequestBodyMetadata'
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 PostPaymentMethodsRequestBodySepaDebit' Source #
Defines the data type for the schema postPaymentMethodsRequestBodySepa_debit'
If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
PostPaymentMethodsRequestBodySepaDebit' | |
|
data PostPaymentMethodsRequestBodyType' Source #
Defines the enum schema postPaymentMethodsRequestBodyType'
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. Required unless `payment_method` is specified (see the Cloning PaymentMethods guide)
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.
PostPaymentMethodsResponseError String | Means either no matching case available or a parse error |
PostPaymentMethodsResponse200 PaymentMethod | Successful response. |
PostPaymentMethodsResponseDefault Error | Error response. |