Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postCustomersCustomerCardsId
Synopsis
- postCustomersCustomerCardsId :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> String -> PostCustomersCustomerCardsIdRequestBody -> m (Either HttpException (Response PostCustomersCustomerCardsIdResponse))
- postCustomersCustomerCardsIdRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> String -> PostCustomersCustomerCardsIdRequestBody -> m (Either HttpException (Response ByteString))
- postCustomersCustomerCardsIdM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> String -> PostCustomersCustomerCardsIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostCustomersCustomerCardsIdResponse))
- postCustomersCustomerCardsIdRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> String -> PostCustomersCustomerCardsIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostCustomersCustomerCardsIdRequestBody = PostCustomersCustomerCardsIdRequestBody {
- postCustomersCustomerCardsIdRequestBodyAccountHolderName :: Maybe String
- postCustomersCustomerCardsIdRequestBodyAccountHolderType :: Maybe PostCustomersCustomerCardsIdRequestBodyAccountHolderType'
- postCustomersCustomerCardsIdRequestBodyAddressCity :: Maybe String
- postCustomersCustomerCardsIdRequestBodyAddressCountry :: Maybe String
- postCustomersCustomerCardsIdRequestBodyAddressLine1 :: Maybe String
- postCustomersCustomerCardsIdRequestBodyAddressLine2 :: Maybe String
- postCustomersCustomerCardsIdRequestBodyAddressState :: Maybe String
- postCustomersCustomerCardsIdRequestBodyAddressZip :: Maybe String
- postCustomersCustomerCardsIdRequestBodyExpMonth :: Maybe String
- postCustomersCustomerCardsIdRequestBodyExpYear :: Maybe String
- postCustomersCustomerCardsIdRequestBodyExpand :: Maybe ([] String)
- postCustomersCustomerCardsIdRequestBodyMetadata :: Maybe PostCustomersCustomerCardsIdRequestBodyMetadata'
- postCustomersCustomerCardsIdRequestBodyName :: Maybe String
- postCustomersCustomerCardsIdRequestBodyOwner :: Maybe PostCustomersCustomerCardsIdRequestBodyOwner'
- data PostCustomersCustomerCardsIdRequestBodyAccountHolderType'
- = PostCustomersCustomerCardsIdRequestBodyAccountHolderType'EnumOther Value
- | PostCustomersCustomerCardsIdRequestBodyAccountHolderType'EnumTyped String
- | PostCustomersCustomerCardsIdRequestBodyAccountHolderType'EnumStringCompany
- | PostCustomersCustomerCardsIdRequestBodyAccountHolderType'EnumStringIndividual
- data PostCustomersCustomerCardsIdRequestBodyMetadata' = PostCustomersCustomerCardsIdRequestBodyMetadata' {
- data PostCustomersCustomerCardsIdRequestBodyOwner' = PostCustomersCustomerCardsIdRequestBodyOwner' {
- postCustomersCustomerCardsIdRequestBodyOwner'Address :: Maybe PostCustomersCustomerCardsIdRequestBodyOwner'Address'
- postCustomersCustomerCardsIdRequestBodyOwner'Email :: Maybe String
- postCustomersCustomerCardsIdRequestBodyOwner'Name :: Maybe String
- postCustomersCustomerCardsIdRequestBodyOwner'Phone :: Maybe String
- data PostCustomersCustomerCardsIdRequestBodyOwner'Address' = PostCustomersCustomerCardsIdRequestBodyOwner'Address' {
- postCustomersCustomerCardsIdRequestBodyOwner'Address'City :: Maybe String
- postCustomersCustomerCardsIdRequestBodyOwner'Address'Country :: Maybe String
- postCustomersCustomerCardsIdRequestBodyOwner'Address'Line1 :: Maybe String
- postCustomersCustomerCardsIdRequestBodyOwner'Address'Line2 :: Maybe String
- postCustomersCustomerCardsIdRequestBodyOwner'Address'PostalCode :: Maybe String
- postCustomersCustomerCardsIdRequestBodyOwner'Address'State :: Maybe String
- data PostCustomersCustomerCardsIdResponse
- data PostCustomersCustomerCardsIdResponseBody200 = PostCustomersCustomerCardsIdResponseBody200 {
- postCustomersCustomerCardsIdResponseBody200Account :: Maybe PostCustomersCustomerCardsIdResponseBody200Account'Variants
- postCustomersCustomerCardsIdResponseBody200AccountHolderName :: Maybe String
- postCustomersCustomerCardsIdResponseBody200AccountHolderType :: Maybe String
- postCustomersCustomerCardsIdResponseBody200AchCreditTransfer :: Maybe SourceTypeAchCreditTransfer
- postCustomersCustomerCardsIdResponseBody200AchDebit :: Maybe SourceTypeAchDebit
- postCustomersCustomerCardsIdResponseBody200AddressCity :: Maybe String
- postCustomersCustomerCardsIdResponseBody200AddressCountry :: Maybe String
- postCustomersCustomerCardsIdResponseBody200AddressLine1 :: Maybe String
- postCustomersCustomerCardsIdResponseBody200AddressLine1Check :: Maybe String
- postCustomersCustomerCardsIdResponseBody200AddressLine2 :: Maybe String
- postCustomersCustomerCardsIdResponseBody200AddressState :: Maybe String
- postCustomersCustomerCardsIdResponseBody200AddressZip :: Maybe String
- postCustomersCustomerCardsIdResponseBody200AddressZipCheck :: Maybe String
- postCustomersCustomerCardsIdResponseBody200Alipay :: Maybe SourceTypeAlipay
- postCustomersCustomerCardsIdResponseBody200Amount :: Maybe Integer
- postCustomersCustomerCardsIdResponseBody200AvailablePayoutMethods :: Maybe ([] PostCustomersCustomerCardsIdResponseBody200AvailablePayoutMethods')
- postCustomersCustomerCardsIdResponseBody200Bancontact :: Maybe SourceTypeBancontact
- postCustomersCustomerCardsIdResponseBody200BankName :: Maybe String
- postCustomersCustomerCardsIdResponseBody200Brand :: Maybe String
- postCustomersCustomerCardsIdResponseBody200Card :: Maybe SourceTypeCard
- postCustomersCustomerCardsIdResponseBody200CardPresent :: Maybe SourceTypeCardPresent
- postCustomersCustomerCardsIdResponseBody200ClientSecret :: Maybe String
- postCustomersCustomerCardsIdResponseBody200CodeVerification :: Maybe SourceCodeVerificationFlow
- postCustomersCustomerCardsIdResponseBody200Country :: Maybe String
- postCustomersCustomerCardsIdResponseBody200Created :: Maybe Integer
- postCustomersCustomerCardsIdResponseBody200Currency :: Maybe String
- postCustomersCustomerCardsIdResponseBody200Customer :: Maybe PostCustomersCustomerCardsIdResponseBody200Customer'Variants
- postCustomersCustomerCardsIdResponseBody200CvcCheck :: Maybe String
- postCustomersCustomerCardsIdResponseBody200DefaultForCurrency :: Maybe Bool
- postCustomersCustomerCardsIdResponseBody200DynamicLast4 :: Maybe String
- postCustomersCustomerCardsIdResponseBody200Eps :: Maybe SourceTypeEps
- postCustomersCustomerCardsIdResponseBody200ExpMonth :: Maybe Integer
- postCustomersCustomerCardsIdResponseBody200ExpYear :: Maybe Integer
- postCustomersCustomerCardsIdResponseBody200Fingerprint :: Maybe String
- postCustomersCustomerCardsIdResponseBody200Flow :: Maybe String
- postCustomersCustomerCardsIdResponseBody200Funding :: Maybe String
- postCustomersCustomerCardsIdResponseBody200Giropay :: Maybe SourceTypeGiropay
- postCustomersCustomerCardsIdResponseBody200Id :: Maybe String
- postCustomersCustomerCardsIdResponseBody200Ideal :: Maybe SourceTypeIdeal
- postCustomersCustomerCardsIdResponseBody200Klarna :: Maybe SourceTypeKlarna
- postCustomersCustomerCardsIdResponseBody200Last4 :: Maybe String
- postCustomersCustomerCardsIdResponseBody200Livemode :: Maybe Bool
- postCustomersCustomerCardsIdResponseBody200Metadata :: Maybe PostCustomersCustomerCardsIdResponseBody200Metadata'
- postCustomersCustomerCardsIdResponseBody200Multibanco :: Maybe SourceTypeMultibanco
- postCustomersCustomerCardsIdResponseBody200Name :: Maybe String
- postCustomersCustomerCardsIdResponseBody200Object :: Maybe PostCustomersCustomerCardsIdResponseBody200Object'
- postCustomersCustomerCardsIdResponseBody200Owner :: Maybe PostCustomersCustomerCardsIdResponseBody200Owner'
- postCustomersCustomerCardsIdResponseBody200P24 :: Maybe SourceTypeP24
- postCustomersCustomerCardsIdResponseBody200Receiver :: Maybe SourceReceiverFlow
- postCustomersCustomerCardsIdResponseBody200Recipient :: Maybe PostCustomersCustomerCardsIdResponseBody200Recipient'Variants
- postCustomersCustomerCardsIdResponseBody200Redirect :: Maybe SourceRedirectFlow
- postCustomersCustomerCardsIdResponseBody200RoutingNumber :: Maybe String
- postCustomersCustomerCardsIdResponseBody200SepaDebit :: Maybe SourceTypeSepaDebit
- postCustomersCustomerCardsIdResponseBody200Sofort :: Maybe SourceTypeSofort
- postCustomersCustomerCardsIdResponseBody200SourceOrder :: Maybe SourceOrder
- postCustomersCustomerCardsIdResponseBody200StatementDescriptor :: Maybe String
- postCustomersCustomerCardsIdResponseBody200Status :: Maybe String
- postCustomersCustomerCardsIdResponseBody200ThreeDSecure :: Maybe SourceTypeThreeDSecure
- postCustomersCustomerCardsIdResponseBody200TokenizationMethod :: Maybe String
- postCustomersCustomerCardsIdResponseBody200Type :: Maybe PostCustomersCustomerCardsIdResponseBody200Type'
- postCustomersCustomerCardsIdResponseBody200Usage :: Maybe String
- postCustomersCustomerCardsIdResponseBody200Wechat :: Maybe SourceTypeWechat
- data PostCustomersCustomerCardsIdResponseBody200Account'Variants
- data PostCustomersCustomerCardsIdResponseBody200AvailablePayoutMethods'
- = PostCustomersCustomerCardsIdResponseBody200AvailablePayoutMethods'EnumOther Value
- | PostCustomersCustomerCardsIdResponseBody200AvailablePayoutMethods'EnumTyped String
- | PostCustomersCustomerCardsIdResponseBody200AvailablePayoutMethods'EnumStringInstant
- | PostCustomersCustomerCardsIdResponseBody200AvailablePayoutMethods'EnumStringStandard
- data PostCustomersCustomerCardsIdResponseBody200Customer'Variants
- data PostCustomersCustomerCardsIdResponseBody200Metadata' = PostCustomersCustomerCardsIdResponseBody200Metadata' {
- data PostCustomersCustomerCardsIdResponseBody200Object'
- data PostCustomersCustomerCardsIdResponseBody200Owner' = PostCustomersCustomerCardsIdResponseBody200Owner' {
- postCustomersCustomerCardsIdResponseBody200Owner'Address :: Maybe PostCustomersCustomerCardsIdResponseBody200Owner'Address'
- postCustomersCustomerCardsIdResponseBody200Owner'Email :: Maybe String
- postCustomersCustomerCardsIdResponseBody200Owner'Name :: Maybe String
- postCustomersCustomerCardsIdResponseBody200Owner'Phone :: Maybe String
- postCustomersCustomerCardsIdResponseBody200Owner'VerifiedAddress :: Maybe PostCustomersCustomerCardsIdResponseBody200Owner'VerifiedAddress'
- postCustomersCustomerCardsIdResponseBody200Owner'VerifiedEmail :: Maybe String
- postCustomersCustomerCardsIdResponseBody200Owner'VerifiedName :: Maybe String
- postCustomersCustomerCardsIdResponseBody200Owner'VerifiedPhone :: Maybe String
- data PostCustomersCustomerCardsIdResponseBody200Owner'Address' = PostCustomersCustomerCardsIdResponseBody200Owner'Address' {
- postCustomersCustomerCardsIdResponseBody200Owner'Address'City :: Maybe String
- postCustomersCustomerCardsIdResponseBody200Owner'Address'Country :: Maybe String
- postCustomersCustomerCardsIdResponseBody200Owner'Address'Line1 :: Maybe String
- postCustomersCustomerCardsIdResponseBody200Owner'Address'Line2 :: Maybe String
- postCustomersCustomerCardsIdResponseBody200Owner'Address'PostalCode :: Maybe String
- postCustomersCustomerCardsIdResponseBody200Owner'Address'State :: Maybe String
- data PostCustomersCustomerCardsIdResponseBody200Owner'VerifiedAddress' = PostCustomersCustomerCardsIdResponseBody200Owner'VerifiedAddress' {
- postCustomersCustomerCardsIdResponseBody200Owner'VerifiedAddress'City :: Maybe String
- postCustomersCustomerCardsIdResponseBody200Owner'VerifiedAddress'Country :: Maybe String
- postCustomersCustomerCardsIdResponseBody200Owner'VerifiedAddress'Line1 :: Maybe String
- postCustomersCustomerCardsIdResponseBody200Owner'VerifiedAddress'Line2 :: Maybe String
- postCustomersCustomerCardsIdResponseBody200Owner'VerifiedAddress'PostalCode :: Maybe String
- postCustomersCustomerCardsIdResponseBody200Owner'VerifiedAddress'State :: Maybe String
- data PostCustomersCustomerCardsIdResponseBody200Recipient'Variants
- data PostCustomersCustomerCardsIdResponseBody200Type'
- = PostCustomersCustomerCardsIdResponseBody200Type'EnumOther Value
- | PostCustomersCustomerCardsIdResponseBody200Type'EnumTyped String
- | PostCustomersCustomerCardsIdResponseBody200Type'EnumStringAchCreditTransfer
- | PostCustomersCustomerCardsIdResponseBody200Type'EnumStringAchDebit
- | PostCustomersCustomerCardsIdResponseBody200Type'EnumStringAlipay
- | PostCustomersCustomerCardsIdResponseBody200Type'EnumStringBancontact
- | PostCustomersCustomerCardsIdResponseBody200Type'EnumStringCard
- | PostCustomersCustomerCardsIdResponseBody200Type'EnumStringCardPresent
- | PostCustomersCustomerCardsIdResponseBody200Type'EnumStringEps
- | PostCustomersCustomerCardsIdResponseBody200Type'EnumStringGiropay
- | PostCustomersCustomerCardsIdResponseBody200Type'EnumStringIdeal
- | PostCustomersCustomerCardsIdResponseBody200Type'EnumStringKlarna
- | PostCustomersCustomerCardsIdResponseBody200Type'EnumStringMultibanco
- | PostCustomersCustomerCardsIdResponseBody200Type'EnumStringP24
- | PostCustomersCustomerCardsIdResponseBody200Type'EnumStringSepaDebit
- | PostCustomersCustomerCardsIdResponseBody200Type'EnumStringSofort
- | PostCustomersCustomerCardsIdResponseBody200Type'EnumStringThreeDSecure
- | PostCustomersCustomerCardsIdResponseBody200Type'EnumStringWechat
Documentation
postCustomersCustomerCardsId Source #
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> String | customer | Constraints: Maximum length of 5000 |
-> String | id | Constraints: Maximum length of 5000 |
-> PostCustomersCustomerCardsIdRequestBody | The request body to send |
-> m (Either HttpException (Response PostCustomersCustomerCardsIdResponse)) | Monad containing the result of the operation |
POST /v1/customers/{customer}/cards/{id}
<p>Update a specified source for a given customer.</p>
postCustomersCustomerCardsIdRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> String -> PostCustomersCustomerCardsIdRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/customers/{customer}/cards/{id}
The same as postCustomersCustomerCardsId
but returns the raw ByteString
postCustomersCustomerCardsIdM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> String -> PostCustomersCustomerCardsIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostCustomersCustomerCardsIdResponse)) Source #
POST /v1/customers/{customer}/cards/{id}
Monadic version of postCustomersCustomerCardsId
(use with runWithConfiguration
)
postCustomersCustomerCardsIdRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> String -> PostCustomersCustomerCardsIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/customers/{customer}/cards/{id}
Monadic version of postCustomersCustomerCardsIdRaw
(use with runWithConfiguration
)
data PostCustomersCustomerCardsIdRequestBody Source #
Defines the data type for the schema postCustomersCustomerCardsIdRequestBody
PostCustomersCustomerCardsIdRequestBody | |
|
data PostCustomersCustomerCardsIdRequestBodyAccountHolderType' Source #
Defines the enum schema postCustomersCustomerCardsIdRequestBodyAccount_holder_type'
The type of entity that holds the account. This can be either `individual` or `company`.
Instances
data PostCustomersCustomerCardsIdRequestBodyMetadata' Source #
Defines the data type for the schema postCustomersCustomerCardsIdRequestBodyMetadata'
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 PostCustomersCustomerCardsIdRequestBodyOwner' Source #
Defines the data type for the schema postCustomersCustomerCardsIdRequestBodyOwner'
PostCustomersCustomerCardsIdRequestBodyOwner' | |
|
Instances
data PostCustomersCustomerCardsIdRequestBodyOwner'Address' Source #
Defines the data type for the schema postCustomersCustomerCardsIdRequestBodyOwner'Address'
PostCustomersCustomerCardsIdRequestBodyOwner'Address' | |
|
Instances
data PostCustomersCustomerCardsIdResponse Source #
Represents a response of the operation postCustomersCustomerCardsId
.
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), PostCustomersCustomerCardsIdResponseError
is used.
PostCustomersCustomerCardsIdResponseError String | Means either no matching case available or a parse error |
PostCustomersCustomerCardsIdResponse200 PostCustomersCustomerCardsIdResponseBody200 | Successful response. |
PostCustomersCustomerCardsIdResponseDefault Error | Error response. |
data PostCustomersCustomerCardsIdResponseBody200 Source #
Defines the data type for the schema PostCustomersCustomerCardsIdResponseBody200
PostCustomersCustomerCardsIdResponseBody200 | |
|
Instances
data PostCustomersCustomerCardsIdResponseBody200Account'Variants Source #
Define the one-of schema PostCustomersCustomerCardsIdResponseBody200Account'
The ID of the account that the bank account is associated with.
PostCustomersCustomerCardsIdResponseBody200Account'Account Account | |
PostCustomersCustomerCardsIdResponseBody200Account'String String |
Instances
data PostCustomersCustomerCardsIdResponseBody200AvailablePayoutMethods' Source #
Defines the enum schema PostCustomersCustomerCardsIdResponseBody200Available_payout_methods'
Instances
data PostCustomersCustomerCardsIdResponseBody200Customer'Variants Source #
Define the one-of schema PostCustomersCustomerCardsIdResponseBody200Customer'
The ID of the customer that the bank account is associated with.
Instances
data PostCustomersCustomerCardsIdResponseBody200Metadata' Source #
Defines the data type for the schema PostCustomersCustomerCardsIdResponseBody200Metadata'
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.
Instances
data PostCustomersCustomerCardsIdResponseBody200Object' Source #
Defines the enum schema PostCustomersCustomerCardsIdResponseBody200Object'
String representing the object's type. Objects of the same type share the same value.
Instances
data PostCustomersCustomerCardsIdResponseBody200Owner' Source #
Defines the data type for the schema PostCustomersCustomerCardsIdResponseBody200Owner'
Information about the owner of the payment instrument that may be used or required by particular source types.
PostCustomersCustomerCardsIdResponseBody200Owner' | |
|
Instances
data PostCustomersCustomerCardsIdResponseBody200Owner'Address' Source #
Defines the data type for the schema PostCustomersCustomerCardsIdResponseBody200Owner'Address'
Owner\'s address.
PostCustomersCustomerCardsIdResponseBody200Owner'Address' | |
|
Instances
data PostCustomersCustomerCardsIdResponseBody200Owner'VerifiedAddress' Source #
Defines the data type for the schema PostCustomersCustomerCardsIdResponseBody200Owner'Verified_address'
Verified owner\'s address. Verified values are verified or provided by the payment method directly (and if supported) at the time of authorization or settlement. They cannot be set or mutated.
PostCustomersCustomerCardsIdResponseBody200Owner'VerifiedAddress' | |
|
Instances
data PostCustomersCustomerCardsIdResponseBody200Recipient'Variants Source #
Define the one-of schema PostCustomersCustomerCardsIdResponseBody200Recipient'
The recipient that this card belongs to. This attribute will not be in the card object if the card belongs to a customer or account instead.
PostCustomersCustomerCardsIdResponseBody200Recipient'Recipient Recipient | |
PostCustomersCustomerCardsIdResponseBody200Recipient'String String |
Instances
data PostCustomersCustomerCardsIdResponseBody200Type' Source #
Defines the enum schema PostCustomersCustomerCardsIdResponseBody200Type'
The `type` of the source. The `type` is a payment method, one of `ach_credit_transfer`, `ach_debit`, `alipay`, `bancontact`, `card`, `card_present`, `eps`, `giropay`, `ideal`, `multibanco`, `klarna`, `p24`, `sepa_debit`, `sofort`, `three_d_secure`, or `wechat`. An additional hash is included on the source with a name matching this value. It contains additional information specific to the payment method used.