google-apis-androidpublisher_v3 0.38.0 → 0.39.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 769931e407c335db5e2776d1356cba7ea0b32c6aec8210fefa7304ca04a70948
4
- data.tar.gz: aaaa67c3dff534d9f2308c2f2fff8def2d51b9cae8ee3237e4665edf088aa672
3
+ metadata.gz: f20ddf1d2a18ca56b2caa8ef4c08ae94c06ebe3324a14a2fb62838da9c442783
4
+ data.tar.gz: 7d05a01b8e1b943e4a74bc7df405a868432271e49abca9492809cc23ec8d51b0
5
5
  SHA512:
6
- metadata.gz: 8be7121698b2a1bef3ff3820fbc4788b4847fd2fb58c7f613b38ec15fb4fb561445cfc5bd30fb0182a026510603514bd6695da73bd805cae7e3c989c2ea382d6
7
- data.tar.gz: 1cd277d08298ad044ff0a6be8b399c209ade7929f9be64e517c5ba35bde27f3a4f92773ad7cfd08814d2afc8c57f05659be93d007c39c1f2baa67685343a5bc5
6
+ metadata.gz: 6c1f19fbe67de064003b62df4e320fb5059f3d17814ace1e47ddc1011b07e1103fcd311c085e8a6919be1c5d53a7d9f02ed9efce6e89ccefb0f4983974b6df4d
7
+ data.tar.gz: 15c5b9c27e2f42f59383706b5407868f19b1515583d1dbdfe413cc764b287ac6089010080bea6c8730489fa1e057bf8627e4ccb03db1f409f07cf8cfaacb8a75
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-androidpublisher_v3
2
2
 
3
+ ### v0.39.0 (2023-04-16)
4
+
5
+ * Regenerated from discovery document revision 20230406
6
+
3
7
  ### v0.38.0 (2023-04-02)
4
8
 
5
9
  * Regenerated from discovery document revision 20230327
@@ -1225,6 +1225,155 @@ module Google
1225
1225
  end
1226
1226
  end
1227
1227
 
