-
Notifications
You must be signed in to change notification settings - Fork 27
/
client.go
43 lines (31 loc) · 994 Bytes
/
client.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
Adyen Payout API
API version: 68
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package payout
import (
"github.com/adyen/adyen-go-api-library/v8/src/common"
)
// APIClient manages communication with the Adyen Payout API API v68
// In most cases there should be only one, shared, APIClient.
type APIClient struct {
common common.Service // Reuse a single struct instead of allocating one for each service on the heap.
// API Services
InitializationApi *InitializationApi
InstantPayoutsApi *InstantPayoutsApi
ReviewingApi *ReviewingApi
}
// NewAPIClient creates a new API client.
func NewAPIClient(client *common.Client) *APIClient {
c := &APIClient{}
c.common.Client = client
c.common.BasePath = func() string {
return client.Cfg.Endpoint
}
// API Services
c.InitializationApi = (*InitializationApi)(&c.common)
c.InstantPayoutsApi = (*InstantPayoutsApi)(&c.common)
c.ReviewingApi = (*ReviewingApi)(&c.common)
return c
}