You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/controllers/envelope_v3.go
+15-14Lines changed: 15 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -31,24 +31,25 @@ func (e EnvelopeCreateV3) ToCreate() models.EnvelopeCreate {
31
31
}
32
32
}
33
33
34
-
typeEnvelopeV3struct {
35
-
models.Envelope
36
-
Hiddenbool`json:"hidden,omitempty"`// Remove the hidden field
37
-
38
-
Linksstruct {
39
-
Selfstring`json:"self" example:"https://example.com/api/v3/envelopes/45b6b5b9-f746-4ae9-b77b-7688b91f8166"`// The envelope itself
40
-
Transactionsstring`json:"transactions" example:"https://example.com/api/v3/transactions?envelope=45b6b5b9-f746-4ae9-b77b-7688b91f8166"`// The envelope's transactions
41
-
Monthstring`json:"month" example:"https://example.com/api/v3/envelopes/45b6b5b9-f746-4ae9-b77b-7688b91f8166/YYYY-MM"`// The MonthConfig for the envelope
42
-
} `json:"links"`// Links to related resources
34
+
typeEnvelopeV3Linksstruct {
35
+
Selfstring`json:"self" example:"https://example.com/api/v3/envelopes/45b6b5b9-f746-4ae9-b77b-7688b91f8166"`// The envelope itself
36
+
Transactionsstring`json:"transactions" example:"https://example.com/api/v3/transactions?envelope=45b6b5b9-f746-4ae9-b77b-7688b91f8166"`// The envelope's transactions
37
+
Monthstring`json:"month" example:"https://example.com/api/v3/envelopes/45b6b5b9-f746-4ae9-b77b-7688b91f8166/YYYY-MM"`// The MonthConfig for the envelope
43
38
}
44
39
45
-
func (e*EnvelopeV3) links(c*gin.Context) {
40
+
func (l*EnvelopeV3Links) links(c*gin.Context, e models.Envelope) {
suite.Assert().FailNow("Response envelope length does not match!", "Envelope list does not have exactly 1 item, it has %d, Request ID: %s", len(month.Categories[0].Envelopes))
0 commit comments