jenga

package module
v0.1.30 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 5 Imported by: 0

README

jenga-go

Go library for interacting with the Equity Bank Jenga APIs https://developer.jengaapi.io

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccessToken

func GetAccessToken(apikey, username, password, environment string) (map[string]interface{}, error)

Types

type JengaImpl

type JengaImpl struct {
	BaseURL string
	Token   string
	KeyPath string
}

func NewJenga

func NewJenga(accessToken, environment, keyPath string) (*JengaImpl, error)

func (*JengaImpl) GetAccountBalance

func (j *JengaImpl) GetAccountBalance(account, countryCode string) (map[string]interface{}, error)

GetAccountBalance - fetches account balance from the Jenga HQ API Accepts account and country code and returns a map[string]interface{} and or an error

func (*JengaImpl) GetAccountDetails

func (j *JengaImpl) GetAccountDetails(account, countryCode string) (map[string]interface{}, error)

GetAccountDetails - fetches the the details of an account (Account Inquiry) Accepts account and country code and returns a map[string]interface{} and or an error

func (*JengaImpl) GetFullStatement

func (j *JengaImpl) GetFullStatement(account, countryCode, fromDate, toDate string, limit int) (map[string]interface{}, error)

GetFullStatement - fetches the full statement from the Jenga HQ API Current implementation only accepts account, countryCode, from date, to date and the limit. From and To Dates should be in the ISO 8601 format i.e. YYYY-MM-DD Other paramaters to be added later.

func (*JengaImpl) GetMiniStatement

func (j *JengaImpl) GetMiniStatement(account, countryCode string) (map[string]interface{}, error)

GetMiniStatement - fetches the mini statement from the Jenga HQ API Accepts account and country code and returns a map[string]interface{} and or an error

func (*JengaImpl) GetOpenAndCloseBalance

func (j *JengaImpl) GetOpenAndCloseBalance(account, countryCode, date string) (map[string]interface{}, error)

GetOpenAndCloseBalance - fetches the full statement from the Jenga HQ API Accepts account, countryCode and date. Date should be in the ISO 8601 format i.e. YYYY-MM-DD

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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