Copyright | (c) Dylan Martin 2022 |
---|---|
Maintainer | dmarticus@gmail.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- createBusinessWireAccount :: WireAccountRequestBody -> CircleAPIRequest WireAccountRequest TupleBS8 ByteString
- listBusinessWireAccounts :: CircleAPIRequest WireAccountsRequest TupleBS8 ByteString
- getBusinessWireAccount :: UUID -> CircleAPIRequest WireAccountRequest TupleBS8 ByteString
- getBusinessWireAccountInstructions :: UUID -> CircleAPIRequest WireInstructionsRequest TupleBS8 ByteString
- listAllBusinessBalances :: CircleAPIRequest BalanceRequest TupleBS8 ByteString
- getConfigurationInfo :: CircleAPIRequest ConfigurationRequest TupleBS8 ByteString
- getPublicKey :: CircleAPIRequest EncryptionRequest TupleBS8 ByteString
- listAllChannels :: CircleAPIRequest ChannelsRequest TupleBS8 ByteString
- listAllStablecoins :: CircleAPIRequest StablecoinsRequest TupleBS8 ByteString
- listAllNotificationSubscriptions :: CircleAPIRequest SubscriptionsRequest TupleBS8 ByteString
- createSubscription :: SubscriptionRequestBody -> CircleAPIRequest SubscriptionRequest TupleBS8 ByteString
- deleteSubscription :: UUID -> CircleAPIRequest SubscriptionsRequest TupleBS8 ByteString
- listAllBusinessAccountPayouts :: CircleAPIRequest PayoutsRequest TupleBS8 ByteString
- getBusinessAccountPayout :: UUID -> CircleAPIRequest PayoutRequest TupleBS8 ByteString
- createBusinessAccountPayout :: BusinessPayoutRequestBody -> CircleAPIRequest PayoutRequest TupleBS8 ByteString
- listAllBusinessAccountTransfers :: CircleAPIRequest TransfersRequest TupleBS8 ByteString
- getBusinessAccountTransfer :: UUID -> CircleAPIRequest TransferRequest TupleBS8 ByteString
- createBusinessAccountTransfer :: BusinessTransferRequestBody -> CircleAPIRequest TransferRequest TupleBS8 ByteString
- listAllBusinessAccountDepositAddresses :: CircleAPIRequest DepositAddressesRequest TupleBS8 ByteString
- createBusinessAccountDepositAddress :: DepositAddressRequestBody -> CircleAPIRequest DepositAddressRequest TupleBS8 ByteString
- listAllBusinessAccountRecipientAddresses :: CircleAPIRequest RecipientAddressesRequest TupleBS8 ByteString
- createBusinessAccountRecipientAddress :: RecipientAddressRequestBody -> CircleAPIRequest RecipientAddressRequest TupleBS8 ByteString
- listAllBusinessAccountDeposits :: CircleAPIRequest DepositsRequest TupleBS8 ByteString
- createSignetBankAccount :: SignetBankAccountRequestBody -> CircleAPIRequest SignetBankAccountRequest TupleBS8 ByteString
- listSignetAccounts :: CircleAPIRequest SignetBankAccountsRequest TupleBS8 ByteString
- getSignetAccount :: UUID -> CircleAPIRequest SignetBankAccountRequestBody TupleBS8 ByteString
- getSignetAccountInstructions :: UUID -> CircleAPIRequest SignetBankInstructionsResponseData TupleBS8 ByteString
- createSENAccount :: SENAccountRequestBody -> CircleAPIRequest SENAccountRequest TupleBS8 ByteString
- listSENAccounts :: CircleAPIRequest SENAccountsRequest TupleBS8 ByteString
- getSENAccount :: UUID -> CircleAPIRequest SENAccountRequest TupleBS8 ByteString
- getSENAccountInstructions :: UUID -> CircleAPIRequest SENInstructionsRequest TupleBS8 ByteString
- listAllPayments :: CircleAPIRequest PaymentsRequest TupleBS8 ByteString
- createPayment :: CreatePaymentRequestBody -> CircleAPIRequest PaymentRequest TupleBS8 ByteString
- getPayment :: UUID -> CircleAPIRequest PaymentRequest TupleBS8 ByteString
- cancelPayment :: UUID -> CancelPaymentRequestBody -> CircleAPIRequest PaymentRequest TupleBS8 ByteString
- refundPayment :: UUID -> RefundPaymentRequestBody -> CircleAPIRequest PaymentRequest TupleBS8 ByteString
- createMockWirePayment :: MockSenOrWirePaymentRequestBody -> CircleAPIRequest MockPaymentRequest TupleBS8 ByteString
- createMockSEPAPayment :: MockSEPAPaymentRequestBody -> CircleAPIRequest MockPaymentRequest TupleBS8 ByteString
- createMockSilvergatePayment :: MockSenOrWirePaymentRequestBody -> CircleAPIRequest MockPaymentRequest TupleBS8 ByteString
- createMockACHBankAccount :: CreateMockACHBankAccountRequestBody -> CircleAPIRequest MockAccountRequest TupleBS8 ByteString
- createMockChargeback :: UUID -> CircleAPIRequest MockChargebackRequest TupleBS8 ByteString
- listAllOnChainTransfers :: CircleAPIRequest OnChainTransfersRequest TupleBS8 ByteString
- getOnChainTransfer :: UUID -> CircleAPIRequest TransferRequest TupleBS8 ByteString
- createOnChainTransfer :: OnChainTransferRequestBody -> CircleAPIRequest TransferRequest TupleBS8 ByteString
- listAllCards :: CircleAPIRequest CardsRequest TupleBS8 ByteString
- getCard :: UUID -> CircleAPIRequest CardRequest TupleBS8 ByteString
- createCard :: CreateCardRequestBody -> CircleAPIRequest CardRequest TupleBS8 ByteString
- updateCard :: UUID -> UpdateCardRequestBody -> CircleAPIRequest CardRequest TupleBS8 ByteString
- createWireAccount :: WireAccountRequestBody -> CircleAPIRequest WireAccountRequest TupleBS8 ByteString
- getWireAccount :: UUID -> CircleAPIRequest WireAccountRequest TupleBS8 ByteString
- getWireAccountInstructions :: UUID -> CircleAPIRequest WireInstructionsRequest TupleBS8 ByteString
- createACHAccount :: CreateACHBankAccountRequestBody -> CircleAPIRequest ACHBankAccountRequest TupleBS8 ByteString
- getACHAccount :: UUID -> CircleAPIRequest ACHBankAccountRequest TupleBS8 ByteString
- createSEPAAccount :: SEPAAccountRequestBody -> CircleAPIRequest SEPAAccountRequest TupleBS8 ByteString
- getSEPAAccount :: UUID -> CircleAPIRequest SEPAAccountRequest TupleBS8 ByteString
- getSEPAAccountInstructions :: UUID -> CircleAPIRequest SEPAInstructionsRequest TupleBS8 ByteString
- listAllSettlements :: CircleAPIRequest SettlementsRequest TupleBS8 ByteString
- getSettlement :: UUID -> CircleAPIRequest SettlementRequest TupleBS8 ByteString
- listAllChargebacks :: CircleAPIRequest ChargebacksRequest TupleBS8 ByteString
- getChargeback :: UUID -> CircleAPIRequest ChargebackRequest TupleBS8 ByteString
- listAllACHReversals :: CircleAPIRequest ReversalsRequest TupleBS8 ByteString
- listAllBalances :: CircleAPIRequest BalanceRequest TupleBS8 ByteString
- listAllPaymentIntents :: CircleAPIRequest PaymentIntentsRequest TupleBS8 ByteString
- createPaymentIntent :: CreatePaymentIntentRequestBody -> CircleAPIRequest PaymentIntentRequest TupleBS8 ByteString
- getPaymentIntent :: UUID -> CircleAPIRequest PaymentIntentRequest TupleBS8 ByteString
- expirePaymentIntent :: UUID -> CircleAPIRequest PaymentIntentRequest TupleBS8 ByteString
- listAllPayouts :: CircleAPIRequest PayoutsRequest TupleBS8 ByteString
- getPayout :: UUID -> CircleAPIRequest PayoutRequest TupleBS8 ByteString
- createPayout :: PayoutRequestBody -> CircleAPIRequest PayoutRequest TupleBS8 ByteString
- listAllTransfers :: CircleAPIRequest TransfersRequest TupleBS8 ByteString
- getTransfer :: UUID -> CircleAPIRequest TransferRequest TupleBS8 ByteString
- createTransfer :: TransferRequestBody -> CircleAPIRequest TransferRequest TupleBS8 ByteString
- listAllReturns :: CircleAPIRequest ReturnsRequest TupleBS8 ByteString
- listAllWallets :: CircleAPIRequest WalletsRequest TupleBS8 ByteString
- getWallet :: UUID -> CircleAPIRequest WalletRequest TupleBS8 ByteString
- createWallet :: CreateWalletRequestBody -> CircleAPIRequest WalletRequest TupleBS8 ByteString
- createDepositAddress :: UUID -> DepositAddressRequestBody -> CircleAPIRequest DepositAddressRequest TupleBS8 ByteString
- listAllAddresses :: UUID -> CircleAPIRequest RecipientAddressesRequest TupleBS8 ByteString
- circle :: FromJSON (CircleRequest a) => CircleConfig -> CircleAPIRequest a TupleBS8 ByteString -> IO (Either CircleError (CircleRequest a))
- circleTest :: FromJSON (CircleRequest a) => CircleConfig -> Manager -> CircleAPIRequest a TupleBS8 ByteString -> IO (Either CircleError (CircleRequest a))
- paramsToByteString :: [Query] -> ByteString
Documentation
createBusinessWireAccount :: WireAccountRequestBody -> CircleAPIRequest WireAccountRequest TupleBS8 ByteString Source #
Create a business bank account for a wire https://developers.circle.com/reference/createbusinesswireaccount
listBusinessWireAccounts :: CircleAPIRequest WireAccountsRequest TupleBS8 ByteString Source #
Get a list of business account wire accounts https://developers.circle.com/reference/listbusinesswireaccounts
getBusinessWireAccount :: UUID -> CircleAPIRequest WireAccountRequest TupleBS8 ByteString Source #
Get a single business account wire account, accepts the wire account Id as a parameter https://developers.circle.com/reference/getbusinesswireaccount
getBusinessWireAccountInstructions :: UUID -> CircleAPIRequest WireInstructionsRequest TupleBS8 ByteString Source #
Get the wire transfer instructions into the Circle business bank account given your bank account id. https://developers.circle.com/reference/getbusinesswireaccountinstructions
listAllBusinessBalances :: CircleAPIRequest BalanceRequest TupleBS8 ByteString Source #
List all business balances https://developers.circle.com/reference/listbusinesspayouts
getConfigurationInfo :: CircleAPIRequest ConfigurationRequest TupleBS8 ByteString Source #
Get configuration info https://developers.circle.com/reference/getaccountconfig
getPublicKey :: CircleAPIRequest EncryptionRequest TupleBS8 ByteString Source #
Get encryption info https://developers.circle.com/reference/getpublickey
listAllChannels :: CircleAPIRequest ChannelsRequest TupleBS8 ByteString Source #
List all channels https://developers.circle.com/reference/listchannels
listAllStablecoins :: CircleAPIRequest StablecoinsRequest TupleBS8 ByteString Source #
List all stablecoins https://developers.circle.com/reference/listchannels
listAllNotificationSubscriptions :: CircleAPIRequest SubscriptionsRequest TupleBS8 ByteString Source #
List all subscriptions https://developers.circle.com/reference/listsubscriptions
createSubscription :: SubscriptionRequestBody -> CircleAPIRequest SubscriptionRequest TupleBS8 ByteString Source #
Create new subscription https://developers.circle.com/reference/createsubscribtion
deleteSubscription :: UUID -> CircleAPIRequest SubscriptionsRequest TupleBS8 ByteString Source #
Delete subscription https://developers.circle.com/reference/deletesubscribtion
listAllBusinessAccountPayouts :: CircleAPIRequest PayoutsRequest TupleBS8 ByteString Source #
Lists all payouts made from a given business account https://developers.circle.com/reference/listbusinesspayouts
getBusinessAccountPayout :: UUID -> CircleAPIRequest PayoutRequest TupleBS8 ByteString Source #
Gets a specific payout associated with a business account https://developers.circle.com/reference/getbusinesspayout
createBusinessAccountPayout :: BusinessPayoutRequestBody -> CircleAPIRequest PayoutRequest TupleBS8 ByteString Source #
Creates a business account payout https://developers.circle.com/reference/createbusinesspayout
listAllBusinessAccountTransfers :: CircleAPIRequest TransfersRequest TupleBS8 ByteString Source #
Searches for transfers from your business account. If the date parameters are omitted, returns the most recent transfers. This endpoint returns up to 50 transfers in descending chronological order or pageSize, if provided. https://developers.circle.com/reference/listbusinesstransfers
getBusinessAccountTransfer :: UUID -> CircleAPIRequest TransferRequest TupleBS8 ByteString Source #
Get a business account transfer based on a transfer ID https://developers.circle.com/reference/getbusinesstransfer
createBusinessAccountTransfer :: BusinessTransferRequestBody -> CircleAPIRequest TransferRequest TupleBS8 ByteString Source #
Create a new transfer https://developers.circle.com/reference/createbusinesstransfer
listAllBusinessAccountDepositAddresses :: CircleAPIRequest DepositAddressesRequest TupleBS8 ByteString Source #
List all deposit addresses https://developers.circle.com/developer/v1/reference/getbusinessdepositaddress
createBusinessAccountDepositAddress :: DepositAddressRequestBody -> CircleAPIRequest DepositAddressRequest TupleBS8 ByteString Source #
Create new business account deposit address Generates a new blockchain address for a wallet for a given currency/chain pair. Circle may reuse addresses on blockchains that support reuse. For example, if you're requesting two addresses for depositing USD and ETH, both on Ethereum, you may see the same Ethereum address returned. Depositing cryptocurrency to a generated address will credit the associated wallet with the value of the deposit. https://developers.circle.com/developer/v1/reference/createbusinessdepositaddress
listAllBusinessAccountRecipientAddresses :: CircleAPIRequest RecipientAddressesRequest TupleBS8 ByteString Source #
List all recipient addresses Returns a list of recipient addresses that have each been verified and are eligible for transfers. Any recipient addresses pending verification are not included in the response. https://developers.circle.com/developer/v1/reference/listbusinessrecipientaddresses
createBusinessAccountRecipientAddress :: RecipientAddressRequestBody -> CircleAPIRequest RecipientAddressRequest TupleBS8 ByteString Source #
Create a new recipient address Stores an external blockchain address. Once added, the recipient address must be verified to ensure that you know and trust each new address. https://developers.circle.com/developer/v1/reference/createbusinessrecipientaddress
listAllBusinessAccountDeposits :: CircleAPIRequest DepositsRequest TupleBS8 ByteString Source #
List all deposits Searches for deposits sent to your business account. If the date parameters are omitted, returns the most recent deposits. This endpoint returns up to 50 deposits in descending chronological order or pageSize, if provided. https://developers.circle.com/developer/v1/reference/listbusinessdeposits
createSignetBankAccount :: SignetBankAccountRequestBody -> CircleAPIRequest SignetBankAccountRequest TupleBS8 ByteString Source #
Create a signet bank account https://developers.circle.com/developer/v1/reference/createbusinesssignetaccount
listSignetAccounts :: CircleAPIRequest SignetBankAccountsRequest TupleBS8 ByteString Source #
Get a list of Signet accounts https://developers.circle.com/developer/v1/reference/listbusinesssignetaccounts
getSignetAccount :: UUID -> CircleAPIRequest SignetBankAccountRequestBody TupleBS8 ByteString Source #
Get a single Signet bank account, accepts the Signet bank account Id as a parameter https://developers.circle.com/developer/v1/reference/getbusinesssignetaccount
getSignetAccountInstructions :: UUID -> CircleAPIRequest SignetBankInstructionsResponseData TupleBS8 ByteString Source #
Get the Signet transfer instructions into the Circle bank account given your bank account id (only available on Production now). https://developers.circle.com/developer/v1/reference/getbusinesssignetaccountinstructions
createSENAccount :: SENAccountRequestBody -> CircleAPIRequest SENAccountRequest TupleBS8 ByteString Source #
Create a bank account for a SEN https://developers.circle.com/developer/v1/reference/createbusinesssenaccount
listSENAccounts :: CircleAPIRequest SENAccountsRequest TupleBS8 ByteString Source #
Get a list of SEN accounts https://developers.circle.com/developer/v1/reference/listbusinesssenaccounts
getSENAccount :: UUID -> CircleAPIRequest SENAccountRequest TupleBS8 ByteString Source #
Get a single SEN account, accepts the SEN account Id as a parameter https://developers.circle.com/developer/v1/reference/getbusinesssenaccount
getSENAccountInstructions :: UUID -> CircleAPIRequest SENInstructionsRequest TupleBS8 ByteString Source #
Get the SEN transfer instructions into the Circle bank account given your bank account id. https://developers.circle.com/developer/v1/reference/getbusinesssenaccountinstructions
listAllPayments :: CircleAPIRequest PaymentsRequest TupleBS8 ByteString Source #
List all payments https://developers.circle.com/developer/v1/reference/listpayments
createPayment :: CreatePaymentRequestBody -> CircleAPIRequest PaymentRequest TupleBS8 ByteString Source #
Create a payment (fiat or Crypto) https://developers.circle.com/developer/v1/reference/payments-payments-create
getPayment :: UUID -> CircleAPIRequest PaymentRequest TupleBS8 ByteString Source #
Get a payment (fiat or Crypto) https://developers.circle.com/developer/v1/reference/payments-payments-get-id
cancelPayment :: UUID -> CancelPaymentRequestBody -> CircleAPIRequest PaymentRequest TupleBS8 ByteString Source #
Cancel a fiat payment https://developers.circle.com/developer/v1/reference/payments-payments-cancel-id
refundPayment :: UUID -> RefundPaymentRequestBody -> CircleAPIRequest PaymentRequest TupleBS8 ByteString Source #
Refund a fiat payment https://developers.circle.com/developer/v1/reference/payments-payments-refund-id
createMockWirePayment :: MockSenOrWirePaymentRequestBody -> CircleAPIRequest MockPaymentRequest TupleBS8 ByteString Source #
Create mock wire payment SANDBOX ONLY In the sandbox environment, initiate a mock wire payment that mimics the behavior of funds sent through the bank (wire) account linked to master wallet. https://developers.circle.com/developer/v1/reference/createmockwirepayment
createMockSEPAPayment :: MockSEPAPaymentRequestBody -> CircleAPIRequest MockPaymentRequest TupleBS8 ByteString Source #
Create mock SEPA payment SANDBOX ONLY (in Beta) In the sandbox environment, initiate a mock SEPA payment that mimics the behavior of funds sent through the bank (SEPA) account linked to master wallet. https://developers.circle.com/developer/v1/reference/createmocksepapayment
createMockSilvergatePayment :: MockSenOrWirePaymentRequestBody -> CircleAPIRequest MockPaymentRequest TupleBS8 ByteString Source #
Create mock Silvergate payment SANDBOX ONLY In the sandbox environment, initiate a mock SEN transfer that mimics the behavior of funds sent through the Silvergate SEN account linked to master wallet. https://developers.circle.com/developer/v1/reference/createmocksenpayment
createMockACHBankAccount :: CreateMockACHBankAccountRequestBody -> CircleAPIRequest MockAccountRequest TupleBS8 ByteString Source #
Create mock ACH account SANDBOX ONLY In the sandbox environment, create a mock ACH account and retrieve a processor token that can be used to link an ACH account. https://developers.circle.com/developer/v1/reference/createmockachaccount-1
createMockChargeback :: UUID -> CircleAPIRequest MockChargebackRequest TupleBS8 ByteString Source #
Create mock chargeback SANDBOX ONLY In the sandbox environment, initiate a mock chargeback of a specified payment. The entire payment will be charged back for its full value. The payment must be in the paid state (otherwise the endpoint will return a 404), and each payment can only be charged back once (otherwise the endpoint will return a 409). This endpoint is only available in the sandbox environment. https://developers.circle.com/developer/v1/reference/payments-chargebacks-mock-create
listAllOnChainTransfers :: CircleAPIRequest OnChainTransfersRequest TupleBS8 ByteString Source #
Searches for transfers. Searches for transfers involving the provided wallets. If no wallet ids are provided, searches all wallets associated with your Circle API account. If the date parameters are omitted, returns the most recent transfers. This endpoint returns up to 50 transfers in descending chronological order or pageSize, if provided. https://developers.circle.com/developer/v1/reference/listtransfers-1
getOnChainTransfer :: UUID -> CircleAPIRequest TransferRequest TupleBS8 ByteString Source #
Get a business account transfer based on a transfer ID https://developers.circle.com/developer/v1/reference/gettransfer
createOnChainTransfer :: OnChainTransferRequestBody -> CircleAPIRequest TransferRequest TupleBS8 ByteString Source #
Create an on-chain transfer (i.e. a crypto payment) https://developers.circle.com/developer/v1/reference/accounts-transfers-create
updateCard :: UUID -> UpdateCardRequestBody -> CircleAPIRequest CardRequest TupleBS8 ByteString Source #
createWireAccount :: WireAccountRequestBody -> CircleAPIRequest WireAccountRequest TupleBS8 ByteString Source #
Create a bank account for a wire https://developers.circle.com/developer/v1/reference/createwireaccount
getWireAccount :: UUID -> CircleAPIRequest WireAccountRequest TupleBS8 ByteString Source #
Get a single wire account, accepts the wire account Id as a parameter https://developers.circle.com/developer/v1/reference/getwireaccount-1
getWireAccountInstructions :: UUID -> CircleAPIRequest WireInstructionsRequest TupleBS8 ByteString Source #
Get the wire transfer instructions into the Circle bank account given your bank account id. https://developers.circle.com/developer/v1/reference/getwireaccountinstructions
createACHAccount :: CreateACHBankAccountRequestBody -> CircleAPIRequest ACHBankAccountRequest TupleBS8 ByteString Source #
Create an ACH account https://developers.circle.com/developer/v1/reference/payments-bank-accounts-ach-mock
getACHAccount :: UUID -> CircleAPIRequest ACHBankAccountRequest TupleBS8 ByteString Source #
Get an ACH account https://developers.circle.com/developer/v1/reference/getachaccount-1
createSEPAAccount :: SEPAAccountRequestBody -> CircleAPIRequest SEPAAccountRequest TupleBS8 ByteString Source #
Create a SEPA account (in beta) https://developers.circle.com/developer/v1/reference/createsepaaccount-1
getSEPAAccount :: UUID -> CircleAPIRequest SEPAAccountRequest TupleBS8 ByteString Source #
Get a SEPA account (in beta) https://developers.circle.com/developer/v1/reference/getsepaaccount-1
getSEPAAccountInstructions :: UUID -> CircleAPIRequest SEPAInstructionsRequest TupleBS8 ByteString Source #
Get instructions for a SEPA transfer (in beta) https://developers.circle.com/developer/v1/reference/getsepaaccountinstructions
listAllSettlements :: CircleAPIRequest SettlementsRequest TupleBS8 ByteString Source #
List all settlements https://developers.circle.com/developer/v1/reference/listsettlements
listAllChargebacks :: CircleAPIRequest ChargebacksRequest TupleBS8 ByteString Source #
List all chargebacks https://developers.circle.com/developer/v1/reference/listchargebacks
listAllACHReversals :: CircleAPIRequest ReversalsRequest TupleBS8 ByteString Source #
Retrieve a list of ACH payment reversals. Results will be sorted by create date descending; more recent reversals will be at the beginning of the list https://developers.circle.com/developer/v1/reference/listreversals
listAllBalances :: CircleAPIRequest BalanceRequest TupleBS8 ByteString Source #
Retrieves the balance of merchant funds that have settled and also of funds that have been sent for processing but have not yet settled. https://developers.circle.com/developer/v1/reference/listbalances
listAllPaymentIntents :: CircleAPIRequest PaymentIntentsRequest TupleBS8 ByteString Source #
List all payment intents https://developers.circle.com/developer/v1/reference/listpaymentintents
createPaymentIntent :: CreatePaymentIntentRequestBody -> CircleAPIRequest PaymentIntentRequest TupleBS8 ByteString Source #
Create a payment intent https://developers.circle.com/developer/v1/reference/createpaymentintent
getPaymentIntent :: UUID -> CircleAPIRequest PaymentIntentRequest TupleBS8 ByteString Source #
Get a payment intent https://developers.circle.com/developer/v1/reference/getpaymentintent
expirePaymentIntent :: UUID -> CircleAPIRequest PaymentIntentRequest TupleBS8 ByteString Source #
Expire a payment intent https://developers.circle.com/developer/v1/reference/expirepaymentintent
listAllPayouts :: CircleAPIRequest PayoutsRequest TupleBS8 ByteString Source #
Lists all payouts made from a given account https://developers.circle.com/developer/v1/reference/listpayouts
getPayout :: UUID -> CircleAPIRequest PayoutRequest TupleBS8 ByteString Source #
Gets a specific payout based on an ID https://developers.circle.com/developer/v1/reference/payouts-payouts-get-id
listAllTransfers :: CircleAPIRequest TransfersRequest TupleBS8 ByteString Source #
Searches for transfers from your account. If the date parameters are omitted, returns the most recent transfers. This endpoint returns up to 50 transfers in descending chronological order or pageSize, if provided. https://developers.circle.com/developer/v1/reference/listtransfers
getTransfer :: UUID -> CircleAPIRequest TransferRequest TupleBS8 ByteString Source #
Get a transfer based on a transfer ID https://developers.circle.com/reference/getbusinesstransfer
createTransfer :: TransferRequestBody -> CircleAPIRequest TransferRequest TupleBS8 ByteString Source #
Create a new transfer https://developers.circle.com/developer/v1/reference/payouts-transfers-create
listAllReturns :: CircleAPIRequest ReturnsRequest TupleBS8 ByteString Source #
Retrieve a list of Wire and ACH payout returns. Results will be sorted by create date descending; more recent returns will be at the beginning of the list. https://developers.circle.com/developer/v1/reference/listreturns
listAllWallets :: CircleAPIRequest WalletsRequest TupleBS8 ByteString Source #
Retrieves a list of a user's wallets. https://developers.circle.com/developer/v1/reference/listwallets
createWallet :: CreateWalletRequestBody -> CircleAPIRequest WalletRequest TupleBS8 ByteString Source #
Creates an end user wallet. https://developers.circle.com/developer/v1/reference/accounts-wallets-create
createDepositAddress :: UUID -> DepositAddressRequestBody -> CircleAPIRequest DepositAddressRequest TupleBS8 ByteString Source #
Create new blockchain deposit address Generates a new blockchain address for a wallet for a given currency/chain pair. Circle may reuse addresses on blockchains that support reuse. For example, if you're requesting two addresses for depositing USD and ETH, both on Ethereum, you may see the same Ethereum address returned. Depositing cryptocurrency to a generated address will credit the associated wallet with the value of the deposit. https://developers.circle.com/developer/v1/reference/payments-on-chain-addresses-create
listAllAddresses :: UUID -> CircleAPIRequest RecipientAddressesRequest TupleBS8 ByteString Source #
List all recipient addresses associated with a wallet Id Retrieves a list of addresses associated with a wallet. https://developers.circle.com/developer/v1/reference/listaddresses
circle :: FromJSON (CircleRequest a) => CircleConfig -> CircleAPIRequest a TupleBS8 ByteString -> IO (Either CircleError (CircleRequest a)) Source #
Create a request to circle
's API
circleTest :: FromJSON (CircleRequest a) => CircleConfig -> Manager -> CircleAPIRequest a TupleBS8 ByteString -> IO (Either CircleError (CircleRequest a)) Source #
This function is only used internally to speed up the test suite. Instead of creating a new Manager we reuse the same one.
paramsToByteString :: [Query] -> ByteString Source #
Conversion of a key value pair to a query parameterized string