Versions in this module Expand all Collapse all v0 v0.1.0 Aug 9, 2023 Changes in this version + const Version + func NewIdempotencyKey() string + type Amount struct + Amount string + Currency string + type Balance struct + Available []Amount + Unsettled []Amount + type BankAccount struct + AccountNumber string + BankAddress *BankAddress + BillingDetails *BillingDetails + CreateDate string + Description string + ErrorCode BankAccountErrorCode + Fingerprint string + ID string + Metadata *Metadata + RiskEvaluation *RiskEvaluation + RoutingNumber string + Status BankAccountStatus + TrackingRef string + UpdateDate string + type BankAccountErrorCode string + const BankAccountErrorCodeBankAccountAuthorizationExpired + const BankAccountErrorCodeBankAccountError + const BankAccountErrorCodeBankAccountIneligible + const BankAccountErrorCodeBankAccountNotFound + const BankAccountErrorCodeBankAccountUnauthorized + const BankAccountErrorCodeUnsupportedRoutingNumber + const BankAccountErrorCodeVerificationFailed + type BankAccountStatus string + const BankAccountStatusComplete + const BankAccountStatusFailed + const BankAccountStatusPending + type BankAddress struct + BankName string + City string + Country string + District string + Line1 string + Line2 string + type BillingDetails struct + City string + Country string + District string + Line1 string + Line2 string + Name string + PostalCode string + type CallOption func(*RequestOptions) error + func WithContext(ctx context.Context) CallOption + func WithDateRange(from, to time.Time) CallOption + func WithIdempotencyKey(ik string) CallOption + func WithPageAfter(id string) CallOption + func WithPageBefore(id string) CallOption + func WithPageSize(size uint) CallOption + type CancelPaymentRequest struct + IdempotencyKey string + Reason string + type CapturePaymentRequest struct + Amount *Amount + IdempotencyKey string + type Card struct + BillingDetails *BillingDetails + Bin string + CreateDate string + ErrorCode CardErrorCode + ExpMonth int + ExpYear int + Fingerprint string + FundingType CardFundingType + ID string + IssuerCountry string + Last4 string + Metadata *Metadata + Network CardNetwork + RiskEvaluation *RiskEvaluation + Status CardStatus + UpdateDate string + Verification *CardVerification + type CardErrorCode string + const CardErrorCodeCardAccountIneligible + const CardErrorCodeCardAddressMismatch + const CardErrorCodeCardCvvInvalid + const CardErrorCodeCardCvvRequired + const CardErrorCodeCardExpired + const CardErrorCodeCardFailed + const CardErrorCodeCardInvalid + const CardErrorCodeCardLimitViolated + const CardErrorCodeCardNetworkUnsupported + const CardErrorCodeCardNotHonored + const CardErrorCodeCardZipMismatch + const CardErrorCodeCreditCardNotAllowed + const CardErrorCodeVerificationDenied + const CardErrorCodeVerificationFailed + const CardErrorCodeVerificationFraudDetected + const CardErrorCodeVerificationNotSupportedByIssuer + const CardErrorCodeVerificationStoppedByIssuer + type CardFundingType string + const CardFundingTypeCredit + const CardFundingTypeDebit + const CardFundingTypePrepaid + const CardFundingTypeUnknown + type CardNetwork string + const CardNetworkAMEX + const CardNetworkMASTERCARD + const CardNetworkUNKNOWN + const CardNetworkVISA + type CardStatus string + const CardStatusComplete + const CardStatusFailed + const CardStatusPending + type CardVerification struct + Avs CardVerificationAvs + Cvv CardVerificationCvv + type CardVerificationAvs string + const CardVerificationAvsNotRequested + const CardVerificationAvsPending + type CardVerificationCvv string + const CardVerificationCvvFail + const CardVerificationCvvNotRequested + const CardVerificationCvvPass + const CardVerificationCvvPending + const CardVerificationCvvUnavailable + type ChargeBack struct + Category ChargeBackCategory + History []ChargeBackHistory + ID string + MerchantID string + PaymentID string + ReasonCode string + type ChargeBackCategory string + const ChargeBackCategoryCanceledRecurringPayment + const ChargeBackCategoryCustomerDispute + const ChargeBackCategoryFraudulent + const ChargeBackCategoryGeneral + const ChargeBackCategoryNotDefined + const ChargeBackCategoryProcessingError + type ChargeBackHistory struct + ChargeBackAmount *Amount + CreateDate string + Description string + Fee *Amount + SettlementID string + Type ChargeBackHistoryType + type ChargeBackHistoryType string + const ChargeBackHistoryType1stChargeBack + const ChargeBackHistoryType2ndChargeBack + const ChargeBackHistoryTypeChargeBackReversal + const ChargeBackHistoryTypeChargeBackSettlement + const ChargeBackHistoryTypeRepresentment + type Client struct + Backend string + Conn *http.Client + Debug bool + KeepAlive uint + Key string + MaxConnections uint + Timeout uint + UserAgent string + func NewClient(options ...Option) (*Client, error) + func (cl *Client) Dispatch(r *RequestOptions) error + type CreateBankAccountRequest struct + BillingDetails *BillingDetails + IdempotencyKey string + Metadata *CreateMetadataRequest + PlaidProcessorToken string + type CreateCardRequest struct + BillingDetails *BillingDetails + EncryptedData string + ExpMonth int + ExpYear int + IdempotencyKey string + KeyID string + Metadata *CreateMetadataRequest + type CreateMetadataRequest struct + Email string + IPAddress string + PhoneNumber string + SessionID string + type CreatePaymentRequest struct + Amount *Amount + AutoCapture bool + Channel string + Description string + EncryptedData string + IdempotencyKey string + KeyID string + Metadata *CreateMetadataRequest + Source *Source + Verification string + VerificationFailureURL string + VerificationSuccessURL string + type CreatePayoutMetadataRequest struct + BeneficiaryEmail string + type CreatePayoutRequest struct + Amount *Amount + IdempotencyKey string + Metadata *CreatePayoutMetadataRequest + PayoutDestination *Source + Source *Source + type DepositAddress struct + Address string + AddressTag string + Chain string + Currency string + Description string + ID string + Kind string + type Error struct + Code int + Details []ExtendedErrorDetails + Message string + func (e *Error) Error() string + type ErrorConstraints struct + Inclusive bool + Max string + MaxFractionalDigits int + MaxIntegralDigits int + Min string + Pattern string + type ExtendedErrorDetails struct + Constraints ErrorConstraints + ErrorType string + InvalidValue string + Location string + Message string + type ListPaymentsRequest struct + SettlementID string + Source string + Status PaymentStatus + Type []string + type ListPayoutsRequest struct + Destination string + Source string + Status []PayoutStatus + Type []string + type Metadata struct + Email string + PhoneNumber string + type Option func(*Client) error + func WithAPIKey(key string) Option + func WithAPIKeyFromEnv(name string) Option + func WithDebug() Option + func WithKeepAlive(val uint) Option + func WithMaxConnections(val uint) Option + func WithProductionBackend() Option + func WithTimeout(val uint) Option + func WithUserAgent(agent string) Option + type Payment struct + Amount *Amount + Cancel *Payment + CaptureAmount *Amount + CaptureDate string + Captured *bool + Channel string + CreateDate string + Description string + ErrorCode PaymentErrorCode + ExternalRef string + Fees *Amount + ID string + MerchantID string + MerchantWalletID string + Metadata *Metadata + OriginalPayment *Payment + Refunds []Payment + RequiredAction *RequiredAction + RiskEvaluation *RiskEvaluation + Source *Source + Status PaymentStatus + TrackingRef string + Type PaymentType + UpdateDate string + Verification *PaymentVerification + type PaymentErrorCode string + const PaymentErrorCodeBankAccountIneligible + const PaymentErrorCodeBankTransactionError + const PaymentErrorCodeCardAccountIneligible + const PaymentErrorCodeCardAddressMismatch + const PaymentErrorCodeCardCvvInvalid + const PaymentErrorCodeCardCvvRequired + const PaymentErrorCodeCardExpired + const PaymentErrorCodeCardFailed + const PaymentErrorCodeCardInvalid + const PaymentErrorCodeCardLimitViolated + const PaymentErrorCodeCardNetworkUnsupported + const PaymentErrorCodeCardNotHonored + const PaymentErrorCodeCardZipMismatch + const PaymentErrorCodeChannelInvalid + const PaymentErrorCodeCreditCardNotAllowed + const PaymentErrorCodeInvalidAccountNumber + const PaymentErrorCodeInvalidAchRtn + const PaymentErrorCodeInvalidWireRtn + const PaymentErrorCodePaymentCanceled + const PaymentErrorCodePaymentDenied + const PaymentErrorCodePaymentFailed + const PaymentErrorCodePaymentFailedBalanceCheck + const PaymentErrorCodePaymentFraudDetected + const PaymentErrorCodePaymentNotFound + const PaymentErrorCodePaymentNotSupportedByIssuer + const PaymentErrorCodePaymentReturned + const PaymentErrorCodePaymentStoppedByIssuer + const PaymentErrorCodePaymentUnprocessable + const PaymentErrorCodeUnauthorized + const PaymentErrorCodeVendorInactive + type PaymentStatus string + const PaymentStatusActionRequired + const PaymentStatusConfirmed + const PaymentStatusFailed + const PaymentStatusPaid + const PaymentStatusPending + type PaymentType string + const PaymentTypeCancel + const PaymentTypePayment + const PaymentTypeRefund + type PaymentVerification struct + Avs PaymentVerificationAvs + Cvv PaymentVerificationCvv + Eci PaymentVerificationEci + ThreeDSecure PaymentVerificationThreeDSecure + type PaymentVerificationAvs string + const PaymentVerificationAvsNotRequested + const PaymentVerificationAvsPending + type PaymentVerificationCvv string + const PaymentVerificationCvvFail + const PaymentVerificationCvvNotRequested + const PaymentVerificationCvvPass + const PaymentVerificationCvvPending + const PaymentVerificationCvvUnavailable + type PaymentVerificationEci string + const PaymentVerificationEci00 + const PaymentVerificationEci01 + const PaymentVerificationEci02 + const PaymentVerificationEci05 + const PaymentVerificationEci06 + const PaymentVerificationEci07 + type PaymentVerificationThreeDSecure string + const PaymentVerificationThreeDSecureFail + const PaymentVerificationThreeDSecurePass + type Payout struct + Adjustments *PayoutAdjustment + Amount *Amount + CreateDate string + Destination *PayoutDestination + ErrorCode PayoutErrorCode + ExternalRef string + Fees *Amount + ID string + Return *PayoutReturn + RiskEvaluation *RiskEvaluation + SourceWalletID string + Status PayoutStatus + TrackingRef string + UpdateDate string + type PayoutAdjustment struct + FxCredit *Amount + FxDebit *Amount + type PayoutDestination struct + ID string + Name string + Type PayoutDestinationType + type PayoutDestinationType string + const PayoutDestinationTypeAch + const PayoutDestinationTypeSepa + const PayoutDestinationTypeWire + type PayoutErrorCode string + const PayoutErrorCodeBankTransactionError + const PayoutErrorCodeFiatAccountLimitExceed + const PayoutErrorCodeInsufficientFunds + const PayoutErrorCodeInvalidAchRtn + const PayoutErrorCodeInvalidBankAccountNumber + const PayoutErrorCodeInvalidWireRtn + const PayoutErrorCodeTransactionDenied + const PayoutErrorCodeTransactionFailed + const PayoutErrorCodeTransactionReturned + const PayoutErrorCodeVendorInactive + type PayoutReturn struct + Amount *Amount + CreateDate string + Fees *Amount + ID string + PayoutID string + Reason string + Status PayoutReturnStatus + UpdateDate string + type PayoutReturnStatus string + const PayoutReturnStatusComplete + const PayoutReturnStatusFailed + const PayoutReturnStatusPending + type PayoutStatus string + const PayoutStatusComplete + const PayoutStatusFailed + const PayoutStatusPending + type RefundPaymentRequest struct + Amount *Amount + IdempotencyKey string + Reason string + type RequestOptions struct + Ctx context.Context + Endpoint string + IdempotencyKey string + Input interface{} + Method string + Output interface{} + QueryParams url.Values + UnwrapData bool + func (req *RequestOptions) AddQueryParam(key, value string) + type RequiredAction struct + RedirectURL string + Type RequiredActionType + type RequiredActionType string + const RequiredActionTypeThreeDSecureRequired + type Reversal struct + Amount *Amount + CreateDate string + Description string + Fees *Amount + ID string + PaymentID string + Reason ReversalReason + Status ReversalStatus + UpdateDate string + type ReversalReason string + const ReversalReasonBankAccountIneligible + const ReversalReasonBankTransactionError + const ReversalReasonDuplicate + const ReversalReasonFraudulent + const ReversalReasonInsufficientFunds + const ReversalReasonInvalidAccountNumber + const ReversalReasonInvalidAchRtn + const ReversalReasonPaymentFailed + const ReversalReasonPaymentReturned + const ReversalReasonPaymentStoppedByIssuer + const ReversalReasonRequestedByCustomer + const ReversalReasonUnauthorizedTransaction + type ReversalStatus string + const ReversalStatusConfirmed + const ReversalStatusFailed + const ReversalStatusPaid + const ReversalStatusPending + type RiskEvaluation struct + Decision RiskEvaluationDecision + Reason string + type RiskEvaluationDecision string + const RiskEvaluationDecisionApproved + const RiskEvaluationDecisionDenied + const RiskEvaluationDecisionReview + type Settlement struct + ChargebackFees *Amount + CreateDate string + ID string + MerchantWalletID string + PaymentFees *Amount + TotalCredits *Amount + TotalDebits *Amount + UpdateDate string + WalletID string + type Source struct + ID string + Type SourceType + type SourceType string + const SourceTypeAch + const SourceTypeCard + const SourceTypeSepa + const SourceTypeWire + type SupportedChain string + const ChainALGO + const ChainAVAX + const ChainBTC + const ChainETH + const ChainFLOW + const ChainHBAR + const ChainSOL + const ChainTRX + const ChainXLM + type SupportedCurrency string + const BTC + const ETH + const USD + type Transfer struct + Amount *Amount + CreateDate string + Destination *DepositAddress + ErrorCode TransferErrorCode + ID string + Source *DepositAddress + Status TransferStatus + TxHash string + type TransferErrorCode string + const TransferErrorCodeBlockChainError + const TransferErrorCodeInsufficientFunds + const TransferErrorCodeTransferDenied + const TransferErrorCodeTransferFailed + type TransferStatus string + const TransferStatusComplete + const TransferStatusFailed + const TransferStatusPending + type UpdateCardRequest struct + EncryptedData string + ExpMonth int + ExpYear int + KeyID string + type Wallet struct + Balances []Amount + Description string + Entity string + ID string + Kind string