circle-0.1.0.0: Circle API client for Haskell
Copyright(c) Dylan Martin 2022
Maintainerdmarticus@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Circle.Types

Description

Synopsis

Documentation

newtype ApiToken Source #

Token type used for HTTP Bearer authentication.

Constructors

ApiToken 

Instances

Instances details
Eq ApiToken Source # 
Instance details

Defined in Circle.Types

Read ApiToken Source # 
Instance details

Defined in Circle.Types

Show ApiToken Source # 
Instance details

Defined in Circle.Types

data CircleAPIRequest a b c Source #

Type to represent the 3 main components (method, endpoint, and params) needed to call Circle's API.

Constructors

CircleAPIRequest 

Fields

Instances

Instances details
Show (CircleAPIRequest a b c) Source # 
Instance details

Defined in Circle.Types

mkCircleAPIRequest :: Method -> Text -> Params TupleBS8 ByteString -> CircleAPIRequest a b c Source #

Create a CircleAPIRequest

type family CircleRequest a :: * Source #

Instances

Instances details
type CircleRequest WalletsRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest WalletRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest ReturnsRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest PaymentIntentsRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest PaymentIntentRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest ReversalsRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest MockChargebackRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest ChargebackRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest ChargebacksRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest SettlementsRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest SettlementRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest SEPAInstructionsRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest SEPAAccountRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest MockAccountRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest ACHBankAccountRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest CardRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest CardsRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest OnChainAddressRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest OnChainTransfersRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest OnChainTransferRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest PaymentsRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest PaymentRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest WireInstructionsRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest WireAccountsRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest WireAccountRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest SignetBankInstructionsRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest SignetBankAccountsRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest SignetBankAccountRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest SENInstructionsRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest SENAccountsRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest SENAccountRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest MockPaymentRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest DepositsRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest RecipientAddressRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest RecipientAddressesRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest DepositAddressRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest DepositAddressesRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest TransferRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest TransfersRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest SubscriptionRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest SubscriptionsRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest StablecoinsRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest ChannelsRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest EncryptionRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest ConfigurationRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest PayoutsRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest PayoutRequest Source # 
Instance details

Defined in Circle.Types

type CircleRequest BalanceRequest Source # 
Instance details

Defined in Circle.Types

data CircleError Source #

CircleErrors have contain both the error reason (parseError) and the full error response body as a ByteString.

Constructors

CircleError 

Instances

Instances details
Show CircleError Source # 
Instance details

Defined in Circle.Types

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.

Instances

Instances details
Eq a => Eq (CircleResponseBody a) Source # 
Instance details

Defined in Circle.Types

Show a => Show (CircleResponseBody a) Source # 
Instance details

Defined in Circle.Types

FromJSON a => FromJSON (CircleResponseBody a) Source # 
Instance details

Defined in Circle.Types

type Host = Text Source #

Either production or sandbox API host

data CircleHost Source #

Instances

Instances details
Eq CircleHost Source # 
Instance details

Defined in Circle.Types

Show CircleHost Source # 
Instance details

Defined in Circle.Types

data CircleConfig Source #

Constructors

CircleConfig 

Fields

Instances

Instances details
Eq CircleConfig Source # 
Instance details

Defined in Circle.Types

Show CircleConfig Source # 
Instance details

Defined in Circle.Types

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 @

newtype Query Source #

Constructors

Query 

Fields

Instances

Instances details
Eq Query Source # 
Instance details

Defined in Circle.Types

Methods

(==) :: Query -> Query -> Bool #

(/=) :: Query -> Query -> Bool #

Show Query Source # 
Instance details

Defined in Circle.Types

Methods

showsPrec :: Int -> Query -> ShowS #

show :: Query -> String #

showList :: [Query] -> ShowS #

newtype Body Source #

Constructors

Body 

Fields

Instances

Instances details
Eq Body Source # 
Instance details

Defined in Circle.Types

Methods

(==) :: Body -> Body -> Bool #

(/=) :: Body -> Body -> Bool #

Show Body Source # 
Instance details

Defined in Circle.Types

Methods

showsPrec :: Int -> Body -> ShowS #

show :: Body -> String #

showList :: [Body] -> ShowS #

