Documentation ¶
Index ¶
- Variables
- func ConfirmOrder(id string, body []byte, encryptionData ...byte) (int, string, error)
- func ConfirmTipoOrder(body []byte, encryptionData ...byte) (int, string, error)
- func Create(URL string, body []byte, encryptionData ...byte) (int, string, error)
- func CreateCard(body []byte, encryptionData ...byte) (int, string, error)
- func CreateCharge(body []byte, encryptionData ...byte) (int, string, error)
- func CreateCustomer(body []byte, encryptionData ...byte) (int, string, error)
- func CreateOrder(body []byte, encryptionData ...byte) (int, string, error)
- func CreatePlan(body []byte, encryptionData ...byte) (int, string, error)
- func CreateRefund(body []byte, encryptionData ...byte) (int, string, error)
- func CreateSubscription(body []byte, encryptionData ...byte) (int, string, error)
- func CreateToken(body []byte, encryptionData ...byte) (int, string, error)
- func CreateYape(body []byte, encryptionData ...byte) (int, string, error)
- func Delete(URL string, id string, body []byte) (int, string, error)
- func DeleteCard(id string, body []byte) (int, string, error)
- func DeleteCustomer(id string, body []byte) (int, string, error)
- func DeleteOrder(id string, body []byte) (int, string, error)
- func DeletePlan(id string, body []byte) (int, string, error)
- func DeleteSubscriptions(id string, body []byte) (int, string, error)
- func GetAll(URL string, queryParams url.Values, body []byte) (int, string, error)
- func GetAllCard(queryParams url.Values, body []byte) (int, string, error)
- func GetAllCharge(queryParams url.Values, body []byte) (int, string, error)
- func GetAllCustomer(queryParams url.Values, body []byte) (int, string, error)
- func GetAllOrder(queryParams url.Values, body []byte) (int, string, error)
- func GetAllPlan(queryParams url.Values, body []byte) (int, string, error)
- func GetAllRefund(queryParams url.Values, body []byte) (int, string, error)
- func GetAllSubscription(queryParams url.Values, body []byte) (int, string, error)
- func GetAllToken(queryParams url.Values, body []byte) (int, string, error)
- func GetByIDCard(id string, body []byte) (int, string, error)
- func GetByIDCustomer(id string, body []byte) (int, string, error)
- func GetByIDOrder(id string, body []byte) (int, string, error)
- func GetByIDPlan(id string, body []byte) (int, string, error)
- func GetByIDRefund(id string, body []byte) (int, string, error)
- func GetByIDSubscription(id string, body []byte) (int, string, error)
- func GetByIDToken(id string, body []byte) (int, string, error)
- func GetById(URL string, id string, body []byte) (int, string, error)
- func GetByIdCharge(id string, body []byte) (int, string, error)
- func GetKey() *key
- func Key(publicKey string, secretKey string)
- func Update(URL string, id string, body []byte, encryptionData ...byte) (int, string, error)
- func UpdateCard(id string, body []byte, encryptionData ...byte) (int, string, error)
- func UpdateCharge(id string, body []byte, encryptionData ...byte) (int, string, error)
- func UpdateCustomer(id string, body []byte, encryptionData ...byte) (int, string, error)
- func UpdateOrder(id string, body []byte, encryptionData ...byte) (int, string, error)
- func UpdatePlan(id string, body []byte, encryptionData ...byte) (int, string, error)
- func UpdateRefund(id string, body []byte, encryptionData ...byte) (int, string, error)
- func UpdateSubscription(id string, body []byte, encryptionData ...byte) (int, string, error)
- func UpdateToken(id string, body []byte, encryptionData ...byte) (int, string, error)
- type WrapperResponse
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidRequest = errors.New("La petición tiene una sintaxis inválida") ErrAuthentication = errors.New("La petición no pudo ser procesada debido a problemas con las llaves") ErrParameter = errors.New("Algún parámetro de la petición es inválido") ErrCard = errors.New("No se pudo realizar el cargo a una tarjeta") ErrLimitAPI = errors.New("Estás haciendo muchas peticiones rápidamente al API o superaste tu límite designado") ErrResource = errors.New("El recurso no puede ser encontrado, es inválido o tiene un estado diferente al permitido") ErrAPI = errors.New("Error interno del servidor de Culqi") ErrUnexpected = errors.New("Error inesperado, el código de respuesta no se encuentra controlado") ErrorGenerico = 502 )
Errors API
Functions ¶
func ConfirmOrder ¶
Confirm método para confirmar una orden
func ConfirmTipoOrder ¶
Confirm método para confirmar una orden por tipo
func CreateCard ¶
Create método para crear una tarjeta
func CreateCharge ¶
Create método para crear un cargo
func CreateCustomer ¶
Create método para crear un cliente
func CreateOrder ¶
Create método para crear una orden
func CreatePlan ¶
Create método para crear un plan
func CreateRefund ¶
Create método para crear una devolucion
func CreateSubscription ¶
Create método para crear una Subscripción
func CreateToken ¶
Create método para crear un token
func CreateYape ¶
CreateYape Create método para crear un token yape
func DeleteCard ¶
Delete método para eliminar una tarjeta por id
func DeleteCustomer ¶
Delete método para eliminar un cliente por id
func DeleteOrder ¶
Delete método para eliminar una orden
func DeletePlan ¶
Delete método para eliminar un plan por id
func DeleteSubscriptions ¶
Delete método para eliminar una Subscripción por id
func GetAllCard ¶
GetAll método para obtener la lista de las tarjetas
func GetAllCharge ¶
GetAll método para obtener la lista de Cargos
func GetAllCustomer ¶
GetAll método para obtener la lista de clientes
func GetAllOrder ¶
GetAll método para obtener la lista de Ordenes
func GetAllPlan ¶
GetAll método para obtener la lista de los planes
func GetAllRefund ¶
GetAll método para obtener la lista de devoluciones
func GetAllSubscription ¶
GetAll método para obtener la lista de las subscripciones
func GetAllToken ¶
GetAll método para obtener la lista de tokens
func GetByIDCard ¶
GetByID método para obtener una tarjeta por id
func GetByIDCustomer ¶
GetByID método para obtener un cliente por id
func GetByIDOrder ¶
GetByID método para obtener una orden por id
func GetByIDPlan ¶
GetByID método para obtener un plan por id
func GetByIDRefund ¶
GetByID método para obtener una devolucion por id
func GetByIDSubscription ¶
GetByID método para obtener una Subscripción por id
func GetByIDToken ¶
GetByID método para obtener un token por id
func GetByIdCharge ¶
GetByID método para obtener un cargo por id
func GetKey ¶
func GetKey() *key
func Key(key string) { keyInstance.Key = key }
GetKey retorna la instancia de key
func Update ¶
Update método para agregar o remplazar información a los valores de la metadata de un cargo
func UpdateCard ¶
Update método para agregar o remplazar información a los valores de la metadata de una tarjeta
func UpdateCharge ¶
Update método para agregar o remplazar información a los valores de la metadata de un cargo
func UpdateCustomer ¶
Update método para agregar o remplazar información a los valores de la metadata de un cliente
func UpdateOrder ¶
Update método para agregar o remplazar información a los valores de la metadata de una orden
func UpdatePlan ¶
Update método para agregar o remplazar información a los valores de la metadata de un plan
func UpdateRefund ¶
Update método para agregar o remplazar información a los valores de la metadata de una devolucion
func UpdateSubscription ¶
Update método para agregar o remplazar información a los valores de la metadata de una Subscripción
Types ¶
type WrapperResponse ¶
type WrapperResponse struct { Paging struct { Previous string `json:"previous"` Next string `json:"next"` Cursors struct { Before string `json:"before"` After string `json:"after"` } `json:"cursors"` } `json:"paging"` }
WrapperResponse respuesta generica para respuestas GetAll