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 -> Text -> Text -> Maybe PostCustomersCustomerSourcesIdRequestBody -> m (Either HttpException (Response PostCustomersCustomerSourcesIdResponse))
- postCustomersCustomerSourcesIdRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> Text -> Text -> Maybe PostCustomersCustomerSourcesIdRequestBody -> m (Either HttpException (Response ByteString))
- postCustomersCustomerSourcesIdM :: forall m s. (MonadHTTP m, SecurityScheme s) => Text -> Text -> Maybe PostCustomersCustomerSourcesIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostCustomersCustomerSourcesIdResponse))
- postCustomersCustomerSourcesIdRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => Text -> Text -> Maybe PostCustomersCustomerSourcesIdRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostCustomersCustomerSourcesIdRequestBody = PostCustomersCustomerSourcesIdRequestBody {
- postCustomersCustomerSourcesIdRequestBodyAccountHolderName :: Maybe Text
- postCustomersCustomerSourcesIdRequestBodyAccountHolderType :: Maybe PostCustomersCustomerSourcesIdRequestBodyAccountHolderType'
- postCustomersCustomerSourcesIdRequestBodyAddressCity :: Maybe Text
- postCustomersCustomerSourcesIdRequestBodyAddressCountry :: Maybe Text
- postCustomersCustomerSourcesIdRequestBodyAddressLine1 :: Maybe Text
- postCustomersCustomerSourcesIdRequestBodyAddressLine2 :: Maybe Text
- postCustomersCustomerSourcesIdRequestBodyAddressState :: Maybe Text
- postCustomersCustomerSourcesIdRequestBodyAddressZip :: Maybe Text
- postCustomersCustomerSourcesIdRequestBodyExpMonth :: Maybe Text
- postCustomersCustomerSourcesIdRequestBodyExpYear :: Maybe Text
- postCustomersCustomerSourcesIdRequestBodyExpand :: Maybe ([] Text)
- postCustomersCustomerSourcesIdRequestBodyMetadata :: Maybe PostCustomersCustomerSourcesIdRequestBodyMetadata'
- postCustomersCustomerSourcesIdRequestBodyName :: Maybe Text
- postCustomersCustomerSourcesIdRequestBodyOwner :: Maybe PostCustomersCustomerSourcesIdRequestBodyOwner'
- data PostCustomersCustomerSourcesIdRequestBodyAccountHolderType'
- = PostCustomersCustomerSourcesIdRequestBodyAccountHolderType'EnumOther Value
- | PostCustomersCustomerSourcesIdRequestBodyAccountHolderType'EnumTyped Text
- | PostCustomersCustomerSourcesIdRequestBodyAccountHolderType'EnumStringCompany
- | PostCustomersCustomerSourcesIdRequestBodyAccountHolderType'EnumStringIndividual
- data PostCustomersCustomerSourcesIdRequestBodyMetadata' = PostCustomersCustomerSourcesIdRequestBodyMetadata' {
- data PostCustomersCustomerSourcesIdRequestBodyOwner' = PostCustomersCustomerSourcesIdRequestBodyOwner' {
- postCustomersCustomerSourcesIdRequestBodyOwner'Address :: Maybe PostCustomersCustomerSourcesIdRequestBodyOwner'Address'
- postCustomersCustomerSourcesIdRequestBodyOwner'Email :: Maybe Text
- postCustomersCustomerSourcesIdRequestBodyOwner'Name :: Maybe Text
- postCustomersCustomerSourcesIdRequestBodyOwner'Phone :: Maybe Text
- data PostCustomersCustomerSourcesIdRequestBodyOwner'Address' = PostCustomersCustomerSourcesIdRequestBodyOwner'Address' {
- postCustomersCustomerSourcesIdRequestBodyOwner'Address'City :: Maybe Text
- postCustomersCustomerSourcesIdRequestBodyOwner'Address'Country :: Maybe Text
- postCustomersCustomerSourcesIdRequestBodyOwner'Address'Line1 :: Maybe Text
- postCustomersCustomerSourcesIdRequestBodyOwner'Address'Line2 :: Maybe Text
- postCustomersCustomerSourcesIdRequestBodyOwner'Address'PostalCode :: Maybe Text
- postCustomersCustomerSourcesIdRequestBodyOwner'Address'State :: Maybe Text
- data PostCustomersCustomerSourcesIdResponse
- data PostCustomersCustomerSourcesIdResponseBody200 = PostCustomersCustomerSourcesIdResponseBody200 {
- postCustomersCustomerSourcesIdResponseBody200Account :: Maybe PostCustomersCustomerSourcesIdResponseBody200Account'Variants
- postCustomersCustomerSourcesIdResponseBody200AccountHolderName :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200AccountHolderType :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200AchCreditTransfer :: Maybe SourceTypeAchCreditTransfer
- postCustomersCustomerSourcesIdResponseBody200AchDebit :: Maybe SourceTypeAchDebit
- postCustomersCustomerSourcesIdResponseBody200AddressCity :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200AddressCountry :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200AddressLine1 :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200AddressLine1Check :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200AddressLine2 :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200AddressState :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200AddressZip :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200AddressZipCheck :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200Alipay :: Maybe SourceTypeAlipay
- postCustomersCustomerSourcesIdResponseBody200Amount :: Maybe Integer
- postCustomersCustomerSourcesIdResponseBody200AvailablePayoutMethods :: Maybe ([] PostCustomersCustomerSourcesIdResponseBody200AvailablePayoutMethods')
- postCustomersCustomerSourcesIdResponseBody200Bancontact :: Maybe SourceTypeBancontact
- postCustomersCustomerSourcesIdResponseBody200BankName :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200Brand :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200Card :: Maybe SourceTypeCard
- postCustomersCustomerSourcesIdResponseBody200CardPresent :: Maybe SourceTypeCardPresent
- postCustomersCustomerSourcesIdResponseBody200ClientSecret :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200CodeVerification :: Maybe SourceCodeVerificationFlow
- postCustomersCustomerSourcesIdResponseBody200Country :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200Created :: Maybe Integer
- postCustomersCustomerSourcesIdResponseBody200Currency :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200Customer :: Maybe PostCustomersCustomerSourcesIdResponseBody200Customer'Variants
- postCustomersCustomerSourcesIdResponseBody200CvcCheck :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200DefaultForCurrency :: Maybe Bool
- postCustomersCustomerSourcesIdResponseBody200DynamicLast4 :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200Eps :: Maybe SourceTypeEps
- postCustomersCustomerSourcesIdResponseBody200ExpMonth :: Maybe Integer
- postCustomersCustomerSourcesIdResponseBody200ExpYear :: Maybe Integer
- postCustomersCustomerSourcesIdResponseBody200Fingerprint :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200Flow :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200Funding :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200Giropay :: Maybe SourceTypeGiropay
- postCustomersCustomerSourcesIdResponseBody200Id :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200Ideal :: Maybe SourceTypeIdeal
- postCustomersCustomerSourcesIdResponseBody200Klarna :: Maybe SourceTypeKlarna
- postCustomersCustomerSourcesIdResponseBody200Last4 :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200Livemode :: Maybe Bool
- postCustomersCustomerSourcesIdResponseBody200Metadata :: Maybe PostCustomersCustomerSourcesIdResponseBody200Metadata'
- postCustomersCustomerSourcesIdResponseBody200Multibanco :: Maybe SourceTypeMultibanco
- postCustomersCustomerSourcesIdResponseBody200Name :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200Object :: Maybe PostCustomersCustomerSourcesIdResponseBody200Object'
- postCustomersCustomerSourcesIdResponseBody200Owner :: Maybe PostCustomersCustomerSourcesIdResponseBody200Owner'
- postCustomersCustomerSourcesIdResponseBody200P24 :: Maybe SourceTypeP24
- postCustomersCustomerSourcesIdResponseBody200Receiver :: Maybe SourceReceiverFlow
- postCustomersCustomerSourcesIdResponseBody200Recipient :: Maybe PostCustomersCustomerSourcesIdResponseBody200Recipient'Variants
- postCustomersCustomerSourcesIdResponseBody200Redirect :: Maybe SourceRedirectFlow
- postCustomersCustomerSourcesIdResponseBody200RoutingNumber :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200SepaDebit :: Maybe SourceTypeSepaDebit
- postCustomersCustomerSourcesIdResponseBody200Sofort :: Maybe SourceTypeSofort
- postCustomersCustomerSourcesIdResponseBody200SourceOrder :: Maybe SourceOrder
- postCustomersCustomerSourcesIdResponseBody200StatementDescriptor :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200Status :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200ThreeDSecure :: Maybe SourceTypeThreeDSecure
- postCustomersCustomerSourcesIdResponseBody200TokenizationMethod :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200Type :: Maybe PostCustomersCustomerSourcesIdResponseBody200Type'
- postCustomersCustomerSourcesIdResponseBody200Usage :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200Wechat :: Maybe SourceTypeWechat
- data PostCustomersCustomerSourcesIdResponseBody200Account'Variants
- data PostCustomersCustomerSourcesIdResponseBody200AvailablePayoutMethods'
- = PostCustomersCustomerSourcesIdResponseBody200AvailablePayoutMethods'EnumOther Value
- | PostCustomersCustomerSourcesIdResponseBody200AvailablePayoutMethods'EnumTyped Text
- | PostCustomersCustomerSourcesIdResponseBody200AvailablePayoutMethods'EnumStringInstant
- | PostCustomersCustomerSourcesIdResponseBody200AvailablePayoutMethods'EnumStringStandard
- data PostCustomersCustomerSourcesIdResponseBody200Customer'Variants
- data PostCustomersCustomerSourcesIdResponseBody200Metadata' = PostCustomersCustomerSourcesIdResponseBody200Metadata' {
- data PostCustomersCustomerSourcesIdResponseBody200Object'
- data PostCustomersCustomerSourcesIdResponseBody200Owner' = PostCustomersCustomerSourcesIdResponseBody200Owner' {
- postCustomersCustomerSourcesIdResponseBody200Owner'Address :: Maybe PostCustomersCustomerSourcesIdResponseBody200Owner'Address'
- postCustomersCustomerSourcesIdResponseBody200Owner'Email :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200Owner'Name :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200Owner'Phone :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200Owner'VerifiedAddress :: Maybe PostCustomersCustomerSourcesIdResponseBody200Owner'VerifiedAddress'
- postCustomersCustomerSourcesIdResponseBody200Owner'VerifiedEmail :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200Owner'VerifiedName :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200Owner'VerifiedPhone :: Maybe Text
- data PostCustomersCustomerSourcesIdResponseBody200Owner'Address' = PostCustomersCustomerSourcesIdResponseBody200Owner'Address' {
- postCustomersCustomerSourcesIdResponseBody200Owner'Address'City :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200Owner'Address'Country :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200Owner'Address'Line1 :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200Owner'Address'Line2 :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200Owner'Address'PostalCode :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200Owner'Address'State :: Maybe Text
- data PostCustomersCustomerSourcesIdResponseBody200Owner'VerifiedAddress' = PostCustomersCustomerSourcesIdResponseBody200Owner'VerifiedAddress' {
- postCustomersCustomerSourcesIdResponseBody200Owner'VerifiedAddress'City :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200Owner'VerifiedAddress'Country :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200Owner'VerifiedAddress'Line1 :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200Owner'VerifiedAddress'Line2 :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200Owner'VerifiedAddress'PostalCode :: Maybe Text
- postCustomersCustomerSourcesIdResponseBody200Owner'VerifiedAddress'State :: Maybe Text
- data PostCustomersCustomerSourcesIdResponseBody200Recipient'Variants
- data PostCustomersCustomerSourcesIdResponseBody200Type'
- = PostCustomersCustomerSourcesIdResponseBody200Type'EnumOther Value
- | PostCustomersCustomerSourcesIdResponseBody200Type'EnumTyped Text
- | 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 |
-> Text | customer | Constraints: Maximum length of 5000 |
-> Text | id | Constraints: Maximum length of 5000 |
-> Maybe 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 -> Text -> Text -> Maybe 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) => Text -> Text -> Maybe 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) => Text -> Text -> Maybe 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'Text Text |
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'Text Text |
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.