data Params b c Source #

Parameters for each request which include both the query and the body of a request

Constructors

Params 

Instances

Instances details
Show (Params b c) Source # 
Instance details

Defined in Circle.Types

Methods

showsPrec :: Int -> Params b c -> ShowS #

show :: Params b c -> String #

showList :: [Params b c] -> ShowS #

type TupleBS8 = (ByteString, ByteString) Source #

Type alias for query parameters

class ToCircleParam param where Source #

Convert a parameter to a key/value

Methods

toCircleParam :: param -> Params TupleBS8 c -> Params TupleBS8 c Source #

Instances

Instances details
ToCircleParam ReturnIdentitiesQueryParam Source # 
Instance details

Defined in Circle.Types

ToCircleParam DestinationWalletIdQueryParam Source # 
Instance details

Defined in Circle.Types

ToCircleParam SourceWalletIdQueryParam Source # 
Instance details

Defined in Circle.Types

ToCircleParam WalletIdQueryParam Source # 
Instance details

Defined in Circle.Types

ToCircleParam PaymentIntentContextQueryParams Source # 
Instance details

Defined in Circle.Types

ToCircleParam PaymentStatusQueryParams Source # 
Instance details

Defined in Circle.Types

ToCircleParam PaymentIdQueryParam Source # 
Instance details

Defined in Circle.Types

ToCircleParam PaymentIntentIdQueryParam Source # 
Instance details

Defined in Circle.Types

ToCircleParam SettlementIdQueryParam Source # 
Instance details

Defined in Circle.Types

ToCircleParam SourceQueryParam Source # 
Instance details

Defined in Circle.Types

ToCircleParam CurrencyQueryParam Source # 
Instance details

Defined in Circle.Types

ToCircleParam TypeQueryParam Source # 
Instance details

Defined in Circle.Types

ToCircleParam DestinationQueryParam Source # 
Instance details

Defined in Circle.Types

ToCircleParam StatusQueryParams Source # 
Instance details

Defined in Circle.Types

ToCircleParam PageSizeQueryParam Source # 
Instance details

Defined in Circle.Types

ToCircleParam ToQueryParam Source # 
Instance details

Defined in Circle.Types

ToCircleParam FromQueryParam Source # 
Instance details

Defined in Circle.Types

ToCircleParam PaginationQueryParams Source #

Circle has some BS pagination where they let users supply some canonical collection ID, and then this pagination rule will return n entries before OR after that page, where n is controlled by the pageSize param. This type exists to prevent callers from providing both params, which would error out

Instance details

Defined in Circle.Types

class ToCircleParam param => CircleHasParam request param Source #

Instances

Instances details
CircleHasParam WalletsRequest PageSizeQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam WalletsRequest ToQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam WalletsRequest FromQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam WalletsRequest PaginationQueryParams Source # 
Instance details

Defined in Circle.Types

CircleHasParam ReturnsRequest PageSizeQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam ReturnsRequest ToQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam ReturnsRequest FromQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam ReturnsRequest PaginationQueryParams Source # 
Instance details

Defined in Circle.Types

CircleHasParam PaymentIntentsRequest PaymentIntentContextQueryParams Source # 
Instance details

Defined in Circle.Types

CircleHasParam PaymentIntentsRequest PaymentStatusQueryParams Source # 
Instance details

Defined in Circle.Types

CircleHasParam PaymentIntentsRequest PageSizeQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam PaymentIntentsRequest ToQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam PaymentIntentsRequest FromQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam PaymentIntentsRequest PaginationQueryParams Source # 
Instance details

Defined in Circle.Types

CircleHasParam ReversalsRequest PaymentStatusQueryParams Source # 
Instance details

Defined in Circle.Types

CircleHasParam ReversalsRequest PageSizeQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam ReversalsRequest ToQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam ReversalsRequest FromQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam ReversalsRequest PaginationQueryParams Source # 
Instance details

Defined in Circle.Types

CircleHasParam ChargebacksRequest PaymentIdQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam ChargebacksRequest PageSizeQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam ChargebacksRequest ToQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam ChargebacksRequest FromQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam ChargebacksRequest PaginationQueryParams Source # 
Instance details

