Versions in this module Expand all Collapse all v0 v0.1.2 Sep 20, 2026 Changes in this version + var ErrUnexpectedStatus = errors.New("unexpected HTTP status") v0.1.1 Sep 20, 2026 v0.1.0 Sep 20, 2026 Changes in this version + const APIVersion + const CodeAuthUnavailable + const CodeBulkheadFull + const CodeClientNotFound + const CodeConsumerTokenRequired + const CodeCreditLimitBelowBalance + const CodeEventNotFound + const CodeForbidden + const CodeGatewayUnreachable + const CodeIdempotencyKeyReuse + const CodeInsufficientFunds + const CodeInsufficientPoints + const CodeInsufficientScope + const CodeInternalError + const CodeInvalidRequest + const CodeMerchantExists + const CodeMerchantNotFound + const CodeNoConversionRule + const CodeNotAPlan + const CodeNotAnItem + const CodeNotClientMember + const CodeNothingToPay + const CodeOfferingNotFound + const CodeOrgProvisioningUnavailable + const CodePayerNotFound + const CodePaymentNotFound + const CodePlatformScopeOnly + const CodeRateLimited + const CodeRecipientNotFound + const CodeReportingTimeout + const CodeRuleExists + const CodeRuleNotFound + const CodeSelfTransfer + const CodeSenderNotFound + const CodeSubscriptionNotFound + const CodeTenantNotFound + const CodeTenantSuspended + const CodeTierLimitExceeded + const CodeTopupNotFound + const CodeUnauthenticated + const CodeUnknownTenant + const CodeUserExists + const CodeUserNotBusiness + const CodeUserNotFound + const CodeUserTokenRequired + const DefaultPageSize + const DefaultTolerance + const EventIDHeader + const SignatureHeader + const Version + var DefaultRetryPolicy = RetryPolicy + var ErrAuthUnavailable = errors.New("credential service unavailable") + var ErrBadRequest = errors.New("bad request") + var ErrBulkheadFull = errors.New("gateway concurrency compartment full") + var ErrClientNotFound = errors.New("client not found") + var ErrConflict = errors.New("conflict") + var ErrConsumerTokenRequired = errors.New("consumer token required") + var ErrCreditLimitBelowBalance = errors.New("credit limit below drawn balance") + var ErrEventNotFound = errors.New("event not found") + var ErrForbidden = errors.New("forbidden") + var ErrGatewayUnreachable = errors.New("payment gateway unreachable") + var ErrIdempotencyKeyReuse = errors.New("idempotency key reused with different parameters") + var ErrInsufficientFunds = errors.New("insufficient funds") + var ErrInsufficientPoints = errors.New("insufficient points") + var ErrInsufficientScope = errors.New("insufficient scope") + var ErrInternal = errors.New("internal error") + var ErrInvalidRequest = errors.New("invalid request") + var ErrMerchantExists = errors.New("merchant already exists") + var ErrMerchantNotFound = errors.New("merchant not found") + var ErrNoConversionRule = errors.New("no active conversion rule") + var ErrNotAPlan = errors.New("offering is not a plan") + var ErrNotAnItem = errors.New("offering is not a one-off item") + var ErrNotClientMember = errors.New("not a member of that client") + var ErrNotFound = errors.New("not found") + var ErrNothingToPay = errors.New("nothing to pay") + var ErrOfferingNotFound = errors.New("offering not found") + var ErrOrgProvisioningUnavailable = errors.New("identity provisioning unavailable") + var ErrPaginationStalled = errors.New("pagination stalled: the page did not advance the cursor") + var ErrPayerNotFound = errors.New("payer not found") + var ErrPaymentNotFound = errors.New("payment not found") + var ErrPlatformScopeOnly = errors.New("platform scope only") + var ErrRateLimited = errors.New("rate limited") + var ErrRecipientNotFound = errors.New("recipient not found") + var ErrReportingTimeout = errors.New("reporting window too wide") + var ErrRuleExists = errors.New("rule already exists") + var ErrRuleNotFound = errors.New("rule not found") + var ErrSelfTransfer = errors.New("sender and recipient are the same wallet") + var ErrSenderNotFound = errors.New("sender not found") + var ErrServer = errors.New("server error") + var ErrSignatureMalformed = errors.New("malformed signature header") + var ErrSignatureMismatch = errors.New("signature does not match") + var ErrSignatureStale = errors.New("signature timestamp outside tolerance") + var ErrSubscriptionNotFound = errors.New("subscription not found") + var ErrTenantNotFound = errors.New("tenant not found") + var ErrTenantSuspended = errors.New("tenant suspended") + var ErrTierLimitExceeded = errors.New("tier limit exceeded") + var ErrTopupNotFound = errors.New("topup not found") + var ErrTransport = errors.New("transport failure") + var ErrUnauthenticated = errors.New("unauthenticated") + var ErrUnauthorized = errors.New("unauthorized") + var ErrUnknownTenant = errors.New("unknown tenant") + var ErrUnprocessable = errors.New("refused by a money rule") + var ErrUserExists = errors.New("user already exists") + var ErrUserNotBusiness = errors.New("user is not a business") + var ErrUserNotFound = errors.New("user not found") + var ErrUserTokenRequired = errors.New("user token required") + func CodeOf(err error) string + func VerifySignature(header string, body []byte, secret string, tolerance time.Duration) error + type AddVariantJSONRequestBody = VariantInput + type AdjustStockJSONRequestBody = StockAdjustmentRequest + type Alias struct + Email *string + Handle *string + Phone *string + type AuditEntry struct + Action string + ActorId string + ActorType string + After interface{} + Before interface{} + CreatedAt time.Time + Id int64 + ObjectId string + ObjectType string + type CapturePaymentJSONBody struct + Amount *int64 + type CapturePaymentJSONRequestBody CapturePaymentJSONBody + type CapturePaymentParams struct + IdempotencyKeyHeader IdempotencyKeyHeader + type CatalogClient struct + ApprovedAt *time.Time + Category *string + CommissionBps *int + CreatedAt time.Time + Description *string + DisplayName string + Id openapi_types.UUID + LogoUrl *string + MerchantId openapi_types.UUID + OrgAlias string + Status CatalogClientStatus + type CatalogClientStatus string + const CatalogClientStatusActive + const CatalogClientStatusPending + const CatalogClientStatusSuspended + func (e CatalogClientStatus) Valid() bool + type CatalogImport struct + AppliedCount int + ClientId openapi_types.UUID + CommittedAt *time.Time + CreateCount int + CreatedAt time.Time + Error *string + ErrorCount int + FileName string + HasImages bool + Id openapi_types.UUID + RowCount int + Status CatalogImportStatus + UpdateCount int + UpdatedAt time.Time + type CatalogImportRow struct + Action CatalogImportRowAction + Applied bool + Errors []string + ImageUrl *string + Payload map[string]interface{} + ProductHandle *string + RowNo int + Sku *string + Title *string + type CatalogImportRowAction string + const CatalogImportRowActionCreate + const CatalogImportRowActionError + const CatalogImportRowActionUpdate + func (e CatalogImportRowAction) Valid() bool + type CatalogImportStatus string + const CatalogImportStatusCanceled + const CatalogImportStatusCommitting + const CatalogImportStatusDone + const CatalogImportStatusFailed + const CatalogImportStatusReady + const CatalogImportStatusValidating + func (e CatalogImportStatus) Valid() bool + type Category struct + CreatedAt time.Time + Id openapi_types.UUID + Name string + ParentId *openapi_types.UUID + Position int + Slug string + type CategoryId = openapi_types.UUID + type CategoryInput struct + Name string + ParentId *openapi_types.UUID + Position *int + type Client struct + func New(baseURL string, cred Credential, opts ...Option) (*Client, error) + func (c *Client) CancelSubscription(ctx context.Context, subscriptionID uuid.UUID) (Subscription, error) + func (c *Client) CapturePayment(ctx context.Context, paymentID uuid.UUID, key IdempotencyKey, amount *int64) (Payment, error) + func (c *Client) ClientOfferings(clientID uuid.UUID, filter OfferingFilter) *PageIterator[Offering] + func (c *Client) ConvertPoints(ctx context.Context, key IdempotencyKey, req ConvertPointsJSONRequestBody) (Conversion, error) + func (c *Client) CreatePayment(ctx context.Context, key IdempotencyKey, req CreatePaymentRequest) (Payment, error) + func (c *Client) CreateRefund(ctx context.Context, key IdempotencyKey, req CreateRefundRequest) (Refund, error) + func (c *Client) CreateSubscription(ctx context.Context, key IdempotencyKey, req CreateSubscriptionRequest) (Subscription, error) + func (c *Client) CreateTopup(ctx context.Context, key IdempotencyKey, req CreateTopupRequest) (Topup, error) + func (c *Client) CreateTransfer(ctx context.Context, key IdempotencyKey, req CreateTransferRequest) (Transfer, error) + func (c *Client) CreateUser(ctx context.Context, req CreateUserRequest) (User, error) + func (c *Client) CreateWebhookEndpoint(ctx context.Context, req CreateWebhookEndpointRequest) (WebhookEndpoint, error) + func (c *Client) ExploreClient(ctx context.Context, clientID uuid.UUID) (ExploreClientDetail, error) + func (c *Client) ExploreClients(query, category string) *Iterator[CatalogClient] + func (c *Client) ExploreOffering(ctx context.Context, offeringID uuid.UUID) (ExploreOfferingDetail, error) + func (c *Client) GetClient(ctx context.Context, clientID uuid.UUID) (CatalogClient, error) + func (c *Client) GetClientOffering(ctx context.Context, clientID, offeringID uuid.UUID) (Offering, error) + func (c *Client) GetOrder(ctx context.Context, orderID uuid.UUID) (Order, error) + func (c *Client) GetPayment(ctx context.Context, paymentID uuid.UUID) (Payment, error) + func (c *Client) GetSubscription(ctx context.Context, subscriptionID uuid.UUID) (Subscription, error) + func (c *Client) GetTopup(ctx context.Context, topupID uuid.UUID) (Topup, error) + func (c *Client) GetUser(ctx context.Context, userID uuid.UUID) (User, error) + func (c *Client) ListClientOfferings(ctx context.Context, clientID uuid.UUID, filter OfferingFilter, ...) (OfferingPage, error) + func (c *Client) ListClients(ctx context.Context, status CatalogClientStatus, limit int) ([]CatalogClient, error) + func (c *Client) ListExploreClients(ctx context.Context, query, category string, cursor uuid.UUID, limit int) ([]CatalogClient, error) + func (c *Client) ListOrders(ctx context.Context, cursor uuid.UUID, limit int) ([]Order, error) + func (c *Client) ListSubscriptions(ctx context.Context, userID *uuid.UUID, status SubscriptionStatus, ...) ([]Subscription, error) + func (c *Client) ListTopupMethods(ctx context.Context) ([]TopupMethod, error) + func (c *Client) ListTransactions(ctx context.Context, txnType string, cursor uuid.UUID, limit int) ([]Transaction, error) + func (c *Client) ListUserRewards(ctx context.Context, userID uuid.UUID, limit int) ([]RewardGrant, error) + func (c *Client) ListUserTransactions(ctx context.Context, userID, cursor uuid.UUID, limit int) ([]UserTransaction, error) + func (c *Client) ListUsers(ctx context.Context, query string, cursor uuid.UUID, limit int) ([]User, error) + func (c *Client) ListWebhookDeliveries(ctx context.Context, endpointID *uuid.UUID, cursor uuid.UUID, limit int) ([]WebhookDelivery, error) + func (c *Client) ListWebhookEndpoints(ctx context.Context) ([]WebhookEndpoint, error) + func (c *Client) ListWebhookEvents(ctx context.Context, eventType string, since time.Time, limit int) ([]WebhookEvent, error) + func (c *Client) Me(ctx context.Context) (User, error) + func (c *Client) Orders() *Iterator[Order] + func (c *Client) PauseSubscription(ctx context.Context, subscriptionID uuid.UUID) (Subscription, error) + func (c *Client) RedeliverWebhookEvent(ctx context.Context, eventID uuid.UUID) (int, error) + func (c *Client) RefreshTopup(ctx context.Context, topupID uuid.UUID) (Topup, error) + func (c *Client) ResumeSubscription(ctx context.Context, subscriptionID uuid.UUID) (Subscription, error) + func (c *Client) SetUserCreditLimit(ctx context.Context, userID uuid.UUID, req SetCreditLimitRequest) (CreditLine, error) + func (c *Client) Subscriptions(userID *uuid.UUID, status SubscriptionStatus) *Iterator[Subscription] + func (c *Client) Transactions(txnType string) *Iterator[Transaction] + func (c *Client) UserBalances(ctx context.Context, userID uuid.UUID) ([]UserBalance, error) + func (c *Client) UserTransactions(userID uuid.UUID) *Iterator[UserTransaction] + func (c *Client) Users(query string) *Iterator[User] + func (c *Client) VoidPayment(ctx context.Context, paymentID uuid.UUID) (Payment, error) + func (c *Client) WebhookDeliveries(endpointID *uuid.UUID) *Iterator[WebhookDelivery] + type ClientId = openapi_types.UUID + type ClientProfileRequest struct + Category *string + Description *string + DisplayName string + LogoUrl *string + type ClientRewardRuleRequest struct + Fixed *int64 + Kind *ClientRewardRuleRequestKind + OfferingId *openapi_types.UUID + PerTxnCap *int64 + PerUserDayCap *int64 + RateBps *int + type ClientRewardRuleRequestKind string + const ClientRewardRuleRequestKindAccrual + const ClientRewardRuleRequestKindCashback + func (e ClientRewardRuleRequestKind) Valid() bool + type ClientSale struct + Amount int64 + Commission int64 + CreatedAt time.Time + Fee int64 + Net int64 + OfferingId *openapi_types.UUID + OrderId *openapi_types.UUID + PaymentId openapi_types.UUID + Refunded int64 + Status string + Title *string + type ClientSales struct + Sales []ClientSale + Summary ClientSalesSummary + type ClientSalesSummary struct + Commission int64 + Fees int64 + Gross int64 + Net int64 + Refunded int64 + Sales int64 + Subscribers int64 + type CommissionMode string + const Add + const Deduct + func (e CommissionMode) Valid() bool + type Conversion struct + CashCredited int64 + Id openapi_types.UUID + MinorPerPoint int64 + Points int64 + UserId openapi_types.UUID + type ConvertPointsJSONBody struct + Points int64 + UserId openapi_types.UUID + type ConvertPointsJSONRequestBody ConvertPointsJSONBody + type ConvertPointsParams struct + IdempotencyKeyHeader IdempotencyKeyHeader + type CreateCategoryJSONRequestBody = CategoryInput + type CreateClientRewardRuleJSONRequestBody = ClientRewardRuleRequest + type CreateMerchantJSONRequestBody = CreateMerchantRequest + type CreateMerchantRequest struct + Category *string + ExternalId string + Name string + type CreateMerchantWebhookEndpointJSONRequestBody = CreateWebhookEndpointRequest + type CreateOfferingJSONRequestBody = CreateOfferingRequest + type CreateOfferingRequest struct + Amount *int64 + CategoryId *openapi_types.UUID + Description *string + ImageUrl *string + Interval *CreateOfferingRequestInterval + Kind CreateOfferingRequestKind + Markup *Markup + Metadata *map[string]string + Options *[]string + Title string + Variants *[]VariantInput + type CreateOfferingRequestInterval string + const CreateOfferingRequestIntervalMonthly + const CreateOfferingRequestIntervalWeekly + func (e CreateOfferingRequestInterval) Valid() bool + type CreateOfferingRequestKind string + const CreateOfferingRequestKindItem + const CreateOfferingRequestKindPlan + func (e CreateOfferingRequestKind) Valid() bool + type CreateOrderJSONRequestBody = CreateOrderRequest + type CreateOrderParams struct + IdempotencyKeyHeader IdempotencyKeyHeader + type CreateOrderRequest struct + Lines []OrderLineInput + type CreatePaymentJSONRequestBody = CreatePaymentRequest + type CreatePaymentParams struct + IdempotencyKeyHeader IdempotencyKeyHeader + type CreatePaymentRequest struct + Amount int64 + HoldTtlSeconds *int + LineItems *[]LineItem + MerchantId openapi_types.UUID + Metadata *map[string]string + Mode CreatePaymentRequestMode + PayerUserId openapi_types.UUID + type CreatePaymentRequestMode string + const Authorize + const Instant + func (e CreatePaymentRequestMode) Valid() bool + type CreateRefundJSONRequestBody = CreateRefundRequest + type CreateRefundParams struct + IdempotencyKeyHeader IdempotencyKeyHeader + type CreateRefundRequest struct + Amount int64 + PaymentId openapi_types.UUID + Reason *string + type CreateRewardRuleJSONRequestBody = CreateRewardRuleRequest + type CreateRewardRuleRequest struct + Caps ... + EndsAt *time.Time + Kind CreateRewardRuleRequestKind + Params map[string]interface{} + Scope ... + StartsAt *time.Time + type CreateRewardRuleRequestKind string + const CreateRewardRuleRequestKindAccrual + const CreateRewardRuleRequestKindCashback + const CreateRewardRuleRequestKindConversion + func (e CreateRewardRuleRequestKind) Valid() bool + type CreateSubscriptionJSONRequestBody = CreateSubscriptionRequest + type CreateSubscriptionParams struct + IdempotencyKeyHeader IdempotencyKeyHeader + type CreateSubscriptionRequest struct + Amount int64 + Interval SubscriptionInterval + MerchantId openapi_types.UUID + Metadata *map[string]string + PlanName string + StartAt *time.Time + UserId openapi_types.UUID + type CreateSupportAccessGrantJSONRequestBody = CreateSupportAccessGrantRequest + type CreateSupportAccessGrantRequest struct + ExpiresAt time.Time + Reason string + StaffId string + TicketReference string + type CreateTenantJSONRequestBody = CreateTenantRequest + type CreateTenantRequest struct + Currency string + Name string + type CreateTopupJSONRequestBody = CreateTopupRequest + type CreateTopupParams struct + IdempotencyKeyHeader IdempotencyKeyHeader + type CreateTopupRequest struct + Amount int64 + Gateway string + UserId openapi_types.UUID + type CreateTransferJSONRequestBody = CreateTransferRequest + type CreateTransferParams struct + IdempotencyKeyHeader IdempotencyKeyHeader + type CreateTransferRequest struct + Amount int64 + FromUser openapi_types.UUID + Metadata *map[string]string + Note *string + ToAlias *Alias + ToUser *openapi_types.UUID + type CreateUserJSONRequestBody = CreateUserRequest + type CreateUserRequest struct + DisplayName *string + Email *openapi_types.Email + ExternalId string + Handle *string + Kind *UserKind + Phone *string + type CreateWebhookEndpointJSONRequestBody = CreateWebhookEndpointRequest + type CreateWebhookEndpointRequest struct + EventFilters *[]string + Url string + type Credential interface + Token func(ctx context.Context) (string, error) + func APIKey(key string) Credential + func CredentialFunc(f func(ctx context.Context) (string, error)) Credential + func UserToken(token string) Credential + type CreditLine struct + AccountId openapi_types.UUID + CreditLimit int64 + Previous int64 + UserId openapi_types.UUID + type Cursor = openapi_types.UUID + type EndpointId = openapi_types.UUID + type EntryDirection string + const EntryDirectionCredit + const EntryDirectionDebit + func (e EntryDirection) Valid() bool + type Event struct + ClientID *uuid.UUID + CreatedAt time.Time + Data map[string]json.RawMessage + ID uuid.UUID + TenantID uuid.UUID + Type string + func ParseEvent(body []byte) (Event, error) + func (e Event) Into(key string, v any) error + type ExploreClientDetail struct + Client CatalogClient + Offerings []Offering + type ExploreClientsParams struct + Category *string + Cursor *Cursor + Limit *Limit + Q *string + type ExploreOfferingDetail struct + Client CatalogClient + Offering Offering + type FeePlan struct + CommissionMode CommissionMode + Fees FeeSchedule + type FeeRule struct + Bps int + Flat int64 + MaxFee *int64 + MinFee int64 + type FeeSchedule struct + Commission *FeeRule + P2p *FeeRule + Payment *FeeRule + Payout *FeeRule + Subscription *FeeRule + Topup *FeeRule + type FlowRow struct + Amount int64 + Commodity string + Count int64 + PreviousAmount int64 + PreviousCount int64 + Type string + type FundClientMarketingJSONRequestBody = FundMarketingRequest + type FundClientMarketingParams struct + IdempotencyKeyHeader IdempotencyKeyHeader + type FundMarketingRequest struct + Amount int64 + type FundMarketingResult struct + Amount int64 + TxnId openapi_types.UUID + type GetLedgerMetricsParams struct + Window *GetLedgerMetricsParamsWindow + type GetLedgerMetricsParamsWindow string + const N24h + const N30d + const N7d + const N90d + func (e GetLedgerMetricsParamsWindow) Valid() bool + type GetMerchantStatementParams struct + Limit *int + Since *time.Time + type Health struct + Status HealthStatus + type HealthStatus string + const Ok + func (e HealthStatus) Valid() bool + type IdempotencyKey string + func NewIdempotencyKey() IdempotencyKey + func (k IdempotencyKey) String() string + type IdempotencyKeyHeader = string + type ImportId = openapi_types.UUID + type InventoryMovement struct + ActorId *string + ActorType *string + CreatedAt time.Time + Id openapi_types.UUID + Kind InventoryMovementKind + OnHandAfter int64 + OrderId *openapi_types.UUID + Quantity int64 + Reason *string + ReservedAfter int64 + VariantId openapi_types.UUID + type InventoryMovementKind string + const InventoryMovementKindAdjustment + const InventoryMovementKindImport + const InventoryMovementKindRelease + const InventoryMovementKindReservation + const InventoryMovementKindRestock + const InventoryMovementKindSale + func (e InventoryMovementKind) Valid() bool + type IssueMerchantApiKeyJSONRequestBody = IssueMerchantApiKeyRequest + type IssueMerchantApiKeyRequest struct + Env *IssueMerchantApiKeyRequestEnv + Name string + type IssueMerchantApiKeyRequestEnv string + const IssueMerchantApiKeyRequestEnvLive + const IssueMerchantApiKeyRequestEnvSandbox + func (e IssueMerchantApiKeyRequestEnv) Valid() bool + type IssuedMerchantApiKey struct + Key MerchantApiKey + Token string + type Iterator struct + func (it *Iterator[T]) All(ctx context.Context) iter.Seq2[T, error] + func (it *Iterator[T]) Collect(ctx context.Context) ([]T, error) + func (it *Iterator[T]) Err() error + func (it *Iterator[T]) Item() T + func (it *Iterator[T]) Next(ctx context.Context) bool + func (it *Iterator[T]) PageSize(n int) *Iterator[T] + type KeyId = openapi_types.UUID + type LedgerMetrics struct + AsOf time.Time + Bucket LedgerMetricsBucket + Currency string + Flows []FlowRow + From time.Time + Operations OperationsSummary + Position PositionSummary + Reconciliation []ReconciliationRow + Revenue RevenueSummary + Series []SeriesPoint + To time.Time + TopMerchants []MerchantVolume + Window string + type LedgerMetricsBucket string + const Day + const Hour + func (e LedgerMetricsBucket) Valid() bool + type LedgerSummary struct + Currency string + FeePlan FeePlan + Rows []SummaryRow + type Limit = int + type LineItem struct + Amount int64 + Name string + type ListAuditLogParams struct + Action *string + Cursor *int64 + Limit *Limit + type ListCatalogImportRowsParams struct + Action *ListCatalogImportRowsParamsAction + After *int + Limit *int + type ListCatalogImportRowsParamsAction string + const ListCatalogImportRowsParamsActionCreate + const ListCatalogImportRowsParamsActionError + const ListCatalogImportRowsParamsActionUpdate + func (e ListCatalogImportRowsParamsAction) Valid() bool + type ListCatalogImportsParams struct + Cursor *Cursor + Limit *Limit + type ListClientOfferingsParams struct + CategoryId *openapi_types.UUID + Cursor *Cursor + Limit *Limit + LowStock *bool + Q *string + Status *ListClientOfferingsParamsStatus + type ListClientOfferingsParamsStatus string + const ListClientOfferingsParamsStatusArchived + const ListClientOfferingsParamsStatusDraft + const ListClientOfferingsParamsStatusPublished + func (e ListClientOfferingsParamsStatus) Valid() bool + type ListClientOrdersParams struct + Cursor *Cursor + Limit *Limit + Status *ListClientOrdersParamsStatus + type ListClientOrdersParamsStatus string + const ListClientOrdersParamsStatusCanceled + const ListClientOrdersParamsStatusExpired + const ListClientOrdersParamsStatusOpen + const ListClientOrdersParamsStatusPaid + const ListClientOrdersParamsStatusPaying + func (e ListClientOrdersParamsStatus) Valid() bool + type ListClientPayoutsParams struct + Limit *Limit + type ListClientSalesParams struct + Cursor *Cursor + Limit *Limit + type ListClientsParams struct + Limit *Limit + Status *CatalogClientStatus + type ListInventoryMovementsParams struct + Cursor *Cursor + Limit *Limit + VariantId *openapi_types.UUID + type ListMerchantWebhookDeliveriesParams struct + Cursor *Cursor + EndpointId *openapi_types.UUID + Limit *Limit + type ListOrdersParams struct + Cursor *Cursor + Limit *Limit + type ListPlatformClientsParams struct + Cursor *Cursor + Limit *Limit + Status *CatalogClientStatus + TenantId *TenantFilter + type ListPlatformSubscriptionsParams struct + Cursor *Cursor + Limit *Limit + Status *SubscriptionStatus + TenantId *TenantFilter + type ListPlatformTransactionsParams struct + Cursor *Cursor + Limit *Limit + TenantId *TenantFilter + Type *string + type ListPlatformUsersParams struct + Cursor *Cursor + Limit *Limit + Query *string + TenantId *TenantFilter + type ListPriceHistoryParams struct + Cursor *Cursor + Limit *Limit + OfferingId *openapi_types.UUID + type ListSubscriptionsParams struct + Cursor *Cursor + Limit *Limit + Status *SubscriptionStatus + UserId *openapi_types.UUID + type ListSupportAccessGrantsParams struct + Limit *Limit + type ListTransactionsParams struct + Cursor *Cursor + Limit *Limit + Type *string + type ListUserRewardsParams struct + Limit *int + type ListUserTransactionsParams struct + Cursor *Cursor + Limit *Limit + type ListUsersParams struct + Cursor *Cursor + Limit *Limit + Query *string + type ListWebhookDeliveriesParams struct + Cursor *Cursor + EndpointId *openapi_types.UUID + Limit *Limit + type ListWebhookEventsParams struct + Limit *int + Since *time.Time + Type *string + type MarketingView struct + MarketingBalance int64 + SettlementBalance int64 + type Markup struct + Kind MarkupKind + Value int64 + type MarkupKind string + const Fixed + const Percent + func (e MarkupKind) Valid() bool + type Merchant struct + Category *string + CreatedAt time.Time + ExternalId string + Id openapi_types.UUID + Name string + Status string + type MerchantApiKey struct + CreatedAt time.Time + Env MerchantApiKeyEnv + ExpiresAt *time.Time + Id openapi_types.UUID + LastUsedAt *time.Time + Name string + Scopes []string + Status MerchantApiKeyStatus + type MerchantApiKeyEnv string + const MerchantApiKeyEnvLive + const MerchantApiKeyEnvSandbox + func (e MerchantApiKeyEnv) Valid() bool + type MerchantApiKeyStatus string + const MerchantApiKeyStatusActive + const MerchantApiKeyStatusRevoked + func (e MerchantApiKeyStatus) Valid() bool + type MerchantId = openapi_types.UUID + type MerchantVolume struct + Amount int64 + Count int64 + MerchantId openapi_types.UUID + Name string + type Offering struct + Amount int64 + CategoryId *openapi_types.UUID + ClientId openapi_types.UUID + CommissionBps *int + CreatedAt time.Time + Description *string + Id openapi_types.UUID + ImageUrl *string + Interval *OfferingInterval + Kind OfferingKind + Markup *Markup + Metadata *map[string]string + Options []string + Status OfferingStatus + Title string + UpdatedAt time.Time + Variants []Variant + type OfferingFilter struct + CategoryID *uuid.UUID + LowStock bool + Query string + Status string + type OfferingId = openapi_types.UUID + type OfferingInterval string + const OfferingIntervalMonthly + const OfferingIntervalWeekly + func (e OfferingInterval) Valid() bool + type OfferingKind string + const OfferingKindItem + const OfferingKindPlan + func (e OfferingKind) Valid() bool + type OfferingPage struct + NextCursor *openapi_types.UUID + Offerings []Offering + type OfferingStatus string + const OfferingStatusArchived + const OfferingStatusDraft + const OfferingStatusPublished + func (e OfferingStatus) Valid() bool + type OnboardClientJSONRequestBody = OnboardClientRequest + type OnboardClientRequest struct + Category *string + Description *string + DisplayName string + LogoUrl *string + type OperationsSummary struct + AwaitingCapture int64 + AwaitingCaptureAmount int64 + HoldsExpiring24h int64 + Payouts int64 + PayoutsAmount int64 + Refunds int64 + RefundsAmount int64 + SubscriptionsActive int64 + SubscriptionsDue30dAmount int64 + SubscriptionsMrr int64 + SubscriptionsPastDue int64 + SubscriptionsPastDueAmount int64 + TopupSuccessBps int + TopupsFailed int64 + TopupsPending int64 + TopupsSucceeded int64 + WebhookFailures int64 + type Option func(*Client) + func WithHTTPClient(h *http.Client) Option + func WithRetryPolicy(p RetryPolicy) Option + func WithUserAgent(ua string) Option + func WithoutRetries() Option + type Order struct + ClientId openapi_types.UUID + Commission int64 + CreatedAt time.Time + ExpiresAt time.Time + Id openapi_types.UUID + Lines []OrderLine + MerchantId openapi_types.UUID + PaymentId *openapi_types.UUID + RestockedAt *time.Time + Status OrderStatus + Subtotal int64 + Total int64 + UpdatedAt time.Time + UserId openapi_types.UUID + type OrderId = openapi_types.UUID + type OrderLine struct + Commission int64 + Id openapi_types.UUID + LineAmount int64 + OfferingId openapi_types.UUID + Quantity int64 + Sku *string + Title string + UnitAmount int64 + VariantId openapi_types.UUID + VariantTitle *string + type OrderLineInput struct + Quantity int64 + VariantId openapi_types.UUID + type OrderPayment struct + Order Order + Payment Payment + type OrderStatus string + const OrderStatusCanceled + const OrderStatusExpired + const OrderStatusOpen + const OrderStatusPaid + const OrderStatusPaying + func (e OrderStatus) Valid() bool + type PageIterator struct + func (p *PageIterator[T]) All(ctx context.Context) iter.Seq2[T, error] + func (p *PageIterator[T]) Collect(ctx context.Context) ([]T, error) + func (p *PageIterator[T]) Err() error + func (p *PageIterator[T]) Item() T + func (p *PageIterator[T]) Next(ctx context.Context) bool + func (p *PageIterator[T]) PageSize(n int) *PageIterator[T] + type Payment struct + Amount int64 + CapturedAmount int64 + Commission int64 + CreatedAt time.Time + Fee int64 + HoldExpiresAt *time.Time + Id openapi_types.UUID + LineItems *[]LineItem + MerchantId openapi_types.UUID + Mode string + PayerUserId openapi_types.UUID + RefundedAmount int64 + Status PaymentStatus + type PaymentId = openapi_types.UUID + type PaymentStatus string + const PaymentStatusCaptured + const PaymentStatusExpired + const PaymentStatusRequiresCapture + const PaymentStatusVoided + func (e PaymentStatus) Valid() bool + type Payout struct + Amount int64 + CreatedAt time.Time + ExternalRef *string + Fee int64 + Id openapi_types.UUID + MerchantId openapi_types.UUID + Rail string + Status PayoutStatus + TxnId openapi_types.UUID + type PayoutStatus string + const Completed + const PendingTransfer + func (e PayoutStatus) Valid() bool + type PlatformClient struct + ApprovedAt *time.Time + Category *string + CreatedAt time.Time + DisplayName string + Id openapi_types.UUID + MerchantId openapi_types.UUID + OrgAlias string + Status CatalogClientStatus + TenantId openapi_types.UUID + TenantName string + type PlatformOverview struct + AsOf time.Time + Tenants []PlatformTenantRow + Totals []PlatformTotal + type PlatformSubscription struct + Amount int64 + CreatedAt time.Time + Currency string + Id openapi_types.UUID + Interval SubscriptionInterval + MerchantId openapi_types.UUID + NextChargeAt time.Time + PlanName string + RetryCount int + Status SubscriptionStatus + TenantId openapi_types.UUID + TenantName string + UserId openapi_types.UUID + type PlatformTenantRow struct + Balanced bool + MerchantSettlement int64 + SubscriptionsActive int64 + Tenant Tenant + Transactions30d int64 + Treasury int64 + UserCash int64 + Users int64 + Volume30d int64 + type PlatformTotal struct + Currency string + MerchantSettlement int64 + Tenants int64 + Transactions30d int64 + Treasury int64 + UserCash int64 + Users int64 + Volume30d int64 + type PlatformTransaction struct + CreatedAt time.Time + Id openapi_types.UUID + Legs []TransactionLeg + Metadata *map[string]string + Status string + TenantId openapi_types.UUID + TenantName string + Type string + type PlatformUser struct + CreatedAt time.Time + DisplayName *string + ExternalId string + Handle *string + Id openapi_types.UUID + Kind UserKind + Status string + TenantId openapi_types.UUID + TenantName string + type PositionSummary struct + ActiveWallets int64 + CreditExtended int64 + CreditGranted int64 + Fees int64 + FundedWallets int64 + FundsHeld int64 + MarketingDrawn int64 + MarketingPots int64 + MerchantSettlement int64 + PointsOutstanding int64 + Suspense int64 + Treasury int64 + UserCash int64 + type PriceChange struct + ActorId *string + ActorType *string + CreatedAt time.Time + Id openapi_types.UUID + NewAmount int64 + OfferingId openapi_types.UUID + OldAmount *int64 + Source PriceChangeSource + VariantId openapi_types.UUID + type PriceChangeSource string + const PriceChangeSourceImport + const PriceChangeSourceManual + const PriceChangeSourceMarkup + func (e PriceChangeSource) Valid() bool + type Pricing struct + Markup *Markup + RepricedVariants *int + Rounding Rounding + type Problem struct + Code string + Detail *string + Status int + Title string + Type *string + func AsProblem(err error) (*Problem, bool) + func (p *Problem) Error() string + func (p *Problem) Message() string + func (p *Problem) Unwrap() []error + type PurchaseOfferingParams struct + IdempotencyKeyHeader IdempotencyKeyHeader + type ReconciliationRow struct + Accounts int64 + Balanced bool + Commodity string + Net int64 + type Refund struct + Amount int64 + CreatedAt time.Time + Id openapi_types.UUID + PaymentId openapi_types.UUID + Reason *string + Status string + type RetryPolicy struct + BaseDelay time.Duration + MaxAttempts int + MaxDelay time.Duration + type RevenueSummary struct + FeesEarned int64 + MoneyIn int64 + MoneyOut int64 + PaymentVolume int64 + PointsIssued int64 + PointsRedeemed int64 + PreviousFeesEarned int64 + RewardsPaid int64 + TakeRateBps int + type RewardGrant struct + Amount int64 + CreatedAt time.Time + Id openapi_types.UUID + Kind string + RuleId openapi_types.UUID + SourceTxn openapi_types.UUID + TxnId openapi_types.UUID + UserId openapi_types.UUID + type RewardRule struct + Caps *map[string]interface{} + CreatedAt time.Time + DisabledAt *time.Time + EndsAt *time.Time + Id openapi_types.UUID + Kind string + Params map[string]interface{} + Scope *map[string]interface{} + StartsAt *time.Time + Status string + Version int + type Rounding struct + Increment int64 + Offset int64 + type RunClientPayoutJSONBody struct + Amount *int64 + type RunClientPayoutJSONRequestBody RunClientPayoutJSONBody + type RunClientPayoutParams struct + IdempotencyKeyHeader IdempotencyKeyHeader + type SeriesPoint struct + Amount int64 + ByType map[string]int64 + Count int64 + Start time.Time + type SetClientCommissionJSONRequestBody = SetClientCommissionRequest + type SetClientCommissionRequest struct + CommissionBps *int + type SetClientPricingJSONRequestBody = Pricing + type SetCreditLimitRequest struct + CreditLimit int64 + type SetTierLimitsJSONRequestBody = SetTierLimitsRequest + type SetTierLimitsRequest struct + MaxBalance *int64 + P2pPerDay *int64 + Tier string + TopupPerDay *int64 + type SetUserCreditLimitJSONRequestBody = SetCreditLimitRequest + type SetUserTierJSONBody struct + Tier string + type SetUserTierJSONRequestBody SetUserTierJSONBody + type StartCatalogImportMultipartBody struct + File openapi_types.File + Images *openapi_types.File + type StartCatalogImportMultipartRequestBody StartCatalogImportMultipartBody + type StatementEntry struct + Amount int64 + Commodity string + CreatedAt time.Time + Direction StatementEntryDirection + TxnId openapi_types.UUID + TxnType string + type StatementEntryDirection string + const StatementEntryDirectionCredit + const StatementEntryDirectionDebit + func (e StatementEntryDirection) Valid() bool + type StockAdjustmentRequest struct + Delta *int64 + Reason *string + SetTo *int64 + type StockAdjustmentResult struct + Movement InventoryMovement + Variant Variant + type SubscribeOfferingParams struct + IdempotencyKeyHeader IdempotencyKeyHeader + type Subscription struct + Amount int64 + Commission int64 + CreatedAt time.Time + Id openapi_types.UUID + Interval SubscriptionInterval + MerchantId openapi_types.UUID + Metadata *map[string]string + NextChargeAt time.Time + PlanName string + RetryCount int + Status SubscriptionStatus + UserId openapi_types.UUID + type SubscriptionId = openapi_types.UUID + type SubscriptionInterval string + const SubscriptionIntervalMonthly + const SubscriptionIntervalWeekly + func (e SubscriptionInterval) Valid() bool + type SubscriptionStatus string + const SubscriptionStatusActive + const SubscriptionStatusCanceled + const SubscriptionStatusPastDue + const SubscriptionStatusPaused + func (e SubscriptionStatus) Valid() bool + type SummaryRow struct + Accounts int64 + Balance int64 + Commodity string + OwnerType string + Purpose string + type SupportAccessGrant struct + CreatedAt time.Time + CreatedById string + CreatedByType string + ExpiresAt time.Time + Id openapi_types.UUID + Reason string + RevokedAt *time.Time + RevokedById *string + RevokedByType *string + StaffId string + TenantId openapi_types.UUID + TicketReference string + type Tenant struct + CommissionMode CommissionMode + CreatedAt time.Time + Currency string + Fees FeeSchedule + Id openapi_types.UUID + Name string + Status string + type TenantFilter = openapi_types.UUID + type TenantSummary struct + InvariantsOk bool + Rows []SummaryRow + Tenant Tenant + Violations *[]string + type TierLimits struct + MaxBalance int64 + P2pPerDay int64 + Tier string + TopupPerDay int64 + UpdatedAt time.Time + type Topup struct + Amount int64 + ClientSecret *string + CreatedAt time.Time + Gateway string + Id openapi_types.UUID + NextAction *TopupNextAction + Status TopupStatus + UserId openapi_types.UUID + type TopupMethod struct + Currencies *[]string + Flow TopupMethodFlow + Gateway string + type TopupMethodFlow string + const TopupMethodFlowClientSecret + const TopupMethodFlowDev + const TopupMethodFlowRedirect + func (e TopupMethodFlow) Valid() bool + type TopupNextAction struct + ClientSecret *string + Kind TopupNextActionKind + RedirectUrl *string + type TopupNextActionKind string + const TopupNextActionKindClientSecret + const TopupNextActionKindRedirect + func (e TopupNextActionKind) Valid() bool + type TopupStatus string + const TopupStatusAmountMismatch + const TopupStatusCreated + const TopupStatusExpired + const TopupStatusFailed + const TopupStatusProcessing + const TopupStatusSucceeded + func (e TopupStatus) Valid() bool + type Transaction struct + CreatedAt time.Time + Id openapi_types.UUID + Legs []TransactionLeg + Metadata *map[string]string + Status string + Type string + type TransactionLeg struct + Amount int64 + Commodity string + Direction EntryDirection + OwnerId *openapi_types.UUID + OwnerType string + Purpose string + type Transfer struct + Amount int64 + CreatedAt time.Time + Fee int64 + FromUser openapi_types.UUID + Id openapi_types.UUID + Note *string + Status string + ToUser openapi_types.UUID + type UpdateCategoryJSONRequestBody = CategoryInput + type UpdateClientProfileJSONRequestBody = ClientProfileRequest + type UpdateFeePlanJSONRequestBody = UpdateFeePlanRequest + type UpdateFeePlanRequest struct + CommissionMode *CommissionMode + Fees *FeeSchedule + type UpdateOfferingJSONRequestBody = UpdateOfferingRequest + type UpdateOfferingRequest struct + Amount *int64 + CategoryId *openapi_types.UUID + Description *string + ImageUrl *string + Markup *Markup + Metadata *map[string]string + Options *[]string + Title string + type UpdateVariantJSONRequestBody = VariantInput + type User struct + CreatedAt time.Time + DisplayName *string + Email *openapi_types.Email + ExternalId string + Handle *string + Id openapi_types.UUID + Kind UserKind + Phone *string + Status string + type UserBalance struct + Available int64 + Balance int64 + Commodity string + Held int64 + Purpose string + type UserId = openapi_types.UUID + type UserKind string + const Business + const Consumer + func (e UserKind) Valid() bool + type UserTransaction struct + Amount int64 + Commodity string + CreatedAt time.Time + Direction EntryDirection + Purpose string + TxnId openapi_types.UUID + TxnType string + type Variant struct + Amount int64 + Barcode *string + CostAmount *int64 + CreatedAt time.Time + Id openapi_types.UUID + ImageUrl *string + Inventory VariantInventory + Markup *Markup + OfferingId openapi_types.UUID + OptionValues []string + Position int + PricingMode *VariantPricingMode + Sku *string + Status VariantStatus + UpdatedAt time.Time + type VariantId = openapi_types.UUID + type VariantInput struct + AllowBackorder *bool + Amount *int64 + Barcode *string + CostAmount *int64 + ImageUrl *string + InitialStock *int64 + LowStockThreshold *int64 + Markup *Markup + OptionValues *[]string + Position *int + PricingMode *VariantInputPricingMode + Sku *string + TrackInventory *bool + type VariantInputPricingMode string + const VariantInputPricingModeCostPlus + const VariantInputPricingModeManual + func (e VariantInputPricingMode) Valid() bool + type VariantInventory struct + AllowBackorder *bool + Available *int64 + InStock bool + LowStock bool + LowStockThreshold *int64 + OnHand *int64 + Reserved *int64 + TrackInventory bool + type VariantPricingMode string + const VariantPricingModeCostPlus + const VariantPricingModeManual + func (e VariantPricingMode) Valid() bool + type VariantStatus string + const VariantStatusActive + const VariantStatusArchived + func (e VariantStatus) Valid() bool + type WebhookDelivery struct + Attempt int + CreatedAt time.Time + EndpointId openapi_types.UUID + Error *string + EventId openapi_types.UUID + EventType string + Id openapi_types.UUID + ResponseCode *int + Status string + type WebhookEndpoint struct + ClientId *openapi_types.UUID + CreatedAt time.Time + EventFilters []string + Id openapi_types.UUID + Secret *string + Status string + Url string + type WebhookEvent struct + CreatedAt time.Time + Data map[string]interface{} + Id openapi_types.UUID + Type string