1228
+ # Details of an external subscription.
1229
+ class ExternalSubscription
1230
+ include Google::Apis::Core::Hashable
1231
+
1232
+ # Required. The type of the external subscription.
1233
+ # Corresponds to the JSON property `subscriptionType`
1234
+ # @return [String]
1235
+ attr_accessor :subscription_type
1236
+
1237
+ def initialize(**args)
1238
+ update!(**args)
1239
+ end
1240
+
1241
+ # Update properties of this object
1242
+ def update!(**args)
1243
+ @subscription_type = args[:subscription_type] if args.key?(:subscription_type)
1244
+ end
1245
+ end
1246
+
1247
+ # The details of an external transaction.
1248
+ class ExternalTransaction
1249
+ include Google::Apis::Core::Hashable
1250
+
1251
+ # Output only. The time when this transaction was created. This is the time when
1252
+ # Google was notified of the transaction.
1253
+ # Corresponds to the JSON property `createTime`
1254
+ # @return [String]
1255
+ attr_accessor :create_time
1256
+
1257
+ # Definition of a price, i.e. currency and units.
1258
+ # Corresponds to the JSON property `currentPreTaxAmount`
1259
+ # @return [Google::Apis::AndroidpublisherV3::Price]
1260
+ attr_accessor :current_pre_tax_amount
1261
+
1262
+ # Definition of a price, i.e. currency and units.
1263
+ # Corresponds to the JSON property `currentTaxAmount`
1264
+ # @return [Google::Apis::AndroidpublisherV3::Price]
1265
+ attr_accessor :current_tax_amount
1266
+
1267
+ # Output only. The id of this transaction. All transaction ids under the same
1268
+ # package name must be unique. Set when creating the external transaction.
1269
+ # Corresponds to the JSON property `externalTransactionId`
1270
+ # @return [String]
1271
+ attr_accessor :external_transaction_id
1272
+
1273
+ # Represents a one-time transaction.
1274
+ # Corresponds to the JSON property `oneTimeTransaction`
1275
+ # @return [Google::Apis::AndroidpublisherV3::OneTimeExternalTransaction]
1276
+ attr_accessor :one_time_transaction
1277
+
1278
+ # Definition of a price, i.e. currency and units.
1279
+ # Corresponds to the JSON property `originalPreTaxAmount`
1280
+ # @return [Google::Apis::AndroidpublisherV3::Price]
1281
+ attr_accessor :original_pre_tax_amount
1282
+
1283
+ # Definition of a price, i.e. currency and units.
1284
+ # Corresponds to the JSON property `originalTaxAmount`
1285
+ # @return [Google::Apis::AndroidpublisherV3::Price]
1286
+ attr_accessor :original_tax_amount
1287
+
1288
+ # Output only. The resource name of the external transaction. The package name
1289
+ # of the application the inapp products were sold (for example, 'com.some.app').
1290
+ # Corresponds to the JSON property `packageName`
1291
+ # @return [String]
1292
+ attr_accessor :package_name
1293
+
1294
+ # Represents a transaction that is part of a recurring series of payments. This
1295
+ # can be a subscription or a one-time product with multiple payments (such as
1296
+ # preorder).
1297
+ # Corresponds to the JSON property `recurringTransaction`
1298
+ # @return [Google::Apis::AndroidpublisherV3::RecurringExternalTransaction]
1299
+ attr_accessor :recurring_transaction
1300
+
1301
+ # Represents a transaction performed using a test account. These transactions
1302
+ # will not be charged by Google.
1303
+ # Corresponds to the JSON property `testPurchase`
1304
+ # @return [Google::Apis::AndroidpublisherV3::ExternalTransactionTestPurchase]
1305
+ attr_accessor :test_purchase
1306
+
1307
+ # Output only. The current state of the transaction.
1308
+ # Corresponds to the JSON property `transactionState`
1309
+ # @return [String]
1310
+ attr_accessor :transaction_state
1311
+
1312
+ # Required. The time when the transaction was completed.
1313
+ # Corresponds to the JSON property `transactionTime`
1314
+ # @return [String]
1315
+ attr_accessor :transaction_time
1316
+
1317
+ # User's address for the external transaction.
1318
+ # Corresponds to the JSON property `userTaxAddress`
1319
+ # @return [Google::Apis::AndroidpublisherV3::ExternalTransactionAddress]
1320
+ attr_accessor :user_tax_address
1321
+
1322
+ def initialize(**args)
1323
+ update!(**args)
1324
+ end
1325
+
1326
+ # Update properties of this object
1327
+ def update!(**args)
1328
+ @create_time = args[:create_time] if args.key?(:create_time)
1329
+ @current_pre_tax_amount = args[:current_pre_tax_amount] if args.key?(:current_pre_tax_amount)
1330
+ @current_tax_amount = args[:current_tax_amount] if args.key?(:current_tax_amount)
1331
+ @external_transaction_id = args[:external_transaction_id] if args.key?(:external_transaction_id)
1332
+ @one_time_transaction = args[:one_time_transaction] if args.key?(:one_time_transaction)
1333
+ @original_pre_tax_amount = args[:original_pre_tax_amount] if args.key?(:original_pre_tax_amount)
1334
+ @original_tax_amount = args[:original_tax_amount] if args.key?(:original_tax_amount)
1335
+ @package_name = args[:package_name] if args.key?(:package_name)
1336
+ @recurring_transaction = args[:recurring_transaction] if args.key?(:recurring_transaction)
1337
+ @test_purchase = args[:test_purchase] if args.key?(:test_purchase)
1338
+ @transaction_state = args[:transaction_state] if args.key?(:transaction_state)
1339
+ @transaction_time = args[:transaction_time] if args.key?(:transaction_time)
1340
+ @user_tax_address = args[:user_tax_address] if args.key?(:user_tax_address)
1341
+ end
1342
+ end
1343
+
1344
+ # User's address for the external transaction.
1345
+ class ExternalTransactionAddress
1346
+ include Google::Apis::Core::Hashable
1347
+
1348
+ # Required. Two letter region code based on ISO-3166-1 Alpha-2 (UN region codes).
1349
+ # Corresponds to the JSON property `regionCode`
1350
+ # @return [String]
1351
+ attr_accessor :region_code
1352
+
1353
+ def initialize(**args)
1354
+ update!(**args)
1355
+ end
1356
+
1357
+ # Update properties of this object
1358
+ def update!(**args)
1359
+ @region_code = args[:region_code] if args.key?(:region_code)
1360
+ end
1361
+ end
1362
+
1363
+ # Represents a transaction performed using a test account. These transactions
1364
+ # will not be charged by Google.
1365
+ class ExternalTransactionTestPurchase
1366
+ include Google::Apis::Core::Hashable
1367
+
1368
+ def initialize(**args)
1369
+ update!(**args)
1370
+ end
1371
+
1372
+ # Update properties of this object
1373
+ def update!(**args)
1374
+ end
1375
+ end
1376
+
1228
1377
  # Defines an APK available for this application that is hosted externally and