Defined in Circle.Types

CircleHasParam SettlementsRequest PageSizeQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam SettlementsRequest ToQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam SettlementsRequest FromQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam SettlementsRequest PaginationQueryParams Source # 
Instance details

Defined in Circle.Types

CircleHasParam CardsRequest PageSizeQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam CardsRequest PaginationQueryParams Source # 
Instance details

Defined in Circle.Types

CircleHasParam OnChainTransfersRequest ReturnIdentitiesQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam OnChainTransfersRequest DestinationWalletIdQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam OnChainTransfersRequest SourceWalletIdQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam OnChainTransfersRequest WalletIdQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam OnChainTransfersRequest PageSizeQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam OnChainTransfersRequest ToQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam OnChainTransfersRequest FromQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam OnChainTransfersRequest PaginationQueryParams Source # 
Instance details

Defined in Circle.Types

CircleHasParam OnChainTransferRequest ReturnIdentitiesQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam PaymentsRequest PaymentStatusQueryParams Source # 
Instance details

Defined in Circle.Types

CircleHasParam PaymentsRequest PaymentIntentIdQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam PaymentsRequest SettlementIdQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam PaymentsRequest SourceQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam PaymentsRequest TypeQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam PaymentsRequest DestinationQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam PaymentsRequest PageSizeQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam PaymentsRequest ToQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam PaymentsRequest FromQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam PaymentsRequest PaginationQueryParams Source # 
Instance details

Defined in Circle.Types

CircleHasParam WireInstructionsRequest PaginationQueryParams Source # 
Instance details

Defined in Circle.Types

CircleHasParam DepositsRequest TypeQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam DepositsRequest PageSizeQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam DepositsRequest ToQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam DepositsRequest FromQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam DepositsRequest PaginationQueryParams Source # 
Instance details

Defined in Circle.Types

CircleHasParam RecipientAddressesRequest PageSizeQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam RecipientAddressesRequest ToQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam RecipientAddressesRequest FromQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam RecipientAddressesRequest PaginationQueryParams Source # 
Instance details

Defined in Circle.Types

CircleHasParam TransferRequest ReturnIdentitiesQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam TransfersRequest ReturnIdentitiesQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam TransfersRequest DestinationWalletIdQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam TransfersRequest SourceWalletIdQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam TransfersRequest WalletIdQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam TransfersRequest PageSizeQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam TransfersRequest ToQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam TransfersRequest FromQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam TransfersRequest PaginationQueryParams Source # 
Instance details

Defined in Circle.Types

CircleHasParam PayoutsRequest TypeQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam PayoutsRequest DestinationQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam PayoutsRequest StatusQueryParams Source # 
Instance details

Defined in Circle.Types

CircleHasParam PayoutsRequest PageSizeQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam PayoutsRequest ToQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam PayoutsRequest FromQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam PayoutsRequest PaginationQueryParams Source # 
Instance details

Defined in Circle.Types

(-&-) :: 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

Instances details
Eq PaginationQueryParams Source # 
Instance details

Defined in Circle.Types

Show PaginationQueryParams Source # 
Instance details

Defined in Circle.Types

ToCircleParam PaginationQueryParams Source #

Circle has some BS pagination where they let users supply some canonical collection ID, and then this pagination rule will return n entries before OR after that page, where n is controlled by the pageSize param. This type exists to prevent callers from providing both params, which would error out

Instance details

Defined in Circle.Types

CircleHasParam WalletsRequest PaginationQueryParams Source # 
Instance details

Defined in Circle.Types

CircleHasParam ReturnsRequest PaginationQueryParams Source # 
Instance details

Defined in Circle.Types

CircleHasParam PaymentIntentsRequest PaginationQueryParams Source # 
Instance details

Defined in Circle.Types

CircleHasParam ReversalsRequest PaginationQueryParams Source # 
Instance details

Defined in Circle.Types

CircleHasParam ChargebacksRequest PaginationQueryParams Source # 
Instance details

Defined in Circle.Types

CircleHasParam SettlementsRequest PaginationQueryParams Source # 
Instance details

