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 the "businessAccount/balances" and "/balances" endpoints
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 the "/configuration" endpoint
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 the "/encryption/public" endpoint
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 the "/channels" endpoint
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 the "/stablecoins" endpoint
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 "businessAccount/wallets/addresses/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 "businessAccount/wallets/addresses/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 "mock/payments/*" 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 |