Documentation ¶
Index ¶
- type Client
- func (a *Client) GetV1Transactions(params *GetV1TransactionsParams, opts ...ClientOption) (*GetV1TransactionsOK, error)
- func (a *Client) GetV1TransactionsID(params *GetV1TransactionsIDParams, opts ...ClientOption) (*GetV1TransactionsIDOK, error)
- func (a *Client) GetV1TransactionsIDEvents(params *GetV1TransactionsIDEventsParams, opts ...ClientOption) (*GetV1TransactionsIDEventsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetV1TransactionsIDEventsOK
- func (o *GetV1TransactionsIDEventsOK) Code() int
- func (o *GetV1TransactionsIDEventsOK) Error() string
- func (o *GetV1TransactionsIDEventsOK) GetPayload() *GetV1TransactionsIDEventsOKBody
- func (o *GetV1TransactionsIDEventsOK) IsClientError() bool
- func (o *GetV1TransactionsIDEventsOK) IsCode(code int) bool
- func (o *GetV1TransactionsIDEventsOK) IsRedirect() bool
- func (o *GetV1TransactionsIDEventsOK) IsServerError() bool
- func (o *GetV1TransactionsIDEventsOK) IsSuccess() bool
- func (o *GetV1TransactionsIDEventsOK) String() string
- type GetV1TransactionsIDEventsOKBody
- func (o *GetV1TransactionsIDEventsOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetV1TransactionsIDEventsOKBody) MarshalBinary() ([]byte, error)
- func (o GetV1TransactionsIDEventsOKBody) MarshalJSON() ([]byte, error)
- func (o *GetV1TransactionsIDEventsOKBody) UnmarshalBinary(b []byte) error
- func (o *GetV1TransactionsIDEventsOKBody) UnmarshalJSON(raw []byte) error
- func (o *GetV1TransactionsIDEventsOKBody) Validate(formats strfmt.Registry) error
- type GetV1TransactionsIDEventsParams
- func NewGetV1TransactionsIDEventsParams() *GetV1TransactionsIDEventsParams
- func NewGetV1TransactionsIDEventsParamsWithContext(ctx context.Context) *GetV1TransactionsIDEventsParams
- func NewGetV1TransactionsIDEventsParamsWithHTTPClient(client *http.Client) *GetV1TransactionsIDEventsParams
- func NewGetV1TransactionsIDEventsParamsWithTimeout(timeout time.Duration) *GetV1TransactionsIDEventsParams
- func (o *GetV1TransactionsIDEventsParams) SetContext(ctx context.Context)
- func (o *GetV1TransactionsIDEventsParams) SetDefaults()
- func (o *GetV1TransactionsIDEventsParams) SetHTTPClient(client *http.Client)
- func (o *GetV1TransactionsIDEventsParams) SetID(id string)
- func (o *GetV1TransactionsIDEventsParams) SetLimit(limit *int64)
- func (o *GetV1TransactionsIDEventsParams) SetTimeout(timeout time.Duration)
- func (o *GetV1TransactionsIDEventsParams) SetToken(token *string)
- func (o *GetV1TransactionsIDEventsParams) WithContext(ctx context.Context) *GetV1TransactionsIDEventsParams
- func (o *GetV1TransactionsIDEventsParams) WithDefaults() *GetV1TransactionsIDEventsParams
- func (o *GetV1TransactionsIDEventsParams) WithHTTPClient(client *http.Client) *GetV1TransactionsIDEventsParams
- func (o *GetV1TransactionsIDEventsParams) WithID(id string) *GetV1TransactionsIDEventsParams
- func (o *GetV1TransactionsIDEventsParams) WithLimit(limit *int64) *GetV1TransactionsIDEventsParams
- func (o *GetV1TransactionsIDEventsParams) WithTimeout(timeout time.Duration) *GetV1TransactionsIDEventsParams
- func (o *GetV1TransactionsIDEventsParams) WithToken(token *string) *GetV1TransactionsIDEventsParams
- func (o *GetV1TransactionsIDEventsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetV1TransactionsIDEventsReader
- type GetV1TransactionsIDNotFound
- func (o *GetV1TransactionsIDNotFound) Code() int
- func (o *GetV1TransactionsIDNotFound) Error() string
- func (o *GetV1TransactionsIDNotFound) GetPayload() string
- func (o *GetV1TransactionsIDNotFound) IsClientError() bool
- func (o *GetV1TransactionsIDNotFound) IsCode(code int) bool
- func (o *GetV1TransactionsIDNotFound) IsRedirect() bool
- func (o *GetV1TransactionsIDNotFound) IsServerError() bool
- func (o *GetV1TransactionsIDNotFound) IsSuccess() bool
- func (o *GetV1TransactionsIDNotFound) String() string
- type GetV1TransactionsIDOK
- func (o *GetV1TransactionsIDOK) Code() int
- func (o *GetV1TransactionsIDOK) Error() string
- func (o *GetV1TransactionsIDOK) GetPayload() *models.Transaction
- func (o *GetV1TransactionsIDOK) IsClientError() bool
- func (o *GetV1TransactionsIDOK) IsCode(code int) bool
- func (o *GetV1TransactionsIDOK) IsRedirect() bool
- func (o *GetV1TransactionsIDOK) IsServerError() bool
- func (o *GetV1TransactionsIDOK) IsSuccess() bool
- func (o *GetV1TransactionsIDOK) String() string
- type GetV1TransactionsIDParams
- func NewGetV1TransactionsIDParams() *GetV1TransactionsIDParams
- func NewGetV1TransactionsIDParamsWithContext(ctx context.Context) *GetV1TransactionsIDParams
- func NewGetV1TransactionsIDParamsWithHTTPClient(client *http.Client) *GetV1TransactionsIDParams
- func NewGetV1TransactionsIDParamsWithTimeout(timeout time.Duration) *GetV1TransactionsIDParams
- func (o *GetV1TransactionsIDParams) SetContext(ctx context.Context)
- func (o *GetV1TransactionsIDParams) SetDefaults()
- func (o *GetV1TransactionsIDParams) SetHTTPClient(client *http.Client)
- func (o *GetV1TransactionsIDParams) SetID(id string)
- func (o *GetV1TransactionsIDParams) SetTimeout(timeout time.Duration)
- func (o *GetV1TransactionsIDParams) WithContext(ctx context.Context) *GetV1TransactionsIDParams
- func (o *GetV1TransactionsIDParams) WithDefaults() *GetV1TransactionsIDParams
- func (o *GetV1TransactionsIDParams) WithHTTPClient(client *http.Client) *GetV1TransactionsIDParams
- func (o *GetV1TransactionsIDParams) WithID(id string) *GetV1TransactionsIDParams
- func (o *GetV1TransactionsIDParams) WithTimeout(timeout time.Duration) *GetV1TransactionsIDParams
- func (o *GetV1TransactionsIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetV1TransactionsIDReader
- type GetV1TransactionsOK
- func (o *GetV1TransactionsOK) Code() int
- func (o *GetV1TransactionsOK) Error() string
- func (o *GetV1TransactionsOK) GetPayload() *GetV1TransactionsOKBody
- func (o *GetV1TransactionsOK) IsClientError() bool
- func (o *GetV1TransactionsOK) IsCode(code int) bool
- func (o *GetV1TransactionsOK) IsRedirect() bool
- func (o *GetV1TransactionsOK) IsServerError() bool
- func (o *GetV1TransactionsOK) IsSuccess() bool
- func (o *GetV1TransactionsOK) String() string
- type GetV1TransactionsOKBody
- func (o *GetV1TransactionsOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetV1TransactionsOKBody) MarshalBinary() ([]byte, error)
- func (o GetV1TransactionsOKBody) MarshalJSON() ([]byte, error)
- func (o *GetV1TransactionsOKBody) UnmarshalBinary(b []byte) error
- func (o *GetV1TransactionsOKBody) UnmarshalJSON(raw []byte) error
- func (o *GetV1TransactionsOKBody) Validate(formats strfmt.Registry) error
- type GetV1TransactionsParams
- func NewGetV1TransactionsParams() *GetV1TransactionsParams
- func NewGetV1TransactionsParamsWithContext(ctx context.Context) *GetV1TransactionsParams
- func NewGetV1TransactionsParamsWithHTTPClient(client *http.Client) *GetV1TransactionsParams
- func NewGetV1TransactionsParamsWithTimeout(timeout time.Duration) *GetV1TransactionsParams
- func (o *GetV1TransactionsParams) SetAccountID(accountID *string)
- func (o *GetV1TransactionsParams) SetContext(ctx context.Context)
- func (o *GetV1TransactionsParams) SetDefaults()
- func (o *GetV1TransactionsParams) SetFromDate(fromDate *string)
- func (o *GetV1TransactionsParams) SetHTTPClient(client *http.Client)
- func (o *GetV1TransactionsParams) SetLimit(limit *int64)
- func (o *GetV1TransactionsParams) SetStatus(status *string)
- func (o *GetV1TransactionsParams) SetTimeout(timeout time.Duration)
- func (o *GetV1TransactionsParams) SetToDate(toDate *string)
- func (o *GetV1TransactionsParams) SetToken(token *string)
- func (o *GetV1TransactionsParams) WithAccountID(accountID *string) *GetV1TransactionsParams
- func (o *GetV1TransactionsParams) WithContext(ctx context.Context) *GetV1TransactionsParams
- func (o *GetV1TransactionsParams) WithDefaults() *GetV1TransactionsParams
- func (o *GetV1TransactionsParams) WithFromDate(fromDate *string) *GetV1TransactionsParams
- func (o *GetV1TransactionsParams) WithHTTPClient(client *http.Client) *GetV1TransactionsParams
- func (o *GetV1TransactionsParams) WithLimit(limit *int64) *GetV1TransactionsParams
- func (o *GetV1TransactionsParams) WithStatus(status *string) *GetV1TransactionsParams
- func (o *GetV1TransactionsParams) WithTimeout(timeout time.Duration) *GetV1TransactionsParams
- func (o *GetV1TransactionsParams) WithToDate(toDate *string) *GetV1TransactionsParams
- func (o *GetV1TransactionsParams) WithToken(token *string) *GetV1TransactionsParams
- func (o *GetV1TransactionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetV1TransactionsReader
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 transactions API
func (*Client) GetV1Transactions ¶
func (a *Client) GetV1Transactions(params *GetV1TransactionsParams, opts ...ClientOption) (*GetV1TransactionsOK, error)
GetV1Transactions queries transactions Returns a list of transactions. For further details on Pagination, see section above.
Sort order is always descending on date
func (*Client) GetV1TransactionsID ¶
func (a *Client) GetV1TransactionsID(params *GetV1TransactionsIDParams, opts ...ClientOption) (*GetV1TransactionsIDOK, error)
GetV1TransactionsID reads transaction
Returns the identified transaction
func (*Client) GetV1TransactionsIDEvents ¶
func (a *Client) GetV1TransactionsIDEvents(params *GetV1TransactionsIDEventsParams, opts ...ClientOption) (*GetV1TransactionsIDEventsOK, error)
GetV1TransactionsIDEvents queries transaction events
Returns a list of Transaction events. For further details on Pagination, see the section above.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { GetV1Transactions(params *GetV1TransactionsParams, opts ...ClientOption) (*GetV1TransactionsOK, error) GetV1TransactionsID(params *GetV1TransactionsIDParams, opts ...ClientOption) (*GetV1TransactionsIDOK, error) GetV1TransactionsIDEvents(params *GetV1TransactionsIDEventsParams, opts ...ClientOption) (*GetV1TransactionsIDEventsOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new transactions API client.
type GetV1TransactionsIDEventsOK ¶
type GetV1TransactionsIDEventsOK struct {
Payload *GetV1TransactionsIDEventsOKBody
}
GetV1TransactionsIDEventsOK describes a response with status code 200, with default header values.
QueryResponse with a list of Events
func NewGetV1TransactionsIDEventsOK ¶
func NewGetV1TransactionsIDEventsOK() *GetV1TransactionsIDEventsOK
NewGetV1TransactionsIDEventsOK creates a GetV1TransactionsIDEventsOK with default headers values
func (*GetV1TransactionsIDEventsOK) Code ¶
func (o *GetV1TransactionsIDEventsOK) Code() int
Code gets the status code for the get v1 transactions Id events o k response
func (*GetV1TransactionsIDEventsOK) Error ¶
func (o *GetV1TransactionsIDEventsOK) Error() string
func (*GetV1TransactionsIDEventsOK) GetPayload ¶
func (o *GetV1TransactionsIDEventsOK) GetPayload() *GetV1TransactionsIDEventsOKBody
func (*GetV1TransactionsIDEventsOK) IsClientError ¶
func (o *GetV1TransactionsIDEventsOK) IsClientError() bool
IsClientError returns true when this get v1 transactions Id events o k response has a 4xx status code
func (*GetV1TransactionsIDEventsOK) IsCode ¶
func (o *GetV1TransactionsIDEventsOK) IsCode(code int) bool
IsCode returns true when this get v1 transactions Id events o k response a status code equal to that given
func (*GetV1TransactionsIDEventsOK) IsRedirect ¶
func (o *GetV1TransactionsIDEventsOK) IsRedirect() bool
IsRedirect returns true when this get v1 transactions Id events o k response has a 3xx status code
func (*GetV1TransactionsIDEventsOK) IsServerError ¶
func (o *GetV1TransactionsIDEventsOK) IsServerError() bool
IsServerError returns true when this get v1 transactions Id events o k response has a 5xx status code
func (*GetV1TransactionsIDEventsOK) IsSuccess ¶
func (o *GetV1TransactionsIDEventsOK) IsSuccess() bool
IsSuccess returns true when this get v1 transactions Id events o k response has a 2xx status code
func (*GetV1TransactionsIDEventsOK) String ¶
func (o *GetV1TransactionsIDEventsOK) String() string
type GetV1TransactionsIDEventsOKBody ¶
type GetV1TransactionsIDEventsOKBody struct { models.QueryResponse // items Items []*models.Event `json:"items"` }
GetV1TransactionsIDEventsOKBody get v1 transactions ID events o k body swagger:model GetV1TransactionsIDEventsOKBody
func (*GetV1TransactionsIDEventsOKBody) ContextValidate ¶
func (o *GetV1TransactionsIDEventsOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this get v1 transactions ID events o k body based on the context it is used
func (*GetV1TransactionsIDEventsOKBody) MarshalBinary ¶
func (o *GetV1TransactionsIDEventsOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (GetV1TransactionsIDEventsOKBody) MarshalJSON ¶
func (o GetV1TransactionsIDEventsOKBody) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*GetV1TransactionsIDEventsOKBody) UnmarshalBinary ¶
func (o *GetV1TransactionsIDEventsOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*GetV1TransactionsIDEventsOKBody) UnmarshalJSON ¶
func (o *GetV1TransactionsIDEventsOKBody) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type GetV1TransactionsIDEventsParams ¶
type GetV1TransactionsIDEventsParams struct { /* ID. Transaction ID */ ID string /* Limit. Limit resulting response list. Defaults to 100. */ Limit *int64 /* Token. If response comes back and `nextToken` is populated, use that value in this `token` query to continue pagination. */ Token *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetV1TransactionsIDEventsParams contains all the parameters to send to the API endpoint
for the get v1 transactions ID events operation. Typically these are written to a http.Request.
func NewGetV1TransactionsIDEventsParams ¶
func NewGetV1TransactionsIDEventsParams() *GetV1TransactionsIDEventsParams
NewGetV1TransactionsIDEventsParams creates a new GetV1TransactionsIDEventsParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetV1TransactionsIDEventsParamsWithContext ¶
func NewGetV1TransactionsIDEventsParamsWithContext(ctx context.Context) *GetV1TransactionsIDEventsParams
NewGetV1TransactionsIDEventsParamsWithContext creates a new GetV1TransactionsIDEventsParams object with the ability to set a context for a request.
func NewGetV1TransactionsIDEventsParamsWithHTTPClient ¶
func NewGetV1TransactionsIDEventsParamsWithHTTPClient(client *http.Client) *GetV1TransactionsIDEventsParams
NewGetV1TransactionsIDEventsParamsWithHTTPClient creates a new GetV1TransactionsIDEventsParams object with the ability to set a custom HTTPClient for a request.
func NewGetV1TransactionsIDEventsParamsWithTimeout ¶
func NewGetV1TransactionsIDEventsParamsWithTimeout(timeout time.Duration) *GetV1TransactionsIDEventsParams
NewGetV1TransactionsIDEventsParamsWithTimeout creates a new GetV1TransactionsIDEventsParams object with the ability to set a timeout on a request.
func (*GetV1TransactionsIDEventsParams) SetContext ¶
func (o *GetV1TransactionsIDEventsParams) SetContext(ctx context.Context)
SetContext adds the context to the get v1 transactions ID events params
func (*GetV1TransactionsIDEventsParams) SetDefaults ¶
func (o *GetV1TransactionsIDEventsParams) SetDefaults()
SetDefaults hydrates default values in the get v1 transactions ID events params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1TransactionsIDEventsParams) SetHTTPClient ¶
func (o *GetV1TransactionsIDEventsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get v1 transactions ID events params
func (*GetV1TransactionsIDEventsParams) SetID ¶
func (o *GetV1TransactionsIDEventsParams) SetID(id string)
SetID adds the id to the get v1 transactions ID events params
func (*GetV1TransactionsIDEventsParams) SetLimit ¶
func (o *GetV1TransactionsIDEventsParams) SetLimit(limit *int64)
SetLimit adds the limit to the get v1 transactions ID events params
func (*GetV1TransactionsIDEventsParams) SetTimeout ¶
func (o *GetV1TransactionsIDEventsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get v1 transactions ID events params
func (*GetV1TransactionsIDEventsParams) SetToken ¶
func (o *GetV1TransactionsIDEventsParams) SetToken(token *string)
SetToken adds the token to the get v1 transactions ID events params
func (*GetV1TransactionsIDEventsParams) WithContext ¶
func (o *GetV1TransactionsIDEventsParams) WithContext(ctx context.Context) *GetV1TransactionsIDEventsParams
WithContext adds the context to the get v1 transactions ID events params
func (*GetV1TransactionsIDEventsParams) WithDefaults ¶
func (o *GetV1TransactionsIDEventsParams) WithDefaults() *GetV1TransactionsIDEventsParams
WithDefaults hydrates default values in the get v1 transactions ID events params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1TransactionsIDEventsParams) WithHTTPClient ¶
func (o *GetV1TransactionsIDEventsParams) WithHTTPClient(client *http.Client) *GetV1TransactionsIDEventsParams
WithHTTPClient adds the HTTPClient to the get v1 transactions ID events params
func (*GetV1TransactionsIDEventsParams) WithID ¶
func (o *GetV1TransactionsIDEventsParams) WithID(id string) *GetV1TransactionsIDEventsParams
WithID adds the id to the get v1 transactions ID events params
func (*GetV1TransactionsIDEventsParams) WithLimit ¶
func (o *GetV1TransactionsIDEventsParams) WithLimit(limit *int64) *GetV1TransactionsIDEventsParams
WithLimit adds the limit to the get v1 transactions ID events params
func (*GetV1TransactionsIDEventsParams) WithTimeout ¶
func (o *GetV1TransactionsIDEventsParams) WithTimeout(timeout time.Duration) *GetV1TransactionsIDEventsParams
WithTimeout adds the timeout to the get v1 transactions ID events params
func (*GetV1TransactionsIDEventsParams) WithToken ¶
func (o *GetV1TransactionsIDEventsParams) WithToken(token *string) *GetV1TransactionsIDEventsParams
WithToken adds the token to the get v1 transactions ID events params
func (*GetV1TransactionsIDEventsParams) WriteToRequest ¶
func (o *GetV1TransactionsIDEventsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetV1TransactionsIDEventsReader ¶
type GetV1TransactionsIDEventsReader struct {
// contains filtered or unexported fields
}
GetV1TransactionsIDEventsReader is a Reader for the GetV1TransactionsIDEvents structure.
func (*GetV1TransactionsIDEventsReader) ReadResponse ¶
func (o *GetV1TransactionsIDEventsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetV1TransactionsIDNotFound ¶
type GetV1TransactionsIDNotFound struct {
Payload string
}
GetV1TransactionsIDNotFound describes a response with status code 404, with default header values.
identified transaction doesn't exist
func NewGetV1TransactionsIDNotFound ¶
func NewGetV1TransactionsIDNotFound() *GetV1TransactionsIDNotFound
NewGetV1TransactionsIDNotFound creates a GetV1TransactionsIDNotFound with default headers values
func (*GetV1TransactionsIDNotFound) Code ¶
func (o *GetV1TransactionsIDNotFound) Code() int
Code gets the status code for the get v1 transactions Id not found response
func (*GetV1TransactionsIDNotFound) Error ¶
func (o *GetV1TransactionsIDNotFound) Error() string
func (*GetV1TransactionsIDNotFound) GetPayload ¶
func (o *GetV1TransactionsIDNotFound) GetPayload() string
func (*GetV1TransactionsIDNotFound) IsClientError ¶
func (o *GetV1TransactionsIDNotFound) IsClientError() bool
IsClientError returns true when this get v1 transactions Id not found response has a 4xx status code
func (*GetV1TransactionsIDNotFound) IsCode ¶
func (o *GetV1TransactionsIDNotFound) IsCode(code int) bool
IsCode returns true when this get v1 transactions Id not found response a status code equal to that given
func (*GetV1TransactionsIDNotFound) IsRedirect ¶
func (o *GetV1TransactionsIDNotFound) IsRedirect() bool
IsRedirect returns true when this get v1 transactions Id not found response has a 3xx status code
func (*GetV1TransactionsIDNotFound) IsServerError ¶
func (o *GetV1TransactionsIDNotFound) IsServerError() bool
IsServerError returns true when this get v1 transactions Id not found response has a 5xx status code
func (*GetV1TransactionsIDNotFound) IsSuccess ¶
func (o *GetV1TransactionsIDNotFound) IsSuccess() bool
IsSuccess returns true when this get v1 transactions Id not found response has a 2xx status code
func (*GetV1TransactionsIDNotFound) String ¶
func (o *GetV1TransactionsIDNotFound) String() string
type GetV1TransactionsIDOK ¶
type GetV1TransactionsIDOK struct {
Payload *models.Transaction
}
GetV1TransactionsIDOK describes a response with status code 200, with default header values.
the identified Transaction
func NewGetV1TransactionsIDOK ¶
func NewGetV1TransactionsIDOK() *GetV1TransactionsIDOK
NewGetV1TransactionsIDOK creates a GetV1TransactionsIDOK with default headers values
func (*GetV1TransactionsIDOK) Code ¶
func (o *GetV1TransactionsIDOK) Code() int
Code gets the status code for the get v1 transactions Id o k response
func (*GetV1TransactionsIDOK) Error ¶
func (o *GetV1TransactionsIDOK) Error() string
func (*GetV1TransactionsIDOK) GetPayload ¶
func (o *GetV1TransactionsIDOK) GetPayload() *models.Transaction
func (*GetV1TransactionsIDOK) IsClientError ¶
func (o *GetV1TransactionsIDOK) IsClientError() bool
IsClientError returns true when this get v1 transactions Id o k response has a 4xx status code
func (*GetV1TransactionsIDOK) IsCode ¶
func (o *GetV1TransactionsIDOK) IsCode(code int) bool
IsCode returns true when this get v1 transactions Id o k response a status code equal to that given
func (*GetV1TransactionsIDOK) IsRedirect ¶
func (o *GetV1TransactionsIDOK) IsRedirect() bool
IsRedirect returns true when this get v1 transactions Id o k response has a 3xx status code
func (*GetV1TransactionsIDOK) IsServerError ¶
func (o *GetV1TransactionsIDOK) IsServerError() bool
IsServerError returns true when this get v1 transactions Id o k response has a 5xx status code
func (*GetV1TransactionsIDOK) IsSuccess ¶
func (o *GetV1TransactionsIDOK) IsSuccess() bool
IsSuccess returns true when this get v1 transactions Id o k response has a 2xx status code
func (*GetV1TransactionsIDOK) String ¶
func (o *GetV1TransactionsIDOK) String() string
type GetV1TransactionsIDParams ¶
type GetV1TransactionsIDParams struct { /* ID. Transaction ID */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetV1TransactionsIDParams contains all the parameters to send to the API endpoint
for the get v1 transactions ID operation. Typically these are written to a http.Request.
func NewGetV1TransactionsIDParams ¶
func NewGetV1TransactionsIDParams() *GetV1TransactionsIDParams
NewGetV1TransactionsIDParams creates a new GetV1TransactionsIDParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetV1TransactionsIDParamsWithContext ¶
func NewGetV1TransactionsIDParamsWithContext(ctx context.Context) *GetV1TransactionsIDParams
NewGetV1TransactionsIDParamsWithContext creates a new GetV1TransactionsIDParams object with the ability to set a context for a request.
func NewGetV1TransactionsIDParamsWithHTTPClient ¶
func NewGetV1TransactionsIDParamsWithHTTPClient(client *http.Client) *GetV1TransactionsIDParams
NewGetV1TransactionsIDParamsWithHTTPClient creates a new GetV1TransactionsIDParams object with the ability to set a custom HTTPClient for a request.
func NewGetV1TransactionsIDParamsWithTimeout ¶
func NewGetV1TransactionsIDParamsWithTimeout(timeout time.Duration) *GetV1TransactionsIDParams
NewGetV1TransactionsIDParamsWithTimeout creates a new GetV1TransactionsIDParams object with the ability to set a timeout on a request.
func (*GetV1TransactionsIDParams) SetContext ¶
func (o *GetV1TransactionsIDParams) SetContext(ctx context.Context)
SetContext adds the context to the get v1 transactions ID params
func (*GetV1TransactionsIDParams) SetDefaults ¶
func (o *GetV1TransactionsIDParams) SetDefaults()
SetDefaults hydrates default values in the get v1 transactions ID params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1TransactionsIDParams) SetHTTPClient ¶
func (o *GetV1TransactionsIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get v1 transactions ID params
func (*GetV1TransactionsIDParams) SetID ¶
func (o *GetV1TransactionsIDParams) SetID(id string)
SetID adds the id to the get v1 transactions ID params
func (*GetV1TransactionsIDParams) SetTimeout ¶
func (o *GetV1TransactionsIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get v1 transactions ID params
func (*GetV1TransactionsIDParams) WithContext ¶
func (o *GetV1TransactionsIDParams) WithContext(ctx context.Context) *GetV1TransactionsIDParams
WithContext adds the context to the get v1 transactions ID params
func (*GetV1TransactionsIDParams) WithDefaults ¶
func (o *GetV1TransactionsIDParams) WithDefaults() *GetV1TransactionsIDParams
WithDefaults hydrates default values in the get v1 transactions ID params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1TransactionsIDParams) WithHTTPClient ¶
func (o *GetV1TransactionsIDParams) WithHTTPClient(client *http.Client) *GetV1TransactionsIDParams
WithHTTPClient adds the HTTPClient to the get v1 transactions ID params
func (*GetV1TransactionsIDParams) WithID ¶
func (o *GetV1TransactionsIDParams) WithID(id string) *GetV1TransactionsIDParams
WithID adds the id to the get v1 transactions ID params
func (*GetV1TransactionsIDParams) WithTimeout ¶
func (o *GetV1TransactionsIDParams) WithTimeout(timeout time.Duration) *GetV1TransactionsIDParams
WithTimeout adds the timeout to the get v1 transactions ID params
func (*GetV1TransactionsIDParams) WriteToRequest ¶
func (o *GetV1TransactionsIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetV1TransactionsIDReader ¶
type GetV1TransactionsIDReader struct {
// contains filtered or unexported fields
}
GetV1TransactionsIDReader is a Reader for the GetV1TransactionsID structure.
func (*GetV1TransactionsIDReader) ReadResponse ¶
func (o *GetV1TransactionsIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetV1TransactionsOK ¶
type GetV1TransactionsOK struct {
Payload *GetV1TransactionsOKBody
}
GetV1TransactionsOK describes a response with status code 200, with default header values.
QueryResponse with list of Transactions
func NewGetV1TransactionsOK ¶
func NewGetV1TransactionsOK() *GetV1TransactionsOK
NewGetV1TransactionsOK creates a GetV1TransactionsOK with default headers values
func (*GetV1TransactionsOK) Code ¶
func (o *GetV1TransactionsOK) Code() int
Code gets the status code for the get v1 transactions o k response
func (*GetV1TransactionsOK) Error ¶
func (o *GetV1TransactionsOK) Error() string
func (*GetV1TransactionsOK) GetPayload ¶
func (o *GetV1TransactionsOK) GetPayload() *GetV1TransactionsOKBody
func (*GetV1TransactionsOK) IsClientError ¶
func (o *GetV1TransactionsOK) IsClientError() bool
IsClientError returns true when this get v1 transactions o k response has a 4xx status code
func (*GetV1TransactionsOK) IsCode ¶
func (o *GetV1TransactionsOK) IsCode(code int) bool
IsCode returns true when this get v1 transactions o k response a status code equal to that given
func (*GetV1TransactionsOK) IsRedirect ¶
func (o *GetV1TransactionsOK) IsRedirect() bool
IsRedirect returns true when this get v1 transactions o k response has a 3xx status code
func (*GetV1TransactionsOK) IsServerError ¶
func (o *GetV1TransactionsOK) IsServerError() bool
IsServerError returns true when this get v1 transactions o k response has a 5xx status code
func (*GetV1TransactionsOK) IsSuccess ¶
func (o *GetV1TransactionsOK) IsSuccess() bool
IsSuccess returns true when this get v1 transactions o k response has a 2xx status code
func (*GetV1TransactionsOK) String ¶
func (o *GetV1TransactionsOK) String() string
type GetV1TransactionsOKBody ¶
type GetV1TransactionsOKBody struct { models.QueryResponse // items Items []*models.Transaction `json:"items"` }
GetV1TransactionsOKBody get v1 transactions o k body swagger:model GetV1TransactionsOKBody
func (*GetV1TransactionsOKBody) ContextValidate ¶
func (o *GetV1TransactionsOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this get v1 transactions o k body based on the context it is used
func (*GetV1TransactionsOKBody) MarshalBinary ¶
func (o *GetV1TransactionsOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (GetV1TransactionsOKBody) MarshalJSON ¶
func (o GetV1TransactionsOKBody) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*GetV1TransactionsOKBody) UnmarshalBinary ¶
func (o *GetV1TransactionsOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*GetV1TransactionsOKBody) UnmarshalJSON ¶
func (o *GetV1TransactionsOKBody) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type GetV1TransactionsParams ¶
type GetV1TransactionsParams struct { /* AccountID. Filters out transactions of the given account. */ AccountID *string /* FromDate. Filters out transactions with date after or equal to the given date. Format as `yyyy-mm-dd`. */ FromDate *string /* Limit. Limit resulting response list. Defaults to 100. */ Limit *int64 /* Status. Filters out transactions of the given reconciliation status. */ Status *string /* ToDate. Filters out transactions with date before or equal to the given date. Format as `yyyy-mm-dd`. */ ToDate *string /* Token. If response comes back and `nextToken` is populated, use that value in this `token` query to continue pagination. */ Token *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetV1TransactionsParams contains all the parameters to send to the API endpoint
for the get v1 transactions operation. Typically these are written to a http.Request.
func NewGetV1TransactionsParams ¶
func NewGetV1TransactionsParams() *GetV1TransactionsParams
NewGetV1TransactionsParams creates a new GetV1TransactionsParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetV1TransactionsParamsWithContext ¶
func NewGetV1TransactionsParamsWithContext(ctx context.Context) *GetV1TransactionsParams
NewGetV1TransactionsParamsWithContext creates a new GetV1TransactionsParams object with the ability to set a context for a request.
func NewGetV1TransactionsParamsWithHTTPClient ¶
func NewGetV1TransactionsParamsWithHTTPClient(client *http.Client) *GetV1TransactionsParams
NewGetV1TransactionsParamsWithHTTPClient creates a new GetV1TransactionsParams object with the ability to set a custom HTTPClient for a request.
func NewGetV1TransactionsParamsWithTimeout ¶
func NewGetV1TransactionsParamsWithTimeout(timeout time.Duration) *GetV1TransactionsParams
NewGetV1TransactionsParamsWithTimeout creates a new GetV1TransactionsParams object with the ability to set a timeout on a request.
func (*GetV1TransactionsParams) SetAccountID ¶
func (o *GetV1TransactionsParams) SetAccountID(accountID *string)
SetAccountID adds the accountId to the get v1 transactions params
func (*GetV1TransactionsParams) SetContext ¶
func (o *GetV1TransactionsParams) SetContext(ctx context.Context)
SetContext adds the context to the get v1 transactions params
func (*GetV1TransactionsParams) SetDefaults ¶
func (o *GetV1TransactionsParams) SetDefaults()
SetDefaults hydrates default values in the get v1 transactions params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1TransactionsParams) SetFromDate ¶
func (o *GetV1TransactionsParams) SetFromDate(fromDate *string)
SetFromDate adds the fromDate to the get v1 transactions params
func (*GetV1TransactionsParams) SetHTTPClient ¶
func (o *GetV1TransactionsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get v1 transactions params
func (*GetV1TransactionsParams) SetLimit ¶
func (o *GetV1TransactionsParams) SetLimit(limit *int64)
SetLimit adds the limit to the get v1 transactions params
func (*GetV1TransactionsParams) SetStatus ¶
func (o *GetV1TransactionsParams) SetStatus(status *string)
SetStatus adds the status to the get v1 transactions params
func (*GetV1TransactionsParams) SetTimeout ¶
func (o *GetV1TransactionsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get v1 transactions params
func (*GetV1TransactionsParams) SetToDate ¶
func (o *GetV1TransactionsParams) SetToDate(toDate *string)
SetToDate adds the toDate to the get v1 transactions params
func (*GetV1TransactionsParams) SetToken ¶
func (o *GetV1TransactionsParams) SetToken(token *string)
SetToken adds the token to the get v1 transactions params
func (*GetV1TransactionsParams) WithAccountID ¶
func (o *GetV1TransactionsParams) WithAccountID(accountID *string) *GetV1TransactionsParams
WithAccountID adds the accountID to the get v1 transactions params
func (*GetV1TransactionsParams) WithContext ¶
func (o *GetV1TransactionsParams) WithContext(ctx context.Context) *GetV1TransactionsParams
WithContext adds the context to the get v1 transactions params
func (*GetV1TransactionsParams) WithDefaults ¶
func (o *GetV1TransactionsParams) WithDefaults() *GetV1TransactionsParams
WithDefaults hydrates default values in the get v1 transactions params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1TransactionsParams) WithFromDate ¶
func (o *GetV1TransactionsParams) WithFromDate(fromDate *string) *GetV1TransactionsParams
WithFromDate adds the fromDate to the get v1 transactions params
func (*GetV1TransactionsParams) WithHTTPClient ¶
func (o *GetV1TransactionsParams) WithHTTPClient(client *http.Client) *GetV1TransactionsParams
WithHTTPClient adds the HTTPClient to the get v1 transactions params
func (*GetV1TransactionsParams) WithLimit ¶
func (o *GetV1TransactionsParams) WithLimit(limit *int64) *GetV1TransactionsParams
WithLimit adds the limit to the get v1 transactions params
func (*GetV1TransactionsParams) WithStatus ¶
func (o *GetV1TransactionsParams) WithStatus(status *string) *GetV1TransactionsParams
WithStatus adds the status to the get v1 transactions params
func (*GetV1TransactionsParams) WithTimeout ¶
func (o *GetV1TransactionsParams) WithTimeout(timeout time.Duration) *GetV1TransactionsParams
WithTimeout adds the timeout to the get v1 transactions params
func (*GetV1TransactionsParams) WithToDate ¶
func (o *GetV1TransactionsParams) WithToDate(toDate *string) *GetV1TransactionsParams
WithToDate adds the toDate to the get v1 transactions params
func (*GetV1TransactionsParams) WithToken ¶
func (o *GetV1TransactionsParams) WithToken(token *string) *GetV1TransactionsParams
WithToken adds the token to the get v1 transactions params
func (*GetV1TransactionsParams) WriteToRequest ¶
func (o *GetV1TransactionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetV1TransactionsReader ¶
type GetV1TransactionsReader struct {
// contains filtered or unexported fields
}
GetV1TransactionsReader is a Reader for the GetV1Transactions structure.
func (*GetV1TransactionsReader) ReadResponse ¶
func (o *GetV1TransactionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.