| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 | 2 |
| 3 library googleapis.androidpublisher.v2; | 3 library googleapis.androidpublisher.v2; |
| 4 | 4 |
| 5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
| 6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
| 7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
| 8 | 8 |
| 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
| (...skipping 2761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2772 } | 2772 } |
| 2773 | 2773 |
| 2774 } | 2774 } |
| 2775 | 2775 |
| 2776 | 2776 |
| 2777 class PurchasesResourceApi { | 2777 class PurchasesResourceApi { |
| 2778 final commons.ApiRequester _requester; | 2778 final commons.ApiRequester _requester; |
| 2779 | 2779 |
| 2780 PurchasesProductsResourceApi get products => new PurchasesProductsResourceApi(
_requester); | 2780 PurchasesProductsResourceApi get products => new PurchasesProductsResourceApi(
_requester); |
| 2781 PurchasesSubscriptionsResourceApi get subscriptions => new PurchasesSubscripti
onsResourceApi(_requester); | 2781 PurchasesSubscriptionsResourceApi get subscriptions => new PurchasesSubscripti
onsResourceApi(_requester); |
| 2782 PurchasesVoidedpurchasesResourceApi get voidedpurchases => new PurchasesVoided
purchasesResourceApi(_requester); |
| 2782 | 2783 |
| 2783 PurchasesResourceApi(commons.ApiRequester client) : | 2784 PurchasesResourceApi(commons.ApiRequester client) : |
| 2784 _requester = client; | 2785 _requester = client; |
| 2785 } | 2786 } |
| 2786 | 2787 |
| 2787 | 2788 |
| 2788 class PurchasesProductsResourceApi { | 2789 class PurchasesProductsResourceApi { |
| 2789 final commons.ApiRequester _requester; | 2790 final commons.ApiRequester _requester; |
| 2790 | 2791 |
| 2791 PurchasesProductsResourceApi(commons.ApiRequester client) : | 2792 PurchasesProductsResourceApi(commons.ApiRequester client) : |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3117 queryParams: _queryParams, | 3118 queryParams: _queryParams, |
| 3118 uploadOptions: _uploadOptions, | 3119 uploadOptions: _uploadOptions, |
| 3119 uploadMedia: _uploadMedia, | 3120 uploadMedia: _uploadMedia, |
| 3120 downloadOptions: _downloadOptions); | 3121 downloadOptions: _downloadOptions); |
| 3121 return _response.then((data) => null); | 3122 return _response.then((data) => null); |
| 3122 } | 3123 } |
| 3123 | 3124 |
| 3124 } | 3125 } |
| 3125 | 3126 |
| 3126 | 3127 |
| 3128 class PurchasesVoidedpurchasesResourceApi { |
| 3129 final commons.ApiRequester _requester; |
| 3130 |
| 3131 PurchasesVoidedpurchasesResourceApi(commons.ApiRequester client) : |
| 3132 _requester = client; |
| 3133 |
| 3134 /** |
| 3135 * Lists the purchases that were cancelled, refunded or charged-back. |
| 3136 * |
| 3137 * Request parameters: |
| 3138 * |
| 3139 * [packageName] - The package name of the application for which voided |
| 3140 * purchases need to be returned (for example, 'com.some.thing'). |
| 3141 * |
| 3142 * [endTime] - The time, in milliseconds since the Epoch, of the newest voided |
| 3143 * in-app product purchase that you want to see in the response. The value of |
| 3144 * this parameter cannot be greater than the current time and is ignored if a |
| 3145 * pagination token is set. Default value is current time. |
| 3146 * |
| 3147 * [maxResults] - null |
| 3148 * |
| 3149 * [startIndex] - null |
| 3150 * |
| 3151 * [startTime] - The time, in milliseconds since the Epoch, of the oldest |
| 3152 * voided in-app product purchase that you want to see in the response. The |
| 3153 * value of this parameter cannot be older than 30 days and is ignored if a |
| 3154 * pagination token is set. Default value is current time minus 30 days. |
| 3155 * |
| 3156 * [token] - null |
| 3157 * |
| 3158 * Completes with a [VoidedPurchasesListResponse]. |
| 3159 * |
| 3160 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3161 * error. |
| 3162 * |
| 3163 * If the used [http.Client] completes with an error when making a REST call, |
| 3164 * this method will complete with the same error. |
| 3165 */ |
| 3166 async.Future<VoidedPurchasesListResponse> list(core.String packageName, {core.
String endTime, core.int maxResults, core.int startIndex, core.String startTime,
core.String token}) { |
| 3167 var _url = null; |
| 3168 var _queryParams = new core.Map(); |
| 3169 var _uploadMedia = null; |
| 3170 var _uploadOptions = null; |
| 3171 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3172 var _body = null; |
| 3173 |
| 3174 if (packageName == null) { |
| 3175 throw new core.ArgumentError("Parameter packageName is required."); |
| 3176 } |
| 3177 if (endTime != null) { |
| 3178 _queryParams["endTime"] = [endTime]; |
| 3179 } |
| 3180 if (maxResults != null) { |
| 3181 _queryParams["maxResults"] = ["${maxResults}"]; |
| 3182 } |
| 3183 if (startIndex != null) { |
| 3184 _queryParams["startIndex"] = ["${startIndex}"]; |
| 3185 } |
| 3186 if (startTime != null) { |
| 3187 _queryParams["startTime"] = [startTime]; |
| 3188 } |
| 3189 if (token != null) { |
| 3190 _queryParams["token"] = [token]; |
| 3191 } |
| 3192 |
| 3193 _url = commons.Escaper.ecapeVariable('$packageName') + '/purchases/voidedpur
chases'; |
| 3194 |
| 3195 var _response = _requester.request(_url, |
| 3196 "GET", |
| 3197 body: _body, |
| 3198 queryParams: _queryParams, |
| 3199 uploadOptions: _uploadOptions, |
| 3200 uploadMedia: _uploadMedia, |
| 3201 downloadOptions: _downloadOptions); |
| 3202 return _response.then((data) => new VoidedPurchasesListResponse.fromJson(dat
a)); |
| 3203 } |
| 3204 |
| 3205 } |
| 3206 |
| 3207 |
| 3127 class ReviewsResourceApi { | 3208 class ReviewsResourceApi { |
| 3128 final commons.ApiRequester _requester; | 3209 final commons.ApiRequester _requester; |
| 3129 | 3210 |
| 3130 ReviewsResourceApi(commons.ApiRequester client) : | 3211 ReviewsResourceApi(commons.ApiRequester client) : |
| 3131 _requester = client; | 3212 _requester = client; |
| 3132 | 3213 |
| 3133 /** | 3214 /** |
| 3134 * Returns a single review. | 3215 * Returns a single review. |
| 3135 * | 3216 * |
| 3136 * Request parameters: | 3217 * Request parameters: |
| 3137 * | 3218 * |
| 3138 * [packageName] - Unique identifier for the Android app for which we want | 3219 * [packageName] - Unique identifier for the Android app for which we want |
| 3139 * reviews; for example, "com.spiffygame". | 3220 * reviews; for example, "com.spiffygame". |
| 3140 * | 3221 * |
| 3141 * [reviewId] - null | 3222 * [reviewId] - null |
| 3142 * | 3223 * |
| 3224 * [translationLanguage] - null |
| 3225 * |
| 3143 * Completes with a [Review]. | 3226 * Completes with a [Review]. |
| 3144 * | 3227 * |
| 3145 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3228 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3146 * error. | 3229 * error. |
| 3147 * | 3230 * |
| 3148 * If the used [http.Client] completes with an error when making a REST call, | 3231 * If the used [http.Client] completes with an error when making a REST call, |
| 3149 * this method will complete with the same error. | 3232 * this method will complete with the same error. |
| 3150 */ | 3233 */ |
| 3151 async.Future<Review> get(core.String packageName, core.String reviewId) { | 3234 async.Future<Review> get(core.String packageName, core.String reviewId, {core.
String translationLanguage}) { |
| 3152 var _url = null; | 3235 var _url = null; |
| 3153 var _queryParams = new core.Map(); | 3236 var _queryParams = new core.Map(); |
| 3154 var _uploadMedia = null; | 3237 var _uploadMedia = null; |
| 3155 var _uploadOptions = null; | 3238 var _uploadOptions = null; |
| 3156 var _downloadOptions = commons.DownloadOptions.Metadata; | 3239 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3157 var _body = null; | 3240 var _body = null; |
| 3158 | 3241 |
| 3159 if (packageName == null) { | 3242 if (packageName == null) { |
| 3160 throw new core.ArgumentError("Parameter packageName is required."); | 3243 throw new core.ArgumentError("Parameter packageName is required."); |
| 3161 } | 3244 } |
| 3162 if (reviewId == null) { | 3245 if (reviewId == null) { |
| 3163 throw new core.ArgumentError("Parameter reviewId is required."); | 3246 throw new core.ArgumentError("Parameter reviewId is required."); |
| 3164 } | 3247 } |
| 3248 if (translationLanguage != null) { |
| 3249 _queryParams["translationLanguage"] = [translationLanguage]; |
| 3250 } |
| 3165 | 3251 |
| 3166 _url = commons.Escaper.ecapeVariable('$packageName') + '/reviews/' + commons
.Escaper.ecapeVariable('$reviewId'); | 3252 _url = commons.Escaper.ecapeVariable('$packageName') + '/reviews/' + commons
.Escaper.ecapeVariable('$reviewId'); |
| 3167 | 3253 |
| 3168 var _response = _requester.request(_url, | 3254 var _response = _requester.request(_url, |
| 3169 "GET", | 3255 "GET", |
| 3170 body: _body, | 3256 body: _body, |
| 3171 queryParams: _queryParams, | 3257 queryParams: _queryParams, |
| 3172 uploadOptions: _uploadOptions, | 3258 uploadOptions: _uploadOptions, |
| 3173 uploadMedia: _uploadMedia, | 3259 uploadMedia: _uploadMedia, |
| 3174 downloadOptions: _downloadOptions); | 3260 downloadOptions: _downloadOptions); |
| 3175 return _response.then((data) => new Review.fromJson(data)); | 3261 return _response.then((data) => new Review.fromJson(data)); |
| 3176 } | 3262 } |
| 3177 | 3263 |
| 3178 /** | 3264 /** |
| 3179 * Returns a list of reviews. | 3265 * Returns a list of reviews. |
| 3180 * | 3266 * |
| 3181 * Request parameters: | 3267 * Request parameters: |
| 3182 * | 3268 * |
| 3183 * [packageName] - Unique identifier for the Android app for which we want | 3269 * [packageName] - Unique identifier for the Android app for which we want |
| 3184 * reviews; for example, "com.spiffygame". | 3270 * reviews; for example, "com.spiffygame". |
| 3185 * | 3271 * |
| 3186 * [maxResults] - null | 3272 * [maxResults] - null |
| 3187 * | 3273 * |
| 3188 * [startIndex] - null | 3274 * [startIndex] - null |
| 3189 * | 3275 * |
| 3190 * [token] - null | 3276 * [token] - null |
| 3191 * | 3277 * |
| 3278 * [translationLanguage] - null |
| 3279 * |
| 3192 * Completes with a [ReviewsListResponse]. | 3280 * Completes with a [ReviewsListResponse]. |
| 3193 * | 3281 * |
| 3194 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3282 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 3195 * error. | 3283 * error. |
| 3196 * | 3284 * |
| 3197 * If the used [http.Client] completes with an error when making a REST call, | 3285 * If the used [http.Client] completes with an error when making a REST call, |
| 3198 * this method will complete with the same error. | 3286 * this method will complete with the same error. |
| 3199 */ | 3287 */ |
| 3200 async.Future<ReviewsListResponse> list(core.String packageName, {core.int maxR
esults, core.int startIndex, core.String token}) { | 3288 async.Future<ReviewsListResponse> list(core.String packageName, {core.int maxR
esults, core.int startIndex, core.String token, core.String translationLanguage}
) { |
| 3201 var _url = null; | 3289 var _url = null; |
| 3202 var _queryParams = new core.Map(); | 3290 var _queryParams = new core.Map(); |
| 3203 var _uploadMedia = null; | 3291 var _uploadMedia = null; |
| 3204 var _uploadOptions = null; | 3292 var _uploadOptions = null; |
| 3205 var _downloadOptions = commons.DownloadOptions.Metadata; | 3293 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3206 var _body = null; | 3294 var _body = null; |
| 3207 | 3295 |
| 3208 if (packageName == null) { | 3296 if (packageName == null) { |
| 3209 throw new core.ArgumentError("Parameter packageName is required."); | 3297 throw new core.ArgumentError("Parameter packageName is required."); |
| 3210 } | 3298 } |
| 3211 if (maxResults != null) { | 3299 if (maxResults != null) { |
| 3212 _queryParams["maxResults"] = ["${maxResults}"]; | 3300 _queryParams["maxResults"] = ["${maxResults}"]; |
| 3213 } | 3301 } |
| 3214 if (startIndex != null) { | 3302 if (startIndex != null) { |
| 3215 _queryParams["startIndex"] = ["${startIndex}"]; | 3303 _queryParams["startIndex"] = ["${startIndex}"]; |
| 3216 } | 3304 } |
| 3217 if (token != null) { | 3305 if (token != null) { |
| 3218 _queryParams["token"] = [token]; | 3306 _queryParams["token"] = [token]; |
| 3219 } | 3307 } |
| 3308 if (translationLanguage != null) { |
| 3309 _queryParams["translationLanguage"] = [translationLanguage]; |
| 3310 } |
| 3220 | 3311 |
| 3221 _url = commons.Escaper.ecapeVariable('$packageName') + '/reviews'; | 3312 _url = commons.Escaper.ecapeVariable('$packageName') + '/reviews'; |
| 3222 | 3313 |
| 3223 var _response = _requester.request(_url, | 3314 var _response = _requester.request(_url, |
| 3224 "GET", | 3315 "GET", |
| 3225 body: _body, | 3316 body: _body, |
| 3226 queryParams: _queryParams, | 3317 queryParams: _queryParams, |
| 3227 uploadOptions: _uploadOptions, | 3318 uploadOptions: _uploadOptions, |
| 3228 uploadMedia: _uploadMedia, | 3319 uploadMedia: _uploadMedia, |
| 3229 downloadOptions: _downloadOptions); | 3320 downloadOptions: _downloadOptions); |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3645 if (lastModified != null) { | 3736 if (lastModified != null) { |
| 3646 _json["lastModified"] = (lastModified).toJson(); | 3737 _json["lastModified"] = (lastModified).toJson(); |
| 3647 } | 3738 } |
| 3648 if (text != null) { | 3739 if (text != null) { |
| 3649 _json["text"] = text; | 3740 _json["text"] = text; |
| 3650 } | 3741 } |
| 3651 return _json; | 3742 return _json; |
| 3652 } | 3743 } |
| 3653 } | 3744 } |
| 3654 | 3745 |
| 3746 class DeviceMetadata { |
| 3747 /** Device CPU make e.g. "Qualcomm" */ |
| 3748 core.String cpuMake; |
| 3749 /** Device CPU model e.g. "MSM8974" */ |
| 3750 core.String cpuModel; |
| 3751 /** Device class (e.g. tablet) */ |
| 3752 core.String deviceClass; |
| 3753 /** OpenGL version */ |
| 3754 core.int glEsVersion; |
| 3755 /** Device manufacturer (e.g. Motorola) */ |
| 3756 core.String manufacturer; |
| 3757 /** Comma separated list of native platforms (e.g. "arm", "arm7") */ |
| 3758 core.String nativePlatform; |
| 3759 /** Device model name (e.g. Droid) */ |
| 3760 core.String productName; |
| 3761 /** Device RAM in Megabytes e.g. "2048" */ |
| 3762 core.int ramMb; |
| 3763 /** Screen density in DPI */ |
| 3764 core.int screenDensityDpi; |
| 3765 /** Screen height in pixels */ |
| 3766 core.int screenHeightPx; |
| 3767 /** Screen width in pixels */ |
| 3768 core.int screenWidthPx; |
| 3769 |
| 3770 DeviceMetadata(); |
| 3771 |
| 3772 DeviceMetadata.fromJson(core.Map _json) { |
| 3773 if (_json.containsKey("cpuMake")) { |
| 3774 cpuMake = _json["cpuMake"]; |
| 3775 } |
| 3776 if (_json.containsKey("cpuModel")) { |
| 3777 cpuModel = _json["cpuModel"]; |
| 3778 } |
| 3779 if (_json.containsKey("deviceClass")) { |
| 3780 deviceClass = _json["deviceClass"]; |
| 3781 } |
| 3782 if (_json.containsKey("glEsVersion")) { |
| 3783 glEsVersion = _json["glEsVersion"]; |
| 3784 } |
| 3785 if (_json.containsKey("manufacturer")) { |
| 3786 manufacturer = _json["manufacturer"]; |
| 3787 } |
| 3788 if (_json.containsKey("nativePlatform")) { |
| 3789 nativePlatform = _json["nativePlatform"]; |
| 3790 } |
| 3791 if (_json.containsKey("productName")) { |
| 3792 productName = _json["productName"]; |
| 3793 } |
| 3794 if (_json.containsKey("ramMb")) { |
| 3795 ramMb = _json["ramMb"]; |
| 3796 } |
| 3797 if (_json.containsKey("screenDensityDpi")) { |
| 3798 screenDensityDpi = _json["screenDensityDpi"]; |
| 3799 } |
| 3800 if (_json.containsKey("screenHeightPx")) { |
| 3801 screenHeightPx = _json["screenHeightPx"]; |
| 3802 } |
| 3803 if (_json.containsKey("screenWidthPx")) { |
| 3804 screenWidthPx = _json["screenWidthPx"]; |
| 3805 } |
| 3806 } |
| 3807 |
| 3808 core.Map toJson() { |
| 3809 var _json = new core.Map(); |
| 3810 if (cpuMake != null) { |
| 3811 _json["cpuMake"] = cpuMake; |
| 3812 } |
| 3813 if (cpuModel != null) { |
| 3814 _json["cpuModel"] = cpuModel; |
| 3815 } |
| 3816 if (deviceClass != null) { |
| 3817 _json["deviceClass"] = deviceClass; |
| 3818 } |
| 3819 if (glEsVersion != null) { |
| 3820 _json["glEsVersion"] = glEsVersion; |
| 3821 } |
| 3822 if (manufacturer != null) { |
| 3823 _json["manufacturer"] = manufacturer; |
| 3824 } |
| 3825 if (nativePlatform != null) { |
| 3826 _json["nativePlatform"] = nativePlatform; |
| 3827 } |
| 3828 if (productName != null) { |
| 3829 _json["productName"] = productName; |
| 3830 } |
| 3831 if (ramMb != null) { |
| 3832 _json["ramMb"] = ramMb; |
| 3833 } |
| 3834 if (screenDensityDpi != null) { |
| 3835 _json["screenDensityDpi"] = screenDensityDpi; |
| 3836 } |
| 3837 if (screenHeightPx != null) { |
| 3838 _json["screenHeightPx"] = screenHeightPx; |
| 3839 } |
| 3840 if (screenWidthPx != null) { |
| 3841 _json["screenWidthPx"] = screenWidthPx; |
| 3842 } |
| 3843 return _json; |
| 3844 } |
| 3845 } |
| 3846 |
| 3655 /** | 3847 /** |
| 3656 * An Entitlement resource indicates a user's current entitlement to an inapp | 3848 * An Entitlement resource indicates a user's current entitlement to an inapp |
| 3657 * item or subscription. | 3849 * item or subscription. |
| 3658 */ | 3850 */ |
| 3659 class Entitlement { | 3851 class Entitlement { |
| 3660 /** | 3852 /** |
| 3661 * This kind represents an entitlement object in the androidpublisher service. | 3853 * This kind represents an entitlement object in the androidpublisher service. |
| 3662 */ | 3854 */ |
| 3663 core.String kind; | 3855 core.String kind; |
| 3664 /** The SKU of the product. */ | 3856 /** The SKU of the product. */ |
| (...skipping 1668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5333 core.int appVersionCode; | 5525 core.int appVersionCode; |
| 5334 /** | 5526 /** |
| 5335 * String version name of the app as installed at the time the review was | 5527 * String version name of the app as installed at the time the review was |
| 5336 * written. May be absent. | 5528 * written. May be absent. |
| 5337 */ | 5529 */ |
| 5338 core.String appVersionName; | 5530 core.String appVersionName; |
| 5339 /** | 5531 /** |
| 5340 * Codename for the reviewer's device, e.g. klte, flounder. May be absent. | 5532 * Codename for the reviewer's device, e.g. klte, flounder. May be absent. |
| 5341 */ | 5533 */ |
| 5342 core.String device; | 5534 core.String device; |
| 5535 /** Some information about the characteristics of the user's device */ |
| 5536 DeviceMetadata deviceMetadata; |
| 5343 /** The last time at which this comment was updated. */ | 5537 /** The last time at which this comment was updated. */ |
| 5344 Timestamp lastModified; | 5538 Timestamp lastModified; |
| 5345 /** | 5539 /** |
| 5540 * Untranslated text of the review, in the case where the review has been |
| 5541 * translated. If the review has not been translated this is left blank. |
| 5542 */ |
| 5543 core.String originalText; |
| 5544 /** |
| 5346 * Language code for the reviewer. This is taken from the device settings so | 5545 * Language code for the reviewer. This is taken from the device settings so |
| 5347 * is not guaranteed to match the language the review is written in. May be | 5546 * is not guaranteed to match the language the review is written in. May be |
| 5348 * absent. | 5547 * absent. |
| 5349 */ | 5548 */ |
| 5350 core.String reviewerLanguage; | 5549 core.String reviewerLanguage; |
| 5351 /** The star rating associated with the review, from 1 to 5. */ | 5550 /** The star rating associated with the review, from 1 to 5. */ |
| 5352 core.int starRating; | 5551 core.int starRating; |
| 5353 /** | 5552 /** |
| 5354 * The content of the comment, i.e. review body. In some cases users have been | 5553 * The content of the comment, i.e. review body. In some cases users have been |
| 5355 * able to write a review with separate title and body; in those cases the | 5554 * able to write a review with separate title and body; in those cases the |
| 5356 * title and body are concatenated and separated by a tab character. | 5555 * title and body are concatenated and separated by a tab character. |
| 5357 */ | 5556 */ |
| 5358 core.String text; | 5557 core.String text; |
| 5558 /** Number of users who have given this review a thumbs down */ |
| 5559 core.int thumbsDownCount; |
| 5560 /** Number of users who have given this review a thumbs up */ |
| 5561 core.int thumbsUpCount; |
| 5359 | 5562 |
| 5360 UserComment(); | 5563 UserComment(); |
| 5361 | 5564 |
| 5362 UserComment.fromJson(core.Map _json) { | 5565 UserComment.fromJson(core.Map _json) { |
| 5363 if (_json.containsKey("androidOsVersion")) { | 5566 if (_json.containsKey("androidOsVersion")) { |
| 5364 androidOsVersion = _json["androidOsVersion"]; | 5567 androidOsVersion = _json["androidOsVersion"]; |
| 5365 } | 5568 } |
| 5366 if (_json.containsKey("appVersionCode")) { | 5569 if (_json.containsKey("appVersionCode")) { |
| 5367 appVersionCode = _json["appVersionCode"]; | 5570 appVersionCode = _json["appVersionCode"]; |
| 5368 } | 5571 } |
| 5369 if (_json.containsKey("appVersionName")) { | 5572 if (_json.containsKey("appVersionName")) { |
| 5370 appVersionName = _json["appVersionName"]; | 5573 appVersionName = _json["appVersionName"]; |
| 5371 } | 5574 } |
| 5372 if (_json.containsKey("device")) { | 5575 if (_json.containsKey("device")) { |
| 5373 device = _json["device"]; | 5576 device = _json["device"]; |
| 5374 } | 5577 } |
| 5578 if (_json.containsKey("deviceMetadata")) { |
| 5579 deviceMetadata = new DeviceMetadata.fromJson(_json["deviceMetadata"]); |
| 5580 } |
| 5375 if (_json.containsKey("lastModified")) { | 5581 if (_json.containsKey("lastModified")) { |
| 5376 lastModified = new Timestamp.fromJson(_json["lastModified"]); | 5582 lastModified = new Timestamp.fromJson(_json["lastModified"]); |
| 5377 } | 5583 } |
| 5584 if (_json.containsKey("originalText")) { |
| 5585 originalText = _json["originalText"]; |
| 5586 } |
| 5378 if (_json.containsKey("reviewerLanguage")) { | 5587 if (_json.containsKey("reviewerLanguage")) { |
| 5379 reviewerLanguage = _json["reviewerLanguage"]; | 5588 reviewerLanguage = _json["reviewerLanguage"]; |
| 5380 } | 5589 } |
| 5381 if (_json.containsKey("starRating")) { | 5590 if (_json.containsKey("starRating")) { |
| 5382 starRating = _json["starRating"]; | 5591 starRating = _json["starRating"]; |
| 5383 } | 5592 } |
| 5384 if (_json.containsKey("text")) { | 5593 if (_json.containsKey("text")) { |
| 5385 text = _json["text"]; | 5594 text = _json["text"]; |
| 5386 } | 5595 } |
| 5596 if (_json.containsKey("thumbsDownCount")) { |
| 5597 thumbsDownCount = _json["thumbsDownCount"]; |
| 5598 } |
| 5599 if (_json.containsKey("thumbsUpCount")) { |
| 5600 thumbsUpCount = _json["thumbsUpCount"]; |
| 5601 } |
| 5387 } | 5602 } |
| 5388 | 5603 |
| 5389 core.Map toJson() { | 5604 core.Map toJson() { |
| 5390 var _json = new core.Map(); | 5605 var _json = new core.Map(); |
| 5391 if (androidOsVersion != null) { | 5606 if (androidOsVersion != null) { |
| 5392 _json["androidOsVersion"] = androidOsVersion; | 5607 _json["androidOsVersion"] = androidOsVersion; |
| 5393 } | 5608 } |
| 5394 if (appVersionCode != null) { | 5609 if (appVersionCode != null) { |
| 5395 _json["appVersionCode"] = appVersionCode; | 5610 _json["appVersionCode"] = appVersionCode; |
| 5396 } | 5611 } |
| 5397 if (appVersionName != null) { | 5612 if (appVersionName != null) { |
| 5398 _json["appVersionName"] = appVersionName; | 5613 _json["appVersionName"] = appVersionName; |
| 5399 } | 5614 } |
| 5400 if (device != null) { | 5615 if (device != null) { |
| 5401 _json["device"] = device; | 5616 _json["device"] = device; |
| 5402 } | 5617 } |
| 5618 if (deviceMetadata != null) { |
| 5619 _json["deviceMetadata"] = (deviceMetadata).toJson(); |
| 5620 } |
| 5403 if (lastModified != null) { | 5621 if (lastModified != null) { |
| 5404 _json["lastModified"] = (lastModified).toJson(); | 5622 _json["lastModified"] = (lastModified).toJson(); |
| 5405 } | 5623 } |
| 5624 if (originalText != null) { |
| 5625 _json["originalText"] = originalText; |
| 5626 } |
| 5406 if (reviewerLanguage != null) { | 5627 if (reviewerLanguage != null) { |
| 5407 _json["reviewerLanguage"] = reviewerLanguage; | 5628 _json["reviewerLanguage"] = reviewerLanguage; |
| 5408 } | 5629 } |
| 5409 if (starRating != null) { | 5630 if (starRating != null) { |
| 5410 _json["starRating"] = starRating; | 5631 _json["starRating"] = starRating; |
| 5411 } | 5632 } |
| 5412 if (text != null) { | 5633 if (text != null) { |
| 5413 _json["text"] = text; | 5634 _json["text"] = text; |
| 5414 } | 5635 } |
| 5636 if (thumbsDownCount != null) { |
| 5637 _json["thumbsDownCount"] = thumbsDownCount; |
| 5638 } |
| 5639 if (thumbsUpCount != null) { |
| 5640 _json["thumbsUpCount"] = thumbsUpCount; |
| 5641 } |
| 5415 return _json; | 5642 return _json; |
| 5416 } | 5643 } |
| 5417 } | 5644 } |
| 5645 |
| 5646 /** |
| 5647 * A VoidedPurchase resource indicates a purchase that was either |
| 5648 * cancelled/refunded/charged-back. |
| 5649 */ |
| 5650 class VoidedPurchase { |
| 5651 /** |
| 5652 * This kind represents a voided purchase object in the androidpublisher |
| 5653 * service. |
| 5654 */ |
| 5655 core.String kind; |
| 5656 /** |
| 5657 * The time at which the purchase was made, in milliseconds since the epoch |
| 5658 * (Jan 1, 1970). |
| 5659 */ |
| 5660 core.String purchaseTimeMillis; |
| 5661 /** |
| 5662 * The token that was generated when a purchase was made. This uniquely |
| 5663 * identifies a purchase. |
| 5664 */ |
| 5665 core.String purchaseToken; |
| 5666 /** |
| 5667 * The time at which the purchase was cancelled/refunded/charged-back, in |
| 5668 * milliseconds since the epoch (Jan 1, 1970). |
| 5669 */ |
| 5670 core.String voidedTimeMillis; |
| 5671 |
| 5672 VoidedPurchase(); |
| 5673 |
| 5674 VoidedPurchase.fromJson(core.Map _json) { |
| 5675 if (_json.containsKey("kind")) { |
| 5676 kind = _json["kind"]; |
| 5677 } |
| 5678 if (_json.containsKey("purchaseTimeMillis")) { |
| 5679 purchaseTimeMillis = _json["purchaseTimeMillis"]; |
| 5680 } |
| 5681 if (_json.containsKey("purchaseToken")) { |
| 5682 purchaseToken = _json["purchaseToken"]; |
| 5683 } |
| 5684 if (_json.containsKey("voidedTimeMillis")) { |
| 5685 voidedTimeMillis = _json["voidedTimeMillis"]; |
| 5686 } |
| 5687 } |
| 5688 |
| 5689 core.Map toJson() { |
| 5690 var _json = new core.Map(); |
| 5691 if (kind != null) { |
| 5692 _json["kind"] = kind; |
| 5693 } |
| 5694 if (purchaseTimeMillis != null) { |
| 5695 _json["purchaseTimeMillis"] = purchaseTimeMillis; |
| 5696 } |
| 5697 if (purchaseToken != null) { |
| 5698 _json["purchaseToken"] = purchaseToken; |
| 5699 } |
| 5700 if (voidedTimeMillis != null) { |
| 5701 _json["voidedTimeMillis"] = voidedTimeMillis; |
| 5702 } |
| 5703 return _json; |
| 5704 } |
| 5705 } |
| 5706 |
| 5707 class VoidedPurchasesListResponse { |
| 5708 PageInfo pageInfo; |
| 5709 TokenPagination tokenPagination; |
| 5710 core.List<VoidedPurchase> voidedPurchases; |
| 5711 |
| 5712 VoidedPurchasesListResponse(); |
| 5713 |
| 5714 VoidedPurchasesListResponse.fromJson(core.Map _json) { |
| 5715 if (_json.containsKey("pageInfo")) { |
| 5716 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); |
| 5717 } |
| 5718 if (_json.containsKey("tokenPagination")) { |
| 5719 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
| 5720 } |
| 5721 if (_json.containsKey("voidedPurchases")) { |
| 5722 voidedPurchases = _json["voidedPurchases"].map((value) => new VoidedPurcha
se.fromJson(value)).toList(); |
| 5723 } |
| 5724 } |
| 5725 |
| 5726 core.Map toJson() { |
| 5727 var _json = new core.Map(); |
| 5728 if (pageInfo != null) { |
| 5729 _json["pageInfo"] = (pageInfo).toJson(); |
| 5730 } |
| 5731 if (tokenPagination != null) { |
| 5732 _json["tokenPagination"] = (tokenPagination).toJson(); |
| 5733 } |
| 5734 if (voidedPurchases != null) { |
| 5735 _json["voidedPurchases"] = voidedPurchases.map((value) => (value).toJson()
).toList(); |
| 5736 } |
| 5737 return _json; |
| 5738 } |
| 5739 } |
| OLD | NEW |