bni

package module
v0.0.0-...-a4800a5 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2020 License: MIT Imports: 22 Imported by: 0

README

bni-api-mgmt

BNI API Management

Documentation

Index

Constants

View Source
const (
	AuthPath              string = "/api/oauth/token"
	BalancePath           string = "/H2H/getbalance"
	InHouseInquiryPath    string = "/H2H/getinhouseinquiry"
	InterBankInquiryPath  string = "/H2H/getinterbankinquiry"
	PaymentStatusPath     string = "/H2H/getpaymentstatus"
	InHouseTransferPath   string = "/H2H/dopayment"
	InterBankTransferPath string = "/H2H/getinterbankpayment"
)
View Source
const (
	BalanceRequest            = "BALANCE_REQUEST"
	BalanceResponse           = "BALANCE_RESPONSE"
	InHouseInquiryRequest     = "IN_HOUSE_INQUIRY_REQUEST"
	InHouseInquiryResponse    = "IN_HOUSE_INQUIRY_RESPONSE"
	InterBankInquiryRequest   = "INTER_BANK_INQUIRY_REQUEST"
	InterBankInquiryResponse  = "INTER_BANK_INQUIRY_RESPONSE"
	FeeTransferRequest        = "FEE_TRANSFER_REQUEST"
	FeeTransferResponse       = "FEE_TRANSFER_RESPONSE"
	InHouseTransferRequest    = "IN_HOUSE_TRANSFER_REQUEST"
	InHouseTransferResponse   = "IN_HOUSE_TRANSFER_RESPONSE"
	InterBankTransferRequest  = "INTER_BANK_TRANSFER_REQUEST"
	InterBankTransferResponse = "INTER_BANK_TRANSFER_RESPONSE"
	PaymentStatusRequest      = "PAYMENT_STATUS_REQUEST"
	PaymentStatusResponse     = "PAYMENT_STATUS_RESPONSE"
)

Variables

View Source
var BadResponseError error = errors.New("Bad response")
View Source
var ErrUnauthorized = errors.New("Err StatusUnauthorized")

Functions

This section is empty.

Types

type API

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

type BNI

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

func New

func New(config config.Config) *BNI

func (*BNI) DoAuthentication

func (b *BNI) DoAuthentication(ctx context.Context) (*dto.GetTokenResponse, error)

func (*BNI) DoPayment

func (b *BNI) DoPayment(ctx context.Context, dtoReq *dto.DoPaymentRequest) (*dto.DoPaymentResponse, error)

func (*BNI) GetBalance

func (b *BNI) GetBalance(ctx context.Context, dtoReq *dto.GetBalanceRequest) (*dto.GetBalanceResponse, error)

func (*BNI) GetInHouseInquiry

func (b *BNI) GetInHouseInquiry(ctx context.Context, dtoReq *dto.GetInHouseInquiryRequest) (*dto.GetInHouseInquiryResponse, error)

func (*BNI) GetInterBankInquiry

func (b *BNI) GetInterBankInquiry(ctx context.Context, dtoReq *dto.GetInterBankInquiryRequest) (*dto.GetInterBankInquiryResponse, error)

func (*BNI) GetInterBankPayment

func (b *BNI) GetInterBankPayment(ctx context.Context, dtoReq *dto.GetInterBankPaymentRequest) (*dto.GetInterBankPaymentResponse, error)

func (*BNI) GetPaymentStatus

func (b *BNI) GetPaymentStatus(ctx context.Context, dtoReq *dto.GetPaymentStatusRequest) (*dto.GetPaymentStatusResponse, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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