Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postCustomersCustomerCards
Synopsis
- postCustomersCustomerCards :: forall m. MonadHTTP m => Text -> Maybe PostCustomersCustomerCardsRequestBody -> ClientT m (Response PostCustomersCustomerCardsResponse)
- data PostCustomersCustomerCardsRequestBody = PostCustomersCustomerCardsRequestBody {
- postCustomersCustomerCardsRequestBodyAlipayAccount :: Maybe Text
- postCustomersCustomerCardsRequestBodyBankAccount :: Maybe PostCustomersCustomerCardsRequestBodyBankAccount'Variants
- postCustomersCustomerCardsRequestBodyCard :: Maybe PostCustomersCustomerCardsRequestBodyCard'Variants
- postCustomersCustomerCardsRequestBodyExpand :: Maybe [Text]
- postCustomersCustomerCardsRequestBodyMetadata :: Maybe Object
- postCustomersCustomerCardsRequestBodySource :: Maybe Text
- mkPostCustomersCustomerCardsRequestBody :: PostCustomersCustomerCardsRequestBody
- data PostCustomersCustomerCardsRequestBodyBankAccount'OneOf1 = PostCustomersCustomerCardsRequestBodyBankAccount'OneOf1 {
- postCustomersCustomerCardsRequestBodyBankAccount'OneOf1AccountHolderName :: Maybe Text
- postCustomersCustomerCardsRequestBodyBankAccount'OneOf1AccountHolderType :: Maybe PostCustomersCustomerCardsRequestBodyBankAccount'OneOf1AccountHolderType'
- postCustomersCustomerCardsRequestBodyBankAccount'OneOf1AccountNumber :: Text
- postCustomersCustomerCardsRequestBodyBankAccount'OneOf1Country :: Text
- postCustomersCustomerCardsRequestBodyBankAccount'OneOf1Currency :: Maybe Text
- postCustomersCustomerCardsRequestBodyBankAccount'OneOf1Object :: Maybe PostCustomersCustomerCardsRequestBodyBankAccount'OneOf1Object'
- postCustomersCustomerCardsRequestBodyBankAccount'OneOf1RoutingNumber :: Maybe Text
- mkPostCustomersCustomerCardsRequestBodyBankAccount'OneOf1 :: Text -> Text -> PostCustomersCustomerCardsRequestBodyBankAccount'OneOf1
- data PostCustomersCustomerCardsRequestBodyBankAccount'OneOf1AccountHolderType'
- = PostCustomersCustomerCardsRequestBodyBankAccount'OneOf1AccountHolderType'Other Value
- | PostCustomersCustomerCardsRequestBodyBankAccount'OneOf1AccountHolderType'Typed Text
- | PostCustomersCustomerCardsRequestBodyBankAccount'OneOf1AccountHolderType'EnumCompany
- | PostCustomersCustomerCardsRequestBodyBankAccount'OneOf1AccountHolderType'EnumIndividual
- data PostCustomersCustomerCardsRequestBodyBankAccount'OneOf1Object'
- data PostCustomersCustomerCardsRequestBodyBankAccount'Variants
- data PostCustomersCustomerCardsRequestBodyCard'OneOf1 = PostCustomersCustomerCardsRequestBodyCard'OneOf1 {
- postCustomersCustomerCardsRequestBodyCard'OneOf1AddressCity :: Maybe Text
- postCustomersCustomerCardsRequestBodyCard'OneOf1AddressCountry :: Maybe Text
- postCustomersCustomerCardsRequestBodyCard'OneOf1AddressLine1 :: Maybe Text
- postCustomersCustomerCardsRequestBodyCard'OneOf1AddressLine2 :: Maybe Text
- postCustomersCustomerCardsRequestBodyCard'OneOf1AddressState :: Maybe Text
- postCustomersCustomerCardsRequestBodyCard'OneOf1AddressZip :: Maybe Text
- postCustomersCustomerCardsRequestBodyCard'OneOf1Cvc :: Maybe Text
- postCustomersCustomerCardsRequestBodyCard'OneOf1ExpMonth :: Int
- postCustomersCustomerCardsRequestBodyCard'OneOf1ExpYear :: Int
- postCustomersCustomerCardsRequestBodyCard'OneOf1Metadata :: Maybe Object
- postCustomersCustomerCardsRequestBodyCard'OneOf1Name :: Maybe Text
- postCustomersCustomerCardsRequestBodyCard'OneOf1Number :: Text
- postCustomersCustomerCardsRequestBodyCard'OneOf1Object :: Maybe PostCustomersCustomerCardsRequestBodyCard'OneOf1Object'
- mkPostCustomersCustomerCardsRequestBodyCard'OneOf1 :: Int -> Int -> Text -> PostCustomersCustomerCardsRequestBodyCard'OneOf1
- data PostCustomersCustomerCardsRequestBodyCard'OneOf1Object'
- data PostCustomersCustomerCardsRequestBodyCard'Variants
- data PostCustomersCustomerCardsResponse
Documentation
postCustomersCustomerCards Source #
:: forall m. MonadHTTP m | |
=> Text | customer | Constraints: Maximum length of 5000 |
-> Maybe PostCustomersCustomerCardsRequestBody | The request body to send |
-> ClientT m (Response PostCustomersCustomerCardsResponse) | Monadic computation which returns 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>
data PostCustomersCustomerCardsRequestBody Source #
Defines the object schema located at paths./v1/customers/{customer}/cards.POST.requestBody.content.application/x-www-form-urlencoded.schema
in the specification.
PostCustomersCustomerCardsRequestBody | |
|
mkPostCustomersCustomerCardsRequestBody :: PostCustomersCustomerCardsRequestBody Source #
Create a new PostCustomersCustomerCardsRequestBody
with all required fields.
data PostCustomersCustomerCardsRequestBodyBankAccount'OneOf1 Source #
Defines the object schema located at paths./v1/customers/{customer}/cards.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.bank_account.anyOf
in the specification.
Instances
mkPostCustomersCustomerCardsRequestBodyBankAccount'OneOf1 Source #
Create a new PostCustomersCustomerCardsRequestBodyBankAccount'OneOf1
with all required fields.
data PostCustomersCustomerCardsRequestBodyBankAccount'OneOf1AccountHolderType' Source #
Defines the enum schema located at paths./v1/customers/{customer}/cards.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.bank_account.anyOf.properties.account_holder_type
in the specification.
PostCustomersCustomerCardsRequestBodyBankAccount'OneOf1AccountHolderType'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
PostCustomersCustomerCardsRequestBodyBankAccount'OneOf1AccountHolderType'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
PostCustomersCustomerCardsRequestBodyBankAccount'OneOf1AccountHolderType'EnumCompany | Represents the JSON value |
PostCustomersCustomerCardsRequestBodyBankAccount'OneOf1AccountHolderType'EnumIndividual | Represents the JSON value |
Instances
data PostCustomersCustomerCardsRequestBodyBankAccount'OneOf1Object' Source #
Defines the enum schema located at paths./v1/customers/{customer}/cards.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.bank_account.anyOf.properties.object
in the specification.
PostCustomersCustomerCardsRequestBodyBankAccount'OneOf1Object'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
PostCustomersCustomerCardsRequestBodyBankAccount'OneOf1Object'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
PostCustomersCustomerCardsRequestBodyBankAccount'OneOf1Object'EnumBankAccount | Represents the JSON value |
Instances
data PostCustomersCustomerCardsRequestBodyBankAccount'Variants Source #
Defines the oneOf schema located at paths./v1/customers/{customer}/cards.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 PostCustomersCustomerCardsRequestBodyCard'OneOf1 Source #
Defines the object schema located at paths./v1/customers/{customer}/cards.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.card.anyOf
in the specification.
Instances
mkPostCustomersCustomerCardsRequestBodyCard'OneOf1 Source #
Create a new PostCustomersCustomerCardsRequestBodyCard'OneOf1
with all required fields.
data PostCustomersCustomerCardsRequestBodyCard'OneOf1Object' Source #
Defines the enum schema located at paths./v1/customers/{customer}/cards.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.card.anyOf.properties.object
in the specification.
PostCustomersCustomerCardsRequestBodyCard'OneOf1Object'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
PostCustomersCustomerCardsRequestBodyCard'OneOf1Object'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
PostCustomersCustomerCardsRequestBodyCard'OneOf1Object'EnumCard | Represents the JSON value |
Instances
data PostCustomersCustomerCardsRequestBodyCard'Variants Source #
Defines the oneOf schema located at paths./v1/customers/{customer}/cards.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.card.anyOf
in the specification.
A token, like the ones returned by Stripe.js.
PostCustomersCustomerCardsRequestBodyCard'PostCustomersCustomerCardsRequestBodyCard'OneOf1 PostCustomersCustomerCardsRequestBodyCard'OneOf1 | |
PostCustomersCustomerCardsRequestBodyCard'Text Text |
Instances
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. |