tokens

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: 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 tokens API

func New

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

New creates a new tokens API client.

func (*Client) POSTTokens

func (a *Client) POSTTokens(params *POSTTokensParams, authInfo runtime.ClientAuthInfoWriter) (*POSTTokensOK, error)

POSTTokens crears token

<p>Crea un token que contiene los detalles de una tarjeta de crédito o débito. <strong>ATENCIÓN</strong>: Este token debe ser generado solamente con el <a target="_blank" href="" class="undefined">CULQI.JS</a> debido a que la información sensible de las tarjetas no puede pasar por tus servidores por motivos de seguridad.</p>

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type POSTTokensBody

type POSTTokensBody struct {

	// a exp
	AExp int64 `json:"a_exp,omitempty"`

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

	// correo electronico
	CorreoElectronico string `json:"correo_electronico,omitempty"`

	// cvv
	Cvv int64 `json:"cvv,omitempty"`

	// guardar
	Guardar bool `json:"guardar,omitempty"`

	// m exp
	MExp int64 `json:"m_exp,omitempty"`

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

	// numero
	Numero int64 `json:"numero,omitempty"`
}

POSTTokensBody p o s t tokens body swagger:model POSTTokensBody

type POSTTokensOK

type POSTTokensOK struct {
	Payload POSTTokensOKBody
}

POSTTokensOK handles this case with default header values.

POSTTokensOK p o s t tokens o k

func NewPOSTTokensOK

func NewPOSTTokensOK() *POSTTokensOK

NewPOSTTokensOK creates a POSTTokensOK with default headers values

func (*POSTTokensOK) Error

func (o *POSTTokensOK) Error() string

type POSTTokensOKBody

type POSTTokensOKBody struct {

	// correo electronico
	// Required: true
	CorreoElectronico *string `json:"correo_electronico"`

	// fecha creacion
	// Required: true
	FechaCreacion *int64 `json:"fecha_creacion"`

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

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

	// tarjeta
	// Required: true
	Tarjeta *POSTTokensOKBodyTarjeta `json:"tarjeta"`
}

POSTTokensOKBody p o s t tokens o k body swagger:model POSTTokensOKBody

func (*POSTTokensOKBody) Validate

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

Validate validates this p o s t tokens o k body

type POSTTokensOKBodyTarjeta

type POSTTokensOKBodyTarjeta struct {

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

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

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

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

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

POSTTokensOKBodyTarjeta p o s t tokens o k body tarjeta swagger:model POSTTokensOKBodyTarjeta

func (*POSTTokensOKBodyTarjeta) Validate

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

Validate validates this p o s t tokens o k body tarjeta

type POSTTokensParams

type POSTTokensParams struct {

	/*Authorization*/
	Authorization string
	/*Body*/
	Body POSTTokensBody

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

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

func NewPOSTTokensParams

func NewPOSTTokensParams() *POSTTokensParams

NewPOSTTokensParams creates a new POSTTokensParams object with the default values initialized.

func NewPOSTTokensParamsWithContext

func NewPOSTTokensParamsWithContext(ctx context.Context) *POSTTokensParams

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

func NewPOSTTokensParamsWithHTTPClient

func NewPOSTTokensParamsWithHTTPClient(client *http.Client) *POSTTokensParams

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

func NewPOSTTokensParamsWithTimeout

func NewPOSTTokensParamsWithTimeout(timeout time.Duration) *POSTTokensParams

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

func (*POSTTokensParams) SetAuthorization

func (o *POSTTokensParams) SetAuthorization(authorization string)

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

func (*POSTTokensParams) SetBody

func (o *POSTTokensParams) SetBody(body POSTTokensBody)

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

func (*POSTTokensParams) SetContext

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

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

func (*POSTTokensParams) SetHTTPClient

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

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

func (*POSTTokensParams) SetTimeout

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

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

func (*POSTTokensParams) WithAuthorization

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

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

func (*POSTTokensParams) WithBody

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

func (*POSTTokensParams) WithContext

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

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

func (*POSTTokensParams) WithHTTPClient

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

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

func (*POSTTokensParams) WithTimeout

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

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

func (*POSTTokensParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type POSTTokensReader

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

POSTTokensReader is a Reader for the POSTTokens structure.

func (*POSTTokensReader) ReadResponse

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