branches

package
v7.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Defaults client.Defaults
	// contains filtered or unexported fields
}

Client for branches API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry, defaults client.Defaults) *Client

New creates a new branches API client.

func (*Client) CreateBranch

func (c *Client) CreateBranch() *CreateBranchRequest

Client.CreateBranch creates a new CreateBranchRequest object with the default values initialized.

func (*Client) DeleteBranch

func (c *Client) DeleteBranch() *DeleteBranchRequest

Client.DeleteBranch creates a new DeleteBranchRequest object with the default values initialized.

func (*Client) GetBranch

func (c *Client) GetBranch() *GetBranchRequest

Client.GetBranch creates a new GetBranchRequest object with the default values initialized.

func (*Client) ListBranches

func (c *Client) ListBranches() *ListBranchesRequest

Client.ListBranches creates a new ListBranchesRequest object with the default values initialized.

func (*Client) PatchBranch

func (c *Client) PatchBranch() *PatchBranchRequest

Client.PatchBranch creates a new PatchBranchRequest object with the default values initialized.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type CreateBranchConflict

type CreateBranchConflict struct {

	// isStream: false
	*models.APIError
}

CreateBranchConflict handles this case with default header values.

Branch creation error, constraint violation of organisation id and bank id

func NewCreateBranchConflict

func NewCreateBranchConflict() *CreateBranchConflict

NewCreateBranchConflict creates a CreateBranchConflict with default headers values

func (*CreateBranchConflict) Code

func (o *CreateBranchConflict) Code() int

Code gets the status code for the create branch conflict response

func (*CreateBranchConflict) Error

func (o *CreateBranchConflict) Error() string

func (*CreateBranchConflict) IsClientError

func (o *CreateBranchConflict) IsClientError() bool

IsClientError returns true when this create branch conflict response has a 4xx status code

func (*CreateBranchConflict) IsCode

func (o *CreateBranchConflict) IsCode(code int) bool

IsCode returns true when this create branch conflict response a status code equal to that given

func (*CreateBranchConflict) IsRedirect

func (o *CreateBranchConflict) IsRedirect() bool

IsRedirect returns true when this create branch conflict response has a 3xx status code

func (*CreateBranchConflict) IsServerError

func (o *CreateBranchConflict) IsServerError() bool

IsServerError returns true when this create branch conflict response has a 5xx status code

func (*CreateBranchConflict) IsSuccess

func (o *CreateBranchConflict) IsSuccess() bool

IsSuccess returns true when this create branch conflict response has a 2xx status code

type CreateBranchCreated

type CreateBranchCreated struct {

	// isStream: false
	*models.BranchCreationResponse
}

CreateBranchCreated handles this case with default header values.

Branch creation response

func NewCreateBranchCreated

func NewCreateBranchCreated() *CreateBranchCreated

NewCreateBranchCreated creates a CreateBranchCreated with default headers values

func (*CreateBranchCreated) Code

func (o *CreateBranchCreated) Code() int

Code gets the status code for the create branch created response

func (*CreateBranchCreated) Error

func (o *CreateBranchCreated) Error() string

func (*CreateBranchCreated) IsClientError

func (o *CreateBranchCreated) IsClientError() bool

IsClientError returns true when this create branch created response has a 4xx status code

func (*CreateBranchCreated) IsCode

func (o *CreateBranchCreated) IsCode(code int) bool

IsCode returns true when this create branch created response a status code equal to that given

func (*CreateBranchCreated) IsRedirect

func (o *CreateBranchCreated) IsRedirect() bool

IsRedirect returns true when this create branch created response has a 3xx status code

func (*CreateBranchCreated) IsServerError

func (o *CreateBranchCreated) IsServerError() bool

IsServerError returns true when this create branch created response has a 5xx status code

func (*CreateBranchCreated) IsSuccess

func (o *CreateBranchCreated) IsSuccess() bool

IsSuccess returns true when this create branch created response has a 2xx status code

type CreateBranchReader

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

CreateBranchReader is a Reader for the CreateBranch structure.

func (*CreateBranchReader) ReadResponse