1229
1378
  # not uploaded to Google Play. This function is only available to organizations
1230
1379
  # using Managed Play whose application is configured to restrict distribution to
@@ -1332,6 +1481,19 @@ module Google
1332
1481
  end
1333
1482
  end
1334
1483
 
1484
+ # A full refund of the remaining amount of a transaction.
1485
+ class FullRefund
1486
+ include Google::Apis::Core::Hashable
1487
+
1488
+ def initialize(**args)
1489
+ update!(**args)
1490
+ end
1491
+
1492
+ # Update properties of this object
1493
+ def update!(**args)
1494
+ end
1495
+ end
1496
+
1335
1497
  # Response to list generated APKs.
1336
1498
  class GeneratedApksListResponse
1337
1499
  include Google::Apis::Core::Hashable
@@ -2257,6 +2419,26 @@ module Google
2257
2419
  end
2258
2420
  end
2259
2421
 
2422
+ # Represents a one-time transaction.
2423
+ class OneTimeExternalTransaction
2424
+ include Google::Apis::Core::Hashable
2425
+
2426
+ # Input only. Provided during the call to Create. Retrieved from the client when
2427
+ # the alternative billing flow is launched.
2428
+ # Corresponds to the JSON property `externalTransactionToken`
2429
+ # @return [String]
2430
+ attr_accessor :external_transaction_token
2431
+
2432
+ def initialize(**args)
2433
+ update!(**args)
2434
+ end
2435
+
2436
+ # Update properties of this object
2437
+ def update!(**args)
2438
+ @external_transaction_token = args[:external_transaction_token] if args.key?(:external_transaction_token)
2439
+ end
2440
+ end
2441
+
2260
2442
  # Pricing information for any new locations Play may launch in.
2261
2443
  class OtherRegionsBasePlanConfig
2262
2444
  include Google::Apis::Core::Hashable
@@ -2412,6 +2594,33 @@ module Google
2412
2594
  end
2413
2595
  end
2414
2596
 
2597
+ # A partial refund of a transaction.
2598
+ class PartialRefund
2599
+ include Google::Apis::Core::Hashable
2600
+
2601
+ # Required. A unique id distinguishing this partial refund. If the refund is
2602
+ # successful, subsequent refunds with the same id will fail. Must be unique
2603
+ # across refunds for one individual transaction.
2604
+ # Corresponds to the JSON property `refundId`
2605
+ # @return [String]
2606
+ attr_accessor :refund_id
2607
+
2608
+ # Definition of a price, i.e. currency and units.
2609
+ # Corresponds to the JSON property `refundPreTaxAmount`
2610
+ # @return [Google::Apis::AndroidpublisherV3::Price]
2611
+ attr_accessor :refund_pre_tax_amount
2612
+
2613
+ def initialize(**args)
2614
+ update!(**args)
2615
+ end
2616
+
2617
+ # Update properties of this object
2618
+ def update!(**args)
2619
+ @refund_id = args[:refund_id] if args.key?(:refund_id)
2620
+ @refund_pre_tax_amount = args[:refund_pre_tax_amount] if args.key?(:refund_pre_tax_amount)
2621
+ end
2622
+ end
2623
+
2415
2624
  # Information specific to a subscription in paused state.