Defined in Circle.Types

CircleHasParam CardsRequest PaginationQueryParams Source # 
Instance details

Defined in Circle.Types

CircleHasParam OnChainTransfersRequest PaginationQueryParams Source # 
Instance details

Defined in Circle.Types

CircleHasParam PaymentsRequest PaginationQueryParams Source # 
Instance details

Defined in Circle.Types

CircleHasParam WireInstructionsRequest PaginationQueryParams Source # 
Instance details

Defined in Circle.Types

CircleHasParam DepositsRequest PaginationQueryParams Source # 
Instance details

Defined in Circle.Types

CircleHasParam RecipientAddressesRequest PaginationQueryParams Source # 
Instance details

Defined in Circle.Types

CircleHasParam TransfersRequest PaginationQueryParams Source # 
Instance details

Defined in Circle.Types

CircleHasParam PayoutsRequest PaginationQueryParams Source # 
Instance details

Defined in Circle.Types

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.

Constructors

PageBefore !Text 
PageAfter !Text 

newtype FromQueryParam Source #

Constructors

FromQueryParam 

Instances

Instances details
Eq FromQueryParam Source # 
Instance details

Defined in Circle.Types

Show FromQueryParam Source # 
Instance details

Defined in Circle.Types

ToCircleParam FromQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam WalletsRequest FromQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam ReturnsRequest FromQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam PaymentIntentsRequest FromQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam ReversalsRequest FromQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam ChargebacksRequest FromQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam SettlementsRequest FromQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam OnChainTransfersRequest FromQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam PaymentsRequest FromQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam DepositsRequest FromQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam RecipientAddressesRequest FromQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam TransfersRequest FromQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam PayoutsRequest FromQueryParam Source # 
Instance details

Defined in Circle.Types

newtype ToQueryParam Source #

Constructors

ToQueryParam 

Instances

Instances details
Eq ToQueryParam Source # 
Instance details

Defined in Circle.Types

Show ToQueryParam Source # 
Instance details

Defined in Circle.Types

ToCircleParam ToQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam WalletsRequest ToQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam ReturnsRequest ToQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam PaymentIntentsRequest ToQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam ReversalsRequest ToQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam ChargebacksRequest ToQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam SettlementsRequest ToQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam OnChainTransfersRequest ToQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam PaymentsRequest ToQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam DepositsRequest ToQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam RecipientAddressesRequest ToQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam TransfersRequest ToQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam PayoutsRequest ToQueryParam Source # 
Instance details

Defined in Circle.Types

newtype PageSizeQueryParam Source #

Instances

Instances details
Eq PageSizeQueryParam Source # 
Instance details

Defined in Circle.Types

Show PageSizeQueryParam Source # 
Instance details

Defined in Circle.Types

ToCircleParam PageSizeQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam WalletsRequest PageSizeQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam ReturnsRequest PageSizeQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam PaymentIntentsRequest PageSizeQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam ReversalsRequest PageSizeQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam ChargebacksRequest PageSizeQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam SettlementsRequest PageSizeQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam CardsRequest PageSizeQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam OnChainTransfersRequest PageSizeQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam PaymentsRequest PageSizeQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam DepositsRequest PageSizeQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam RecipientAddressesRequest PageSizeQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam TransfersRequest PageSizeQueryParam Source # 
Instance details

Defined in Circle.Types

CircleHasParam PayoutsRequest PageSizeQueryParam Source # 
Instance details

Defined in Circle.Types

data BalanceResponseBody Source #

Response body for the "businessAccount/balances" and "/balances" endpoints

Instances

Instances details
Eq BalanceResponseBody Source # 
Instance details

Defined in Circle.Types

Show BalanceResponseBody Source # 
Instance details

Defined in Circle.Types

Generic BalanceResponseBody Source # 
Instance details

Defined in Circle.Types

Associated Types

type Rep BalanceResponseBody :: Type -> Type #

ToJSON BalanceResponseBody Source # 
Instance details

Defined in Circle.Types

FromJSON BalanceResponseBody Source # 
Instance details

Defined in Circle.Types

