Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postCustomersCustomerSourcesId
Synopsis
- postCustomersCustomerSourcesId :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> String -> PostCustomersCustomerSourcesIdRequestBody -> m (Either HttpException (Response PostCustomersCustomerSourcesIdResponse))
- postCustomersCustomerSourcesIdRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> String -> PostCustomersCustomerSourcesIdRequestBody -> m (Either HttpException (Response ByteString))
- postCustomersCustomerSourcesIdM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> String -> PostCustomersCustomerSourcesIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostCustomersCustomerSourcesIdResponse))
- postCustomersCustomerSourcesIdRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> String -> PostCustomersCustomerSourcesIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostCustomersCustomerSourcesIdRequestBody = PostCustomersCustomerSourcesIdRequestBody {
- postCustomersCustomerSourcesIdRequestBodyAccountHolderName :: Maybe String
- postCustomersCustomerSourcesIdRequestBodyAccountHolderType :: Maybe PostCustomersCustomerSourcesIdRequestBodyAccountHolderType'
- postCustomersCustomerSourcesIdRequestBodyAddressCity :: Maybe String
- postCustomersCustomerSourcesIdRequestBodyAddressCountry :: Maybe String
- postCustomersCustomerSourcesIdRequestBodyAddressLine1 :: Maybe String
- postCustomersCustomerSourcesIdRequestBodyAddressLine2 :: Maybe String
- postCustomersCustomerSourcesIdRequestBodyAddressState :: Maybe String
- postCustomersCustomerSourcesIdRequestBodyAddressZip :: Maybe String
- postCustomersCustomerSourcesIdRequestBodyExpMonth :: Maybe String
- postCustomersCustomerSourcesIdRequestBodyExpYear :: Maybe String
- postCustomersCustomerSourcesIdRequestBodyExpand :: Maybe ([] String)
- postCustomersCustomerSourcesIdRequestBodyMetadata :: Maybe PostCustomersCustomerSourcesIdRequestBodyMetadata'
- postCustomersCustomerSourcesIdRequestBodyName :: Maybe String
- postCustomersCustomerSourcesIdRequestBodyOwner :: Maybe PostCustomersCustomerSourcesIdRequestBodyOwner'
- data PostCustomersCustomerSourcesIdRequestBodyAccountHolderType'
- = PostCustomersCustomerSourcesIdRequestBodyAccountHolderType'EnumOther Value
- | PostCustomersCustomerSourcesIdRequestBodyAccountHolderType'EnumTyped String
- | PostCustomersCustomerSourcesIdRequestBodyAccountHolderType'EnumStringCompany
- | PostCustomersCustomerSourcesIdRequestBodyAccountHolderType'EnumStringIndividual
- data PostCustomersCustomerSourcesIdRequestBodyMetadata' = PostCustomersCustomerSourcesIdRequestBodyMetadata' {
- data PostCustomersCustomerSourcesIdRequestBodyOwner' = PostCustomersCustomerSourcesIdRequestBodyOwner' {
- postCustomersCustomerSourcesIdRequestBodyOwner'Address :: Maybe PostCustomersCustomerSourcesIdRequestBodyOwner'Address'
- postCustomersCustomerSourcesIdRequestBodyOwner'Email :: Maybe String
- postCustomersCustomerSourcesIdRequestBodyOwner'Name :: Maybe String
- postCustomersCustomerSourcesIdRequestBodyOwner'Phone :: Maybe String
- data PostCustomersCustomerSourcesIdRequestBodyOwner'Address' = PostCustomersCustomerSourcesIdRequestBodyOwner'Address' {
- postCustomersCustomerSourcesIdRequestBodyOwner'Address'City :: Maybe String
- postCustomersCustomerSourcesIdRequestBodyOwner'Address'Country :: Maybe String
- postCustomersCustomerSourcesIdRequestBodyOwner'Address'Line1 :: Maybe String
- postCustomersCustomerSourcesIdRequestBodyOwner'Address'Line2 :: Maybe String
- postCustomersCustomerSourcesIdRequestBodyOwner'Address'PostalCode :: Maybe String
- postCustomersCustomerSourcesIdRequestBodyOwner'Address'State :: Maybe String
- data PostCustomersCustomerSourcesIdResponse
- data PostCustomersCustomerSourcesIdResponseBody200 = PostCustomersCustomerSourcesIdResponseBody200 {
- postCustomersCustomerSourcesIdResponseBody200Account :: Maybe PostCustomersCustomerSourcesIdResponseBody200Account'Variants
- postCustomersCustomerSourcesIdResponseBody200AccountHolderName :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200AccountHolderType :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200AchCreditTransfer :: Maybe SourceTypeAchCreditTransfer
- postCustomersCustomerSourcesIdResponseBody200AchDebit :: Maybe SourceTypeAchDebit
- postCustomersCustomerSourcesIdResponseBody200AddressCity :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200AddressCountry :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200AddressLine1 :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200AddressLine1Check :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200AddressLine2 :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200AddressState :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200AddressZip :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200AddressZipCheck :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200Alipay :: Maybe SourceTypeAlipay
- postCustomersCustomerSourcesIdResponseBody200Amount :: Maybe Integer
- postCustomersCustomerSourcesIdResponseBody200AvailablePayoutMethods :: Maybe ([] PostCustomersCustomerSourcesIdResponseBody200AvailablePayoutMethods')
- postCustomersCustomerSourcesIdResponseBody200Bancontact :: Maybe SourceTypeBancontact
- postCustomersCustomerSourcesIdResponseBody200BankName :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200Brand :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200Card :: Maybe SourceTypeCard
- postCustomersCustomerSourcesIdResponseBody200CardPresent :: Maybe SourceTypeCardPresent
- postCustomersCustomerSourcesIdResponseBody200ClientSecret :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200CodeVerification :: Maybe SourceCodeVerificationFlow
- postCustomersCustomerSourcesIdResponseBody200Country :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200Created :: Maybe Integer
- postCustomersCustomerSourcesIdResponseBody200Currency :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200Customer :: Maybe PostCustomersCustomerSourcesIdResponseBody200Customer'Variants
- postCustomersCustomerSourcesIdResponseBody200CvcCheck :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200DefaultForCurrency :: Maybe Bool
- postCustomersCustomerSourcesIdResponseBody200DynamicLast4 :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200Eps :: Maybe SourceTypeEps
- postCustomersCustomerSourcesIdResponseBody200ExpMonth :: Maybe Integer
- postCustomersCustomerSourcesIdResponseBody200ExpYear :: Maybe Integer
- postCustomersCustomerSourcesIdResponseBody200Fingerprint :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200Flow :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200Funding :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200Giropay :: Maybe SourceTypeGiropay
- postCustomersCustomerSourcesIdResponseBody200Id :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200Ideal :: Maybe SourceTypeIdeal
- postCustomersCustomerSourcesIdResponseBody200Klarna :: Maybe SourceTypeKlarna
- postCustomersCustomerSourcesIdResponseBody200Last4 :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200Livemode :: Maybe Bool
- postCustomersCustomerSourcesIdResponseBody200Metadata :: Maybe PostCustomersCustomerSourcesIdResponseBody200Metadata'
- postCustomersCustomerSourcesIdResponseBody200Multibanco :: Maybe SourceTypeMultibanco
- postCustomersCustomerSourcesIdResponseBody200Name :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200Object :: Maybe PostCustomersCustomerSourcesIdResponseBody200Object'
- postCustomersCustomerSourcesIdResponseBody200Owner :: Maybe PostCustomersCustomerSourcesIdResponseBody200Owner'
- postCustomersCustomerSourcesIdResponseBody200P24 :: Maybe SourceTypeP24
- postCustomersCustomerSourcesIdResponseBody200Receiver :: Maybe SourceReceiverFlow
- postCustomersCustomerSourcesIdResponseBody200Recipient :: Maybe PostCustomersCustomerSourcesIdResponseBody200Recipient'Variants
- postCustomersCustomerSourcesIdResponseBody200Redirect :: Maybe SourceRedirectFlow
- postCustomersCustomerSourcesIdResponseBody200RoutingNumber :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200SepaDebit :: Maybe SourceTypeSepaDebit
- postCustomersCustomerSourcesIdResponseBody200Sofort :: Maybe SourceTypeSofort
- postCustomersCustomerSourcesIdResponseBody200SourceOrder :: Maybe SourceOrder
- postCustomersCustomerSourcesIdResponseBody200StatementDescriptor :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200Status :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200ThreeDSecure :: Maybe SourceTypeThreeDSecure
- postCustomersCustomerSourcesIdResponseBody200TokenizationMethod :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200Type :: Maybe PostCustomersCustomerSourcesIdResponseBody200Type'
- postCustomersCustomerSourcesIdResponseBody200Usage :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200Wechat :: Maybe SourceTypeWechat
- data PostCustomersCustomerSourcesIdResponseBody200Account'Variants
- data PostCustomersCustomerSourcesIdResponseBody200AvailablePayoutMethods'
- = PostCustomersCustomerSourcesIdResponseBody200AvailablePayoutMethods'EnumOther Value
- | PostCustomersCustomerSourcesIdResponseBody200AvailablePayoutMethods'EnumTyped String
- | PostCustomersCustomerSourcesIdResponseBody200AvailablePayoutMethods'EnumStringInstant
- | PostCustomersCustomerSourcesIdResponseBody200AvailablePayoutMethods'EnumStringStandard
- data PostCustomersCustomerSourcesIdResponseBody200Customer'Variants
- data PostCustomersCustomerSourcesIdResponseBody200Metadata' = PostCustomersCustomerSourcesIdResponseBody200Metadata' {
- data PostCustomersCustomerSourcesIdResponseBody200Object'
- data PostCustomersCustomerSourcesIdResponseBody200Owner' = PostCustomersCustomerSourcesIdResponseBody200Owner' {
- postCustomersCustomerSourcesIdResponseBody200Owner'Address :: Maybe PostCustomersCustomerSourcesIdResponseBody200Owner'Address'
- postCustomersCustomerSourcesIdResponseBody200Owner'Email :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200Owner'Name :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200Owner'Phone :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200Owner'VerifiedAddress :: Maybe PostCustomersCustomerSourcesIdResponseBody200Owner'VerifiedAddress'
- postCustomersCustomerSourcesIdResponseBody200Owner'VerifiedEmail :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200Owner'VerifiedName :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200Owner'VerifiedPhone :: Maybe String
- data PostCustomersCustomerSourcesIdResponseBody200Owner'Address' = PostCustomersCustomerSourcesIdResponseBody200Owner'Address' {
- postCustomersCustomerSourcesIdResponseBody200Owner'Address'City :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200Owner'Address'Country :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200Owner'Address'Line1 :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200Owner'Address'Line2 :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200Owner'Address'PostalCode :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200Owner'Address'State :: Maybe String
- data PostCustomersCustomerSourcesIdResponseBody200Owner'VerifiedAddress' = PostCustomersCustomerSourcesIdResponseBody200Owner'VerifiedAddress' {
- postCustomersCustomerSourcesIdResponseBody200Owner'VerifiedAddress'City :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200Owner'VerifiedAddress'Country :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200Owner'VerifiedAddress'Line1 :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200Owner'VerifiedAddress'Line2 :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200Owner'VerifiedAddress'PostalCode :: Maybe String
- postCustomersCustomerSourcesIdResponseBody200Owner'VerifiedAddress'State :: Maybe String
- data PostCustomersCustomerSourcesIdResponseBody200Recipient'Variants
- data PostCustomersCustomerSourcesIdResponseBody200Type'
- = PostCustomersCustomerSourcesIdResponseBody200Type'EnumOther Value
- | PostCustomersCustomerSourcesIdResponseBody200Type'EnumTyped String
- | PostCustomersCustomerSourcesIdResponseBody200Type'EnumStringAchCreditTransfer
- | PostCustomersCustomerSourcesIdResponseBody200Type'EnumStringAchDebit
- | PostCustomersCustomerSourcesIdResponseBody200Type'EnumStringAlipay
- | PostCustomersCustomerSourcesIdResponseBody200Type'EnumStringBancontact
- | PostCustomersCustomerSourcesIdResponseBody200Type'EnumStringCard
- | PostCustomersCustomerSourcesIdResponseBody200Type'EnumStringCardPresent
- | PostCustomersCustomerSourcesIdResponseBody200Type'EnumStringEps
- | PostCustomersCustomerSourcesIdResponseBody200Type'EnumStringGiropay
- | PostCustomersCustomerSourcesIdResponseBody200Type'EnumStringIdeal
- | PostCustomersCustomerSourcesIdResponseBody200Type'EnumStringKlarna
- | PostCustomersCustomerSourcesIdResponseBody200Type'EnumStringMultibanco
- | PostCustomersCustomerSourcesIdResponseBody200Type'EnumStringP24
- | PostCustomersCustomerSourcesIdResponseBody200Type'EnumStringSepaDebit
- | PostCustomersCustomerSourcesIdResponseBody200Type'EnumStringSofort
- | PostCustomersCustomerSourcesIdResponseBody200Type'EnumStringThreeDSecure
- | PostCustomersCustomerSourcesIdResponseBody200Type'EnumStringWechat
Documentation
postCustomersCustomerSourcesId 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 |
-> PostCustomersCustomerSourcesIdRequestBody | The request body to send |
-> m (Either HttpException (Response PostCustomersCustomerSourcesIdResponse)) | Monad containing the result of the operation |
POST /v1/customers/{customer}/sources/{id}
<p>Update a specified source for a given customer.</p>
postCustomersCustomerSourcesIdRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> String -> PostCustomersCustomerSourcesIdRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/customers/{customer}/sources/{id}
The same as postCustomersCustomerSourcesId
but returns the raw ByteString
postCustomersCustomerSourcesIdM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> String -> PostCustomersCustomerSourcesIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostCustomersCustomerSourcesIdResponse)) Source #
POST /v1/customers/{customer}/sources/{id}
Monadic version of postCustomersCustomerSourcesId
(use with runWithConfiguration
)
postCustomersCustomerSourcesIdRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> String -> PostCustomersCustomerSourcesIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/customers/{customer}/sources/{id}
Monadic version of postCustomersCustomerSourcesIdRaw
(use with runWithConfiguration
)
data PostCustomersCustomerSourcesIdRequestBody Source #
Defines the data type for the schema postCustomersCustomerSourcesIdRequestBody
PostCustomersCustomerSourcesIdRequestBody | |
|
Instances
data PostCustomersCustomerSourcesIdRequestBodyAccountHolderType' Source #
Defines the enum schema postCustomersCustomerSourcesIdRequestBodyAccount_holder_type'
The type of entity that holds the account. This can be either `individual` or `company`.
Instances
data PostCustomersCustomerSourcesIdRequestBodyMetadata' Source #
Defines the data type for the schema postCustomersCustomerSourcesIdRequestBodyMetadata'
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 PostCustomersCustomerSourcesIdRequestBodyOwner' Source #
Defines the data type for the schema postCustomersCustomerSourcesIdRequestBodyOwner'
PostCustomersCustomerSourcesIdRequestBodyOwner' | |
|
Instances
data PostCustomersCustomerSourcesIdRequestBodyOwner'Address' Source #
Defines the data type for the schema postCustomersCustomerSourcesIdRequestBodyOwner'Address'
PostCustomersCustomerSourcesIdRequestBodyOwner'Address' | |
|
Instances
data PostCustomersCustomerSourcesIdResponse Source #
Represents a response of the operation postCustomersCustomerSourcesId
.
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), PostCustomersCustomerSourcesIdResponseError
is used.
PostCustomersCustomerSourcesIdResponseError String | Means either no matching case available or a parse error |
PostCustomersCustomerSourcesIdResponse200 PostCustomersCustomerSourcesIdResponseBody200 | Successful response. |
PostCustomersCustomerSourcesIdResponseDefault Error | Error response. |
data PostCustomersCustomerSourcesIdResponseBody200 Source #
Defines the data type for the schema PostCustomersCustomerSourcesIdResponseBody200
PostCustomersCustomerSourcesIdResponseBody200 | |
|
Instances
data PostCustomersCustomerSourcesIdResponseBody200Account'Variants Source #
Define the one-of schema PostCustomersCustomerSourcesIdResponseBody200Account'
The ID of the account that the bank account is associated with.
PostCustomersCustomerSourcesIdResponseBody200Account'Account Account | |
PostCustomersCustomerSourcesIdResponseBody200Account'String String |
Instances
data PostCustomersCustomerSourcesIdResponseBody200AvailablePayoutMethods' Source #
Defines the enum schema PostCustomersCustomerSourcesIdResponseBody200Available_payout_methods'
Instances
data PostCustomersCustomerSourcesIdResponseBody200Customer'Variants Source #
Define the one-of schema PostCustomersCustomerSourcesIdResponseBody200Customer'
The ID of the customer that the bank account is associated with.
Instances
data PostCustomersCustomerSourcesIdResponseBody200Metadata' Source #
Defines the data type for the schema PostCustomersCustomerSourcesIdResponseBody200Metadata'
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 PostCustomersCustomerSourcesIdResponseBody200Object' Source #
Defines the enum schema PostCustomersCustomerSourcesIdResponseBody200Object'
String representing the object's type. Objects of the same type share the same value.
Instances
data PostCustomersCustomerSourcesIdResponseBody200Owner' Source #
Defines the data type for the schema PostCustomersCustomerSourcesIdResponseBody200Owner'
Information about the owner of the payment instrument that may be used or required by particular source types.
PostCustomersCustomerSourcesIdResponseBody200Owner' | |
|
Instances
data PostCustomersCustomerSourcesIdResponseBody200Owner'Address' Source #
Defines the data type for the schema PostCustomersCustomerSourcesIdResponseBody200Owner'Address'
Owner\'s address.
PostCustomersCustomerSourcesIdResponseBody200Owner'Address' | |
|
Instances
data PostCustomersCustomerSourcesIdResponseBody200Owner'VerifiedAddress' Source #
Defines the data type for the schema PostCustomersCustomerSourcesIdResponseBody200Owner'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.
PostCustomersCustomerSourcesIdResponseBody200Owner'VerifiedAddress' | |
|
Instances
data PostCustomersCustomerSourcesIdResponseBody200Recipient'Variants Source #
Define the one-of schema PostCustomersCustomerSourcesIdResponseBody200Recipient'
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.
PostCustomersCustomerSourcesIdResponseBody200Recipient'Recipient Recipient | |
PostCustomersCustomerSourcesIdResponseBody200Recipient'String String |
Instances
data PostCustomersCustomerSourcesIdResponseBody200Type' Source #
Defines the enum schema PostCustomersCustomerSourcesIdResponseBody200Type'
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.