2416
2625
  class PausedStateContext
2417
2626
  include Google::Apis::Core::Hashable
@@ -2639,6 +2848,75 @@ module Google
2639
2848
  end
2640
2849
  end
2641
2850
 
2851
+ # Represents a transaction that is part of a recurring series of payments. This
2852
+ # can be a subscription or a one-time product with multiple payments (such as
2853
+ # preorder).
2854
+ class RecurringExternalTransaction
2855
+ include Google::Apis::Core::Hashable
2856
+
2857
+ # Details of an external subscription.
2858
+ # Corresponds to the JSON property `externalSubscription`
2859
+ # @return [Google::Apis::AndroidpublisherV3::ExternalSubscription]
2860
+ attr_accessor :external_subscription
2861
+
2862
+ # Input only. Provided during the call to Create. Retrieved from the client when
2863
+ # the alternative billing flow is launched. Required only for the initial
2864
+ # purchase.
2865
+ # Corresponds to the JSON property `externalTransactionToken`
2866
+ # @return [String]
2867
+ attr_accessor :external_transaction_token
2868
+
2869
+ # The external transaction id of the first transaction of this recurring series
2870
+ # of transactions. For example, for a subscription this would be the transaction
2871
+ # id of the first payment. Required when creating recurring external
2872
+ # transactions.
2873
+ # Corresponds to the JSON property `initialExternalTransactionId`
2874
+ # @return [String]
2875
+ attr_accessor :initial_external_transaction_id
2876
+
2877
+ def initialize(**args)
2878
+ update!(**args)
2879
+ end
2880
+
2881
+ # Update properties of this object
2882
+ def update!(**args)
2883
+ @external_subscription = args[:external_subscription] if args.key?(:external_subscription)
2884
+ @external_transaction_token = args[:external_transaction_token] if args.key?(:external_transaction_token)
2885
+ @initial_external_transaction_id = args[:initial_external_transaction_id] if args.key?(:initial_external_transaction_id)
2886
+ end
2887
+ end
2888
+
2889
+ # A request to refund an existing external transaction.
2890
+ class RefundExternalTransactionRequest
2891
+ include Google::Apis::Core::Hashable
2892
+
2893
+ # A full refund of the remaining amount of a transaction.
2894
+ # Corresponds to the JSON property `fullRefund`
2895
+ # @return [Google::Apis::AndroidpublisherV3::FullRefund]
2896
+ attr_accessor :full_refund
2897
+
2898
+ # A partial refund of a transaction.
2899
+ # Corresponds to the JSON property `partialRefund`
2900
+ # @return [Google::Apis::AndroidpublisherV3::PartialRefund]
2901
+ attr_accessor :partial_refund
2902
+
2903
+ # Required. The time that the transaction was refunded.
2904
+ # Corresponds to the JSON property `refundTime`
2905
+ # @return [String]
2906
+ attr_accessor :refund_time
2907
+
2908
+ def initialize(**args)
2909
+ update!(**args)
2910
+ end
2911
+
2912
+ # Update properties of this object
2913
+ def update!(**args)
2914
+ @full_refund = args[:full_refund] if args.key?(:full_refund)
2915
+ @partial_refund = args[:partial_refund] if args.key?(:partial_refund)
2916
+ @refund_time = args[:refund_time] if args.key?(:refund_time)
2917
+ end
2918
+ end
2919
+
2642
2920
  # Configuration for a base plan specific to a region.
2643
2921
  class RegionalBasePlanConfig
