statements

package
v0.0.0-...-5f4f26f Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 License: MIT Imports: 10 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 {
	// contains filtered or unexported fields
}

Client for statements API

func New

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

New creates a new statements API client.

func (*Client) GetStatements

func (a *Client) GetStatements(params *GetStatementsParams) (*GetStatementsOK, error)

GetStatements gets statements

The statements service is used to get the list of statement related information. <br>By default, all the latest statements of active and to be closed accounts are retrieved for the user. <br>Certain sites do not have both a statement date and a due date. When a fromDate is passed as an <br>input, all the statements that have the due date on or after the passed date are retrieved. <br>For sites that do not have the due date, statements that have the statement date <br>on or after the passed date are retrieved. <br>The default value of "isLatest" is true. To retrieve historical statements isLatest needs to be set to false.<br>

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type GetStatementsBadRequest

type GetStatementsBadRequest struct {
	Payload *models.YodleeError
}

GetStatementsBadRequest handles this case with default header values.

Y800 : Invalid value for accountId<br>Y800 : Invalid value for status<br>Y805 : Multiple containers not supported<br>Y800 : Invalid value for container<br>Y800 : Invalid value for isLatest<br>Y800 : Invalid value for fromDate<br>

func NewGetStatementsBadRequest

func NewGetStatementsBadRequest() *GetStatementsBadRequest

NewGetStatementsBadRequest creates a GetStatementsBadRequest with default headers values

func (*GetStatementsBadRequest) Error

func (o *GetStatementsBadRequest) Error() string

func (*GetStatementsBadRequest) GetPayload

func (o *GetStatementsBadRequest) GetPayload() *models.YodleeError

type GetStatementsNotFound

type GetStatementsNotFound struct {
}

GetStatementsNotFound handles this case with default header values.

Not Found

func NewGetStatementsNotFound

func NewGetStatementsNotFound() *GetStatementsNotFound

NewGetStatementsNotFound creates a GetStatementsNotFound with default headers values

func (*GetStatementsNotFound) Error

func (o *GetStatementsNotFound) Error() string

type GetStatementsOK

type GetStatementsOK struct {
	Payload *models.StatementResponse
}

GetStatementsOK handles this case with default header values.

OK

func NewGetStatementsOK

func NewGetStatementsOK() *GetStatementsOK

NewGetStatementsOK creates a GetStatementsOK with default headers values

func (*GetStatementsOK) Error

func (o *GetStatementsOK) Error() string

func (*GetStatementsOK) GetPayload

func (o *GetStatementsOK) GetPayload() *models.StatementResponse

type GetStatementsParams

type GetStatementsParams struct {

	/*AccountID
	  accountId

	*/
	AccountID *string
	/*Container
	  creditCard/loan/bill/insurance

	*/
	Container *string
	/*FromDate
	  from date for statement retrieval (YYYY-MM-DD)

	*/
	FromDate *string
	/*IsLatest
	  isLatest (true/false)

	*/
	IsLatest *string
	/*Status
	  ACTIVE/TO_BE_CLOSED/CLOSED

	*/
	Status *string

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

GetStatementsParams contains all the parameters to send to the API endpoint for the get statements operation typically these are written to a http.Request

func NewGetStatementsParams

func NewGetStatementsParams() *GetStatementsParams

NewGetStatementsParams creates a new GetStatementsParams object with the default values initialized.

func NewGetStatementsParamsWithContext

func NewGetStatementsParamsWithContext(ctx context.Context) *GetStatementsParams

NewGetStatementsParamsWithContext creates a new GetStatementsParams object with the default values initialized, and the ability to set a context for a request

func NewGetStatementsParamsWithHTTPClient

func NewGetStatementsParamsWithHTTPClient(client *http.Client) *GetStatementsParams

NewGetStatementsParamsWithHTTPClient creates a new GetStatementsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetStatementsParamsWithTimeout

func NewGetStatementsParamsWithTimeout(timeout time.Duration) *GetStatementsParams

NewGetStatementsParamsWithTimeout creates a new GetStatementsParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetStatementsParams) SetAccountID

func (o *GetStatementsParams) SetAccountID(accountID *string)

SetAccountID adds the accountId to the get statements params

func (*GetStatementsParams) SetContainer

func (o *GetStatementsParams) SetContainer(container *string)

SetContainer adds the container to the get statements params

func (*GetStatementsParams) SetContext

func (o *GetStatementsParams) SetContext(ctx context.Context)

SetContext adds the context to the get statements params

func (*GetStatementsParams) SetFromDate

func (o *GetStatementsParams) SetFromDate(fromDate *string)

SetFromDate adds the fromDate to the get statements params

func (*GetStatementsParams) SetHTTPClient

func (o *GetStatementsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get statements params

func (*GetStatementsParams) SetIsLatest

func (o *GetStatementsParams) SetIsLatest(isLatest *string)

SetIsLatest adds the isLatest to the get statements params

func (*GetStatementsParams) SetStatus

func (o *GetStatementsParams) SetStatus(status *string)

SetStatus adds the status to the get statements params

func (*GetStatementsParams) SetTimeout

func (o *GetStatementsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get statements params

func (*GetStatementsParams) WithAccountID

func (o *GetStatementsParams) WithAccountID(accountID *string) *GetStatementsParams

WithAccountID adds the accountID to the get statements params

func (*GetStatementsParams) WithContainer

func (o *GetStatementsParams) WithContainer(container *string) *GetStatementsParams

WithContainer adds the container to the get statements params

func (*GetStatementsParams) WithContext

WithContext adds the context to the get statements params

func (*GetStatementsParams) WithFromDate

func (o *GetStatementsParams) WithFromDate(fromDate *string) *GetStatementsParams

WithFromDate adds the fromDate to the get statements params

func (*GetStatementsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get statements params

func (*GetStatementsParams) WithIsLatest

func (o *GetStatementsParams) WithIsLatest(isLatest *string) *GetStatementsParams

WithIsLatest adds the isLatest to the get statements params

func (*GetStatementsParams) WithStatus

func (o *GetStatementsParams) WithStatus(status *string) *GetStatementsParams

WithStatus adds the status to the get statements params

func (*GetStatementsParams) WithTimeout

func (o *GetStatementsParams) WithTimeout(timeout time.Duration) *GetStatementsParams

WithTimeout adds the timeout to the get statements params

func (*GetStatementsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetStatementsReader

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

GetStatementsReader is a Reader for the GetStatements structure.

func (*GetStatementsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetStatementsUnauthorized

type GetStatementsUnauthorized struct {
}

GetStatementsUnauthorized handles this case with default header values.

Unauthorized

func NewGetStatementsUnauthorized

func NewGetStatementsUnauthorized() *GetStatementsUnauthorized

NewGetStatementsUnauthorized creates a GetStatementsUnauthorized with default headers values

func (*GetStatementsUnauthorized) Error

func (o *GetStatementsUnauthorized) Error() string

Jump to

Keyboard shortcuts

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