Documentation ¶
Index ¶
- type Client
- type POSTTokensBody
- type POSTTokensOK
- type POSTTokensOKBody
- type POSTTokensOKBodyTarjeta
- type POSTTokensParams
- func (o *POSTTokensParams) SetAuthorization(authorization string)
- func (o *POSTTokensParams) SetBody(body POSTTokensBody)
- func (o *POSTTokensParams) SetContext(ctx context.Context)
- func (o *POSTTokensParams) SetHTTPClient(client *http.Client)
- func (o *POSTTokensParams) SetTimeout(timeout time.Duration)
- func (o *POSTTokensParams) WithAuthorization(authorization string) *POSTTokensParams
- func (o *POSTTokensParams) WithBody(body POSTTokensBody) *POSTTokensParams
- func (o *POSTTokensParams) WithContext(ctx context.Context) *POSTTokensParams
- func (o *POSTTokensParams) WithHTTPClient(client *http.Client) *POSTTokensParams
- func (o *POSTTokensParams) WithTimeout(timeout time.Duration) *POSTTokensParams
- func (o *POSTTokensParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type POSTTokensReader
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
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
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 ¶
func (o *POSTTokensParams) WithBody(body POSTTokensBody) *POSTTokensParams
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.