-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfondy.go
37 lines (32 loc) · 913 Bytes
/
fondy.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
/*
* Project: banker
* File: fondy.go (4/29/23, 4:37 PM)
*
* Copyright (C) Megakit Systems 2017-2023, Inc - All Rights Reserved
* @link https://www.megakit.pro
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* Written by Anton (antonstremovskyy) Stremovskyy <[email protected]>
*/
package gofondy
import (
"github.com/stremovskyy/gofondy/manager"
"github.com/stremovskyy/gofondy/models"
"github.com/stremovskyy/gofondy/recorder"
)
type gateway struct {
manager manager.FondyManager
options *models.Options
}
func New(options *models.Options) FondyGateway {
return &gateway{
manager: manager.NewManager(options),
options: options,
}
}
func NewWithRecorder(options *models.Options, recorder recorder.Client) FondyGateway {
return &gateway{
manager: manager.NewManagerWithRecorder(options, recorder),
options: options,
}
}