planes

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2017 License: MIT Imports: 9 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 planes API

func New

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

New creates a new planes API client.

func (*Client) POSTPlanes

func (a *Client) POSTPlanes(params *POSTPlanesParams, authInfo runtime.ClientAuthInfoWriter) error

POSTPlanes crears plan

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type POSTPlanesBody

type POSTPlanesBody struct {

	// ciclos
	Ciclos int64 `json:"ciclos,omitempty"`

	// codigo comercio
	CodigoComercio string `json:"codigo_comercio,omitempty"`

	// gracia
	Gracia int64 `json:"gracia,omitempty"`

	// gracia medida
	GraciaMedida string `json:"gracia_medida,omitempty"`

	// id
	ID string `json:"id,omitempty"`

	// intervalo
	Intervalo int64 `json:"intervalo,omitempty"`

	// moneda
	Moneda string `json:"moneda,omitempty"`

	// monto
	Monto string `json:"monto,omitempty"`

	// nombre
	Nombre string `json:"nombre,omitempty"`

	// periodo
	Periodo string `json:"periodo,omitempty"`
}

POSTPlanesBody p o s t planes body swagger:model POSTPlanesBody

type POSTPlanesDefault

type POSTPlanesDefault struct {
	Payload POSTPlanesDefaultBody
	// contains filtered or unexported fields
}

POSTPlanesDefault handles this case with default header values.

POSTPlanesDefault p o s t planes default

func NewPOSTPlanesDefault

func NewPOSTPlanesDefault(code int) *POSTPlanesDefault

NewPOSTPlanesDefault creates a POSTPlanesDefault with default headers values

func (*POSTPlanesDefault) Code

func (o *POSTPlanesDefault) Code() int

Code gets the status code for the p o s t planes default response

func (*POSTPlanesDefault) Error

func (o *POSTPlanesDefault) Error() string

type POSTPlanesDefaultBody

type POSTPlanesDefaultBody interface{}

POSTPlanesDefaultBody p o s t planes default body swagger:model POSTPlanesDefaultBody

type POSTPlanesParams

type POSTPlanesParams struct {

	/*Authorization*/
	Authorization string
	/*Body*/
	Body POSTPlanesBody

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

POSTPlanesParams contains all the parameters to send to the API endpoint for the p o s t planes operation typically these are written to a http.Request

func NewPOSTPlanesParams

func NewPOSTPlanesParams() *POSTPlanesParams

NewPOSTPlanesParams creates a new POSTPlanesParams object with the default values initialized.

func NewPOSTPlanesParamsWithContext

func NewPOSTPlanesParamsWithContext(ctx context.Context) *POSTPlanesParams

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

func NewPOSTPlanesParamsWithHTTPClient

func NewPOSTPlanesParamsWithHTTPClient(client *http.Client) *POSTPlanesParams

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

func NewPOSTPlanesParamsWithTimeout

func NewPOSTPlanesParamsWithTimeout(timeout time.Duration) *POSTPlanesParams

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

func (*POSTPlanesParams) SetAuthorization

func (o *POSTPlanesParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the p o s t planes params

func (*POSTPlanesParams) SetBody

func (o *POSTPlanesParams) SetBody(body POSTPlanesBody)

SetBody adds the body to the p o s t planes params

func (*POSTPlanesParams) SetContext

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

SetContext adds the context to the p o s t planes params

func (*POSTPlanesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the p o s t planes params

func (*POSTPlanesParams) SetTimeout

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

SetTimeout adds the timeout to the p o s t planes params

func (*POSTPlanesParams) WithAuthorization

func (o *POSTPlanesParams) WithAuthorization(authorization string) *POSTPlanesParams

WithAuthorization adds the authorization to the p o s t planes params

func (*POSTPlanesParams) WithBody

WithBody adds the body to the p o s t planes params

func (*POSTPlanesParams) WithContext

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

WithContext adds the context to the p o s t planes params

func (*POSTPlanesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the p o s t planes params

func (*POSTPlanesParams) WithTimeout

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

WithTimeout adds the timeout to the p o s t planes params

func (*POSTPlanesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type POSTPlanesReader

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

POSTPlanesReader is a Reader for the POSTPlanes structure.

func (*POSTPlanesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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