Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postCustomersCustomerSources
Synopsis
- postCustomersCustomerSources :: forall m. MonadHTTP m => Text -> Maybe PostCustomersCustomerSourcesRequestBody -> ClientT m (Response PostCustomersCustomerSourcesResponse)
- data PostCustomersCustomerSourcesRequestBody = PostCustomersCustomerSourcesRequestBody {
- postCustomersCustomerSourcesRequestBodyAlipayAccount :: Maybe Text
- postCustomersCustomerSourcesRequestBodyBankAccount :: Maybe PostCustomersCustomerSourcesRequestBodyBankAccount'Variants
- postCustomersCustomerSourcesRequestBodyCard :: Maybe PostCustomersCustomerSourcesRequestBodyCard'Variants
- postCustomersCustomerSourcesRequestBodyExpand :: Maybe [Text]
- postCustomersCustomerSourcesRequestBodyMetadata :: Maybe Object
- postCustomersCustomerSourcesRequestBodySource :: Maybe Text
- mkPostCustomersCustomerSourcesRequestBody :: PostCustomersCustomerSourcesRequestBody
- data PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1 = PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1 {
- postCustomersCustomerSourcesRequestBodyBankAccount'OneOf1AccountHolderName :: Maybe Text
- postCustomersCustomerSourcesRequestBodyBankAccount'OneOf1AccountHolderType :: Maybe PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1AccountHolderType'
- postCustomersCustomerSourcesRequestBodyBankAccount'OneOf1AccountNumber :: Text
- postCustomersCustomerSourcesRequestBodyBankAccount'OneOf1Country :: Text
- postCustomersCustomerSourcesRequestBodyBankAccount'OneOf1Currency :: Maybe Text
- postCustomersCustomerSourcesRequestBodyBankAccount'OneOf1Object :: Maybe PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1Object'
- postCustomersCustomerSourcesRequestBodyBankAccount'OneOf1RoutingNumber :: Maybe Text
- mkPostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1 :: Text -> Text -> PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1
- data PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1AccountHolderType'
- = PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1AccountHolderType'Other Value
- | PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1AccountHolderType'Typed Text
- | PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1AccountHolderType'EnumCompany
- | PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1AccountHolderType'EnumIndividual
- data PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1Object'
- data PostCustomersCustomerSourcesRequestBodyBankAccount'Variants
- data PostCustomersCustomerSourcesRequestBodyCard'OneOf1 = PostCustomersCustomerSourcesRequestBodyCard'OneOf1 {
- postCustomersCustomerSourcesRequestBodyCard'OneOf1AddressCity :: Maybe Text
- postCustomersCustomerSourcesRequestBodyCard'OneOf1AddressCountry :: Maybe Text
- postCustomersCustomerSourcesRequestBodyCard'OneOf1AddressLine1 :: Maybe Text
- postCustomersCustomerSourcesRequestBodyCard'OneOf1AddressLine2 :: Maybe Text
- postCustomersCustomerSourcesRequestBodyCard'OneOf1AddressState :: Maybe Text
- postCustomersCustomerSourcesRequestBodyCard'OneOf1AddressZip :: Maybe Text
- postCustomersCustomerSourcesRequestBodyCard'OneOf1Cvc :: Maybe Text
- postCustomersCustomerSourcesRequestBodyCard'OneOf1ExpMonth :: Int
- postCustomersCustomerSourcesRequestBodyCard'OneOf1ExpYear :: Int
- postCustomersCustomerSourcesRequestBodyCard'OneOf1Metadata :: Maybe Object
- postCustomersCustomerSourcesRequestBodyCard'OneOf1Name :: Maybe Text
- postCustomersCustomerSourcesRequestBodyCard'OneOf1Number :: Text
- postCustomersCustomerSourcesRequestBodyCard'OneOf1Object :: Maybe PostCustomersCustomerSourcesRequestBodyCard'OneOf1Object'
- mkPostCustomersCustomerSourcesRequestBodyCard'OneOf1 :: Int -> Int -> Text -> PostCustomersCustomerSourcesRequestBodyCard'OneOf1
- data PostCustomersCustomerSourcesRequestBodyCard'OneOf1Object'
- data PostCustomersCustomerSourcesRequestBodyCard'Variants
- data PostCustomersCustomerSourcesResponse
Documentation
postCustomersCustomerSources Source #
:: forall m. MonadHTTP m | |
=> Text | customer | Constraints: Maximum length of 5000 |
-> Maybe PostCustomersCustomerSourcesRequestBody | The request body to send |
-> ClientT m (Response PostCustomersCustomerSourcesResponse) | Monadic computation which returns 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>
data PostCustomersCustomerSourcesRequestBody Source #
Defines the object schema located at paths./v1/customers/{customer}/sources.POST.requestBody.content.application/x-www-form-urlencoded.schema
in the specification.
PostCustomersCustomerSourcesRequestBody | |
|
mkPostCustomersCustomerSourcesRequestBody :: PostCustomersCustomerSourcesRequestBody Source #
Create a new PostCustomersCustomerSourcesRequestBody
with all required fields.
data PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1 Source #
Defines the object schema located at paths./v1/customers/{customer}/sources.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.bank_account.anyOf
in the specification.
Instances
mkPostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1 Source #
Create a new PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1
with all required fields.
data PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1AccountHolderType' Source #
Defines the enum schema located at paths./v1/customers/{customer}/sources.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.bank_account.anyOf.properties.account_holder_type
in the specification.
PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1AccountHolderType'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1AccountHolderType'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1AccountHolderType'EnumCompany | Represents the JSON value |
PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1AccountHolderType'EnumIndividual | Represents the JSON value |
Instances
data PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1Object' Source #
Defines the enum schema located at paths./v1/customers/{customer}/sources.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.bank_account.anyOf.properties.object
in the specification.
PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1Object'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1Object'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
PostCustomersCustomerSourcesRequestBodyBankAccount'OneOf1Object'EnumBankAccount | Represents the JSON value |
Instances
data PostCustomersCustomerSourcesRequestBodyBankAccount'Variants Source #
Defines the oneOf schema located at paths./v1/customers/{customer}/sources.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.bank_account.anyOf
in the specification.
Either a token, like the ones returned by Stripe.js, or a dictionary containing a user's bank account details.
Instances
data PostCustomersCustomerSourcesRequestBodyCard'OneOf1 Source #
Defines the object schema located at paths./v1/customers/{customer}/sources.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.card.anyOf
in the specification.
Instances
mkPostCustomersCustomerSourcesRequestBodyCard'OneOf1 Source #
Create a new PostCustomersCustomerSourcesRequestBodyCard'OneOf1
with all required fields.
data PostCustomersCustomerSourcesRequestBodyCard'OneOf1Object' Source #
Defines the enum schema located at paths./v1/customers/{customer}/sources.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.card.anyOf.properties.object
in the specification.
PostCustomersCustomerSourcesRequestBodyCard'OneOf1Object'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
PostCustomersCustomerSourcesRequestBodyCard'OneOf1Object'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
PostCustomersCustomerSourcesRequestBodyCard'OneOf1Object'EnumCard | Represents the JSON value |
Instances
data PostCustomersCustomerSourcesRequestBodyCard'Variants Source #
Defines the oneOf schema located at paths./v1/customers/{customer}/sources.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.card.anyOf
in the specification.
A token, like the ones returned by Stripe.js.
PostCustomersCustomerSourcesRequestBodyCard'PostCustomersCustomerSourcesRequestBodyCard'OneOf1 PostCustomersCustomerSourcesRequestBodyCard'OneOf1 | |
PostCustomersCustomerSourcesRequestBodyCard'Text Text |
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. |