-
Notifications
You must be signed in to change notification settings - Fork 38
/
ExcessWeightRiskManager.go
127 lines (105 loc) · 4.04 KB
/
ExcessWeightRiskManager.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
// Code generated by mockery. DO NOT EDIT.
package mocks
import (
mock "github.com/stretchr/testify/mock"
appcontext "github.com/transcom/mymove/pkg/appcontext"
models "github.com/transcom/mymove/pkg/models"
uuid "github.com/gofrs/uuid"
)
// ExcessWeightRiskManager is an autogenerated mock type for the ExcessWeightRiskManager type
type ExcessWeightRiskManager struct {
mock.Mock
}
// AcknowledgeExcessWeightRisk provides a mock function with given fields: appCtx, moveID, eTag
func (_m *ExcessWeightRiskManager) AcknowledgeExcessWeightRisk(appCtx appcontext.AppContext, moveID uuid.UUID, eTag string) (*models.Move, error) {
ret := _m.Called(appCtx, moveID, eTag)
var r0 *models.Move
var r1 error
if rf, ok := ret.Get(0).(func(appcontext.AppContext, uuid.UUID, string) (*models.Move, error)); ok {
return rf(appCtx, moveID, eTag)
}
if rf, ok := ret.Get(0).(func(appcontext.AppContext, uuid.UUID, string) *models.Move); ok {
r0 = rf(appCtx, moveID, eTag)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*models.Move)
}
}
if rf, ok := ret.Get(1).(func(appcontext.AppContext, uuid.UUID, string) error); ok {
r1 = rf(appCtx, moveID, eTag)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// UpdateBillableWeightAsTOO provides a mock function with given fields: appCtx, orderID, weight, eTag
func (_m *ExcessWeightRiskManager) UpdateBillableWeightAsTOO(appCtx appcontext.AppContext, orderID uuid.UUID, weight *int, eTag string) (*models.Order, uuid.UUID, error) {
ret := _m.Called(appCtx, orderID, weight, eTag)
var r0 *models.Order
var r1 uuid.UUID
var r2 error
if rf, ok := ret.Get(0).(func(appcontext.AppContext, uuid.UUID, *int, string) (*models.Order, uuid.UUID, error)); ok {
return rf(appCtx, orderID, weight, eTag)
}
if rf, ok := ret.Get(0).(func(appcontext.AppContext, uuid.UUID, *int, string) *models.Order); ok {
r0 = rf(appCtx, orderID, weight, eTag)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*models.Order)
}
}
if rf, ok := ret.Get(1).(func(appcontext.AppContext, uuid.UUID, *int, string) uuid.UUID); ok {
r1 = rf(appCtx, orderID, weight, eTag)
} else {
if ret.Get(1) != nil {
r1 = ret.Get(1).(uuid.UUID)
}
}
if rf, ok := ret.Get(2).(func(appcontext.AppContext, uuid.UUID, *int, string) error); ok {
r2 = rf(appCtx, orderID, weight, eTag)
} else {
r2 = ret.Error(2)
}
return r0, r1, r2
}
// UpdateMaxBillableWeightAsTIO provides a mock function with given fields: appCtx, orderID, weight, remarks, eTag
func (_m *ExcessWeightRiskManager) UpdateMaxBillableWeightAsTIO(appCtx appcontext.AppContext, orderID uuid.UUID, weight *int, remarks *string, eTag string) (*models.Order, uuid.UUID, error) {
ret := _m.Called(appCtx, orderID, weight, remarks, eTag)
var r0 *models.Order
var r1 uuid.UUID
var r2 error
if rf, ok := ret.Get(0).(func(appcontext.AppContext, uuid.UUID, *int, *string, string) (*models.Order, uuid.UUID, error)); ok {
return rf(appCtx, orderID, weight, remarks, eTag)
}
if rf, ok := ret.Get(0).(func(appcontext.AppContext, uuid.UUID, *int, *string, string) *models.Order); ok {
r0 = rf(appCtx, orderID, weight, remarks, eTag)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*models.Order)
}
}
if rf, ok := ret.Get(1).(func(appcontext.AppContext, uuid.UUID, *int, *string, string) uuid.UUID); ok {
r1 = rf(appCtx, orderID, weight, remarks, eTag)
} else {
if ret.Get(1) != nil {
r1 = ret.Get(1).(uuid.UUID)
}
}
if rf, ok := ret.Get(2).(func(appcontext.AppContext, uuid.UUID, *int, *string, string) error); ok {
r2 = rf(appCtx, orderID, weight, remarks, eTag)
} else {
r2 = ret.Error(2)
}
return r0, r1, r2
}
// NewExcessWeightRiskManager creates a new instance of ExcessWeightRiskManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// The first argument is typically a *testing.T value.
func NewExcessWeightRiskManager(t interface {
mock.TestingT
Cleanup(func())
}) *ExcessWeightRiskManager {
mock := &ExcessWeightRiskManager{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}