braintree

package
v0.0.0-...-530963e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2026 License: MIT Imports: 22 Imported by: 0

README

Braintree connector

Supported Objects

Below is an exhaustive list of objects & methods supported on the objects

Object Resource Method
customers customers read
transactions transactions read
refunds refunds read
disputes disputes read
verifications verifications read
merchantAccounts merchantAccounts read
inStoreLocations inStoreLocations read
inStoreReaders inStoreReaders read
businessAccountCreationRequests businessAccountCreationRequests read
payments payments read

Incremental Read

Below objects support incremental read via createdAt filter:

  • customers
  • transactions
  • refunds
  • disputes
  • verifications
  • payments

Note: The following objects do not support time-based filtering:

  • merchantAccounts
  • inStoreLocations
  • inStoreReaders
  • businessAccountCreationRequests

Known Limitations

  • Incremental reads use createdAt: Braintree's GraphQL Search API only exposes createdAt as a timestamp filter. Updates to existing records will not be captured via incremental reads.
  • paymentMethods embedded in customers: Payment methods are returned as a nested field within the customers object, as they cannot be searched independently in Braintree's GraphQL API.
  • payments is a unified view: The payments object returns both transactions and refunds. Consider using transactions and refunds separately for more specific queries.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector struct {
	// Basic connector
	*components.Connector

	// Require authenticated client
	common.RequireAuthenticatedClient

	// Supported operations
	components.SchemaProvider
	components.Reader
	components.Writer
}

func NewConnector

func NewConnector(params common.ConnectorParams) (*Connector, error)

type EnumValue

type EnumValue struct {
	Name string `json:"name"`
}

EnumValue represents a possible value for an enum type.

type Field

type Field struct {
	Name string   `json:"name"`
	Type TypeInfo `json:"type"`
}

Field represents a field in the GraphQL schema.

type GraphQLError

type GraphQLError struct {
	Message    string                 `json:"message"`
	Locations  []GraphQLErrorLocation `json:"locations,omitempty"`
	Path       []string               `json:"path,omitempty"`
	Extensions map[string]any         `json:"extensions,omitempty"`
}

GraphQLError represents an error in the GraphQL response.

type GraphQLErrorLocation

type GraphQLErrorLocation struct {
	Line   int `json:"line"`
	Column int `json:"column"`
}

GraphQLErrorLocation represents the location of an error in a GraphQL query.

type MetadataResponse

type MetadataResponse struct {
	Data struct {
		Type TypeMetadata `json:"__type"`
	} `json:"data"`
}

MetadataResponse represents the response structure for metadata queries.

type OfTypeInfo

type OfTypeInfo struct {
	Name       string      `json:"name"`
	Kind       TypeKind    `json:"kind"`
	OfType     *OfTypeInfo `json:"ofType"`
	EnumValues []EnumValue `json:"enumValues"`
}

OfTypeInfo represents the nested type information for wrapped types.

type ResponseError

type ResponseError struct {
	Errors []GraphQLError `json:"errors,omitempty"`
}

ResponseError represents the error structure in GraphQL responses.

func (ResponseError) CombineErr

func (r ResponseError) CombineErr(base error) error

type TypeInfo

type TypeInfo struct {
	Name       string      `json:"name"`
	Kind       TypeKind    `json:"kind"`
	OfType     *OfTypeInfo `json:"ofType"`
	EnumValues []EnumValue `json:"enumValues"`
}

TypeInfo represents the type information in the GraphQL schema.

type TypeKind

type TypeKind string

TypeKind represents the kind of a GraphQL type.

const (
	KindScalar  TypeKind = "SCALAR"
	KindObject  TypeKind = "OBJECT"
	KindNonNull TypeKind = "NON_NULL"
	KindList    TypeKind = "LIST"
	KindEnum    TypeKind = "ENUM"
)

type TypeMetadata

type TypeMetadata struct {
	Name   string  `json:"name"`
	Fields []Field `json:"fields"`
}

TypeMetadata represents the type metadata in the GraphQL schema.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL