google-apis-androidpublisher_v3 0.83.0 → 0.85.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -125,6 +125,88 @@ module Google
125
125
  end
126
126
  end
127
127
 
128
+ # Request message for ActivateOneTimeProductOffer.
129
+ class ActivateOneTimeProductOfferRequest
130
+ include Google::Apis::Core::Hashable
131
+
132
+ # Optional. The latency tolerance for the propagation of this update. Defaults
133
+ # to latency-sensitive.
134
+ # Corresponds to the JSON property `latencyTolerance`
135
+ # @return [String]
136
+ attr_accessor :latency_tolerance
137
+
138
+ # Required. The offer ID of the offer to activate.
139
+ # Corresponds to the JSON property `offerId`
140
+ # @return [String]
141
+ attr_accessor :offer_id
142
+
143
+ # Required. The parent app (package name) of the offer to activate.
144
+ # Corresponds to the JSON property `packageName`
145
+ # @return [String]
146
+ attr_accessor :package_name
147
+
148
+ # Required. The parent one-time product (ID) of the offer to activate.
149
+ # Corresponds to the JSON property `productId`
150
+ # @return [String]
151
+ attr_accessor :product_id
152
+
153
+ # Required. The parent purchase option (ID) of the offer to activate.
154
+ # Corresponds to the JSON property `purchaseOptionId`
155
+ # @return [String]
156
+ attr_accessor :purchase_option_id
157
+
158
+ def initialize(**args)
159
+ update!(**args)
160
+ end
161
+
162
+ # Update properties of this object
163
+ def update!(**args)
164
+ @latency_tolerance = args[:latency_tolerance] if args.key?(:latency_tolerance)
165
+ @offer_id = args[:offer_id] if args.key?(:offer_id)
166
+ @package_name = args[:package_name] if args.key?(:package_name)
167
+ @product_id = args[:product_id] if args.key?(:product_id)
168
+ @purchase_option_id = args[:purchase_option_id] if args.key?(:purchase_option_id)
169
+ end
170
+ end
171
+
172
+ # Request message for UpdatePurchaseOptionState.
173
+ class ActivatePurchaseOptionRequest
174
+ include Google::Apis::Core::Hashable
175
+
176
+ # Optional. The latency tolerance for the propagation of this product update.
177
+ # Defaults to latency-sensitive.
178
+ # Corresponds to the JSON property `latencyTolerance`
179
+ # @return [String]
180
+ attr_accessor :latency_tolerance
181
+
182
+ # Required. The parent app (package name) of the purchase option to activate.
183
+ # Corresponds to the JSON property `packageName`
184
+ # @return [String]
185
+ attr_accessor :package_name
186
+
187
+ # Required. The parent one-time product (ID) of the purchase option to activate.
188
+ # Corresponds to the JSON property `productId`
189
+ # @return [String]
190
+ attr_accessor :product_id
191
+
192
+ # Required. The purchase option ID of the purchase option to activate.
193
+ # Corresponds to the JSON property `purchaseOptionId`
194
+ # @return [String]
195
+ attr_accessor :purchase_option_id
196
+
197
+ def initialize(**args)
198
+ update!(**args)
199
+ end
200
+
201
+ # Update properties of this object
202
+ def update!(**args)
203
+ @latency_tolerance = args[:latency_tolerance] if args.key?(:latency_tolerance)
204
+ @package_name = args[:package_name] if args.key?(:package_name)
205
+ @product_id = args[:product_id] if args.key?(:product_id)
206
+ @purchase_option_id = args[:purchase_option_id] if args.key?(:purchase_option_id)
207
+ end
208
+ end
209
+
128
210
  # Request message for ActivateSubscriptionOffer.
129
211
  class ActivateSubscriptionOfferRequest
130
212
  include Google::Apis::Core::Hashable
@@ -912,6 +994,124 @@ module Google
912
994
  end
913
995
  end
914
996
 
997
+ # Request message for BatchDeleteOneTimeProductOffers.
998
+ class BatchDeleteOneTimeProductOffersRequest
999
+ include Google::Apis::Core::Hashable
1000
+
1001
+ # Required. A list of update requests of up to 100 elements. All requests must
1002
+ # correspond to different offers.
1003
+ # Corresponds to the JSON property `requests`
1004
+ # @return [Array<Google::Apis::AndroidpublisherV3::DeleteOneTimeProductOfferRequest>]
1005
+ attr_accessor :requests
1006
+
1007
+ def initialize(**args)
1008
+ update!(**args)
1009
+ end
1010
+
1011
+ # Update properties of this object
1012
+ def update!(**args)
1013
+ @requests = args[:requests] if args.key?(:requests)
1014
+ end
1015
+ end
1016
+
1017
+ # Request message for BatchDeleteOneTimeProduct.
1018
+ class BatchDeleteOneTimeProductsRequest
1019
+ include Google::Apis::Core::Hashable
1020
+
1021
+ # Required. A list of delete requests of up to 100 elements. All requests must
1022
+ # delete different one-time products.
1023
+ # Corresponds to the JSON property `requests`
1024
+ # @return [Array<Google::Apis::AndroidpublisherV3::DeleteOneTimeProductRequest>]
1025
+ attr_accessor :requests
1026
+
1027
+ def initialize(**args)
1028
+ update!(**args)
1029
+ end
1030
+
1031
+ # Update properties of this object
1032
+ def update!(**args)
1033
+ @requests = args[:requests] if args.key?(:requests)
1034
+ end
1035
+ end
1036
+
1037
+ # Request message for BatchDeletePurchaseOption.
1038
+ class BatchDeletePurchaseOptionsRequest
1039
+ include Google::Apis::Core::Hashable
1040
+
1041
+ # Required. A list of delete requests of up to 100 elements. All requests must
1042
+ # delete purchase options from different one-time products.
1043
+ # Corresponds to the JSON property `requests`
1044
+ # @return [Array<Google::Apis::AndroidpublisherV3::DeletePurchaseOptionRequest>]
1045
+ attr_accessor :requests
1046
+
1047
+ def initialize(**args)
1048
+ update!(**args)
1049
+ end
1050
+
1051
+ # Update properties of this object
1052
+ def update!(**args)
1053
+ @requests = args[:requests] if args.key?(:requests)
1054
+ end
1055
+ end
1056
+
1057
+ # Request message for the BatchGetOneTimeProductOffers endpoint.
1058
+ class BatchGetOneTimeProductOffersRequest
1059
+ include Google::Apis::Core::Hashable
1060
+
1061
+ # Required. A list of get requests of up to 100 elements. All requests must
1062
+ # retrieve different offers.
1063
+ # Corresponds to the JSON property `requests`
1064
+ # @return [Array<Google::Apis::AndroidpublisherV3::GetOneTimeProductOfferRequest>]
1065
+ attr_accessor :requests
1066
+
1067
+ def initialize(**args)
1068
+ update!(**args)
1069
+ end
1070
+
1071
+ # Update properties of this object
1072
+ def update!(**args)
1073
+ @requests = args[:requests] if args.key?(:requests)
1074
+ end
1075
+ end
1076
+
1077
+ # Response message for the BatchGetOneTimeProductOffers endpoint.
1078
+ class BatchGetOneTimeProductOffersResponse
1079
+ include Google::Apis::Core::Hashable
1080
+
1081
+ # The list of updated one-time product offers, in the same order as the request.
1082
+ # Corresponds to the JSON property `oneTimeProductOffers`
1083
+ # @return [Array<Google::Apis::AndroidpublisherV3::OneTimeProductOffer>]
1084
+ attr_accessor :one_time_product_offers
1085
+
1086
+ def initialize(**args)
1087
+ update!(**args)
1088
+ end
1089
+
1090
+ # Update properties of this object
1091
+ def update!(**args)
1092
+ @one_time_product_offers = args[:one_time_product_offers] if args.key?(:one_time_product_offers)
1093
+ end
1094
+ end
1095
+
1096
+ # Response message for the BatchGetOneTimeProducts endpoint.
1097
+ class BatchGetOneTimeProductsResponse
1098
+ include Google::Apis::Core::Hashable
1099
+
1100
+ # The list of requested one-time products, in the same order as the request.
1101
+ # Corresponds to the JSON property `oneTimeProducts`
1102
+ # @return [Array<Google::Apis::AndroidpublisherV3::OneTimeProduct>]
1103
+ attr_accessor :one_time_products
1104
+
1105
+ def initialize(**args)
1106
+ update!(**args)
1107
+ end
1108
+
1109
+ # Update properties of this object
1110
+ def update!(**args)
1111
+ @one_time_products = args[:one_time_products] if args.key?(:one_time_products)
1112
+ end
1113
+ end
1114
+
915
1115
  # Response for the orders.batchGet API.
916
1116
  class BatchGetOrdersResponse
917
1117
  include Google::Apis::Core::Hashable
@@ -1069,14 +1269,14 @@ module Google
1069
1269
  end
1070
1270
  end
1071
1271
 
1072
- # Request message for BatchUpdateSubscriptionOfferStates.
1073
- class BatchUpdateSubscriptionOfferStatesRequest
1272
+ # Request message for BatchUpdateOneTimeProductOfferStates.
1273
+ class BatchUpdateOneTimeProductOfferStatesRequest
1074
1274
  include Google::Apis::Core::Hashable
1075
1275
 
1076
1276
  # Required. The update request list of up to 100 elements. All requests must
1077
1277
  # update different offers.
1078
1278
  # Corresponds to the JSON property `requests`
1079
- # @return [Array<Google::Apis::AndroidpublisherV3::UpdateSubscriptionOfferStateRequest>]
1279
+ # @return [Array<Google::Apis::AndroidpublisherV3::UpdateOneTimeProductOfferStateRequest>]
1080
1280
  attr_accessor :requests
1081
1281
 
1082
1282
  def initialize(**args)
@@ -1089,14 +1289,14 @@ module Google
1089
1289
  end
1090
1290
  end
1091
1291
 
1092
- # Response message for BatchUpdateSubscriptionOfferStates.
1093
- class BatchUpdateSubscriptionOfferStatesResponse
1292
+ # Response message for BatchUpdateOneTimeProductOfferStates.
1293
+ class BatchUpdateOneTimeProductOfferStatesResponse
1094
1294
  include Google::Apis::Core::Hashable
1095
1295
 
1096
- # The updated subscription offers list.
1097
- # Corresponds to the JSON property `subscriptionOffers`
1098
- # @return [Array<Google::Apis::AndroidpublisherV3::SubscriptionOffer>]
1099
- attr_accessor :subscription_offers
1296
+ # The updated one-time product offers list, in the same order as the request.
1297
+ # Corresponds to the JSON property `oneTimeProductOffers`
1298
+ # @return [Array<Google::Apis::AndroidpublisherV3::OneTimeProductOffer>]
1299
+ attr_accessor :one_time_product_offers
1100
1300
 
1101
1301
  def initialize(**args)
1102
1302
  update!(**args)
@@ -1104,18 +1304,18 @@ module Google
1104
1304
 
1105
1305
  # Update properties of this object
1106
1306
  def update!(**args)
1107
- @subscription_offers = args[:subscription_offers] if args.key?(:subscription_offers)
1307
+ @one_time_product_offers = args[:one_time_product_offers] if args.key?(:one_time_product_offers)
1108
1308
  end
1109
1309
  end
1110
1310
 
1111
- # Request message for BatchUpdateSubscriptionOffers.
1112
- class BatchUpdateSubscriptionOffersRequest
1311
+ # Request message for BatchUpdateOneTimeProductOffers.
1312
+ class BatchUpdateOneTimeProductOffersRequest
1113
1313
  include Google::Apis::Core::Hashable
1114
1314
 
1115
1315
  # Required. A list of update requests of up to 100 elements. All requests must
1116
- # update different subscription offers.
1316
+ # update different offers.
1117
1317
  # Corresponds to the JSON property `requests`
1118
- # @return [Array<Google::Apis::AndroidpublisherV3::UpdateSubscriptionOfferRequest>]
1318
+ # @return [Array<Google::Apis::AndroidpublisherV3::UpdateOneTimeProductOfferRequest>]
1119
1319
  attr_accessor :requests
1120
1320
 
1121
1321
  def initialize(**args)
@@ -1128,14 +1328,14 @@ module Google
1128
1328
  end
1129
1329
  end
1130
1330
 
1131
- # Response message for BatchUpdateSubscriptionOffers.
1132
- class BatchUpdateSubscriptionOffersResponse
1331
+ # Response message for BatchUpdateOneTimeProductOffers.
1332
+ class BatchUpdateOneTimeProductOffersResponse
1133
1333
  include Google::Apis::Core::Hashable
1134
1334
 
1135
- # The updated subscription offers list.
1136
- # Corresponds to the JSON property `subscriptionOffers`
1137
- # @return [Array<Google::Apis::AndroidpublisherV3::SubscriptionOffer>]
1138
- attr_accessor :subscription_offers
1335
+ # The list of updated one-time product offers, in the same order as the request.
1336
+ # Corresponds to the JSON property `oneTimeProductOffers`
1337
+ # @return [Array<Google::Apis::AndroidpublisherV3::OneTimeProductOffer>]
1338
+ attr_accessor :one_time_product_offers
1139
1339
 
1140
1340
  def initialize(**args)
1141
1341
  update!(**args)
@@ -1143,18 +1343,18 @@ module Google
1143
1343
 
1144
1344
  # Update properties of this object
1145
1345
  def update!(**args)
1146
- @subscription_offers = args[:subscription_offers] if args.key?(:subscription_offers)
1346
+ @one_time_product_offers = args[:one_time_product_offers] if args.key?(:one_time_product_offers)
1147
1347
  end
1148
1348
  end
1149
1349
 
1150
- # Request message for BatchUpdateSubscription.
1151
- class BatchUpdateSubscriptionsRequest
1350
+ # Request message for BatchUpdateOneTimeProduct.
1351
+ class BatchUpdateOneTimeProductsRequest
1152
1352
  include Google::Apis::Core::Hashable
1153
1353
 
1154
1354
  # Required. A list of update requests of up to 100 elements. All requests must
1155
- # update different subscriptions.
1355
+ # update different one-time products.
1156
1356
  # Corresponds to the JSON property `requests`
1157
- # @return [Array<Google::Apis::AndroidpublisherV3::UpdateSubscriptionRequest>]
1357
+ # @return [Array<Google::Apis::AndroidpublisherV3::UpdateOneTimeProductRequest>]
1158
1358
  attr_accessor :requests
1159
1359
 
1160
1360
  def initialize(**args)
@@ -1167,14 +1367,14 @@ module Google
1167
1367
  end
1168
1368
  end
1169
1369
 
1170
- # Response message for BatchUpdateSubscription.
1171
- class BatchUpdateSubscriptionsResponse
1370
+ # Response message for BatchUpdateOneTimeProduct.
1371
+ class BatchUpdateOneTimeProductsResponse
1172
1372
  include Google::Apis::Core::Hashable
1173
1373
 
1174
- # The updated subscriptions list.
1175
- # Corresponds to the JSON property `subscriptions`
1176
- # @return [Array<Google::Apis::AndroidpublisherV3::Subscription>]
1177
- attr_accessor :subscriptions
1374
+ # The list of updated one-time products list, in the same order as the request.
1375
+ # Corresponds to the JSON property `oneTimeProducts`
1376
+ # @return [Array<Google::Apis::AndroidpublisherV3::OneTimeProduct>]
1377
+ attr_accessor :one_time_products
1178
1378
 
1179
1379
  def initialize(**args)
1180
1380
  update!(**args)
@@ -1182,31 +1382,19 @@ module Google
1182
1382
 
1183
1383
  # Update properties of this object
1184
1384
  def update!(**args)
1185
- @subscriptions = args[:subscriptions] if args.key?(:subscriptions)
1385
+ @one_time_products = args[:one_time_products] if args.key?(:one_time_products)
1186
1386
  end
1187
1387
  end
1188
1388
 
1189
- # Information about an app bundle. The resource for BundlesService.
1190
- class Bundle
1389
+ # Request message for BatchUpdatePurchaseOptionStates.
1390
+ class BatchUpdatePurchaseOptionStatesRequest
1191
1391
  include Google::Apis::Core::Hashable
1192
1392
 
1193
- # A sha1 hash of the upload payload, encoded as a hex string and matching the
1194
- # output of the sha1sum command.
1195
- # Corresponds to the JSON property `sha1`
1196
- # @return [String]
1197
- attr_accessor :sha1
1198
-
1199
- # A sha256 hash of the upload payload, encoded as a hex string and matching the
1200
- # output of the sha256sum command.
1201
- # Corresponds to the JSON property `sha256`
1202
- # @return [String]
1203
- attr_accessor :sha256
1204
-
1205
- # The version code of the Android App Bundle, as specified in the Android App
1206
- # Bundle's base module APK manifest file.
1207
- # Corresponds to the JSON property `versionCode`
1208
- # @return [Fixnum]
1209
- attr_accessor :version_code
1393
+ # Required. The update request list of up to 100 elements. All requests must
1394
+ # update different purchase options.
1395
+ # Corresponds to the JSON property `requests`
1396
+ # @return [Array<Google::Apis::AndroidpublisherV3::UpdatePurchaseOptionStateRequest>]
1397
+ attr_accessor :requests
1210
1398
 
1211
1399
  def initialize(**args)
1212
1400
  update!(**args)
@@ -1214,25 +1402,19 @@ module Google
1214
1402
 
1215
1403
  # Update properties of this object
1216
1404
  def update!(**args)
1217
- @sha1 = args[:sha1] if args.key?(:sha1)
1218
- @sha256 = args[:sha256] if args.key?(:sha256)
1219
- @version_code = args[:version_code] if args.key?(:version_code)
1405
+ @requests = args[:requests] if args.key?(:requests)
1220
1406
  end
1221
1407
  end
1222
1408
 
1223
- # Response listing all app bundles.
1224
- class BundlesListResponse
1409
+ # Response message for BatchUpdatePurchaseOptionStates.
1410
+ class BatchUpdatePurchaseOptionStatesResponse
1225
1411
  include Google::Apis::Core::Hashable
1226
1412
 
1227
- # All app bundles.
1228
- # Corresponds to the JSON property `bundles`
1229
- # @return [Array<Google::Apis::AndroidpublisherV3::Bundle>]
1230
- attr_accessor :bundles
1231
-
1232
- # The kind of this response ("androidpublisher#bundlesListResponse").
1233
- # Corresponds to the JSON property `kind`
1234
- # @return [String]
1235
- attr_accessor :kind
1413
+ # The list of updated one-time products. This list will match the requests one
1414
+ # to one, in the same order.
1415
+ # Corresponds to the JSON property `oneTimeProducts`
1416
+ # @return [Array<Google::Apis::AndroidpublisherV3::OneTimeProduct>]
1417
+ attr_accessor :one_time_products
1236
1418
 
1237
1419
  def initialize(**args)
1238
1420
  update!(**args)
@@ -1240,31 +1422,19 @@ module Google
1240
1422
 
1241
1423
  # Update properties of this object
1242
1424
  def update!(**args)
1243
- @bundles = args[:bundles] if args.key?(:bundles)
1244
- @kind = args[:kind] if args.key?(:kind)
1425
+ @one_time_products = args[:one_time_products] if args.key?(:one_time_products)
1245
1426
  end
1246
1427
  end
1247
1428
 
1248
- # Address information for the customer, for use in tax computation.
1249
- class BuyerAddress
1429
+ # Request message for BatchUpdateSubscriptionOfferStates.
1430
+ class BatchUpdateSubscriptionOfferStatesRequest
1250
1431
  include Google::Apis::Core::Hashable
1251
1432
 
1252
- # Two letter country code based on ISO-3166-1 Alpha-2 (UN country codes).
1253
- # Corresponds to the JSON property `buyerCountry`
1254
- # @return [String]
1255
- attr_accessor :buyer_country
1256
-
1257
- # Postal code of an address. When Google is the Merchant of Record for the order,
1258
- # this information is not included.
1259
- # Corresponds to the JSON property `buyerPostcode`
1260
- # @return [String]
1261
- attr_accessor :buyer_postcode
1262
-
1263
- # Top-level administrative subdivision of the buyer address country. When Google
1264
- # is the Merchant of Record for the order, this information is not included.
1265
- # Corresponds to the JSON property `buyerState`
1266
- # @return [String]
1267
- attr_accessor :buyer_state
1433
+ # Required. The update request list of up to 100 elements. All requests must
1434
+ # update different offers.
1435
+ # Corresponds to the JSON property `requests`
1436
+ # @return [Array<Google::Apis::AndroidpublisherV3::UpdateSubscriptionOfferStateRequest>]
1437
+ attr_accessor :requests
1268
1438
 
1269
1439
  def initialize(**args)
1270
1440
  update!(**args)
@@ -1272,9 +1442,196 @@ module Google
1272
1442
 
1273
1443
  # Update properties of this object
1274
1444
  def update!(**args)
