endpoint

package
v0.0.0-...-f9fff31 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeAuthorizeEndpoint

func MakeAuthorizeEndpoint(svc pkg.Service) endpoint.Endpoint

MakeAuthorizeEndpoint returns the endpoint for payment authorization request

func MakeCancelEndpoint

func MakeCancelEndpoint(svc pkg.Service) endpoint.Endpoint

MakeCancelEndpoint returns the endpoint for payment cancel request

func MakeCaptureEndpoint

func MakeCaptureEndpoint(svc pkg.Service) endpoint.Endpoint

MakeCaptureEndpoint returns the endpoint for payment cancel request

func MakeCreateAccountEndpoint

func MakeCreateAccountEndpoint(svc pkg.Service) endpoint.Endpoint

MakeCreateAccountEndpoint returns the endpoint for account create request

func MakeCreateCardEndpoint

func MakeCreateCardEndpoint(svc pkg.Service) endpoint.Endpoint

MakeCreateCardEndpoint returns the endpoint for acount update request

func MakeDeleteCardEndpoint

func MakeDeleteCardEndpoint(svc pkg.Service) endpoint.Endpoint

MakeDeleteCardEndpoint returns the endpoint for acount update request

func MakeGetCardEndpoint

func MakeGetCardEndpoint(svc pkg.Service) endpoint.Endpoint

MakeGetCardEndpoint returns the endpoint for acount update request

func MakeGetMDKTokenEndpoint

func MakeGetMDKTokenEndpoint(svc pkg.Service) endpoint.Endpoint

MakeGetMDKTokenEndpoint returns the endpoint for mdk token request

func MakeUpdateAccountEndpoint

func MakeUpdateAccountEndpoint(svc pkg.Service) endpoint.Endpoint

MakeUpdateAccountEndpoint returns the endpoint for acount update request

func MakeUpdateCardEndpoint

func MakeUpdateCardEndpoint(svc pkg.Service) endpoint.Endpoint

MakeUpdateCardEndpoint returns the endpoint for acount update request

Types

type AccountResponse

type AccountResponse struct {
	Account *veritrans.Account `json:"account,omitempty"`
	Err     string             `json:"err"`
}

AccountResponse struct

type GetMDKTokenResponse

type GetMDKTokenResponse struct {
	Token string `json:"token"`
	Err   string `json:"err,omitempty"`
}

GetMDKTokenResponse struct

type PaymentResponse

type PaymentResponse struct {
	Err string `json:"err"`
}

PaymentResponse struct

type Set

type Set struct {
	GetMDKTokenEndpoint   endpoint.Endpoint
	CreateAccountEndpoint endpoint.Endpoint
	UpdateAccountEndpoint endpoint.Endpoint
	CreateCardEndpoint    endpoint.Endpoint
	UpdateCardEndpoint    endpoint.Endpoint
	DeleteCardEndpoint    endpoint.Endpoint
	GetCardEndpoint       endpoint.Endpoint
	AuthorizeEndpoint     endpoint.Endpoint
	CancelEndpoint        endpoint.Endpoint
	CaptureEndpoint       endpoint.Endpoint
}

Set struct provides the endpoints

func NewEndpointSet

func NewEndpointSet(svc pkg.Service) Set

NewEndpointSet initializes the Set struct

Jump to

Keyboard shortcuts

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