cargos

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: 11 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 cargos API

func New

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

New creates a new cargos API client.

func (*Client) POSTCargos

func (a *Client) POSTCargos(params *POSTCargosParams, authInfo runtime.ClientAuthInfoWriter) (*POSTCargosOK, error)

POSTCargos crears cargo

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type POSTCargosBody

type POSTCargosBody struct {

	// Apellidos del cliente.
	// Required: true
	// Max Length: 5
	// Min Length: 2
	Apellidos *string `json:"apellidos"`

	// Ciudad del cliente. p. ej: Lima
	// Required: true
	// Max Length: 30
	// Min Length: 2
	Ciudad *string `json:"ciudad"`

	// Código [ISO-3166-1 Alfa 2](https://es.wikipedia.org/wiki/ISO_3166-1) del país del cliente. p. ej: PE (Perú)
	// Required: true
	// Max Length: 2
	// Min Length: 2
	CodigoPais *string `json:"codigo_pais"`

	// Dirección de correo electrónico del cliente.
	// Required: true
	CorreoElectronico *strfmt.Email `json:"correo_electronico"`

	// Una descripción de la breve sobre el/los producto(s) o servicio(s) que se están vendiendo.
	// Required: true
	// Max Length: 80
	// Min Length: 5
	Descripcion *string `json:"descripcion"`

	// Dirección del cliente.
	// Required: true
	// Max Length: 100
	// Min Length: 5
	Direccion *string `json:"direccion"`

	// Código de la moneda en tres letras (Formato [ISO 4217](https://es.wikipedia.org/wiki/ISO_4217)). p. ej: PEN o USD
	// Required: true
	// Max Length: 3
	// Min Length: 3
	Moneda *string `json:"moneda"`

	// Monto de la venta o cargo. Sin punto decimal. p. ej: 199.00 sería 19900
	// Required: true
	// Maximum: < 9.9999999e+07
	// Minimum: > 1
	Monto *int64 `json:"monto"`

	// Nombres del cliente.
	// Required: true
	// Max Length: 50
	// Min Length: 2
	Nombres *string `json:"nombres"`

	// Identificador de la orden o pedido, debe ser único por cargo. p. ej:  P000007, P000008
	// Required: true
	// Max Length: 80
	// Min Length: 5
	Pedido *string `json:"pedido"`

	// Número de teléfono del cliente.
	// Required: true
	Telefono *int64 `json:"telefono"`

	// Token de tarjeta creado anteriormente.
	// Required: true
	Token *string `json:"token"`

	// Identificador del ciente, podría ser su DNI o correo. p. ej: 71702955
	// Required: true
	// Max Length: 15
	// Min Length: 2
	Usuario *string `json:"usuario"`
}

POSTCargosBody p o s t cargos body swagger:model POSTCargosBody

type POSTCargosOK

type POSTCargosOK struct {
	Payload POSTCargosOKBody
}

POSTCargosOK handles this case with default header values.

POSTCargosOK p o s t cargos o k

func NewPOSTCargosOK

func NewPOSTCargosOK() *POSTCargosOK

NewPOSTCargosOK creates a POSTCargosOK with default headers values

func (*POSTCargosOK) Error

func (o *POSTCargosOK) Error() string

type POSTCargosOKBody

type POSTCargosOKBody struct {

	// creado
	// Required: true
	Creado *int64 `json:"creado"`

	// descripcion
	// Required: true
	Descripcion *string `json:"descripcion"`

	// id
	// Required: true
	ID *string `json:"id"`

	// moneda
	// Required: true
	Moneda *string `json:"moneda"`

	// monto
	// Required: true
	Monto *int64 `json:"monto"`

	// objeto
	// Required: true
	Objeto *string `json:"objeto"`

	// pedido
	// Required: true
	Pedido *string `json:"pedido"`

	// token
	// Required: true
	Token *POSTCargosOKBodyToken `json:"token"`

	// usuario
	// Required: true
	Usuario *string `json:"usuario"`
}

POSTCargosOKBody p o s t cargos o k body swagger:model POSTCargosOKBody

func (*POSTCargosOKBody) Validate

func (o *POSTCargosOKBody) Validate(formats strfmt.Registry) error

Validate validates this p o s t cargos o k body

type POSTCargosOKBodyToken

type POSTCargosOKBodyToken struct {

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

	// objeto
	Objeto string `json:"objeto,omitempty"`

	// tarjeta
	Tarjeta *POSTCargosOKBodyTokenTarjeta `json:"tarjeta,omitempty"`
}

POSTCargosOKBodyToken p o s t cargos o k body token swagger:model POSTCargosOKBodyToken

func (*POSTCargosOKBodyToken) Validate

func (o *POSTCargosOKBodyToken) Validate(formats strfmt.Registry) error

Validate validates this p o s t cargos o k body token

type POSTCargosOKBodyTokenTarjeta

type POSTCargosOKBodyTokenTarjeta struct {

	// apellido
	Apellido string `json:"apellido,omitempty"`

	// bin
	Bin string `json:"bin,omitempty"`

	// emisor
	Emisor string `json:"emisor,omitempty"`

	// marca
	Marca string `json:"marca,omitempty"`

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

	// numero
	Numero string `json:"numero,omitempty"`

	// pais
	Pais string `json:"pais,omitempty"`
}

POSTCargosOKBodyTokenTarjeta p o s t cargos o k body token tarjeta swagger:model POSTCargosOKBodyTokenTarjeta

func (*POSTCargosOKBodyTokenTarjeta) Validate

func (o *POSTCargosOKBodyTokenTarjeta) Validate(formats strfmt.Registry) error

Validate validates this p o s t cargos o k body token tarjeta

type POSTCargosParams

type POSTCargosParams struct {

	/*Authorization*/
	Authorization string
	/*Body*/
	Body POSTCargosBody

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

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

func NewPOSTCargosParams

func NewPOSTCargosParams() *POSTCargosParams

NewPOSTCargosParams creates a new POSTCargosParams object with the default values initialized.

func NewPOSTCargosParamsWithContext

func NewPOSTCargosParamsWithContext(ctx context.Context) *POSTCargosParams

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

func NewPOSTCargosParamsWithHTTPClient

func NewPOSTCargosParamsWithHTTPClient(client *http.Client) *POSTCargosParams

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

func NewPOSTCargosParamsWithTimeout

func NewPOSTCargosParamsWithTimeout(timeout time.Duration) *POSTCargosParams

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

func (*POSTCargosParams) SetAuthorization

func (o *POSTCargosParams) SetAuthorization(authorization string)

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

func (*POSTCargosParams) SetBody

func (o *POSTCargosParams) SetBody(body POSTCargosBody)

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

func (*POSTCargosParams) SetContext

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

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

func (*POSTCargosParams) SetHTTPClient

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

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

func (*POSTCargosParams) SetTimeout

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

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

func (*POSTCargosParams) WithAuthorization

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

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

func (*POSTCargosParams) WithBody

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

func (*POSTCargosParams) WithContext

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

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

func (*POSTCargosParams) WithHTTPClient

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

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

func (*POSTCargosParams) WithTimeout

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

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

func (*POSTCargosParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type POSTCargosReader

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

POSTCargosReader is a Reader for the POSTCargos structure.

func (*POSTCargosReader) ReadResponse

func (o *POSTCargosReader) 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