1275
- @buyer_country = args[:buyer_country] if args.key?(:buyer_country)
1276
- @buyer_postcode = args[:buyer_postcode] if args.key?(:buyer_postcode)
1277
- @buyer_state = args[:buyer_state] if args.key?(:buyer_state)
1445
+ @requests = args[:requests] if args.key?(:requests)
1446
+ end
1447
+ end
1448
+
1449
+ # Response message for BatchUpdateSubscriptionOfferStates.
1450
+ class BatchUpdateSubscriptionOfferStatesResponse
1451
+ include Google::Apis::Core::Hashable
1452
+
1453
+ # The updated subscription offers list.
1454
+ # Corresponds to the JSON property `subscriptionOffers`
1455
+ # @return [Array<Google::Apis::AndroidpublisherV3::SubscriptionOffer>]
1456
+ attr_accessor :subscription_offers
1457
+
1458
+ def initialize(**args)
1459
+ update!(**args)
1460
+ end
1461
+
1462
+ # Update properties of this object
1463
+ def update!(**args)
1464
+ @subscription_offers = args[:subscription_offers] if args.key?(:subscription_offers)
1465
+ end
1466
+ end
1467
+
1468
+ # Request message for BatchUpdateSubscriptionOffers.
1469
+ class BatchUpdateSubscriptionOffersRequest
1470
+ include Google::Apis::Core::Hashable
1471
+
1472
+ # Required. A list of update requests of up to 100 elements. All requests must
1473
+ # update different subscription offers.
1474
+ # Corresponds to the JSON property `requests`
1475
+ # @return [Array<Google::Apis::AndroidpublisherV3::UpdateSubscriptionOfferRequest>]
1476
+ attr_accessor :requests
1477
+
1478
+ def initialize(**args)
1479
+ update!(**args)
1480
+ end
1481
+
1482
+ # Update properties of this object
1483
+ def update!(**args)
1484
+ @requests = args[:requests] if args.key?(:requests)
1485
+ end
1486
+ end
1487
+
1488
+ # Response message for BatchUpdateSubscriptionOffers.
1489
+ class BatchUpdateSubscriptionOffersResponse
1490
+ include Google::Apis::Core::Hashable
1491
+
1492
+ # The updated subscription offers list.
1493
+ # Corresponds to the JSON property `subscriptionOffers`
1494
+ # @return [Array<Google::Apis::AndroidpublisherV3::SubscriptionOffer>]
1495
+ attr_accessor :subscription_offers
1496
+
1497
+ def initialize(**args)
1498
+ update!(**args)
1499
+ end
1500
+
1501
+ # Update properties of this object
1502
+ def update!(**args)
1503
+ @subscription_offers = args[:subscription_offers] if args.key?(:subscription_offers)
1504
+ end
1505
+ end
1506
+
1507
+ # Request message for BatchUpdateSubscription.
1508
+ class BatchUpdateSubscriptionsRequest
1509
+ include Google::Apis::Core::Hashable
1510
+
1511
+ # Required. A list of update requests of up to 100 elements. All requests must
1512
+ # update different subscriptions.
1513
+ # Corresponds to the JSON property `requests`
1514
+ # @return [Array<Google::Apis::AndroidpublisherV3::UpdateSubscriptionRequest>]
1515
+ attr_accessor :requests
1516
+
1517
+ def initialize(**args)
1518
+ update!(**args)
1519
+ end
1520
+
1521
+ # Update properties of this object
1522
+ def update!(**args)
1523
+ @requests = args[:requests] if args.key?(:requests)
1524
+ end
1525
+ end
1526
+
1527
+ # Response message for BatchUpdateSubscription.
1528
+ class BatchUpdateSubscriptionsResponse
1529
+ include Google::Apis::Core::Hashable
1530
+
1531
+ # The updated subscriptions list.
1532
+ # Corresponds to the JSON property `subscriptions`
1533
+ # @return [Array<Google::Apis::AndroidpublisherV3::Subscription>]
1534
+ attr_accessor :subscriptions
1535
+
1536
+ def initialize(**args)
1537
+ update!(**args)
1538
+ end
1539
+
1540
+ # Update properties of this object
1541
+ def update!(**args)
1542
+ @subscriptions = args[:subscriptions] if args.key?(:subscriptions)
1543
+ end
1544
+ end
1545
+
1546
+ # Information about an app bundle. The resource for BundlesService.
1547
+ class Bundle
1548
+ include Google::Apis::Core::Hashable
1549
+
1550
+ # A sha1 hash of the upload payload, encoded as a hex string and matching the
1551
+ # output of the sha1sum command.
1552
+ # Corresponds to the JSON property `sha1`
1553
+ # @return [String]
1554
+ attr_accessor :sha1
1555
+
1556
+ # A sha256 hash of the upload payload, encoded as a hex string and matching the
1557
+ # output of the sha256sum command.
1558
+ # Corresponds to the JSON property `sha256`
1559
+ # @return [String]
1560
+ attr_accessor :sha256
1561
+
1562
+ # The version code of the Android App Bundle, as specified in the Android App
1563
+ # Bundle's base module APK manifest file.
1564
+ # Corresponds to the JSON property `versionCode`
1565
+ # @return [Fixnum]
1566
+ attr_accessor :version_code
1567
+
1568
+ def initialize(**args)
1569
+ update!(**args)
1570
+ end
1571
+
1572
+ # Update properties of this object
1573
+ def update!(**args)
1574
+ @sha1 = args[:sha1] if args.key?(:sha1)
1575
+ @sha256 = args[:sha256] if args.key?(:sha256)
1576
+ @version_code = args[:version_code] if args.key?(:version_code)
1577
+ end
1578
+ end
1579
+
1580
+ # Response listing all app bundles.
1581
+ class BundlesListResponse
1582
+ include Google::Apis::Core::Hashable
1583
+
1584
+ # All app bundles.
1585
+ # Corresponds to the JSON property `bundles`
1586
+ # @return [Array<Google::Apis::AndroidpublisherV3::Bundle>]
1587
+ attr_accessor :bundles
1588
+
1589
+ # The kind of this response ("androidpublisher#bundlesListResponse").
1590
+ # Corresponds to the JSON property `kind`
1591
+ # @return [String]
1592
+ attr_accessor :kind
1593
+
1594
+ def initialize(**args)
1595
+ update!(**args)
1596
+ end
1597
+
1598
+ # Update properties of this object
1599
+ def update!(**args)
1600
+ @bundles = args[:bundles] if args.key?(:bundles)
1601
+ @kind = args[:kind] if args.key?(:kind)
1602
+ end
1603
+ end
1604
+
1605
+ # Address information for the customer, for use in tax computation.
1606
+ class BuyerAddress
1607
+ include Google::Apis::Core::Hashable
1608
+
1609
+ # Two letter country code based on ISO-3166-1 Alpha-2 (UN country codes).
1610
+ # Corresponds to the JSON property `buyerCountry`
1611
+ # @return [String]
1612
+ attr_accessor :buyer_country
1613
+
1614
+ # Postal code of an address. When Google is the Merchant of Record for the order,
1615
+ # this information is not included.
1616
+ # Corresponds to the JSON property `buyerPostcode`
1617
+ # @return [String]
1618
+ attr_accessor :buyer_postcode
1619
+
1620
+ # Top-level administrative subdivision of the buyer address country. When Google
1621
+ # is the Merchant of Record for the order, this information is not included.
1622
+ # Corresponds to the JSON property `buyerState`
1623
+ # @return [String]
1624
+ attr_accessor :buyer_state
1625
+
1626
+ def initialize(**args)
1627
+ update!(**args)
1628
+ end
1629
+
1630
+ # Update properties of this object
1631
+ def update!(**args)
1632
+ @buyer_country = args[:buyer_country] if args.key?(:buyer_country)
1633
+ @buyer_postcode = args[:buyer_postcode] if args.key?(:buyer_postcode)
1634
+ @buyer_state = args[:buyer_state] if args.key?(:buyer_state)
1278
1635
  end
1279
1636
  end
1280
1637
 
@@ -1304,6 +1661,50 @@ module Google
1304
1661
  end
1305
1662
  end
1306
1663
 
1664
+ # Request message for CancelOneTimeProductOffer.
1665
+ class CancelOneTimeProductOfferRequest
1666
+ include Google::Apis::Core::Hashable
1667
+
1668
+ # Optional. The latency tolerance for the propagation of this update. Defaults
1669
+ # to latency-sensitive.
1670
+ # Corresponds to the JSON property `latencyTolerance`
1671
+ # @return [String]
1672
+ attr_accessor :latency_tolerance
1673
+
1674
+ # Required. The offer ID of the offer to cancel.
1675
+ # Corresponds to the JSON property `offerId`
1676
+ # @return [String]
1677
+ attr_accessor :offer_id
1678
+
1679
+ # Required. The parent app (package name) of the offer to cancel.
1680
+ # Corresponds to the JSON property `packageName`
1681
+ # @return [String]
1682
+ attr_accessor :package_name
1683
+
1684
+ # Required. The parent one-time product (ID) of the offer to cancel.
1685
+ # Corresponds to the JSON property `productId`
1686
+ # @return [String]
1687
+ attr_accessor :product_id
1688
+
1689
+ # Required. The parent purchase option (ID) of the offer to cancel.
1690
+ # Corresponds to the JSON property `purchaseOptionId`
1691
+ # @return [String]
1692
+ attr_accessor :purchase_option_id
1693
+
1694
+ def initialize(**args)
1695
+ update!(**args)
1696
+ end
1697
+
1698
+ # Update properties of this object
1699
+ def update!(**args)
1700
+ @latency_tolerance = args[:latency_tolerance] if args.key?(:latency_tolerance)
1701
+ @offer_id = args[:offer_id] if args.key?(:offer_id)
1702
+ @package_name = args[:package_name] if args.key?(:package_name)
1703
+ @product_id = args[:product_id] if args.key?(:product_id)
1704
+ @purchase_option_id = args[:purchase_option_id] if args.key?(:purchase_option_id)
1705
+ end
1706
+ end
1707
+
1307
1708
  # Result of the cancel survey when the subscription was canceled by the user.
1308
1709
  class CancelSurveyResult
1309
1710
  include Google::Apis::Core::Hashable
@@ -1609,22 +2010,17 @@ module Google
1609
2010
  end
1610
2011
  end
1611
2012
 
1612
- # Request message for DeactivateSubscriptionOffer.
1613
- class DeactivateSubscriptionOfferRequest
2013
+ # Request message for DeactivateOneTimeProductOffer.
2014
+ class DeactivateOneTimeProductOfferRequest
1614
2015
  include Google::Apis::Core::Hashable
1615
2016
 
1616
- # Required. The parent base plan (ID) of the offer to deactivate.
1617
- # Corresponds to the JSON property `basePlanId`
1618
- # @return [String]
1619
- attr_accessor :base_plan_id
1620
-
1621
- # Optional. The latency tolerance for the propagation of this product update.
1622
- # Defaults to latency-sensitive.
2017
+ # Optional. The latency tolerance for the propagation of this update. Defaults
2018
+ # to latency-sensitive.
1623
2019
  # Corresponds to the JSON property `latencyTolerance`
1624
2020
  # @return [String]
1625
2021
  attr_accessor :latency_tolerance
1626
2022
 
1627
- # Required. The unique offer ID of the offer to deactivate.
2023
+ # Required. The offer ID of the offer to deactivate.
1628
2024
  # Corresponds to the JSON property `offerId`
1629
2025
  # @return [String]
1630
2026
  attr_accessor :offer_id
@@ -1634,41 +2030,266 @@ module Google
1634
2030
  # @return [String]
1635
2031
  attr_accessor :package_name
1636
2032
 
1637
- # Required. The parent subscription (ID) of the offer to deactivate.
2033
+ # Required. The parent one-time product (ID) of the offer to deactivate.
1638
2034
  # Corresponds to the JSON property `productId`
1639
2035
  # @return [String]
1640
2036
  attr_accessor :product_id
1641
2037
 
2038
+ # Required. The parent purchase option (ID) of the offer to deactivate.
2039
+ # Corresponds to the JSON property `purchaseOptionId`
2040
+ # @return [String]
2041
+ attr_accessor :purchase_option_id
2042
+
1642
2043
  def initialize(**args)
1643
2044
  update!(**args)
1644
2045
  end
1645
2046
 
1646
2047
  # Update properties of this object
1647
2048
  def update!(**args)
1648
- @base_plan_id = args[:base_plan_id] if args.key?(:base_plan_id)
1649
2049
  @latency_tolerance = args[:latency_tolerance] if args.key?(:latency_tolerance)
1650
2050
  @offer_id = args[:offer_id] if args.key?(:offer_id)
1651
2051
  @package_name = args[:package_name] if args.key?(:package_name)
1652
2052
  @product_id = args[:product_id] if args.key?(:product_id)
2053
+ @purchase_option_id = args[:purchase_option_id] if args.key?(:purchase_option_id)
1653
2054
  end
1654
2055
  end
1655
2056
 
1656
- # Information related to deferred item replacement.
1657
- class DeferredItemReplacement
2057
+ # Request message for UpdatePurchaseOptionState.
2058
+ class DeactivatePurchaseOptionRequest
1658
2059
  include Google::Apis::Core::Hashable
1659
2060
 
1660
- # The product_id going to replace the existing product_id.
2061
+ # Optional. The latency tolerance for the propagation of this product update.
2062
+ # Defaults to latency-sensitive.
2063
+ # Corresponds to the JSON property `latencyTolerance`
2064
+ # @return [String]
2065
+ attr_accessor :latency_tolerance
2066
+
2067
+ # Required. The parent app (package name) of the purchase option to deactivate.
2068
+ # Corresponds to the JSON property `packageName`
2069
+ # @return [String]
2070
+ attr_accessor :package_name
2071
+
2072
+ # Required. The parent one-time product (ID) of the purchase option to
2073
+ # deactivate.
1661
2074
  # Corresponds to the JSON property `productId`
1662
2075
  # @return [String]
1663
2076
  attr_accessor :product_id
1664
2077
 
1665
- def initialize(**args)
2078
+ # Required. The purchase option ID of the purchase option to deactivate.
2079
+ # Corresponds to the JSON property `purchaseOptionId`
2080
+ # @return [String]
2081
+ attr_accessor :purchase_option_id
2082
+
2083
+ def initialize(**args)
2084
+ update!(**args)
2085
+ end
2086
+
2087
+ # Update properties of this object
2088
+ def update!(**args)
2089
+ @latency_tolerance = args[:latency_tolerance] if args.key?(:latency_tolerance)
2090
+ @package_name = args[:package_name] if args.key?(:package_name)
2091
+ @product_id = args[:product_id] if args.key?(:product_id)
2092
+ @purchase_option_id = args[:purchase_option_id] if args.key?(:purchase_option_id)
2093
+ end
2094
+ end
2095
+
2096
+ # Request message for DeactivateSubscriptionOffer.
2097
+ class DeactivateSubscriptionOfferRequest
2098
+ include Google::Apis::Core::Hashable
2099
+
2100
+ # Required. The parent base plan (ID) of the offer to deactivate.
2101
+ # Corresponds to the JSON property `basePlanId`
2102
+ # @return [String]
2103
+ attr_accessor :base_plan_id
2104
+
2105
+ # Optional. The latency tolerance for the propagation of this product update.
2106
+ # Defaults to latency-sensitive.
2107
+ # Corresponds to the JSON property `latencyTolerance`
2108
+ # @return [String]
2109
+ attr_accessor :latency_tolerance
2110
+
2111
+ # Required. The unique offer ID of the offer to deactivate.
2112
+ # Corresponds to the JSON property `offerId`
2113
+ # @return [String]
2114
+ attr_accessor :offer_id
2115
+
2116
+ # Required. The parent app (package name) of the offer to deactivate.
2117
+ # Corresponds to the JSON property `packageName`
2118
+ # @return [String]
2119
+ attr_accessor :package_name
2120
+
2121
+ # Required. The parent subscription (ID) of the offer to deactivate.
2122
+ # Corresponds to the JSON property `productId`
2123
+ # @return [String]
2124
+ attr_accessor :product_id
2125
+
2126
+ def initialize(**args)
2127
+ update!(**args)
2128
+ end
2129
+
2130
+ # Update properties of this object
2131
+ def update!(**args)
2132
+ @base_plan_id = args[:base_plan_id] if args.key?(:base_plan_id)
2133
+ @latency_tolerance = args[:latency_tolerance] if args.key?(:latency_tolerance)
2134
+ @offer_id = args[:offer_id] if args.key?(:offer_id)
2135
+ @package_name = args[:package_name] if args.key?(:package_name)
2136
+ @product_id = args[:product_id] if args.key?(:product_id)
2137
+ end
2138
+ end
2139
+
2140
+ # Information related to deferred item replacement.
2141
+ class DeferredItemRemoval
2142
+ include Google::Apis::Core::Hashable
2143
+
2144
+ def initialize(**args)
2145
+ update!(**args)
2146
+ end
2147
+
2148
+ # Update properties of this object
2149
+ def update!(**args)
2150
+ end
2151
+ end
2152
+
2153
+ # Information related to deferred item replacement.
2154
+ class DeferredItemReplacement
2155
+ include Google::Apis::Core::Hashable
2156
+
2157
+ # The product_id going to replace the existing product_id.
2158
+ # Corresponds to the JSON property `productId`
2159
+ # @return [String]
2160
+ attr_accessor :product_id
2161
+
2162
+ def initialize(**args)
2163
+ update!(**args)
2164
+ end
2165
+
2166
+ # Update properties of this object
2167
+ def update!(**args)
2168
+ @product_id = args[:product_id] if args.key?(:product_id)
2169
+ end
2170
+ end
2171
+
2172
+ # Request message for deleting an one-time product offer.
2173
+ class DeleteOneTimeProductOfferRequest
2174
+ include Google::Apis::Core::Hashable
2175
+
2176
+ # Optional. The latency tolerance for the propagation of this product update.
2177
+ # Defaults to latency-sensitive.
2178
+ # Corresponds to the JSON property `latencyTolerance`
2179
+ # @return [String]
2180
+ attr_accessor :latency_tolerance
2181
+
2182
+ # Required. The unique offer ID of the offer to delete.
2183
+ # Corresponds to the JSON property `offerId`
2184
+ # @return [String]
2185
+ attr_accessor :offer_id
2186
+
2187
+ # Required. The parent app (package name) of the offer to delete.
2188
+ # Corresponds to the JSON property `packageName`
2189
+ # @return [String]
2190
+ attr_accessor :package_name
2191
+
2192
+ # Required. The parent one-time product (ID) of the offer to delete.
2193
+ # Corresponds to the JSON property `productId`
2194
+ # @return [String]
2195
+ attr_accessor :product_id
2196
+
2197
+ # Required. The parent purchase option (ID) of the offer to delete.
2198
+ # Corresponds to the JSON property `purchaseOptionId`
2199
+ # @return [String]
2200
+ attr_accessor :purchase_option_id
2201
+
2202
+ def initialize(**args)
2203
+ update!(**args)
2204
+ end
2205
+
2206
+ # Update properties of this object
2207
+ def update!(**args)
2208
+ @latency_tolerance = args[:latency_tolerance] if args.key?(:latency_tolerance)
2209
+ @offer_id = args[:offer_id] if args.key?(:offer_id)
2210
+ @package_name = args[:package_name] if args.key?(:package_name)
2211
+ @product_id = args[:product_id] if args.key?(:product_id)
2212
+ @purchase_option_id = args[:purchase_option_id] if args.key?(:purchase_option_id)
2213
+ end
2214
+ end
2215
+
2216
+ # Request message for deleting a one-time product.
2217
+ class DeleteOneTimeProductRequest
2218
+ include Google::Apis::Core::Hashable
2219
+
2220
+ # Optional. The latency tolerance for the propagation of this product update.
2221
+ # Defaults to latency-sensitive.
2222
+ # Corresponds to the JSON property `latencyTolerance`
2223
+ # @return [String]
2224
+ attr_accessor :latency_tolerance
2225
+
2226
+ # Required. The parent app (package name) of the one-time product to delete.
2227
+ # Corresponds to the JSON property `packageName`
2228
+ # @return [String]
2229
+ attr_accessor :package_name
2230
+
2231
+ # Required. The one-time product ID of the one-time product to delete.
2232
+ # Corresponds to the JSON property `productId`
2233
+ # @return [String]
2234
+ attr_accessor :product_id
2235
+
2236
+ def initialize(**args)
2237
+ update!(**args)
2238
+ end
2239
+
2240
+ # Update properties of this object
2241
+ def update!(**args)
2242
+ @latency_tolerance = args[:latency_tolerance] if args.key?(:latency_tolerance)
2243
+ @package_name = args[:package_name] if args.key?(:package_name)
2244
+ @product_id = args[:product_id] if args.key?(:product_id)
2245
+ end
2246
+ end
2247
+
2248
+ # Request message for deleting a purchase option.
2249
+ class DeletePurchaseOptionRequest
2250
+ include Google::Apis::Core::Hashable
2251
+
2252
+ # Optional. This field has no effect for purchase options with no offers under
2253
+ # them. For purchase options with associated offers: * If `force` is set to
2254
+ # false (default), an error will be returned. * If `force` is set to true, any
2255
+ # associated offers under the purchase option will be deleted.
2256
+ # Corresponds to the JSON property `force`
2257
+ # @return [Boolean]
2258
+ attr_accessor :force
2259
+ alias_method :force?, :force
2260
+
2261
+ # Optional. The latency tolerance for the propagation of this product update.
2262
+ # Defaults to latency-sensitive.
2263
+ # Corresponds to the JSON property `latencyTolerance`
2264
+ # @return [String]
2265
+ attr_accessor :latency_tolerance
2266
+
2267
+ # Required. The parent app (package name) of the purchase option to delete.
2268
+ # Corresponds to the JSON property `packageName`
2269
+ # @return [String]
2270
+ attr_accessor :package_name
2271
+
2272
+ # Required. The parent one-time product (ID) of the purchase option to delete.
2273
+ # Corresponds to the JSON property `productId`
2274
+ # @return [String]
2275
+ attr_accessor :product_id
2276
+
2277
+ # Required. The purchase option ID of the purchase option to delete.
2278
+ # Corresponds to the JSON property `purchaseOptionId`
2279
+ # @return [String]
2280
+ attr_accessor :purchase_option_id
2281
+
2282
+ def initialize(**args)
1666
2283
  update!(**args)
1667
2284
  end
1668
2285
 
1669
2286
  # Update properties of this object
1670
2287
  def update!(**args)
2288
+ @force = args[:force] if args.key?(:force)
2289
+ @latency_tolerance = args[:latency_tolerance] if args.key?(:latency_tolerance)
2290
+ @package_name = args[:package_name] if args.key?(:package_name)
1671
2291
  @product_id = args[:product_id] if args.key?(:product_id)
2292
+ @purchase_option_id = args[:purchase_option_id] if args.key?(:purchase_option_id)
1672
2293
  end
1673
2294
  end
1674
2295
 
@@ -2790,6 +3411,43 @@ module Google
2790
3411
  end
2791
3412
  end
2792
3413
 
3414
+ # Request message for GetOneTimeProductOffers.
3415
+ class GetOneTimeProductOfferRequest
3416
+ include Google::Apis::Core::Hashable
3417
+
3418
+ # Required. The unique offer ID of the offer to get.
3419
+ # Corresponds to the JSON property `offerId`
3420
+ # @return [String]
3421
+ attr_accessor :offer_id
3422
+
3423
+ # Required. The parent app (package name) of the offer to get.
3424
+ # Corresponds to the JSON property `packageName`
3425
+ # @return [String]
3426
+ attr_accessor :package_name
3427
+
3428
+ # Required. The parent one-time product (ID) of the offer to get.
3429
+ # Corresponds to the JSON property `productId`
3430
+ # @return [String]
3431
+ attr_accessor :product_id
3432
+
3433
+ # Required. The parent purchase option (ID) of the offer to get.
3434
+ # Corresponds to the JSON property `purchaseOptionId`
3435
+ # @return [String]
3436
+ attr_accessor :purchase_option_id
3437
+
3438
+ def initialize(**args)
3439
+ update!(**args)
3440
+ end
3441
+
3442
+ # Update properties of this object
3443
+ def update!(**args)
3444
+ @offer_id = args[:offer_id] if args.key?(:offer_id)
3445
+ @package_name = args[:package_name] if args.key?(:package_name)
3446
+ @product_id = args[:product_id] if args.key?(:product_id)
3447
+ @purchase_option_id = args[:purchase_option_id] if args.key?(:purchase_option_id)
3448
+ end
3449
+ end
3450
+
2793
3451
  # Request message for GetSubscriptionOffer.
2794
3452
  class GetSubscriptionOfferRequest
2795
3453
  include Google::Apis::Core::Hashable
@@ -3622,6 +4280,58 @@ module Google
3622
4280
  end
3623
4281
  end
3624
4282
 
4283
+ # Response message for ListOneTimeProductOffers.
4284
+ class ListOneTimeProductOffersResponse
4285
+ include Google::Apis::Core::Hashable
4286
+
4287
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
4288
+ # field is omitted, there are no subsequent pages.
4289
+ # Corresponds to the JSON property `nextPageToken`
4290
+ # @return [String]
4291
+ attr_accessor :next_page_token
4292
+
4293
+ # The one_time_product offers from the specified request.
4294
+ # Corresponds to the JSON property `oneTimeProductOffers`
4295
+ # @return [Array<Google::Apis::AndroidpublisherV3::OneTimeProductOffer>]
4296
+ attr_accessor :one_time_product_offers
4297
+
4298
+ def initialize(**args)
4299
+ update!(**args)
4300
+ end
4301
+
4302
+ # Update properties of this object
4303
+ def update!(**args)
4304
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
4305
+ @one_time_product_offers = args[:one_time_product_offers] if args.key?(:one_time_product_offers)
4306
+ end
4307
+ end
4308
+
4309
+ # Response message for ListOneTimeProducts.
4310
+ class ListOneTimeProductsResponse
4311
+ include Google::Apis::Core::Hashable
4312
+
4313
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
4314
+ # field is omitted, there are no subsequent pages.
4315
+ # Corresponds to the JSON property `nextPageToken`
4316
+ # @return [String]
4317
+ attr_accessor :next_page_token
4318
+
4319
+ # The one-time products from the specified app.
4320
+ # Corresponds to the JSON property `oneTimeProducts`
4321
+ # @return [Array<Google::Apis::AndroidpublisherV3::OneTimeProduct>]
4322
+ attr_accessor :one_time_products
4323
+
4324
+ def initialize(**args)
4325
+ update!(**args)
4326
+ end
4327
+
4328
+ # Update properties of this object
4329
+ def update!(**args)
4330
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
4331
+ @one_time_products = args[:one_time_products] if args.key?(:one_time_products)
4332
+ end
4333
+ end
4334
+
3625
4335
  # Response message for ListSubscriptionOffers.
