balancepush_gocardless

package module
v0.0.0-...-7539d0b Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2025 License: BSD-2-Clause Imports: 6 Imported by: 2 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

balancepush-gocardless

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountData

type AccountData struct {
	Account AccountDetails `json:"account"`
}

type AccountDetails

type AccountDetails struct {
	ResourceID      string `json:"resourceId"`
	IBAN            string `json:"iban"`
	Currency        string `json:"currency"`
	OwnerName       string `json:"ownerName"`
	Name            string `json:"name"`
	Product         string `json:"product"`
	CashAccountType string `json:"cashAccountType"`
}

type AgreementData

type AgreementData struct {
	ID                 string    `json:"id"`
	Created            time.Time `json:"created"`
	MaxHistoricalDays  int       `json:"max_historical_days"`
	AccessValidForDays int       `json:"access_valid_for_days"`
	AccessScope        []string  `json:"access_scope"`
	Accepted           string    `json:"accepted"`
	InstitutionID      string    `json:"institution_id"`
}

type Balance

type Balance struct {
	BalanceAmount BalanceAmount `json:"balanceAmount"`
	BalanceType   string        `json:"balanceType"`
	ReferenceDate string        `json:"referenceDate"`
}

type BalanceAmount

type BalanceAmount struct {
	Amount   string `json:"amount"`
	Currency string `json:"currency"`
}

type BalanceData

type BalanceData struct {
	Balances []Balance `json:"balances"`
}

type GoCardlessClient

type GoCardlessClient struct {
	// contains filtered or unexported fields
}

func NewGoCardlessClient

func NewGoCardlessClient(secretID, secretKey string) (*GoCardlessClient, error)

NewGoCardlessClient initializes the API client with authentication

func (*GoCardlessClient) CreateRequisition

func (gc *GoCardlessClient) CreateRequisition(institution string, agreementID string) (Requisition, error)

func (*GoCardlessClient) GetAccountBalance

func (gc *GoCardlessClient) GetAccountBalance(accountID string, balanceType string) (float64, string, string, error)

func (*GoCardlessClient) GetAgreement

func (gc *GoCardlessClient) GetAgreement(institutionID string) (string, error)

func (*GoCardlessClient) GetInstitutions

func (gc *GoCardlessClient) GetInstitutions() ([]Institution, error)

func (*GoCardlessClient) GetRequisition

func (gc *GoCardlessClient) GetRequisition(id string) (Requisition, error)

func (*GoCardlessClient) R

func (gc *GoCardlessClient) R() *resty.Request

type Institution

type Institution struct {
	ID                    string   `json:"id"`
	Name                  string   `json:"name"`
	BIC                   string   `json:"bic"`
	TransactionTotalDays  string   `json:"transaction_total_days"`
	Countries             []string `json:"countries"`
	IdentificationCodes   []string `json:"identification_codes"`
	MaxAccessValidForDays string   `json:"max_access_valid_for_days"`
}

type Requisition

type Requisition struct {
	ID                string    `json:"id"`
	Created           time.Time `json:"created"`
	Redirect          string    `json:"redirect"`
	Status            string    `json:"status"`
	InstitutionID     string    `json:"institution_id"`
	Agreement         string    `json:"agreement"`
	Reference         string    `json:"reference"`
	Accounts          []string  `json:"accounts"`
	UserLanguage      string    `json:"user_language"`
	Link              string    `json:"link"`
	SSN               string    `json:"ssn"`
	AccountSelection  bool      `json:"account_selection"`
	RedirectImmediate bool      `json:"redirect_immediate"`
}

Jump to

Keyboard shortcuts

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