google-apis-androidpublisher_v3 0.83.0 → 0.84.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,253 @@ 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 DeferredItemReplacement
2142
+ include Google::Apis::Core::Hashable
2143
+
2144
+ # The product_id going to replace the existing product_id.
2145
+ # Corresponds to the JSON property `productId`
2146
+ # @return [String]
2147
+ attr_accessor :product_id
2148
+
2149
+ def initialize(**args)
2150
+ update!(**args)
2151
+ end
2152
+
2153
+ # Update properties of this object
2154
+ def update!(**args)
2155
+ @product_id = args[:product_id] if args.key?(:product_id)
2156
+ end
2157
+ end
2158
+
2159
+ # Request message for deleting an one-time product offer.
2160
+ class DeleteOneTimeProductOfferRequest
2161
+ include Google::Apis::Core::Hashable
2162
+
2163
+ # Optional. The latency tolerance for the propagation of this product update.
2164
+ # Defaults to latency-sensitive.
2165
+ # Corresponds to the JSON property `latencyTolerance`
2166
+ # @return [String]
2167
+ attr_accessor :latency_tolerance
2168
+
2169
+ # Required. The unique offer ID of the offer to delete.
2170
+ # Corresponds to the JSON property `offerId`
2171
+ # @return [String]
2172
+ attr_accessor :offer_id
2173
+
2174
+ # Required. The parent app (package name) of the offer to delete.
2175
+ # Corresponds to the JSON property `packageName`
2176
+ # @return [String]
2177
+ attr_accessor :package_name
2178
+
2179
+ # Required. The parent one-time product (ID) of the offer to delete.
2180
+ # Corresponds to the JSON property `productId`
2181
+ # @return [String]
2182
+ attr_accessor :product_id
2183
+
2184
+ # Required. The parent purchase option (ID) of the offer to delete.
2185
+ # Corresponds to the JSON property `purchaseOptionId`
2186
+ # @return [String]
2187
+ attr_accessor :purchase_option_id
2188
+
2189
+ def initialize(**args)
2190
+ update!(**args)
2191
+ end
2192
+
2193
+ # Update properties of this object
2194
+ def update!(**args)
2195
+ @latency_tolerance = args[:latency_tolerance] if args.key?(:latency_tolerance)
2196
+ @offer_id = args[:offer_id] if args.key?(:offer_id)
2197
+ @package_name = args[:package_name] if args.key?(:package_name)
2198
+ @product_id = args[:product_id] if args.key?(:product_id)
2199
+ @purchase_option_id = args[:purchase_option_id] if args.key?(:purchase_option_id)
2200
+ end
2201
+ end
2202
+
2203
+ # Request message for deleting a one-time product.
2204
+ class DeleteOneTimeProductRequest
2205
+ include Google::Apis::Core::Hashable
2206
+
2207
+ # Optional. The latency tolerance for the propagation of this product update.
2208
+ # Defaults to latency-sensitive.
2209
+ # Corresponds to the JSON property `latencyTolerance`
2210
+ # @return [String]
2211
+ attr_accessor :latency_tolerance
2212
+
2213
+ # Required. The parent app (package name) of the one-time product to delete.
2214
+ # Corresponds to the JSON property `packageName`
2215
+ # @return [String]
2216
+ attr_accessor :package_name
2217
+
2218
+ # Required. The one-time product ID of the one-time product to delete.
2219
+ # Corresponds to the JSON property `productId`
2220
+ # @return [String]
2221
+ attr_accessor :product_id
2222
+
2223
+ def initialize(**args)
2224
+ update!(**args)
2225
+ end
2226
+
2227
+ # Update properties of this object
2228
+ def update!(**args)
2229
+ @latency_tolerance = args[:latency_tolerance] if args.key?(:latency_tolerance)
2230
+ @package_name = args[:package_name] if args.key?(:package_name)
2231
+ @product_id = args[:product_id] if args.key?(:product_id)
2232
+ end
2233
+ end
2234
+
2235
+ # Request message for deleting a purchase option.
2236
+ class DeletePurchaseOptionRequest
2237
+ include Google::Apis::Core::Hashable
2238
+
2239
+ # Optional. This field has no effect for purchase options with no offers under
2240
+ # them. For purchase options with associated offers: * If `force` is set to
2241
+ # false (default), an error will be returned. * If `force` is set to true, any
2242
+ # associated offers under the purchase option will be deleted.
2243
+ # Corresponds to the JSON property `force`
2244
+ # @return [Boolean]
2245
+ attr_accessor :force
2246
+ alias_method :force?, :force
2247
+
2248
+ # Optional. The latency tolerance for the propagation of this product update.
2249
+ # Defaults to latency-sensitive.
2250
+ # Corresponds to the JSON property `latencyTolerance`
2251
+ # @return [String]
2252
+ attr_accessor :latency_tolerance
2253
+
2254
+ # Required. The parent app (package name) of the purchase option to delete.
2255
+ # Corresponds to the JSON property `packageName`
2256
+ # @return [String]
2257
+ attr_accessor :package_name
2258
+
2259
+ # Required. The parent one-time product (ID) of the purchase option to delete.
2260
+ # Corresponds to the JSON property `productId`
2261
+ # @return [String]
2262
+ attr_accessor :product_id
2263
+
2264
+ # Required. The purchase option ID of the purchase option to delete.
2265
+ # Corresponds to the JSON property `purchaseOptionId`
2266
+ # @return [String]
2267
+ attr_accessor :purchase_option_id
2268
+
2269
+ def initialize(**args)
1666
2270
  update!(**args)
1667
2271
  end
1668
2272
 
1669
2273
  # Update properties of this object
1670
2274
  def update!(**args)
2275
+ @force = args[:force] if args.key?(:force)
2276
+ @latency_tolerance = args[:latency_tolerance] if args.key?(:latency_tolerance)
2277
+ @package_name = args[:package_name] if args.key?(:package_name)
1671
2278
  @product_id = args[:product_id] if args.key?(:product_id)
2279
+ @purchase_option_id = args[:purchase_option_id] if args.key?(:purchase_option_id)
1672
2280
  end
1673
2281
  end
1674
2282
 
@@ -2790,6 +3398,43 @@ module Google
2790
3398
  end
2791
3399
  end
2792
3400
 
