Documentation
¶
Overview ¶
Package lithic is the official Go SDK for the Lithic API (https://lithic.com). Create a Client with New, then call methods on its resource fields:
c := lithic.New(lithic.WithAPIKey("sk_..."), lithic.WithSandbox())
card, err := c.Cards.Create(ctx, lithic.CardCreateParams{Type: lithic.CardTypeVirtual})
Internally, the SDK is organized as a set of independent per-domain packages under domain/ (accounts, cards, transactions, ...), each depending only on the shared client package for HTTP/pagination/error mechanics — never on each other or on this root package. This file is the single place that composes those packages into one Client and re-exports their public types so the API surface above stays flat.
Index ¶
- Constants
- Variables
- type Account
- type AccountHolder
- type AccountHolderCreateParams
- type AccountHolderStatus
- type AccountHoldersListParams
- type AccountState
- type AccountUpdateParams
- type AccountsListParams
- type Address
- type AuthRule
- type AuthRuleBacktest
- type AuthRuleCreateParams
- type AuthRulesListParams
- type Balance
- type BookTransfer
- type BookTransferCreateParams
- type Card
- type CardBulkOrder
- type CardCreateParams
- type CardState
- type CardType
- type CardUpdateParams
- type CardsListParams
- type Chargeback
- type Client
- type Dispute
- type Environment
- type Error
- type ErrorCategory
- type Event
- type EventSubscription
- type EventSubscriptionCreateParams
- type ExternalBankAccount
- type ExternalBankAccountCreateParams
- type ExternalPayment
- type ExternalPaymentCreateParams
- type FinancialAccount
- type FinancialAccountsListParams
- type FinancialTransaction
- type FraudReport
- type FundingEvent
- type Hold
- type ListParams
- type ManagementOperation
- type Option
- type PageResponse
- type Payment
- type PaymentCreateParams
- type PaymentsListParams
- type SettlementSummary
- type SpendLimitDuration
- type Statement
- type ThreeDSAuthentication
- type Tokenization
- type Transaction
- type TransactionResult
- type TransactionStatus
- type TransactionsListParams
- type WebhookClient
Constants ¶
View Source
const ( EnvironmentProduction = client.EnvironmentProduction EnvironmentSandbox = client.EnvironmentSandbox )
View Source
const ( ErrorCategoryAPI = client.ErrorCategoryAPI ErrorCategoryAuth = client.ErrorCategoryAuth ErrorCategoryValidation = client.ErrorCategoryValidation ErrorCategoryNotFound = client.ErrorCategoryNotFound ErrorCategoryRateLimit = client.ErrorCategoryRateLimit ErrorCategoryNetwork = client.ErrorCategoryNetwork ErrorCategoryConfig = client.ErrorCategoryConfig ErrorCategoryDecode = client.ErrorCategoryDecode )
View Source
const ( AccountHolderStatusAccepted = accountholders.AccountHolderStatusAccepted AccountHolderStatusRejected = accountholders.AccountHolderStatusRejected AccountHolderStatusPendingResubmit = accountholders.AccountHolderStatusPendingResubmit AccountHolderStatusPendingDocument = accountholders.AccountHolderStatusPendingDocument )
View Source
const ( AccountStateActive = accounts.AccountStateActive AccountStatePaused = accounts.AccountStatePaused AccountStateClosed = accounts.AccountStateClosed )
View Source
const ( CardTypeVirtual = cards.CardTypeVirtual CardTypePhysical = cards.CardTypePhysical CardTypeMerchantLocked = cards.CardTypeMerchantLocked CardTypeSingleUse = cards.CardTypeSingleUse CardStateOpen = cards.CardStateOpen CardStatePaused = cards.CardStatePaused CardStateClosed = cards.CardStateClosed SpendLimitDurationTransaction = cards.SpendLimitDurationTransaction SpendLimitDurationMonthly = cards.SpendLimitDurationMonthly SpendLimitDurationAnnually = cards.SpendLimitDurationAnnually SpendLimitDurationForever = cards.SpendLimitDurationForever )
View Source
const ( TransactionResultApproved = transactions.TransactionResultApproved TransactionResultDeclined = transactions.TransactionResultDeclined TransactionStatusPending = transactions.TransactionStatusPending TransactionStatusSettled = transactions.TransactionStatusSettled TransactionStatusDeclined = transactions.TransactionStatusDeclined TransactionStatusExpired = transactions.TransactionStatusExpired TransactionStatusVoided = transactions.TransactionStatusVoided )
Variables ¶
View Source
var ( WithAPIKey = client.WithAPIKey WithEnvironment = client.WithEnvironment WithSandbox = client.WithSandbox WithHTTPClient = client.WithHTTPClient WithMaxRetries = client.WithMaxRetries WithBaseURL = client.WithBaseURL WithLogger = client.WithLogger )
Functions ¶
This section is empty.
Types ¶
type AccountHolder ¶
type AccountHolder = accountholders.AccountHolder
type AccountHolderCreateParams ¶
type AccountHolderCreateParams = accountholders.AccountHolderCreateParams
type AccountHolderStatus ¶
type AccountHolderStatus = accountholders.AccountHolderStatus
type AccountHoldersListParams ¶
type AccountHoldersListParams = accountholders.AccountHoldersListParams
type AccountState ¶
type AccountState = accounts.AccountState
type AccountUpdateParams ¶
type AccountUpdateParams = accounts.AccountUpdateParams
type AccountsListParams ¶
type AccountsListParams = accounts.AccountsListParams
type AuthRuleBacktest ¶
type AuthRuleBacktest = authrules.AuthRuleBacktest
type AuthRuleCreateParams ¶
type AuthRuleCreateParams = authrules.AuthRuleCreateParams
type AuthRulesListParams ¶
type AuthRulesListParams = authrules.AuthRulesListParams
type BookTransfer ¶
type BookTransfer = booktransfers.BookTransfer
type BookTransferCreateParams ¶
type BookTransferCreateParams = booktransfers.BookTransferCreateParams
type CardBulkOrder ¶
type CardBulkOrder = cardbulkorders.CardBulkOrder
type CardCreateParams ¶
type CardCreateParams = cards.CardCreateParams
type CardUpdateParams ¶
type CardUpdateParams = cards.CardUpdateParams
type CardsListParams ¶
type CardsListParams = cards.CardsListParams
type Chargeback ¶
type Chargeback = chargebacks.Chargeback
type Client ¶
type Client struct {
AccountHolders *accountholders.Resource
Accounts *accounts.Resource
AuthRules *authrules.Resource
AuthStreamAccess *authstreamaccess.Resource
Balances *balances.Resource
BookTransfers *booktransfers.Resource
CardBulkOrders *cardbulkorders.Resource
Cards *cards.Resource
Chargebacks *chargebacks.Resource
Credit *credit.Resource
Disputes *disputes.Resource
Events *events.Resource
ExternalBankAccounts *externalbankaccounts.Resource
ExternalPayments *externalpayments.Resource
FinancialAccounts *financialaccounts.Resource
FraudReports *fraudreports.Resource
FundingEvents *fundingevents.Resource
Holds *holds.Resource
ManagementOperations *managementoperations.Resource
Network *network.Resource
Payments *payments.Resource
Settlement *settlement.Resource
ThreeDS *threeds.Resource
Tokenization *tokenization.Resource
TransactionMonitoring *transactionmonitoring.Resource
Transactions *transactions.Resource
// Webhook verifies Lithic webhook signatures (Event Subscriptions,
// Auth Stream Access, Tokenization Decisioning, 3DS Decisioning).
Webhook *WebhookClient
// contains filtered or unexported fields
}
Client is the entry point to the Lithic API. Create one with New. It is safe for concurrent use.
type Environment ¶
type Environment = client.Environment
type ErrorCategory ¶
type ErrorCategory = client.ErrorCategory
type EventSubscription ¶
type EventSubscription = events.EventSubscription
type EventSubscriptionCreateParams ¶
type EventSubscriptionCreateParams = events.EventSubscriptionCreateParams
type ExternalBankAccount ¶
type ExternalBankAccount = externalbankaccounts.ExternalBankAccount
type ExternalBankAccountCreateParams ¶
type ExternalBankAccountCreateParams = externalbankaccounts.ExternalBankAccountCreateParams
type ExternalPayment ¶
type ExternalPayment = externalpayments.ExternalPayment
type ExternalPaymentCreateParams ¶
type ExternalPaymentCreateParams = externalpayments.ExternalPaymentCreateParams
type FinancialAccount ¶
type FinancialAccount = financialaccounts.FinancialAccount
type FinancialAccountsListParams ¶
type FinancialAccountsListParams = financialaccounts.FinancialAccountsListParams
type FinancialTransaction ¶
type FinancialTransaction = financialaccounts.FinancialTransaction
type FraudReport ¶
type FraudReport = fraudreports.FraudReport
type FundingEvent ¶
type FundingEvent = fundingevents.FundingEvent
type ListParams ¶
type ListParams = client.ListParams
type ManagementOperation ¶
type ManagementOperation = managementoperations.ManagementOperation
type PageResponse ¶
type PageResponse = client.PageResponse
type PaymentCreateParams ¶
type PaymentCreateParams = payments.PaymentCreateParams
type PaymentsListParams ¶
type PaymentsListParams = payments.PaymentsListParams
type SettlementSummary ¶
type SettlementSummary = settlement.SettlementSummary
type SpendLimitDuration ¶
type SpendLimitDuration = cards.SpendLimitDuration
type ThreeDSAuthentication ¶
type ThreeDSAuthentication = threeds.ThreeDSAuthentication
type Tokenization ¶
type Tokenization = tokenization.Tokenization
type Transaction ¶
type Transaction = transactions.Transaction
type TransactionResult ¶
type TransactionResult = transactions.TransactionResult
type TransactionStatus ¶
type TransactionStatus = transactions.TransactionStatus
type TransactionsListParams ¶
type TransactionsListParams = transactions.TransactionsListParams
type WebhookClient ¶
type WebhookClient = client.WebhookClient
Directories
¶
| Path | Synopsis |
|---|---|
|
Package client implements the low-level HTTP mechanics shared by every Lithic domain package: request execution, retries, pagination, error mapping, and webhook verification.
|
Package client implements the low-level HTTP mechanics shared by every Lithic domain package: request execution, retries, pagination, error mapping, and webhook verification. |
|
domain
|
|
|
account_holders
Package accountholders provides access to the Lithic Account Holders API.
|
Package accountholders provides access to the Lithic Account Holders API. |
|
accounts
Package accounts provides access to the Lithic Accounts API.
|
Package accounts provides access to the Lithic Accounts API. |
|
auth_rules
Package authrules provides access to the Lithic Auth Rules V2 API.
|
Package authrules provides access to the Lithic Auth Rules V2 API. |
|
auth_stream_access
Package authstreamaccess provides access to the Auth Stream Access (ASA) API.
|
Package authstreamaccess provides access to the Auth Stream Access (ASA) API. |
|
balances
Package balances provides access to the Lithic Balances API.
|
Package balances provides access to the Lithic Balances API. |
|
book_transfers
Package booktransfers provides access to the Lithic Book Transfers API.
|
Package booktransfers provides access to the Lithic Book Transfers API. |
|
card_bulk_orders
Package cardbulkorders provides access to the Lithic Card Bulk Orders API.
|
Package cardbulkorders provides access to the Lithic Card Bulk Orders API. |
|
cards
Package cards provides access to the Lithic Cards API.
|
Package cards provides access to the Lithic Cards API. |
|
chargebacks
Package chargebacks provides access to the Lithic Chargebacks (legacy dispute) API.
|
Package chargebacks provides access to the Lithic Chargebacks (legacy dispute) API. |
|
credit
Package credit provides access to the Lithic Credit API.
|
Package credit provides access to the Lithic Credit API. |
|
disputes
Package disputes provides access to the Lithic Disputes V2 API.
|
Package disputes provides access to the Lithic Disputes V2 API. |
|
events
Package events provides access to the Lithic Events & Webhooks API.
|
Package events provides access to the Lithic Events & Webhooks API. |
|
external_bank_accounts
Package externalbankaccounts provides access to the External Bank Accounts API.
|
Package externalbankaccounts provides access to the External Bank Accounts API. |
|
external_payments
Package externalpayments provides access to the Lithic External Payments API.
|
Package externalpayments provides access to the Lithic External Payments API. |
|
financial_accounts
Package financialaccounts provides access to the Lithic Financial Accounts API.
|
Package financialaccounts provides access to the Lithic Financial Accounts API. |
|
fraud_reports
Package fraudreports provides access to the Lithic Fraud Reports API.
|
Package fraudreports provides access to the Lithic Fraud Reports API. |
|
funding_events
Package fundingevents provides access to the Lithic Funding Events API.
|
Package fundingevents provides access to the Lithic Funding Events API. |
|
holds
Package holds provides access to the Lithic Holds API.
|
Package holds provides access to the Lithic Holds API. |
|
management_operations
Package managementoperations provides access to the Lithic Management Operations API.
|
Package managementoperations provides access to the Lithic Management Operations API. |
|
network
Package network provides access to the Lithic Network API.
|
Package network provides access to the Lithic Network API. |
|
payments
Package payments provides access to the Lithic Payments (ACH) API.
|
Package payments provides access to the Lithic Payments (ACH) API. |
|
settlement
Package settlement provides access to the Lithic Settlement API.
|
Package settlement provides access to the Lithic Settlement API. |
|
three_ds
Package threeds provides access to the Lithic 3-D Secure API.
|
Package threeds provides access to the Lithic 3-D Secure API. |
|
tokenization
Package tokenization provides access to the Lithic Tokenization API.
|
Package tokenization provides access to the Lithic Tokenization API. |
|
transaction_monitoring
Package transactionmonitoring provides access to the Lithic Transaction Monitoring API.
|
Package transactionmonitoring provides access to the Lithic Transaction Monitoring API. |
|
transactions
Package transactions provides access to the Lithic Transactions API.
|
Package transactions provides access to the Lithic Transactions API. |
Click to show internal directories.
Click to hide internal directories.