Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postCustomersCustomerCards
Synopsis
- postCustomersCustomerCards :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostCustomersCustomerCardsRequestBody -> m (Either HttpException (Response PostCustomersCustomerCardsResponse))
- postCustomersCustomerCardsRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostCustomersCustomerCardsRequestBody -> m (Either HttpException (Response ByteString))
- postCustomersCustomerCardsM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostCustomersCustomerCardsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostCustomersCustomerCardsResponse))
- postCustomersCustomerCardsRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostCustomersCustomerCardsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostCustomersCustomerCardsRequestBody = PostCustomersCustomerCardsRequestBody {
- postCustomersCustomerCardsRequestBodyAlipayAccount :: Maybe String
- postCustomersCustomerCardsRequestBodyBankAccount :: Maybe PostCustomersCustomerCardsRequestBodyBankAccount'Variants
- postCustomersCustomerCardsRequestBodyCard :: Maybe PostCustomersCustomerCardsRequestBodyCard'Variants
- postCustomersCustomerCardsRequestBodyExpand :: Maybe ([] String)
- postCustomersCustomerCardsRequestBodyMetadata :: Maybe PostCustomersCustomerCardsRequestBodyMetadata'
- postCustomersCustomerCardsRequestBodySource :: Maybe String
- data PostCustomersCustomerCardsRequestBodyBankAccount'OneOf2 = PostCustomersCustomerCardsRequestBodyBankAccount'OneOf2 {
- postCustomersCustomerCardsRequestBodyBankAccount'OneOf2AccountHolderName :: Maybe String
- postCustomersCustomerCardsRequestBodyBankAccount'OneOf2AccountHolderType :: Maybe PostCustomersCustomerCardsRequestBodyBankAccount'OneOf2AccountHolderType'
- postCustomersCustomerCardsRequestBodyBankAccount'OneOf2AccountNumber :: String
- postCustomersCustomerCardsRequestBodyBankAccount'OneOf2Country :: String
- postCustomersCustomerCardsRequestBodyBankAccount'OneOf2Currency :: Maybe String
- postCustomersCustomerCardsRequestBodyBankAccount'OneOf2Object :: Maybe PostCustomersCustomerCardsRequestBodyBankAccount'OneOf2Object'
- postCustomersCustomerCardsRequestBodyBankAccount'OneOf2RoutingNumber :: Maybe String
- data PostCustomersCustomerCardsRequestBodyBankAccount'OneOf2AccountHolderType'
- = PostCustomersCustomerCardsRequestBodyBankAccount'OneOf2AccountHolderType'EnumOther Value
- | PostCustomersCustomerCardsRequestBodyBankAccount'OneOf2AccountHolderType'EnumTyped String
- | PostCustomersCustomerCardsRequestBodyBankAccount'OneOf2AccountHolderType'EnumStringCompany
- | PostCustomersCustomerCardsRequestBodyBankAccount'OneOf2AccountHolderType'EnumStringIndividual
- data PostCustomersCustomerCardsRequestBodyBankAccount'OneOf2Object'
- data PostCustomersCustomerCardsRequestBodyBankAccount'Variants
- data PostCustomersCustomerCardsRequestBodyCard'OneOf2 = PostCustomersCustomerCardsRequestBodyCard'OneOf2 {
- postCustomersCustomerCardsRequestBodyCard'OneOf2AddressCity :: Maybe String
- postCustomersCustomerCardsRequestBodyCard'OneOf2AddressCountry :: Maybe String
- postCustomersCustomerCardsRequestBodyCard'OneOf2AddressLine1 :: Maybe String
- postCustomersCustomerCardsRequestBodyCard'OneOf2AddressLine2 :: Maybe String
- postCustomersCustomerCardsRequestBodyCard'OneOf2AddressState :: Maybe String
- postCustomersCustomerCardsRequestBodyCard'OneOf2AddressZip :: Maybe String
- postCustomersCustomerCardsRequestBodyCard'OneOf2Cvc :: Maybe String
- postCustomersCustomerCardsRequestBodyCard'OneOf2ExpMonth :: Integer
- postCustomersCustomerCardsRequestBodyCard'OneOf2ExpYear :: Integer
- postCustomersCustomerCardsRequestBodyCard'OneOf2Metadata :: Maybe PostCustomersCustomerCardsRequestBodyCard'OneOf2Metadata'
- postCustomersCustomerCardsRequestBodyCard'OneOf2Name :: Maybe String
- postCustomersCustomerCardsRequestBodyCard'OneOf2Number :: String
- postCustomersCustomerCardsRequestBodyCard'OneOf2Object :: Maybe PostCustomersCustomerCardsRequestBodyCard'OneOf2Object'
- data PostCustomersCustomerCardsRequestBodyCard'OneOf2Metadata' = PostCustomersCustomerCardsRequestBodyCard'OneOf2Metadata' {
- data PostCustomersCustomerCardsRequestBodyCard'OneOf2Object'
- data PostCustomersCustomerCardsRequestBodyCard'Variants
- data PostCustomersCustomerCardsRequestBodyMetadata' = PostCustomersCustomerCardsRequestBodyMetadata' {
- data PostCustomersCustomerCardsResponse
Documentation
postCustomersCustomerCards Source #
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> String | customer | Constraints: Maximum length of 5000 |
-> PostCustomersCustomerCardsRequestBody | The request body to send |
-> m (Either HttpException (Response PostCustomersCustomerCardsResponse)) | Monad containing the result of the operation |
POST /v1/customers/{customer}/cards
<p>When you create a new credit card, you must specify a customer or recipient on which to create it.</p>
<p>If the card’s owner has no default card, then the new card will become the default. However, if the owner already has a default, then it will not change. To change the default, you should <a href="/docs/api#update_customer">update the customer</a> to have a new <code>default_source</code>.</p>
postCustomersCustomerCardsRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostCustomersCustomerCardsRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/customers/{customer}/cards
The same as postCustomersCustomerCards
but returns the raw ByteString
postCustomersCustomerCardsM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostCustomersCustomerCardsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostCustomersCustomerCardsResponse)) Source #
POST /v1/customers/{customer}/cards
Monadic version of postCustomersCustomerCards
(use with runWithConfiguration
)
postCustomersCustomerCardsRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostCustomersCustomerCardsRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/customers/{customer}/cards
Monadic version of postCustomersCustomerCardsRaw
(use with runWithConfiguration
)
data PostCustomersCustomerCardsRequestBody Source #
Defines the data type for the schema postCustomersCustomerCardsRequestBody
PostCustomersCustomerCardsRequestBody | |
|
data PostCustomersCustomerCardsRequestBodyBankAccount'OneOf2 Source #
Defines the data type for the schema postCustomersCustomerCardsRequestBodyBank_account'OneOf2
Instances
data PostCustomersCustomerCardsRequestBodyBankAccount'OneOf2AccountHolderType' Source #
Defines the enum schema postCustomersCustomerCardsRequestBodyBank_account'OneOf2Account_holder_type'
Instances
data PostCustomersCustomerCardsRequestBodyBankAccount'OneOf2Object' Source #
Defines the enum schema postCustomersCustomerCardsRequestBodyBank_account'OneOf2Object'
Instances
data PostCustomersCustomerCardsRequestBodyBankAccount'Variants Source #
Define the one-of schema postCustomersCustomerCardsRequestBodyBank_account'
Either a token, like the ones returned by Stripe.js, or a dictionary containing a user's bank account details.
Instances
data PostCustomersCustomerCardsRequestBodyCard'OneOf2 Source #
Defines the data type for the schema postCustomersCustomerCardsRequestBodyCard'OneOf2
Instances
data PostCustomersCustomerCardsRequestBodyCard'OneOf2Metadata' Source #
Defines the data type for the schema postCustomersCustomerCardsRequestBodyCard'OneOf2Metadata'
Instances
data PostCustomersCustomerCardsRequestBodyCard'OneOf2Object' Source #
Defines the enum schema postCustomersCustomerCardsRequestBodyCard'OneOf2Object'
Instances
data PostCustomersCustomerCardsRequestBodyCard'Variants Source #
Define the one-of schema postCustomersCustomerCardsRequestBodyCard'
A token, like the ones returned by Stripe.js.
PostCustomersCustomerCardsRequestBodyCard'String String | |
PostCustomersCustomerCardsRequestBodyCard'PostCustomersCustomerCardsRequestBodyCard'OneOf2 PostCustomersCustomerCardsRequestBodyCard'OneOf2 |
Instances
data PostCustomersCustomerCardsRequestBodyMetadata' Source #
Defines the data type for the schema postCustomersCustomerCardsRequestBodyMetadata'
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 PostCustomersCustomerCardsResponse Source #
Represents a response of the operation postCustomersCustomerCards
.
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), PostCustomersCustomerCardsResponseError
is used.
PostCustomersCustomerCardsResponseError String | Means either no matching case available or a parse error |
PostCustomersCustomerCardsResponse200 PaymentSource | Successful response. |
PostCustomersCustomerCardsResponseDefault Error | Error response. |