3401
+ # Request message for GetOneTimeProductOffers.
3402
+ class GetOneTimeProductOfferRequest
3403
+ include Google::Apis::Core::Hashable
3404
+
3405
+ # Required. The unique offer ID of the offer to get.
3406
+ # Corresponds to the JSON property `offerId`
3407
+ # @return [String]
3408
+ attr_accessor :offer_id
3409
+
3410
+ # Required. The parent app (package name) of the offer to get.
3411
+ # Corresponds to the JSON property `packageName`
3412
+ # @return [String]
3413
+ attr_accessor :package_name
3414
+
3415
+ # Required. The parent one-time product (ID) of the offer to get.
3416
+ # Corresponds to the JSON property `productId`
3417
+ # @return [String]
3418
+ attr_accessor :product_id
3419
+
3420
+ # Required. The parent purchase option (ID) of the offer to get.
3421
+ # Corresponds to the JSON property `purchaseOptionId`
3422
+ # @return [String]
3423
+ attr_accessor :purchase_option_id
3424
+
3425
+ def initialize(**args)
3426
+ update!(**args)
3427
+ end
3428
+
3429
+ # Update properties of this object
3430
+ def update!(**args)
3431
+ @offer_id = args[:offer_id] if args.key?(:offer_id)
3432
+ @package_name = args[:package_name] if args.key?(:package_name)
3433
+ @product_id = args[:product_id] if args.key?(:product_id)
3434
+ @purchase_option_id = args[:purchase_option_id] if args.key?(:purchase_option_id)
3435
+ end
3436
+ end
3437
+
2793
3438
  # Request message for GetSubscriptionOffer.
2794
3439
  class GetSubscriptionOfferRequest
2795
3440
  include Google::Apis::Core::Hashable
@@ -3622,6 +4267,58 @@ module Google
3622
4267
  end
3623
4268
  end
3624
4269
 
4270
+ # Response message for ListOneTimeProductOffers.
4271
+ class ListOneTimeProductOffersResponse
4272
+ include Google::Apis::Core::Hashable
4273
+
4274
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
4275
+ # field is omitted, there are no subsequent pages.
4276
+ # Corresponds to the JSON property `nextPageToken`
4277
+ # @return [String]
4278
+ attr_accessor :next_page_token
4279
+
4280
+ # The one_time_product offers from the specified request.
4281
+ # Corresponds to the JSON property `oneTimeProductOffers`
4282
+ # @return [Array<Google::Apis::AndroidpublisherV3::OneTimeProductOffer>]
4283
+ attr_accessor :one_time_product_offers
4284
+
4285
+ def initialize(**args)
4286
+ update!(**args)
4287
+ end
4288
+
4289
+ # Update properties of this object
4290
+ def update!(**args)
4291
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
4292
+ @one_time_product_offers = args[:one_time_product_offers] if args.key?(:one_time_product_offers)
4293
+ end
4294
+ end
4295
+
4296
+ # Response message for ListOneTimeProducts.
4297
+ class ListOneTimeProductsResponse
4298
+ include Google::Apis::Core::Hashable
4299
+
4300
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
4301
+ # field is omitted, there are no subsequent pages.
4302
+ # Corresponds to the JSON property `nextPageToken`
4303
+ # @return [String]
4304
+ attr_accessor :next_page_token
4305
+
4306
+ # The one-time products from the specified app.
4307
+ # Corresponds to the JSON property `oneTimeProducts`
4308
+ # @return [Array<Google::Apis::AndroidpublisherV3::OneTimeProduct>]
4309
+ attr_accessor :one_time_products
4310
+
4311
+ def initialize(**args)
4312
+ update!(**args)
4313
+ end
4314
+
4315
+ # Update properties of this object
4316
+ def update!(**args)
4317
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
4318
+ @one_time_products = args[:one_time_products] if args.key?(:one_time_products)
4319
+ end
4320
+ end
4321
+
3625
4322
  # Response message for ListSubscriptionOffers.
3626
4323
  class ListSubscriptionOffersResponse
3627
4324
  include Google::Apis::Core::Hashable
@@ -4028,20 +4725,516 @@ module Google
4028
4725
  end
4029
4726
  end
4030
4727
 
4031
- # Targeting based on multiple abis.
4032
- class MultiAbiTargeting
4728
+ # Targeting based on multiple abis.
4729
+ class MultiAbiTargeting
4730
+ include Google::Apis::Core::Hashable
4731
+
4732
+ # Targeting of other sibling directories that were in the Bundle. For main
4733
+ # splits this is targeting of other main splits.
4734
+ # Corresponds to the JSON property `alternatives`
4735
+ # @return [Array<Google::Apis::AndroidpublisherV3::MultiAbi>]
4736
+ attr_accessor :alternatives
4737
+
4738
+ # Value of a multi abi.
4739
+ # Corresponds to the JSON property `value`
4740
+ # @return [Array<Google::Apis::AndroidpublisherV3::MultiAbi>]
4741
+ attr_accessor :value
4742
+
4743
+ def initialize(**args)
4744
+ update!(**args)
4745
+ end
4746
+
4747
+ # Update properties of this object
4748
+ def update!(**args)
4749
+ @alternatives = args[:alternatives] if args.key?(:alternatives)
4750
+ @value = args[:value] if args.key?(:value)
4751
+ end
4752
+ end
4753
+
4754
+ # Offer details information related to a purchase line item.
4755
+ class OfferDetails
4756
+ include Google::Apis::Core::Hashable
4757
+
4758
+ # The base plan ID. Present for all base plan and offers.
4759
+ # Corresponds to the JSON property `basePlanId`
4760
+ # @return [String]
4761
+ attr_accessor :base_plan_id
4762
+
4763
+ # The offer ID. Only present for discounted offers.
4764
+ # Corresponds to the JSON property `offerId`
4765
+ # @return [String]
4766
+ attr_accessor :offer_id
4767
+
4768
+ # The latest offer tags associated with the offer. It includes tags inherited
4769
+ # from the base plan.
4770
+ # Corresponds to the JSON property `offerTags`
4771
+ # @return [Array<String>]
4772
+ attr_accessor :offer_tags
4773
+
4774
+ def initialize(**args)
4775
+ update!(**args)
4776
+ end
4777
+
4778
+ # Update properties of this object
4779
+ def update!(**args)
4780
+ @base_plan_id = args[:base_plan_id] if args.key?(:base_plan_id)
4781
+ @offer_id = args[:offer_id] if args.key?(:offer_id)
4782
+ @offer_tags = args[:offer_tags] if args.key?(:offer_tags)
4783
+ end
4784
+ end
4785
+
4786
+ # Represents a custom tag specified for a product offer.
4787
+ class OfferTag
4788
+ include Google::Apis::Core::Hashable
4789
+
4790
+ # Must conform with RFC-1034. That is, this string can only contain lower-case
4791
+ # letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
4792
+ # Corresponds to the JSON property `tag`
4793
+ # @return [String]
4794
+ attr_accessor :tag
4795
+
4796
+ def initialize(**args)
4797
+ update!(**args)
4798
+ end
4799
+
4800
+ # Update properties of this object
4801
+ def update!(**args)
4802
+ @tag = args[:tag] if args.key?(:tag)
4803
+ end
4804
+ end
4805
+
4806
+ # A single use promotion code.
4807
+ class OneTimeCode
4808
+ include Google::Apis::Core::Hashable
4809
+
4810
+ def initialize(**args)
4811
+ update!(**args)
4812
+ end
4813
+
4814
+ # Update properties of this object
4815
+ def update!(**args)
4816
+ end
4817
+ end
4818
+
4819
+ # Represents a one-time transaction.
4820
+ class OneTimeExternalTransaction
4821
+ include Google::Apis::Core::Hashable
4822
+
4823
+ # Input only. Provided during the call to Create. Retrieved from the client when
4824
+ # the alternative billing flow is launched.
4825
+ # Corresponds to the JSON property `externalTransactionToken`
4826
+ # @return [String]
4827
+ attr_accessor :external_transaction_token
4828
+
4829
+ def initialize(**args)
4830
+ update!(**args)
4831
+ end
4832
+
4833
+ # Update properties of this object
4834
+ def update!(**args)
4835
+ @external_transaction_token = args[:external_transaction_token] if args.key?(:external_transaction_token)
4836
+ end
4837
+ end
4838
+
4839
+ # A single one-time product for an app.
4840
+ class OneTimeProduct
4841
+ include Google::Apis::Core::Hashable
4842
+
4843
+ # Required. Set of localized title and description data. Must not have duplicate
4844
+ # entries with the same language_code.
4845
+ # Corresponds to the JSON property `listings`
4846
+ # @return [Array<Google::Apis::AndroidpublisherV3::OneTimeProductListing>]
4847
+ attr_accessor :listings
4848
+
4849
+ # Optional. List of up to 20 custom tags specified for this one-time product,
4850
+ # and returned to the app through the billing library. Purchase options and
4851
+ # offers for this product will also receive these tags in the billing library.
4852
+ # Corresponds to the JSON property `offerTags`
4853
+ # @return [Array<Google::Apis::AndroidpublisherV3::OfferTag>]
4854
+ attr_accessor :offer_tags
4855
+
4856
+ # Required. Immutable. Package name of the parent app.
4857
+ # Corresponds to the JSON property `packageName`
4858
+ # @return [String]
4859
+ attr_accessor :package_name
4860
+
4861
+ # Required. Immutable. Unique product ID of the product. Unique within the
4862
+ # parent app. Product IDs must start with a number or lowercase letter, and can
4863
+ # contain numbers (0-9), lowercase letters (a-z), underscores (_), and periods (.
4864
+ # ).
4865
+ # Corresponds to the JSON property `productId`
4866
+ # @return [String]
4867
+ attr_accessor :product_id
4868
+
4869
+ # Required. The set of purchase options for this one-time product.
4870
+ # Corresponds to the JSON property `purchaseOptions`
4871
+ # @return [Array<Google::Apis::AndroidpublisherV3::OneTimeProductPurchaseOption>]
4872
+ attr_accessor :purchase_options
4873
+
4874
+ # The version of the available regions being used for the specified resource.
4875
+ # Corresponds to the JSON property `regionsVersion`
4876
+ # @return [Google::Apis::AndroidpublisherV3::RegionsVersion]
4877
+ attr_accessor :regions_version
4878
+
4879
+ # Countries where the purchase of this product is restricted to payment methods
4880
+ # registered in the same country. If empty, no payment location restrictions are
4881
+ # imposed.
4882
+ # Corresponds to the JSON property `restrictedPaymentCountries`
4883
+ # @return [Google::Apis::AndroidpublisherV3::RestrictedPaymentCountries]
4884
+ attr_accessor :restricted_payment_countries
4885
+
4886
+ # Details about taxation, Google Play policy and legal compliance for one-time
4887
+ # products.
4888
+ # Corresponds to the JSON property `taxAndComplianceSettings`
4889
+ # @return [Google::Apis::AndroidpublisherV3::OneTimeProductTaxAndComplianceSettings]
4890
+ attr_accessor :tax_and_compliance_settings
4891
+
4892
+ def initialize(**args)
4893
+ update!(**args)
4894
+ end
4895
+
4896
+ # Update properties of this object
4897
+ def update!(**args)
4898
+ @listings = args[:listings] if args.key?(:listings)
4899
+ @offer_tags = args[:offer_tags] if args.key?(:offer_tags)
4900
+ @package_name = args[:package_name] if args.key?(:package_name)
4901
+ @product_id = args[:product_id] if args.key?(:product_id)
4902
+ @purchase_options = args[:purchase_options] if args.key?(:purchase_options)
4903
+ @regions_version = args[:regions_version] if args.key?(:regions_version)
4904
+ @restricted_payment_countries = args[:restricted_payment_countries] if args.key?(:restricted_payment_countries)
4905
+ @tax_and_compliance_settings = args[:tax_and_compliance_settings] if args.key?(:tax_and_compliance_settings)
4906
+ end
4907
+ end
4908
+
4909
+ # A purchase option that can be bought.
4910
+ class OneTimeProductBuyPurchaseOption
4911
+ include Google::Apis::Core::Hashable
4912
+
4913
+ # Optional. Whether this purchase option will be available in legacy PBL flows
4914
+ # that do not support one-time products model. Up to one "buy" purchase option
4915
+ # can be marked as backwards compatible.
4916
+ # Corresponds to the JSON property `legacyCompatible`
4917
+ # @return [Boolean]
4918
+ attr_accessor :legacy_compatible
4919
+ alias_method :legacy_compatible?, :legacy_compatible
4920
+
4921
+ # Optional. Whether this purchase option allows multi-quantity. Multi-quantity
4922
+ # allows buyer to purchase more than one item in a single checkout.
4923
+ # Corresponds to the JSON property `multiQuantityEnabled`
4924
+ # @return [Boolean]
4925
+ attr_accessor :multi_quantity_enabled
4926
+ alias_method :multi_quantity_enabled?, :multi_quantity_enabled
4927
+
4928
+ def initialize(**args)
4929
+ update!(**args)
4930
+ end
4931
+
4932
+ # Update properties of this object
4933
+ def update!(**args)
4934
+ @legacy_compatible = args[:legacy_compatible] if args.key?(:legacy_compatible)
4935
+ @multi_quantity_enabled = args[:multi_quantity_enabled] if args.key?(:multi_quantity_enabled)
4936
+ end
4937
+ end
4938
+
4939
+ # Configuration specific to discounted offers.
4940
+ class OneTimeProductDiscountedOffer
4941
+ include Google::Apis::Core::Hashable
4942
+
4943
+ # Time when the offer will stop being available.
4944
+ # Corresponds to the JSON property `endTime`
4945
+ # @return [String]
4946
+ attr_accessor :end_time
4947
+
4948
+ # Optional. The number of times this offer can be redeemed. If unset or set to 0,
4949
+ # allows for unlimited offer redemptions. Otherwise must be a number between 1
4950
+ # and 50 inclusive.
4951
+ # Corresponds to the JSON property `redemptionLimit`
4952
+ # @return [Fixnum]
4953
+ attr_accessor :redemption_limit
4954
+
4955
+ # Time when the offer will start being available.
4956
+ # Corresponds to the JSON property `startTime`
4957
+ # @return [String]
4958
+ attr_accessor :start_time
4959
+
4960
+ def initialize(**args)
4961
+ update!(**args)
4962
+ end
4963
+
4964
+ # Update properties of this object
4965
+ def update!(**args)
4966
+ @end_time = args[:end_time] if args.key?(:end_time)
4967
+ @redemption_limit = args[:redemption_limit] if args.key?(:redemption_limit)
4968
+ @start_time = args[:start_time] if args.key?(:start_time)
4969
+ end
4970
+ end
4971
+
4972
+ # Regional store listing for a one-time product.
4973
+ class OneTimeProductListing
4974
+ include Google::Apis::Core::Hashable
4975
+
4976
+ # Required. The description of this product in the language of this listing. The
4977
+ # maximum length is 200 characters.
4978
+ # Corresponds to the JSON property `description`
4979
+ # @return [String]
4980
+ attr_accessor :description
4981
+
4982
+ # Required. The language of this listing, as defined by BCP-47, e.g., "en-US".
4983
+ # Corresponds to the JSON property `languageCode`
4984
+ # @return [String]
4985
+ attr_accessor :language_code
4986
+
4987
+ # Required. The title of this product in the language of this listing. The
4988
+ # maximum length is 55 characters.
4989
+ # Corresponds to the JSON property `title`
4990
+ # @return [String]
4991
+ attr_accessor :title
4992
+
4993
+ def initialize(**args)
4994
+ update!(**args)
4995
+ end
4996
+
4997
+ # Update properties of this object
4998
+ def update!(**args)
4999
+ @description = args[:description] if args.key?(:description)
5000
+ @language_code = args[:language_code] if args.key?(:language_code)
5001
+ @title = args[:title] if args.key?(:title)
5002
+ end
5003
+ end
5004
+
5005
+ # A single offer for a one-time product.
5006
+ class OneTimeProductOffer
5007
+ include Google::Apis::Core::Hashable
5008
+
5009
+ # Configuration specific to discounted offers.
5010
+ # Corresponds to the JSON property `discountedOffer`
5011
+ # @return [Google::Apis::AndroidpublisherV3::OneTimeProductDiscountedOffer]
5012
+ attr_accessor :discounted_offer
5013
+
5014
+ # Required. Immutable. The ID of this product offer. Must be unique within the
5015
+ # purchase option. It must start with a number or lower-case letter, and can
5016
+ # only contain lower-case letters (a-z), numbers (0-9), and hyphens (-). The
5017
+ # maximum length is 63 characters.
5018
+ # Corresponds to the JSON property `offerId`
5019
+ # @return [String]
5020
+ attr_accessor :offer_id
5021
+
5022
+ # Optional. List of up to 20 custom tags specified for this offer, and returned
5023
+ # to the app through the billing library.
5024
+ # Corresponds to the JSON property `offerTags`
5025
+ # @return [Array<Google::Apis::AndroidpublisherV3::OfferTag>]
5026
+ attr_accessor :offer_tags
5027
+
5028
+ # Required. Immutable. The package name of the app the parent product belongs to.
5029
+ # Corresponds to the JSON property `packageName`
5030
+ # @return [String]
5031
+ attr_accessor :package_name
5032
+
5033
+ # Configuration specific to pre-order offers.
5034
+ # Corresponds to the JSON property `preOrderOffer`
5035
+ # @return [Google::Apis::AndroidpublisherV3::OneTimeProductPreOrderOffer]
5036
+ attr_accessor :pre_order_offer
5037
+
5038
+ # Required. Immutable. The ID of the parent product this offer belongs to.
5039
+ # Corresponds to the JSON property `productId`
5040
+ # @return [String]
5041
+ attr_accessor :product_id
5042
+
5043
+ # Required. Immutable. The ID of the purchase option to which this offer is an
5044
+ # extension.
5045
+ # Corresponds to the JSON property `purchaseOptionId`
5046
+ # @return [String]
5047
+ attr_accessor :purchase_option_id
5048
+
5049
+ # Set of regional pricing and availability information for this offer. Must not
5050
+ # have duplicate entries with the same region_code.
5051
+ # Corresponds to the JSON property `regionalPricingAndAvailabilityConfigs`
5052
+ # @return [Array<Google::Apis::AndroidpublisherV3::OneTimeProductOfferRegionalPricingAndAvailabilityConfig>]
5053
+ attr_accessor :regional_pricing_and_availability_configs
5054
+
5055
+ # The version of the available regions being used for the specified resource.
5056
+ # Corresponds to the JSON property `regionsVersion`
5057
+ # @return [Google::Apis::AndroidpublisherV3::RegionsVersion]
5058
+ attr_accessor :regions_version
5059
+
5060
+ # Output only. The current state of this offer. This field cannot be changed by
5061
+ # updating the resource. Use the dedicated endpoints instead.
5062
+ # Corresponds to the JSON property `state`
5063
+ # @return [String]
5064
+ attr_accessor :state
5065
+
5066
+ def initialize(**args)
5067
+ update!(**args)
5068
+ end
5069
+
5070
+ # Update properties of this object
5071
+ def update!(**args)
5072
+ @discounted_offer = args[:discounted_offer] if args.key?(:discounted_offer)
5073
+ @offer_id = args[:offer_id] if args.key?(:offer_id)
5074
+ @offer_tags = args[:offer_tags] if args.key?(:offer_tags)
5075
+ @package_name = args[:package_name] if args.key?(:package_name)
5076
+ @pre_order_offer = args[:pre_order_offer] if args.key?(:pre_order_offer)
5077
+ @product_id = args[:product_id] if args.key?(:product_id)
5078
+ @purchase_option_id = args[:purchase_option_id] if args.key?(:purchase_option_id)
5079
+ @regional_pricing_and_availability_configs = args[:regional_pricing_and_availability_configs] if args.key?(:regional_pricing_and_availability_configs)
5080
+ @regions_version = args[:regions_version] if args.key?(:regions_version)
5081
+ @state = args[:state] if args.key?(:state)
5082
+ end
5083
+ end
5084
+
5085
+ # Options for one-time product offers without a regional price override.
5086
+ class OneTimeProductOfferNoPriceOverrideOptions
5087
+ include Google::Apis::Core::Hashable
5088
+
5089
+ def initialize(**args)
5090
+ update!(**args)
5091
+ end
5092
+
5093
+ # Update properties of this object
5094
+ def update!(**args)
5095
+ end
5096
+ end
5097
+
5098
+ # Regional pricing and availability configuration for a one-time product offer.
5099
+ class OneTimeProductOfferRegionalPricingAndAvailabilityConfig
5100
+ include Google::Apis::Core::Hashable
5101
+
5102
+ # Represents an amount of money with its currency type.
5103
+ # Corresponds to the JSON property `absoluteDiscount`
5104
+ # @return [Google::Apis::AndroidpublisherV3::Money]
5105
+ attr_accessor :absolute_discount
5106
+
5107
+ # Required. The availability for this region.
5108
+ # Corresponds to the JSON property `availability`
5109
+ # @return [String]
5110
+ attr_accessor :availability
5111
+
5112
+ # Options for one-time product offers without a regional price override.
5113
+ # Corresponds to the JSON property `noOverride`
5114
+ # @return [Google::Apis::AndroidpublisherV3::OneTimeProductOfferNoPriceOverrideOptions]
5115
+ attr_accessor :no_override
5116
+
5117
+ # Required. Region code this configuration applies to, as defined by ISO 3166-2,
5118
+ # e.g., "US".
5119
+ # Corresponds to the JSON property `regionCode`
5120
+ # @return [String]
5121
+ attr_accessor :region_code
5122
+
5123
+ # The fraction of the purchase option price that the user pays for this offer.
5124
+ # For example, if the purchase option price for this region is $12, then a 50%
5125
+ # discount would correspond to a price of $6. The discount must be specified as
5126
+ # a fraction strictly larger than 0 and strictly smaller than 1. The resulting
5127
+ # price will be rounded to the nearest billable unit (e.g. cents for USD). The
5128
+ # relative discount is considered invalid if the discounted price ends up being
5129
+ # smaller than the minimum price allowed in this region.
5130
+ # Corresponds to the JSON property `relativeDiscount`
5131
+ # @return [Float]
5132
+ attr_accessor :relative_discount
5133
+
5134
+ def initialize(**args)
5135
+ update!(**args)
5136
+ end
5137
+
5138
+ # Update properties of this object
5139
+ def update!(**args)
5140
+ @absolute_discount = args[:absolute_discount] if args.key?(:absolute_discount)
5141
+ @availability = args[:availability] if args.key?(:availability)
5142
+ @no_override = args[:no_override] if args.key?(:no_override)
5143
+ @region_code = args[:region_code] if args.key?(:region_code)
5144
+ @relative_discount = args[:relative_discount] if args.key?(:relative_discount)
5145
+ end
5146
+ end
5147
+
5148
+ # Configuration specific to pre-order offers.
5149
+ class OneTimeProductPreOrderOffer
5150
+ include Google::Apis::Core::Hashable
5151
+
5152
+ # Required. Time when the pre-order will stop being available.
5153
+ # Corresponds to the JSON property `endTime`
5154
+ # @return [String]
5155
+ attr_accessor :end_time
5156
+
5157
+ # Required. Immutable. Specifies how price changes affect pre-existing pre-
5158
+ # orders.
5159
+ # Corresponds to the JSON property `priceChangeBehavior`
5160
+ # @return [String]
5161
+ attr_accessor :price_change_behavior
5162
+
5163
+ # Required. Time on which the product associated with the pre-order will be
5164
+ # released and the pre-order orders fulfilled.
5165
+ # Corresponds to the JSON property `releaseTime`
5166
+ # @return [String]
5167
+ attr_accessor :release_time
5168
+
5169
+ # Required. Time when the pre-order will start being available.
5170
+ # Corresponds to the JSON property `startTime`
5171
+ # @return [String]
5172
+ attr_accessor :start_time
5173
+
5174
+ def initialize(**args)
5175
+ update!(**args)
5176
+ end
5177
+
5178
+ # Update properties of this object
5179
+ def update!(**args)
5180
+ @end_time = args[:end_time] if args.key?(:end_time)
5181
+ @price_change_behavior = args[:price_change_behavior] if args.key?(:price_change_behavior)
5182
+ @release_time = args[:release_time] if args.key?(:release_time)
5183
+ @start_time = args[:start_time] if args.key?(:start_time)
5184
+ end
5185
+ end
5186
+
5187
+ # A single purchase option for a one-time product.
5188
+ class OneTimeProductPurchaseOption
4033
5189
  include Google::Apis::Core::Hashable