3626
4336
  class ListSubscriptionOffersResponse
3627
4337
  include Google::Apis::Core::Hashable
@@ -4022,26 +4732,522 @@ module Google
4022
4732
  update!(**args)
4023
4733
  end
4024
4734
 
4025
- # Update properties of this object
4026
- def update!(**args)
4027
- @abi = args[:abi] if args.key?(:abi)
4028
- end
4029
- end
4735
+ # Update properties of this object
4736
+ def update!(**args)
4737
+ @abi = args[:abi] if args.key?(:abi)
4738
+ end
4739
+ end
4740
+
4741
+ # Targeting based on multiple abis.
4742
+ class MultiAbiTargeting
4743
+ include Google::Apis::Core::Hashable
4744
+
4745
+ # Targeting of other sibling directories that were in the Bundle. For main
4746
+ # splits this is targeting of other main splits.
4747
+ # Corresponds to the JSON property `alternatives`
4748
+ # @return [Array<Google::Apis::AndroidpublisherV3::MultiAbi>]
4749
+ attr_accessor :alternatives
4750
+
4751
+ # Value of a multi abi.
4752
+ # Corresponds to the JSON property `value`
4753
+ # @return [Array<Google::Apis::AndroidpublisherV3::MultiAbi>]
4754
+ attr_accessor :value
4755
+
4756
+ def initialize(**args)
4757
+ update!(**args)
4758
+ end
4759
+
4760
+ # Update properties of this object
4761
+ def update!(**args)
4762
+ @alternatives = args[:alternatives] if args.key?(:alternatives)
4763
+ @value = args[:value] if args.key?(:value)
4764
+ end
4765
+ end
4766
+
4767
+ # Offer details information related to a purchase line item.
4768
+ class OfferDetails
4769
+ include Google::Apis::Core::Hashable
4770
+
4771
+ # The base plan ID. Present for all base plan and offers.
4772
+ # Corresponds to the JSON property `basePlanId`
4773
+ # @return [String]
4774
+ attr_accessor :base_plan_id
4775
+
4776
+ # The offer ID. Only present for discounted offers.
4777
+ # Corresponds to the JSON property `offerId`
4778
+ # @return [String]
4779
+ attr_accessor :offer_id
4780
+
4781
+ # The latest offer tags associated with the offer. It includes tags inherited
4782
+ # from the base plan.
4783
+ # Corresponds to the JSON property `offerTags`
4784
+ # @return [Array<String>]
4785
+ attr_accessor :offer_tags
4786
+
4787
+ def initialize(**args)
4788
+ update!(**args)
4789
+ end
4790
+
4791
+ # Update properties of this object
4792
+ def update!(**args)
4793
+ @base_plan_id = args[:base_plan_id] if args.key?(:base_plan_id)
4794
+ @offer_id = args[:offer_id] if args.key?(:offer_id)
4795
+ @offer_tags = args[:offer_tags] if args.key?(:offer_tags)
4796
+ end
4797
+ end
4798
+
4799
+ # Represents a custom tag specified for a product offer.
4800
+ class OfferTag
4801
+ include Google::Apis::Core::Hashable
4802
+
4803
+ # Must conform with RFC-1034. That is, this string can only contain lower-case
4804
+ # letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
4805
+ # Corresponds to the JSON property `tag`
4806
+ # @return [String]
4807
+ attr_accessor :tag
4808
+
4809
+ def initialize(**args)
4810
+ update!(**args)
4811
+ end
4812
+
4813
+ # Update properties of this object
4814
+ def update!(**args)
4815
+ @tag = args[:tag] if args.key?(:tag)
4816
+ end
4817
+ end
4818
+
4819
+ # A single use promotion code.
4820
+ class OneTimeCode
4821
+ include Google::Apis::Core::Hashable
4822
+
4823
+ def initialize(**args)
4824
+ update!(**args)
4825
+ end
4826
+
4827
+ # Update properties of this object
4828
+ def update!(**args)
4829
+ end
4830
+ end
4831
+
4832
+ # Represents a one-time transaction.
4833
+ class OneTimeExternalTransaction
4834
+ include Google::Apis::Core::Hashable
4835
+
4836
+ # Input only. Provided during the call to Create. Retrieved from the client when
4837
+ # the alternative billing flow is launched.
4838
+ # Corresponds to the JSON property `externalTransactionToken`
4839
+ # @return [String]
4840
+ attr_accessor :external_transaction_token
4841
+
4842
+ def initialize(**args)
4843
+ update!(**args)
4844
+ end
4845
+
4846
+ # Update properties of this object
4847
+ def update!(**args)
4848
+ @external_transaction_token = args[:external_transaction_token] if args.key?(:external_transaction_token)
4849
+ end
4850
+ end
4851
+
4852
+ # A single one-time product for an app.
4853
+ class OneTimeProduct
4854
+ include Google::Apis::Core::Hashable
4855
+
4856
+ # Required. Set of localized title and description data. Must not have duplicate
4857
+ # entries with the same language_code.
4858
+ # Corresponds to the JSON property `listings`
4859
+ # @return [Array<Google::Apis::AndroidpublisherV3::OneTimeProductListing>]
4860
+ attr_accessor :listings
4861
+
4862
+ # Optional. List of up to 20 custom tags specified for this one-time product,
4863
+ # and returned to the app through the billing library. Purchase options and
4864
+ # offers for this product will also receive these tags in the billing library.
4865
+ # Corresponds to the JSON property `offerTags`
4866
+ # @return [Array<Google::Apis::AndroidpublisherV3::OfferTag>]
4867
+ attr_accessor :offer_tags
4868
+
4869
+ # Required. Immutable. Package name of the parent app.
4870
+ # Corresponds to the JSON property `packageName`
4871
+ # @return [String]
4872
+ attr_accessor :package_name
4873
+
4874
+ # Required. Immutable. Unique product ID of the product. Unique within the
4875
+ # parent app. Product IDs must start with a number or lowercase letter, and can
4876
+ # contain numbers (0-9), lowercase letters (a-z), underscores (_), and periods (.
4877
+ # ).
4878
+ # Corresponds to the JSON property `productId`
4879
+ # @return [String]
4880
+ attr_accessor :product_id
4881
+
4882
+ # Required. The set of purchase options for this one-time product.
4883
+ # Corresponds to the JSON property `purchaseOptions`
4884
+ # @return [Array<Google::Apis::AndroidpublisherV3::OneTimeProductPurchaseOption>]
4885
+ attr_accessor :purchase_options
4886
+
4887
+ # The version of the available regions being used for the specified resource.
4888
+ # Corresponds to the JSON property `regionsVersion`
4889
+ # @return [Google::Apis::AndroidpublisherV3::RegionsVersion]
4890
+ attr_accessor :regions_version
4891
+
4892
+ # Countries where the purchase of this product is restricted to payment methods
4893
+ # registered in the same country. If empty, no payment location restrictions are
4894
+ # imposed.
4895
+ # Corresponds to the JSON property `restrictedPaymentCountries`
4896
+ # @return [Google::Apis::AndroidpublisherV3::RestrictedPaymentCountries]
4897
+ attr_accessor :restricted_payment_countries
4898
+
4899
+ # Details about taxation, Google Play policy and legal compliance for one-time
4900
+ # products.
4901
+ # Corresponds to the JSON property `taxAndComplianceSettings`
4902
+ # @return [Google::Apis::AndroidpublisherV3::OneTimeProductTaxAndComplianceSettings]
4903
+ attr_accessor :tax_and_compliance_settings
4904
+
4905
+ def initialize(**args)
4906
+ update!(**args)
4907
+ end
4908
+
4909
+ # Update properties of this object
4910
+ def update!(**args)
4911
+ @listings = args[:listings] if args.key?(:listings)
4912
+ @offer_tags = args[:offer_tags] if args.key?(:offer_tags)
4913
+ @package_name = args[:package_name] if args.key?(:package_name)
4914
+ @product_id = args[:product_id] if args.key?(:product_id)
4915
+ @purchase_options = args[:purchase_options] if args.key?(:purchase_options)
4916
+ @regions_version = args[:regions_version] if args.key?(:regions_version)
4917
+ @restricted_payment_countries = args[:restricted_payment_countries] if args.key?(:restricted_payment_countries)
4918
+ @tax_and_compliance_settings = args[:tax_and_compliance_settings] if args.key?(:tax_and_compliance_settings)
4919
+ end
4920
+ end
4921
+
4922
+ # A purchase option that can be bought.
4923
+ class OneTimeProductBuyPurchaseOption
4924
+ include Google::Apis::Core::Hashable
4925
+
4926
+ # Optional. Whether this purchase option will be available in legacy PBL flows
4927
+ # that do not support one-time products model. Up to one "buy" purchase option
4928
+ # can be marked as backwards compatible.
4929
+ # Corresponds to the JSON property `legacyCompatible`
4930
+ # @return [Boolean]
4931
+ attr_accessor :legacy_compatible
4932
+ alias_method :legacy_compatible?, :legacy_compatible
4933
+
4934
+ # Optional. Whether this purchase option allows multi-quantity. Multi-quantity
4935
+ # allows buyer to purchase more than one item in a single checkout.
4936
+ # Corresponds to the JSON property `multiQuantityEnabled`
4937
+ # @return [Boolean]
4938
+ attr_accessor :multi_quantity_enabled
4939
+ alias_method :multi_quantity_enabled?, :multi_quantity_enabled
4940
+
4941
+ def initialize(**args)
4942
+ update!(**args)
4943
+ end
4944
+
4945
+ # Update properties of this object
4946
+ def update!(**args)
4947
+ @legacy_compatible = args[:legacy_compatible] if args.key?(:legacy_compatible)
4948
+ @multi_quantity_enabled = args[:multi_quantity_enabled] if args.key?(:multi_quantity_enabled)
4949
+ end
4950
+ end
4951
+
4952
+ # Configuration specific to discounted offers.
4953
+ class OneTimeProductDiscountedOffer
4954
+ include Google::Apis::Core::Hashable
4955
+
4956
+ # Time when the offer will stop being available.
4957
+ # Corresponds to the JSON property `endTime`
4958
+ # @return [String]
4959
+ attr_accessor :end_time
4960
+
4961
+ # Optional. The number of times this offer can be redeemed. If unset or set to 0,
4962
+ # allows for unlimited offer redemptions. Otherwise must be a number between 1
4963
+ # and 50 inclusive.
4964
+ # Corresponds to the JSON property `redemptionLimit`
4965
+ # @return [Fixnum]
4966
+ attr_accessor :redemption_limit
4967
+
4968
+ # Time when the offer will start being available.
4969
+ # Corresponds to the JSON property `startTime`
4970
+ # @return [String]
4971
+ attr_accessor :start_time
4972
+
4973
+ def initialize(**args)
4974
+ update!(**args)
4975
+ end
4976
+
4977
+ # Update properties of this object
4978
+ def update!(**args)
4979
+ @end_time = args[:end_time] if args.key?(:end_time)
4980
+ @redemption_limit = args[:redemption_limit] if args.key?(:redemption_limit)
4981
+ @start_time = args[:start_time] if args.key?(:start_time)
4982
+ end
4983
+ end
4984
+
4985
+ # Regional store listing for a one-time product.
4986
+ class OneTimeProductListing
4987
+ include Google::Apis::Core::Hashable
4988
+
4989
+ # Required. The description of this product in the language of this listing. The
4990
+ # maximum length is 200 characters.
4991
+ # Corresponds to the JSON property `description`
4992
+ # @return [String]
4993
+ attr_accessor :description
4994
+
4995
+ # Required. The language of this listing, as defined by BCP-47, e.g., "en-US".
4996
+ # Corresponds to the JSON property `languageCode`
4997
+ # @return [String]
4998
+ attr_accessor :language_code
4999
+
5000
+ # Required. The title of this product in the language of this listing. The
5001
+ # maximum length is 55 characters.
5002
+ # Corresponds to the JSON property `title`
5003
+ # @return [String]
5004
+ attr_accessor :title
5005
+
5006
+ def initialize(**args)
5007
+ update!(**args)
5008
+ end
5009
+
5010
+ # Update properties of this object
5011
+ def update!(**args)
5012
+ @description = args[:description] if args.key?(:description)
5013
+ @language_code = args[:language_code] if args.key?(:language_code)
5014
+ @title = args[:title] if args.key?(:title)
5015
+ end
5016
+ end
5017
+
5018
+ # A single offer for a one-time product.
5019
+ class OneTimeProductOffer
5020
+ include Google::Apis::Core::Hashable
5021
+
5022
+ # Configuration specific to discounted offers.
5023
+ # Corresponds to the JSON property `discountedOffer`
5024
+ # @return [Google::Apis::AndroidpublisherV3::OneTimeProductDiscountedOffer]
5025
+ attr_accessor :discounted_offer
5026
+
5027
+ # Required. Immutable. The ID of this product offer. Must be unique within the
5028
+ # purchase option. It must start with a number or lower-case letter, and can
5029
+ # only contain lower-case letters (a-z), numbers (0-9), and hyphens (-). The
5030
+ # maximum length is 63 characters.
5031
+ # Corresponds to the JSON property `offerId`
5032
+ # @return [String]
5033
+ attr_accessor :offer_id
5034
+
5035
+ # Optional. List of up to 20 custom tags specified for this offer, and returned
5036
+ # to the app through the billing library.
5037
+ # Corresponds to the JSON property `offerTags`
5038
+ # @return [Array<Google::Apis::AndroidpublisherV3::OfferTag>]
5039
+ attr_accessor :offer_tags
5040
+
5041
+ # Required. Immutable. The package name of the app the parent product belongs to.
5042
+ # Corresponds to the JSON property `packageName`
5043
+ # @return [String]
5044
+ attr_accessor :package_name
5045
+
5046
+ # Configuration specific to pre-order offers.
5047
+ # Corresponds to the JSON property `preOrderOffer`
5048
+ # @return [Google::Apis::AndroidpublisherV3::OneTimeProductPreOrderOffer]
5049
+ attr_accessor :pre_order_offer
5050
+
5051
+ # Required. Immutable. The ID of the parent product this offer belongs to.
5052
+ # Corresponds to the JSON property `productId`
5053
+ # @return [String]
5054
+ attr_accessor :product_id
5055
+
5056
+ # Required. Immutable. The ID of the purchase option to which this offer is an
5057
+ # extension.
5058
+ # Corresponds to the JSON property `purchaseOptionId`
5059
+ # @return [String]
5060
+ attr_accessor :purchase_option_id
5061
+
5062
+ # Set of regional pricing and availability information for this offer. Must not
5063
+ # have duplicate entries with the same region_code.
5064
+ # Corresponds to the JSON property `regionalPricingAndAvailabilityConfigs`
5065
+ # @return [Array<Google::Apis::AndroidpublisherV3::OneTimeProductOfferRegionalPricingAndAvailabilityConfig>]
5066
+ attr_accessor :regional_pricing_and_availability_configs
5067
+
5068
+ # The version of the available regions being used for the specified resource.
5069
+ # Corresponds to the JSON property `regionsVersion`
5070
+ # @return [Google::Apis::AndroidpublisherV3::RegionsVersion]
5071
+ attr_accessor :regions_version
5072
+
5073
+ # Output only. The current state of this offer. This field cannot be changed by
5074
+ # updating the resource. Use the dedicated endpoints instead.
5075
+ # Corresponds to the JSON property `state`
5076
+ # @return [String]
5077
+ attr_accessor :state
5078
+
5079
+ def initialize(**args)
5080
+ update!(**args)
5081
+ end
5082
+
5083
+ # Update properties of this object
5084
+ def update!(**args)
5085
+ @discounted_offer = args[:discounted_offer] if args.key?(:discounted_offer)
5086
+ @offer_id = args[:offer_id] if args.key?(:offer_id)
5087
+ @offer_tags = args[:offer_tags] if args.key?(:offer_tags)
5088
+ @package_name = args[:package_name] if args.key?(:package_name)
5089
+ @pre_order_offer = args[:pre_order_offer] if args.key?(:pre_order_offer)
5090
+ @product_id = args[:product_id] if args.key?(:product_id)
5091
+ @purchase_option_id = args[:purchase_option_id] if args.key?(:purchase_option_id)
5092
+ @regional_pricing_and_availability_configs = args[:regional_pricing_and_availability_configs] if args.key?(:regional_pricing_and_availability_configs)
5093
+ @regions_version = args[:regions_version] if args.key?(:regions_version)
5094
+ @state = args[:state] if args.key?(:state)
5095
+ end
5096
+ end
5097
+
5098
+ # Options for one-time product offers without a regional price override.
5099
+ class OneTimeProductOfferNoPriceOverrideOptions
5100
+ include Google::Apis::Core::Hashable
5101
+
5102
+ def initialize(**args)
5103
+ update!(**args)
5104
+ end
5105
+
5106
+ # Update properties of this object
5107
+ def update!(**args)
5108
+ end
5109
+ end
5110
+
5111
+ # Regional pricing and availability configuration for a one-time product offer.
5112
+ class OneTimeProductOfferRegionalPricingAndAvailabilityConfig
5113
+ include Google::Apis::Core::Hashable
5114
+
5115
+ # Represents an amount of money with its currency type.
5116
+ # Corresponds to the JSON property `absoluteDiscount`
5117
+ # @return [Google::Apis::AndroidpublisherV3::Money]
5118
+ attr_accessor :absolute_discount
5119
+
5120
+ # Required. The availability for this region.
5121
+ # Corresponds to the JSON property `availability`
5122
+ # @return [String]
5123
+ attr_accessor :availability
5124
+
5125
+ # Options for one-time product offers without a regional price override.
5126
+ # Corresponds to the JSON property `noOverride`
5127
+ # @return [Google::Apis::AndroidpublisherV3::OneTimeProductOfferNoPriceOverrideOptions]
5128
+ attr_accessor :no_override
5129
+
5130
+ # Required. Region code this configuration applies to, as defined by ISO 3166-2,
5131
+ # e.g., "US".
5132
+ # Corresponds to the JSON property `regionCode`
5133
+ # @return [String]
5134
+ attr_accessor :region_code
5135
+
5136
+ # The fraction of the purchase option price that the user pays for this offer.
5137
+ # For example, if the purchase option price for this region is $12, then a 50%
5138
+ # discount would correspond to a price of $6. The discount must be specified as
5139
+ # a fraction strictly larger than 0 and strictly smaller than 1. The resulting
5140
+ # price will be rounded to the nearest billable unit (e.g. cents for USD). The
5141
+ # relative discount is considered invalid if the discounted price ends up being
5142
+ # smaller than the minimum price allowed in this region.
5143
+ # Corresponds to the JSON property `relativeDiscount`
5144
+ # @return [Float]
5145
+ attr_accessor :relative_discount
5146
+
5147
+ def initialize(**args)
5148
+ update!(**args)
5149
+ end
5150
+
5151
+ # Update properties of this object
5152
+ def update!(**args)
5153
+ @absolute_discount = args[:absolute_discount] if args.key?(:absolute_discount)
5154
+ @availability = args[:availability] if args.key?(:availability)
5155
+ @no_override = args[:no_override] if args.key?(:no_override)
5156
+ @region_code = args[:region_code] if args.key?(:region_code)
5157
+ @relative_discount = args[:relative_discount] if args.key?(:relative_discount)
5158
+ end
5159
+ end
5160
+
5161
+ # Configuration specific to pre-order offers.
5162
+ class OneTimeProductPreOrderOffer
5163
+ include Google::Apis::Core::Hashable
5164
+
5165
+ # Required. Time when the pre-order will stop being available.
5166
+ # Corresponds to the JSON property `endTime`
5167
+ # @return [String]
5168
+ attr_accessor :end_time
5169
+
5170
+ # Required. Immutable. Specifies how price changes affect pre-existing pre-
5171
+ # orders.
5172
+ # Corresponds to the JSON property `priceChangeBehavior`
5173
+ # @return [String]
5174
+ attr_accessor :price_change_behavior
5175
+
5176
+ # Required. Time on which the product associated with the pre-order will be
5177
+ # released and the pre-order orders fulfilled.
5178
+ # Corresponds to the JSON property `releaseTime`
5179
+ # @return [String]
5180
+ attr_accessor :release_time
5181
+
5182
+ # Required. Time when the pre-order will start being available.
5183
+ # Corresponds to the JSON property `startTime`
5184
+ # @return [String]
5185
+ attr_accessor :start_time
5186
+
5187
+ def initialize(**args)
5188
+ update!(**args)
5189
+ end
5190
+
5191
+ # Update properties of this object
5192
+ def update!(**args)
5193
+ @end_time = args[:end_time] if args.key?(:end_time)
5194
+ @price_change_behavior = args[:price_change_behavior] if args.key?(:price_change_behavior)
5195
+ @release_time = args[:release_time] if args.key?(:release_time)
5196
+ @start_time = args[:start_time] if args.key?(:start_time)
5197
+ end
5198
+ end
5199
+
5200
+ # A single purchase option for a one-time product.
5201
+ class OneTimeProductPurchaseOption
5202
+ include Google::Apis::Core::Hashable
5203
+
5204
+ # A purchase option that can be bought.
5205
+ # Corresponds to the JSON property `buyOption`
5206
+ # @return [Google::Apis::AndroidpublisherV3::OneTimeProductBuyPurchaseOption]
5207
+ attr_accessor :buy_option
5208
+
5209
+ # Pricing information for any new regions Play may launch in the future.
5210
+ # Corresponds to the JSON property `newRegionsConfig`
5211
+ # @return [Google::Apis::AndroidpublisherV3::OneTimeProductPurchaseOptionNewRegionsConfig]
5212
+ attr_accessor :new_regions_config
5213
+
5214
+ # Optional. List of up to 20 custom tags specified for this purchase option, and
5215
+ # returned to the app through the billing library. Offers for this purchase
5216
+ # option will also receive these tags in the billing library.
5217
+ # Corresponds to the JSON property `offerTags`
5218
+ # @return [Array<Google::Apis::AndroidpublisherV3::OfferTag>]
5219
+ attr_accessor :offer_tags
5220
+
5221
+ # Required. Immutable. The unique identifier of this purchase option. Must be
5222
+ # unique within the one-time product. It must start with a number or lower-case
5223
+ # letter, and can only contain lower-case letters (a-z), numbers (0-9), and
5224
+ # hyphens (-). The maximum length is 63 characters.
5225
+ # Corresponds to the JSON property `purchaseOptionId`
5226
+ # @return [String]
5227
+ attr_accessor :purchase_option_id
4030
5228
 
