-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
apps_metadata_versions.go
432 lines (377 loc) · 22.5 KB
/
apps_metadata_versions.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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
/**
Copyright (C) 2020 Aaron Sky.
This file is part of asc-go, a package for working with Apple's
App Store Connect API.
asc-go is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
asc-go is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with asc-go. If not, see <http://www.gnu.org/licenses/>.
*/
package asc
import (
"context"
"fmt"
)
// AppStoreVersionState defines model for AppStoreVersionState.
//
// https://developer.apple.com/documentation/appstoreconnectapi/appstoreversionstate
type AppStoreVersionState string
const (
// AppStoreVersionStateDeveloperRejected is an app store version state for DeveloperRejected.
AppStoreVersionStateDeveloperRejected AppStoreVersionState = "DEVELOPER_REJECTED"
// AppStoreVersionStateDeveloperRemovedFromSale is an app store version state for DeveloperRemovedFromSale.
AppStoreVersionStateDeveloperRemovedFromSale AppStoreVersionState = "DEVELOPER_REMOVED_FROM_SALE"
// AppStoreVersionStateInvalidBinary is an app store version state for InvalidBinary.
AppStoreVersionStateInvalidBinary AppStoreVersionState = "INVALID_BINARY"
// AppStoreVersionStateInReview is an app store version state for InReview.
AppStoreVersionStateInReview AppStoreVersionState = "IN_REVIEW"
// AppStoreVersionStateMetadataRejected is an app store version state for MetadataRejected.
AppStoreVersionStateMetadataRejected AppStoreVersionState = "METADATA_REJECTED"
// AppStoreVersionStatePendingAppleRelease is an app store version state for PendingAppleRelease.
AppStoreVersionStatePendingAppleRelease AppStoreVersionState = "PENDING_APPLE_RELEASE"
// AppStoreVersionStatePendingContract is an app store version state for PendingContract.
AppStoreVersionStatePendingContract AppStoreVersionState = "PENDING_CONTRACT"
// AppStoreVersionStatePendingDeveloperRelease is an app store version state for PendingDeveloperRelease.
AppStoreVersionStatePendingDeveloperRelease AppStoreVersionState = "PENDING_DEVELOPER_RELEASE"
// AppStoreVersionStatePreorderReadyForSale is an app store version state for PreorderReadyForSale.
AppStoreVersionStatePreorderReadyForSale AppStoreVersionState = "PREORDER_READY_FOR_SALE"
// AppStoreVersionStatePrepareForSubmission is an app store version state for PrepareForSubmission.
AppStoreVersionStatePrepareForSubmission AppStoreVersionState = "PREPARE_FOR_SUBMISSION"
// AppStoreVersionStateProcessingForAppStore is an app store version state for ProcessingForAppStore.
AppStoreVersionStateProcessingForAppStore AppStoreVersionState = "PROCESSING_FOR_APP_STORE"
// AppStoreVersionStateReadyForSale is an app store version state for ReadyForSale.
AppStoreVersionStateReadyForSale AppStoreVersionState = "READY_FOR_SALE"
// AppStoreVersionStateRejected is an app store version state for Rejected.
AppStoreVersionStateRejected AppStoreVersionState = "REJECTED"
// AppStoreVersionStateRemovedFromSale is an app store version state for RemovedFromSale.
AppStoreVersionStateRemovedFromSale AppStoreVersionState = "REMOVED_FROM_SALE"
// AppStoreVersionStateReplacedWithNewVersion is an app store version state for ReplacedWithNewVersion.
AppStoreVersionStateReplacedWithNewVersion AppStoreVersionState = "REPLACED_WITH_NEW_VERSION"
// AppStoreVersionStateWaitingForExportCompliance is an app store version state for WaitingForExportCompliance.
AppStoreVersionStateWaitingForExportCompliance AppStoreVersionState = "WAITING_FOR_EXPORT_COMPLIANCE"
// AppStoreVersionStateWaitingForReview is an app store version state for WaitingForReview.
AppStoreVersionStateWaitingForReview AppStoreVersionState = "WAITING_FOR_REVIEW"
)
// AppStoreVersionUpdateRequest defines model for AppStoreVersionUpdateRequest.
//
// https://developer.apple.com/documentation/appstoreconnectapi/appstoreversionupdaterequest/data
type appStoreVersionUpdateRequest struct {
Attributes *AppStoreVersionUpdateRequestAttributes `json:"attributes,omitempty"`
ID string `json:"id"`
Relationships *appStoreVersionUpdateRequestRelationships `json:"relationships,omitempty"`
Type string `json:"type"`
}
// AppStoreVersionUpdateRequestAttributes are attributes for AppStoreVersionUpdateRequest
//
// https://developer.apple.com/documentation/appstoreconnectapi/appstoreversionupdaterequest/data/attributes
type AppStoreVersionUpdateRequestAttributes struct {
Copyright *string `json:"copyright,omitempty"`
Downloadable *bool `json:"downloadable,omitempty"`
EarliestReleaseDate *DateTime `json:"earliestReleaseDate,omitempty"`
ReleaseType *string `json:"releaseType,omitempty"`
UsesIDFA *bool `json:"usesIdfa,omitempty"`
VersionString *string `json:"versionString,omitempty"`
}
// appStoreVersionUpdateRequestRelationships are relationships for AppStoreVersionUpdateRequest
//
// https://developer.apple.com/documentation/appstoreconnectapi/appstoreversionupdaterequest/data/relationships
type appStoreVersionUpdateRequestRelationships struct {
Build *relationshipDeclaration `json:"build,omitempty"`
}
// AgeRatingDeclaration defines model for AgeRatingDeclaration.
//
// https://developer.apple.com/documentation/appstoreconnectapi/ageratingdeclaration
type AgeRatingDeclaration struct {
Attributes *AgeRatingDeclarationAttributes `json:"attributes,omitempty"`
ID string `json:"id"`
Links ResourceLinks `json:"links"`
Type string `json:"type"`
}
// AgeRatingDeclarationAttributes defines model for AgeRatingDeclaration.Attributes
//
// https://developer.apple.com/documentation/appstoreconnectapi/ageratingdeclaration/attributes
type AgeRatingDeclarationAttributes struct {
AlcoholTobaccoOrDrugUseOrReferences *string `json:"alcoholTobaccoOrDrugUseOrReferences,omitempty"`
GamblingAndContests *bool `json:"gamblingAndContests,omitempty"`
GamblingSimulated *string `json:"gamblingSimulated,omitempty"`
HorrorOrFearThemes *string `json:"horrorOrFearThemes,omitempty"`
KidsAgeBand *KidsAgeBand `json:"kidsAgeBand,omitempty"`
MatureOrSuggestiveThemes *string `json:"matureOrSuggestiveThemes,omitempty"`
MedicalOrTreatmentInformation *string `json:"medicalOrTreatmentInformation,omitempty"`
ProfanityOrCrudeHumor *string `json:"profanityOrCrudeHumor,omitempty"`
SexualContentGraphicAndNudity *string `json:"sexualContentGraphicAndNudity,omitempty"`
SexualContentOrNudity *string `json:"sexualContentOrNudity,omitempty"`
UnrestrictedWebAccess *bool `json:"unrestrictedWebAccess,omitempty"`
ViolenceCartoonOrFantasy *string `json:"violenceCartoonOrFantasy,omitempty"`
ViolenceRealistic *string `json:"violenceRealistic,omitempty"`
ViolenceRealisticProlongedGraphicOrSadistic *string `json:"violenceRealisticProlongedGraphicOrSadistic,omitempty"`
}
// AppStoreVersion defines model for AppStoreVersion.
//
// https://developer.apple.com/documentation/appstoreconnectapi/appstoreversion
type AppStoreVersion struct {
Attributes *AppStoreVersionAttributes `json:"attributes,omitempty"`
ID string `json:"id"`
Links ResourceLinks `json:"links"`
Relationships *AppStoreVersionRelationships `json:"relationships,omitempty"`
Type string `json:"type"`
}
// AppStoreVersionAttributes defines model for AppStoreVersion.Attributes
//
// https://developer.apple.com/documentation/appstoreconnectapi/appstoreversion/attributes
type AppStoreVersionAttributes struct {
AppStoreState *AppStoreVersionState `json:"appStoreState,omitempty"`
Copyright *string `json:"copyright,omitempty"`
CreatedDate *DateTime `json:"createdDate,omitempty"`
Downloadable *bool `json:"downloadable,omitempty"`
EarliestReleaseDate *DateTime `json:"earliestReleaseDate,omitempty"`
Platform *Platform `json:"platform,omitempty"`
ReleaseType *string `json:"releaseType,omitempty"`
UsesIDFA *bool `json:"usesIdfa,omitempty"`
VersionString *string `json:"versionString,omitempty"`
}
// AppStoreVersionRelationships defines model for AppStoreVersion.Relationships
//
// https://developer.apple.com/documentation/appstoreconnectapi/appstoreversion/relationships
type AppStoreVersionRelationships struct {
AgeRatingDeclaration *Relationship `json:"ageRatingDeclaration,omitempty"`
App *Relationship `json:"app,omitempty"`
AppStoreReviewDetail *Relationship `json:"appStoreReviewDetail,omitempty"`
AppStoreVersionLocalizations *PagedRelationship `json:"appStoreVersionLocalizations,omitempty"`
AppStoreVersionPhasedRelease *Relationship `json:"appStoreVersionPhasedRelease,omitempty"`
AppStoreVersionSubmission *Relationship `json:"appStoreVersionSubmission,omitempty"`
Build *Relationship `json:"build,omitempty"`
IDFADeclaration *Relationship `json:"idfaDeclaration,omitempty"`
RoutingAppCoverage *Relationship `json:"routingAppCoverage,omitempty"`
}
// AppStoreVersionResponse defines model for AppStoreVersionResponse.
//
// https://developer.apple.com/documentation/appstoreconnectapi/appstoreversionresponse
type AppStoreVersionResponse struct {
Data AppStoreVersion `json:"data"`
Included []AppStoreVersionResponseIncluded `json:"included,omitempty"`
Links DocumentLinks `json:"links"`
}
// AppStoreVersionsResponse defines model for AppStoreVersionsResponse.
//
// https://developer.apple.com/documentation/appstoreconnectapi/appstoreversionsresponse
type AppStoreVersionsResponse struct {
Data []AppStoreVersion `json:"data"`
Included []AppStoreVersionResponseIncluded `json:"included,omitempty"`
Links PagedDocumentLinks `json:"links"`
Meta *PagingInformation `json:"meta,omitempty"`
}
// AppStoreVersionResponseIncluded is a heterogenous wrapper for the possible types that can be returned
// in a AppStoreVersionResponse or AppStoreVersionsResponse.
type AppStoreVersionResponseIncluded included
// AppStoreVersionCreateRequest defines model for AppStoreVersionCreateRequest.
//
// https://developer.apple.com/documentation/appstoreconnectapi/appstoreversioncreaterequest/data
type appStoreVersionCreateRequest struct {
Attributes AppStoreVersionCreateRequestAttributes `json:"attributes"`
Relationships appStoreVersionCreateRequestRelationships `json:"relationships"`
Type string `json:"type"`
}
// AppStoreVersionCreateRequestAttributes are attributes for AppStoreVersionCreateRequest
//
// https://developer.apple.com/documentation/appstoreconnectapi/appstoreversioncreaterequest/data/attributes
type AppStoreVersionCreateRequestAttributes struct {
Copyright *string `json:"copyright,omitempty"`
EarliestReleaseDate *DateTime `json:"earliestReleaseDate,omitempty"`
Platform Platform `json:"platform"`
ReleaseType *string `json:"releaseType,omitempty"`
UsesIDFA *bool `json:"usesIdfa,omitempty"`
VersionString string `json:"versionString"`
}
// AppStoreVersionCreateRequestRelationships are relationships for AppStoreVersionCreateRequest
//
// https://developer.apple.com/documentation/appstoreconnectapi/appstoreversioncreaterequest/data/relationships
type appStoreVersionCreateRequestRelationships struct {
App relationshipDeclaration `json:"app"`
Build *relationshipDeclaration `json:"build,omitempty"`
}
// AppStoreVersionBuildLinkageResponse defines model for AppStoreVersionBuildLinkageResponse.
//
// https://developer.apple.com/documentation/appstoreconnectapi/appstoreversionbuildlinkageresponse
type AppStoreVersionBuildLinkageResponse struct {
Data RelationshipData `json:"data"`
Links DocumentLinks `json:"links"`
}
// ListAppStoreVersionsQuery are query options for ListAppStoreVersions
//
// https://developer.apple.com/documentation/appstoreconnectapi/list_all_app_store_versions_for_an_app
type ListAppStoreVersionsQuery struct {
FieldsApps []string `url:"fields[apps],omitempty"`
FieldsAppStoreVersionSubmissions []string `url:"fields[appStoreVersionSubmissions],omitempty"`
FieldsBuilds []string `url:"fields[builds],omitempty"`
FieldsAppStoreVersions []string `url:"fields[appStoreVersions],omitempty"`
FieldsAppStoreReviewDetails []string `url:"fields[appStoreReviewDetails],omitempty"`
FieldsAgeRatingDeclarations []string `url:"fields[ageRatingDeclarations],omitempty"`
FieldsAppStoreVersionPhasedReleases []string `url:"fields[appStoreVersionPhasedReleases],omitempty"`
FieldsRoutingAppCoverages []string `url:"fields[routingAppCoverages],omitempty"`
FieldsIDFADeclarations []string `url:"fields[idfaDeclarations],omitempty"`
Limit int `url:"limit,omitempty"`
Include []string `url:"include,omitempty"`
FilterID []string `url:"filter[id],omitempty"`
FilterVersionString []string `url:"filter[versionString],omitempty"`
FilterPlatform []string `url:"filter[platform],omitempty"`
FilterAppStoreState []string `url:"filter[appStoreState],omitempty"`
Cursor string `url:"cursor,omitempty"`
}
// GetAppStoreVersionQuery are query options for GetAppStoreVersion
//
// https://developer.apple.com/documentation/appstoreconnectapi/read_app_store_version_information
type GetAppStoreVersionQuery struct {
FieldsAppStoreVersions []string `url:"fields[appStoreVersions],omitempty"`
FieldsAppStoreVersionSubmissions []string `url:"fields[appStoreVersionSubmissions],omitempty"`
FieldsBuilds []string `url:"fields[builds],omitempty"`
FieldsAppStoreReviewDetails []string `url:"fields[appStoreReviewDetails],omitempty"`
FieldsAgeRatingDeclarations []string `url:"fields[ageRatingDeclarations],omitempty"`
FieldsAppStoreVersionPhasedReleases []string `url:"fields[appStoreVersionPhasedReleases],omitempty"`
FieldsRoutingAppCoverages []string `url:"fields[routingAppCoverages],omitempty"`
FieldsIDFADeclarations []string `url:"fields[idfaDeclarations],omitempty"`
FieldsAppStoreVersionLocalizations []string `url:"fields[appStoreVersionLocalizations],omitempty"`
Include []string `url:"include,omitempty"`
LimitAppStoreVersionLocalizations int `url:"limit[appStoreVersionLocalizations],omitempty"`
}
// GetAgeRatingDeclarationForAppStoreVersionQuery are query options for GetAgeRatingDeclarationForAppStoreVersion
//
// https://developer.apple.com/documentation/appstoreconnectapi/read_the_age_rating_declaration_information_of_an_app_store_version
type GetAgeRatingDeclarationForAppStoreVersionQuery struct {
FieldsAgeRatingDeclarations []string `url:"fields[ageRatingDeclarations],omitempty"`
}
// ListAppStoreVersionsForApp gets a list of all App Store versions of an app across all platforms.
//
// https://developer.apple.com/documentation/appstoreconnectapi/list_all_app_store_versions_for_an_app
func (s *AppsService) ListAppStoreVersionsForApp(ctx context.Context, id string, params *ListAppStoreVersionsQuery) (*AppStoreVersionsResponse, *Response, error) {
url := fmt.Sprintf("apps/%s/appStoreVersions", id)
res := new(AppStoreVersionsResponse)
resp, err := s.client.get(ctx, url, params, res)
return res, resp, err
}
// GetAppStoreVersion gets information for a specific app store version.
//
// https://developer.apple.com/documentation/appstoreconnectapi/read_app_store_version_information
func (s *AppsService) GetAppStoreVersion(ctx context.Context, id string, params *GetAppStoreVersionQuery) (*AppStoreVersionResponse, *Response, error) {
url := fmt.Sprintf("appStoreVersions/%s", id)
res := new(AppStoreVersionResponse)
resp, err := s.client.get(ctx, url, params, res)
return res, resp, err
}
// CreateAppStoreVersion adds a new App Store version or platform to an app.
//
// https://developer.apple.com/documentation/appstoreconnectapi/create_an_app_store_version
func (s *AppsService) CreateAppStoreVersion(ctx context.Context, attributes AppStoreVersionCreateRequestAttributes, appID string, buildID *string) (*AppStoreVersionResponse, *Response, error) {
req := appStoreVersionCreateRequest{
Attributes: attributes,
Relationships: appStoreVersionCreateRequestRelationships{
App: *newRelationshipDeclaration(&appID, "apps"),
},
Type: "appStoreVersions",
}
if buildID != nil {
req.Relationships.Build = newRelationshipDeclaration(buildID, "builds")
}
res := new(AppStoreVersionResponse)
resp, err := s.client.post(ctx, "appStoreVersions", newRequestBody(req), res)
return res, resp, err
}
// UpdateAppStoreVersion updates the app store version for a specific app.
//
// https://developer.apple.com/documentation/appstoreconnectapi/modify_an_app_store_version
func (s *AppsService) UpdateAppStoreVersion(ctx context.Context, id string, attributes *AppStoreVersionUpdateRequestAttributes, buildID *string) (*AppStoreVersionResponse, *Response, error) {
req := appStoreVersionUpdateRequest{
Attributes: attributes,
ID: id,
Type: "appStoreVersions",
}
if buildID != nil {
req.Relationships = &appStoreVersionUpdateRequestRelationships{
Build: newRelationshipDeclaration(buildID, "builds"),
}
}
url := fmt.Sprintf("appStoreVersions/%s", id)
res := new(AppStoreVersionResponse)
resp, err := s.client.patch(ctx, url, newRequestBody(req), res)
return res, resp, err
}
// DeleteAppStoreVersion deletes an app store version that is associated with an app.
//
// https://developer.apple.com/documentation/appstoreconnectapi/delete_an_app_store_version
func (s *AppsService) DeleteAppStoreVersion(ctx context.Context, id string) (*Response, error) {
url := fmt.Sprintf("appStoreVersions/%s", id)
return s.client.delete(ctx, url, nil)
}
// GetBuildIDForAppStoreVersion gets the ID of the build that is attached to a specific App Store version.
//
// https://developer.apple.com/documentation/appstoreconnectapi/get_the_build_id_for_an_app_store_version
func (s *AppsService) GetBuildIDForAppStoreVersion(ctx context.Context, id string) (*AppStoreVersionBuildLinkageResponse, *Response, error) {
url := fmt.Sprintf("appStoreVersions/%s/relationships/build", id)
res := new(AppStoreVersionBuildLinkageResponse)
resp, err := s.client.get(ctx, url, nil, res)
return res, resp, err
}
// UpdateBuildForAppStoreVersion changes the build that is attached to a specific App Store version.
//
// https://developer.apple.com/documentation/appstoreconnectapi/modify_the_build_for_an_app_store_version
func (s *AppsService) UpdateBuildForAppStoreVersion(ctx context.Context, id string, buildID *string) (*AppStoreVersionBuildLinkageResponse, *Response, error) {
linkage := newRelationshipDeclaration(buildID, "builds")
url := fmt.Sprintf("appStoreVersions/%s/relationships/build", id)
res := new(AppStoreVersionBuildLinkageResponse)
resp, err := s.client.patch(ctx, url, newRequestBody(linkage), res)
return res, resp, err
}
// GetAgeRatingDeclarationForAppStoreVersion gets the age-related information declared for your app.
//
// https://developer.apple.com/documentation/appstoreconnectapi/read_the_age_rating_declaration_information_of_an_app_store_version
func (s *AppsService) GetAgeRatingDeclarationForAppStoreVersion(ctx context.Context, id string, params *GetAgeRatingDeclarationForAppStoreVersionQuery) (*AgeRatingDeclarationResponse, *Response, error) {
url := fmt.Sprintf("appStoreVersions/%s/ageRatingDeclaration", id)
res := new(AgeRatingDeclarationResponse)
resp, err := s.client.get(ctx, url, params, res)
return res, resp, err
}
// UnmarshalJSON is a custom unmarshaller for the heterogenous data stored in AppStoreVersionResponseIncluded.
func (i *AppStoreVersionResponseIncluded) UnmarshalJSON(b []byte) error {
typeName, inner, err := unmarshalInclude(b)
i.Type = typeName
i.inner = inner
return err
}
// AgeRatingDeclaration returns the AgeRatingDeclaration stored within, if one is present.
func (i *AppStoreVersionResponseIncluded) AgeRatingDeclaration() *AgeRatingDeclaration {
return extractIncludedAgeRatingDeclaration(i.inner)
}
// AppStoreVersionLocalization returns the AppStoreVersionLocalization stored within, if one is present.
func (i *AppStoreVersionResponseIncluded) AppStoreVersionLocalization() *AppStoreVersionLocalization {
return extractIncludedAppStoreVersionLocalization(i.inner)
}
// Build returns the Build stored within, if one is present.
func (i *AppStoreVersionResponseIncluded) Build() *Build {
return extractIncludedBuild(i.inner)
}
// AppStoreVersionPhasedRelease returns the AppStoreVersionPhasedRelease stored within, if one is present.
func (i *AppStoreVersionResponseIncluded) AppStoreVersionPhasedRelease() *AppStoreVersionPhasedRelease {
return extractIncludedAppStoreVersionPhasedRelease(i.inner)
}
// RoutingAppCoverage returns the RoutingAppCoverage stored within, if one is present.
func (i *AppStoreVersionResponseIncluded) RoutingAppCoverage() *RoutingAppCoverage {
return extractIncludedRoutingAppCoverage(i.inner)
}
// AppStoreReviewDetail returns the AppStoreReviewDetail stored within, if one is present.
func (i *AppStoreVersionResponseIncluded) AppStoreReviewDetail() *AppStoreReviewDetail {
return extractIncludedAppStoreReviewDetail(i.inner)
}
// AppStoreVersionSubmission returns the AppStoreVersionSubmission stored within, if one is present.
func (i *AppStoreVersionResponseIncluded) AppStoreVersionSubmission() *AppStoreVersionSubmission {
return extractIncludedAppStoreVersionSubmission(i.inner)
}
// IDFADeclaration returns the IDFADeclaration stored within, if one is present.
func (i *AppStoreVersionResponseIncluded) IDFADeclaration() *IDFADeclaration {
return extractIncludedIDFADeclaration(i.inner)
}