4034
5190
 
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
5191
+ # A purchase option that can be bought.
5192
+ # Corresponds to the JSON property `buyOption`
5193
+ # @return [Google::Apis::AndroidpublisherV3::OneTimeProductBuyPurchaseOption]
5194
+ attr_accessor :buy_option
4040
5195
 
4041
- # Value of a multi abi.
4042
- # Corresponds to the JSON property `value`
4043
- # @return [Array<Google::Apis::AndroidpublisherV3::MultiAbi>]
4044
- attr_accessor :value
5196
+ # Pricing information for any new regions Play may launch in the future.
5197
+ # Corresponds to the JSON property `newRegionsConfig`
5198
+ # @return [Google::Apis::AndroidpublisherV3::OneTimeProductPurchaseOptionNewRegionsConfig]
5199
+ attr_accessor :new_regions_config
5200
+
5201
+ # Optional. List of up to 20 custom tags specified for this purchase option, and
5202
+ # returned to the app through the billing library. Offers for this purchase
5203
+ # option will also receive these tags in the billing library.
5204
+ # Corresponds to the JSON property `offerTags`
5205
+ # @return [Array<Google::Apis::AndroidpublisherV3::OfferTag>]
5206
+ attr_accessor :offer_tags
5207
+
5208
+ # Required. Immutable. The unique identifier of this purchase option. Must be
5209
+ # unique within the one-time product. It must start with a number or lower-case
5210
+ # letter, and can only contain lower-case letters (a-z), numbers (0-9), and
5211
+ # hyphens (-). The maximum length is 63 characters.
5212
+ # Corresponds to the JSON property `purchaseOptionId`
5213
+ # @return [String]
5214
+ attr_accessor :purchase_option_id
5215
+
5216
+ # Regional pricing and availability information for this purchase option.
5217
+ # Corresponds to the JSON property `regionalPricingAndAvailabilityConfigs`
5218
+ # @return [Array<Google::Apis::AndroidpublisherV3::OneTimeProductPurchaseOptionRegionalPricingAndAvailabilityConfig>]
5219
+ attr_accessor :regional_pricing_and_availability_configs
5220
+
5221
+ # A purchase option that can be rented.
5222
+ # Corresponds to the JSON property `rentOption`
5223
+ # @return [Google::Apis::AndroidpublisherV3::OneTimeProductRentPurchaseOption]
5224
+ attr_accessor :rent_option
5225
+
5226
+ # Output only. The state of the purchase option, i.e., whether it's active. This
5227
+ # field cannot be changed by updating the resource. Use the dedicated endpoints
5228
+ # instead.
5229
+ # Corresponds to the JSON property `state`
5230
+ # @return [String]
5231
+ attr_accessor :state
5232
+
5233
+ # Details about taxation, Google Play policy and legal compliance for one-time
5234
+ # product purchase options.
5235
+ # Corresponds to the JSON property `taxAndComplianceSettings`
5236
+ # @return [Google::Apis::AndroidpublisherV3::PurchaseOptionTaxAndComplianceSettings]
5237
+ attr_accessor :tax_and_compliance_settings
4045
5238
 
4046
5239
  def initialize(**args)
4047
5240
  update!(**args)
@@ -4049,30 +5242,37 @@ module Google
4049
5242
 
4050
5243
  # Update properties of this object
4051
5244
  def update!(**args)
4052
- @alternatives = args[:alternatives] if args.key?(:alternatives)
4053
- @value = args[:value] if args.key?(:value)
5245
+ @buy_option = args[:buy_option] if args.key?(:buy_option)
5246
+ @new_regions_config = args[:new_regions_config] if args.key?(:new_regions_config)
5247
+ @offer_tags = args[:offer_tags] if args.key?(:offer_tags)
5248
+ @purchase_option_id = args[:purchase_option_id] if args.key?(:purchase_option_id)
5249
+ @regional_pricing_and_availability_configs = args[:regional_pricing_and_availability_configs] if args.key?(:regional_pricing_and_availability_configs)
5250
+ @rent_option = args[:rent_option] if args.key?(:rent_option)
5251
+ @state = args[:state] if args.key?(:state)
5252
+ @tax_and_compliance_settings = args[:tax_and_compliance_settings] if args.key?(:tax_and_compliance_settings)
4054
5253
  end
4055
5254
  end
4056
5255
 
4057
- # Offer details information related to a purchase line item.
4058
- class OfferDetails
5256
+ # Pricing information for any new regions Play may launch in the future.
5257
+ class OneTimeProductPurchaseOptionNewRegionsConfig
4059
5258
  include Google::Apis::Core::Hashable
