Versions in this module Expand all Collapse all v0 v0.7.0 Apr 9, 2023 v0.6.0 Apr 9, 2023 v0.5.0 Apr 8, 2023 v0.4.0 Apr 8, 2023 v0.3.0 Apr 8, 2023 v0.2.0 Apr 8, 2023 Changes in this version type Authorization + Source Source + type Customer struct + CustomerCode string + Email string + FirstName string + Id int + InternationalFormatPhone string + LastName string + Metadata map[string]string + Phone string + RiskAction string type DefaultTransactionService + func (s *DefaultTransactionService) ListForCustomer(customerId string) (*List, error) + type History struct + Message string + Time int + Type string + type Log struct + Attempts int + Errors int + History []History + Input []interface{} + Mobile bool + StartTime int + Success bool + TimeSpent int type Service + ListForCustomer func(customerId string) (*List, error) + type Source struct + EntryPoint string + Identifier interface{} + Source string + Type string v0.1.0 Apr 6, 2023 Changes in this version + type Authorization struct + AuthorizationCode string + Bank string + Bin string + Brand string + CardType string + Channel string + CountryCode string + ExpMonth string + ExpYear string + Last4 string + Resusable bool + Signature string + type AuthorizationRequest struct + Amount int + AuthorizationCode string + Currency string + Email string + Metadata client.Metadata + Reference string + type DefaultTransactionService struct + func (s *DefaultTransactionService) ChargeAuthorization(req *Request) (*Transaction, error) + func (s *DefaultTransactionService) CheckAuthorization(req AuthorizationRequest) (response.Response, error) + func (s *DefaultTransactionService) Export(params response.RequestValues) (response.Response, error) + func (s *DefaultTransactionService) Get(id int) (*Transaction, error) + func (s *DefaultTransactionService) Initialize(txn *Request) (response.Response, error) + func (s *DefaultTransactionService) List() (*List, error) + func (s *DefaultTransactionService) ListN(count, offset int) (*List, error) + func (s *DefaultTransactionService) ReAuthorize(req AuthorizationRequest) (response.Response, error) + func (s *DefaultTransactionService) Timeline(reference string) (*Timeline, error) + func (s *DefaultTransactionService) Totals() (response.Response, error) + func (s *DefaultTransactionService) Verify(reference string) (*Transaction, error) + type List struct + Meta response.ListMeta + Values []Transaction + type Request struct + Amount float32 + AuthorizationCode string + Bearer string + CallbackURL string + Channels []string + Currency string + Email string + InvoiceLimit int + Metadata client.Metadata + Plan string + Reference string + SubAccount string + TransactionCharge int + type Service interface + ChargeAuthorization func(req *Request) (*Transaction, error) + CheckAuthorization func(req AuthorizationRequest) (response.Response, error) + Export func(params response.RequestValues) (response.Response, error) + Get func(id int) (*Transaction, error) + Initialize func(txn *Request) (response.Response, error) + List func() (*List, error) + ListN func(count, offset int) (*List, error) + ReAuthorize func(req AuthorizationRequest) (response.Response, error) + Timeline func(reference string) (*Timeline, error) + Totals func() (response.Response, error) + Verify func(reference string) (*Transaction, error) + type Timeline struct + Attempts int + Authentication string + Channel string + Errors int + History []map[string]interface{} + Input []string + Mobile bool + Success bool + TimeSpent int + type Transaction struct + Amount float32 + Authorization Authorization + Channel string + CreatedAt string + Currency string + Customer customer.Customer + Domain string + Fees int + FeesSplit string + GatewayResponse string + ID int + IPAddress string + Log map[string]interface{} + Message string + Metadata string + PaidAt string + Plan plan.Plan + Reference string + Status string + SubAccount subaccount.SubAccount