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 3124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3135 * Lists the purchases that were cancelled, refunded or charged-back. | 3135 * Lists the purchases that were cancelled, refunded or charged-back. |
3136 * | 3136 * |
3137 * Request parameters: | 3137 * Request parameters: |
3138 * | 3138 * |
3139 * [packageName] - The package name of the application for which voided | 3139 * [packageName] - The package name of the application for which voided |
3140 * purchases need to be returned (for example, 'com.some.thing'). | 3140 * purchases need to be returned (for example, 'com.some.thing'). |
3141 * | 3141 * |
3142 * [endTime] - The time, in milliseconds since the Epoch, of the newest voided | 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 | 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 | 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. | 3145 * pagination token is set. Default value is current time. Note: This filter |
| 3146 * is applied on the time at which the record is seen as voided by our systems |
| 3147 * and not the actual voided time returned in the response. |
3146 * | 3148 * |
3147 * [maxResults] - null | 3149 * [maxResults] - null |
3148 * | 3150 * |
3149 * [startIndex] - null | 3151 * [startIndex] - null |
3150 * | 3152 * |
3151 * [startTime] - The time, in milliseconds since the Epoch, of the oldest | 3153 * [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 | 3154 * 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 | 3155 * 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. | 3156 * pagination token is set. Default value is current time minus 30 days. Note: |
| 3157 * This filter is applied on the time at which the record is seen as voided by |
| 3158 * our systems and not the actual voided time returned in the response. |
3155 * | 3159 * |
3156 * [token] - null | 3160 * [token] - null |
3157 * | 3161 * |
3158 * Completes with a [VoidedPurchasesListResponse]. | 3162 * Completes with a [VoidedPurchasesListResponse]. |
3159 * | 3163 * |
3160 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3164 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
3161 * error. | 3165 * error. |
3162 * | 3166 * |
3163 * If the used [http.Client] completes with an error when making a REST call, | 3167 * If the used [http.Client] completes with an error when making a REST call, |
3164 * this method will complete with the same error. | 3168 * this method will complete with the same error. |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3404 } | 3408 } |
3405 } | 3409 } |
3406 | 3410 |
3407 /** Represents the binary payload of an APK. */ | 3411 /** Represents the binary payload of an APK. */ |
3408 class ApkBinary { | 3412 class ApkBinary { |
3409 /** | 3413 /** |
3410 * A sha1 hash of the APK payload, encoded as a hex string and matching the | 3414 * A sha1 hash of the APK payload, encoded as a hex string and matching the |
3411 * output of the sha1sum command. | 3415 * output of the sha1sum command. |
3412 */ | 3416 */ |
3413 core.String sha1; | 3417 core.String sha1; |
| 3418 /** |
| 3419 * A sha256 hash of the APK payload, encoded as a hex string and matching the |
| 3420 * output of the sha256sum command. |
| 3421 */ |
| 3422 core.String sha256; |
3414 | 3423 |
3415 ApkBinary(); | 3424 ApkBinary(); |
3416 | 3425 |
3417 ApkBinary.fromJson(core.Map _json) { | 3426 ApkBinary.fromJson(core.Map _json) { |
3418 if (_json.containsKey("sha1")) { | 3427 if (_json.containsKey("sha1")) { |
3419 sha1 = _json["sha1"]; | 3428 sha1 = _json["sha1"]; |
3420 } | 3429 } |
| 3430 if (_json.containsKey("sha256")) { |
| 3431 sha256 = _json["sha256"]; |
| 3432 } |
3421 } | 3433 } |
3422 | 3434 |
3423 core.Map<core.String, core.Object> toJson() { | 3435 core.Map<core.String, core.Object> toJson() { |
3424 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3436 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
3425 if (sha1 != null) { | 3437 if (sha1 != null) { |
3426 _json["sha1"] = sha1; | 3438 _json["sha1"] = sha1; |
3427 } | 3439 } |
| 3440 if (sha256 != null) { |
| 3441 _json["sha256"] = sha256; |
| 3442 } |
3428 return _json; | 3443 return _json; |
3429 } | 3444 } |
3430 } | 3445 } |
3431 | 3446 |
3432 class ApkListing { | 3447 class ApkListing { |
3433 /** The language code, in BCP 47 format (eg "en-US"). */ | 3448 /** The language code, in BCP 47 format (eg "en-US"). */ |
3434 core.String language; | 3449 core.String language; |
3435 /** Describe what's new in your APK. */ | 3450 /** Describe what's new in your APK. */ |
3436 core.String recentChanges; | 3451 core.String recentChanges; |
3437 | 3452 |
(...skipping 1427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4865 /** | 4880 /** |
4866 * A developer-specified string that contains supplemental information about | 4881 * A developer-specified string that contains supplemental information about |
4867 * an order. | 4882 * an order. |
4868 */ | 4883 */ |
4869 core.String developerPayload; | 4884 core.String developerPayload; |
4870 /** | 4885 /** |
4871 * This kind represents an inappPurchase object in the androidpublisher | 4886 * This kind represents an inappPurchase object in the androidpublisher |
4872 * service. | 4887 * service. |
4873 */ | 4888 */ |
4874 core.String kind; | 4889 core.String kind; |
| 4890 /** The order id associated with the purchase of the inapp product. */ |
| 4891 core.String orderId; |
4875 /** | 4892 /** |
4876 * The purchase state of the order. Possible values are: | 4893 * The purchase state of the order. Possible values are: |
4877 * - Purchased | 4894 * - Purchased |
4878 * - Cancelled | 4895 * - Cancelled |
4879 */ | 4896 */ |
4880 core.int purchaseState; | 4897 core.int purchaseState; |
4881 /** | 4898 /** |
4882 * The time the product was purchased, in milliseconds since the epoch (Jan 1, | 4899 * The time the product was purchased, in milliseconds since the epoch (Jan 1, |
4883 * 1970). | 4900 * 1970). |
4884 */ | 4901 */ |
4885 core.String purchaseTimeMillis; | 4902 core.String purchaseTimeMillis; |
4886 | 4903 |
4887 ProductPurchase(); | 4904 ProductPurchase(); |
4888 | 4905 |
4889 ProductPurchase.fromJson(core.Map _json) { | 4906 ProductPurchase.fromJson(core.Map _json) { |
4890 if (_json.containsKey("consumptionState")) { | 4907 if (_json.containsKey("consumptionState")) { |
4891 consumptionState = _json["consumptionState"]; | 4908 consumptionState = _json["consumptionState"]; |
4892 } | 4909 } |
4893 if (_json.containsKey("developerPayload")) { | 4910 if (_json.containsKey("developerPayload")) { |
4894 developerPayload = _json["developerPayload"]; | 4911 developerPayload = _json["developerPayload"]; |
4895 } | 4912 } |
4896 if (_json.containsKey("kind")) { | 4913 if (_json.containsKey("kind")) { |
4897 kind = _json["kind"]; | 4914 kind = _json["kind"]; |
4898 } | 4915 } |
| 4916 if (_json.containsKey("orderId")) { |
| 4917 orderId = _json["orderId"]; |
| 4918 } |
4899 if (_json.containsKey("purchaseState")) { | 4919 if (_json.containsKey("purchaseState")) { |
4900 purchaseState = _json["purchaseState"]; | 4920 purchaseState = _json["purchaseState"]; |
4901 } | 4921 } |
4902 if (_json.containsKey("purchaseTimeMillis")) { | 4922 if (_json.containsKey("purchaseTimeMillis")) { |
4903 purchaseTimeMillis = _json["purchaseTimeMillis"]; | 4923 purchaseTimeMillis = _json["purchaseTimeMillis"]; |
4904 } | 4924 } |
4905 } | 4925 } |
4906 | 4926 |
4907 core.Map<core.String, core.Object> toJson() { | 4927 core.Map<core.String, core.Object> toJson() { |
4908 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4928 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
4909 if (consumptionState != null) { | 4929 if (consumptionState != null) { |
4910 _json["consumptionState"] = consumptionState; | 4930 _json["consumptionState"] = consumptionState; |
4911 } | 4931 } |
4912 if (developerPayload != null) { | 4932 if (developerPayload != null) { |
4913 _json["developerPayload"] = developerPayload; | 4933 _json["developerPayload"] = developerPayload; |
4914 } | 4934 } |
4915 if (kind != null) { | 4935 if (kind != null) { |
4916 _json["kind"] = kind; | 4936 _json["kind"] = kind; |
4917 } | 4937 } |
| 4938 if (orderId != null) { |
| 4939 _json["orderId"] = orderId; |
| 4940 } |
4918 if (purchaseState != null) { | 4941 if (purchaseState != null) { |
4919 _json["purchaseState"] = purchaseState; | 4942 _json["purchaseState"] = purchaseState; |
4920 } | 4943 } |
4921 if (purchaseTimeMillis != null) { | 4944 if (purchaseTimeMillis != null) { |
4922 _json["purchaseTimeMillis"] = purchaseTimeMillis; | 4945 _json["purchaseTimeMillis"] = purchaseTimeMillis; |
4923 } | 4946 } |
4924 return _json; | 4947 return _json; |
4925 } | 4948 } |
4926 } | 4949 } |
4927 | 4950 |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5218 * Time at which the subscription will expire, in milliseconds since the | 5241 * Time at which the subscription will expire, in milliseconds since the |
5219 * Epoch. | 5242 * Epoch. |
5220 */ | 5243 */ |
5221 core.String expiryTimeMillis; | 5244 core.String expiryTimeMillis; |
5222 /** | 5245 /** |
5223 * This kind represents a subscriptionPurchase object in the androidpublisher | 5246 * This kind represents a subscriptionPurchase object in the androidpublisher |
5224 * service. | 5247 * service. |
5225 */ | 5248 */ |
5226 core.String kind; | 5249 core.String kind; |
5227 /** | 5250 /** |
| 5251 * The order id of the latest recurring order associated with the purchase of |
| 5252 * the subscription. |
| 5253 */ |
| 5254 core.String orderId; |
| 5255 /** |
5228 * The payment state of the subscription. Possible values are: | 5256 * The payment state of the subscription. Possible values are: |
5229 * - Payment pending | 5257 * - Payment pending |
5230 * - Payment received | 5258 * - Payment received |
| 5259 * - Free trial |
5231 */ | 5260 */ |
5232 core.int paymentState; | 5261 core.int paymentState; |
5233 /** | 5262 /** |
5234 * Price of the subscription, not including tax. Price is expressed in | 5263 * Price of the subscription, not including tax. Price is expressed in |
5235 * micro-units, where 1,000,000 micro-units represents one unit of the | 5264 * micro-units, where 1,000,000 micro-units represents one unit of the |
5236 * currency. For example, if the subscription price is €1.99, | 5265 * currency. For example, if the subscription price is €1.99, |
5237 * price_amount_micros is 1990000. | 5266 * price_amount_micros is 1990000. |
5238 */ | 5267 */ |
5239 core.String priceAmountMicros; | 5268 core.String priceAmountMicros; |
5240 /** | 5269 /** |
(...skipping 27 matching lines...) Expand all Loading... |
5268 } | 5297 } |
5269 if (_json.containsKey("developerPayload")) { | 5298 if (_json.containsKey("developerPayload")) { |
5270 developerPayload = _json["developerPayload"]; | 5299 developerPayload = _json["developerPayload"]; |
5271 } | 5300 } |
5272 if (_json.containsKey("expiryTimeMillis")) { | 5301 if (_json.containsKey("expiryTimeMillis")) { |
5273 expiryTimeMillis = _json["expiryTimeMillis"]; | 5302 expiryTimeMillis = _json["expiryTimeMillis"]; |
5274 } | 5303 } |
5275 if (_json.containsKey("kind")) { | 5304 if (_json.containsKey("kind")) { |
5276 kind = _json["kind"]; | 5305 kind = _json["kind"]; |
5277 } | 5306 } |
| 5307 if (_json.containsKey("orderId")) { |
| 5308 orderId = _json["orderId"]; |
| 5309 } |
5278 if (_json.containsKey("paymentState")) { | 5310 if (_json.containsKey("paymentState")) { |
5279 paymentState = _json["paymentState"]; | 5311 paymentState = _json["paymentState"]; |
5280 } | 5312 } |
5281 if (_json.containsKey("priceAmountMicros")) { | 5313 if (_json.containsKey("priceAmountMicros")) { |
5282 priceAmountMicros = _json["priceAmountMicros"]; | 5314 priceAmountMicros = _json["priceAmountMicros"]; |
5283 } | 5315 } |
5284 if (_json.containsKey("priceCurrencyCode")) { | 5316 if (_json.containsKey("priceCurrencyCode")) { |
5285 priceCurrencyCode = _json["priceCurrencyCode"]; | 5317 priceCurrencyCode = _json["priceCurrencyCode"]; |
5286 } | 5318 } |
5287 if (_json.containsKey("startTimeMillis")) { | 5319 if (_json.containsKey("startTimeMillis")) { |
(...skipping 17 matching lines...) Expand all Loading... |
5305 } | 5337 } |
5306 if (developerPayload != null) { | 5338 if (developerPayload != null) { |
5307 _json["developerPayload"] = developerPayload; | 5339 _json["developerPayload"] = developerPayload; |
5308 } | 5340 } |
5309 if (expiryTimeMillis != null) { | 5341 if (expiryTimeMillis != null) { |
5310 _json["expiryTimeMillis"] = expiryTimeMillis; | 5342 _json["expiryTimeMillis"] = expiryTimeMillis; |
5311 } | 5343 } |
5312 if (kind != null) { | 5344 if (kind != null) { |
5313 _json["kind"] = kind; | 5345 _json["kind"] = kind; |
5314 } | 5346 } |
| 5347 if (orderId != null) { |
| 5348 _json["orderId"] = orderId; |
| 5349 } |
5315 if (paymentState != null) { | 5350 if (paymentState != null) { |
5316 _json["paymentState"] = paymentState; | 5351 _json["paymentState"] = paymentState; |
5317 } | 5352 } |
5318 if (priceAmountMicros != null) { | 5353 if (priceAmountMicros != null) { |
5319 _json["priceAmountMicros"] = priceAmountMicros; | 5354 _json["priceAmountMicros"] = priceAmountMicros; |
5320 } | 5355 } |
5321 if (priceCurrencyCode != null) { | 5356 if (priceCurrencyCode != null) { |
5322 _json["priceCurrencyCode"] = priceCurrencyCode; | 5357 _json["priceCurrencyCode"] = priceCurrencyCode; |
5323 } | 5358 } |
5324 if (startTimeMillis != null) { | 5359 if (startTimeMillis != null) { |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5741 } | 5776 } |
5742 if (tokenPagination != null) { | 5777 if (tokenPagination != null) { |
5743 _json["tokenPagination"] = (tokenPagination).toJson(); | 5778 _json["tokenPagination"] = (tokenPagination).toJson(); |
5744 } | 5779 } |
5745 if (voidedPurchases != null) { | 5780 if (voidedPurchases != null) { |
5746 _json["voidedPurchases"] = voidedPurchases.map((value) => (value).toJson()
).toList(); | 5781 _json["voidedPurchases"] = voidedPurchases.map((value) => (value).toJson()
).toList(); |
5747 } | 5782 } |
5748 return _json; | 5783 return _json; |
5749 } | 5784 } |
5750 } | 5785 } |
OLD | NEW |