4060
5259
 
4061
- # The base plan ID. Present for all base plan and offers.
4062
- # Corresponds to the JSON property `basePlanId`
5260
+ # Required. The regional availability for the new regions config. When set to
5261
+ # AVAILABLE, the pricing information will be used for any new regions Play may
5262
+ # launch in the future.
5263
+ # Corresponds to the JSON property `availability`
4063
5264
  # @return [String]
4064
- attr_accessor :base_plan_id
5265
+ attr_accessor :availability
4065
5266
 
4066
- # The offer ID. Only present for discounted offers.
4067
- # Corresponds to the JSON property `offerId`
4068
- # @return [String]
4069
- attr_accessor :offer_id
5267
+ # Represents an amount of money with its currency type.
5268
+ # Corresponds to the JSON property `eurPrice`
5269
+ # @return [Google::Apis::AndroidpublisherV3::Money]
5270
+ attr_accessor :eur_price
4070
5271
 
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
5272
+ # Represents an amount of money with its currency type.
5273
+ # Corresponds to the JSON property `usdPrice`
5274
+ # @return [Google::Apis::AndroidpublisherV3::Money]
5275
+ attr_accessor :usd_price
4076
5276
 
4077
5277
  def initialize(**args)
4078
5278
  update!(**args)
@@ -4080,21 +5280,31 @@ module Google
4080
5280
 
4081
5281
  # Update properties of this object
4082
5282
  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)
5283
+ @availability = args[:availability] if args.key?(:availability)
5284
+ @eur_price = args[:eur_price] if args.key?(:eur_price)
5285
+ @usd_price = args[:usd_price] if args.key?(:usd_price)
4086
5286
  end
4087
5287
  end
4088
5288
 
4089
- # Represents a custom tag specified for a product offer.
4090
- class OfferTag
5289
+ # Regional pricing and availability configuration for a purchase option.
5290
+ class OneTimeProductPurchaseOptionRegionalPricingAndAvailabilityConfig
4091
5291
  include Google::Apis::Core::Hashable