2644
2922
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AndroidpublisherV3
18
18
  # Version of the google-apis-androidpublisher_v3 gem
19
- GEM_VERSION = "0.38.0"
19
+ GEM_VERSION = "0.39.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230327"
25
+ REVISION = "20230406"
26
26
  end
27
27
  end
28
28
  end
@@ -274,12 +274,42 @@ module Google
274
274
  include Google::Apis::Core::JsonObjectSupport
275
275
  end
276
276
 
277
+ class ExternalSubscription
278
+ class Representation < Google::Apis::Core::JsonRepresentation; end
279
+
280
+ include Google::Apis::Core::JsonObjectSupport
281
+ end
282
+
283
+ class ExternalTransaction
284
+ class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
289
+ class ExternalTransactionAddress
290
+ class Representation < Google::Apis::Core::JsonRepresentation; end
291
+
292
+ include Google::Apis::Core::JsonObjectSupport
293
+ end
294
+
295
+ class ExternalTransactionTestPurchase
296
+ class Representation < Google::Apis::Core::JsonRepresentation; end
297
+
298
+ include Google::Apis::Core::JsonObjectSupport
299
+ end
300
+
277
301
  class ExternallyHostedApk
278
302
  class Representation < Google::Apis::Core::JsonRepresentation; end
279
303
 
280
304
  include Google::Apis::Core::JsonObjectSupport
281
305
  end
282
306
 
307
+ class FullRefund
308
+ class Representation < Google::Apis::Core::JsonRepresentation; end
309
+
310
+ include Google::Apis::Core::JsonObjectSupport
311
+ end
312
+
283
313
  class GeneratedApksListResponse
284
314
  class Representation < Google::Apis::Core::JsonRepresentation; end
285
315
 
@@ -454,6 +484,12 @@ module Google
454
484
  include Google::Apis::Core::JsonObjectSupport
455
485
  end
456
486
 
487
+ class OneTimeExternalTransaction
488
+ class Representation < Google::Apis::Core::JsonRepresentation; end
489
+
490
+ include Google::Apis::Core::JsonObjectSupport
491
+ end
492
+
457
493
  class OtherRegionsBasePlanConfig
458
494
  class Representation < Google::Apis::Core::JsonRepresentation; end
459
495
 
@@ -484,6 +520,12 @@ module Google
484
520
  include Google::Apis::Core::JsonObjectSupport
485
521
  end
486
522
 
523
+ class PartialRefund
524
+ class Representation < Google::Apis::Core::JsonRepresentation; end
525
+
526
+ include Google::Apis::Core::JsonObjectSupport
527
+ end
528
+
487
529
  class PausedStateContext
488
530
  class Representation < Google::Apis::Core::JsonRepresentation; end
489
531
 
@@ -520,6 +562,18 @@ module Google
520
562
  include Google::Apis::Core::JsonObjectSupport
521
563
  end
522
564
 
565
+ class RecurringExternalTransaction
566
+ class Representation < Google::Apis::Core::JsonRepresentation; end
567
+
568
+ include Google::Apis::Core::JsonObjectSupport
569
+ end
570
+
571
+ class RefundExternalTransactionRequest
572
+ class Representation < Google::Apis::Core::JsonRepresentation; end
573
+
574
+ include Google::Apis::Core::JsonObjectSupport
575
+ end
576
+
523
577
  class RegionalBasePlanConfig
524
578
  class Representation < Google::Apis::Core::JsonRepresentation; end
525
579
 
@@ -1211,6 +1265,53 @@ module Google
1211
1265
  end
1212
1266
  end
1213
1267
 
1268
+ class ExternalSubscription
1269
+ # @private
1270
+ class Representation < Google::Apis::Core::JsonRepresentation
1271
+ property :subscription_type, as: 'subscriptionType'
1272
+ end
1273
+ end
1274
+
1275
+ class ExternalTransaction
1276
+ # @private
1277
+ class Representation < Google::Apis::Core::JsonRepresentation
1278
+ property :create_time, as: 'createTime'
1279
+ property :current_pre_tax_amount, as: 'currentPreTaxAmount', class: Google::Apis::AndroidpublisherV3::Price, decorator: Google::Apis::AndroidpublisherV3::Price::Representation
1280
+
1281
+ property :current_tax_amount, as: 'currentTaxAmount', class: Google::Apis::AndroidpublisherV3::Price, decorator: Google::Apis::AndroidpublisherV3::Price::Representation
1282
+
1283
+ property :external_transaction_id, as: 'externalTransactionId'
1284
+ property :one_time_transaction, as: 'oneTimeTransaction', class: Google::Apis::AndroidpublisherV3::OneTimeExternalTransaction, decorator: Google::Apis::AndroidpublisherV3::OneTimeExternalTransaction::Representation
1285
+
1286
+ property :original_pre_tax_amount, as: 'originalPreTaxAmount', class: Google::Apis::AndroidpublisherV3::Price, decorator: Google::Apis::AndroidpublisherV3::Price::Representation
1287
+
1288
+ property :original_tax_amount, as: 'originalTaxAmount', class: Google::Apis::AndroidpublisherV3::Price, decorator: Google::Apis::AndroidpublisherV3::Price::Representation
1289
+
1290
+ property :package_name, as: 'packageName'
1291
+ property :recurring_transaction, as: 'recurringTransaction', class: Google::Apis::AndroidpublisherV3::RecurringExternalTransaction, decorator: Google::Apis::AndroidpublisherV3::RecurringExternalTransaction::Representation
1292
+
1293
+ property :test_purchase, as: 'testPurchase', class: Google::Apis::AndroidpublisherV3::ExternalTransactionTestPurchase, decorator: Google::Apis::AndroidpublisherV3::ExternalTransactionTestPurchase::Representation
1294
+
1295
+ property :transaction_state, as: 'transactionState'
1296
+ property :transaction_time, as: 'transactionTime'
1297
+ property :user_tax_address, as: 'userTaxAddress', class: Google::Apis::AndroidpublisherV3::ExternalTransactionAddress, decorator: Google::Apis::AndroidpublisherV3::ExternalTransactionAddress::Representation
1298
+
1299
+ end
1300
+ end
1301
+
1302
+ class ExternalTransactionAddress
1303
+ # @private
1304
+ class Representation < Google::Apis::Core::JsonRepresentation
1305
+ property :region_code, as: 'regionCode'
1306
+ end
1307
+ end
1308
+
1309
+ class ExternalTransactionTestPurchase
1310
+ # @private
1311
+ class Representation < Google::Apis::Core::JsonRepresentation
1312
+ end
1313
+ end
1314
+
1214
1315
  class ExternallyHostedApk
1215
1316
  # @private
1216
1317
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1233,6 +1334,12 @@ module Google
1233
1334
  end
1234
1335
  end
1235
1336
 
1337
+ class FullRefund
1338
+ # @private
1339
+ class Representation < Google::Apis::Core::JsonRepresentation
1340
+ end
1341
+ end
1342
+
1236
1343
  class GeneratedApksListResponse
1237
1344
  # @private
1238
1345
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1513,6 +1620,13 @@ module Google
1513
1620
  end
1514
1621
  end
1515
1622
 
1623
+ class OneTimeExternalTransaction
1624
+ # @private
1625
+ class Representation < Google::Apis::Core::JsonRepresentation
1626
+ property :external_transaction_token, as: 'externalTransactionToken'
1627
+ end
1628
+ end
1629
+
1516
1630
  class OtherRegionsBasePlanConfig
1517
1631
  # @private
1518
1632
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1561,6 +1675,15 @@ module Google
1561
1675
  end
1562
1676
  end
1563
1677
 
