We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
in adapter/craftgate.go
func New(apiKey, apiSecret, baseURL string, opts ...ClientOption) (*Client, error) { client := newClient(apiKey, apiSecret) for _, option := range opts { if err := option(client); err != nil { return nil, err } } if client.httpClient == nil { client.httpClient = http.DefaultClient client.httpClient.Timeout = time.Minute * 120 } if client.baseURL == nil { client.baseURL, _ = url.Parse(baseURL) } client.headers = make(map[string]string) return client, nil } func newClient(apiKey, secretKey string) *Client { client := &Client{apiKey: apiKey, secretKey: secretKey} client.Installment = &Installment{Client: client} client.Payment = &Payment{Client: client} client.Onboarding = &Onboarding{Client: client} client.PaymentReporting = &PaymentReporting{Client: client} client.PayByLink = &PayByLink{Client: client} client.Wallet = &Wallet{Client: client} client.Settlement = &Settlement{Client: client} client.SettlementReporting = &SettlementReporting{Client: client} client.FileReporting = &FileReporting{Client: client} client.Fraud = &Fraud{Client: client} client.Hook = &Hook{Client: client} return client }
I do not think check for is nil needed
The text was updated successfully, but these errors were encountered:
No branches or pull requests
in adapter/craftgate.go
I do not think check for is nil needed
The text was updated successfully, but these errors were encountered: