@@ -68,74 +68,6 @@ func (b *BaseCheck) String() string {
6868 return fmt .Sprintf ("%#v" , b )
6969}
7070
71- type NotificationBlock struct {
72- Alias * string `json:"alias,omitempty" url:"alias,omitempty"`
73- Context * string `json:"context,omitempty" url:"context,omitempty"`
74- Id string `json:"id" url:"id"`
75- Type BlockType `json:"type,omitempty" url:"type,omitempty"`
76- Content * NotificationContent `json:"content,omitempty" url:"content,omitempty"`
77- Locales map [string ]* NotificationContent `json:"locales,omitempty" url:"locales,omitempty"`
78- Checksum * string `json:"checksum,omitempty" url:"checksum,omitempty"`
79-
80- _rawJSON json.RawMessage
81- }
82-
83- func (n * NotificationBlock ) UnmarshalJSON (data []byte ) error {
84- type unmarshaler NotificationBlock
85- var value unmarshaler
86- if err := json .Unmarshal (data , & value ); err != nil {
87- return err
88- }
89- * n = NotificationBlock (value )
90- n ._rawJSON = json .RawMessage (data )
91- return nil
92- }
93-
94- func (n * NotificationBlock ) String () string {
95- if len (n ._rawJSON ) > 0 {
96- if value , err := core .StringifyJSON (n ._rawJSON ); err == nil {
97- return value
98- }
99- }
100- if value , err := core .StringifyJSON (n ); err == nil {
101- return value
102- }
103- return fmt .Sprintf ("%#v" , n )
104- }
105-
106- type NotificationChannel struct {
107- Id string `json:"id" url:"id"`
108- Type * string `json:"type,omitempty" url:"type,omitempty"`
109- Content * NotificationChannelContent `json:"content,omitempty" url:"content,omitempty"`
110- Locales map [string ]* NotificationChannelContent `json:"locales,omitempty" url:"locales,omitempty"`
111- Checksum * string `json:"checksum,omitempty" url:"checksum,omitempty"`
112-
113- _rawJSON json.RawMessage
114- }
115-
116- func (n * NotificationChannel ) UnmarshalJSON (data []byte ) error {
117- type unmarshaler NotificationChannel
118- var value unmarshaler
119- if err := json .Unmarshal (data , & value ); err != nil {
120- return err
121- }
122- * n = NotificationChannel (value )
123- n ._rawJSON = json .RawMessage (data )
124- return nil
125- }
126-
127- func (n * NotificationChannel ) String () string {
128- if len (n ._rawJSON ) > 0 {
129- if value , err := core .StringifyJSON (n ._rawJSON ); err == nil {
130- return value
131- }
132- }
133- if value , err := core .StringifyJSON (n ); err == nil {
134- return value
135- }
136- return fmt .Sprintf ("%#v" , n )
137- }
138-
13971type NotificationGetContentResponse struct {
14072 Blocks []* NotificationBlock `json:"blocks,omitempty" url:"blocks,omitempty"`
14173 Channels []* NotificationChannel `json:"channels,omitempty" url:"channels,omitempty"`
@@ -254,13 +186,3 @@ func (s *SubmissionChecksReplaceResponse) String() string {
254186 }
255187 return fmt .Sprintf ("%#v" , s )
256188}
257-
258- type NotificationDraftUpdateVariationsParams struct {
259- Blocks []* NotificationBlock `json:"blocks,omitempty" url:"blocks,omitempty"`
260- Channels []* NotificationChannel `json:"channels,omitempty" url:"channels,omitempty"`
261- }
262-
263- type NotificationUpdateVariationsParams struct {
264- Blocks []* NotificationBlock `json:"blocks,omitempty" url:"blocks,omitempty"`
265- Channels []* NotificationChannel `json:"channels,omitempty" url:"channels,omitempty"`
266- }
0 commit comments