Documentation ¶
Index ¶
- Constants
- Variables
- type API
- type BNI
- func (b *BNI) DoAuthentication(ctx context.Context) (*dto.GetTokenResponse, error)
- func (b *BNI) DoPayment(ctx context.Context, dtoReq *dto.DoPaymentRequest) (*dto.DoPaymentResponse, error)
- func (b *BNI) GetBalance(ctx context.Context, dtoReq *dto.GetBalanceRequest) (*dto.GetBalanceResponse, error)
- func (b *BNI) GetInHouseInquiry(ctx context.Context, dtoReq *dto.GetInHouseInquiryRequest) (*dto.GetInHouseInquiryResponse, error)
- func (b *BNI) GetInterBankInquiry(ctx context.Context, dtoReq *dto.GetInterBankInquiryRequest) (*dto.GetInterBankInquiryResponse, error)
- func (b *BNI) GetInterBankPayment(ctx context.Context, dtoReq *dto.GetInterBankPaymentRequest) (*dto.GetInterBankPaymentResponse, error)
- func (b *BNI) GetPaymentStatus(ctx context.Context, dtoReq *dto.GetPaymentStatusRequest) (*dto.GetPaymentStatusResponse, error)
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")
Functions ¶
This section is empty.
Types ¶
type BNI ¶
type BNI struct {
// contains filtered or unexported fields
}
func (*BNI) DoAuthentication ¶
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)
Click to show internal directories.
Click to hide internal directories.