func (o *CreateBranchReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type CreateBranchRequest

type CreateBranchRequest struct {
	*models.BranchCreation

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

func (*CreateBranchRequest) Do

create branch API

func (*CreateBranchRequest) FromJson

func (*CreateBranchRequest) MustDo

func (*CreateBranchRequest) WithBranchCreationRequest

func (o *CreateBranchRequest) WithBranchCreationRequest(branchCreationRequest models.BranchCreation) *CreateBranchRequest

func (*CreateBranchRequest) WithContext

//////////////// WithContext adds the context to the create branch Request

func (*CreateBranchRequest) WithHTTPClient

func (o *CreateBranchRequest) WithHTTPClient(client *http.Client) *CreateBranchRequest

WithHTTPClient adds the HTTPClient to the create branch Request

func (*CreateBranchRequest) WithoutBranchCreationRequest

func (o *CreateBranchRequest) WithoutBranchCreationRequest() *CreateBranchRequest

func (*CreateBranchRequest) WriteToRequest

func (o *CreateBranchRequest) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these Request to a swagger request

type DeleteBranchNoContent

type DeleteBranchNoContent struct {
}

DeleteBranchNoContent handles this case with default header values.

Branch deleted

func NewDeleteBranchNoContent

func NewDeleteBranchNoContent() *DeleteBranchNoContent

NewDeleteBranchNoContent creates a DeleteBranchNoContent with default headers values

func (*DeleteBranchNoContent) Code

func (o *DeleteBranchNoContent) Code() int

Code gets the status code for the delete branch no content response

func (*DeleteBranchNoContent) Error

func (o *DeleteBranchNoContent) Error() string

func (*DeleteBranchNoContent) IsClientError

func (o *DeleteBranchNoContent) IsClientError() bool

IsClientError returns true when this delete branch no content response has a 4xx status code

func (*DeleteBranchNoContent) IsCode

func (o *DeleteBranchNoContent) IsCode(code int) bool

IsCode returns true when this delete branch no content response a status code equal to that given

func (*DeleteBranchNoContent) IsRedirect

func (o *DeleteBranchNoContent) IsRedirect() bool

IsRedirect returns true when this delete branch no content response has a 3xx status code

func (*DeleteBranchNoContent) IsServerError

func (o *DeleteBranchNoContent) IsServerError() bool

IsServerError returns true when this delete branch no content response has a 5xx status code

func (*DeleteBranchNoContent) IsSuccess

func (o *DeleteBranchNoContent) IsSuccess() bool

IsSuccess returns true when this delete branch no content response has a 2xx status code

type DeleteBranchReader

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

DeleteBranchReader is a Reader for the DeleteBranch structure.

func (*DeleteBranchReader) ReadResponse

func (o *DeleteBranchReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeleteBranchRequest

type DeleteBranchRequest struct {
	ID strfmt.UUID

	Version int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

func (*DeleteBranchRequest) Do

delete branch API

func (*DeleteBranchRequest) FromJson

func (*DeleteBranchRequest) MustDo

func (*DeleteBranchRequest) WithContext

//////////////// WithContext adds the context to the delete branch Request

func (*DeleteBranchRequest) WithHTTPClient

func (o *DeleteBranchRequest) WithHTTPClient(client *http.Client) *DeleteBranchRequest

WithHTTPClient adds the HTTPClient to the delete branch Request

func (*DeleteBranchRequest) WithID

func (*DeleteBranchRequest) WithVersion

func (o *DeleteBranchRequest) WithVersion(version int64) *DeleteBranchRequest

func (*DeleteBranchRequest) WriteToRequest

func (o *DeleteBranchRequest) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these Request to a swagger request

type GetBranchOK

type GetBranchOK struct {

	// isStream: false
	*models.BranchDetailsResponse
}

GetBranchOK handles this case with default header values.

Branch details

func NewGetBranchOK

func NewGetBranchOK() *GetBranchOK

NewGetBranchOK creates a GetBranchOK with default headers values

func (*GetBranchOK) Code

func (o *GetBranchOK) Code() int

Code gets the status code for the get branch o k response

func (*GetBranchOK) Error

func (o *GetBranchOK) Error() string

func (*GetBranchOK) IsClientError

func (o *GetBranchOK) IsClientError() bool

IsClientError returns true when this get branch o k response has a 4xx status code

func (*GetBranchOK) IsCode

func (o *GetBranchOK) IsCode(code int) bool

IsCode returns true when this get branch o k response a status code equal to that given

func (*GetBranchOK) IsRedirect

func (o *GetBranchOK) IsRedirect() bool

IsRedirect returns true when this get branch o k response has a 3xx status code

func (*GetBranchOK) IsServerError

func (o *GetBranchOK) IsServerError() bool

IsServerError returns true when this get branch o k response has a 5xx status code

func (*GetBranchOK) IsSuccess

func (o *GetBranchOK) IsSuccess() bool

IsSuccess returns true when this get branch o k response has a 2xx status code

type GetBranchReader

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

GetBranchReader is a Reader for the GetBranch structure.

func (*GetBranchReader) ReadResponse

func (o *GetBranchReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetBranchRequest

type GetBranchRequest struct {
	ID strfmt.UUID

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

func (*GetBranchRequest) Do

func (a *GetBranchRequest) Do() (*GetBranchOK, error)

get branch API

func (*GetBranchRequest) FromJson

func (o *GetBranchRequest) FromJson(j string) (*GetBranchRequest, error)

func (*GetBranchRequest) MustDo

func (a *GetBranchRequest) MustDo() *GetBranchOK

func (*GetBranchRequest) WithContext

func (o *GetBranchRequest) WithContext(ctx context.Context) *GetBranchRequest

//////////////// WithContext adds the context to the get branch Request

func (*GetBranchRequest) WithHTTPClient

func (o *GetBranchRequest) WithHTTPClient(client *http.Client) *GetBranchRequest

WithHTTPClient adds the HTTPClient to the get branch Request

func (*GetBranchRequest) WithID

func (*GetBranchRequest) WriteToRequest

func (o *GetBranchRequest) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these Request to a swagger request

type ListBranchesOK

type ListBranchesOK struct {

	// isStream: false
	*models.BranchDetailsListResponse
}

ListBranchesOK handles this case with default header values.

List of branch details

func NewListBranchesOK

func NewListBranchesOK() *ListBranchesOK

NewListBranchesOK creates a ListBranchesOK with default headers values

func (*ListBranchesOK) Code

func (o *ListBranchesOK) Code() int

Code gets the status code for the list branches o k response

func (*ListBranchesOK) Error

func (o *ListBranchesOK) Error() string

func (*ListBranchesOK) IsClientError

func (o *ListBranchesOK) IsClientError() bool

IsClientError returns true when this list branches o k response has a 4xx status code

func (*ListBranchesOK) IsCode

func (o *ListBranchesOK) IsCode(code int) bool

IsCode returns true when this list branches o k response a status code equal to that given

func (*ListBranchesOK) IsRedirect

func (o *ListBranchesOK) IsRedirect() bool

IsRedirect returns true when this list branches o k response has a 3xx status code

func (*ListBranchesOK) IsServerError

func (o *ListBranchesOK) IsServerError() bool

IsServerError returns true when this list branches o k response has a 5xx status code

func (*ListBranchesOK) IsSuccess

func (o *ListBranchesOK) IsSuccess() bool

IsSuccess returns true when this list branches o k response has a 2xx status code

type ListBranchesReader

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

ListBranchesReader is a Reader for the ListBranches structure.

func (*ListBranchesReader) ReadResponse

func (o *ListBranchesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ListBranchesRequest

type ListBranchesRequest struct {
	FilterAcceptanceQualifier []string

	FilterBankID []string

	FilterBankIDCode []string

	FilterOrganisationID []strfmt.UUID

	FilterReferenceMask []string

	FilterValidationType []string

	PageNumber *string

	PageSize *int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

func (*ListBranchesRequest) Do

list branches API

func (*ListBranchesRequest) FromJson

func (*ListBranchesRequest) MustDo

func (a *ListBranchesRequest) MustDo() *ListBranchesOK

func (*ListBranchesRequest) WithContext

//////////////// WithContext adds the context to the list branches Request

func (*ListBranchesRequest) WithFilterAcceptanceQualifier

func (o *ListBranchesRequest) WithFilterAcceptanceQualifier(filterAcceptanceQualifier []string) *ListBranchesRequest

func (*ListBranchesRequest) WithFilterBankID

func (o *ListBranchesRequest) WithFilterBankID(filterBankID []string) *ListBranchesRequest

func (*ListBranchesRequest) WithFilterBankIDCode

func (o *ListBranchesRequest) WithFilterBankIDCode(filterBankIDCode []string) *ListBranchesRequest

func (*ListBranchesRequest) WithFilterOrganisationID

func (o *ListBranchesRequest) WithFilterOrganisationID(filterOrganisationID []strfmt.UUID) *ListBranchesRequest

func (*ListBranchesRequest) WithFilterReferenceMask

func (o *ListBranchesRequest) WithFilterReferenceMask(filterReferenceMask []string) *ListBranchesRequest

func (*ListBranchesRequest) WithFilterValidationType

func (o *ListBranchesRequest) WithFilterValidationType(filterValidationType []string) *ListBranchesRequest

func (*ListBranchesRequest) WithHTTPClient

func (o *ListBranchesRequest) WithHTTPClient(client *http.Client) *ListBranchesRequest

WithHTTPClient adds the HTTPClient to the list branches Request

func (*ListBranchesRequest) WithPageNumber

func (o *ListBranchesRequest) WithPageNumber(pageNumber string) *ListBranchesRequest

func (*ListBranchesRequest) WithPageSize

func (o *ListBranchesRequest) WithPageSize(pageSize int64) *ListBranchesRequest

func (*ListBranchesRequest) WithoutFilterAcceptanceQualifier

func (o *ListBranchesRequest) WithoutFilterAcceptanceQualifier() *ListBranchesRequest

func (*ListBranchesRequest) WithoutFilterBankID

func (o *ListBranchesRequest) WithoutFilterBankID() *ListBranchesRequest

func (*ListBranchesRequest) WithoutFilterBankIDCode

func (o *ListBranchesRequest) WithoutFilterBankIDCode() *ListBranchesRequest

func (*ListBranchesRequest) WithoutFilterOrganisationID

func (o *ListBranchesRequest) WithoutFilterOrganisationID() *ListBranchesRequest

func (*ListBranchesRequest) WithoutFilterReferenceMask

func (o *ListBranchesRequest) WithoutFilterReferenceMask() *ListBranchesRequest

func (*ListBranchesRequest) WithoutFilterValidationType

func (o *ListBranchesRequest) WithoutFilterValidationType() *ListBranchesRequest

func (*ListBranchesRequest) WithoutPageNumber

func (o *ListBranchesRequest) WithoutPageNumber() *ListBranchesRequest

func (*ListBranchesRequest) WithoutPageSize

func (o *ListBranchesRequest) WithoutPageSize() *ListBranchesRequest

func (*ListBranchesRequest) WriteToRequest

func (o *ListBranchesRequest) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these Request to a swagger request

type PatchBranchOK

type PatchBranchOK struct {

	// isStream: false
	*models.BranchDetailsResponse
}

PatchBranchOK handles this case with default header values.

Branch updated

func NewPatchBranchOK

func NewPatchBranchOK() *PatchBranchOK

NewPatchBranchOK creates a PatchBranchOK with default headers values

func (*PatchBranchOK) Code

func (o *PatchBranchOK) Code() int

Code gets the status code for the patch branch o k response

func (*PatchBranchOK) Error

func (o *PatchBranchOK) Error() string

func (*PatchBranchOK) IsClientError

func (o *PatchBranchOK) IsClientError() bool

IsClientError returns true when this patch branch o k response has a 4xx status code

func (*PatchBranchOK) IsCode

func (o *PatchBranchOK) IsCode(code int) bool

IsCode returns true when this patch branch o k response a status code equal to that given

func (*PatchBranchOK) IsRedirect

func (o *PatchBranchOK) IsRedirect() bool

IsRedirect returns true when this patch branch o k response has a 3xx status code

func (*PatchBranchOK) IsServerError

func (o *PatchBranchOK) IsServerError() bool

IsServerError returns true when this patch branch o k response has a 5xx status code

func (*PatchBranchOK) IsSuccess

func (o *PatchBranchOK) IsSuccess() bool

IsSuccess returns true when this patch branch o k response has a 2xx status code

type PatchBranchReader

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

PatchBranchReader is a Reader for the PatchBranch structure.

func (*PatchBranchReader) ReadResponse

func (o *PatchBranchReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PatchBranchRequest

type PatchBranchRequest struct {
	*models.BranchAmendment

	ID strfmt.UUID

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

func (*PatchBranchRequest) Do

patch branch API

func (*PatchBranchRequest) FromJson

func (*PatchBranchRequest) MustDo

func (a *PatchBranchRequest) MustDo() *PatchBranchOK

func (*PatchBranchRequest) WithBranchAmendRequest

func (o *PatchBranchRequest) WithBranchAmendRequest(branchAmendRequest models.BranchAmendment) *PatchBranchRequest

func (*PatchBranchRequest) WithContext

//////////////// WithContext adds the context to the patch branch Request

func (*PatchBranchRequest) WithHTTPClient

func (o *PatchBranchRequest) WithHTTPClient(client *http.Client) *PatchBranchRequest

WithHTTPClient adds the HTTPClient to the patch branch Request

func (*PatchBranchRequest) WithID

func (*PatchBranchRequest) WithoutBranchAmendRequest

func (o *PatchBranchRequest) WithoutBranchAmendRequest() *PatchBranchRequest

func (*PatchBranchRequest) WriteToRequest

func (o *PatchBranchRequest) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these Request to a swagger request

Jump to

Keyboard shortcuts

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