-
Notifications
You must be signed in to change notification settings - Fork 13
/
definitions.go
56 lines (48 loc) · 1.96 KB
/
definitions.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
package models
// ConsumerDetails - Represents the consumer details in the transaction summary event
type ConsumerDetails struct {
Application *AppDetails `json:"application,omitempty"` // marketplace application
PublishedProduct *Product `json:"publishedProduct,omitempty"`
Subscription *Subscription `json:"subscription,omitempty"`
}
// Subscription - Represents the subscription used in transaction summary consumer details
type Subscription struct {
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
}
// AppDetails - struct for app details to report
type AppDetails struct {
ID string `json:"id"`
Name string `json:"name"`
ConsumerOrgID string `json:"consumerOrgId,omitempty"`
}
// AssetResource - Represents the asset resource used in transaction summary provider details event
type AssetResource struct {
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
}
// Product - Represents the product used in the transaction summary provider details event
type Product struct {
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
VersionName string `json:"versionName,omitempty"`
VersionID string `json:"versionId,omitempty"`
}
// Quota - Represents the quota used in the transaction summary provider details event
type Quota struct {
ID string `json:"id,omitempty"`
}
// ProductPlan - Represents the plan used in the transaction summary provider details event
type ProductPlan struct {
ID string `json:"id,omitempty"`
}
// APIDetails - Represents the api used in the transaction summary provider details event
type APIDetails struct {
ID string `json:"id"`
Name string `json:"name"`
Revision int `json:"revision,omitempty"`
TeamID string `json:"teamId,omitempty"`
APIServiceInstance string `json:"apiServiceInstance,omitempty"`
Stage string `json:"-"`
Version string `json:"-"`
}