identitymind

package module
v0.0.0-...-2eee10d Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2020 License: MIT Imports: 15 Imported by: 0

README

IdentityMind Golang SDK

This repository contains a Golang implementation of the IdentityMind API (see https://edoc.identitymind.com/reference).

The package is not yet feature complete. A list of supported APIs will be documented here.

Installation

go get github.com/kthomas/identitymind-golang

Ideally, you should use a package manager such as glide, in which case you can run glide get github.com/kthomas/identitymind-golang.

Supported APIs

The following IdentityMind APIs are currently supported by this package:

Transactions

Not yet supported.

Transaction Monitoring

Not yet supported.

Transaction Feedback

Not yet supported

Data Retrieval

Documentation forthcoming.

KYC

Documentation forthcoming.

KYB

Documentation forthcoming.

Cases

Documentation forthcoming.

Anti-Fraud

Documentation forthcoming.

Sanctions

Not yet supported.

Documentation

Index

Constants

View Source
const IdentityMindTxTypeDeposit = "transferin"

IdentityMindTxTypeDeposit maps to 'transferin' URI; see https://edoc.identitymind.com/reference#transferin

View Source
const IdentityMindTxTypeTransfer = "transfer"

IdentityMindTxTypeTransfer maps to 'transfer' URI; see https://edoc.identitymind.com/reference#transfer

View Source
const IdentityMindTxTypeWithdrawal = "transferout"

IdentityMindTxTypeWithdrawal maps to 'transferout' URI; see https://edoc.identitymind.com/reference#transferout

Variables

This section is empty.

Functions

This section is empty.

Types

type IdentityMindAPIClient

type IdentityMindAPIClient struct {
	Host     string
	Path     string
	Scheme   string
	Token    *string
	Username *string
	Password *string
}

IdentityMindAPIClient is a generic base class for calling the identitymind API

func NewIdentityMindAPIClient

func NewIdentityMindAPIClient() (*IdentityMindAPIClient, error)

NewIdentityMindAPIClient initializes an IdentityMindAPIClient using the environment-configured API user and token to construct an HTTP basic authorization header for access to the IdentityMind API.

func (*IdentityMindAPIClient) ApproveApplication

func (i *IdentityMindAPIClient) ApproveApplication(applicationID string, params map[string]interface{}) (interface{}, error)

ApproveApplication see https://edoc.identitymind.com/reference#feedback

func (*IdentityMindAPIClient) ApproveBusinessApplication

func (i *IdentityMindAPIClient) ApproveBusinessApplication(applicationID string, params map[string]interface{}) (interface{}, error)

ApproveBusinessApplication see https://edoc.identitymind.com/reference#feedback_1

func (*IdentityMindAPIClient) ApproveMerchantApplication

func (i *IdentityMindAPIClient) ApproveMerchantApplication(applicationID string, params map[string]interface{}) (interface{}, error)

ApproveMerchantApplication see https://edoc.identitymind.com/reference#feedback

func (*IdentityMindAPIClient) ApproveMerchantBusinessApplication

func (i *IdentityMindAPIClient) ApproveMerchantBusinessApplication(applicationID string, params map[string]interface{}) (interface{}, error)

ApproveMerchantBusinessApplication see https://edoc.identitymind.com/reference#feedback_1

func (*IdentityMindAPIClient) CloseCase

func (i *IdentityMindAPIClient) CloseCase(caseID string, params map[string]interface{}) (interface{}, error)

CloseCase see https://edoc.identitymind.com/reference#closecase

func (*IdentityMindAPIClient) CreateCase

func (i *IdentityMindAPIClient) CreateCase(params map[string]interface{}) (interface{}, error)

CreateCase see https://edoc.identitymind.com/reference#createcase

func (*IdentityMindAPIClient) CreateMerchant

func (i *IdentityMindAPIClient) CreateMerchant(params map[string]interface{}) (interface{}, error)

CreateMerchant creates a merchant account

func (*IdentityMindAPIClient) Delete

func (i *IdentityMindAPIClient) Delete(uri string) (status int, err error)

Delete constructs and synchronously sends an API DELETE request

func (*IdentityMindAPIClient) DownloadApplicationDocument

func (i *IdentityMindAPIClient) DownloadApplicationDocument(applicationID, documentID string) (interface{}, error)

DownloadApplicationDocument see https://edoc.identitymind.com/reference#reevaluatemerchant

func (*IdentityMindAPIClient) DownloadBusinessApplicationDocument

func (i *IdentityMindAPIClient) DownloadBusinessApplicationDocument(applicationID, documentID string) (interface{}, error)

DownloadBusinessApplicationDocument see https://edoc.identitymind.com/reference#reevaluatemerchant

func (*IdentityMindAPIClient) DownloadMerchantApplicationDocument

func (i *IdentityMindAPIClient) DownloadMerchantApplicationDocument(applicationID, documentID string) (interface{}, error)

DownloadMerchantApplicationDocument see https://edoc.identitymind.com/reference#reevaluatemerchant

func (*IdentityMindAPIClient) DownloadMerchantBusinessApplicationDocument

func (i *IdentityMindAPIClient) DownloadMerchantBusinessApplicationDocument(applicationID, documentID string) (interface{}, error)

DownloadMerchantBusinessApplicationDocument see https://edoc.identitymind.com/reference#reevaluatemerchant

func (*IdentityMindAPIClient) EvaluateFraud

func (i *IdentityMindAPIClient) EvaluateFraud(params map[string]interface{}) (interface{}, error)

EvaluateFraud evaluates a transaction for payment fraud; see https://edoc.identitymind.com/reference#anti-fraud-1

func (*IdentityMindAPIClient) EvaluateMerchantFraud

func (i *IdentityMindAPIClient) EvaluateMerchantFraud(merchantID string, params map[string]interface{}) (interface{}, error)

EvaluateMerchantFraud evaluates a transaction for payment fraud on behalf of a given merchant; see https://edoc.identitymind.com/reference#anti-fraud-1

func (*IdentityMindAPIClient) Get

func (i *IdentityMindAPIClient) Get(uri string, params map[string]interface{}, response interface{}) (status int, err error)

Get constructs and synchronously sends an API GET request

func (*IdentityMindAPIClient) GetApplication

func (i *IdentityMindAPIClient) GetApplication(applicationID string) (interface{}, error)

GetApplication see https://edoc.identitymind.com/reference#getv2

func (*IdentityMindAPIClient) GetBusinessApplication

func (i *IdentityMindAPIClient) GetBusinessApplication(applicationID string) (interface{}, error)

GetBusinessApplication see https://edoc.identitymind.com/reference#getmerchantkyc

func (*IdentityMindAPIClient) GetCase

func (i *IdentityMindAPIClient) GetCase(caseID string) (interface{}, error)

GetCase see https://edoc.identitymind.com/reference#update

func (*IdentityMindAPIClient) GetMerchant

func (i *IdentityMindAPIClient) GetMerchant(merchantID string, params map[string]interface{}) (interface{}, error)

GetMerchant creates a merchant account

func (*IdentityMindAPIClient) GetMerchantApplication

func (i *IdentityMindAPIClient) GetMerchantApplication(applicationID string) (interface{}, error)

GetMerchantApplication see https://edoc.identitymind.com/reference#getmerchantkyc

func (*IdentityMindAPIClient) GetMerchantBusinessApplication

func (i *IdentityMindAPIClient) GetMerchantBusinessApplication(applicationID string) (interface{}, error)

GetMerchantBusinessApplication see https://edoc.identitymind.com/reference#getmerchantkyc

func (*IdentityMindAPIClient) ListApplicationDocuments

func (i *IdentityMindAPIClient) ListApplicationDocuments(applicationID string) (interface{}, error)

ListApplicationDocuments see https://edoc.identitymind.com/reference#getfilelistforapplication

func (*IdentityMindAPIClient) ListBusinessApplicationDocuments

func (i *IdentityMindAPIClient) ListBusinessApplicationDocuments(applicationID string) (interface{}, error)

ListBusinessApplicationDocuments see https://edoc.identitymind.com/reference#getfilelistforapplicationformerchant

func (*IdentityMindAPIClient) ListMerchantApplicationDocuments

func (i *IdentityMindAPIClient) ListMerchantApplicationDocuments(applicationID string) (interface{}, error)

ListMerchantApplicationDocuments see https://edoc.identitymind.com/reference#getfilelistforapplication

func (*IdentityMindAPIClient) ListMerchantBusinessApplicationDocuments

func (i *IdentityMindAPIClient) ListMerchantBusinessApplicationDocuments(applicationID string) (interface{}, error)

ListMerchantBusinessApplicationDocuments see https://edoc.identitymind.com/reference#getfilelistforapplicationformerchant

func (*IdentityMindAPIClient) Post

func (i *IdentityMindAPIClient) Post(uri string, params map[string]interface{}, response interface{}) (status int, err error)

Post constructs and synchronously sends an API POST request

func (*IdentityMindAPIClient) PostMultipartFormData

func (i *IdentityMindAPIClient) PostMultipartFormData(uri string, params map[string]interface{}, response interface{}) (status int, err error)

PostMultipartFormData constructs and synchronously sends an API POST request using multipart/form-data as the content-type

func (*IdentityMindAPIClient) PostWWWFormURLEncoded

func (i *IdentityMindAPIClient) PostWWWFormURLEncoded(uri string, params map[string]interface{}, response interface{}) (status int, err error)

PostWWWFormURLEncoded constructs and synchronously sends an API POST request using

func (*IdentityMindAPIClient) ProvideApplicationResponse

func (i *IdentityMindAPIClient) ProvideApplicationResponse(applicationID string, params map[string]interface{}) (interface{}, error)

ProvideApplicationResponse see https://edoc.identitymind.com/reference#quizresponse_1

func (*IdentityMindAPIClient) ProvideMerchantApplicationResponse

func (i *IdentityMindAPIClient) ProvideMerchantApplicationResponse(applicationID string, params map[string]interface{}) (interface{}, error)

ProvideMerchantApplicationResponse see https://edoc.identitymind.com/reference#quizresponse_1

func (*IdentityMindAPIClient) Put

func (i *IdentityMindAPIClient) Put(uri string, params map[string]interface{}, response interface{}) (status int, err error)

Put constructs and synchronously sends an API PUT request

func (*IdentityMindAPIClient) ReevaluateBusinessApplication

func (i *IdentityMindAPIClient) ReevaluateBusinessApplication(applicationID string) (interface{}, error)

ReevaluateBusinessApplication see https://edoc.identitymind.com/reference#reevaluatemerchant

func (*IdentityMindAPIClient) ReevaluateMerchantBusinessApplication

func (i *IdentityMindAPIClient) ReevaluateMerchantBusinessApplication(applicationID string) (interface{}, error)

ReevaluateMerchantBusinessApplication see https://edoc.identitymind.com/reference#reevaluatemerchant

func (*IdentityMindAPIClient) RejectApplication

func (i *IdentityMindAPIClient) RejectApplication(applicationID string, params map[string]interface{}) (interface{}, error)

RejectApplication see https://edoc.identitymind.com/reference#feedback

func (*IdentityMindAPIClient) RejectBusinessApplication

func (i *IdentityMindAPIClient) RejectBusinessApplication(applicationID string, params map[string]interface{}) (interface{}, error)

RejectBusinessApplication see https://edoc.identitymind.com/reference#feedback_1

func (*IdentityMindAPIClient) RejectMerchantApplication

func (i *IdentityMindAPIClient) RejectMerchantApplication(applicationID string, params map[string]interface{}) (interface{}, error)

RejectMerchantApplication see https://edoc.identitymind.com/reference#feedback

func (*IdentityMindAPIClient) RejectMerchantBusinessApplication

func (i *IdentityMindAPIClient) RejectMerchantBusinessApplication(applicationID string, params map[string]interface{}) (interface{}, error)

RejectMerchantBusinessApplication see https://edoc.identitymind.com/reference#feedback_1

func (*IdentityMindAPIClient) ReportFraud

func (i *IdentityMindAPIClient) ReportFraud(params map[string]interface{}) (interface{}, error)

ReportFraud reports a fraud event; see https://edoc.identitymind.com/reference#event

func (*IdentityMindAPIClient) ReportMerchantTransaction

func (i *IdentityMindAPIClient) ReportMerchantTransaction(merchantID, txType string, params map[string]interface{}) (interface{}, error)

ReportMerchantTransaction reports various kinds of transactions including deposits, withdrawals and internal transfer

func (*IdentityMindAPIClient) ReportTransaction

func (i *IdentityMindAPIClient) ReportTransaction(txType string, params map[string]interface{}) (interface{}, error)

ReportTransaction reports various kinds of transactions including deposits, withdrawals and internal transfer

func (*IdentityMindAPIClient) SubmitApplication

func (i *IdentityMindAPIClient) SubmitApplication(params map[string]interface{}) (interface{}, error)

SubmitApplication see https://edoc.identitymind.com/reference#create

func (*IdentityMindAPIClient) SubmitBusinessApplication

func (i *IdentityMindAPIClient) SubmitBusinessApplication(params map[string]interface{}) (interface{}, error)

SubmitBusinessApplication see https://edoc.identitymind.com/reference#merchant

func (*IdentityMindAPIClient) SubmitMerchantApplication

func (i *IdentityMindAPIClient) SubmitMerchantApplication(params map[string]interface{}) (interface{}, error)

SubmitMerchantApplication see https://edoc.identitymind.com/reference#create

func (*IdentityMindAPIClient) SubmitMerchantBusinessApplication

func (i *IdentityMindAPIClient) SubmitMerchantBusinessApplication(merchantID string, params map[string]interface{}) (interface{}, error)

SubmitMerchantBusinessApplication see https://edoc.identitymind.com/reference#merchant

func (*IdentityMindAPIClient) UndecideApplication

func (i *IdentityMindAPIClient) UndecideApplication(applicationID string, params map[string]interface{}) (interface{}, error)

UndecideApplication see https://edoc.identitymind.com/reference#feedback

func (*IdentityMindAPIClient) UndecideBusinessApplication

func (i *IdentityMindAPIClient) UndecideBusinessApplication(applicationID string, params map[string]interface{}) (interface{}, error)

UndecideBusinessApplication see https://edoc.identitymind.com/reference#feedback_1

func (*IdentityMindAPIClient) UndecideMerchantApplication

func (i *IdentityMindAPIClient) UndecideMerchantApplication(applicationID string, params map[string]interface{}) (interface{}, error)

UndecideMerchantApplication see https://edoc.identitymind.com/reference#feedback

func (*IdentityMindAPIClient) UndecideMerchantBusinessApplication

func (i *IdentityMindAPIClient) UndecideMerchantBusinessApplication(applicationID string, params map[string]interface{}) (interface{}, error)

UndecideMerchantBusinessApplication see https://edoc.identitymind.com/reference#feedback_1

func (*IdentityMindAPIClient) UpdateCase

func (i *IdentityMindAPIClient) UpdateCase(caseID string, params map[string]interface{}) (interface{}, error)

UpdateCase see https://edoc.identitymind.com/reference#updatecasecontent

func (*IdentityMindAPIClient) UpdateMerchant

func (i *IdentityMindAPIClient) UpdateMerchant(merchantID string, params map[string]interface{}) (interface{}, error)

UpdateMerchant creates a merchant account

func (*IdentityMindAPIClient) UploadApplicationDocument

func (i *IdentityMindAPIClient) UploadApplicationDocument(applicationID string, params map[string]interface{}) (interface{}, error)

UploadApplicationDocument see https://edoc.identitymind.com/reference#processfileuploadrequest

func (*IdentityMindAPIClient) UploadApplicationDocumentVerificationImage

func (i *IdentityMindAPIClient) UploadApplicationDocumentVerificationImage(applicationID string, params map[string]interface{}) (interface{}, error)

UploadApplicationDocumentVerificationImage see https://edoc.identitymind.com/reference#processimageuploadrequest

func (*IdentityMindAPIClient) UploadBusinessApplicationDocument

func (i *IdentityMindAPIClient) UploadBusinessApplicationDocument(applicationID string, params map[string]interface{}) (interface{}, error)

UploadBusinessApplicationDocument see https://edoc.identitymind.com/reference#processfileuploadrequestformerchantkyc

func (*IdentityMindAPIClient) UploadBusinessApplicationDocumentVerificationImage

func (i *IdentityMindAPIClient) UploadBusinessApplicationDocumentVerificationImage(applicationID string, params map[string]interface{}) (interface{}, error)

UploadBusinessApplicationDocumentVerificationImage see https://edoc.identitymind.com/reference#processfileuploadrequestformerchantkyc

func (*IdentityMindAPIClient) UploadMerchantApplicationDocument

func (i *IdentityMindAPIClient) UploadMerchantApplicationDocument(applicationID string, params map[string]interface{}) (interface{}, error)

UploadMerchantApplicationDocument see https://edoc.identitymind.com/reference#processfileuploadrequest

func (*IdentityMindAPIClient) UploadMerchantApplicationDocumentVerificationImage

func (i *IdentityMindAPIClient) UploadMerchantApplicationDocumentVerificationImage(applicationID string, params map[string]interface{}) (interface{}, error)

UploadMerchantApplicationDocumentVerificationImage see https://edoc.identitymind.com/reference#processimageuploadrequest

func (*IdentityMindAPIClient) UploadMerchantBusinessApplicationDocument

func (i *IdentityMindAPIClient) UploadMerchantBusinessApplicationDocument(applicationID string, params map[string]interface{}) (interface{}, error)

UploadMerchantBusinessApplicationDocument see https://edoc.identitymind.com/reference#processfileuploadrequestformerchantkyc

func (*IdentityMindAPIClient) UploadMerchantBusinessApplicationDocumentVerificationImage

func (i *IdentityMindAPIClient) UploadMerchantBusinessApplicationDocumentVerificationImage(applicationID string, params map[string]interface{}) (interface{}, error)

UploadMerchantBusinessApplicationDocumentVerificationImage see https://edoc.identitymind.com/reference#processfileuploadrequestformerchantkyc

type KYCApplication

type KYCApplication struct {
	EDNAScorecard map[string]interface{} `json:"ednaScoreCard"`
	MTID          *string                `json:"mtid"`
	TID           *string                `json:"tid"`
	RCD           *string                `json:"rcd"`
	State         *string                `json:"state"`
}

KYCApplication represents a identitymind KYC application

func (*KYCApplication) IsAccepted

func (k *KYCApplication) IsAccepted() bool

IsAccepted returns true if the KYC application has been accepted

func (*KYCApplication) IsRejected

func (k *KYCApplication) IsRejected() bool

IsRejected returns true if the KYC application has been rejected

func (*KYCApplication) IsUnderReview

func (k *KYCApplication) IsUnderReview() bool

IsUnderReview returns true if the KYC application is currently pending review

Jump to

Keyboard shortcuts

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