Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfirmInscriptionResponse ¶
type ConfirmInscriptionResponse struct { ResponseCode int `json:"response_code"` TbkUser string `json:"tbk_user"` AuthorizationCode string `json:"authorization_code"` CardType string `json:"card_type"` CardNumber string `json:"card_number"` }
ConfirmInscriptionResponse struct with contain skeleton json to confirmInscriptionResponse
func GetConfirmInscriptionResponse ¶
func GetConfirmInscriptionResponse(response []byte) (ConfirmInscriptionResponse, error)
GetConfirmInscriptionResponse fascade with return struct ConfirmInscriptionResponse
type CreateInscriptionResponse ¶
type CreateInscriptionResponse struct { Token string `json:"token"` URLWebpay string `json:"url_webpay"` }
CreateInscriptionResponse struct with contain skeleton json to createInscriptionResponse
func GetCreateInscriptionResponse ¶
func GetCreateInscriptionResponse(response []byte) (CreateInscriptionResponse, error)
GetCreateInscriptionResponse fascade with return struct CreateInscriptionRespons
type RefundTransactionResponse ¶
type RefundTransactionResponse struct { Type string `json:"type"` AuthorizationCode string `json:"authorization_code"` AuthorizationDate time.Time `json:"authorization_date"` NullifiedAmount float64 `json:"nullified_amount"` Balance float64 `json:"balance"` ResponseCode int `json:"response_code"` }
func GetRefundTransactionResponse ¶
func GetRefundTransactionResponse(response []byte) (RefundTransactionResponse, error)
GetRefundTransactionResponse fascade with return struct CreateInscriptionRespons
type StatusTransactionResponse ¶
type StatusTransactionResponse struct { BuyOrder string `json:"buy_order"` CardDetail struct { CardNumber string `json:"card_number"` } `json:"card_detail"` AccountingDate string `json:"accounting_date"` TransactionDate time.Time `json:"transaction_date"` Details []struct { Amount int `json:"amount"` Status string `json:"status"` AuthorizationCode string `json:"authorization_code"` PaymentTypeCode string `json:"payment_type_code"` ResponseCode int `json:"response_code"` InstallmentsNumber int `json:"installments_number"` CommerceCode string `json:"commerce_code"` BuyOrder string `json:"buy_order"` } `json:"details"` }
func GetStatusTransactionResponse ¶
func GetStatusTransactionResponse(response []byte) (StatusTransactionResponse, error)
GetStatusTransactionResponse fascade with return struct CreateInscriptionRespons
type TransactionAuthorizeResponse ¶
type TransactionAuthorizeResponse struct { BuyOrder string `json:"buy_order"` CardDetail struct { CardNumber string `json:"card_number"` } `json:"card_detail"` AccountingDate string `json:"accounting_date"` TransactionDate time.Time `json:"transaction_date"` Details []struct { Amount int `json:"amount"` Status string `json:"status"` AuthorizationCode string `json:"authorization_code"` PaymentTypeCode string `json:"payment_type_code"` ResponseCode int `json:"response_code"` InstallmentsNumber int `json:"installments_number"` CommerceCode string `json:"commerce_code"` BuyOrder string `json:"buy_order"` } `json:"details"` }
TransactionAuthorizeResponse struct with contain skeleton json to transactionAuthorizeResponse
func GetTransactionAuthorizeResponse ¶
func GetTransactionAuthorizeResponse(response []byte) (TransactionAuthorizeResponse, error)
GetTransactionAuthorizeResponse fascade with return struct TransactionAuthorizeResponse