1678
+ class PartialRefund
1679
+ # @private
1680
+ class Representation < Google::Apis::Core::JsonRepresentation
1681
+ property :refund_id, as: 'refundId'
1682
+ property :refund_pre_tax_amount, as: 'refundPreTaxAmount', class: Google::Apis::AndroidpublisherV3::Price, decorator: Google::Apis::AndroidpublisherV3::Price::Representation
1683
+
1684
+ end
1685
+ end
1686
+
1564
1687
  class PausedStateContext
1565
1688
  # @private
1566
1689
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1618,6 +1741,27 @@ module Google
1618
1741
  end
1619
1742
  end
1620
1743
 
1744
+ class RecurringExternalTransaction
1745
+ # @private
1746
+ class Representation < Google::Apis::Core::JsonRepresentation
1747
+ property :external_subscription, as: 'externalSubscription', class: Google::Apis::AndroidpublisherV3::ExternalSubscription, decorator: Google::Apis::AndroidpublisherV3::ExternalSubscription::Representation
1748
+
1749
+ property :external_transaction_token, as: 'externalTransactionToken'
1750
+ property :initial_external_transaction_id, as: 'initialExternalTransactionId'
1751
+ end
1752
+ end
1753
+
1754
+ class RefundExternalTransactionRequest
1755
+ # @private
1756
+ class Representation < Google::Apis::Core::JsonRepresentation
1757
+ property :full_refund, as: 'fullRefund', class: Google::Apis::AndroidpublisherV3::FullRefund, decorator: Google::Apis::AndroidpublisherV3::FullRefund::Representation
1758
+
1759
+ property :partial_refund, as: 'partialRefund', class: Google::Apis::AndroidpublisherV3::PartialRefund, decorator: Google::Apis::AndroidpublisherV3::PartialRefund::Representation
1760
+
1761
+ property :refund_time, as: 'refundTime'
1762
+ end
1763
+ end
1764
+
1621
1765
  class RegionalBasePlanConfig
1622
1766
  # @private
1623
1767
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1558,6 +1558,110 @@ module Google
1558
1558
  execute_or_queue_command(command, &block)
1559
1559
  end
1560
1560
 