4031
- # Targeting based on multiple abis.
4032
- class MultiAbiTargeting
4033
- include Google::Apis::Core::Hashable
5229
+ # Regional pricing and availability information for this purchase option.
5230
+ # Corresponds to the JSON property `regionalPricingAndAvailabilityConfigs`
5231
+ # @return [Array<Google::Apis::AndroidpublisherV3::OneTimeProductPurchaseOptionRegionalPricingAndAvailabilityConfig>]
5232
+ attr_accessor :regional_pricing_and_availability_configs
4034
5233
 
4035
- # Targeting of other sibling directories that were in the Bundle. For main
4036
- # splits this is targeting of other main splits.
4037
- # Corresponds to the JSON property `alternatives`
4038
- # @return [Array<Google::Apis::AndroidpublisherV3::MultiAbi>]
4039
- attr_accessor :alternatives
5234
+ # A purchase option that can be rented.
5235
+ # Corresponds to the JSON property `rentOption`
5236
+ # @return [Google::Apis::AndroidpublisherV3::OneTimeProductRentPurchaseOption]
5237
+ attr_accessor :rent_option
4040
5238
 
4041
- # Value of a multi abi.
4042
- # Corresponds to the JSON property `value`
4043
- # @return [Array<Google::Apis::AndroidpublisherV3::MultiAbi>]
4044
- attr_accessor :value
5239
+ # Output only. The state of the purchase option, i.e., whether it's active. This
5240
+ # field cannot be changed by updating the resource. Use the dedicated endpoints
5241
+ # instead.
5242
+ # Corresponds to the JSON property `state`
5243
+ # @return [String]
5244
+ attr_accessor :state
5245
+
5246
+ # Details about taxation, Google Play policy and legal compliance for one-time
5247
+ # product purchase options.
5248
+ # Corresponds to the JSON property `taxAndComplianceSettings`
5249
+ # @return [Google::Apis::AndroidpublisherV3::PurchaseOptionTaxAndComplianceSettings]
5250
+ attr_accessor :tax_and_compliance_settings
4045
5251
 
