api

package
v0.44.22 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsJsonErrorStatusCode added in v0.43.0

func IsJsonErrorStatusCode(err error, statusCode int) bool

func JsonErrorPrettyPrint added in v0.43.0

func JsonErrorPrettyPrint(err error) string

func NewUUID

func NewUUID() *strfmt.UUID

func NewUUIDValue

func NewUUIDValue() strfmt.UUID

func String

func String(v string) *string

String returns a pointer to the string value passed in.

func StringValue

func StringValue(v *string) string

StringValue returns the value of the string pointer passed in or "" if the pointer is nil.

func UUID

func UUID(s strfmt.UUID) *strfmt.UUID

func UUIDValue

func UUIDValue(s *strfmt.UUID) strfmt.UUID

func UUIDtoStrFmtUUID

func UUIDtoStrFmtUUID(s uuid.UUID) *strfmt.UUID

Types

type AuthenticatedClient

type AuthenticatedClient struct {
	AccessToken           string
	SecurityClient        *client.Form3CorelibDataStructures
	NotificationClient    *client.Form3CorelibDataStructures
	Config                *client.TransportConfig
	HttpClient            *http.Client
	OrganisationId        string
	OrganisationClient    *client.Form3CorelibDataStructures
	AssociationClient     *client.Form3CorelibDataStructures
	AccountClient         *client.Form3CorelibDataStructures
	LimitsClient          *client.Form3CorelibDataStructures
	PaymentdefaultsClient *client.Form3CorelibDataStructures
	TransactionClient     *client.Form3CorelibDataStructures
	SystemClient          *client.Form3CorelibDataStructures
	PlatformClient        *client.Form3CorelibDataStructures
}

func NewAuthenticatedClient

func NewAuthenticatedClient(config *client.TransportConfig) *AuthenticatedClient

func (*AuthenticatedClient) Authenticate

func (r *AuthenticatedClient) Authenticate(clientId string, clientSecret string) error

type AuthenticatedClientCheckRedirect

type AuthenticatedClientCheckRedirect struct {
}

func (*AuthenticatedClientCheckRedirect) CheckRedirect

func (r *AuthenticatedClientCheckRedirect) CheckRedirect(req *http.Request, via []*http.Request) error

type CachedToken

type CachedToken struct {
	Token   string
	Expires time.Time
}

type JsonError added in v0.43.0

type JsonError interface {
	GetPayload() *models.APIError
	Error() string
}

JsonError represents an error in json format it is a ApiError wrapper

type LoginResponse

type LoginResponse struct {
	TokenType   string `json:"token_type,omitempty"`
	AccessToken string `json:"access_token"`
	ExpiresIn   int    `json:"expires_in"`
}

type PaymentBuilder

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

func (*PaymentBuilder) Build

func (b *PaymentBuilder) Build() *models.Payment

func (*PaymentBuilder) NewMessageID

func (b *PaymentBuilder) NewMessageID() string

func (*PaymentBuilder) NewSchemeTransactionID

func (b *PaymentBuilder) NewSchemeTransactionID() string

func (*PaymentBuilder) WithAmount

func (b *PaymentBuilder) WithAmount(amount string) *PaymentBuilder

func (*PaymentBuilder) WithBeneficiaryPartyAccountNumber

func (b *PaymentBuilder) WithBeneficiaryPartyAccountNumber(accountNumber string) *PaymentBuilder

func (*PaymentBuilder) WithBeneficiaryPartyAccountWithBankID

func (b *PaymentBuilder) WithBeneficiaryPartyAccountWithBankID(bankID string) *PaymentBuilder

func (*PaymentBuilder) WithDebtorPartyAccountNumber

func (b *PaymentBuilder) WithDebtorPartyAccountNumber(accountNumber string) *PaymentBuilder

func (*PaymentBuilder) WithDebtorPartyAccountWithBankID

func (b *PaymentBuilder) WithDebtorPartyAccountWithBankID(bankID string) *PaymentBuilder

func (*PaymentBuilder) WithDefaults

func (b *PaymentBuilder) WithDefaults() *PaymentBuilder

func (*PaymentBuilder) WithOrganisationID

func (b *PaymentBuilder) WithOrganisationID(id strfmt.UUID) *PaymentBuilder

func (*PaymentBuilder) WithPaymentScheme

func (b *PaymentBuilder) WithPaymentScheme(scheme string) *PaymentBuilder

func (*PaymentBuilder) WithReference

func (b *PaymentBuilder) WithReference(reference string) *PaymentBuilder

func (*PaymentBuilder) WithSchemePaymentType

func (b *PaymentBuilder) WithSchemePaymentType(schemePaymentType string) *PaymentBuilder

func (*PaymentBuilder) WithSchemeTransactionID

func (b *PaymentBuilder) WithSchemeTransactionID(schemeTransactionID string) *PaymentBuilder

type ReadSeekerCloser added in v0.32.0

type ReadSeekerCloser interface {
	io.ReadSeeker
	io.Closer
}

func NewReaderSeekerCloser added in v0.32.0

func NewReaderSeekerCloser(request *http.Request) (ReadSeekerCloser, error)

type ReadSeekerCloserImpl added in v0.32.0

type ReadSeekerCloserImpl struct {
	ReadSeeker io.ReadSeeker
	Closer     io.Closer
}

func (*ReadSeekerCloserImpl) Close added in v0.32.0

func (r *ReadSeekerCloserImpl) Close() error

func (*ReadSeekerCloserImpl) Read added in v0.32.0

func (r *ReadSeekerCloserImpl) Read(p []byte) (n int, err error)

func (*ReadSeekerCloserImpl) Seek added in v0.32.0

func (r *ReadSeekerCloserImpl) Seek(offset int64, whence int) (int64, error)

type Request added in v0.32.0

type Request struct {
	Body io.ReadSeeker
	*http.Request
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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