HasCodec BalanceResponseBody Source # 
Instance details

Defined in Circle.Types

type Rep BalanceResponseBody Source # 
Instance details

Defined in Circle.Types

type Rep BalanceResponseBody = D1 ('MetaData "BalanceResponseBody" "Circle.Types" "circle-0.1.0.0-inplace" 'False) (C1 ('MetaCons "BalanceResponseBody" 'PrefixI 'True) (S1 ('MetaSel ('Just "balanceResponseBodyAvailable") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [MoneyAmount]) :*: S1 ('MetaSel ('Just "balanceResponseBodyUnsettled") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [MoneyAmount])))

data PayoutResponseBody Source #

Response body for methods that call "businessAccount/payouts" or "payouts" endpoints

data PayoutReturnResponseBody Source #

Response body for methods that call the "returns" endpoint

newtype PGPKey Source #

Constructors

PGPKey 

Fields

Instances

Instances details
Eq PGPKey Source # 
Instance details

Defined in Circle.Types

Methods

(==) :: PGPKey -> PGPKey -> Bool #

(/=) :: PGPKey -> PGPKey -> Bool #

Show PGPKey Source # 
Instance details

Defined in Circle.Types

ToJSON PGPKey Source # 
Instance details

Defined in Circle.Types

FromJSON PGPKey Source # 
Instance details

Defined in Circle.Types

HasCodec PGPKey Source # 
Instance details

Defined in Circle.Types

data Channel Source #

Instances

Instances details
Eq Channel Source # 
Instance details

Defined in Circle.Types

Methods

(==) :: Channel -> Channel -> Bool #

(/=) :: Channel -> Channel -> Bool #

Show Channel Source # 
Instance details

Defined in Circle.Types

ToJSON Channel Source # 
Instance details

Defined in Circle.Types

FromJSON Channel Source # 
Instance details

Defined in Circle.Types

HasCodec Channel Source # 
Instance details

Defined in Circle.Types

data Chain Source #

Constructors

ALGO 
ARB 
AVAX 
ChainBTC 
ChainETH 
FLOW 
HBAR 
MATIC 
NEAR 
OP 
SOL 
TRX 
XLM 

Instances

Instances details
Eq Chain Source # 
Instance details

Defined in Circle.Types

Methods

(==) :: Chain -> Chain -> Bool #

(/=) :: Chain -> Chain -> Bool #

Show Chain Source # 
Instance details

Defined in Circle.Types

Methods

showsPrec :: Int -> Chain -> ShowS #

show :: Chain -> String #

showList :: [Chain] -> ShowS #

ToJSON Chain Source # 
Instance details

Defined in Circle.Types

FromJSON Chain Source # 
Instance details

Defined in Circle.Types

HasCodec Chain Source # 
Instance details

Defined in Circle.Types

data Stablecoin Source #

Constructors

USDC 
EUROC 
USDT 

data BusinessTransferRequestBody Source #

Request body for creating a new business account transfer

data Identity Source #

Instances

Instances details
Eq Identity Source # 
Instance details

Defined in Circle.Types

Show Identity Source # 
Instance details

Defined in Circle.Types

ToJSON Identity Source # 
Instance details

Defined in Circle.Types

FromJSON Identity Source # 
Instance details

Defined in Circle.Types

HasCodec Identity Source # 
Instance details

Defined in Circle.Types

data DepositAddressResponseBody Source #

Response body for methods that call the "businessAccount/wallets/addresses/deposit" endpoint

data DepositAddressRequestBody Source #

Request body for creating a new deposit address

data RecipientAddressResponseBody Source #

Response body for methods that call the "businessAccount/wallets/addresses/recipient" endpoint

data RecipientAddressRequestBody Source #

Request body for creating a new recipient address

data DepositResponseBody Source #

Response body for methods that call the "businessAccount/deposits" endpoint

data MockPaymentResponseBody Source #

Response body for methods that call the "mock/payments/*" endpoint

data MockSenOrWirePaymentRequestBody Source #

Request body to create a mock SEN or Wire payment (in the sandbox only).

data MockSEPAPaymentRequestBody Source #

Request body to create a mock SEPA payment (in the sandbox only).