4046
5252
  def initialize(**args)
4047
5253
  update!(**args)
@@ -4049,30 +5255,37 @@ module Google
4049
5255
 
4050
5256
  # Update properties of this object
4051
5257
  def update!(**args)
4052
- @alternatives = args[:alternatives] if args.key?(:alternatives)
4053
- @value = args[:value] if args.key?(:value)
5258
+ @buy_option = args[:buy_option] if args.key?(:buy_option)
5259
+ @new_regions_config = args[:new_regions_config] if args.key?(:new_regions_config)
5260
+ @offer_tags = args[:offer_tags] if args.key?(:offer_tags)
5261
+ @purchase_option_id = args[:purchase_option_id] if args.key?(:purchase_option_id)
5262
+ @regional_pricing_and_availability_configs = args[:regional_pricing_and_availability_configs] if args.key?(:regional_pricing_and_availability_configs)
5263
+ @rent_option = args[:rent_option] if args.key?(:rent_option)
5264
+ @state = args[:state] if args.key?(:state)
5265
+ @tax_and_compliance_settings = args[:tax_and_compliance_settings] if args.key?(:tax_and_compliance_settings)
4054
5266
  end
4055
5267
  end
4056
5268
 
4057
- # Offer details information related to a purchase line item.
4058
- class OfferDetails
5269
+ # Pricing information for any new regions Play may launch in the future.
5270
+ class OneTimeProductPurchaseOptionNewRegionsConfig
4059
5271
  include Google::Apis::Core::Hashable
4060
5272
 
4061
- # The base plan ID. Present for all base plan and offers.
4062
- # Corresponds to the JSON property `basePlanId`
5273
+ # Required. The regional availability for the new regions config. When set to
5274
+ # AVAILABLE, the pricing information will be used for any new regions Play may
5275
+ # launch in the future.
5276
+ # Corresponds to the JSON property `availability`
4063
5277
  # @return [String]
4064
- attr_accessor :base_plan_id
5278
+ attr_accessor :availability
4065
5279
 
4066
- # The offer ID. Only present for discounted offers.
4067
- # Corresponds to the JSON property `offerId`
4068
- # @return [String]
4069
- attr_accessor :offer_id
5280
+ # Represents an amount of money with its currency type.
5281
+ # Corresponds to the JSON property `eurPrice`
5282
+ # @return [Google::Apis::AndroidpublisherV3::Money]
5283
+ attr_accessor :eur_price
4070
5284
 
4071
- # The latest offer tags associated with the offer. It includes tags inherited
4072
- # from the base plan.
4073
- # Corresponds to the JSON property `offerTags`
4074
- # @return [Array<String>]
4075
- attr_accessor :offer_tags
5285
+ # Represents an amount of money with its currency type.
5286
+ # Corresponds to the JSON property `usdPrice`
5287
+ # @return [Google::Apis::AndroidpublisherV3::Money]
5288
+ attr_accessor :usd_price
4076
5289
 
4077
5290
  def initialize(**args)
4078
5291
  update!(**args)
@@ -4080,21 +5293,31 @@ module Google
4080
5293
 
4081
5294
  # Update properties of this object
4082
5295
  def update!(**args)
4083
- @base_plan_id = args[:base_plan_id] if args.key?(:base_plan_id)
4084
- @offer_id = args[:offer_id] if args.key?(:offer_id)
4085
- @offer_tags = args[:offer_tags] if args.key?(:offer_tags)
5296
+ @availability = args[:availability] if args.key?(:availability)
5297
+ @eur_price = args[:eur_price] if args.key?(:eur_price)
5298
+ @usd_price = args[:usd_price] if args.key?(:usd_price)
4086
5299
  end
4087
5300
  end
4088
5301
 
4089
- # Represents a custom tag specified for a product offer.
4090
- class OfferTag
5302
+ # Regional pricing and availability configuration for a purchase option.
5303
+ class OneTimeProductPurchaseOptionRegionalPricingAndAvailabilityConfig
4091
5304
  include Google::Apis::Core::Hashable
4092
5305
 
4093
- # Must conform with RFC-1034. That is, this string can only contain lower-case
4094
- # letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
4095
- # Corresponds to the JSON property `tag`
5306
+ # The availability of the purchase option.
5307
+ # Corresponds to the JSON property `availability`
4096
5308
  # @return [String]
4097
- attr_accessor :tag
5309
+ attr_accessor :availability
5310
+
5311
+ # Represents an amount of money with its currency type.
5312
+ # Corresponds to the JSON property `price`
5313
+ # @return [Google::Apis::AndroidpublisherV3::Money]
5314
+ attr_accessor :price
5315
+
5316
+ # Required. Region code this configuration applies to, as defined by ISO 3166-2,
5317
+ # e.g., "US".
5318
+ # Corresponds to the JSON property `regionCode`
5319
+ # @return [String]
5320
+ attr_accessor :region_code
4098
5321
 
4099
5322
  def initialize(**args)
4100
5323
  update!(**args)
@@ -4102,32 +5325,55 @@ module Google
4102
5325
 
4103
5326
  # Update properties of this object
4104
5327
  def update!(**args)
4105
- @tag = args[:tag] if args.key?(:tag)
5328
+ @availability = args[:availability] if args.key?(:availability)
5329
+ @price = args[:price] if args.key?(:price)
5330
+ @region_code = args[:region_code] if args.key?(:region_code)
4106
5331
  end
4107
5332
  end
4108
5333
 
4109
- # A single use promotion code.
4110
- class OneTimeCode
5334
+ # A purchase option that can be rented.
5335
+ class OneTimeProductRentPurchaseOption
4111
5336
  include Google::Apis::Core::Hashable
4112
5337
 
5338
+ # Optional. The amount of time the user has after starting consuming the
5339
+ # entitlement before it is revoked. Specified in ISO 8601 format.
5340
+ # Corresponds to the JSON property `expirationPeriod`
5341
+ # @return [String]
5342
+ attr_accessor :expiration_period
5343
+
5344
+ # Required. The amount of time a user has the entitlement for. Starts at
5345
+ # purchase flow completion. Specified in ISO 8601 format.
5346
+ # Corresponds to the JSON property `rentalPeriod`
5347
+ # @return [String]
5348
+ attr_accessor :rental_period
5349
+
4113
5350
  def initialize(**args)
4114
5351
  update!(**args)
4115
5352
  end
4116
5353
 
4117
5354
  # Update properties of this object
4118
5355
  def update!(**args)
5356
+ @expiration_period = args[:expiration_period] if args.key?(:expiration_period)
5357
+ @rental_period = args[:rental_period] if args.key?(:rental_period)
4119
5358
  end
4120
5359
  end
4121
5360
 
4122
- # Represents a one-time transaction.
4123
- class OneTimeExternalTransaction
5361
+ # Details about taxation, Google Play policy and legal compliance for one-time
5362
+ # products.
5363
+ class OneTimeProductTaxAndComplianceSettings
4124
5364
  include Google::Apis::Core::Hashable
4125
5365
 
4126
- # Input only. Provided during the call to Create. Retrieved from the client when
4127
- # the alternative billing flow is launched.
4128
- # Corresponds to the JSON property `externalTransactionToken`
4129
- # @return [String]
4130
- attr_accessor :external_transaction_token
5366
+ # Whether this one-time product is declared as a product representing a
5367
+ # tokenized digital asset.
5368
+ # Corresponds to the JSON property `isTokenizedDigitalAsset`
5369
+ # @return [Boolean]
5370
+ attr_accessor :is_tokenized_digital_asset
5371
+ alias_method :is_tokenized_digital_asset?, :is_tokenized_digital_asset
5372
+
5373
+ # Regional tax configuration.
5374
+ # Corresponds to the JSON property `regionalTaxConfigs`
5375
+ # @return [Array<Google::Apis::AndroidpublisherV3::RegionalTaxConfig>]
5376
+ attr_accessor :regional_tax_configs
4131
5377
 
4132
5378
  def initialize(**args)
4133
5379
  update!(**args)
@@ -4135,7 +5381,8 @@ module Google
4135
5381
 
4136
5382
  # Update properties of this object
4137
5383
  def update!(**args)
4138
- @external_transaction_token = args[:external_transaction_token] if args.key?(:external_transaction_token)
5384
+ @is_tokenized_digital_asset = args[:is_tokenized_digital_asset] if args.key?(:is_tokenized_digital_asset)
5385
+ @regional_tax_configs = args[:regional_tax_configs] if args.key?(:regional_tax_configs)
4139
5386
  end
4140
5387
  end
4141
5388
 
@@ -5099,6 +6346,30 @@ module Google
5099
6346
  end
5100
6347
  end
5101
6348
 
6349
+ # Details about taxation, Google Play policy and legal compliance for one-time
6350
+ # product purchase options.
6351
+ class PurchaseOptionTaxAndComplianceSettings
6352
+ include Google::Apis::Core::Hashable
6353
+
6354
+ # Optional. Digital content or service classification for products distributed
6355
+ # to users in eligible regions. If unset, it defaults to `
6356
+ # WITHDRAWAL_RIGHT_DIGITAL_CONTENT`. Refer to the [Help Center article](https://
6357
+ # support.google.com/googleplay/android-developer/answer/10463498) for more
6358
+ # information.
6359
+ # Corresponds to the JSON property `withdrawalRightType`
6360
+ # @return [String]
6361
+ attr_accessor :withdrawal_right_type
6362
+
6363
+ def initialize(**args)
6364
+ update!(**args)
6365
+ end
6366
+
6367
+ # Update properties of this object
6368
+ def update!(**args)
6369
+ @withdrawal_right_type = args[:withdrawal_right_type] if args.key?(:withdrawal_right_type)
6370
+ end
6371
+ end
6372
+
5102
6373
  # Context about the purchase state.
5103
6374
  class PurchaseStateContext
5104
6375
  include Google::Apis::Core::Hashable
@@ -5423,6 +6694,51 @@ module Google
5423
6694
  end
5424
6695
  end