4092
5292
 
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`
5293
+ # The availability of the purchase option.
5294
+ # Corresponds to the JSON property `availability`
4096
5295
  # @return [String]
4097
- attr_accessor :tag
5296
+ attr_accessor :availability
5297
+
5298
+ # Represents an amount of money with its currency type.
5299
+ # Corresponds to the JSON property `price`
5300
+ # @return [Google::Apis::AndroidpublisherV3::Money]
5301
+ attr_accessor :price
5302
+
5303
+ # Required. Region code this configuration applies to, as defined by ISO 3166-2,
5304
+ # e.g., "US".
5305
+ # Corresponds to the JSON property `regionCode`
5306
+ # @return [String]
5307
+ attr_accessor :region_code
4098
5308
 
4099
5309
  def initialize(**args)
4100
5310
  update!(**args)
@@ -4102,32 +5312,55 @@ module Google
4102
5312
 
4103
5313
  # Update properties of this object
4104
5314
  def update!(**args)
4105
- @tag = args[:tag] if args.key?(:tag)
5315
+ @availability = args[:availability] if args.key?(:availability)
5316
+ @price = args[:price] if args.key?(:price)
5317
+ @region_code = args[:region_code] if args.key?(:region_code)
4106
5318
  end
4107
5319
  end
4108
5320
 
4109
- # A single use promotion code.
4110
- class OneTimeCode
5321
+ # A purchase option that can be rented.
5322
+ class OneTimeProductRentPurchaseOption
4111
5323
  include Google::Apis::Core::Hashable
4112
5324
 
5325
+ # Optional. The amount of time the user has after starting consuming the
5326
+ # entitlement before it is revoked. Specified in ISO 8601 format.
5327
+ # Corresponds to the JSON property `expirationPeriod`
5328
+ # @return [String]
5329
+ attr_accessor :expiration_period
5330
+
5331
+ # Required. The amount of time a user has the entitlement for. Starts at
5332
+ # purchase flow completion. Specified in ISO 8601 format.
5333
+ # Corresponds to the JSON property `rentalPeriod`
5334
+ # @return [String]
5335
+ attr_accessor :rental_period
5336
+
4113
5337
  def initialize(**args)
4114
5338
  update!(**args)
4115
5339
  end
4116
5340
 
4117
5341
  # Update properties of this object
4118
5342
  def update!(**args)
5343
+ @expiration_period = args[:expiration_period] if args.key?(:expiration_period)
5344
+ @rental_period = args[:rental_period] if args.key?(:rental_period)
4119
5345
  end
4120
5346
  end
4121
5347
 
4122
- # Represents a one-time transaction.
4123
- class OneTimeExternalTransaction
5348
+ # Details about taxation, Google Play policy and legal compliance for one-time
5349
+ # products.
5350
+ class OneTimeProductTaxAndComplianceSettings
4124
5351
  include Google::Apis::Core::Hashable
4125
5352
 
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
5353
+ # Whether this one-time product is declared as a product representing a
5354
+ # tokenized digital asset.
5355
+ # Corresponds to the JSON property `isTokenizedDigitalAsset`
5356
+ # @return [Boolean]
5357
+ attr_accessor :is_tokenized_digital_asset
5358
+ alias_method :is_tokenized_digital_asset?, :is_tokenized_digital_asset
5359
+
5360
+ # Regional tax configuration.
5361
+ # Corresponds to the JSON property `regionalTaxConfigs`
5362
+ # @return [Array<Google::Apis::AndroidpublisherV3::RegionalTaxConfig>]
5363
+ attr_accessor :regional_tax_configs
4131
5364
 
4132
5365
  def initialize(**args)
4133
5366
  update!(**args)
@@ -4135,7 +5368,8 @@ module Google
4135
5368
 
4136
5369
  # Update properties of this object
4137
5370
  def update!(**args)
4138
- @external_transaction_token = args[:external_transaction_token] if args.key?(:external_transaction_token)
5371
+ @is_tokenized_digital_asset = args[:is_tokenized_digital_asset] if args.key?(:is_tokenized_digital_asset)
5372
+ @regional_tax_configs = args[:regional_tax_configs] if args.key?(:regional_tax_configs)
4139
5373
  end
4140
5374
  end
4141
5375
 
@@ -5099,6 +6333,30 @@ module Google
5099
6333
  end
5100
6334
  end
5101
6335
 
6336
+ # Details about taxation, Google Play policy and legal compliance for one-time
6337
+ # product purchase options.
6338
+ class PurchaseOptionTaxAndComplianceSettings
6339
+ include Google::Apis::Core::Hashable
6340
+
6341
+ # Optional. Digital content or service classification for products distributed
6342
+ # to users in eligible regions. If unset, it defaults to `
6343
+ # WITHDRAWAL_RIGHT_DIGITAL_CONTENT`. Refer to the [Help Center article](https://
6344
+ # support.google.com/googleplay/android-developer/answer/10463498) for more
6345
+ # information.
6346
+ # Corresponds to the JSON property `withdrawalRightType`
6347
+ # @return [String]
6348
+ attr_accessor :withdrawal_right_type
6349
+
6350
+ def initialize(**args)
6351
+ update!(**args)
6352
+ end
6353
+
6354
+ # Update properties of this object
6355
+ def update!(**args)
6356
+ @withdrawal_right_type = args[:withdrawal_right_type] if args.key?(:withdrawal_right_type)
6357
+ end
6358
+ end
6359
+
5102
6360
  # Context about the purchase state.
5103
6361
  class PurchaseStateContext
5104
6362
  include Google::Apis::Core::Hashable
@@ -5423,6 +6681,51 @@ module Google
5423
6681
  end
5424
6682
  end
5425
6683
 
6684
+ # Details about taxation in a given geographical region.
6685
+ class RegionalTaxConfig
6686
+ include Google::Apis::Core::Hashable
6687
+
6688
+ # You must tell us if your app contains streaming products to correctly charge
6689
+ # US state and local sales tax. Field only supported in the United States.
6690
+ # Corresponds to the JSON property `eligibleForStreamingServiceTaxRate`
6691
+ # @return [Boolean]
6692
+ attr_accessor :eligible_for_streaming_service_tax_rate
6693
+ alias_method :eligible_for_streaming_service_tax_rate?, :eligible_for_streaming_service_tax_rate
6694
+
6695
+ # Required. Region code this configuration applies to, as defined by ISO 3166-2,
6696
+ # e.g. "US".
6697
+ # Corresponds to the JSON property `regionCode`
6698
+ # @return [String]
6699
+ attr_accessor :region_code
6700
+
6701
+ # To collect communications or amusement taxes in the United States, choose the
6702
+ # appropriate tax category. [Learn more](https://support.google.com/googleplay/
6703
+ # android-developer/answer/10463498#streaming_tax).
6704
+ # Corresponds to the JSON property `streamingTaxType`
6705
+ # @return [String]
6706
+ attr_accessor :streaming_tax_type
6707
+
6708
+ # Tax tier to specify reduced tax rate. Developers who sell digital news,
6709
+ # magazines, newspapers, books, or audiobooks in various regions may be eligible
6710
+ # for reduced tax rates. [Learn more](https://support.google.com/googleplay/
6711
+ # android-developer/answer/10463498).
6712
+ # Corresponds to the JSON property `taxTier`
6713
+ # @return [String]
6714
+ attr_accessor :tax_tier
6715
+
6716
+ def initialize(**args)
6717
+ update!(**args)
6718
+ end
6719
+
6720
+ # Update properties of this object
6721
+ def update!(**args)
6722
+ @eligible_for_streaming_service_tax_rate = args[:eligible_for_streaming_service_tax_rate] if args.key?(:eligible_for_streaming_service_tax_rate)
6723
+ @region_code = args[:region_code] if args.key?(:region_code)
6724
+ @streaming_tax_type = args[:streaming_tax_type] if args.key?(:streaming_tax_type)
6725
+ @tax_tier = args[:tax_tier] if args.key?(:tax_tier)
6726
+ end
6727
+ end
6728
+
5426
6729
  # Specified details about taxation in a given geographical region.
5427
6730
  class RegionalTaxRateInfo
5428
6731
  include Google::Apis::Core::Hashable
@@ -7796,6 +9099,156 @@ module Google
7796
9099
  end
7797
9100
  end
7798
9101
 
