Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postCustomersCustomerSources
Synopsis
- postCustomersCustomerSources :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostCustomersCustomerSourcesRequestBody -> m (Either HttpException (Response PostCustomersCustomerSourcesResponse))
- postCustomersCustomerSourcesRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostCustomersCustomerSourcesRequestBody -> m (Either HttpException (Response ByteString))
- postCustomersCustomerSourcesM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostCustomersCustomerSourcesRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostCustomersCustomerSourcesResponse))
- postCustomersCustomerSourcesRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostCustomersCustomerSourcesRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostCustomersCustomerSourcesRequestBody = PostCustomersCustomerSourcesRequestBody {
- postCustomersCustomerSourcesRequestBodyAlipayAccount :: Maybe String
- postCustomersCustomerSourcesRequestBodyBankAccount :: Maybe PostCustomersCustomerSourcesRequestBodyBankAccount'Variants
- postCustomersCustomerSourcesRequestBodyCard :: Maybe PostCustomersCustomerSourcesRequestBodyCard'Variants
- postCustomersCustomerSourcesRequestBodyExpand :: Maybe ([] String)
- postCustomersCustomerSourcesRequestBodyMetadata :: Maybe PostCustomersCustomerSourcesRequestBodyMetadata'
- postCustomersCustomerSourcesRequestBodySource :: Maybe String
- data PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf2 = PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf2 {
- postCustomersCustomerSourcesRequestBodyBankAccount'OneOf2AccountHolderName :: Maybe String
- postCustomersCustomerSourcesRequestBodyBankAccount'OneOf2AccountHolderType :: Maybe PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf2AccountHolderType'
- postCustomersCustomerSourcesRequestBodyBankAccount'OneOf2AccountNumber :: String
- postCustomersCustomerSourcesRequestBodyBankAccount'OneOf2Country :: String
- postCustomersCustomerSourcesRequestBodyBankAccount'OneOf2Currency :: Maybe String
- postCustomersCustomerSourcesRequestBodyBankAccount'OneOf2Object :: Maybe PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf2Object'
- postCustomersCustomerSourcesRequestBodyBankAccount'OneOf2RoutingNumber :: Maybe String
- data PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf2AccountHolderType'
- = PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf2AccountHolderType'EnumOther Value
- | PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf2AccountHolderType'EnumTyped String
- | PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf2AccountHolderType'EnumStringCompany
- | PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf2AccountHolderType'EnumStringIndividual
- data PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf2Object'
- data PostCustomersCustomerSourcesRequestBodyBankAccount'Variants
- data PostCustomersCustomerSourcesRequestBodyCard'OneOf2 = PostCustomersCustomerSourcesRequestBodyCard'OneOf2 {
- postCustomersCustomerSourcesRequestBodyCard'OneOf2AddressCity :: Maybe String
- postCustomersCustomerSourcesRequestBodyCard'OneOf2AddressCountry :: Maybe String
- postCustomersCustomerSourcesRequestBodyCard'OneOf2AddressLine1 :: Maybe String
- postCustomersCustomerSourcesRequestBodyCard'OneOf2AddressLine2 :: Maybe String
- postCustomersCustomerSourcesRequestBodyCard'OneOf2AddressState :: Maybe String
- postCustomersCustomerSourcesRequestBodyCard'OneOf2AddressZip :: Maybe String
- postCustomersCustomerSourcesRequestBodyCard'OneOf2Cvc :: Maybe String
- postCustomersCustomerSourcesRequestBodyCard'OneOf2ExpMonth :: Integer
- postCustomersCustomerSourcesRequestBodyCard'OneOf2ExpYear :: Integer
- postCustomersCustomerSourcesRequestBodyCard'OneOf2Metadata :: Maybe PostCustomersCustomerSourcesRequestBodyCard'OneOf2Metadata'
- postCustomersCustomerSourcesRequestBodyCard'OneOf2Name :: Maybe String
- postCustomersCustomerSourcesRequestBodyCard'OneOf2Number :: String
- postCustomersCustomerSourcesRequestBodyCard'OneOf2Object :: Maybe PostCustomersCustomerSourcesRequestBodyCard'OneOf2Object'
- data PostCustomersCustomerSourcesRequestBodyCard'OneOf2Metadata' = PostCustomersCustomerSourcesRequestBodyCard'OneOf2Metadata' {
- data PostCustomersCustomerSourcesRequestBodyCard'OneOf2Object'
- data PostCustomersCustomerSourcesRequestBodyCard'Variants
- data PostCustomersCustomerSourcesRequestBodyMetadata' = PostCustomersCustomerSourcesRequestBodyMetadata' {
- data PostCustomersCustomerSourcesResponse
Documentation
postCustomersCustomerSources Source #
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> String | customer | Constraints: Maximum length of 5000 |
-> PostCustomersCustomerSourcesRequestBody | The request body to send |
-> m (Either HttpException (Response PostCustomersCustomerSourcesResponse)) | Monad containing the result of the operation |
POST /v1/customers/{customer}/sources
<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>
postCustomersCustomerSourcesRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostCustomersCustomerSourcesRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/customers/{customer}/sources
The same as postCustomersCustomerSources
but returns the raw ByteString
postCustomersCustomerSourcesM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostCustomersCustomerSourcesRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostCustomersCustomerSourcesResponse)) Source #
POST /v1/customers/{customer}/sources
Monadic version of postCustomersCustomerSources
(use with runWithConfiguration
)
postCustomersCustomerSourcesRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostCustomersCustomerSourcesRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/customers/{customer}/sources
Monadic version of postCustomersCustomerSourcesRaw
(use with runWithConfiguration
)
data PostCustomersCustomerSourcesRequestBody Source #
Defines the data type for the schema postCustomersCustomerSourcesRequestBody
PostCustomersCustomerSourcesRequestBody | |
|
data PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf2 Source #
Defines the data type for the schema postCustomersCustomerSourcesRequestBodyBank_account'OneOf2
Instances
data PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf2AccountHolderType' Source #
Defines the enum schema postCustomersCustomerSourcesRequestBodyBank_account'OneOf2Account_holder_type'
Instances
data PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf2Object' Source #
Defines the enum schema postCustomersCustomerSourcesRequestBodyBank_account'OneOf2Object'
Instances
data PostCustomersCustomerSourcesRequestBodyBankAccount'Variants Source #
Define the one-of schema postCustomersCustomerSourcesRequestBodyBank_account'
Either a token, like the ones returned by Stripe.js, or a dictionary containing a user's bank account details.
Instances
data PostCustomersCustomerSourcesRequestBodyCard'OneOf2 Source #
Defines the data type for the schema postCustomersCustomerSourcesRequestBodyCard'OneOf2
Instances
data PostCustomersCustomerSourcesRequestBodyCard'OneOf2Metadata' Source #
Defines the data type for the schema postCustomersCustomerSourcesRequestBodyCard'OneOf2Metadata'
Instances
data PostCustomersCustomerSourcesRequestBodyCard'OneOf2Object' Source #
Defines the enum schema postCustomersCustomerSourcesRequestBodyCard'OneOf2Object'
Instances
data PostCustomersCustomerSourcesRequestBodyCard'Variants Source #
Define the one-of schema postCustomersCustomerSourcesRequestBodyCard'
A token, like the ones returned by Stripe.js.
Instances
data PostCustomersCustomerSourcesRequestBodyMetadata' Source #
Defines the data type for the schema postCustomersCustomerSourcesRequestBodyMetadata'
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`.
Instances
data PostCustomersCustomerSourcesResponse Source #
Represents a response of the operation postCustomersCustomerSources
.
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), PostCustomersCustomerSourcesResponseError
is used.
PostCustomersCustomerSourcesResponseError String | Means either no matching case available or a parse error |
PostCustomersCustomerSourcesResponse200 PaymentSource | Successful response. |
PostCustomersCustomerSourcesResponseDefault Error | Error response. |