Versions in this module Expand all Collapse all v1 v1.0.0 Aug 21, 2023 Changes in this version + var ErrAPI = errors.New("Error interno del servidor de Culqi") + var ErrAuthentication = errors.New("La petición no pudo ser procesada debido a problemas con las llaves") + var ErrCard = errors.New("No se pudo realizar el cargo a una tarjeta") + var ErrInvalidRequest = errors.New("La petición tiene una sintaxis inválida") + var ErrLimitAPI = errors.New(...) + var ErrParameter = errors.New("Algún parámetro de la petición es inválido") + var ErrResource = errors.New(...) + var ErrUnexpected = errors.New("Error inesperado, el código de respuesta no se encuentra controlado") + var ErrorGenerico = 502 + 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 struct + Paging struct{ ... }