5425
6696
 
6697
+ # Details about taxation in a given geographical region.
6698
+ class RegionalTaxConfig
6699
+ include Google::Apis::Core::Hashable
6700
+
6701
+ # You must tell us if your app contains streaming products to correctly charge
6702
+ # US state and local sales tax. Field only supported in the United States.
6703
+ # Corresponds to the JSON property `eligibleForStreamingServiceTaxRate`
6704
+ # @return [Boolean]
6705
+ attr_accessor :eligible_for_streaming_service_tax_rate
6706
+ alias_method :eligible_for_streaming_service_tax_rate?, :eligible_for_streaming_service_tax_rate
6707
+
6708
+ # Required. Region code this configuration applies to, as defined by ISO 3166-2,
6709
+ # e.g. "US".
6710
+ # Corresponds to the JSON property `regionCode`
6711
+ # @return [String]
6712
+ attr_accessor :region_code
6713
+
6714
+ # To collect communications or amusement taxes in the United States, choose the
6715
+ # appropriate tax category. [Learn more](https://support.google.com/googleplay/
6716
+ # android-developer/answer/10463498#streaming_tax).
6717
+ # Corresponds to the JSON property `streamingTaxType`
6718
+ # @return [String]
6719
+ attr_accessor :streaming_tax_type
6720
+
6721
+ # Tax tier to specify reduced tax rate. Developers who sell digital news,
6722
+ # magazines, newspapers, books, or audiobooks in various regions may be eligible
6723
+ # for reduced tax rates. [Learn more](https://support.google.com/googleplay/
6724
+ # android-developer/answer/10463498).
6725
+ # Corresponds to the JSON property `taxTier`
6726
+ # @return [String]
6727
+ attr_accessor :tax_tier
6728
+
6729
+ def initialize(**args)
6730
+ update!(**args)
6731
+ end
6732
+
6733
+ # Update properties of this object
6734
+ def update!(**args)
6735
+ @eligible_for_streaming_service_tax_rate = args[:eligible_for_streaming_service_tax_rate] if args.key?(:eligible_for_streaming_service_tax_rate)
6736
+ @region_code = args[:region_code] if args.key?(:region_code)
6737
+ @streaming_tax_type = args[:streaming_tax_type] if args.key?(:streaming_tax_type)
6738
+ @tax_tier = args[:tax_tier] if args.key?(:tax_tier)
6739
+ end
6740
+ end
6741
+
5426
6742
  # Specified details about taxation in a given geographical region.
5427
6743
  class RegionalTaxRateInfo
5428
6744
  include Google::Apis::Core::Hashable
@@ -6859,6 +8175,11 @@ module Google
6859
8175
  # @return [Google::Apis::AndroidpublisherV3::AutoRenewingPlan]
6860
8176
  attr_accessor :auto_renewing_plan
6861
8177
 
8178
+ # Information related to deferred item replacement.
8179
+ # Corresponds to the JSON property `deferredItemRemoval`
8180
+ # @return [Google::Apis::AndroidpublisherV3::DeferredItemRemoval]
8181
+ attr_accessor :deferred_item_removal
8182
+
6862
8183
  # Information related to deferred item replacement.
6863
8184
  # Corresponds to the JSON property `deferredItemReplacement`
6864
8185
  # @return [Google::Apis::AndroidpublisherV3::DeferredItemReplacement]
@@ -6904,6 +8225,7 @@ module Google
6904
8225
  # Update properties of this object
6905
8226
  def update!(**args)
6906
8227
  @auto_renewing_plan = args[:auto_renewing_plan] if args.key?(:auto_renewing_plan)
8228
+ @deferred_item_removal = args[:deferred_item_removal] if args.key?(:deferred_item_removal)
6907
8229
  @deferred_item_replacement = args[:deferred_item_replacement] if args.key?(:deferred_item_replacement)
6908
8230
  @expiry_time = args[:expiry_time] if args.key?(:expiry_time)
6909
8231
  @latest_successful_order_id = args[:latest_successful_order_id] if args.key?(:latest_successful_order_id)
@@ -7796,6 +9118,156 @@ module Google
7796
9118
  end
7797
9119
  end
7798
9120
 
9121
+ # Request message for UpdateOneTimeProductOffer.
9122
+ class UpdateOneTimeProductOfferRequest
9123
+ include Google::Apis::Core::Hashable
9124
+
9125
+ # Optional. If set to true, and the offer with the given package_name,
9126
+ # product_id, purchase_option_id and offer_id doesn't exist, an offer will be
9127
+ # created. If a new offer is created, the update_mask is ignored.
9128
+ # Corresponds to the JSON property `allowMissing`
9129
+ # @return [Boolean]
9130
+ attr_accessor :allow_missing
9131
+ alias_method :allow_missing?, :allow_missing
9132
+
9133
+ # Optional. The latency tolerance for the propagation of this offer update.
9134
+ # Defaults to latency-sensitive.
9135
+ # Corresponds to the JSON property `latencyTolerance`
9136
+ # @return [String]
9137
+ attr_accessor :latency_tolerance
9138
+
9139
+ # A single offer for a one-time product.
9140
+ # Corresponds to the JSON property `oneTimeProductOffer`
9141
+ # @return [Google::Apis::AndroidpublisherV3::OneTimeProductOffer]
9142
+ attr_accessor :one_time_product_offer
9143
+
9144
+ # The version of the available regions being used for the specified resource.
9145
+ # Corresponds to the JSON property `regionsVersion`
9146
+ # @return [Google::Apis::AndroidpublisherV3::RegionsVersion]
9147
+ attr_accessor :regions_version
9148
+
9149
+ # Required. The list of fields to be updated.
9150
+ # Corresponds to the JSON property `updateMask`
9151
+ # @return [String]
9152
+ attr_accessor :update_mask
9153
+
9154
+ def initialize(**args)
9155
+ update!(**args)
9156
+ end
9157
+
9158
+ # Update properties of this object
9159
+ def update!(**args)
9160
+ @allow_missing = args[:allow_missing] if args.key?(:allow_missing)
9161
+ @latency_tolerance = args[:latency_tolerance] if args.key?(:latency_tolerance)
9162
+ @one_time_product_offer = args[:one_time_product_offer] if args.key?(:one_time_product_offer)
9163
+ @regions_version = args[:regions_version] if args.key?(:regions_version)
9164
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
9165
+ end
9166
+ end
9167
+
9168
+ # Request message to update the state of a one-time product offer.
9169
+ class UpdateOneTimeProductOfferStateRequest
9170
+ include Google::Apis::Core::Hashable
9171
+
9172
+ # Request message for ActivateOneTimeProductOffer.
9173
+ # Corresponds to the JSON property `activateOneTimeProductOfferRequest`
9174
+ # @return [Google::Apis::AndroidpublisherV3::ActivateOneTimeProductOfferRequest]
9175
+ attr_accessor :activate_one_time_product_offer_request
9176
+
9177
+ # Request message for CancelOneTimeProductOffer.
9178
+ # Corresponds to the JSON property `cancelOneTimeProductOfferRequest`
9179
+ # @return [Google::Apis::AndroidpublisherV3::CancelOneTimeProductOfferRequest]
9180
+ attr_accessor :cancel_one_time_product_offer_request
9181
+
9182
+ # Request message for DeactivateOneTimeProductOffer.
9183
+ # Corresponds to the JSON property `deactivateOneTimeProductOfferRequest`
9184
+ # @return [Google::Apis::AndroidpublisherV3::DeactivateOneTimeProductOfferRequest]
9185
+ attr_accessor :deactivate_one_time_product_offer_request
9186
+
9187
+ def initialize(**args)
9188
+ update!(**args)
9189
+ end
9190
+
9191
+ # Update properties of this object
9192
+ def update!(**args)
9193
+ @activate_one_time_product_offer_request = args[:activate_one_time_product_offer_request] if args.key?(:activate_one_time_product_offer_request)
9194
+ @cancel_one_time_product_offer_request = args[:cancel_one_time_product_offer_request] if args.key?(:cancel_one_time_product_offer_request)
9195
+ @deactivate_one_time_product_offer_request = args[:deactivate_one_time_product_offer_request] if args.key?(:deactivate_one_time_product_offer_request)
9196
+ end
9197
+ end
9198
+
9199
+ # Request message for UpdateOneTimeProduct.
9200
+ class UpdateOneTimeProductRequest
9201
+ include Google::Apis::Core::Hashable
9202
+
9203
+ # Optional. If set to true, and the one-time product with the given package_name
9204
+ # and product_id doesn't exist, the one-time product will be created. If a new
9205
+ # one-time product is created, update_mask is ignored.
9206
+ # Corresponds to the JSON property `allowMissing`
9207
+ # @return [Boolean]
9208
+ attr_accessor :allow_missing
9209
+ alias_method :allow_missing?, :allow_missing
9210
+
9211
+ # Optional. The latency tolerance for the propagation of this product upsert.
9212
+ # Defaults to latency-sensitive.
9213
+ # Corresponds to the JSON property `latencyTolerance`
9214
+ # @return [String]
9215
+ attr_accessor :latency_tolerance
9216
+
9217
+ # A single one-time product for an app.
9218
+ # Corresponds to the JSON property `oneTimeProduct`
9219
+ # @return [Google::Apis::AndroidpublisherV3::OneTimeProduct]
9220
+ attr_accessor :one_time_product
9221
+
9222
+ # The version of the available regions being used for the specified resource.
9223
+ # Corresponds to the JSON property `regionsVersion`
9224
+ # @return [Google::Apis::AndroidpublisherV3::RegionsVersion]
9225
+ attr_accessor :regions_version
9226
+
9227
+ # Required. The list of fields to be updated.
9228
+ # Corresponds to the JSON property `updateMask`
9229
+ # @return [String]
9230
+ attr_accessor :update_mask
9231
+
9232
+ def initialize(**args)
9233
+ update!(**args)
9234
+ end
9235
+
9236
+ # Update properties of this object
9237
+ def update!(**args)
9238
+ @allow_missing = args[:allow_missing] if args.key?(:allow_missing)
9239
+ @latency_tolerance = args[:latency_tolerance] if args.key?(:latency_tolerance)
9240
+ @one_time_product = args[:one_time_product] if args.key?(:one_time_product)
9241
+ @regions_version = args[:regions_version] if args.key?(:regions_version)
9242
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
9243
+ end
9244
+ end
9245
+
9246
+ # Request message to update the state of a one-time product purchase option.
9247
+ class UpdatePurchaseOptionStateRequest
9248
+ include Google::Apis::Core::Hashable
9249
+
9250
+ # Request message for UpdatePurchaseOptionState.
9251
+ # Corresponds to the JSON property `activatePurchaseOptionRequest`
9252
+ # @return [Google::Apis::AndroidpublisherV3::ActivatePurchaseOptionRequest]
9253
+ attr_accessor :activate_purchase_option_request
9254
+
9255
+ # Request message for UpdatePurchaseOptionState.
9256
+ # Corresponds to the JSON property `deactivatePurchaseOptionRequest`
9257
+ # @return [Google::Apis::AndroidpublisherV3::DeactivatePurchaseOptionRequest]
9258
+ attr_accessor :deactivate_purchase_option_request
9259
+
9260
+ def initialize(**args)
9261
+ update!(**args)
9262
+ end
9263
+
9264
+ # Update properties of this object
9265
+ def update!(**args)
9266
+ @activate_purchase_option_request = args[:activate_purchase_option_request] if args.key?(:activate_purchase_option_request)
9267
+ @deactivate_purchase_option_request = args[:deactivate_purchase_option_request] if args.key?(:deactivate_purchase_option_request)
9268
+ end
9269
+ end
9270
+
7799
9271
  # Request message for UpdateSubscriptionOffer.
7800
9272
  class UpdateSubscriptionOfferRequest
7801
9273
  include Google::Apis::Core::Hashable