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 -> Text -> Text -> Maybe PostCustomersCustomerCardsIdRequestBody -> m (Either HttpException (Response PostCustomersCustomerCardsIdResponse))
- postCustomersCustomerCardsIdRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Text -> Text -> Maybe PostCustomersCustomerCardsIdRequestBody -> m (Either HttpException (Response ByteString))
- postCustomersCustomerCardsIdM :: forall m s. (MonadHTTP m, SecurityScheme s) => Text -> Text -> Maybe PostCustomersCustomerCardsIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostCustomersCustomerCardsIdResponse))
- postCustomersCustomerCardsIdRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => Text -> Text -> Maybe PostCustomersCustomerCardsIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostCustomersCustomerCardsIdRequestBody = PostCustomersCustomerCardsIdRequestBody {
- postCustomersCustomerCardsIdRequestBodyAccountHolderName :: Maybe Text
- postCustomersCustomerCardsIdRequestBodyAccountHolderType :: Maybe PostCustomersCustomerCardsIdRequestBodyAccountHolderType'
- postCustomersCustomerCardsIdRequestBodyAddressCity :: Maybe Text
- postCustomersCustomerCardsIdRequestBodyAddressCountry :: Maybe Text
- postCustomersCustomerCardsIdRequestBodyAddressLine1 :: Maybe Text
- postCustomersCustomerCardsIdRequestBodyAddressLine2 :: Maybe Text
- postCustomersCustomerCardsIdRequestBodyAddressState :: Maybe Text
- postCustomersCustomerCardsIdRequestBodyAddressZip :: Maybe Text
- postCustomersCustomerCardsIdRequestBodyExpMonth :: Maybe Text
- postCustomersCustomerCardsIdRequestBodyExpYear :: Maybe Text
- postCustomersCustomerCardsIdRequestBodyExpand :: Maybe ([] Text)
- postCustomersCustomerCardsIdRequestBodyMetadata :: Maybe PostCustomersCustomerCardsIdRequestBodyMetadata'
- postCustomersCustomerCardsIdRequestBodyName :: Maybe Text
- postCustomersCustomerCardsIdRequestBodyOwner :: Maybe PostCustomersCustomerCardsIdRequestBodyOwner'
- data PostCustomersCustomerCardsIdRequestBodyAccountHolderType'
- = PostCustomersCustomerCardsIdRequestBodyAccountHolderType'EnumOther Value
- | PostCustomersCustomerCardsIdRequestBodyAccountHolderType'EnumTyped Text
- | PostCustomersCustomerCardsIdRequestBodyAccountHolderType'EnumStringCompany
- | PostCustomersCustomerCardsIdRequestBodyAccountHolderType'EnumStringIndividual
- data PostCustomersCustomerCardsIdRequestBodyMetadata' = PostCustomersCustomerCardsIdRequestBodyMetadata' {
- data PostCustomersCustomerCardsIdRequestBodyOwner' = PostCustomersCustomerCardsIdRequestBodyOwner' {
- postCustomersCustomerCardsIdRequestBodyOwner'Address :: Maybe PostCustomersCustomerCardsIdRequestBodyOwner'Address'
- postCustomersCustomerCardsIdRequestBodyOwner'Email :: Maybe Text
- postCustomersCustomerCardsIdRequestBodyOwner'Name :: Maybe Text
- postCustomersCustomerCardsIdRequestBodyOwner'Phone :: Maybe Text
- data PostCustomersCustomerCardsIdRequestBodyOwner'Address' = PostCustomersCustomerCardsIdRequestBodyOwner'Address' {
- postCustomersCustomerCardsIdRequestBodyOwner'Address'City :: Maybe Text
- postCustomersCustomerCardsIdRequestBodyOwner'Address'Country :: Maybe Text
- postCustomersCustomerCardsIdRequestBodyOwner'Address'Line1 :: Maybe Text
- postCustomersCustomerCardsIdRequestBodyOwner'Address'Line2 :: Maybe Text
- postCustomersCustomerCardsIdRequestBodyOwner'Address'PostalCode :: Maybe Text
- postCustomersCustomerCardsIdRequestBodyOwner'Address'State :: Maybe Text
- data PostCustomersCustomerCardsIdResponse
- data PostCustomersCustomerCardsIdResponseBody200 = PostCustomersCustomerCardsIdResponseBody200 {
- postCustomersCustomerCardsIdResponseBody200Account :: Maybe PostCustomersCustomerCardsIdResponseBody200Account'Variants
- postCustomersCustomerCardsIdResponseBody200AccountHolderName :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200AccountHolderType :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200AchCreditTransfer :: Maybe SourceTypeAchCreditTransfer
- postCustomersCustomerCardsIdResponseBody200AchDebit :: Maybe SourceTypeAchDebit
- postCustomersCustomerCardsIdResponseBody200AddressCity :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200AddressCountry :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200AddressLine1 :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200AddressLine1Check :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200AddressLine2 :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200AddressState :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200AddressZip :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200AddressZipCheck :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200Alipay :: Maybe SourceTypeAlipay
- postCustomersCustomerCardsIdResponseBody200Amount :: Maybe Integer
- postCustomersCustomerCardsIdResponseBody200AvailablePayoutMethods :: Maybe ([] PostCustomersCustomerCardsIdResponseBody200AvailablePayoutMethods')
- postCustomersCustomerCardsIdResponseBody200Bancontact :: Maybe SourceTypeBancontact
- postCustomersCustomerCardsIdResponseBody200BankName :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200Brand :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200Card :: Maybe SourceTypeCard
- postCustomersCustomerCardsIdResponseBody200CardPresent :: Maybe SourceTypeCardPresent
- postCustomersCustomerCardsIdResponseBody200ClientSecret :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200CodeVerification :: Maybe SourceCodeVerificationFlow
- postCustomersCustomerCardsIdResponseBody200Country :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200Created :: Maybe Integer
- postCustomersCustomerCardsIdResponseBody200Currency :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200Customer :: Maybe PostCustomersCustomerCardsIdResponseBody200Customer'Variants
- postCustomersCustomerCardsIdResponseBody200CvcCheck :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200DefaultForCurrency :: Maybe Bool
- postCustomersCustomerCardsIdResponseBody200DynamicLast4 :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200Eps :: Maybe SourceTypeEps
- postCustomersCustomerCardsIdResponseBody200ExpMonth :: Maybe Integer
- postCustomersCustomerCardsIdResponseBody200ExpYear :: Maybe Integer
- postCustomersCustomerCardsIdResponseBody200Fingerprint :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200Flow :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200Funding :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200Giropay :: Maybe SourceTypeGiropay
- postCustomersCustomerCardsIdResponseBody200Id :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200Ideal :: Maybe SourceTypeIdeal
- postCustomersCustomerCardsIdResponseBody200Klarna :: Maybe SourceTypeKlarna
- postCustomersCustomerCardsIdResponseBody200Last4 :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200Livemode :: Maybe Bool
- postCustomersCustomerCardsIdResponseBody200Metadata :: Maybe PostCustomersCustomerCardsIdResponseBody200Metadata'
- postCustomersCustomerCardsIdResponseBody200Multibanco :: Maybe SourceTypeMultibanco
- postCustomersCustomerCardsIdResponseBody200Name :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200Object :: Maybe PostCustomersCustomerCardsIdResponseBody200Object'
- postCustomersCustomerCardsIdResponseBody200Owner :: Maybe PostCustomersCustomerCardsIdResponseBody200Owner'
- postCustomersCustomerCardsIdResponseBody200P24 :: Maybe SourceTypeP24
- postCustomersCustomerCardsIdResponseBody200Receiver :: Maybe SourceReceiverFlow
- postCustomersCustomerCardsIdResponseBody200Recipient :: Maybe PostCustomersCustomerCardsIdResponseBody200Recipient'Variants
- postCustomersCustomerCardsIdResponseBody200Redirect :: Maybe SourceRedirectFlow
- postCustomersCustomerCardsIdResponseBody200RoutingNumber :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200SepaDebit :: Maybe SourceTypeSepaDebit
- postCustomersCustomerCardsIdResponseBody200Sofort :: Maybe SourceTypeSofort
- postCustomersCustomerCardsIdResponseBody200SourceOrder :: Maybe SourceOrder
- postCustomersCustomerCardsIdResponseBody200StatementDescriptor :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200Status :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200ThreeDSecure :: Maybe SourceTypeThreeDSecure
- postCustomersCustomerCardsIdResponseBody200TokenizationMethod :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200Type :: Maybe PostCustomersCustomerCardsIdResponseBody200Type'
- postCustomersCustomerCardsIdResponseBody200Usage :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200Wechat :: Maybe SourceTypeWechat
- data PostCustomersCustomerCardsIdResponseBody200Account'Variants
- data PostCustomersCustomerCardsIdResponseBody200AvailablePayoutMethods'
- = PostCustomersCustomerCardsIdResponseBody200AvailablePayoutMethods'EnumOther Value
- | PostCustomersCustomerCardsIdResponseBody200AvailablePayoutMethods'EnumTyped Text
- | PostCustomersCustomerCardsIdResponseBody200AvailablePayoutMethods'EnumStringInstant
- | PostCustomersCustomerCardsIdResponseBody200AvailablePayoutMethods'EnumStringStandard
- data PostCustomersCustomerCardsIdResponseBody200Customer'Variants
- data PostCustomersCustomerCardsIdResponseBody200Metadata' = PostCustomersCustomerCardsIdResponseBody200Metadata' {
- data PostCustomersCustomerCardsIdResponseBody200Object'
- data PostCustomersCustomerCardsIdResponseBody200Owner' = PostCustomersCustomerCardsIdResponseBody200Owner' {
- postCustomersCustomerCardsIdResponseBody200Owner'Address :: Maybe PostCustomersCustomerCardsIdResponseBody200Owner'Address'
- postCustomersCustomerCardsIdResponseBody200Owner'Email :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200Owner'Name :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200Owner'Phone :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200Owner'VerifiedAddress :: Maybe PostCustomersCustomerCardsIdResponseBody200Owner'VerifiedAddress'
- postCustomersCustomerCardsIdResponseBody200Owner'VerifiedEmail :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200Owner'VerifiedName :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200Owner'VerifiedPhone :: Maybe Text
- data PostCustomersCustomerCardsIdResponseBody200Owner'Address' = PostCustomersCustomerCardsIdResponseBody200Owner'Address' {
- postCustomersCustomerCardsIdResponseBody200Owner'Address'City :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200Owner'Address'Country :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200Owner'Address'Line1 :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200Owner'Address'Line2 :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200Owner'Address'PostalCode :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200Owner'Address'State :: Maybe Text
- data PostCustomersCustomerCardsIdResponseBody200Owner'VerifiedAddress' = PostCustomersCustomerCardsIdResponseBody200Owner'VerifiedAddress' {
- postCustomersCustomerCardsIdResponseBody200Owner'VerifiedAddress'City :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200Owner'VerifiedAddress'Country :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200Owner'VerifiedAddress'Line1 :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200Owner'VerifiedAddress'Line2 :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200Owner'VerifiedAddress'PostalCode :: Maybe Text
- postCustomersCustomerCardsIdResponseBody200Owner'VerifiedAddress'State :: Maybe Text
- data PostCustomersCustomerCardsIdResponseBody200Recipient'Variants
- data PostCustomersCustomerCardsIdResponseBody200Type'
- = PostCustomersCustomerCardsIdResponseBody200Type'EnumOther Value
- | PostCustomersCustomerCardsIdResponseBody200Type'EnumTyped Text
- | 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 |
-> Text | customer | Constraints: Maximum length of 5000 |
-> Text | id | Constraints: Maximum length of 5000 |
-> Maybe 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 -> Text -> Text -> Maybe 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) => Text -> Text -> Maybe 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) => Text -> Text -> Maybe 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'Text Text |
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'Text Text |
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.