Copyright | (c) Dylan Martin 2022 |
---|---|
Maintainer | dmarticus@gmail.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- newtype ApiToken = ApiToken {}
- data CircleAPIRequest a b c = CircleAPIRequest {}
- mkCircleAPIRequest :: Method -> Text -> Params TupleBS8 ByteString -> CircleAPIRequest a b c
- type family CircleRequest a :: *
- data CircleError = CircleError {
- parseError :: !Text
- errorResponseBody :: !Reply
- data CircleResponseBody a = CircleResponseBody {}
- newtype ResponseStatus = ResponseStatus {}
- newtype ResponseMessage = ResponseMessage {}
- type Reply = Response ByteString
- type Method = Method
- type Host = Text
- data CircleHost
- hostUri :: CircleHost -> Text
- data CircleConfig = CircleConfig {
- host :: !CircleHost
- token :: !ApiToken
- credentialsEnv :: Maybe String -> IO ApiToken
- prodEnvConfig :: Maybe String -> IO CircleConfig
- sandboxEnvConfig :: Maybe String -> IO CircleConfig
- newtype Query = Query {}
- newtype Body = Body {
- unBody :: ByteString
- data Params b c = Params {
- paramsBody :: Maybe Body
- paramsQuery :: ![Query]
- joinQueryParams :: Params b c -> Params b c -> Params b c
- type TupleBS8 = (ByteString, ByteString)
- class ToCircleParam param where
- toCircleParam :: param -> Params TupleBS8 c -> Params TupleBS8 c
- class ToCircleParam param => CircleHasParam request param
- (-&-) :: CircleHasParam r param => CircleAPIRequest r b c -> param -> CircleAPIRequest r b c
- newtype PaginationQueryParams = PaginationQueryParams {}
- data PaginationQueryParam
- = PageBefore !Text
- | PageAfter !Text
- newtype FromQueryParam = FromQueryParam {}
- newtype ToQueryParam = ToQueryParam {}
- newtype PageSizeQueryParam = PageSizeQueryParam {}
- newtype StatusQueryParams = StatusQueryParams {
- statusQueryParams :: [Status]
- statusToBS8 :: Status -> ByteString
- newtype DestinationQueryParam = DestinationQueryParam {}
- newtype TypeQueryParam = TypeQueryParam {}
- bankAccountTypeToBS8 :: BankAccountType -> ByteString
- newtype CurrencyQueryParam = CurrencyQueryParam {}
- currencyToBS8 :: SupportedCurrencies -> ByteString
- newtype SourceQueryParam = SourceQueryParam {}
- newtype SettlementIdQueryParam = SettlementIdQueryParam {}
- newtype PaymentIntentIdQueryParam = PaymentIntentIdQueryParam {}
- newtype PaymentIdQueryParam = PaymentIdQueryParam {}
- newtype PaymentStatusQueryParams = PaymentStatusQueryParams {}
- paymentStatusToBS8 :: PaymentStatus -> ByteString
- newtype PaymentIntentContextQueryParams = PaymentIntentContextQueryParams {}
- paymentIntentContextToBS8 :: PaymentIntentContext -> ByteString
- newtype WalletIdQueryParam = WalletIdQueryParam {}
- newtype SourceWalletIdQueryParam = SourceWalletIdQueryParam {}
- newtype DestinationWalletIdQueryParam = DestinationWalletIdQueryParam {}
- newtype ReturnIdentitiesQueryParam = ReturnIdentitiesQueryParam {}
- data BalanceRequest
- data BalanceResponseBody = BalanceResponseBody {}
- data PayoutRequest
- data PayoutsRequest
- data PayoutResponseBody = PayoutResponseBody {
- payoutResponseBodyId :: !UUID
- payoutResponseBodySourceWalletId :: !WalletId
- payoutResponseBodyDestinationBankAccount :: !DestinationBankAccount
- payoutResponseBodyAmount :: !MoneyAmount
- payoutResponseBodyFees :: !MoneyAmount
- payoutResponseBodyStatus :: !Status
- payoutResponseBodyTrackingRef :: !TrackingReference
- payoutResponseBodyPayoutErrorCode :: !PayoutErrorCode
- payoutResponseBodyRiskEvaluation :: !RiskEvaluation
- payoutResponseBodyAdjustments :: !Adjustments
- payoutResponseBodyPayoutReturn :: !PayoutReturnResponseBody
- payoutResponseBodyCreateDate :: !UTCTime
- payoutResponseBodyUpdateDate :: !UTCTime
- data BusinessPayoutRequestBody = BusinessPayoutRequestBody {}
- newtype PayoutMetadata = PayoutMetadata {}
- data PayoutRequestBody = PayoutRequestBody {}
- data PayoutReturnResponseBody = PayoutReturnResponseBody {
- payoutReturnResponseBodyId :: !UUID
- payoutReturnResponseBodyOriginalPayoutId :: !UUID
- payoutReturnResponseBodyAmount :: !MoneyAmount
- payoutReturnResponseBodyFees :: !MoneyAmount
- payoutReturnResponseBodyReason :: !Text
- payoutReturnResponseBodyStatus :: !Status
- payoutReturnResponseBodyCreateDate :: !UTCTime
- payoutReturnResponseBodyUpdateDate :: !UTCTime
- data PayoutErrorCode
- data ConfigurationRequest
- newtype ConfigurationResponseBody = ConfigurationResponseBody {}
- newtype WalletConfig = WalletConfig {}
- data EncryptionRequest
- data EncryptionResponseBody = EncryptionResponseBody {}
- newtype PGPKey = PGPKey {}
- data ChannelsRequest
- newtype ChannelResponseBody = ChannelResponseBody {}
- data Channel = Channel {
- channelId :: !UUID
- channelDefault :: !Bool
- channelCardDescriptor :: !Text
- channelAchDescriptor :: !Text
- data StablecoinsRequest
- data StablecoinResponseBody = StablecoinResponseBody {}
- data ChainAmount = ChainAmount {}
- data Chain
- data Stablecoin
- data SubscriptionsRequest
- data SubscriptionRequest
- data SubscriptionResponseBody = SubscriptionResponseBody {}
- data SubscriptionDetails = SubscriptionDetails {}
- newtype SubscriptionRequestBody = SubscriptionRequestBody {}
- data TransfersRequest
- data TransferRequest
- data BusinessTransferRequestBody = BusinessTransferRequestBody {}
- data TransferRequestBody = TransferRequestBody {}
- data TransferDestination = TransferDestination {}
- data DestinationType = VerifiedBlockchain
- data TransferResponseBody = TransferResponseBody {
- transferResponseBodyId :: !UUID
- transferResponseBodySource :: !(ThisOrThat SourceWallet SourceBlockchain)
- transferResponseBodyDestination :: !(ThisOrThat DestinationWallet DestinationBlockchain)
- transferResponseBodyAmount :: !MoneyAmount
- transferResponseBodyFees :: !TransferFeeAmount
- transferResponseBodyTransactionHash :: !(Maybe HexString)
- transferResponseBodyStatus :: !Status
- transferResponseBodyTransferErrorCode :: !(Maybe TransferErrorCode)
- transferResponseBodyRiskEvaluation :: !(Maybe RiskEvaluation)
- transferResponseBodyCreateDate :: !(Maybe UTCTime)
- data SourceWallet = SourceWallet {}
- data SourceBlockchain = SourceBlockchain {}
- data DestinationWallet = DestinationWallet {}
- data DestinationBlockchain = DestinationBlockchain {}
- data Identity = Identity {
- identityType :: !IdentityType
- identityName :: !Text
- identityAddresses :: ![Address]
- data IdentityType
- data TransferType
- = Wallet
- | Blockchain
- data TransferErrorCode
- data DepositAddressesRequest
- data DepositAddressRequest
- data DepositAddressResponseBody = DepositAddressResponseBody {}
- data DepositAddressRequestBody = DepositAddressRequestBody {}
- data RecipientAddressesRequest
- data RecipientAddressRequest
- data RecipientAddressResponseBody = RecipientAddressResponseBody {}
- data RecipientAddressRequestBody = RecipientAddressRequestBody {
- recipientAddressRequestBodyIdempotencyKey :: !UUID
- recipientAddressRequestBodyAddress :: !HexString
- recipientAddressRequestBodyAddressTag :: !(Maybe Text)
- recipientAddressRequestBodyChain :: !Chain
- recipientAddressRequestBodyCurrency :: !SupportedCurrencies
- recipientAddressRequestBodyDescription :: !Text
- data DepositsRequest
- data DepositResponseBody = DepositResponseBody {
- depositResponseBodyId :: !UUID
- depositResponseBodySourceWalletId :: !(Maybe WalletId)
- depositResponseBodyDestination :: !DestinationWallet
- depositResponseBodyAmount :: !MoneyAmount
- depositResponseBodyFee :: !MoneyAmount
- depositResponseBodyStatus :: !Status
- depositResponseBodyRiskEvaluation :: !(Maybe RiskEvaluation)
- depositResponseBodyCreateDate :: !UTCTime
- depositResponseBodyUpdateDate :: !(Maybe UTCTime)
- data MockPaymentRequest
- data MockPaymentResponseBody = MockPaymentResponseBody {}
- data MockSenOrWirePaymentRequestBody = MockSenOrWirePaymentRequestBody {}
- data MockSEPAPaymentRequestBody = MockSEPAPaymentRequestBody {}
- newtype MockBeneficiaryBankDetails = MockBeneficiaryBankDetails {}
- data SENAccountRequest
- data SENAccountsRequest
- data SENInstructionsRequest
- data SENAccountRequestBody = SENAccountRequestBody {}
- data SENAccountResponseBody = SENAccountResponseBody {
- senAccountResponseBodyId :: !UUID
- senAccountResponseBodyStatus :: !Status
- senAccountResponseBodyDescription :: !Text
- senAccountResponseBodyTrackingRef :: !TrackingReference
- senAccountResponseBodyCreateDate :: !UTCTime
- senAccountResponseBodyUpdateDate :: !UTCTime
- senAccountResponseBodyCurrency :: !(Maybe SupportedCurrencies)
- data SENInstructionsResponseData = SENInstructionsResponseData {}
- data SignetBankAccountRequest
- data SignetBankAccountsRequest
- data SignetBankInstructionsRequest
- data SignetBankAccountRequestBody = SignetBankAccountRequestBody {}
- data SignetBankAccountResponseData = SignetBankAccountResponseData {}
- data SignetBankInstructionsResponseData = SignetBankInstructionsResponseData {}
- data WireAccountRequest
- data WireAccountsRequest
- data WireInstructionsRequest
- data WireAccountRequestBody
- data USBankAccountRequestBody = USBankAccountRequestBody {}
- data IBANBankAccountRequestBody = IBANBankAccountRequestBody {}
- data NonIBANBankAccountRequestBody = NonIBANBankAccountRequestBody {}
- data WireInstructionsResponseData = WireInstructionsResponseData {}
- data WireAccountResponseBody = WireAccountResponseBody {
- wireAccountResponseBodyId :: !UUID
- wireAccountResponseBodyStatus :: !Status
- wireAccountResponseBodyDescription :: !Text
- wireAccountResponseBodyTrackingRef :: !TrackingReference
- wireAccountResponseBodyFingerprint :: !UUID
- wireAccountResponseBodyBillingDetails :: !BillingDetails
- wireAccountResponseBodyBankAddress :: !BankAddress
- wireAccountResponseBodyCreateDate :: !UTCTime
- wireAccountResponseBodyUpdateDate :: !UTCTime
- data PaymentRequest
- data PaymentsRequest
- data CreatePaymentRequestBody = CreatePaymentRequestBody {
- createPaymentIdempotencyKey :: !UUID
- createPaymentKeyId :: !Text
- requestMetadata :: !RequestMetadata
- createPaymentAmount :: !MoneyAmount
- createPaymentAutoCapture :: !(Maybe Bool)
- createPaymentVerification :: !VerificationType
- createPaymentVerificationSuccessUrl :: !(Maybe URL)
- createPaymentVerificationFailureUrl :: !(Maybe URL)
- createPaymentSource :: !PaymentSource
- createPaymentDescription :: !(Maybe Text)
- createPaymentEncryptedData :: !(Maybe Text)
- createPaymentChannel :: !(Maybe UUID)
- data RequestMetadata = RequestMetadata {}
- newtype SessionId = SessionId {
- unSessionId :: Text
- newtype IPAddress = IPAddress {
- unIPAddress :: Text
- newtype PhoneNumber = PhoneNumber {}
- data PaymentErrorCode
- = PaymentFailedErrorCode
- | PaymentFraudDetected
- | PaymentDenied
- | PaymentNotSupportedByIssuer
- | PaymentNotFunded
- | PaymentUnprocessable
- | PaymentStoppedByIssuer
- | PaymentCanceled
- | PaymentReturned
- | PaymentFailedBalanceCheck
- | CardFailed
- | CardInvalid
- | CardAddressMismatch
- | CardZipMismatch
- | CardCvvInvalid
- | CardExpired
- | CardLimitViolated
- | CardNotHonored
- | CardCvvRequired
- | CardRestricted
- | CardAccountIneligible
- | CardNetworkUnsupported
- | ChannelInvalid
- | UnauthorizedTransaction
- | BankAccountIneligible
- | PaymentBankTransactionError
- | InvalidAccountNumber
- | InvalidWireRtn
- | InvalidAchRtn
- | RefIdInvalid
- | AccountNameMismatch
- | AccountNumberMismatch
- | AccountIneligible
- | WalletAddressMismatch
- | CustomerNameMismatch
- | InstitutionNameMismatch
- | PaymentVendorInactive
- data FiatOrCryptoPaymentResponseBody = FiatOrCryptoPaymentResponseBody {
- fiatOrCryptoPaymentId :: !UUID
- fiatOrCryptoPaymentType :: !PaymentType
- fiatOrCryptoPaymentMerchantId :: !UUID
- fiatOrCryptoPaymentMerchantWalletId :: !WalletId
- fiatOrCryptoPaymentAmount :: !MoneyAmount
- fiatOrCryptoPaymentSource :: !PaymentSource
- fiatOrCryptoPaymentDescription :: !Text
- fiatOrCryptoPaymentStatus :: !PaymentStatus
- fiatOrCryptoPaymentPaymentIntentId :: !(Maybe UUID)
- fiatOrCryptoPaymentSettlementAmount :: !(Maybe MoneyAmount)
- fiatOrCryptoPaymentDepositAddress :: !(Maybe PaymentDepositAddress)
- fiatOrCryptoPaymentTransactionHash :: !(Maybe HexString)
- fiatOrCryptoPaymentVerification :: !(Maybe VerificationData)
- fiatOrCryptoPaymentCaptured :: !(Maybe Bool)
- fiatOrCryptoPaymentCaptureAmount :: !(Maybe MoneyAmount)
- fiatOrCryptoPaymentCaptureDate :: !(Maybe UTCTime)
- fiatOrCryptoPaymentRequiredAction :: !(Maybe PaymentActionRequired)
- fiatOrCryptoPaymentCancel :: !(Maybe FiatCancelOrRefundResponseBody)
- fiatOrCryptoPaymentRefunds :: !(Maybe [FiatCancelOrRefundResponseBody])
- fiatOrCryptoPaymentFees :: !(Maybe MoneyAmount)
- fiatOrCryptoPaymentChannel :: !(Maybe UUID)
- fiatOrCryptoPaymentCreateDate :: !(Maybe UTCTime)
- fiatOrCryptoPaymentUpdateDate :: !(Maybe UTCTime)
- fiatOrCryptoPaymentTrackingRef :: !(Maybe TrackingReference)
- fiatOrCryptoPaymentErrorCode :: !(Maybe PaymentErrorCode)
- fiatOrCryptoMetadata :: !(Maybe ResponseMetadata)
- fiatOrCryptoPaymentRiskEvaluation :: !(Maybe RiskEvaluation)
- data ResponseMetadata = ResponseMetadata {}
- data VerificationData = VerificationData {
- verificationAVS :: !AVS
- verificationCVV :: !CVV
- data AVS
- = AVSNotRequested
- | AVSPending
- | Y
- | N
- data CVV
- data PaymentDepositAddress = PaymentDepositAddress {}
- data FiatCancelOrRefundResponseBody = FiatCancelOrRefundResponseBody {
- fiatCancelOrRefundResponseBodyId :: !UUID
- fiatCancelOrRefundResponseBodyType :: !PaymentType
- fiatCancelOrRefundResponseBodyMerchantId :: !UUID
- fiatCancelOrRefundResponseBodyMerchantWalletId :: !WalletId
- fiatCancelOrRefundResponseBodyAmount :: !MoneyAmount
- fiatCancelOrRefundResponseBodySource :: !PaymentSource
- fiatCancelOrRefundResponseBodyDescription :: !Text
- fiatCancelOrRefundResponseBodyStatus :: !PaymentStatus
- fiatCancelOrRefundResponseBodyOriginalPayment :: !OriginalFiatPayment
- fiatCancelOrRefundResponseBodyFees :: !(Maybe MoneyAmount)
- fiatCancelOrRefundResponseBodyChannel :: !(Maybe Text)
- fiatCancelOrRefundResponseBodyReason :: !(Maybe CancelPaymentReason)
- fiatCancelOrRefundResponseBodyCreateDate :: !UTCTime
- fiatCancelOrRefundResponseBodyUpdateDate :: !UTCTime
- data OriginalFiatPayment = OriginalFiatPayment {
- originalFiatPaymentId :: !UUID
- originalFiatPaymentType :: !PaymentType
- originalFiatPaymentStatus :: !PaymentStatus
- originalFiatPaymentCreateDate :: !UTCTime
- originalFiatPaymentUpdateDate :: !UTCTime
- originalFiatPaymentDescription :: !(Maybe Text)
- originalFiatPaymentAmount :: !(Maybe MoneyAmount)
- originalFiatPaymentFees :: !(Maybe MoneyAmount)
- originalFiatPaymentMerchantId :: !(Maybe UUID)
- originalFiatPaymentMerchantWalletId :: !(Maybe WalletId)
- originalFiatPaymentSource :: !(Maybe PaymentSource)
- originalFiatPaymentTrackingRef :: !(Maybe TrackingReference)
- data PaymentSource = PaymentSource {}
- data PaymentActionRequired = PaymentActionRequired {}
- data ActionRequiredType = ThreeDSecureRequired
- data VerificationType
- data PaymentType
- data PaymentSourceType
- = Card
- | ACH
- | WireSource
- | SEPA
- data CancelPaymentRequestBody = CancelPaymentRequestBody {}
- data CancelPaymentReason
- data RefundPaymentRequestBody = RefundPaymentRequestBody {}
- data OnChainTransferRequest
- data OnChainTransfersRequest
- data OnChainAddressRequest
- data OnChainTransferRequestBody = OnChainTransferRequestBody {}
- data CardsRequest
- data CardRequest
- data ListCardResponseBody = ListCardResponseBody {
- listCardId :: !UUID
- listCardStatus :: !Status
- listCardBillingDetails :: !ListCardBillingDetails
- listCardExpiryMonth :: !Int
- listCardExpiryYear :: !Int
- listCardNetwork :: !CardNetwork
- listCardBin :: !(Maybe Text)
- listCardIssuerCountry :: !(Maybe ISO3166Alpha2)
- listCardFingerprint :: !UUID
- listCardVerification :: !VerificationData
- listCardRiskEvaluation :: !(Maybe RiskEvaluation)
- listCardCreateDate :: !UTCTime
- listCardUpdateDate :: !UTCTime
- data CardResponseBody = CardResponseBody {
- cardId :: !UUID
- cardStatus :: !Status
- cardBillingDetails :: !BillingDetails
- cardExpiryMonth :: !Int
- cardExpiryYear :: !Int
- cardNetwork :: !CardNetwork
- cardLast4 :: !Text
- cardBin :: !(Maybe Text)
- cardIssuerCountry :: !(Maybe ISO3166Alpha2)
- cardFundingType :: !(Maybe CardFundingType)
- cardFingerprint :: !UUID
- cardErrorCode :: !(Maybe VerificationErrorCode)
- cardVerification :: !VerificationData
- cardRiskEvaluation :: !(Maybe RiskEvaluation)
- cardMetadata :: !ResponseMetadata
- cardCreateDate :: !UTCTime
- cardUpdateDate :: !UTCTime
- data CreateCardRequestBody = CreateCardRequestBody {}
- data UpdateCardRequestBody = UpdateCardRequestBody {
- updateCardKeyId :: !(Maybe Text)
- updateCardEncryptedData :: !(Maybe Text)
- updateCardExpiryMonth :: !Int
- updateCardExpiryYear :: !Int
- data ListCardBillingDetails = ListCardBillingDetails {}
- data CardNetwork
- = VISA
- | MASTERCARD
- | AMEX
- | UNKNOWN
- data CardFundingType
- data VerificationErrorCode
- = VerificationFailed
- | VerificationFraudDetected
- | VerificationDenied
- | VerificationNotSupportedByIssuer
- | VerificationStoppedByIssuer
- | VerificationCardFailed
- | VerificationCardInvalid
- | VerificationCardAddressMismatch
- | VerificationCardZipMismatch
- | VerificationCardCvvInvalid
- | VerificationCardExpired
- | VerificationCardLimitViolated
- | VerificationCardNotHonored
- | VerificationCardCvvRequired
- | VerificationCreditCardNotAllowed
- | VerificationCardAccountIneligible
- | VerificationCardNetworkUnsupported
- data ACHBankAccountRequest
- data ACHBankAccountResponseBody = ACHBankAccountResponseBody {
- achBankAccountId :: !UUID
- achBankAccountStatus :: !Status
- achBankAccountAccountNumber :: !AccountNumber
- achBankAccountRoutingNumber :: !RoutingNumber
- achBankAccountBillingDetails :: !BillingDetails
- achBankAccountType :: !(Maybe ACHBankAccountType)
- achBankAccountBankAddress :: !BankAddress
- achBankAccountFingerprint :: !UUID
- achBankAccountErrorCode :: !(Maybe ACHBankAccountErrorCode)
- achBankAccountRiskEvaluation :: !(Maybe RiskEvaluation)
- achBankAccountMetadata :: !ResponseMetadata
- achBankAccountCreateDate :: !UTCTime
- achBankAccountUpdateDate :: !UTCTime
- data ACHBankAccountErrorCode
- data CreateACHBankAccountRequestBody = CreateACHBankAccountRequestBody {}
- data MockAccountRequest
- data CreateMockACHBankAccountRequestBody = CreateMockACHBankAccountRequestBody {}
- data MockACHBankAccountResponseBody = MockACHBankAccountResponseBody {}
- data MockACHBankAccount = MockACHBankAccount {}
- data MockRoutingNumber
- data SEPAAccountRequest
- data SEPAInstructionsRequest
- data SEPAAccountRequestBody = SEPAAccountRequestBody {}
- data SEPAAccountResponseBody = SEPAAccountResponseBody {
- sepaAccountResponseBodyId :: !UUID
- sepaAccountResponseBodyStatus :: !Status
- sepaAccountResponseBodyDescription :: !Text
- sepaAccountResponseBodyTrackingRef :: !TrackingReference
- sepaAccountResponseBodyFingerprint :: !UUID
- sepaAccountResponseBodyRiskEvaluation :: !(Maybe RiskEvaluation)
- sepaAccountResponseBodyBillingDetails :: !BillingDetails
- sepaAccountResponseBodyCreateDate :: !UTCTime
- sepaAccountResponseBodyUpdateDate :: !UTCTime
- data SettlementRequest
- data SettlementsRequest
- data SettlementResponseBody = SettlementResponseBody {
- settlementResponseBodyId :: !UUID
- settlementResponseBodyMerchantWalletId :: !UUID
- settlementResponseBodyWalletId :: !UUID
- settlementResponseBodyTotalDebits :: !MoneyAmount
- settlementResponseBodyTotalCredits :: !MoneyAmount
- settlementResponseBodyPaymentFees :: !MoneyAmount
- settlementResponseBodyChargebackFees :: !MoneyAmount
- settlementResponseBodyCreateDate :: !UTCTime
- settlementResponseBodyUpdateDate :: !UTCTime
- data ChargebacksRequest
- data ChargebackRequest
- data MockChargebackRequest
- data ChargebackResponseBody = ChargebackResponseBody {}
- data ChargebackCategory
- data ChargebackHistory = ChargebackHistory {}
- data ChargebackHistoryType
- data ReversalsRequest
- data ReversalResponseBody = ReversalResponseBody {
- reversalResponseBodyId :: !UUID
- reversalResponseBodyPaymentId :: !UUID
- reversalResponseBodyAmount :: !MoneyAmount
- reversalResponseBodyDescription :: !Text
- reversalResponseBodyStatus :: !Status
- reversalResponseBodyReason :: !ReversalReason
- reversalResponseBodyFees :: !MoneyAmount
- reversalResponseBodyCreateDate :: !UTCTime
- reversalResponseBodyUpdateDate :: !UTCTime
- data ReversalReason
- = ReversalDuplicate
- | ReversalFraudulent
- | ReversalRequestedByCustomer
- | ReversalBankTransactionError
- | ReversalInvalidAccountNumber
- | ReversalInsufficientFunds
- | ReversalPaymentStoppedByIssuer
- | ReversalPaymentReturned
- | ReversalBankAccountIneligible
- | ReversalInvalidACHRTN
- | ReversalUnauthorizedTransaction
- | ReversalPaymentFailed
- data PaymentIntentRequest
- data PaymentIntentsRequest
- data CreatePaymentIntentRequestBody = CreatePaymentIntentRequestBody {}
- data PaymentIntentResponseBody = PaymentIntentResponseBody {
- paymentIntentResponseBodyIdempotencyKey :: !UUID
- paymentIntentResponseBodyId :: !UUID
- paymentIntentResponseBodyAmount :: !MoneyAmount
- paymentIntentResponseBodyAmountPaid :: !MoneyAmount
- paymentIntentResponseBodySettlementCurrency :: !SupportedCurrencies
- paymentIntentResponseBodyPaymentMethods :: ![PaymentMethodData]
- paymentIntentResponseBodyFees :: ![BlockchainFeeMoneyAmount]
- paymentIntentResponseBodyPaymentIds :: ![UUID]
- paymentIntentResponseBodyTimeline :: ![TimelineData]
- paymentIntentResponseBodyExpiresOn :: !UTCTime
- paymentIntentResponseBodyUpdateDate :: !UTCTime
- paymentIntentResponseBodyCreateDate :: !UTCTime
- data PaymentMethodData = PaymentMethodData {}
- data TimelineData = TimelineData {}
- data ReturnsRequest
- data WalletRequest
- data WalletsRequest
- data WalletResponseBody = WalletResponseBody {}
- data CreateWalletRequestBody = CreateWalletRequestBody {}
- utcToCircle :: UTCTime -> Text
- tshow :: Show a => a -> Text
- data ThisOrThat a b
- catThises :: [ThisOrThat a b] -> [a]
- catThats :: [ThisOrThat a b] -> [b]
- thisOrThatToEither :: ThisOrThat a b -> Either a b
- thisOrThat :: (a -> c) -> (b -> c) -> ThisOrThat a b -> c
- data Status
- data PaymentStatus
- data PaymentIntentStatus
- data PaymentIntentContext
- data Address = Address {
- addressCity :: !(Maybe City)
- addressCountry :: !(Maybe ISO3166Alpha2)
- addressLine1 :: !(Maybe AddressLine)
- addressLine2 :: !(Maybe AddressLine)
- addressDistrict :: !(Maybe District)
- data BankAccountType
- data ACHBankAccountType
- data DestinationBankAccount = DestinationBankAccount {}
- data SupportedCurrencies
- newtype Amount = Amount {}
- data BlockchainFeeType
- data BlockchainFeeMoneyAmount = BlockchainFeeMoneyAmount {}
- data MoneyAmount = MoneyAmount {}
- data TransferFeeAmount = TransferFeeAmount {}
- data Decision
- data RiskEvaluation = RiskEvaluation {}
- data Adjustments = Adjustments {}
- data BillingDetails = BillingDetails {}
- data BankAddress = BankAddress {
- bankAddressName :: !(Maybe Text)
- bankAddressCity :: !(Maybe City)
- bankAddressCountry :: !(Maybe ISO3166Alpha2)
- bankAddressLine1 :: !(Maybe AddressLine)
- bankAddressLine2 :: !(Maybe AddressLine)
- bankAddressDistrict :: !(Maybe District)
- data BeneficiaryDetails = BeneficiaryDetails {}
- data BeneficiaryBankDetails = BeneficiaryBankDetails {
- beneficiaryBankDetailsName :: !Text
- beneficiaryBankDetailsSwiftCode :: !SwiftCode
- beneficiaryBankDetailsRoutingNumber :: !RoutingNumber
- beneficiaryBankDetailsAccountNumber :: !AccountNumber
- beneficiaryBankDetailsCurrency :: !SupportedCurrencies
- beneficiaryBankDetailsAddress :: !AddressLine
- beneficiaryBankDetailsCity :: !City
- beneficiaryBankDetailsPostalCode :: !PostalCode
- beneficiaryBankDetailsCountry :: !ISO3166Alpha2
- newtype ProcessorToken = ProcessorToken {}
- newtype AddressLine = AddressLine {}
- newtype URL = URL {}
- urlRegex :: Regex
- mkURL :: Text -> Maybe URL
- urlToText :: URL -> Text
- urlToByteString :: URL -> ByteString
- newtype AccountNumber = AccountNumber {}
- accountNumberRegex :: Regex
- mkAccountNumber :: Text -> Maybe AccountNumber
- accountNumberToText :: AccountNumber -> Text
- type AccountNumberMask = Refined (SizeEqualTo 4) Text
- accountNumberLastFour :: AccountNumber -> AccountNumberMask
- accountNumberToByteString :: AccountNumber -> ByteString
- compileAccountNumber :: QuasiQuoter
- newtype RoutingNumber = RoutingNumber {}
- routingNumberRegex :: Regex
- mkRoutingNumber :: Text -> Maybe RoutingNumber
- routingNumberToText :: RoutingNumber -> Text
- routingNumberToByteString :: RoutingNumber -> ByteString
- compileRoutingNumber :: QuasiQuoter
- newtype Iban = Iban {}
- mkIban :: Text -> Maybe Iban
- compileIban :: QuasiQuoter
- ibanToText :: Iban -> Text
- newtype Email = Email {
- getEmailText :: Text
- emailRegex :: Regex
- mkEmail :: Text -> Maybe Email
- emailToText :: Email -> Text
- emailToByteString :: Email -> ByteString
- compileEmail :: QuasiQuoter
- newtype City = City {}
- newtype PostalCode = PostalCode {
- unPostalCode :: Text
- newtype SwiftCode = SwiftCode {
- unSwiftCode :: Text
- swiftCountryCodes :: Set Text
- swiftCodeRegex :: Regex
- mkSwiftCode :: Text -> Maybe SwiftCode
- compileSwiftCode :: QuasiQuoter
- swiftCodeToText :: SwiftCode -> Text
- getCountryFromSwiftCodeText :: Text -> Text
- getCountryFromSwiftCode :: SwiftCode -> Text
- get8DigitSwiftCode :: SwiftCode -> SwiftCode
- getBranchCodeFromSwiftCode :: SwiftCode -> Maybe Text
- newtype District = District {
- unDistrict :: Text
- newtype ISO3166Alpha2 = ISO3166Alpha2 {}
- newtype TrackingReference = TrackingReference {}
- newtype HexString = HexString {
- unHexString :: Text
- newtype WalletId = WalletId {
- unWalletId :: Text
Documentation
Token type used for HTTP Bearer authentication.
data CircleAPIRequest a b c Source #
Type to represent the 3 main components (method, endpoint, and params) needed to call Circle's API.
Instances
Show (CircleAPIRequest a b c) Source # | |
Defined in Circle.Types showsPrec :: Int -> CircleAPIRequest a b c -> ShowS # show :: CircleAPIRequest a b c -> String # showList :: [CircleAPIRequest a b c] -> ShowS # |
mkCircleAPIRequest :: Method -> Text -> Params TupleBS8 ByteString -> CircleAPIRequest a b c Source #
Create a CircleAPIRequest
type family CircleRequest a :: * Source #
Instances
data CircleError Source #
CircleErrors have contain both the error reason (parseError
) and the
full error response body as a ByteString.
CircleError | |
|
Instances
Show CircleError Source # | |
Defined in Circle.Types showsPrec :: Int -> CircleError -> ShowS # show :: CircleError -> String # showList :: [CircleError] -> ShowS # |
data CircleResponseBody a Source #
The CircleResponseBody will have Nothing
for the circleResponseCode
and
circleResponseMessage
if the request succeeds, and Nothing
for the circleResponseData
if the request fails.
CircleResponseBody | |
|
Instances
Eq a => Eq (CircleResponseBody a) Source # | |
Defined in Circle.Types (==) :: CircleResponseBody a -> CircleResponseBody a -> Bool # (/=) :: CircleResponseBody a -> CircleResponseBody a -> Bool # | |
Show a => Show (CircleResponseBody a) Source # | |
Defined in Circle.Types showsPrec :: Int -> CircleResponseBody a -> ShowS # show :: CircleResponseBody a -> String # showList :: [CircleResponseBody a] -> ShowS # | |
FromJSON a => FromJSON (CircleResponseBody a) Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser (CircleResponseBody a) # parseJSONList :: Value -> Parser [CircleResponseBody a] # |
newtype ResponseStatus Source #
Instances
Eq ResponseStatus Source # | |
Defined in Circle.Types (==) :: ResponseStatus -> ResponseStatus -> Bool # (/=) :: ResponseStatus -> ResponseStatus -> Bool # | |
Show ResponseStatus Source # | |
Defined in Circle.Types showsPrec :: Int -> ResponseStatus -> ShowS # show :: ResponseStatus -> String # showList :: [ResponseStatus] -> ShowS # | |
FromJSON ResponseStatus Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser ResponseStatus # parseJSONList :: Value -> Parser [ResponseStatus] # | |
HasCodec ResponseStatus Source # | |
Defined in Circle.Types |
newtype ResponseMessage Source #
Instances
Eq ResponseMessage Source # | |
Defined in Circle.Types (==) :: ResponseMessage -> ResponseMessage -> Bool # (/=) :: ResponseMessage -> ResponseMessage -> Bool # | |
Show ResponseMessage Source # | |
Defined in Circle.Types showsPrec :: Int -> ResponseMessage -> ShowS # show :: ResponseMessage -> String # showList :: [ResponseMessage] -> ShowS # | |
FromJSON ResponseMessage Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser ResponseMessage # parseJSONList :: Value -> Parser [ResponseMessage] # | |
HasCodec ResponseMessage Source # | |
Defined in Circle.Types |
type Reply = Response ByteString Source #
data CircleHost Source #
Instances
Eq CircleHost Source # | |
Defined in Circle.Types (==) :: CircleHost -> CircleHost -> Bool # (/=) :: CircleHost -> CircleHost -> Bool # | |
Show CircleHost Source # | |
Defined in Circle.Types showsPrec :: Int -> CircleHost -> ShowS # show :: CircleHost -> String # showList :: [CircleHost] -> ShowS # |
hostUri :: CircleHost -> Text Source #
data CircleConfig Source #
CircleConfig | |
|
Instances
Eq CircleConfig Source # | |
Defined in Circle.Types (==) :: CircleConfig -> CircleConfig -> Bool # (/=) :: CircleConfig -> CircleConfig -> Bool # | |
Show CircleConfig Source # | |
Defined in Circle.Types showsPrec :: Int -> CircleConfig -> ShowS # show :: CircleConfig -> String # showList :: [CircleConfig] -> ShowS # |
credentialsEnv :: Maybe String -> IO ApiToken Source #
Creates an API token using a secrete stored at CIRCLE_API_KEY
(the default key for storing the Circle secret)
prodEnvConfig :: Maybe String -> IO CircleConfig Source #
Helper method for instantiating a Circle config that calls the production endpoint: https://api.circle.com/v1/ Example usage: @ import Circle.Client import Circle.Types import Network.HTTP.Client (newManager) import Network.HTTP.Client.TLS (tlsManagerSettings)
main :: IO () main = do manager <- newManager tlsManagerSettings config <- prodEnvConfig CIRCLE_API_KEY result <- circle config manager getConfigurationInfo case result of Right CircleResponseBody b -> print bs Left CircleError e -> print e @
sandboxEnvConfig :: Maybe String -> IO CircleConfig Source #
Helper method for instantiating a Circle config that calls the production endpoint: https://api-sandbox.circle.com/v1/ Example usage: @ import Circle.Client import Circle.Types import Network.HTTP.Client (newManager) import Network.HTTP.Client.TLS (tlsManagerSettings)
main :: IO () main = do manager <- newManager tlsManagerSettings config <- sandboxEnvConfig CIRCLE_API_KEY result <- circle config manager getConfigurationInfo case result of Right CircleResponseBody b -> print bs Left CircleError e -> print e @
Body | |
|
Parameters for each request which include both the query and the body of a request
Params | |
|
type TupleBS8 = (ByteString, ByteString) Source #
Type alias for query parameters
class ToCircleParam param where Source #
Convert a parameter to a key/value
Instances
class ToCircleParam param => CircleHasParam request param Source #
Instances
(-&-) :: CircleHasParam r param => CircleAPIRequest r b c -> param -> CircleAPIRequest r b c Source #
Supports adding an optional query parameter. Example usage: @ import Circle.Client import Circle.Types import Network.HTTP.Client (newManager) import Network.HTTP.Client.TLS (tlsManagerSettings)
main :: IO () main = do manager <- newManager tlsManagerSettings config <- sandboxEnvConfig CIRCLE_API_KEY result <- circle config manager listAllBalances -&- PaginationQueryParams (PageBefore "a8899b8e-782a-4526-b674-0efe1e04526d") case result of Right CircleResponseBody b -> print bs Left CircleError e -> print e @
newtype PaginationQueryParams Source #
Instances
data PaginationQueryParam Source #
Depending on which endpoint is being called, the IDs after the PageBefore
and PageAfter
params could either be UUIDs or non-UUIDs. Let's just keep them as text for now.
TODO maybe improve this one day.
Instances
Eq PaginationQueryParam Source # | |
Defined in Circle.Types (==) :: PaginationQueryParam -> PaginationQueryParam -> Bool # (/=) :: PaginationQueryParam -> PaginationQueryParam -> Bool # | |
Show PaginationQueryParam Source # | |
Defined in Circle.Types showsPrec :: Int -> PaginationQueryParam -> ShowS # show :: PaginationQueryParam -> String # showList :: [PaginationQueryParam] -> ShowS # |
newtype FromQueryParam Source #
Instances
newtype ToQueryParam Source #
Instances
newtype PageSizeQueryParam Source #
Instances
newtype StatusQueryParams Source #
Instances
Eq StatusQueryParams Source # | |
Defined in Circle.Types (==) :: StatusQueryParams -> StatusQueryParams -> Bool # (/=) :: StatusQueryParams -> StatusQueryParams -> Bool # | |
Show StatusQueryParams Source # | |
Defined in Circle.Types showsPrec :: Int -> StatusQueryParams -> ShowS # show :: StatusQueryParams -> String # showList :: [StatusQueryParams] -> ShowS # | |
ToCircleParam StatusQueryParams Source # | |
Defined in Circle.Types toCircleParam :: StatusQueryParams -> Params TupleBS8 c -> Params TupleBS8 c Source # | |
CircleHasParam PayoutsRequest StatusQueryParams Source # | |
Defined in Circle.Types |
statusToBS8 :: Status -> ByteString Source #
newtype DestinationQueryParam Source #
Instances
Eq DestinationQueryParam Source # | |
Defined in Circle.Types (==) :: DestinationQueryParam -> DestinationQueryParam -> Bool # (/=) :: DestinationQueryParam -> DestinationQueryParam -> Bool # | |
Show DestinationQueryParam Source # | |
Defined in Circle.Types showsPrec :: Int -> DestinationQueryParam -> ShowS # show :: DestinationQueryParam -> String # showList :: [DestinationQueryParam] -> ShowS # | |
ToCircleParam DestinationQueryParam Source # | |
Defined in Circle.Types toCircleParam :: DestinationQueryParam -> Params TupleBS8 c -> Params TupleBS8 c Source # | |
CircleHasParam PaymentsRequest DestinationQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam PayoutsRequest DestinationQueryParam Source # | |
Defined in Circle.Types |
newtype TypeQueryParam Source #
Instances
Eq TypeQueryParam Source # | |
Defined in Circle.Types (==) :: TypeQueryParam -> TypeQueryParam -> Bool # (/=) :: TypeQueryParam -> TypeQueryParam -> Bool # | |
Show TypeQueryParam Source # | |
Defined in Circle.Types showsPrec :: Int -> TypeQueryParam -> ShowS # show :: TypeQueryParam -> String # showList :: [TypeQueryParam] -> ShowS # | |
ToCircleParam TypeQueryParam Source # | |
Defined in Circle.Types toCircleParam :: TypeQueryParam -> Params TupleBS8 c -> Params TupleBS8 c Source # | |
CircleHasParam PaymentsRequest TypeQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam DepositsRequest TypeQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam PayoutsRequest TypeQueryParam Source # | |
Defined in Circle.Types |
newtype CurrencyQueryParam Source #
Instances
Eq CurrencyQueryParam Source # | |
Defined in Circle.Types (==) :: CurrencyQueryParam -> CurrencyQueryParam -> Bool # (/=) :: CurrencyQueryParam -> CurrencyQueryParam -> Bool # | |
Show CurrencyQueryParam Source # | |
Defined in Circle.Types showsPrec :: Int -> CurrencyQueryParam -> ShowS # show :: CurrencyQueryParam -> String # showList :: [CurrencyQueryParam] -> ShowS # | |
ToCircleParam CurrencyQueryParam Source # | |
Defined in Circle.Types toCircleParam :: CurrencyQueryParam -> Params TupleBS8 c -> Params TupleBS8 c Source # |
newtype SourceQueryParam Source #
Instances
Eq SourceQueryParam Source # | |
Defined in Circle.Types (==) :: SourceQueryParam -> SourceQueryParam -> Bool # (/=) :: SourceQueryParam -> SourceQueryParam -> Bool # | |
Show SourceQueryParam Source # | |
Defined in Circle.Types showsPrec :: Int -> SourceQueryParam -> ShowS # show :: SourceQueryParam -> String # showList :: [SourceQueryParam] -> ShowS # | |
ToCircleParam SourceQueryParam Source # | |
Defined in Circle.Types toCircleParam :: SourceQueryParam -> Params TupleBS8 c -> Params TupleBS8 c Source # | |
CircleHasParam PaymentsRequest SourceQueryParam Source # | |
Defined in Circle.Types |
newtype SettlementIdQueryParam Source #
Instances
Eq SettlementIdQueryParam Source # | |
Defined in Circle.Types | |
Show SettlementIdQueryParam Source # | |
Defined in Circle.Types showsPrec :: Int -> SettlementIdQueryParam -> ShowS # show :: SettlementIdQueryParam -> String # showList :: [SettlementIdQueryParam] -> ShowS # | |
ToCircleParam SettlementIdQueryParam Source # | |
Defined in Circle.Types toCircleParam :: SettlementIdQueryParam -> Params TupleBS8 c -> Params TupleBS8 c Source # | |
CircleHasParam PaymentsRequest SettlementIdQueryParam Source # | |
Defined in Circle.Types |
newtype PaymentIntentIdQueryParam Source #
Instances
Eq PaymentIntentIdQueryParam Source # | |
Defined in Circle.Types | |
Show PaymentIntentIdQueryParam Source # | |
Defined in Circle.Types showsPrec :: Int -> PaymentIntentIdQueryParam -> ShowS # show :: PaymentIntentIdQueryParam -> String # showList :: [PaymentIntentIdQueryParam] -> ShowS # | |
ToCircleParam PaymentIntentIdQueryParam Source # | |
Defined in Circle.Types toCircleParam :: PaymentIntentIdQueryParam -> Params TupleBS8 c -> Params TupleBS8 c Source # | |
CircleHasParam PaymentsRequest PaymentIntentIdQueryParam Source # | |
Defined in Circle.Types |
newtype PaymentIdQueryParam Source #
Instances
Eq PaymentIdQueryParam Source # | |
Defined in Circle.Types (==) :: PaymentIdQueryParam -> PaymentIdQueryParam -> Bool # (/=) :: PaymentIdQueryParam -> PaymentIdQueryParam -> Bool # | |
Show PaymentIdQueryParam Source # | |
Defined in Circle.Types showsPrec :: Int -> PaymentIdQueryParam -> ShowS # show :: PaymentIdQueryParam -> String # showList :: [PaymentIdQueryParam] -> ShowS # | |
ToCircleParam PaymentIdQueryParam Source # | |
Defined in Circle.Types toCircleParam :: PaymentIdQueryParam -> Params TupleBS8 c -> Params TupleBS8 c Source # | |
CircleHasParam ChargebacksRequest PaymentIdQueryParam Source # | |
Defined in Circle.Types |
newtype PaymentStatusQueryParams Source #
Instances
Eq PaymentStatusQueryParams Source # | |
Defined in Circle.Types | |
Show PaymentStatusQueryParams Source # | |
Defined in Circle.Types showsPrec :: Int -> PaymentStatusQueryParams -> ShowS # show :: PaymentStatusQueryParams -> String # showList :: [PaymentStatusQueryParams] -> ShowS # | |
ToCircleParam PaymentStatusQueryParams Source # | |
Defined in Circle.Types toCircleParam :: PaymentStatusQueryParams -> Params TupleBS8 c -> Params TupleBS8 c Source # | |
CircleHasParam PaymentIntentsRequest PaymentStatusQueryParams Source # | |
Defined in Circle.Types | |
CircleHasParam ReversalsRequest PaymentStatusQueryParams Source # | |
Defined in Circle.Types | |
CircleHasParam PaymentsRequest PaymentStatusQueryParams Source # | |
Defined in Circle.Types |
newtype PaymentIntentContextQueryParams Source #
Instances
newtype WalletIdQueryParam Source #
Instances
Eq WalletIdQueryParam Source # | |
Defined in Circle.Types (==) :: WalletIdQueryParam -> WalletIdQueryParam -> Bool # (/=) :: WalletIdQueryParam -> WalletIdQueryParam -> Bool # | |
Show WalletIdQueryParam Source # | |
Defined in Circle.Types showsPrec :: Int -> WalletIdQueryParam -> ShowS # show :: WalletIdQueryParam -> String # showList :: [WalletIdQueryParam] -> ShowS # | |
ToCircleParam WalletIdQueryParam Source # | |
Defined in Circle.Types toCircleParam :: WalletIdQueryParam -> Params TupleBS8 c -> Params TupleBS8 c Source # | |
CircleHasParam OnChainTransfersRequest WalletIdQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam TransfersRequest WalletIdQueryParam Source # | |
Defined in Circle.Types |
newtype SourceWalletIdQueryParam Source #
Instances
Eq SourceWalletIdQueryParam Source # | |
Defined in Circle.Types | |
Show SourceWalletIdQueryParam Source # | |
Defined in Circle.Types showsPrec :: Int -> SourceWalletIdQueryParam -> ShowS # show :: SourceWalletIdQueryParam -> String # showList :: [SourceWalletIdQueryParam] -> ShowS # | |
ToCircleParam SourceWalletIdQueryParam Source # | |
Defined in Circle.Types toCircleParam :: SourceWalletIdQueryParam -> Params TupleBS8 c -> Params TupleBS8 c Source # | |
CircleHasParam OnChainTransfersRequest SourceWalletIdQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam TransfersRequest SourceWalletIdQueryParam Source # | |
Defined in Circle.Types |
newtype DestinationWalletIdQueryParam Source #
Instances
Eq DestinationWalletIdQueryParam Source # | |
Defined in Circle.Types | |
Show DestinationWalletIdQueryParam Source # | |
Defined in Circle.Types showsPrec :: Int -> DestinationWalletIdQueryParam -> ShowS # show :: DestinationWalletIdQueryParam -> String # showList :: [DestinationWalletIdQueryParam] -> ShowS # | |
ToCircleParam DestinationWalletIdQueryParam Source # | |
Defined in Circle.Types toCircleParam :: DestinationWalletIdQueryParam -> Params TupleBS8 c -> Params TupleBS8 c Source # | |
CircleHasParam OnChainTransfersRequest DestinationWalletIdQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam TransfersRequest DestinationWalletIdQueryParam Source # | |
Defined in Circle.Types |
newtype ReturnIdentitiesQueryParam Source #
Instances
Eq ReturnIdentitiesQueryParam Source # | |
Defined in Circle.Types | |
Show ReturnIdentitiesQueryParam Source # | |
Defined in Circle.Types showsPrec :: Int -> ReturnIdentitiesQueryParam -> ShowS # show :: ReturnIdentitiesQueryParam -> String # showList :: [ReturnIdentitiesQueryParam] -> ShowS # | |
ToCircleParam ReturnIdentitiesQueryParam Source # | |
Defined in Circle.Types toCircleParam :: ReturnIdentitiesQueryParam -> Params TupleBS8 c -> Params TupleBS8 c Source # | |
CircleHasParam OnChainTransfersRequest ReturnIdentitiesQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam OnChainTransferRequest ReturnIdentitiesQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam TransferRequest ReturnIdentitiesQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam TransfersRequest ReturnIdentitiesQueryParam Source # | |
Defined in Circle.Types |
data BalanceRequest Source #
Instances
type CircleRequest BalanceRequest Source # | |
Defined in Circle.Types |
data BalanceResponseBody Source #
Response body for listAllBusinessBalances
and listAllBalances
Instances
data PayoutRequest Source #
Instances
type CircleRequest PayoutRequest Source # | |
Defined in Circle.Types |
data PayoutsRequest Source #
Instances
CircleHasParam PayoutsRequest TypeQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam PayoutsRequest DestinationQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam PayoutsRequest StatusQueryParams Source # | |
Defined in Circle.Types | |
CircleHasParam PayoutsRequest PageSizeQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam PayoutsRequest ToQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam PayoutsRequest FromQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam PayoutsRequest PaginationQueryParams Source # | |
Defined in Circle.Types | |
type CircleRequest PayoutsRequest Source # | |
Defined in Circle.Types |
data PayoutResponseBody Source #
Response body for methods that call "businessAccount/payouts" or "payouts" endpoints
Instances
Eq PayoutResponseBody Source # | |
Defined in Circle.Types (==) :: PayoutResponseBody -> PayoutResponseBody -> Bool # (/=) :: PayoutResponseBody -> PayoutResponseBody -> Bool # | |
Show PayoutResponseBody Source # | |
Defined in Circle.Types showsPrec :: Int -> PayoutResponseBody -> ShowS # show :: PayoutResponseBody -> String # showList :: [PayoutResponseBody] -> ShowS # | |
ToJSON PayoutResponseBody Source # | |
Defined in Circle.Types toJSON :: PayoutResponseBody -> Value # toEncoding :: PayoutResponseBody -> Encoding # toJSONList :: [PayoutResponseBody] -> Value # toEncodingList :: [PayoutResponseBody] -> Encoding # | |
FromJSON PayoutResponseBody Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser PayoutResponseBody # parseJSONList :: Value -> Parser [PayoutResponseBody] # | |
HasCodec PayoutResponseBody Source # | |
Defined in Circle.Types |
data BusinessPayoutRequestBody Source #
Request body for creating a new business account payout
Instances
Eq BusinessPayoutRequestBody Source # | |
Defined in Circle.Types | |
Show BusinessPayoutRequestBody Source # | |
Defined in Circle.Types showsPrec :: Int -> BusinessPayoutRequestBody -> ShowS # show :: BusinessPayoutRequestBody -> String # showList :: [BusinessPayoutRequestBody] -> ShowS # | |
ToJSON BusinessPayoutRequestBody Source # | |
Defined in Circle.Types | |
FromJSON BusinessPayoutRequestBody Source # | |
Defined in Circle.Types | |
HasCodec BusinessPayoutRequestBody Source # | |
newtype PayoutMetadata Source #
Instances
Eq PayoutMetadata Source # | |
Defined in Circle.Types (==) :: PayoutMetadata -> PayoutMetadata -> Bool # (/=) :: PayoutMetadata -> PayoutMetadata -> Bool # | |
Show PayoutMetadata Source # | |
Defined in Circle.Types showsPrec :: Int -> PayoutMetadata -> ShowS # show :: PayoutMetadata -> String # showList :: [PayoutMetadata] -> ShowS # | |
ToJSON PayoutMetadata Source # | |
Defined in Circle.Types toJSON :: PayoutMetadata -> Value # toEncoding :: PayoutMetadata -> Encoding # toJSONList :: [PayoutMetadata] -> Value # toEncodingList :: [PayoutMetadata] -> Encoding # | |
FromJSON PayoutMetadata Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser PayoutMetadata # parseJSONList :: Value -> Parser [PayoutMetadata] # | |
HasCodec PayoutMetadata Source # | |
Defined in Circle.Types |
data PayoutRequestBody Source #
Request body to create a payout.
Instances
Eq PayoutRequestBody Source # | |
Defined in Circle.Types (==) :: PayoutRequestBody -> PayoutRequestBody -> Bool # (/=) :: PayoutRequestBody -> PayoutRequestBody -> Bool # | |
Show PayoutRequestBody Source # | |
Defined in Circle.Types showsPrec :: Int -> PayoutRequestBody -> ShowS # show :: PayoutRequestBody -> String # showList :: [PayoutRequestBody] -> ShowS # | |
ToJSON PayoutRequestBody Source # | |
Defined in Circle.Types toJSON :: PayoutRequestBody -> Value # toEncoding :: PayoutRequestBody -> Encoding # toJSONList :: [PayoutRequestBody] -> Value # toEncodingList :: [PayoutRequestBody] -> Encoding # | |
FromJSON PayoutRequestBody Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser PayoutRequestBody # parseJSONList :: Value -> Parser [PayoutRequestBody] # | |
HasCodec PayoutRequestBody Source # | |
Defined in Circle.Types |
data PayoutReturnResponseBody Source #
Response body for methods that call the "returns" endpoint
Instances
Eq PayoutReturnResponseBody Source # | |
Defined in Circle.Types | |
Show PayoutReturnResponseBody Source # | |
Defined in Circle.Types showsPrec :: Int -> PayoutReturnResponseBody -> ShowS # show :: PayoutReturnResponseBody -> String # showList :: [PayoutReturnResponseBody] -> ShowS # | |
ToJSON PayoutReturnResponseBody Source # | |
Defined in Circle.Types | |
FromJSON PayoutReturnResponseBody Source # | |
Defined in Circle.Types | |
HasCodec PayoutReturnResponseBody Source # | |
data PayoutErrorCode Source #
Instances
Eq PayoutErrorCode Source # | |
Defined in Circle.Types (==) :: PayoutErrorCode -> PayoutErrorCode -> Bool # (/=) :: PayoutErrorCode -> PayoutErrorCode -> Bool # | |
Show PayoutErrorCode Source # | |
Defined in Circle.Types showsPrec :: Int -> PayoutErrorCode -> ShowS # show :: PayoutErrorCode -> String # showList :: [PayoutErrorCode] -> ShowS # | |
ToJSON PayoutErrorCode Source # | |
Defined in Circle.Types toJSON :: PayoutErrorCode -> Value # toEncoding :: PayoutErrorCode -> Encoding # toJSONList :: [PayoutErrorCode] -> Value # toEncodingList :: [PayoutErrorCode] -> Encoding # | |
FromJSON PayoutErrorCode Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser PayoutErrorCode # parseJSONList :: Value -> Parser [PayoutErrorCode] # | |
HasCodec PayoutErrorCode Source # | |
Defined in Circle.Types |
data ConfigurationRequest Source #
Instances
newtype ConfigurationResponseBody Source #
Response body for getConfigurationInfo
Instances
Eq ConfigurationResponseBody Source # | |
Defined in Circle.Types | |
Show ConfigurationResponseBody Source # | |
Defined in Circle.Types showsPrec :: Int -> ConfigurationResponseBody -> ShowS # show :: ConfigurationResponseBody -> String # showList :: [ConfigurationResponseBody] -> ShowS # | |
ToJSON ConfigurationResponseBody Source # | |
Defined in Circle.Types | |
FromJSON ConfigurationResponseBody Source # | |
Defined in Circle.Types | |
HasCodec ConfigurationResponseBody Source # | |
newtype WalletConfig Source #
Instances
Eq WalletConfig Source # | |
Defined in Circle.Types (==) :: WalletConfig -> WalletConfig -> Bool # (/=) :: WalletConfig -> WalletConfig -> Bool # | |
Show WalletConfig Source # | |
Defined in Circle.Types showsPrec :: Int -> WalletConfig -> ShowS # show :: WalletConfig -> String # showList :: [WalletConfig] -> ShowS # | |
ToJSON WalletConfig Source # | |
Defined in Circle.Types toJSON :: WalletConfig -> Value # toEncoding :: WalletConfig -> Encoding # toJSONList :: [WalletConfig] -> Value # toEncodingList :: [WalletConfig] -> Encoding # | |
FromJSON WalletConfig Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser WalletConfig # parseJSONList :: Value -> Parser [WalletConfig] # | |
HasCodec WalletConfig Source # | |
Defined in Circle.Types |
data EncryptionRequest Source #
Instances
type CircleRequest EncryptionRequest Source # | |
Defined in Circle.Types |
data EncryptionResponseBody Source #
Response body for getPublicKey
Instances
Eq EncryptionResponseBody Source # | |
Defined in Circle.Types | |
Show EncryptionResponseBody Source # | |
Defined in Circle.Types showsPrec :: Int -> EncryptionResponseBody -> ShowS # show :: EncryptionResponseBody -> String # showList :: [EncryptionResponseBody] -> ShowS # | |
ToJSON EncryptionResponseBody Source # | |
Defined in Circle.Types toJSON :: EncryptionResponseBody -> Value # toEncoding :: EncryptionResponseBody -> Encoding # toJSONList :: [EncryptionResponseBody] -> Value # | |
FromJSON EncryptionResponseBody Source # | |
Defined in Circle.Types | |
HasCodec EncryptionResponseBody Source # | |
data ChannelsRequest Source #
Instances
type CircleRequest ChannelsRequest Source # | |
Defined in Circle.Types |
newtype ChannelResponseBody Source #
Response body for listAllChannels
Instances
Eq ChannelResponseBody Source # | |
Defined in Circle.Types (==) :: ChannelResponseBody -> ChannelResponseBody -> Bool # (/=) :: ChannelResponseBody -> ChannelResponseBody -> Bool # | |
Show ChannelResponseBody Source # | |
Defined in Circle.Types showsPrec :: Int -> ChannelResponseBody -> ShowS # show :: ChannelResponseBody -> String # showList :: [ChannelResponseBody] -> ShowS # | |
ToJSON ChannelResponseBody Source # | |
Defined in Circle.Types toJSON :: ChannelResponseBody -> Value # toEncoding :: ChannelResponseBody -> Encoding # toJSONList :: [ChannelResponseBody] -> Value # toEncodingList :: [ChannelResponseBody] -> Encoding # | |
FromJSON ChannelResponseBody Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser ChannelResponseBody # parseJSONList :: Value -> Parser [ChannelResponseBody] # | |
HasCodec ChannelResponseBody Source # | |
Channel | |
|
data StablecoinsRequest Source #
Instances
type CircleRequest StablecoinsRequest Source # | |
Defined in Circle.Types |
data StablecoinResponseBody Source #
Response body for listAllStablecoins
Instances
Eq StablecoinResponseBody Source # | |
Defined in Circle.Types | |
Show StablecoinResponseBody Source # | |
Defined in Circle.Types showsPrec :: Int -> StablecoinResponseBody -> ShowS # show :: StablecoinResponseBody -> String # showList :: [StablecoinResponseBody] -> ShowS # | |
ToJSON StablecoinResponseBody Source # | |
Defined in Circle.Types toJSON :: StablecoinResponseBody -> Value # toEncoding :: StablecoinResponseBody -> Encoding # toJSONList :: [StablecoinResponseBody] -> Value # | |
FromJSON StablecoinResponseBody Source # | |
Defined in Circle.Types | |
HasCodec StablecoinResponseBody Source # | |
data ChainAmount Source #
Instances
Eq ChainAmount Source # | |
Defined in Circle.Types (==) :: ChainAmount -> ChainAmount -> Bool # (/=) :: ChainAmount -> ChainAmount -> Bool # | |
Show ChainAmount Source # | |
Defined in Circle.Types showsPrec :: Int -> ChainAmount -> ShowS # show :: ChainAmount -> String # showList :: [ChainAmount] -> ShowS # | |
ToJSON ChainAmount Source # | |
Defined in Circle.Types toJSON :: ChainAmount -> Value # toEncoding :: ChainAmount -> Encoding # toJSONList :: [ChainAmount] -> Value # toEncodingList :: [ChainAmount] -> Encoding # | |
FromJSON ChainAmount Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser ChainAmount # parseJSONList :: Value -> Parser [ChainAmount] # | |
HasCodec ChainAmount Source # | |
Defined in Circle.Types |
data Stablecoin Source #
Instances
Eq Stablecoin Source # | |
Defined in Circle.Types (==) :: Stablecoin -> Stablecoin -> Bool # (/=) :: Stablecoin -> Stablecoin -> Bool # | |
Show Stablecoin Source # | |
Defined in Circle.Types showsPrec :: Int -> Stablecoin -> ShowS # show :: Stablecoin -> String # showList :: [Stablecoin] -> ShowS # | |
ToJSON Stablecoin Source # | |
Defined in Circle.Types toJSON :: Stablecoin -> Value # toEncoding :: Stablecoin -> Encoding # toJSONList :: [Stablecoin] -> Value # toEncodingList :: [Stablecoin] -> Encoding # | |
FromJSON Stablecoin Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser Stablecoin # parseJSONList :: Value -> Parser [Stablecoin] # | |
HasCodec Stablecoin Source # | |
Defined in Circle.Types |
data SubscriptionsRequest Source #
Instances
type CircleRequest SubscriptionsRequest Source # | |
Defined in Circle.Types |
data SubscriptionRequest Source #
Instances
data SubscriptionResponseBody Source #
Response body for methods that call "notifications/subscriptions"
Instances
Eq SubscriptionResponseBody Source # | |
Defined in Circle.Types | |
Show SubscriptionResponseBody Source # | |
Defined in Circle.Types showsPrec :: Int -> SubscriptionResponseBody -> ShowS # show :: SubscriptionResponseBody -> String # showList :: [SubscriptionResponseBody] -> ShowS # | |
ToJSON SubscriptionResponseBody Source # | |
Defined in Circle.Types | |
FromJSON SubscriptionResponseBody Source # | |
Defined in Circle.Types | |
HasCodec SubscriptionResponseBody Source # | |
data SubscriptionDetails Source #
Instances
Eq SubscriptionDetails Source # | |
Defined in Circle.Types (==) :: SubscriptionDetails -> SubscriptionDetails -> Bool # (/=) :: SubscriptionDetails -> SubscriptionDetails -> Bool # | |
Show SubscriptionDetails Source # | |
Defined in Circle.Types showsPrec :: Int -> SubscriptionDetails -> ShowS # show :: SubscriptionDetails -> String # showList :: [SubscriptionDetails] -> ShowS # | |
ToJSON SubscriptionDetails Source # | |
Defined in Circle.Types toJSON :: SubscriptionDetails -> Value # toEncoding :: SubscriptionDetails -> Encoding # toJSONList :: [SubscriptionDetails] -> Value # toEncodingList :: [SubscriptionDetails] -> Encoding # | |
FromJSON SubscriptionDetails Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser SubscriptionDetails # parseJSONList :: Value -> Parser [SubscriptionDetails] # | |
HasCodec SubscriptionDetails Source # | |
newtype SubscriptionRequestBody Source #
Request body for creating a new subscription
Instances
Eq SubscriptionRequestBody Source # | |
Defined in Circle.Types | |
Show SubscriptionRequestBody Source # | |
Defined in Circle.Types showsPrec :: Int -> SubscriptionRequestBody -> ShowS # show :: SubscriptionRequestBody -> String # showList :: [SubscriptionRequestBody] -> ShowS # | |
ToJSON SubscriptionRequestBody Source # | |
Defined in Circle.Types | |
FromJSON SubscriptionRequestBody Source # | |
Defined in Circle.Types | |
HasCodec SubscriptionRequestBody Source # | |
data TransfersRequest Source #
Instances
CircleHasParam TransfersRequest ReturnIdentitiesQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam TransfersRequest DestinationWalletIdQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam TransfersRequest SourceWalletIdQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam TransfersRequest WalletIdQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam TransfersRequest PageSizeQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam TransfersRequest ToQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam TransfersRequest FromQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam TransfersRequest PaginationQueryParams Source # | |
Defined in Circle.Types | |
type CircleRequest TransfersRequest Source # | |
Defined in Circle.Types |
data TransferRequest Source #
Instances
CircleHasParam TransferRequest ReturnIdentitiesQueryParam Source # | |
Defined in Circle.Types | |
type CircleRequest TransferRequest Source # | |
Defined in Circle.Types |
data BusinessTransferRequestBody Source #
Request body for creating a new business account transfer
Instances
Eq BusinessTransferRequestBody Source # | |
Defined in Circle.Types | |
Show BusinessTransferRequestBody Source # | |
Defined in Circle.Types showsPrec :: Int -> BusinessTransferRequestBody -> ShowS # show :: BusinessTransferRequestBody -> String # showList :: [BusinessTransferRequestBody] -> ShowS # | |
ToJSON BusinessTransferRequestBody Source # | |
Defined in Circle.Types | |
FromJSON BusinessTransferRequestBody Source # | |
Defined in Circle.Types | |
HasCodec BusinessTransferRequestBody Source # | |
data TransferRequestBody Source #
Request body for creating a new transfer
Instances
Eq TransferRequestBody Source # | |
Defined in Circle.Types (==) :: TransferRequestBody -> TransferRequestBody -> Bool # (/=) :: TransferRequestBody -> TransferRequestBody -> Bool # | |
Show TransferRequestBody Source # | |
Defined in Circle.Types showsPrec :: Int -> TransferRequestBody -> ShowS # show :: TransferRequestBody -> String # showList :: [TransferRequestBody] -> ShowS # | |
ToJSON TransferRequestBody Source # | |
Defined in Circle.Types toJSON :: TransferRequestBody -> Value # toEncoding :: TransferRequestBody -> Encoding # toJSONList :: [TransferRequestBody] -> Value # toEncodingList :: [TransferRequestBody] -> Encoding # | |
FromJSON TransferRequestBody Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser TransferRequestBody # parseJSONList :: Value -> Parser [TransferRequestBody] # | |
HasCodec TransferRequestBody Source # | |
data TransferDestination Source #
Instances
Eq TransferDestination Source # | |
Defined in Circle.Types (==) :: TransferDestination -> TransferDestination -> Bool # (/=) :: TransferDestination -> TransferDestination -> Bool # | |
Show TransferDestination Source # | |
Defined in Circle.Types showsPrec :: Int -> TransferDestination -> ShowS # show :: TransferDestination -> String # showList :: [TransferDestination] -> ShowS # | |
ToJSON TransferDestination Source # | |
Defined in Circle.Types toJSON :: TransferDestination -> Value # toEncoding :: TransferDestination -> Encoding # toJSONList :: [TransferDestination] -> Value # toEncodingList :: [TransferDestination] -> Encoding # | |
FromJSON TransferDestination Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser TransferDestination # parseJSONList :: Value -> Parser [TransferDestination] # | |
HasCodec TransferDestination Source # | |
data DestinationType Source #
Instances
Eq DestinationType Source # | |
Defined in Circle.Types (==) :: DestinationType -> DestinationType -> Bool # (/=) :: DestinationType -> DestinationType -> Bool # | |
Show DestinationType Source # | |
Defined in Circle.Types showsPrec :: Int -> DestinationType -> ShowS # show :: DestinationType -> String # showList :: [DestinationType] -> ShowS # | |
ToJSON DestinationType Source # | |
Defined in Circle.Types toJSON :: DestinationType -> Value # toEncoding :: DestinationType -> Encoding # toJSONList :: [DestinationType] -> Value # toEncodingList :: [DestinationType] -> Encoding # | |
FromJSON DestinationType Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser DestinationType # parseJSONList :: Value -> Parser [DestinationType] # | |
HasCodec DestinationType Source # | |
Defined in Circle.Types |
data TransferResponseBody Source #
Response body for methods that call the "businessAccount/transfers" and "transfers" endpoints
Instances
Eq TransferResponseBody Source # | |
Defined in Circle.Types (==) :: TransferResponseBody -> TransferResponseBody -> Bool # (/=) :: TransferResponseBody -> TransferResponseBody -> Bool # | |
Show TransferResponseBody Source # | |
Defined in Circle.Types showsPrec :: Int -> TransferResponseBody -> ShowS # show :: TransferResponseBody -> String # showList :: [TransferResponseBody] -> ShowS # | |
FromJSON TransferResponseBody Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser TransferResponseBody # parseJSONList :: Value -> Parser [TransferResponseBody] # |
data SourceWallet Source #
Instances
Eq SourceWallet Source # | |
Defined in Circle.Types (==) :: SourceWallet -> SourceWallet -> Bool # (/=) :: SourceWallet -> SourceWallet -> Bool # | |
Show SourceWallet Source # | |
Defined in Circle.Types showsPrec :: Int -> SourceWallet -> ShowS # show :: SourceWallet -> String # showList :: [SourceWallet] -> ShowS # | |
ToJSON SourceWallet Source # | |
Defined in Circle.Types toJSON :: SourceWallet -> Value # toEncoding :: SourceWallet -> Encoding # toJSONList :: [SourceWallet] -> Value # toEncodingList :: [SourceWallet] -> Encoding # | |
FromJSON SourceWallet Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser SourceWallet # parseJSONList :: Value -> Parser [SourceWallet] # | |
HasCodec SourceWallet Source # | |
Defined in Circle.Types |
data SourceBlockchain Source #
Instances
Eq SourceBlockchain Source # | |
Defined in Circle.Types (==) :: SourceBlockchain -> SourceBlockchain -> Bool # (/=) :: SourceBlockchain -> SourceBlockchain -> Bool # | |
Show SourceBlockchain Source # | |
Defined in Circle.Types showsPrec :: Int -> SourceBlockchain -> ShowS # show :: SourceBlockchain -> String # showList :: [SourceBlockchain] -> ShowS # | |
ToJSON SourceBlockchain Source # | |
Defined in Circle.Types toJSON :: SourceBlockchain -> Value # toEncoding :: SourceBlockchain -> Encoding # toJSONList :: [SourceBlockchain] -> Value # toEncodingList :: [SourceBlockchain] -> Encoding # | |
FromJSON SourceBlockchain Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser SourceBlockchain # parseJSONList :: Value -> Parser [SourceBlockchain] # | |
HasCodec SourceBlockchain Source # | |
Defined in Circle.Types |
data DestinationWallet Source #
Instances
Eq DestinationWallet Source # | |
Defined in Circle.Types (==) :: DestinationWallet -> DestinationWallet -> Bool # (/=) :: DestinationWallet -> DestinationWallet -> Bool # | |
Show DestinationWallet Source # | |
Defined in Circle.Types showsPrec :: Int -> DestinationWallet -> ShowS # show :: DestinationWallet -> String # showList :: [DestinationWallet] -> ShowS # | |
ToJSON DestinationWallet Source # | |
Defined in Circle.Types toJSON :: DestinationWallet -> Value # toEncoding :: DestinationWallet -> Encoding # toJSONList :: [DestinationWallet] -> Value # toEncodingList :: [DestinationWallet] -> Encoding # | |
FromJSON DestinationWallet Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser DestinationWallet # parseJSONList :: Value -> Parser [DestinationWallet] # | |
HasCodec DestinationWallet Source # | |
Defined in Circle.Types |
data DestinationBlockchain Source #
Instances
Eq DestinationBlockchain Source # | |
Defined in Circle.Types (==) :: DestinationBlockchain -> DestinationBlockchain -> Bool # (/=) :: DestinationBlockchain -> DestinationBlockchain -> Bool # | |
Show DestinationBlockchain Source # | |
Defined in Circle.Types showsPrec :: Int -> DestinationBlockchain -> ShowS # show :: DestinationBlockchain -> String # showList :: [DestinationBlockchain] -> ShowS # | |
ToJSON DestinationBlockchain Source # | |
Defined in Circle.Types toJSON :: DestinationBlockchain -> Value # toEncoding :: DestinationBlockchain -> Encoding # toJSONList :: [DestinationBlockchain] -> Value # toEncodingList :: [DestinationBlockchain] -> Encoding # | |
FromJSON DestinationBlockchain Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser DestinationBlockchain # parseJSONList :: Value -> Parser [DestinationBlockchain] # | |
HasCodec DestinationBlockchain Source # | |
Identity | |
|
data IdentityType Source #
Instances
Eq IdentityType Source # | |
Defined in Circle.Types (==) :: IdentityType -> IdentityType -> Bool # (/=) :: IdentityType -> IdentityType -> Bool # | |
Show IdentityType Source # | |
Defined in Circle.Types showsPrec :: Int -> IdentityType -> ShowS # show :: IdentityType -> String # showList :: [IdentityType] -> ShowS # | |
ToJSON IdentityType Source # | |
Defined in Circle.Types toJSON :: IdentityType -> Value # toEncoding :: IdentityType -> Encoding # toJSONList :: [IdentityType] -> Value # toEncodingList :: [IdentityType] -> Encoding # | |
FromJSON IdentityType Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser IdentityType # parseJSONList :: Value -> Parser [IdentityType] # | |
HasCodec IdentityType Source # | |
Defined in Circle.Types |
data TransferType Source #
Instances
Eq TransferType Source # | |
Defined in Circle.Types (==) :: TransferType -> TransferType -> Bool # (/=) :: TransferType -> TransferType -> Bool # | |
Show TransferType Source # | |
Defined in Circle.Types showsPrec :: Int -> TransferType -> ShowS # show :: TransferType -> String # showList :: [TransferType] -> ShowS # | |
ToJSON TransferType Source # | |
Defined in Circle.Types toJSON :: TransferType -> Value # toEncoding :: TransferType -> Encoding # toJSONList :: [TransferType] -> Value # toEncodingList :: [TransferType] -> Encoding # | |
FromJSON TransferType Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser TransferType # parseJSONList :: Value -> Parser [TransferType] # | |
HasCodec TransferType Source # | |
Defined in Circle.Types |
data TransferErrorCode Source #
Instances
Eq TransferErrorCode Source # | |
Defined in Circle.Types (==) :: TransferErrorCode -> TransferErrorCode -> Bool # (/=) :: TransferErrorCode -> TransferErrorCode -> Bool # | |
Show TransferErrorCode Source # | |
Defined in Circle.Types showsPrec :: Int -> TransferErrorCode -> ShowS # show :: TransferErrorCode -> String # showList :: [TransferErrorCode] -> ShowS # | |
ToJSON TransferErrorCode Source # | |
Defined in Circle.Types toJSON :: TransferErrorCode -> Value # toEncoding :: TransferErrorCode -> Encoding # toJSONList :: [TransferErrorCode] -> Value # toEncodingList :: [TransferErrorCode] -> Encoding # | |
FromJSON TransferErrorCode Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser TransferErrorCode # parseJSONList :: Value -> Parser [TransferErrorCode] # | |
HasCodec TransferErrorCode Source # | |
Defined in Circle.Types |
data DepositAddressesRequest Source #
Instances
data DepositAddressRequest Source #
Instances
data DepositAddressResponseBody Source #
Response body for methods that call the "businessAccountwalletsaddresses/deposit" endpoint
Instances
Eq DepositAddressResponseBody Source # | |
Defined in Circle.Types | |
Show DepositAddressResponseBody Source # | |
Defined in Circle.Types showsPrec :: Int -> DepositAddressResponseBody -> ShowS # show :: DepositAddressResponseBody -> String # showList :: [DepositAddressResponseBody] -> ShowS # | |
ToJSON DepositAddressResponseBody Source # | |
Defined in Circle.Types | |
FromJSON DepositAddressResponseBody Source # | |
Defined in Circle.Types | |
HasCodec DepositAddressResponseBody Source # | |
data DepositAddressRequestBody Source #
Request body for creating a new deposit address
Instances
Eq DepositAddressRequestBody Source # | |
Defined in Circle.Types | |
Show DepositAddressRequestBody Source # | |
Defined in Circle.Types showsPrec :: Int -> DepositAddressRequestBody -> ShowS # show :: DepositAddressRequestBody -> String # showList :: [DepositAddressRequestBody] -> ShowS # | |
ToJSON DepositAddressRequestBody Source # | |
Defined in Circle.Types | |
FromJSON DepositAddressRequestBody Source # | |
Defined in Circle.Types | |
HasCodec DepositAddressRequestBody Source # | |
data RecipientAddressesRequest Source #
Instances
data RecipientAddressRequest Source #
Instances
data RecipientAddressResponseBody Source #
Response body for methods that call the "businessAccountwalletsaddresses/recipient" endpoint
Instances
Eq RecipientAddressResponseBody Source # | |
Defined in Circle.Types | |
Show RecipientAddressResponseBody Source # | |
Defined in Circle.Types showsPrec :: Int -> RecipientAddressResponseBody -> ShowS # show :: RecipientAddressResponseBody -> String # showList :: [RecipientAddressResponseBody] -> ShowS # | |
ToJSON RecipientAddressResponseBody Source # | |
Defined in Circle.Types | |
FromJSON RecipientAddressResponseBody Source # | |
Defined in Circle.Types | |
HasCodec RecipientAddressResponseBody Source # | |
data RecipientAddressRequestBody Source #
Request body for creating a new recipient address
Instances
Eq RecipientAddressRequestBody Source # | |
Defined in Circle.Types | |
Show RecipientAddressRequestBody Source # | |
Defined in Circle.Types showsPrec :: Int -> RecipientAddressRequestBody -> ShowS # show :: RecipientAddressRequestBody -> String # showList :: [RecipientAddressRequestBody] -> ShowS # | |
ToJSON RecipientAddressRequestBody Source # | |
Defined in Circle.Types | |
FromJSON RecipientAddressRequestBody Source # | |
Defined in Circle.Types | |
HasCodec RecipientAddressRequestBody Source # | |
data DepositsRequest Source #
Instances
CircleHasParam DepositsRequest TypeQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam DepositsRequest PageSizeQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam DepositsRequest ToQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam DepositsRequest FromQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam DepositsRequest PaginationQueryParams Source # | |
Defined in Circle.Types | |
type CircleRequest DepositsRequest Source # | |
Defined in Circle.Types |
data DepositResponseBody Source #
Response body for methods that call the "businessAccount/deposits" endpoint
Instances
Eq DepositResponseBody Source # | |
Defined in Circle.Types (==) :: DepositResponseBody -> DepositResponseBody -> Bool # (/=) :: DepositResponseBody -> DepositResponseBody -> Bool # | |
Show DepositResponseBody Source # | |
Defined in Circle.Types showsPrec :: Int -> DepositResponseBody -> ShowS # show :: DepositResponseBody -> String # showList :: [DepositResponseBody] -> ShowS # | |
ToJSON DepositResponseBody Source # | |
Defined in Circle.Types toJSON :: DepositResponseBody -> Value # toEncoding :: DepositResponseBody -> Encoding # toJSONList :: [DepositResponseBody] -> Value # toEncodingList :: [DepositResponseBody] -> Encoding # | |
FromJSON DepositResponseBody Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser DepositResponseBody # parseJSONList :: Value -> Parser [DepositResponseBody] # | |
HasCodec DepositResponseBody Source # | |
data MockPaymentRequest Source #
Instances
type CircleRequest MockPaymentRequest Source # | |
Defined in Circle.Types |
data MockPaymentResponseBody Source #
Response body for methods that call the "mockpayments*" endpoint
Instances
Eq MockPaymentResponseBody Source # | |
Defined in Circle.Types | |
Show MockPaymentResponseBody Source # | |
Defined in Circle.Types showsPrec :: Int -> MockPaymentResponseBody -> ShowS # show :: MockPaymentResponseBody -> String # showList :: [MockPaymentResponseBody] -> ShowS # | |
ToJSON MockPaymentResponseBody Source # | |
Defined in Circle.Types | |
FromJSON MockPaymentResponseBody Source # | |
Defined in Circle.Types | |
HasCodec MockPaymentResponseBody Source # | |
data MockSenOrWirePaymentRequestBody Source #
Request body to create a mock SEN or Wire payment (in the sandbox only).
Instances
data MockSEPAPaymentRequestBody Source #
Request body to create a mock SEPA payment (in the sandbox only).
Instances
Eq MockSEPAPaymentRequestBody Source # | |
Defined in Circle.Types | |
Show MockSEPAPaymentRequestBody Source # | |
Defined in Circle.Types showsPrec :: Int -> MockSEPAPaymentRequestBody -> ShowS # show :: MockSEPAPaymentRequestBody -> String # showList :: [MockSEPAPaymentRequestBody] -> ShowS # | |
ToJSON MockSEPAPaymentRequestBody Source # | |
Defined in Circle.Types | |
FromJSON MockSEPAPaymentRequestBody Source # | |
Defined in Circle.Types | |
HasCodec MockSEPAPaymentRequestBody Source # | |
newtype MockBeneficiaryBankDetails Source #
Instances
Eq MockBeneficiaryBankDetails Source # | |
Defined in Circle.Types | |
Show MockBeneficiaryBankDetails Source # | |
Defined in Circle.Types showsPrec :: Int -> MockBeneficiaryBankDetails -> ShowS # show :: MockBeneficiaryBankDetails -> String # showList :: [MockBeneficiaryBankDetails] -> ShowS # | |
ToJSON MockBeneficiaryBankDetails Source # | |
Defined in Circle.Types | |
FromJSON MockBeneficiaryBankDetails Source # | |
Defined in Circle.Types | |
HasCodec MockBeneficiaryBankDetails Source # | |
data SENAccountRequest Source #
Instances
type CircleRequest SENAccountRequest Source # | |
Defined in Circle.Types |
data SENAccountsRequest Source #
Instances
type CircleRequest SENAccountsRequest Source # | |
Defined in Circle.Types |
data SENInstructionsRequest Source #
Instances
data SENAccountRequestBody Source #
Request body to create a Silvergate SEN account.
Instances
Eq SENAccountRequestBody Source # | |
Defined in Circle.Types (==) :: SENAccountRequestBody -> SENAccountRequestBody -> Bool # (/=) :: SENAccountRequestBody -> SENAccountRequestBody -> Bool # | |
Show SENAccountRequestBody Source # | |
Defined in Circle.Types showsPrec :: Int -> SENAccountRequestBody -> ShowS # show :: SENAccountRequestBody -> String # showList :: [SENAccountRequestBody] -> ShowS # | |
ToJSON SENAccountRequestBody Source # | |
Defined in Circle.Types toJSON :: SENAccountRequestBody -> Value # toEncoding :: SENAccountRequestBody -> Encoding # toJSONList :: [SENAccountRequestBody] -> Value # toEncodingList :: [SENAccountRequestBody] -> Encoding # | |
FromJSON SENAccountRequestBody Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser SENAccountRequestBody # parseJSONList :: Value -> Parser [SENAccountRequestBody] # | |
HasCodec SENAccountRequestBody Source # | |
data SENAccountResponseBody Source #
Response body for methods that call the `businessAccountbankssen` endpoint
Instances
Eq SENAccountResponseBody Source # | |
Defined in Circle.Types | |
Show SENAccountResponseBody Source # | |
Defined in Circle.Types showsPrec :: Int -> SENAccountResponseBody -> ShowS # show :: SENAccountResponseBody -> String # showList :: [SENAccountResponseBody] -> ShowS # | |
ToJSON SENAccountResponseBody Source # | |
Defined in Circle.Types toJSON :: SENAccountResponseBody -> Value # toEncoding :: SENAccountResponseBody -> Encoding # toJSONList :: [SENAccountResponseBody] -> Value # | |
FromJSON SENAccountResponseBody Source # | |
Defined in Circle.Types | |
HasCodec SENAccountResponseBody Source # | |
data SENInstructionsResponseData Source #
Instances
data SignetBankAccountRequest Source #
Instances
data SignetBankAccountsRequest Source #
Instances
data SignetBankInstructionsRequest Source #
Instances
data SignetBankAccountRequestBody Source #
Request body to create Signet Bank bank account.
Instances
Eq SignetBankAccountRequestBody Source # | |
Defined in Circle.Types | |
Show SignetBankAccountRequestBody Source # | |
Defined in Circle.Types showsPrec :: Int -> SignetBankAccountRequestBody -> ShowS # show :: SignetBankAccountRequestBody -> String # showList :: [SignetBankAccountRequestBody] -> ShowS # | |
ToJSON SignetBankAccountRequestBody Source # | |
Defined in Circle.Types | |
FromJSON SignetBankAccountRequestBody Source # | |
Defined in Circle.Types | |
HasCodec SignetBankAccountRequestBody Source # | |
data SignetBankAccountResponseData Source #
Response body for methods that call the "businessAccountbankssignet" endpoint
Instances
Eq SignetBankAccountResponseData Source # | |
Defined in Circle.Types | |
Show SignetBankAccountResponseData Source # | |
Defined in Circle.Types showsPrec :: Int -> SignetBankAccountResponseData -> ShowS # show :: SignetBankAccountResponseData -> String # showList :: [SignetBankAccountResponseData] -> ShowS # | |
ToJSON SignetBankAccountResponseData Source # | |
Defined in Circle.Types | |
FromJSON SignetBankAccountResponseData Source # | |
Defined in Circle.Types | |
HasCodec SignetBankAccountResponseData Source # | |
data SignetBankInstructionsResponseData Source #
Instances
data WireAccountRequest Source #
Instances
type CircleRequest WireAccountRequest Source # | |
Defined in Circle.Types |
data WireAccountsRequest Source #
Instances
type CircleRequest WireAccountsRequest Source # | |
Defined in Circle.Types |
data WireInstructionsRequest Source #
Instances
data WireAccountRequestBody Source #
Request body to create a wire account. Sum type because this endpoint supports several different types of wire accounts.
USBankAccount !USBankAccountRequestBody | |
IBANBankAccount !IBANBankAccountRequestBody | |
NonIBANBankAccount !NonIBANBankAccountRequestBody |
Instances
Eq WireAccountRequestBody Source # | |
Defined in Circle.Types | |
Show WireAccountRequestBody Source # | |
Defined in Circle.Types showsPrec :: Int -> WireAccountRequestBody -> ShowS # show :: WireAccountRequestBody -> String # showList :: [WireAccountRequestBody] -> ShowS # |
data USBankAccountRequestBody Source #
Instances
Eq USBankAccountRequestBody Source # | |
Defined in Circle.Types | |
Show USBankAccountRequestBody Source # | |
Defined in Circle.Types showsPrec :: Int -> USBankAccountRequestBody -> ShowS # show :: USBankAccountRequestBody -> String # showList :: [USBankAccountRequestBody] -> ShowS # | |
ToJSON USBankAccountRequestBody Source # | |
Defined in Circle.Types | |
FromJSON USBankAccountRequestBody Source # | |
Defined in Circle.Types | |
HasCodec USBankAccountRequestBody Source # | |
data IBANBankAccountRequestBody Source #
Instances
Eq IBANBankAccountRequestBody Source # | |
Defined in Circle.Types | |
Show IBANBankAccountRequestBody Source # | |
Defined in Circle.Types showsPrec :: Int -> IBANBankAccountRequestBody -> ShowS # show :: IBANBankAccountRequestBody -> String # showList :: [IBANBankAccountRequestBody] -> ShowS # | |
ToJSON IBANBankAccountRequestBody Source # | |
Defined in Circle.Types | |
FromJSON IBANBankAccountRequestBody Source # | |
Defined in Circle.Types | |
HasCodec IBANBankAccountRequestBody Source # | |
data NonIBANBankAccountRequestBody Source #
Instances
Eq NonIBANBankAccountRequestBody Source # | |
Defined in Circle.Types | |
Show NonIBANBankAccountRequestBody Source # | |
Defined in Circle.Types showsPrec :: Int -> NonIBANBankAccountRequestBody -> ShowS # show :: NonIBANBankAccountRequestBody -> String # showList :: [NonIBANBankAccountRequestBody] -> ShowS # | |
ToJSON NonIBANBankAccountRequestBody Source # | |
Defined in Circle.Types | |
FromJSON NonIBANBankAccountRequestBody Source # | |
Defined in Circle.Types | |
HasCodec NonIBANBankAccountRequestBody Source # | |
data WireInstructionsResponseData Source #
Response body for getWireAccountInstructions
Instances
Eq WireInstructionsResponseData Source # | |
Defined in Circle.Types | |
Show WireInstructionsResponseData Source # | |
Defined in Circle.Types showsPrec :: Int -> WireInstructionsResponseData -> ShowS # show :: WireInstructionsResponseData -> String # showList :: [WireInstructionsResponseData] -> ShowS # | |
ToJSON WireInstructionsResponseData Source # | |
Defined in Circle.Types | |
FromJSON WireInstructionsResponseData Source # | |
Defined in Circle.Types | |
HasCodec WireInstructionsResponseData Source # | |
data WireAccountResponseBody Source #
Response body for methods that call the "wires" or "businessAccountwires" endpoints
Instances
Eq WireAccountResponseBody Source # | |
Defined in Circle.Types | |
Show WireAccountResponseBody Source # | |
Defined in Circle.Types showsPrec :: Int -> WireAccountResponseBody -> ShowS # show :: WireAccountResponseBody -> String # showList :: [WireAccountResponseBody] -> ShowS # | |
ToJSON WireAccountResponseBody Source # | |
Defined in Circle.Types | |
FromJSON WireAccountResponseBody Source # | |
Defined in Circle.Types | |
HasCodec WireAccountResponseBody Source # | |
data PaymentRequest Source #
Instances
data PaymentsRequest Source #
Instances
CircleHasParam PaymentsRequest PaymentStatusQueryParams Source # | |
Defined in Circle.Types | |
CircleHasParam PaymentsRequest PaymentIntentIdQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam PaymentsRequest SettlementIdQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam PaymentsRequest SourceQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam PaymentsRequest TypeQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam PaymentsRequest DestinationQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam PaymentsRequest PageSizeQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam PaymentsRequest ToQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam PaymentsRequest FromQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam PaymentsRequest PaginationQueryParams Source # | |
Defined in Circle.Types | |
type CircleRequest PaymentsRequest Source # | |
data CreatePaymentRequestBody Source #
Request body to create any kind of payment.
CreatePaymentRequestBody | |
|
Instances
Eq CreatePaymentRequestBody Source # | |
Defined in Circle.Types | |
Show CreatePaymentRequestBody Source # | |
Defined in Circle.Types showsPrec :: Int -> CreatePaymentRequestBody -> ShowS # show :: CreatePaymentRequestBody -> String # showList :: [CreatePaymentRequestBody] -> ShowS # | |
ToJSON CreatePaymentRequestBody Source # | |
Defined in Circle.Types | |
FromJSON CreatePaymentRequestBody Source # | |
Defined in Circle.Types | |
HasCodec CreatePaymentRequestBody Source # | |
data RequestMetadata Source #
Instances
Eq RequestMetadata Source # | |
Defined in Circle.Types (==) :: RequestMetadata -> RequestMetadata -> Bool # (/=) :: RequestMetadata -> RequestMetadata -> Bool # | |
Show RequestMetadata Source # | |
Defined in Circle.Types showsPrec :: Int -> RequestMetadata -> ShowS # show :: RequestMetadata -> String # showList :: [RequestMetadata] -> ShowS # | |
ToJSON RequestMetadata Source # | |
Defined in Circle.Types toJSON :: RequestMetadata -> Value # toEncoding :: RequestMetadata -> Encoding # toJSONList :: [RequestMetadata] -> Value # toEncodingList :: [RequestMetadata] -> Encoding # | |
FromJSON RequestMetadata Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser RequestMetadata # parseJSONList :: Value -> Parser [RequestMetadata] # | |
HasCodec RequestMetadata Source # | |
Defined in Circle.Types |
newtype PhoneNumber Source #
Instances
Eq PhoneNumber Source # | |
Defined in Circle.Types (==) :: PhoneNumber -> PhoneNumber -> Bool # (/=) :: PhoneNumber -> PhoneNumber -> Bool # | |
Show PhoneNumber Source # | |
Defined in Circle.Types showsPrec :: Int -> PhoneNumber -> ShowS # show :: PhoneNumber -> String # showList :: [PhoneNumber] -> ShowS # | |
ToJSON PhoneNumber Source # | |
Defined in Circle.Types toJSON :: PhoneNumber -> Value # toEncoding :: PhoneNumber -> Encoding # toJSONList :: [PhoneNumber] -> Value # toEncodingList :: [PhoneNumber] -> Encoding # | |
FromJSON PhoneNumber Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser PhoneNumber # parseJSONList :: Value -> Parser [PhoneNumber] # | |
HasCodec PhoneNumber Source # | |
Defined in Circle.Types |
data PaymentErrorCode Source #
Instances
Eq PaymentErrorCode Source # | |
Defined in Circle.Types (==) :: PaymentErrorCode -> PaymentErrorCode -> Bool # (/=) :: PaymentErrorCode -> PaymentErrorCode -> Bool # | |
Show PaymentErrorCode Source # | |
Defined in Circle.Types showsPrec :: Int -> PaymentErrorCode -> ShowS # show :: PaymentErrorCode -> String # showList :: [PaymentErrorCode] -> ShowS # | |
ToJSON PaymentErrorCode Source # | |
Defined in Circle.Types toJSON :: PaymentErrorCode -> Value # toEncoding :: PaymentErrorCode -> Encoding # toJSONList :: [PaymentErrorCode] -> Value # toEncodingList :: [PaymentErrorCode] -> Encoding # | |
FromJSON PaymentErrorCode Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser PaymentErrorCode # parseJSONList :: Value -> Parser [PaymentErrorCode] # | |
HasCodec PaymentErrorCode Source # | |
Defined in Circle.Types |
data FiatOrCryptoPaymentResponseBody Source #
A FiatOrCryptoPaymentResponseBody object represents a fiat or crypto payment. These payments look identical except for the Description field, and the fact that a FiatPayment could have response verification data, whereas a crypto payment could have info about the deposit address, transaction hash etc. I'd love to differentiate these fields based on what I can parse from JSON, but there's enough overlap between the two response bodies that I can cheat for now.
Instances
data ResponseMetadata Source #
Instances
Eq ResponseMetadata Source # | |
Defined in Circle.Types (==) :: ResponseMetadata -> ResponseMetadata -> Bool # (/=) :: ResponseMetadata -> ResponseMetadata -> Bool # | |
Show ResponseMetadata Source # | |
Defined in Circle.Types showsPrec :: Int -> ResponseMetadata -> ShowS # show :: ResponseMetadata -> String # showList :: [ResponseMetadata] -> ShowS # | |
ToJSON ResponseMetadata Source # | |
Defined in Circle.Types toJSON :: ResponseMetadata -> Value # toEncoding :: ResponseMetadata -> Encoding # toJSONList :: [ResponseMetadata] -> Value # toEncodingList :: [ResponseMetadata] -> Encoding # | |
FromJSON ResponseMetadata Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser ResponseMetadata # parseJSONList :: Value -> Parser [ResponseMetadata] # | |
HasCodec ResponseMetadata Source # | |
Defined in Circle.Types |
data VerificationData Source #
Instances
data PaymentDepositAddress Source #
Instances
Eq PaymentDepositAddress Source # | |
Defined in Circle.Types (==) :: PaymentDepositAddress -> PaymentDepositAddress -> Bool # (/=) :: PaymentDepositAddress -> PaymentDepositAddress -> Bool # | |
Show PaymentDepositAddress Source # | |
Defined in Circle.Types showsPrec :: Int -> PaymentDepositAddress -> ShowS # show :: PaymentDepositAddress -> String # showList :: [PaymentDepositAddress] -> ShowS # | |
ToJSON PaymentDepositAddress Source # | |
Defined in Circle.Types toJSON :: PaymentDepositAddress -> Value # toEncoding :: PaymentDepositAddress -> Encoding # toJSONList :: [PaymentDepositAddress] -> Value # toEncodingList :: [PaymentDepositAddress] -> Encoding # | |
FromJSON PaymentDepositAddress Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser PaymentDepositAddress # parseJSONList :: Value -> Parser [PaymentDepositAddress] # | |
HasCodec PaymentDepositAddress Source # | |
data FiatCancelOrRefundResponseBody Source #
A FiatCancelOrRefundResponseBody object represents an attempt at canceling or refunding a payment. Cancellations apply only to card payments, and its presence doesn't necessarily mean that the cancellation was successful. A successful cancellation has a status of paid, a successful refund has a status of confirmed.
Instances
Eq FiatCancelOrRefundResponseBody Source # | |
Defined in Circle.Types | |
Show FiatCancelOrRefundResponseBody Source # | |
Defined in Circle.Types | |
ToJSON FiatCancelOrRefundResponseBody Source # | |
Defined in Circle.Types | |
FromJSON FiatCancelOrRefundResponseBody Source # | |
Defined in Circle.Types | |
HasCodec FiatCancelOrRefundResponseBody Source # | |
data OriginalFiatPayment Source #
Instances
data PaymentSource Source #
Instances
Eq PaymentSource Source # | |
Defined in Circle.Types (==) :: PaymentSource -> PaymentSource -> Bool # (/=) :: PaymentSource -> PaymentSource -> Bool # | |
Show PaymentSource Source # | |
Defined in Circle.Types showsPrec :: Int -> PaymentSource -> ShowS # show :: PaymentSource -> String # showList :: [PaymentSource] -> ShowS # | |
ToJSON PaymentSource Source # | |
Defined in Circle.Types toJSON :: PaymentSource -> Value # toEncoding :: PaymentSource -> Encoding # toJSONList :: [PaymentSource] -> Value # toEncodingList :: [PaymentSource] -> Encoding # | |
FromJSON PaymentSource Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser PaymentSource # parseJSONList :: Value -> Parser [PaymentSource] # | |
HasCodec PaymentSource Source # | |
Defined in Circle.Types |
data PaymentActionRequired Source #
Instances
Eq PaymentActionRequired Source # | |
Defined in Circle.Types (==) :: PaymentActionRequired -> PaymentActionRequired -> Bool # (/=) :: PaymentActionRequired -> PaymentActionRequired -> Bool # | |
Show PaymentActionRequired Source # | |
Defined in Circle.Types showsPrec :: Int -> PaymentActionRequired -> ShowS # show :: PaymentActionRequired -> String # showList :: [PaymentActionRequired] -> ShowS # | |
ToJSON PaymentActionRequired Source # | |
Defined in Circle.Types toJSON :: PaymentActionRequired -> Value # toEncoding :: PaymentActionRequired -> Encoding # toJSONList :: [PaymentActionRequired] -> Value # toEncodingList :: [PaymentActionRequired] -> Encoding # | |
FromJSON PaymentActionRequired Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser PaymentActionRequired # parseJSONList :: Value -> Parser [PaymentActionRequired] # | |
HasCodec PaymentActionRequired Source # | |
data ActionRequiredType Source #
Instances
Eq ActionRequiredType Source # | |
Defined in Circle.Types (==) :: ActionRequiredType -> ActionRequiredType -> Bool # (/=) :: ActionRequiredType -> ActionRequiredType -> Bool # | |
Show ActionRequiredType Source # | |
Defined in Circle.Types showsPrec :: Int -> ActionRequiredType -> ShowS # show :: ActionRequiredType -> String # showList :: [ActionRequiredType] -> ShowS # | |
ToJSON ActionRequiredType Source # | |
Defined in Circle.Types toJSON :: ActionRequiredType -> Value # toEncoding :: ActionRequiredType -> Encoding # toJSONList :: [ActionRequiredType] -> Value # toEncodingList :: [ActionRequiredType] -> Encoding # | |
FromJSON ActionRequiredType Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser ActionRequiredType # parseJSONList :: Value -> Parser [ActionRequiredType] # | |
HasCodec ActionRequiredType Source # | |
Defined in Circle.Types |
data VerificationType Source #
Instances
Eq VerificationType Source # | |
Defined in Circle.Types (==) :: VerificationType -> VerificationType -> Bool # (/=) :: VerificationType -> VerificationType -> Bool # | |
Show VerificationType Source # | |
Defined in Circle.Types showsPrec :: Int -> VerificationType -> ShowS # show :: VerificationType -> String # showList :: [VerificationType] -> ShowS # | |
ToJSON VerificationType Source # | |
Defined in Circle.Types toJSON :: VerificationType -> Value # toEncoding :: VerificationType -> Encoding # toJSONList :: [VerificationType] -> Value # toEncodingList :: [VerificationType] -> Encoding # | |
FromJSON VerificationType Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser VerificationType # parseJSONList :: Value -> Parser [VerificationType] # | |
HasCodec VerificationType Source # | |
Defined in Circle.Types |
data PaymentType Source #
Instances
Eq PaymentType Source # | |
Defined in Circle.Types (==) :: PaymentType -> PaymentType -> Bool # (/=) :: PaymentType -> PaymentType -> Bool # | |
Show PaymentType Source # | |
Defined in Circle.Types showsPrec :: Int -> PaymentType -> ShowS # show :: PaymentType -> String # showList :: [PaymentType] -> ShowS # | |
ToJSON PaymentType Source # | |
Defined in Circle.Types toJSON :: PaymentType -> Value # toEncoding :: PaymentType -> Encoding # toJSONList :: [PaymentType] -> Value # toEncodingList :: [PaymentType] -> Encoding # | |
FromJSON PaymentType Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser PaymentType # parseJSONList :: Value -> Parser [PaymentType] # | |
HasCodec PaymentType Source # | |
Defined in Circle.Types |
data PaymentSourceType Source #
Instances
Eq PaymentSourceType Source # | |
Defined in Circle.Types (==) :: PaymentSourceType -> PaymentSourceType -> Bool # (/=) :: PaymentSourceType -> PaymentSourceType -> Bool # | |
Show PaymentSourceType Source # | |
Defined in Circle.Types showsPrec :: Int -> PaymentSourceType -> ShowS # show :: PaymentSourceType -> String # showList :: [PaymentSourceType] -> ShowS # | |
ToJSON PaymentSourceType Source # | |
Defined in Circle.Types toJSON :: PaymentSourceType -> Value # toEncoding :: PaymentSourceType -> Encoding # toJSONList :: [PaymentSourceType] -> Value # toEncodingList :: [PaymentSourceType] -> Encoding # | |
FromJSON PaymentSourceType Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser PaymentSourceType # parseJSONList :: Value -> Parser [PaymentSourceType] # | |
HasCodec PaymentSourceType Source # | |
Defined in Circle.Types |
data CancelPaymentRequestBody Source #
Request body to cancel a fiat payment.
Instances
Eq CancelPaymentRequestBody Source # | |
Defined in Circle.Types | |
Show CancelPaymentRequestBody Source # | |
Defined in Circle.Types showsPrec :: Int -> CancelPaymentRequestBody -> ShowS # show :: CancelPaymentRequestBody -> String # showList :: [CancelPaymentRequestBody] -> ShowS # | |
ToJSON CancelPaymentRequestBody Source # | |
Defined in Circle.Types | |
FromJSON CancelPaymentRequestBody Source # | |
Defined in Circle.Types | |
HasCodec CancelPaymentRequestBody Source # | |
data CancelPaymentReason Source #
Instances
Eq CancelPaymentReason Source # | |
Defined in Circle.Types (==) :: CancelPaymentReason -> CancelPaymentReason -> Bool # (/=) :: CancelPaymentReason -> CancelPaymentReason -> Bool # | |
Show CancelPaymentReason Source # | |
Defined in Circle.Types showsPrec :: Int -> CancelPaymentReason -> ShowS # show :: CancelPaymentReason -> String # showList :: [CancelPaymentReason] -> ShowS # | |
ToJSON CancelPaymentReason Source # | |
Defined in Circle.Types toJSON :: CancelPaymentReason -> Value # toEncoding :: CancelPaymentReason -> Encoding # toJSONList :: [CancelPaymentReason] -> Value # toEncodingList :: [CancelPaymentReason] -> Encoding # | |
FromJSON CancelPaymentReason Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser CancelPaymentReason # parseJSONList :: Value -> Parser [CancelPaymentReason] # | |
HasCodec CancelPaymentReason Source # | |
data RefundPaymentRequestBody Source #
Request body to refund a fiat payment.
Instances
Eq RefundPaymentRequestBody Source # | |
Defined in Circle.Types | |
Show RefundPaymentRequestBody Source # | |
Defined in Circle.Types showsPrec :: Int -> RefundPaymentRequestBody -> ShowS # show :: RefundPaymentRequestBody -> String # showList :: [RefundPaymentRequestBody] -> ShowS # | |
ToJSON RefundPaymentRequestBody Source # | |
Defined in Circle.Types | |
FromJSON RefundPaymentRequestBody Source # | |
Defined in Circle.Types | |
HasCodec RefundPaymentRequestBody Source # | |
data OnChainTransferRequest Source #
Instances
data OnChainTransfersRequest Source #
Instances
data OnChainAddressRequest Source #
Instances
data OnChainTransferRequestBody Source #
Request body to create an on-chain transfer
Instances
Eq OnChainTransferRequestBody Source # | |
Defined in Circle.Types | |
Show OnChainTransferRequestBody Source # | |
Defined in Circle.Types showsPrec :: Int -> OnChainTransferRequestBody -> ShowS # show :: OnChainTransferRequestBody -> String # showList :: [OnChainTransferRequestBody] -> ShowS # | |
ToJSON OnChainTransferRequestBody Source # | |
Defined in Circle.Types |
data CardsRequest Source #
Instances
CircleHasParam CardsRequest PageSizeQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam CardsRequest PaginationQueryParams Source # | |
Defined in Circle.Types | |
type CircleRequest CardsRequest Source # | |
Defined in Circle.Types |
data CardRequest Source #
Instances
type CircleRequest CardRequest Source # | |
Defined in Circle.Types |
data ListCardResponseBody Source #
Response body for listAllCards
Instances
Eq ListCardResponseBody Source # | |
Defined in Circle.Types (==) :: ListCardResponseBody -> ListCardResponseBody -> Bool # (/=) :: ListCardResponseBody -> ListCardResponseBody -> Bool # | |
Show ListCardResponseBody Source # | |
Defined in Circle.Types showsPrec :: Int -> ListCardResponseBody -> ShowS # show :: ListCardResponseBody -> String # showList :: [ListCardResponseBody] -> ShowS # | |
ToJSON ListCardResponseBody Source # | |
Defined in Circle.Types toJSON :: ListCardResponseBody -> Value # toEncoding :: ListCardResponseBody -> Encoding # toJSONList :: [ListCardResponseBody] -> Value # toEncodingList :: [ListCardResponseBody] -> Encoding # | |
FromJSON ListCardResponseBody Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser ListCardResponseBody # parseJSONList :: Value -> Parser [ListCardResponseBody] # | |
HasCodec ListCardResponseBody Source # | |
data CardResponseBody Source #
Response body for methods that interface with an individual card: createCard
, getCard
, and updateCard
CardResponseBody | |
|
Instances
Eq CardResponseBody Source # | |
Defined in Circle.Types (==) :: CardResponseBody -> CardResponseBody -> Bool # (/=) :: CardResponseBody -> CardResponseBody -> Bool # | |
Show CardResponseBody Source # | |
Defined in Circle.Types showsPrec :: Int -> CardResponseBody -> ShowS # show :: CardResponseBody -> String # showList :: [CardResponseBody] -> ShowS # | |
ToJSON CardResponseBody Source # | |
Defined in Circle.Types toJSON :: CardResponseBody -> Value # toEncoding :: CardResponseBody -> Encoding # toJSONList :: [CardResponseBody] -> Value # toEncodingList :: [CardResponseBody] -> Encoding # | |
FromJSON CardResponseBody Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser CardResponseBody # parseJSONList :: Value -> Parser [CardResponseBody] # | |
HasCodec CardResponseBody Source # | |
Defined in Circle.Types |
data CreateCardRequestBody Source #
Request body to create a debit card.
Instances
Eq CreateCardRequestBody Source # | |
Defined in Circle.Types (==) :: CreateCardRequestBody -> CreateCardRequestBody -> Bool # (/=) :: CreateCardRequestBody -> CreateCardRequestBody -> Bool # | |
Show CreateCardRequestBody Source # | |
Defined in Circle.Types showsPrec :: Int -> CreateCardRequestBody -> ShowS # show :: CreateCardRequestBody -> String # showList :: [CreateCardRequestBody] -> ShowS # | |
ToJSON CreateCardRequestBody Source # | |
Defined in Circle.Types toJSON :: CreateCardRequestBody -> Value # toEncoding :: CreateCardRequestBody -> Encoding # toJSONList :: [CreateCardRequestBody] -> Value # toEncodingList :: [CreateCardRequestBody] -> Encoding # | |
FromJSON CreateCardRequestBody Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser CreateCardRequestBody # parseJSONList :: Value -> Parser [CreateCardRequestBody] # | |
HasCodec CreateCardRequestBody Source # | |
data UpdateCardRequestBody Source #
Request body to update a debit card.
UpdateCardRequestBody | |
|
Instances
Eq UpdateCardRequestBody Source # | |
Defined in Circle.Types (==) :: UpdateCardRequestBody -> UpdateCardRequestBody -> Bool # (/=) :: UpdateCardRequestBody -> UpdateCardRequestBody -> Bool # | |
Show UpdateCardRequestBody Source # | |
Defined in Circle.Types showsPrec :: Int -> UpdateCardRequestBody -> ShowS # show :: UpdateCardRequestBody -> String # showList :: [UpdateCardRequestBody] -> ShowS # | |
ToJSON UpdateCardRequestBody Source # | |
Defined in Circle.Types toJSON :: UpdateCardRequestBody -> Value # toEncoding :: UpdateCardRequestBody -> Encoding # toJSONList :: [UpdateCardRequestBody] -> Value # toEncodingList :: [UpdateCardRequestBody] -> Encoding # | |
FromJSON UpdateCardRequestBody Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser UpdateCardRequestBody # parseJSONList :: Value -> Parser [UpdateCardRequestBody] # | |
HasCodec UpdateCardRequestBody Source # | |
data ListCardBillingDetails Source #
Instances
data CardNetwork Source #
Instances
data CardFundingType Source #
Instances
data VerificationErrorCode Source #
Instances
Eq VerificationErrorCode Source # | |
Defined in Circle.Types (==) :: VerificationErrorCode -> VerificationErrorCode -> Bool # (/=) :: VerificationErrorCode -> VerificationErrorCode -> Bool # | |
Show VerificationErrorCode Source # | |
Defined in Circle.Types showsPrec :: Int -> VerificationErrorCode -> ShowS # show :: VerificationErrorCode -> String # showList :: [VerificationErrorCode] -> ShowS # | |
ToJSON VerificationErrorCode Source # | |
Defined in Circle.Types toJSON :: VerificationErrorCode -> Value # toEncoding :: VerificationErrorCode -> Encoding # toJSONList :: [VerificationErrorCode] -> Value # toEncodingList :: [VerificationErrorCode] -> Encoding # | |
FromJSON VerificationErrorCode Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser VerificationErrorCode # parseJSONList :: Value -> Parser [VerificationErrorCode] # | |
HasCodec VerificationErrorCode Source # | |
data ACHBankAccountRequest Source #
Instances
data ACHBankAccountResponseBody Source #
Response body for createACHAccount
and getACHAccount
Instances
Eq ACHBankAccountResponseBody Source # | |
Defined in Circle.Types | |
Show ACHBankAccountResponseBody Source # | |
Defined in Circle.Types showsPrec :: Int -> ACHBankAccountResponseBody -> ShowS # show :: ACHBankAccountResponseBody -> String # showList :: [ACHBankAccountResponseBody] -> ShowS # | |
ToJSON ACHBankAccountResponseBody Source # | |
Defined in Circle.Types | |
FromJSON ACHBankAccountResponseBody Source # | |
Defined in Circle.Types | |
HasCodec ACHBankAccountResponseBody Source # | |
data ACHBankAccountErrorCode Source #
Instances
Eq ACHBankAccountErrorCode Source # | |
Defined in Circle.Types | |
Show ACHBankAccountErrorCode Source # | |
Defined in Circle.Types showsPrec :: Int -> ACHBankAccountErrorCode -> ShowS # show :: ACHBankAccountErrorCode -> String # showList :: [ACHBankAccountErrorCode] -> ShowS # | |
ToJSON ACHBankAccountErrorCode Source # | |
Defined in Circle.Types | |
FromJSON ACHBankAccountErrorCode Source # | |
Defined in Circle.Types | |
HasCodec ACHBankAccountErrorCode Source # | |
data CreateACHBankAccountRequestBody Source #
Request body to an ACH bank account.
Instances
data MockAccountRequest Source #
Instances
data CreateMockACHBankAccountRequestBody Source #
Request body to create a mock ACH bank account (in the sandbox only).
Instances
data MockACHBankAccountResponseBody Source #
Response body for methods that call the "mocksachaccount" endpoint
Instances
Eq MockACHBankAccountResponseBody Source # | |
Defined in Circle.Types | |
Show MockACHBankAccountResponseBody Source # | |
Defined in Circle.Types | |
ToJSON MockACHBankAccountResponseBody Source # | |
Defined in Circle.Types | |
FromJSON MockACHBankAccountResponseBody Source # | |
Defined in Circle.Types | |
HasCodec MockACHBankAccountResponseBody Source # | |
data MockACHBankAccount Source #
Instances
Eq MockACHBankAccount Source # | |
Defined in Circle.Types (==) :: MockACHBankAccount -> MockACHBankAccount -> Bool # (/=) :: MockACHBankAccount -> MockACHBankAccount -> Bool # | |
Show MockACHBankAccount Source # | |
Defined in Circle.Types showsPrec :: Int -> MockACHBankAccount -> ShowS # show :: MockACHBankAccount -> String # showList :: [MockACHBankAccount] -> ShowS # | |
ToJSON MockACHBankAccount Source # | |
Defined in Circle.Types toJSON :: MockACHBankAccount -> Value # toEncoding :: MockACHBankAccount -> Encoding # toJSONList :: [MockACHBankAccount] -> Value # toEncodingList :: [MockACHBankAccount] -> Encoding # | |
FromJSON MockACHBankAccount Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser MockACHBankAccount # parseJSONList :: Value -> Parser [MockACHBankAccount] # | |
HasCodec MockACHBankAccount Source # | |
Defined in Circle.Types |
data MockRoutingNumber Source #
MockRoutingNumber1 | |
MockRoutingNumber2 | |
MockRoutingNumber3 | |
MockRoutingNumber4 | |
MockRoutingNumber5 | |
MockRoutingNumber6 | |
MockRoutingNumber7 | |
MockRoutingNumber8 | |
MockRoutingNumber9 |
Instances
data SEPAAccountRequest Source #
Instances
type CircleRequest SEPAAccountRequest Source # | |
Defined in Circle.Types |
data SEPAInstructionsRequest Source #
Instances
data SEPAAccountRequestBody Source #
Request body to create a SEPA account.
Instances
Eq SEPAAccountRequestBody Source # | |
Defined in Circle.Types | |
Show SEPAAccountRequestBody Source # | |
Defined in Circle.Types showsPrec :: Int -> SEPAAccountRequestBody -> ShowS # show :: SEPAAccountRequestBody -> String # showList :: [SEPAAccountRequestBody] -> ShowS # | |
ToJSON SEPAAccountRequestBody Source # | |
Defined in Circle.Types toJSON :: SEPAAccountRequestBody -> Value # toEncoding :: SEPAAccountRequestBody -> Encoding # toJSONList :: [SEPAAccountRequestBody] -> Value # | |
FromJSON SEPAAccountRequestBody Source # | |
Defined in Circle.Types | |
HasCodec SEPAAccountRequestBody Source # | |
data SEPAAccountResponseBody Source #
Response body for methods that call the "banks/sepa" endpoint
Instances
Eq SEPAAccountResponseBody Source # | |
Defined in Circle.Types | |
Show SEPAAccountResponseBody Source # | |
Defined in Circle.Types showsPrec :: Int -> SEPAAccountResponseBody -> ShowS # show :: SEPAAccountResponseBody -> String # showList :: [SEPAAccountResponseBody] -> ShowS # | |
ToJSON SEPAAccountResponseBody Source # | |
Defined in Circle.Types | |
FromJSON SEPAAccountResponseBody Source # | |
Defined in Circle.Types | |
HasCodec SEPAAccountResponseBody Source # | |
data SettlementRequest Source #
Instances
type CircleRequest SettlementRequest Source # | |
Defined in Circle.Types |
data SettlementsRequest Source #
Instances
CircleHasParam SettlementsRequest PageSizeQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam SettlementsRequest ToQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam SettlementsRequest FromQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam SettlementsRequest PaginationQueryParams Source # | |
Defined in Circle.Types | |
type CircleRequest SettlementsRequest Source # | |
Defined in Circle.Types |
data SettlementResponseBody Source #
Response body for methods that call the "settlements" endpoint
Instances
Eq SettlementResponseBody Source # | |
Defined in Circle.Types | |
Show SettlementResponseBody Source # | |
Defined in Circle.Types showsPrec :: Int -> SettlementResponseBody -> ShowS # show :: SettlementResponseBody -> String # showList :: [SettlementResponseBody] -> ShowS # | |
ToJSON SettlementResponseBody Source # | |
Defined in Circle.Types toJSON :: SettlementResponseBody -> Value # toEncoding :: SettlementResponseBody -> Encoding # toJSONList :: [SettlementResponseBody] -> Value # | |
FromJSON SettlementResponseBody Source # | |
Defined in Circle.Types | |
HasCodec SettlementResponseBody Source # | |
data ChargebacksRequest Source #
Instances
CircleHasParam ChargebacksRequest PaymentIdQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam ChargebacksRequest PageSizeQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam ChargebacksRequest ToQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam ChargebacksRequest FromQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam ChargebacksRequest PaginationQueryParams Source # | |
Defined in Circle.Types | |
type CircleRequest ChargebacksRequest Source # | |
Defined in Circle.Types |
data ChargebackRequest Source #
Instances
type CircleRequest ChargebackRequest Source # | |
Defined in Circle.Types |
data MockChargebackRequest Source #
Instances
data ChargebackResponseBody Source #
Response body for methods that call the "cardschargebacks" and "mockscards/chargebacks" endpoints
Instances
Eq ChargebackResponseBody Source # | |
Defined in Circle.Types | |
Show ChargebackResponseBody Source # | |
Defined in Circle.Types showsPrec :: Int -> ChargebackResponseBody -> ShowS # show :: ChargebackResponseBody -> String # showList :: [ChargebackResponseBody] -> ShowS # | |
ToJSON ChargebackResponseBody Source # | |
Defined in Circle.Types toJSON :: ChargebackResponseBody -> Value # toEncoding :: ChargebackResponseBody -> Encoding # toJSONList :: [ChargebackResponseBody] -> Value # | |
FromJSON ChargebackResponseBody Source # | |
Defined in Circle.Types | |
HasCodec ChargebackResponseBody Source # | |
data ChargebackCategory Source #
Instances
data ChargebackHistory Source #
Instances
Eq ChargebackHistory Source # | |
Defined in Circle.Types (==) :: ChargebackHistory -> ChargebackHistory -> Bool # (/=) :: ChargebackHistory -> ChargebackHistory -> Bool # | |
Show ChargebackHistory Source # | |
Defined in Circle.Types showsPrec :: Int -> ChargebackHistory -> ShowS # show :: ChargebackHistory -> String # showList :: [ChargebackHistory] -> ShowS # | |
ToJSON ChargebackHistory Source # | |
Defined in Circle.Types toJSON :: ChargebackHistory -> Value # toEncoding :: ChargebackHistory -> Encoding # toJSONList :: [ChargebackHistory] -> Value # toEncodingList :: [ChargebackHistory] -> Encoding # | |
FromJSON ChargebackHistory Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser ChargebackHistory # parseJSONList :: Value -> Parser [ChargebackHistory] # | |
HasCodec ChargebackHistory Source # | |
Defined in Circle.Types |
data ChargebackHistoryType Source #
Instances
data ReversalsRequest Source #
Instances
CircleHasParam ReversalsRequest PaymentStatusQueryParams Source # | |
Defined in Circle.Types | |
CircleHasParam ReversalsRequest PageSizeQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam ReversalsRequest ToQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam ReversalsRequest FromQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam ReversalsRequest PaginationQueryParams Source # | |
Defined in Circle.Types | |
type CircleRequest ReversalsRequest Source # | |
Defined in Circle.Types |
data ReversalResponseBody Source #
Response body for methods that call the "reversals" endpoint
Instances
Eq ReversalResponseBody Source # | |
Defined in Circle.Types (==) :: ReversalResponseBody -> ReversalResponseBody -> Bool # (/=) :: ReversalResponseBody -> ReversalResponseBody -> Bool # | |
Show ReversalResponseBody Source # | |
Defined in Circle.Types showsPrec :: Int -> ReversalResponseBody -> ShowS # show :: ReversalResponseBody -> String # showList :: [ReversalResponseBody] -> ShowS # | |
ToJSON ReversalResponseBody Source # | |
Defined in Circle.Types toJSON :: ReversalResponseBody -> Value # toEncoding :: ReversalResponseBody -> Encoding # toJSONList :: [ReversalResponseBody] -> Value # toEncodingList :: [ReversalResponseBody] -> Encoding # | |
FromJSON ReversalResponseBody Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser ReversalResponseBody # parseJSONList :: Value -> Parser [ReversalResponseBody] # | |
HasCodec ReversalResponseBody Source # | |
data ReversalReason Source #
Instances
data PaymentIntentRequest Source #
Instances
data PaymentIntentsRequest Source #
Instances
data CreatePaymentIntentRequestBody Source #
Request body to create a payment intent for a blockchain payment
Instances
Eq CreatePaymentIntentRequestBody Source # | |
Defined in Circle.Types | |
Show CreatePaymentIntentRequestBody Source # | |
Defined in Circle.Types | |
ToJSON CreatePaymentIntentRequestBody Source # | |
Defined in Circle.Types | |
FromJSON CreatePaymentIntentRequestBody Source # | |
Defined in Circle.Types | |
HasCodec CreatePaymentIntentRequestBody Source # | |
data PaymentIntentResponseBody Source #
Response body for methods that call the "paymentIntents" endpoint
Instances
Eq PaymentIntentResponseBody Source # | |
Defined in Circle.Types | |
Show PaymentIntentResponseBody Source # | |
Defined in Circle.Types showsPrec :: Int -> PaymentIntentResponseBody -> ShowS # show :: PaymentIntentResponseBody -> String # showList :: [PaymentIntentResponseBody] -> ShowS # | |
ToJSON PaymentIntentResponseBody Source # | |
Defined in Circle.Types | |
FromJSON PaymentIntentResponseBody Source # | |
Defined in Circle.Types | |
HasCodec PaymentIntentResponseBody Source # | |
data PaymentMethodData Source #
Instances
Eq PaymentMethodData Source # | |
Defined in Circle.Types (==) :: PaymentMethodData -> PaymentMethodData -> Bool # (/=) :: PaymentMethodData -> PaymentMethodData -> Bool # | |
Show PaymentMethodData Source # | |
Defined in Circle.Types showsPrec :: Int -> PaymentMethodData -> ShowS # show :: PaymentMethodData -> String # showList :: [PaymentMethodData] -> ShowS # | |
ToJSON PaymentMethodData Source # | |
Defined in Circle.Types toJSON :: PaymentMethodData -> Value # toEncoding :: PaymentMethodData -> Encoding # toJSONList :: [PaymentMethodData] -> Value # toEncodingList :: [PaymentMethodData] -> Encoding # | |
FromJSON PaymentMethodData Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser PaymentMethodData # parseJSONList :: Value -> Parser [PaymentMethodData] # | |
HasCodec PaymentMethodData Source # | |
Defined in Circle.Types |
data TimelineData Source #
Instances
Eq TimelineData Source # | |
Defined in Circle.Types (==) :: TimelineData -> TimelineData -> Bool # (/=) :: TimelineData -> TimelineData -> Bool # | |
Show TimelineData Source # | |
Defined in Circle.Types showsPrec :: Int -> TimelineData -> ShowS # show :: TimelineData -> String # showList :: [TimelineData] -> ShowS # | |
ToJSON TimelineData Source # | |
Defined in Circle.Types toJSON :: TimelineData -> Value # toEncoding :: TimelineData -> Encoding # toJSONList :: [TimelineData] -> Value # toEncodingList :: [TimelineData] -> Encoding # | |
FromJSON TimelineData Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser TimelineData # parseJSONList :: Value -> Parser [TimelineData] # | |
HasCodec TimelineData Source # | |
Defined in Circle.Types |
data ReturnsRequest Source #
Instances
CircleHasParam ReturnsRequest PageSizeQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam ReturnsRequest ToQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam ReturnsRequest FromQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam ReturnsRequest PaginationQueryParams Source # | |
Defined in Circle.Types | |
type CircleRequest ReturnsRequest Source # | |
Defined in Circle.Types |
data WalletRequest Source #
Instances
type CircleRequest WalletRequest Source # | |
Defined in Circle.Types |
data WalletsRequest Source #
Instances
CircleHasParam WalletsRequest PageSizeQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam WalletsRequest ToQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam WalletsRequest FromQueryParam Source # | |
Defined in Circle.Types | |
CircleHasParam WalletsRequest PaginationQueryParams Source # | |
Defined in Circle.Types | |
type CircleRequest WalletsRequest Source # | |
Defined in Circle.Types |
data WalletResponseBody Source #
Response body for methods that call the "wallets" endpoint
Instances
Eq WalletResponseBody Source # | |
Defined in Circle.Types (==) :: WalletResponseBody -> WalletResponseBody -> Bool # (/=) :: WalletResponseBody -> WalletResponseBody -> Bool # | |
Show WalletResponseBody Source # | |
Defined in Circle.Types showsPrec :: Int -> WalletResponseBody -> ShowS # show :: WalletResponseBody -> String # showList :: [WalletResponseBody] -> ShowS # | |
ToJSON WalletResponseBody Source # | |
Defined in Circle.Types toJSON :: WalletResponseBody -> Value # toEncoding :: WalletResponseBody -> Encoding # toJSONList :: [WalletResponseBody] -> Value # toEncodingList :: [WalletResponseBody] -> Encoding # | |
FromJSON WalletResponseBody Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser WalletResponseBody # parseJSONList :: Value -> Parser [WalletResponseBody] # | |
HasCodec WalletResponseBody Source # | |
Defined in Circle.Types |
data CreateWalletRequestBody Source #
Request body to create a Circle wallet.
Instances
Eq CreateWalletRequestBody Source # | |
Defined in Circle.Types | |
Show CreateWalletRequestBody Source # | |
Defined in Circle.Types showsPrec :: Int -> CreateWalletRequestBody -> ShowS # show :: CreateWalletRequestBody -> String # showList :: [CreateWalletRequestBody] -> ShowS # | |
ToJSON CreateWalletRequestBody Source # | |
Defined in Circle.Types | |
FromJSON CreateWalletRequestBody Source # | |
Defined in Circle.Types | |
HasCodec CreateWalletRequestBody Source # | |
utcToCircle :: UTCTime -> Text Source #
data ThisOrThat a b Source #
Similar to Either
but with different ToJSON
and FromJSON
instances.
ToJSON
will serialize the payload without adding any kind of tag.
FromJSON
will first attempt to parse JSON as the first type parameter,
and if that fails will then attempt to parse as the second type parameter.
NB: The order of type parameters make a huge difference!
In
, if ThisOrThat
A BA
is structurally a subtype of B
, then the
parser can never produce a That
result! For example, with types
data A = A {foo :: String, bar :: Scientific} data B = B {foo :: String, bar :: Scientific, baz :: Bool}
can never parse a FromJSON
(ThisOrThat
A B)B
. Any JSON object
that includes properties foo: string
and bar: number
will parse
as an A
, whether or not the property baz: boolean
is present. You
can fix this by instead using
.ThisOrThat
B A
Instances
catThises :: [ThisOrThat a b] -> [a] Source #
catThats :: [ThisOrThat a b] -> [b] Source #
thisOrThatToEither :: ThisOrThat a b -> Either a b Source #
thisOrThat :: (a -> c) -> (b -> c) -> ThisOrThat a b -> c Source #
data PaymentStatus Source #
Instances
Eq PaymentStatus Source # | |
Defined in Circle.Types (==) :: PaymentStatus -> PaymentStatus -> Bool # (/=) :: PaymentStatus -> PaymentStatus -> Bool # | |
Show PaymentStatus Source # | |
Defined in Circle.Types showsPrec :: Int -> PaymentStatus -> ShowS # show :: PaymentStatus -> String # showList :: [PaymentStatus] -> ShowS # | |
ToJSON PaymentStatus Source # | |
Defined in Circle.Types toJSON :: PaymentStatus -> Value # toEncoding :: PaymentStatus -> Encoding # toJSONList :: [PaymentStatus] -> Value # toEncodingList :: [PaymentStatus] -> Encoding # | |
FromJSON PaymentStatus Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser PaymentStatus # parseJSONList :: Value -> Parser [PaymentStatus] # | |
HasCodec PaymentStatus Source # | |
Defined in Circle.Types |
data PaymentIntentStatus Source #
PaymentIntentCreated | |
PaymentIntentPending | |
PaymentIntentComplete | |
PaymentIntentExpired | |
PaymentIntentFailed |
Instances
Eq PaymentIntentStatus Source # | |
Defined in Circle.Types (==) :: PaymentIntentStatus -> PaymentIntentStatus -> Bool # (/=) :: PaymentIntentStatus -> PaymentIntentStatus -> Bool # | |
Show PaymentIntentStatus Source # | |
Defined in Circle.Types showsPrec :: Int -> PaymentIntentStatus -> ShowS # show :: PaymentIntentStatus -> String # showList :: [PaymentIntentStatus] -> ShowS # | |
ToJSON PaymentIntentStatus Source # | |
Defined in Circle.Types toJSON :: PaymentIntentStatus -> Value # toEncoding :: PaymentIntentStatus -> Encoding # toJSONList :: [PaymentIntentStatus] -> Value # toEncodingList :: [PaymentIntentStatus] -> Encoding # | |
FromJSON PaymentIntentStatus Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser PaymentIntentStatus # parseJSONList :: Value -> Parser [PaymentIntentStatus] # | |
HasCodec PaymentIntentStatus Source # | |
data PaymentIntentContext Source #
Instances
Eq PaymentIntentContext Source # | |
Defined in Circle.Types (==) :: PaymentIntentContext -> PaymentIntentContext -> Bool # (/=) :: PaymentIntentContext -> PaymentIntentContext -> Bool # | |
Show PaymentIntentContext Source # | |
Defined in Circle.Types showsPrec :: Int -> PaymentIntentContext -> ShowS # show :: PaymentIntentContext -> String # showList :: [PaymentIntentContext] -> ShowS # | |
ToJSON PaymentIntentContext Source # | |
Defined in Circle.Types toJSON :: PaymentIntentContext -> Value # toEncoding :: PaymentIntentContext -> Encoding # toJSONList :: [PaymentIntentContext] -> Value # toEncodingList :: [PaymentIntentContext] -> Encoding # | |
FromJSON PaymentIntentContext Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser PaymentIntentContext # parseJSONList :: Value -> Parser [PaymentIntentContext] # | |
HasCodec PaymentIntentContext Source # | |
Address | |
|
data BankAccountType Source #
Instances
Eq BankAccountType Source # | |
Defined in Circle.Types (==) :: BankAccountType -> BankAccountType -> Bool # (/=) :: BankAccountType -> BankAccountType -> Bool # | |
Show BankAccountType Source # | |
Defined in Circle.Types showsPrec :: Int -> BankAccountType -> ShowS # show :: BankAccountType -> String # showList :: [BankAccountType] -> ShowS # | |
ToJSON BankAccountType Source # | |
Defined in Circle.Types toJSON :: BankAccountType -> Value # toEncoding :: BankAccountType -> Encoding # toJSONList :: [BankAccountType] -> Value # toEncodingList :: [BankAccountType] -> Encoding # | |
FromJSON BankAccountType Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser BankAccountType # parseJSONList :: Value -> Parser [BankAccountType] # | |
HasCodec BankAccountType Source # | |
Defined in Circle.Types |
data ACHBankAccountType Source #
Instances
Eq ACHBankAccountType Source # | |
Defined in Circle.Types (==) :: ACHBankAccountType -> ACHBankAccountType -> Bool # (/=) :: ACHBankAccountType -> ACHBankAccountType -> Bool # | |
Show ACHBankAccountType Source # | |
Defined in Circle.Types showsPrec :: Int -> ACHBankAccountType -> ShowS # show :: ACHBankAccountType -> String # showList :: [ACHBankAccountType] -> ShowS # | |
ToJSON ACHBankAccountType Source # | |
Defined in Circle.Types toJSON :: ACHBankAccountType -> Value # toEncoding :: ACHBankAccountType -> Encoding # toJSONList :: [ACHBankAccountType] -> Value # toEncodingList :: [ACHBankAccountType] -> Encoding # | |
FromJSON ACHBankAccountType Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser ACHBankAccountType # parseJSONList :: Value -> Parser [ACHBankAccountType] # | |
HasCodec ACHBankAccountType Source # | |
Defined in Circle.Types |
data DestinationBankAccount Source #
Instances
Eq DestinationBankAccount Source # | |
Defined in Circle.Types | |
Show DestinationBankAccount Source # | |
Defined in Circle.Types showsPrec :: Int -> DestinationBankAccount -> ShowS # show :: DestinationBankAccount -> String # showList :: [DestinationBankAccount] -> ShowS # | |
ToJSON DestinationBankAccount Source # | |
Defined in Circle.Types toJSON :: DestinationBankAccount -> Value # toEncoding :: DestinationBankAccount -> Encoding # toJSONList :: [DestinationBankAccount] -> Value # | |
FromJSON DestinationBankAccount Source # | |
Defined in Circle.Types | |
HasCodec DestinationBankAccount Source # | |
data SupportedCurrencies Source #
Instances
data BlockchainFeeType Source #
Instances
Eq BlockchainFeeType Source # | |
Defined in Circle.Types (==) :: BlockchainFeeType -> BlockchainFeeType -> Bool # (/=) :: BlockchainFeeType -> BlockchainFeeType -> Bool # | |
Show BlockchainFeeType Source # | |
Defined in Circle.Types showsPrec :: Int -> BlockchainFeeType -> ShowS # show :: BlockchainFeeType -> String # showList :: [BlockchainFeeType] -> ShowS # | |
ToJSON BlockchainFeeType Source # | |
Defined in Circle.Types toJSON :: BlockchainFeeType -> Value # toEncoding :: BlockchainFeeType -> Encoding # toJSONList :: [BlockchainFeeType] -> Value # toEncodingList :: [BlockchainFeeType] -> Encoding # | |
FromJSON BlockchainFeeType Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser BlockchainFeeType # parseJSONList :: Value -> Parser [BlockchainFeeType] # | |
HasCodec BlockchainFeeType Source # | |
Defined in Circle.Types |
data BlockchainFeeMoneyAmount Source #
Instances
data MoneyAmount Source #
Instances
data TransferFeeAmount Source #
Instances
data RiskEvaluation Source #
Instances
data Adjustments Source #
Instances
data BillingDetails Source #
Instances
data BankAddress Source #
BankAddress | |
|
Instances
Eq BankAddress Source # | |
Defined in Circle.Types (==) :: BankAddress -> BankAddress -> Bool # (/=) :: BankAddress -> BankAddress -> Bool # | |
Show BankAddress Source # | |
Defined in Circle.Types showsPrec :: Int -> BankAddress -> ShowS # show :: BankAddress -> String # showList :: [BankAddress] -> ShowS # | |
ToJSON BankAddress Source # | |
Defined in Circle.Types toJSON :: BankAddress -> Value # toEncoding :: BankAddress -> Encoding # toJSONList :: [BankAddress] -> Value # toEncodingList :: [BankAddress] -> Encoding # | |
FromJSON BankAddress Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser BankAddress # parseJSONList :: Value -> Parser [BankAddress] # | |
HasCodec BankAddress Source # | |
Defined in Circle.Types |
data BeneficiaryDetails Source #
Instances
Eq BeneficiaryDetails Source # | |
Defined in Circle.Types (==) :: BeneficiaryDetails -> BeneficiaryDetails -> Bool # (/=) :: BeneficiaryDetails -> BeneficiaryDetails -> Bool # | |
Show BeneficiaryDetails Source # | |
Defined in Circle.Types showsPrec :: Int -> BeneficiaryDetails -> ShowS # show :: BeneficiaryDetails -> String # showList :: [BeneficiaryDetails] -> ShowS # | |
ToJSON BeneficiaryDetails Source # | |
Defined in Circle.Types toJSON :: BeneficiaryDetails -> Value # toEncoding :: BeneficiaryDetails -> Encoding # toJSONList :: [BeneficiaryDetails] -> Value # toEncodingList :: [BeneficiaryDetails] -> Encoding # | |
FromJSON BeneficiaryDetails Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser BeneficiaryDetails # parseJSONList :: Value -> Parser [BeneficiaryDetails] # | |
HasCodec BeneficiaryDetails Source # | |
Defined in Circle.Types |
data BeneficiaryBankDetails Source #
Instances
Eq BeneficiaryBankDetails Source # | |
Defined in Circle.Types | |
Show BeneficiaryBankDetails Source # | |
Defined in Circle.Types showsPrec :: Int -> BeneficiaryBankDetails -> ShowS # show :: BeneficiaryBankDetails -> String # showList :: [BeneficiaryBankDetails] -> ShowS # | |
ToJSON BeneficiaryBankDetails Source # | |
Defined in Circle.Types toJSON :: BeneficiaryBankDetails -> Value # toEncoding :: BeneficiaryBankDetails -> Encoding # toJSONList :: [BeneficiaryBankDetails] -> Value # | |
FromJSON BeneficiaryBankDetails Source # | |
Defined in Circle.Types | |
HasCodec BeneficiaryBankDetails Source # | |
newtype ProcessorToken Source #
Instances
Eq ProcessorToken Source # | |
Defined in Circle.Types (==) :: ProcessorToken -> ProcessorToken -> Bool # (/=) :: ProcessorToken -> ProcessorToken -> Bool # | |
Show ProcessorToken Source # | |
Defined in Circle.Types showsPrec :: Int -> ProcessorToken -> ShowS # show :: ProcessorToken -> String # showList :: [ProcessorToken] -> ShowS # | |
ToJSON ProcessorToken Source # | |
Defined in Circle.Types toJSON :: ProcessorToken -> Value # toEncoding :: ProcessorToken -> Encoding # toJSONList :: [ProcessorToken] -> Value # toEncodingList :: [ProcessorToken] -> Encoding # | |
FromJSON ProcessorToken Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser ProcessorToken # parseJSONList :: Value -> Parser [ProcessorToken] # | |
HasCodec ProcessorToken Source # | |
Defined in Circle.Types |
newtype AddressLine Source #
Instances
Eq AddressLine Source # | |
Defined in Circle.Types (==) :: AddressLine -> AddressLine -> Bool # (/=) :: AddressLine -> AddressLine -> Bool # | |
Show AddressLine Source # | |
Defined in Circle.Types showsPrec :: Int -> AddressLine -> ShowS # show :: AddressLine -> String # showList :: [AddressLine] -> ShowS # | |
ToJSON AddressLine Source # | |
Defined in Circle.Types toJSON :: AddressLine -> Value # toEncoding :: AddressLine -> Encoding # toJSONList :: [AddressLine] -> Value # toEncodingList :: [AddressLine] -> Encoding # | |
FromJSON AddressLine Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser AddressLine # parseJSONList :: Value -> Parser [AddressLine] # | |
HasCodec AddressLine Source # | |
Defined in Circle.Types |
urlToByteString :: URL -> ByteString Source #
newtype AccountNumber Source #
Instances
Eq AccountNumber Source # | |
Defined in Circle.Types (==) :: AccountNumber -> AccountNumber -> Bool # (/=) :: AccountNumber -> AccountNumber -> Bool # | |
Show AccountNumber Source # | |
Defined in Circle.Types showsPrec :: Int -> AccountNumber -> ShowS # show :: AccountNumber -> String # showList :: [AccountNumber] -> ShowS # | |
ToJSON AccountNumber Source # | |
Defined in Circle.Types toJSON :: AccountNumber -> Value # toEncoding :: AccountNumber -> Encoding # toJSONList :: [AccountNumber] -> Value # toEncodingList :: [AccountNumber] -> Encoding # | |
FromJSON AccountNumber Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser AccountNumber # parseJSONList :: Value -> Parser [AccountNumber] # | |
HasCodec AccountNumber Source # | |
Defined in Circle.Types | |
Lift AccountNumber Source # | |
Defined in Circle.Types lift :: AccountNumber -> Q Exp # liftTyped :: AccountNumber -> Q (TExp AccountNumber) # |
mkAccountNumber :: Text -> Maybe AccountNumber Source #
type AccountNumberMask = Refined (SizeEqualTo 4) Text Source #
newtype RoutingNumber Source #
Instances
Eq RoutingNumber Source # | |
Defined in Circle.Types (==) :: RoutingNumber -> RoutingNumber -> Bool # (/=) :: RoutingNumber -> RoutingNumber -> Bool # | |
Show RoutingNumber Source # | |
Defined in Circle.Types showsPrec :: Int -> RoutingNumber -> ShowS # show :: RoutingNumber -> String # showList :: [RoutingNumber] -> ShowS # | |
ToJSON RoutingNumber Source # | |
Defined in Circle.Types toJSON :: RoutingNumber -> Value # toEncoding :: RoutingNumber -> Encoding # toJSONList :: [RoutingNumber] -> Value # toEncodingList :: [RoutingNumber] -> Encoding # | |
FromJSON RoutingNumber Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser RoutingNumber # parseJSONList :: Value -> Parser [RoutingNumber] # | |
HasCodec RoutingNumber Source # | |
Defined in Circle.Types | |
Lift RoutingNumber Source # | |
Defined in Circle.Types lift :: RoutingNumber -> Q Exp # liftTyped :: RoutingNumber -> Q (TExp RoutingNumber) # |
mkRoutingNumber :: Text -> Maybe RoutingNumber Source #
ibanToText :: Iban -> Text Source #
A newtype around email text. This newtype verifies the email is formatted correctly using HTML5's email regexp https://www.w3.org/TR/html5/forms.html#valid-e-mail-address
emailRegex :: Regex Source #
mkEmail :: Text -> Maybe Email Source #
Attempt to create an email from text, returning Nothing
if it doesn't
match our email regular expression.
emailToByteString :: Email -> ByteString Source #
Convenience function for APIs that take emails as ByteString
compileEmail :: QuasiQuoter Source #
Create an email at compile time Usage: > [compileEmail|dmarticus@gmail.com|]
newtype PostalCode Source #
Instances
Eq PostalCode Source # | |
Defined in Circle.Types (==) :: PostalCode -> PostalCode -> Bool # (/=) :: PostalCode -> PostalCode -> Bool # | |
Show PostalCode Source # | |
Defined in Circle.Types showsPrec :: Int -> PostalCode -> ShowS # show :: PostalCode -> String # showList :: [PostalCode] -> ShowS # | |
ToJSON PostalCode Source # | |
Defined in Circle.Types toJSON :: PostalCode -> Value # toEncoding :: PostalCode -> Encoding # toJSONList :: [PostalCode] -> Value # toEncodingList :: [PostalCode] -> Encoding # | |
FromJSON PostalCode Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser PostalCode # parseJSONList :: Value -> Parser [PostalCode] # | |
HasCodec PostalCode Source # | |
Defined in Circle.Types |
swiftCodeToText :: SwiftCode -> Text Source #
getCountryFromSwiftCodeText :: Text -> Text Source #
Extracts an ISO 3166-1 alpha-2 country code (or XK for Kosovo) from a SWIFT code, e.g. BOFAUS3N -> US
get8DigitSwiftCode :: SwiftCode -> SwiftCode Source #
SwiftCodes can be either 11 or 8 digits, this ensures you're always working with the 8 digit variety.
getBranchCodeFromSwiftCode :: SwiftCode -> Maybe Text Source #
Gets the branch code from an 11-digit SwiftCode (this is the last 3 digits of an 11-digit SwiftCode), otherwise returns Nothing.
newtype ISO3166Alpha2 Source #
Instances
newtype TrackingReference Source #
Instances
Eq TrackingReference Source # | |
Defined in Circle.Types (==) :: TrackingReference -> TrackingReference -> Bool # (/=) :: TrackingReference -> TrackingReference -> Bool # | |
Show TrackingReference Source # | |
Defined in Circle.Types showsPrec :: Int -> TrackingReference -> ShowS # show :: TrackingReference -> String # showList :: [TrackingReference] -> ShowS # | |
ToJSON TrackingReference Source # | |
Defined in Circle.Types toJSON :: TrackingReference -> Value # toEncoding :: TrackingReference -> Encoding # toJSONList :: [TrackingReference] -> Value # toEncodingList :: [TrackingReference] -> Encoding # | |
FromJSON TrackingReference Source # | |
Defined in Circle.Types parseJSON :: Value -> Parser TrackingReference # parseJSONList :: Value -> Parser [TrackingReference] # | |
HasCodec TrackingReference Source # | |
Defined in Circle.Types |