1561
+ # Creates a new external transaction.
1562
+ # @param [String] parent
1563
+ # Required. The parent resource where this external transaction will be created.
1564
+ # Format: applications/`package_name`
1565
+ # @param [Google::Apis::AndroidpublisherV3::ExternalTransaction] external_transaction_object
1566
+ # @param [String] external_transaction_id
1567
+ # Required. The id to use for the external transaction. Must be unique across
1568
+ # all other transactions for the app. This value should be 1-63 characters and
1569
+ # valid characters are /a-z0-9_-/.
1570
+ # @param [String] fields
1571
+ # Selector specifying which fields to include in a partial response.
1572
+ # @param [String] quota_user
1573
+ # Available to use for quota purposes for server-side applications. Can be any
1574
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1575
+ # @param [Google::Apis::RequestOptions] options
1576
+ # Request-specific options
1577
+ #
1578
+ # @yield [result, err] Result & error if block supplied
1579
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ExternalTransaction] parsed result object
1580
+ # @yieldparam err [StandardError] error object if request failed
1581
+ #
1582
+ # @return [Google::Apis::AndroidpublisherV3::ExternalTransaction]
1583
+ #
1584
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1585
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1586
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1587
+ def createexternaltransaction_externaltransaction(parent, external_transaction_object = nil, external_transaction_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1588
+ command = make_simple_command(:post, 'androidpublisher/v3/{+parent}/externalTransactions', options)
1589
+ command.request_representation = Google::Apis::AndroidpublisherV3::ExternalTransaction::Representation
1590
+ command.request_object = external_transaction_object
1591
+ command.response_representation = Google::Apis::AndroidpublisherV3::ExternalTransaction::Representation
1592
+ command.response_class = Google::Apis::AndroidpublisherV3::ExternalTransaction
1593
+ command.params['parent'] = parent unless parent.nil?
1594
+ command.query['externalTransactionId'] = external_transaction_id unless external_transaction_id.nil?
1595
+ command.query['fields'] = fields unless fields.nil?
1596
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1597
+ execute_or_queue_command(command, &block)
1598
+ end
1599
+
1600
+ # Gets an existing external transaction.
1601
+ # @param [String] name
1602
+ # Required. The name of the external transaction to retrieve. Format:
1603
+ # applications/`package_name`/externalTransactions/`external_transaction`
1604
+ # @param [String] fields
1605
+ # Selector specifying which fields to include in a partial response.
1606
+ # @param [String] quota_user
1607
+ # Available to use for quota purposes for server-side applications. Can be any
1608
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1609
+ # @param [Google::Apis::RequestOptions] options
1610
+ # Request-specific options
1611
+ #
1612
+ # @yield [result, err] Result & error if block supplied
1613
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ExternalTransaction] parsed result object
1614
+ # @yieldparam err [StandardError] error object if request failed
1615
+ #
1616
+ # @return [Google::Apis::AndroidpublisherV3::ExternalTransaction]
1617
+ #
1618
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1619
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1620
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1621
+ def getexternaltransaction_externaltransaction(name, fields: nil, quota_user: nil, options: nil, &block)
1622
+ command = make_simple_command(:get, 'androidpublisher/v3/{+name}', options)
1623
+ command.response_representation = Google::Apis::AndroidpublisherV3::ExternalTransaction::Representation
1624
+ command.response_class = Google::Apis::AndroidpublisherV3::ExternalTransaction
1625
+ command.params['name'] = name unless name.nil?
1626
+ command.query['fields'] = fields unless fields.nil?
1627
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1628
+ execute_or_queue_command(command, &block)
1629
+ end
1630
+
1631
+ # Refunds or partially refunds an existing external transaction.
1632
+ # @param [String] name
1633
+ # Required. The name of the external transaction that will be refunded. Format:
1634
+ # applications/`package_name`/externalTransactions/`external_transaction`
1635
+ # @param [Google::Apis::AndroidpublisherV3::RefundExternalTransactionRequest] refund_external_transaction_request_object
1636
+ # @param [String] fields
1637
+ # Selector specifying which fields to include in a partial response.
1638
+ # @param [String] quota_user
1639
+ # Available to use for quota purposes for server-side applications. Can be any
1640
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1641
+ # @param [Google::Apis::RequestOptions] options
1642
+ # Request-specific options
1643
+ #
1644
+ # @yield [result, err] Result & error if block supplied
1645
+ # @yieldparam result [Google::Apis::AndroidpublisherV3::ExternalTransaction] parsed result object
1646
+ # @yieldparam err [StandardError] error object if request failed
1647
+ #
1648
+ # @return [Google::Apis::AndroidpublisherV3::ExternalTransaction]
1649
+ #
1650
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1651
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1652
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1653
+ def refundexternaltransaction_externaltransaction(name, refund_external_transaction_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1654
+ command = make_simple_command(:post, 'androidpublisher/v3/{+name}:refund', options)
1655
+ command.request_representation = Google::Apis::AndroidpublisherV3::RefundExternalTransactionRequest::Representation
1656
+ command.request_object = refund_external_transaction_request_object
1657
+ command.response_representation = Google::Apis::AndroidpublisherV3::ExternalTransaction::Representation
1658
+ command.response_class = Google::Apis::AndroidpublisherV3::ExternalTransaction
1659
+ command.params['name'] = name unless name.nil?
1660
+ command.query['fields'] = fields unless fields.nil?
1661
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1662
+ execute_or_queue_command(command, &block)
1663
+ end
1664
+
1561
1665
  # Downloads a single signed APK generated from an app bundle.
1562
1666
  # @param [String] package_name
1563
1667
  # Package name of the app.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-androidpublisher_v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.38.0
4
+ version: 0.39.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-02 00:00:00.000000000 Z
11
+ date: 2023-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-androidpublisher_v3/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-androidpublisher_v3/v0.38.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-androidpublisher_v3/v0.39.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-androidpublisher_v3
63
63
  post_install_message:
64
64
  rdoc_options: []