google-apis-androidpublisher_v3 0.79.0 → 0.80.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/androidpublisher_v3/classes.rb +578 -8
- data/lib/google/apis/androidpublisher_v3/gem_version.rb +2 -2
- data/lib/google/apis/androidpublisher_v3/representations.rb +271 -0
- data/lib/google/apis/androidpublisher_v3/service.rb +96 -18
- metadata +3 -3
@@ -912,6 +912,25 @@ module Google
|
|
912
912
|
end
|
913
913
|
end
|
914
914
|
|
915
|
+
# Response for the orders.batchGet API.
|
916
|
+
class BatchGetOrdersResponse
|
917
|
+
include Google::Apis::Core::Hashable
|
918
|
+
|
919
|
+
# Details for the requested order IDs.
|
920
|
+
# Corresponds to the JSON property `orders`
|
921
|
+
# @return [Array<Google::Apis::AndroidpublisherV3::Order>]
|
922
|
+
attr_accessor :orders
|
923
|
+
|
924
|
+
def initialize(**args)
|
925
|
+
update!(**args)
|
926
|
+
end
|
927
|
+
|
928
|
+
# Update properties of this object
|
929
|
+
def update!(**args)
|
930
|
+
@orders = args[:orders] if args.key?(:orders)
|
931
|
+
end
|
932
|
+
end
|
933
|
+
|
915
934
|
# Request message for BatchGetSubscriptionOffers endpoint.
|
916
935
|
class BatchGetSubscriptionOffersRequest
|
917
936
|
include Google::Apis::Core::Hashable
|
@@ -1226,6 +1245,39 @@ module Google
|
|
1226
1245
|
end
|
1227
1246
|
end
|
1228
1247
|
|
1248
|
+
# Address information for the customer, for use in tax computation.
|
1249
|
+
class BuyerAddress
|
1250
|
+
include Google::Apis::Core::Hashable
|
1251
|
+
|
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
|
1268
|
+
|
1269
|
+
def initialize(**args)
|
1270
|
+
update!(**args)
|
1271
|
+
end
|
1272
|
+
|
1273
|
+
# Update properties of this object
|
1274
|
+
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)
|
1278
|
+
end
|
1279
|
+
end
|
1280
|
+
|
1229
1281
|
# Request message for CancelAppRecovery.
|
1230
1282
|
class CancelAppRecoveryRequest
|
1231
1283
|
include Google::Apis::Core::Hashable
|
@@ -1316,6 +1368,25 @@ module Google
|
|
1316
1368
|
end
|
1317
1369
|
end
|
1318
1370
|
|
1371
|
+
# Details of when the order was canceled.
|
1372
|
+
class CancellationEvent
|
1373
|
+
include Google::Apis::Core::Hashable
|
1374
|
+
|
1375
|
+
# The time when the order was canceled.
|
1376
|
+
# Corresponds to the JSON property `eventTime`
|
1377
|
+
# @return [String]
|
1378
|
+
attr_accessor :event_time
|
1379
|
+
|
1380
|
+
def initialize(**args)
|
1381
|
+
update!(**args)
|
1382
|
+
end
|
1383
|
+
|
1384
|
+
# Update properties of this object
|
1385
|
+
def update!(**args)
|
1386
|
+
@event_time = args[:event_time] if args.key?(:event_time)
|
1387
|
+
end
|
1388
|
+
end
|
1389
|
+
|
1319
1390
|
# An entry of conversation between user and developer.
|
1320
1391
|
class Comment
|
1321
1392
|
include Google::Apis::Core::Hashable
|
@@ -3442,6 +3513,69 @@ module Google
|
|
3442
3513
|
end
|
3443
3514
|
end
|
3444
3515
|
|
3516
|
+
# Details of a line item.
|
3517
|
+
class LineItem
|
3518
|
+
include Google::Apis::Core::Hashable
|
3519
|
+
|
3520
|
+
# Represents an amount of money with its currency type.
|
3521
|
+
# Corresponds to the JSON property `listingPrice`
|
3522
|
+
# @return [Google::Apis::AndroidpublisherV3::Money]
|
3523
|
+
attr_accessor :listing_price
|
3524
|
+
|
3525
|
+
# Details of a one-time purchase.
|
3526
|
+
# Corresponds to the JSON property `oneTimePurchaseDetails`
|
3527
|
+
# @return [Google::Apis::AndroidpublisherV3::OneTimePurchaseDetails]
|
3528
|
+
attr_accessor :one_time_purchase_details
|
3529
|
+
|
3530
|
+
# Details of a paid app purchase.
|
3531
|
+
# Corresponds to the JSON property `paidAppDetails`
|
3532
|
+
# @return [Google::Apis::AndroidpublisherV3::PaidAppDetails]
|
3533
|
+
attr_accessor :paid_app_details
|
3534
|
+
|
3535
|
+
# The purchased product ID or in-app SKU (for example, 'monthly001' or 'com.some.
|
3536
|
+
# thing.inapp1').
|
3537
|
+
# Corresponds to the JSON property `productId`
|
3538
|
+
# @return [String]
|
3539
|
+
attr_accessor :product_id
|
3540
|
+
|
3541
|
+
# Developer-specified name of the product. Displayed in buyer's locale. Example:
|
3542
|
+
# coins, monthly subscription, etc.
|
3543
|
+
# Corresponds to the JSON property `productTitle`
|
3544
|
+
# @return [String]
|
3545
|
+
attr_accessor :product_title
|
3546
|
+
|
3547
|
+
# Details of a subscription purchase.
|
3548
|
+
# Corresponds to the JSON property `subscriptionDetails`
|
3549
|
+
# @return [Google::Apis::AndroidpublisherV3::SubscriptionDetails]
|
3550
|
+
attr_accessor :subscription_details
|
3551
|
+
|
3552
|
+
# Represents an amount of money with its currency type.
|
3553
|
+
# Corresponds to the JSON property `tax`
|
3554
|
+
# @return [Google::Apis::AndroidpublisherV3::Money]
|
3555
|
+
attr_accessor :tax
|
3556
|
+
|
3557
|
+
# Represents an amount of money with its currency type.
|
3558
|
+
# Corresponds to the JSON property `total`
|
3559
|
+
# @return [Google::Apis::AndroidpublisherV3::Money]
|
3560
|
+
attr_accessor :total
|
3561
|
+
|
3562
|
+
def initialize(**args)
|
3563
|
+
update!(**args)
|
3564
|
+
end
|
3565
|
+
|
3566
|
+
# Update properties of this object
|
3567
|
+
def update!(**args)
|
3568
|
+
@listing_price = args[:listing_price] if args.key?(:listing_price)
|
3569
|
+
@one_time_purchase_details = args[:one_time_purchase_details] if args.key?(:one_time_purchase_details)
|
3570
|
+
@paid_app_details = args[:paid_app_details] if args.key?(:paid_app_details)
|
3571
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
3572
|
+
@product_title = args[:product_title] if args.key?(:product_title)
|
3573
|
+
@subscription_details = args[:subscription_details] if args.key?(:subscription_details)
|
3574
|
+
@tax = args[:tax] if args.key?(:tax)
|
3575
|
+
@total = args[:total] if args.key?(:total)
|
3576
|
+
end
|
3577
|
+
end
|
3578
|
+
|
3445
3579
|
# Response message for ListAppRecoveries. -- api-linter: core::0158::response-
|
3446
3580
|
# next-page-token-field=disabled
|
3447
3581
|
class ListAppRecoveriesResponse
|
@@ -4005,6 +4139,197 @@ module Google
|
|
4005
4139
|
end
|
4006
4140
|
end
|
4007
4141
|
|
4142
|
+
# Details of a one-time purchase.
|
4143
|
+
class OneTimePurchaseDetails
|
4144
|
+
include Google::Apis::Core::Hashable
|
4145
|
+
|
4146
|
+
# The offer ID of the one-time purchase offer.
|
4147
|
+
# Corresponds to the JSON property `offerId`
|
4148
|
+
# @return [String]
|
4149
|
+
attr_accessor :offer_id
|
4150
|
+
|
4151
|
+
# The number of items purchased (for multi-quantity item purchases).
|
4152
|
+
# Corresponds to the JSON property `quantity`
|
4153
|
+
# @return [Fixnum]
|
4154
|
+
attr_accessor :quantity
|
4155
|
+
|
4156
|
+
def initialize(**args)
|
4157
|
+
update!(**args)
|
4158
|
+
end
|
4159
|
+
|
4160
|
+
# Update properties of this object
|
4161
|
+
def update!(**args)
|
4162
|
+
@offer_id = args[:offer_id] if args.key?(:offer_id)
|
4163
|
+
@quantity = args[:quantity] if args.key?(:quantity)
|
4164
|
+
end
|
4165
|
+
end
|
4166
|
+
|
4167
|
+
# The Order resource encapsulates comprehensive information about a transaction
|
4168
|
+
# made on Google Play. It includes a variety of attributes that provide details
|
4169
|
+
# about the order itself, the products purchased, and the history of events
|
4170
|
+
# related to the order. The Orders APIs provide real-time access to your order
|
4171
|
+
# data within the Google Play ecosystem. You can retrieve detailed information
|
4172
|
+
# and metadata for both one-time and recurring orders, including transaction
|
4173
|
+
# details like charges, taxes, and refunds, as well as metadata such as pricing
|
4174
|
+
# phases for subscriptions. The Orders APIs let you automate tasks related to
|
4175
|
+
# order management, reducing the need for manual checks via the Play Developer
|
4176
|
+
# Console. The following are some of the use cases for this API: + Real-time
|
4177
|
+
# order data retrieval - Get order details and metadata immediately after a
|
4178
|
+
# purchase using an order ID. + Order update synchronization - Periodically sync
|
4179
|
+
# order updates to maintain an up-to-date record of order information. Note: +
|
4180
|
+
# The Orders API calls count towards your Play Developer API quota, which
|
4181
|
+
# defaults to 200K daily, and may be insufficient to sync extensive order
|
4182
|
+
# histories. + A maximum of 1000 orders can be retrieved per call. Using larger
|
4183
|
+
# page sizes is recommended to minimize quota usage. Check your quota in the
|
4184
|
+
# Cloud Console and request more if required.
|
4185
|
+
class Order
|
4186
|
+
include Google::Apis::Core::Hashable
|
4187
|
+
|
4188
|
+
# Address information for the customer, for use in tax computation.
|
4189
|
+
# Corresponds to the JSON property `buyerAddress`
|
4190
|
+
# @return [Google::Apis::AndroidpublisherV3::BuyerAddress]
|
4191
|
+
attr_accessor :buyer_address
|
4192
|
+
|
4193
|
+
# The time when the order was created.
|
4194
|
+
# Corresponds to the JSON property `createTime`
|
4195
|
+
# @return [String]
|
4196
|
+
attr_accessor :create_time
|
4197
|
+
|
4198
|
+
# Represents an amount of money with its currency type.
|
4199
|
+
# Corresponds to the JSON property `developerRevenueInBuyerCurrency`
|
4200
|
+
# @return [Google::Apis::AndroidpublisherV3::Money]
|
4201
|
+
attr_accessor :developer_revenue_in_buyer_currency
|
4202
|
+
|
4203
|
+
# The time of the last event that occurred on the order.
|
4204
|
+
# Corresponds to the JSON property `lastEventTime`
|
4205
|
+
# @return [String]
|
4206
|
+
attr_accessor :last_event_time
|
4207
|
+
|
4208
|
+
# The individual line items making up this order.
|
4209
|
+
# Corresponds to the JSON property `lineItems`
|
4210
|
+
# @return [Array<Google::Apis::AndroidpublisherV3::LineItem>]
|
4211
|
+
attr_accessor :line_items
|
4212
|
+
|
4213
|
+
# Detailed information about the order at creation time.
|
4214
|
+
# Corresponds to the JSON property `orderDetails`
|
4215
|
+
# @return [Google::Apis::AndroidpublisherV3::OrderDetails]
|
4216
|
+
attr_accessor :order_details
|
4217
|
+
|
4218
|
+
# Details about events which modified the order.
|
4219
|
+
# Corresponds to the JSON property `orderHistory`
|
4220
|
+
# @return [Google::Apis::AndroidpublisherV3::OrderHistory]
|
4221
|
+
attr_accessor :order_history
|
4222
|
+
|
4223
|
+
# The order ID.
|
4224
|
+
# Corresponds to the JSON property `orderId`
|
4225
|
+
# @return [String]
|
4226
|
+
attr_accessor :order_id
|
4227
|
+
|
4228
|
+
# Details relating to any Play Points applied to an order.
|
4229
|
+
# Corresponds to the JSON property `pointsDetails`
|
4230
|
+
# @return [Google::Apis::AndroidpublisherV3::PointsDetails]
|
4231
|
+
attr_accessor :points_details
|
4232
|
+
|
4233
|
+
# The token provided to the user's device when the subscription or item was
|
4234
|
+
# purchased.
|
4235
|
+
# Corresponds to the JSON property `purchaseToken`
|
4236
|
+
# @return [String]
|
4237
|
+
attr_accessor :purchase_token
|
4238
|
+
|
4239
|
+
# The state of the order.
|
4240
|
+
# Corresponds to the JSON property `state`
|
4241
|
+
# @return [String]
|
4242
|
+
attr_accessor :state
|
4243
|
+
|
4244
|
+
# Represents an amount of money with its currency type.
|
4245
|
+
# Corresponds to the JSON property `tax`
|
4246
|
+
# @return [Google::Apis::AndroidpublisherV3::Money]
|
4247
|
+
attr_accessor :tax
|
4248
|
+
|
4249
|
+
# Represents an amount of money with its currency type.
|
4250
|
+
# Corresponds to the JSON property `total`
|
4251
|
+
# @return [Google::Apis::AndroidpublisherV3::Money]
|
4252
|
+
attr_accessor :total
|
4253
|
+
|
4254
|
+
def initialize(**args)
|
4255
|
+
update!(**args)
|
4256
|
+
end
|
4257
|
+
|
4258
|
+
# Update properties of this object
|
4259
|
+
def update!(**args)
|
4260
|
+
@buyer_address = args[:buyer_address] if args.key?(:buyer_address)
|
4261
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
4262
|
+
@developer_revenue_in_buyer_currency = args[:developer_revenue_in_buyer_currency] if args.key?(:developer_revenue_in_buyer_currency)
|
4263
|
+
@last_event_time = args[:last_event_time] if args.key?(:last_event_time)
|
4264
|
+
@line_items = args[:line_items] if args.key?(:line_items)
|
4265
|
+
@order_details = args[:order_details] if args.key?(:order_details)
|
4266
|
+
@order_history = args[:order_history] if args.key?(:order_history)
|
4267
|
+
@order_id = args[:order_id] if args.key?(:order_id)
|
4268
|
+
@points_details = args[:points_details] if args.key?(:points_details)
|
4269
|
+
@purchase_token = args[:purchase_token] if args.key?(:purchase_token)
|
4270
|
+
@state = args[:state] if args.key?(:state)
|
4271
|
+
@tax = args[:tax] if args.key?(:tax)
|
4272
|
+
@total = args[:total] if args.key?(:total)
|
4273
|
+
end
|
4274
|
+
end
|
4275
|
+
|
4276
|
+
# Detailed information about the order at creation time.
|
4277
|
+
class OrderDetails
|
4278
|
+
include Google::Apis::Core::Hashable
|
4279
|
+
|
4280
|
+
# Indicates whether the listed price was tax inclusive or not.
|
4281
|
+
# Corresponds to the JSON property `taxInclusive`
|
4282
|
+
# @return [Boolean]
|
4283
|
+
attr_accessor :tax_inclusive
|
4284
|
+
alias_method :tax_inclusive?, :tax_inclusive
|
4285
|
+
|
4286
|
+
def initialize(**args)
|
4287
|
+
update!(**args)
|
4288
|
+
end
|
4289
|
+
|
4290
|
+
# Update properties of this object
|
4291
|
+
def update!(**args)
|
4292
|
+
@tax_inclusive = args[:tax_inclusive] if args.key?(:tax_inclusive)
|
4293
|
+
end
|
4294
|
+
end
|
4295
|
+
|
4296
|
+
# Details about events which modified the order.
|
4297
|
+
class OrderHistory
|
4298
|
+
include Google::Apis::Core::Hashable
|
4299
|
+
|
4300
|
+
# Details of when the order was canceled.
|
4301
|
+
# Corresponds to the JSON property `cancellationEvent`
|
4302
|
+
# @return [Google::Apis::AndroidpublisherV3::CancellationEvent]
|
4303
|
+
attr_accessor :cancellation_event
|
4304
|
+
|
4305
|
+
# Details of the partial refund events for this order.
|
4306
|
+
# Corresponds to the JSON property `partialRefundEvents`
|
4307
|
+
# @return [Array<Google::Apis::AndroidpublisherV3::PartialRefundEvent>]
|
4308
|
+
attr_accessor :partial_refund_events
|
4309
|
+
|
4310
|
+
# Details of when the order was processed.
|
4311
|
+
# Corresponds to the JSON property `processedEvent`
|
4312
|
+
# @return [Google::Apis::AndroidpublisherV3::ProcessedEvent]
|
4313
|
+
attr_accessor :processed_event
|
4314
|
+
|
4315
|
+
# Details of when the order was fully refunded.
|
4316
|
+
# Corresponds to the JSON property `refundEvent`
|
4317
|
+
# @return [Google::Apis::AndroidpublisherV3::RefundEvent]
|
4318
|
+
attr_accessor :refund_event
|
4319
|
+
|
4320
|
+
def initialize(**args)
|
4321
|
+
update!(**args)
|
4322
|
+
end
|
4323
|
+
|
4324
|
+
# Update properties of this object
|
4325
|
+
def update!(**args)
|
4326
|
+
@cancellation_event = args[:cancellation_event] if args.key?(:cancellation_event)
|
4327
|
+
@partial_refund_events = args[:partial_refund_events] if args.key?(:partial_refund_events)
|
4328
|
+
@processed_event = args[:processed_event] if args.key?(:processed_event)
|
4329
|
+
@refund_event = args[:refund_event] if args.key?(:refund_event)
|
4330
|
+
end
|
4331
|
+
end
|
4332
|
+
|
4008
4333
|
# Details of a recurring external transaction product which doesn't belong to
|
4009
4334
|
# any other more specific category.
|
4010
4335
|
class OtherRecurringProduct
|
@@ -4195,6 +4520,19 @@ module Google
|
|
4195
4520
|
end
|
4196
4521
|
end
|
4197
4522
|
|
4523
|
+
# Details of a paid app purchase.
|
4524
|
+
class PaidAppDetails
|
4525
|
+
include Google::Apis::Core::Hashable
|
4526
|
+
|
4527
|
+
def initialize(**args)
|
4528
|
+
update!(**args)
|
4529
|
+
end
|
4530
|
+
|
4531
|
+
# Update properties of this object
|
4532
|
+
def update!(**args)
|
4533
|
+
end
|
4534
|
+
end
|
4535
|
+
|
4198
4536
|
# A partial refund of a transaction.
|
4199
4537
|
class PartialRefund
|
4200
4538
|
include Google::Apis::Core::Hashable
|
@@ -4222,6 +4560,43 @@ module Google
|
|
4222
4560
|
end
|
4223
4561
|
end
|
4224
4562
|
|
4563
|
+
# Details of the partial refund events for this order.
|
4564
|
+
class PartialRefundEvent
|
4565
|
+
include Google::Apis::Core::Hashable
|
4566
|
+
|
4567
|
+
# The time when the partial refund was created.
|
4568
|
+
# Corresponds to the JSON property `createTime`
|
4569
|
+
# @return [String]
|
4570
|
+
attr_accessor :create_time
|
4571
|
+
|
4572
|
+
# The time when the partial refund was processed.
|
4573
|
+
# Corresponds to the JSON property `processTime`
|
4574
|
+
# @return [String]
|
4575
|
+
attr_accessor :process_time
|
4576
|
+
|
4577
|
+
# Details for a partial or full refund.
|
4578
|
+
# Corresponds to the JSON property `refundDetails`
|
4579
|
+
# @return [Google::Apis::AndroidpublisherV3::RefundDetails]
|
4580
|
+
attr_accessor :refund_details
|
4581
|
+
|
4582
|
+
# The state of the partial refund.
|
4583
|
+
# Corresponds to the JSON property `state`
|
4584
|
+
# @return [String]
|
4585
|
+
attr_accessor :state
|
4586
|
+
|
4587
|
+
def initialize(**args)
|
4588
|
+
update!(**args)
|
4589
|
+
end
|
4590
|
+
|
4591
|
+
# Update properties of this object
|
4592
|
+
def update!(**args)
|
4593
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
4594
|
+
@process_time = args[:process_time] if args.key?(:process_time)
|
4595
|
+
@refund_details = args[:refund_details] if args.key?(:refund_details)
|
4596
|
+
@state = args[:state] if args.key?(:state)
|
4597
|
+
end
|
4598
|
+
end
|
4599
|
+
|
4225
4600
|
# Information specific to a subscription in paused state.
|
4226
4601
|
class PausedStateContext
|
4227
4602
|
include Google::Apis::Core::Hashable
|
@@ -4256,6 +4631,48 @@ module Google
|
|
4256
4631
|
end
|
4257
4632
|
end
|
4258
4633
|
|
4634
|
+
# Details relating to any Play Points applied to an order.
|
4635
|
+
class PointsDetails
|
4636
|
+
include Google::Apis::Core::Hashable
|
4637
|
+
|
4638
|
+
# Represents an amount of money with its currency type.
|
4639
|
+
# Corresponds to the JSON property `pointsCouponValue`
|
4640
|
+
# @return [Google::Apis::AndroidpublisherV3::Money]
|
4641
|
+
attr_accessor :points_coupon_value
|
4642
|
+
|
4643
|
+
# The percentage rate which the Play Points promotion reduces the cost by. E.g.
|
4644
|
+
# for a 100 points for $2 coupon, this is 500,000. Since $2 has an estimate of
|
4645
|
+
# 200 points, but the actual Points required, 100, is 50% of this, and 50% in
|
4646
|
+
# micros is 500,000. Between 0 and 1,000,000.
|
4647
|
+
# Corresponds to the JSON property `pointsDiscountRateMicros`
|
4648
|
+
# @return [Fixnum]
|
4649
|
+
attr_accessor :points_discount_rate_micros
|
4650
|
+
|
4651
|
+
# ID unique to the play points offer in use for this order.
|
4652
|
+
# Corresponds to the JSON property `pointsOfferId`
|
4653
|
+
# @return [String]
|
4654
|
+
attr_accessor :points_offer_id
|
4655
|
+
|
4656
|
+
# The number of Play Points applied in this order. E.g. for a 100 points for $2
|
4657
|
+
# coupon, this is 100. For coupon stacked with base offer, this is the total
|
4658
|
+
# points spent across both.
|
4659
|
+
# Corresponds to the JSON property `pointsSpent`
|
4660
|
+
# @return [Fixnum]
|
4661
|
+
attr_accessor :points_spent
|
4662
|
+
|
4663
|
+
def initialize(**args)
|
4664
|
+
update!(**args)
|
4665
|
+
end
|
4666
|
+
|
4667
|
+
# Update properties of this object
|
4668
|
+
def update!(**args)
|
4669
|
+
@points_coupon_value = args[:points_coupon_value] if args.key?(:points_coupon_value)
|
4670
|
+
@points_discount_rate_micros = args[:points_discount_rate_micros] if args.key?(:points_discount_rate_micros)
|
4671
|
+
@points_offer_id = args[:points_offer_id] if args.key?(:points_offer_id)
|
4672
|
+
@points_spent = args[:points_spent] if args.key?(:points_spent)
|
4673
|
+
end
|
4674
|
+
end
|
4675
|
+
|
4259
4676
|
# Represents a base plan that does not automatically renew at the end of the
|
4260
4677
|
# base plan, and must be manually renewed by the user.
|
4261
4678
|
class PrepaidBasePlanType
|
@@ -4331,6 +4748,25 @@ module Google
|
|
4331
4748
|
end
|
4332
4749
|
end
|
4333
4750
|
|
4751
|
+
# Details of when the order was processed.
|
4752
|
+
class ProcessedEvent
|
4753
|
+
include Google::Apis::Core::Hashable
|
4754
|
+
|
4755
|
+
# The time when the order was processed.
|
4756
|
+
# Corresponds to the JSON property `eventTime`
|
4757
|
+
# @return [String]
|
4758
|
+
attr_accessor :event_time
|
4759
|
+
|
4760
|
+
def initialize(**args)
|
4761
|
+
update!(**args)
|
4762
|
+
end
|
4763
|
+
|
4764
|
+
# Update properties of this object
|
4765
|
+
def update!(**args)
|
4766
|
+
@event_time = args[:event_time] if args.key?(:event_time)
|
4767
|
+
end
|
4768
|
+
end
|
4769
|
+
|
4334
4770
|
# A ProductPurchase resource indicates the status of a user's inapp product
|
4335
4771
|
# purchase.
|
4336
4772
|
class ProductPurchase
|
@@ -4524,6 +4960,62 @@ module Google
|
|
4524
4960
|
end
|
4525
4961
|
end
|
4526
4962
|
|
4963
|
+
# Details for a partial or full refund.
|
4964
|
+
class RefundDetails
|
4965
|
+
include Google::Apis::Core::Hashable
|
4966
|
+
|
4967
|
+
# Represents an amount of money with its currency type.
|
4968
|
+
# Corresponds to the JSON property `tax`
|
4969
|
+
# @return [Google::Apis::AndroidpublisherV3::Money]
|
4970
|
+
attr_accessor :tax
|
4971
|
+
|
4972
|
+
# Represents an amount of money with its currency type.
|
4973
|
+
# Corresponds to the JSON property `total`
|
4974
|
+
# @return [Google::Apis::AndroidpublisherV3::Money]
|
4975
|
+
attr_accessor :total
|
4976
|
+
|
4977
|
+
def initialize(**args)
|
4978
|
+
update!(**args)
|
4979
|
+
end
|
4980
|
+
|
4981
|
+
# Update properties of this object
|
4982
|
+
def update!(**args)
|
4983
|
+
@tax = args[:tax] if args.key?(:tax)
|
4984
|
+
@total = args[:total] if args.key?(:total)
|
4985
|
+
end
|
4986
|
+
end
|
4987
|
+
|
4988
|
+
# Details of when the order was fully refunded.
|
4989
|
+
class RefundEvent
|
4990
|
+
include Google::Apis::Core::Hashable
|
4991
|
+
|
4992
|
+
# The time when the order was fully refunded.
|
4993
|
+
# Corresponds to the JSON property `eventTime`
|
4994
|
+
# @return [String]
|
4995
|
+
attr_accessor :event_time
|
4996
|
+
|
4997
|
+
# Details for a partial or full refund.
|
4998
|
+
# Corresponds to the JSON property `refundDetails`
|
4999
|
+
# @return [Google::Apis::AndroidpublisherV3::RefundDetails]
|
5000
|
+
attr_accessor :refund_details
|
5001
|
+
|
5002
|
+
# The reason the order was refunded.
|
5003
|
+
# Corresponds to the JSON property `refundReason`
|
5004
|
+
# @return [String]
|
5005
|
+
attr_accessor :refund_reason
|
5006
|
+
|
5007
|
+
def initialize(**args)
|
5008
|
+
update!(**args)
|
5009
|
+
end
|
5010
|
+
|
5011
|
+
# Update properties of this object
|
5012
|
+
def update!(**args)
|
5013
|
+
@event_time = args[:event_time] if args.key?(:event_time)
|
5014
|
+
@refund_details = args[:refund_details] if args.key?(:refund_details)
|
5015
|
+
@refund_reason = args[:refund_reason] if args.key?(:refund_reason)
|
5016
|
+
end
|
5017
|
+
end
|
5018
|
+
|
4527
5019
|
# A request to refund an existing external transaction.
|
4528
5020
|
class RefundExternalTransactionRequest
|
4529
5021
|
include Google::Apis::Core::Hashable
|
@@ -4790,9 +5282,10 @@ module Google
|
|
4790
5282
|
# specified according to the information published in [this article](https://
|
4791
5283
|
# support.google.com/googleplay/android-developer/answer/10532353). Each time
|
4792
5284
|
# the supported locations substantially change, the version will be incremented.
|
4793
|
-
#
|
4794
|
-
#
|
4795
|
-
#
|
5285
|
+
# The latest supported version is available in this article. Using this field
|
5286
|
+
# will ensure that creating and updating the resource with an older region's
|
5287
|
+
# version and set of regional prices and currencies will succeed even though a
|
5288
|
+
# new version is available.
|
4796
5289
|
# Corresponds to the JSON property `version`
|
4797
5290
|
# @return [String]
|
4798
5291
|
attr_accessor :version
|
@@ -5061,6 +5554,12 @@ module Google
|
|
5061
5554
|
# @return [Google::Apis::AndroidpublisherV3::RevocationContextFullRefund]
|
5062
5555
|
attr_accessor :full_refund
|
5063
5556
|
|
5557
|
+
# Used to determine what specific item to revoke in a subscription with multiple
|
5558
|
+
# items.
|
5559
|
+
# Corresponds to the JSON property `itemBasedRefund`
|
5560
|
+
# @return [Google::Apis::AndroidpublisherV3::RevocationContextItemBasedRefund]
|
5561
|
+
attr_accessor :item_based_refund
|
5562
|
+
|
5064
5563
|
# Used to determine if the refund type in the RevocationContext is a prorated
|
5065
5564
|
# refund.
|
5066
5565
|
# Corresponds to the JSON property `proratedRefund`
|
@@ -5074,6 +5573,7 @@ module Google
|
|
5074
5573
|
# Update properties of this object
|
5075
5574
|
def update!(**args)
|
5076
5575
|
@full_refund = args[:full_refund] if args.key?(:full_refund)
|
5576
|
+
@item_based_refund = args[:item_based_refund] if args.key?(:item_based_refund)
|
5077
5577
|
@prorated_refund = args[:prorated_refund] if args.key?(:prorated_refund)
|
5078
5578
|
end
|
5079
5579
|
end
|
@@ -5091,6 +5591,27 @@ module Google
|
|
5091
5591
|
end
|
5092
5592
|
end
|
5093
5593
|
|
5594
|
+
# Used to determine what specific item to revoke in a subscription with multiple
|
5595
|
+
# items.
|
5596
|
+
class RevocationContextItemBasedRefund
|
5597
|
+
include Google::Apis::Core::Hashable
|
5598
|
+
|
5599
|
+
# Required. If the subscription is a subscription bundle, the product id of the
|
5600
|
+
# subscription to revoke.
|
5601
|
+
# Corresponds to the JSON property `productId`
|
5602
|
+
# @return [String]
|
5603
|
+
attr_accessor :product_id
|
5604
|
+
|
5605
|
+
def initialize(**args)
|
5606
|
+
update!(**args)
|
5607
|
+
end
|
5608
|
+
|
5609
|
+
# Update properties of this object
|
5610
|
+
def update!(**args)
|
5611
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
5612
|
+
end
|
5613
|
+
end
|
5614
|
+
|
5094
5615
|
# Used to determine if the refund type in the RevocationContext is a prorated
|
5095
5616
|
# refund.
|
5096
5617
|
class RevocationContextProratedRefund
|
@@ -5539,6 +6060,54 @@ module Google
|
|
5539
6060
|
end
|
5540
6061
|
end
|
5541
6062
|
|
6063
|
+
# Details of a subscription purchase.
|
6064
|
+
class SubscriptionDetails
|
6065
|
+
include Google::Apis::Core::Hashable
|
6066
|
+
|
6067
|
+
# The base plan ID of the subscription.
|
6068
|
+
# Corresponds to the JSON property `basePlanId`
|
6069
|
+
# @return [String]
|
6070
|
+
attr_accessor :base_plan_id
|
6071
|
+
|
6072
|
+
# The offer ID for the current subscription offer.
|
6073
|
+
# Corresponds to the JSON property `offerId`
|
6074
|
+
# @return [String]
|
6075
|
+
attr_accessor :offer_id
|
6076
|
+
|
6077
|
+
# The pricing phase for the billing period funded by this order.
|
6078
|
+
# Corresponds to the JSON property `offerPhase`
|
6079
|
+
# @return [String]
|
6080
|
+
attr_accessor :offer_phase
|
6081
|
+
|
6082
|
+
# The end of the billing period funded by this order. This is a snapshot of the
|
6083
|
+
# billing/service period end time at the moment the order was processed, and
|
6084
|
+
# should be used only for accounting. To get the current end time of the
|
6085
|
+
# subscription service period, use purchases.subscriptionsv2.get.
|
6086
|
+
# Corresponds to the JSON property `servicePeriodEndTime`
|
6087
|
+
# @return [String]
|
6088
|
+
attr_accessor :service_period_end_time
|
6089
|
+
|
6090
|
+
# The start of the billing period funded by this order. This is a snapshot of
|
6091
|
+
# the billing/service period start time at the moment the order was processed,
|
6092
|
+
# and should be used only for accounting.
|
6093
|
+
# Corresponds to the JSON property `servicePeriodStartTime`
|
6094
|
+
# @return [String]
|
6095
|
+
attr_accessor :service_period_start_time
|
6096
|
+
|
6097
|
+
def initialize(**args)
|
6098
|
+
update!(**args)
|
6099
|
+
end
|
6100
|
+
|
6101
|
+
# Update properties of this object
|
6102
|
+
def update!(**args)
|
6103
|
+
@base_plan_id = args[:base_plan_id] if args.key?(:base_plan_id)
|
6104
|
+
@offer_id = args[:offer_id] if args.key?(:offer_id)
|
6105
|
+
@offer_phase = args[:offer_phase] if args.key?(:offer_phase)
|
6106
|
+
@service_period_end_time = args[:service_period_end_time] if args.key?(:service_period_end_time)
|
6107
|
+
@service_period_start_time = args[:service_period_start_time] if args.key?(:service_period_start_time)
|
6108
|
+
end
|
6109
|
+
end
|
6110
|
+
|
5542
6111
|
# Price change related information of a subscription item.
|
5543
6112
|
class SubscriptionItemPriceChangeDetails
|
5544
6113
|
include Google::Apis::Core::Hashable
|
@@ -6128,11 +6697,12 @@ module Google
|
|
6128
6697
|
# @return [String]
|
6129
6698
|
attr_accessor :kind
|
6130
6699
|
|
6131
|
-
#
|
6132
|
-
#
|
6133
|
-
#
|
6134
|
-
#
|
6135
|
-
#
|
6700
|
+
# Deprecated: Use line_items.latest_successful_order_id instead. The order id of
|
6701
|
+
# the latest order associated with the purchase of the subscription. For
|
6702
|
+
# autoRenewing subscription, this is the order id of signup order if it is not
|
6703
|
+
# renewed yet, or the last recurring order id (success, pending, or declined
|
6704
|
+
# order). For prepaid subscription, this is the order id associated with the
|
6705
|
+
# queried purchase token.
|
6136
6706
|
# Corresponds to the JSON property `latestOrderId`
|
6137
6707
|
# @return [String]
|
6138
6708
|
attr_accessor :latest_order_id
|