9102
+ # Request message for UpdateOneTimeProductOffer.
9103
+ class UpdateOneTimeProductOfferRequest
9104
+ include Google::Apis::Core::Hashable
9105
+
9106
+ # Optional. If set to true, and the offer with the given package_name,
9107
+ # product_id, purchase_option_id and offer_id doesn't exist, an offer will be
9108
+ # created. If a new offer is created, the update_mask is ignored.
9109
+ # Corresponds to the JSON property `allowMissing`
9110
+ # @return [Boolean]
9111
+ attr_accessor :allow_missing
9112
+ alias_method :allow_missing?, :allow_missing
9113
+
9114
+ # Optional. The latency tolerance for the propagation of this offer update.
9115
+ # Defaults to latency-sensitive.
9116
+ # Corresponds to the JSON property `latencyTolerance`
9117
+ # @return [String]
9118
+ attr_accessor :latency_tolerance
9119
+
9120
+ # A single offer for a one-time product.
9121
+ # Corresponds to the JSON property `oneTimeProductOffer`
9122
+ # @return [Google::Apis::AndroidpublisherV3::OneTimeProductOffer]
9123
+ attr_accessor :one_time_product_offer
9124
+
9125
+ # The version of the available regions being used for the specified resource.
9126
+ # Corresponds to the JSON property `regionsVersion`
9127
+ # @return [Google::Apis::AndroidpublisherV3::RegionsVersion]
9128
+ attr_accessor :regions_version
9129
+
9130
+ # Required. The list of fields to be updated.
9131
+ # Corresponds to the JSON property `updateMask`
9132
+ # @return [String]
9133
+ attr_accessor :update_mask
9134
+
9135
+ def initialize(**args)
9136
+ update!(**args)
9137
+ end
9138
+
9139
+ # Update properties of this object
9140
+ def update!(**args)
9141
+ @allow_missing = args[:allow_missing] if args.key?(:allow_missing)
9142
+ @latency_tolerance = args[:latency_tolerance] if args.key?(:latency_tolerance)
9143
+ @one_time_product_offer = args[:one_time_product_offer] if args.key?(:one_time_product_offer)
9144
+ @regions_version = args[:regions_version] if args.key?(:regions_version)
9145
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
9146
+ end
9147
+ end
9148
+
9149
+ # Request message to update the state of a one-time product offer.
9150
+ class UpdateOneTimeProductOfferStateRequest
9151
+ include Google::Apis::Core::Hashable
9152
+
9153
+ # Request message for ActivateOneTimeProductOffer.
9154
+ # Corresponds to the JSON property `activateOneTimeProductOfferRequest`
9155
+ # @return [Google::Apis::AndroidpublisherV3::ActivateOneTimeProductOfferRequest]
9156
+ attr_accessor :activate_one_time_product_offer_request
9157
+
9158
+ # Request message for CancelOneTimeProductOffer.
9159
+ # Corresponds to the JSON property `cancelOneTimeProductOfferRequest`
9160
+ # @return [Google::Apis::AndroidpublisherV3::CancelOneTimeProductOfferRequest]
9161
+ attr_accessor :cancel_one_time_product_offer_request
9162
+
9163
+ # Request message for DeactivateOneTimeProductOffer.
9164
+ # Corresponds to the JSON property `deactivateOneTimeProductOfferRequest`
9165
+ # @return [Google::Apis::AndroidpublisherV3::DeactivateOneTimeProductOfferRequest]
9166
+ attr_accessor :deactivate_one_time_product_offer_request
9167
+
9168
+ def initialize(**args)
9169
+ update!(**args)
9170
+ end
9171
+
9172
+ # Update properties of this object
9173
+ def update!(**args)
9174
+ @activate_one_time_product_offer_request = args[:activate_one_time_product_offer_request] if args.key?(:activate_one_time_product_offer_request)
9175
+ @cancel_one_time_product_offer_request = args[:cancel_one_time_product_offer_request] if args.key?(:cancel_one_time_product_offer_request)
9176
+ @deactivate_one_time_product_offer_request = args[:deactivate_one_time_product_offer_request] if args.key?(:deactivate_one_time_product_offer_request)
9177
+ end
9178
+ end
9179
+
9180
+ # Request message for UpdateOneTimeProduct.
9181
+ class UpdateOneTimeProductRequest
9182
+ include Google::Apis::Core::Hashable
9183
+
9184
+ # Optional. If set to true, and the one-time product with the given package_name
9185
+ # and product_id doesn't exist, the one-time product will be created. If a new
9186
+ # one-time product is created, update_mask is ignored.
9187
+ # Corresponds to the JSON property `allowMissing`
9188
+ # @return [Boolean]
9189
+ attr_accessor :allow_missing
9190
+ alias_method :allow_missing?, :allow_missing
9191
+
9192
+ # Optional. The latency tolerance for the propagation of this product upsert.
9193
+ # Defaults to latency-sensitive.
9194
+ # Corresponds to the JSON property `latencyTolerance`
9195
+ # @return [String]
9196
+ attr_accessor :latency_tolerance
9197
+
9198
+ # A single one-time product for an app.
9199
+ # Corresponds to the JSON property `oneTimeProduct`
9200
+ # @return [Google::Apis::AndroidpublisherV3::OneTimeProduct]
9201
+ attr_accessor :one_time_product
9202
+
9203
+ # The version of the available regions being used for the specified resource.
9204
+ # Corresponds to the JSON property `regionsVersion`
9205
+ # @return [Google::Apis::AndroidpublisherV3::RegionsVersion]
9206
+ attr_accessor :regions_version
9207
+
9208
+ # Required. The list of fields to be updated.
9209
+ # Corresponds to the JSON property `updateMask`
9210
+ # @return [String]
9211
+ attr_accessor :update_mask
9212
+
9213
+ def initialize(**args)
9214
+ update!(**args)
9215
+ end
9216
+
9217
+ # Update properties of this object
9218
+ def update!(**args)
9219
+ @allow_missing = args[:allow_missing] if args.key?(:allow_missing)
9220
+ @latency_tolerance = args[:latency_tolerance] if args.key?(:latency_tolerance)
9221
+ @one_time_product = args[:one_time_product] if args.key?(:one_time_product)
9222
+ @regions_version = args[:regions_version] if args.key?(:regions_version)
9223
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
9224
+ end
9225
+ end
9226
+
9227
+ # Request message to update the state of a one-time product purchase option.
9228
+ class UpdatePurchaseOptionStateRequest
9229
+ include Google::Apis::Core::Hashable
9230
+
9231
+ # Request message for UpdatePurchaseOptionState.
9232
+ # Corresponds to the JSON property `activatePurchaseOptionRequest`
9233
+ # @return [Google::Apis::AndroidpublisherV3::ActivatePurchaseOptionRequest]
9234
+ attr_accessor :activate_purchase_option_request
9235
+
9236
+ # Request message for UpdatePurchaseOptionState.
9237
+ # Corresponds to the JSON property `deactivatePurchaseOptionRequest`
9238
+ # @return [Google::Apis::AndroidpublisherV3::DeactivatePurchaseOptionRequest]
9239
+ attr_accessor :deactivate_purchase_option_request
9240
+
9241
+ def initialize(**args)
9242
+ update!(**args)
9243
+ end
9244
+
9245
+ # Update properties of this object
9246
+ def update!(**args)
9247
+ @activate_purchase_option_request = args[:activate_purchase_option_request] if args.key?(:activate_purchase_option_request)
9248
+ @deactivate_purchase_option_request = args[:deactivate_purchase_option_request] if args.key?(:deactivate_purchase_option_request)
9249
+ end
9250
+ end
9251
+
7799
9252
  # Request message for UpdateSubscriptionOffer.
7800
9253
  class UpdateSubscriptionOfferRequest
7801
9254
  include Google::Apis::Core::Hashable