google-api-client 0.40.0 → 0.40.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (151) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +53 -0
  3. data/generated/google/apis/admob_v1.rb +1 -1
  4. data/generated/google/apis/admob_v1/classes.rb +5 -6
  5. data/generated/google/apis/androidenterprise_v1.rb +2 -2
  6. data/generated/google/apis/androidenterprise_v1/classes.rb +547 -724
  7. data/generated/google/apis/androidenterprise_v1/representations.rb +0 -54
  8. data/generated/google/apis/androidenterprise_v1/service.rb +540 -795
  9. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  10. data/generated/google/apis/androidpublisher_v3/classes.rb +21 -2
  11. data/generated/google/apis/androidpublisher_v3/representations.rb +2 -0
  12. data/generated/google/apis/appsmarket_v2.rb +3 -3
  13. data/generated/google/apis/appsmarket_v2/classes.rb +160 -159
  14. data/generated/google/apis/appsmarket_v2/representations.rb +78 -78
  15. data/generated/google/apis/appsmarket_v2/service.rb +24 -39
  16. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  17. data/generated/google/apis/cloudbuild_v1/classes.rb +14 -2
  18. data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
  19. data/generated/google/apis/cloudbuild_v1/service.rb +42 -0
  20. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  21. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +12 -0
  22. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +1 -0
  23. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  24. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +12 -0
  25. data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +1 -0
  26. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  27. data/generated/google/apis/cloudsearch_v1/service.rb +1 -1
  28. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  29. data/generated/google/apis/cloudtasks_v2/classes.rb +6 -4
  30. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  31. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +9 -0
  32. data/generated/google/apis/cloudtasks_v2beta3/representations.rb +1 -0
  33. data/generated/google/apis/compute_alpha.rb +1 -1
  34. data/generated/google/apis/compute_alpha/classes.rb +63 -99
  35. data/generated/google/apis/compute_alpha/representations.rb +14 -32
  36. data/generated/google/apis/compute_alpha/service.rb +37 -0
  37. data/generated/google/apis/compute_beta.rb +1 -1
  38. data/generated/google/apis/compute_beta/classes.rb +51 -26
  39. data/generated/google/apis/compute_beta/representations.rb +3 -0
  40. data/generated/google/apis/compute_v1.rb +1 -1
  41. data/generated/google/apis/compute_v1/classes.rb +5 -5
  42. data/generated/google/apis/content_v2.rb +1 -1
  43. data/generated/google/apis/content_v2/classes.rb +34 -0
  44. data/generated/google/apis/content_v2/representations.rb +16 -0
  45. data/generated/google/apis/content_v2/service.rb +5 -1
  46. data/generated/google/apis/content_v2_1.rb +1 -1
  47. data/generated/google/apis/content_v2_1/classes.rb +357 -5
  48. data/generated/google/apis/content_v2_1/representations.rb +135 -0
  49. data/generated/google/apis/content_v2_1/service.rb +85 -1
  50. data/generated/google/apis/dataproc_v1.rb +1 -1
  51. data/generated/google/apis/dataproc_v1/classes.rb +22 -22
  52. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  53. data/generated/google/apis/dataproc_v1beta2/classes.rb +23 -23
  54. data/generated/google/apis/dialogflow_v2.rb +1 -1
  55. data/generated/google/apis/dialogflow_v2/classes.rb +9 -29
  56. data/generated/google/apis/dialogflow_v2/representations.rb +0 -4
  57. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  58. data/generated/google/apis/dialogflow_v2beta1/classes.rb +0 -28
  59. data/generated/google/apis/dialogflow_v2beta1/representations.rb +0 -4
  60. data/generated/google/apis/displayvideo_v1.rb +1 -1
  61. data/generated/google/apis/displayvideo_v1/classes.rb +463 -0
  62. data/generated/google/apis/displayvideo_v1/representations.rb +238 -0
  63. data/generated/google/apis/displayvideo_v1/service.rb +1718 -376
  64. data/generated/google/apis/file_v1.rb +1 -1
  65. data/generated/google/apis/file_v1/classes.rb +0 -1156
  66. data/generated/google/apis/file_v1/representations.rb +0 -381
  67. data/generated/google/apis/file_v1beta1.rb +1 -1
  68. data/generated/google/apis/file_v1beta1/classes.rb +67 -1156
  69. data/generated/google/apis/file_v1beta1/representations.rb +14 -376
  70. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  71. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +30 -25
  72. data/generated/google/apis/fitness_v1.rb +1 -1
  73. data/generated/google/apis/fitness_v1/classes.rb +1 -1
  74. data/generated/google/apis/games_v1.rb +1 -1
  75. data/generated/google/apis/healthcare_v1.rb +1 -1
  76. data/generated/google/apis/healthcare_v1/classes.rb +3 -3
  77. data/generated/google/apis/healthcare_v1/service.rb +3 -3
  78. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  79. data/generated/google/apis/healthcare_v1beta1/classes.rb +3 -3
  80. data/generated/google/apis/healthcare_v1beta1/service.rb +3 -3
  81. data/generated/google/apis/memcache_v1beta2.rb +1 -1
  82. data/generated/google/apis/memcache_v1beta2/classes.rb +36 -5
  83. data/generated/google/apis/memcache_v1beta2/representations.rb +15 -0
  84. data/generated/google/apis/people_v1.rb +1 -1
  85. data/generated/google/apis/people_v1/classes.rb +100 -0
  86. data/generated/google/apis/people_v1/representations.rb +31 -0
  87. data/generated/google/apis/people_v1/service.rb +95 -2
  88. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  89. data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +30 -0
  90. data/generated/google/apis/pubsub_v1.rb +1 -1
  91. data/generated/google/apis/pubsub_v1/classes.rb +15 -1
  92. data/generated/google/apis/pubsub_v1/representations.rb +12 -0
  93. data/generated/google/apis/pubsub_v1/service.rb +35 -1
  94. data/generated/google/apis/{dialogflow_v3alpha1.rb → recommender_v1.rb} +9 -13
  95. data/generated/google/apis/recommender_v1/classes.rb +505 -0
  96. data/generated/google/apis/recommender_v1/representations.rb +232 -0
  97. data/generated/google/apis/recommender_v1/service.rb +266 -0
  98. data/generated/google/apis/run_v1.rb +1 -1
  99. data/generated/google/apis/run_v1/classes.rb +9 -0
  100. data/generated/google/apis/run_v1/representations.rb +1 -0
  101. data/generated/google/apis/run_v1alpha1.rb +1 -1
  102. data/generated/google/apis/run_v1alpha1/classes.rb +9 -0
  103. data/generated/google/apis/run_v1alpha1/representations.rb +1 -0
  104. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  105. data/generated/google/apis/sasportal_v1alpha1/service.rb +30 -0
  106. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  107. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +97 -0
  108. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +32 -0
  109. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  110. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +97 -0
  111. data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +32 -0
  112. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  113. data/generated/google/apis/servicecontrol_v1/classes.rb +3 -3
  114. data/generated/google/apis/serviceusage_v1.rb +1 -1
  115. data/generated/google/apis/serviceusage_v1/classes.rb +89 -0
  116. data/generated/google/apis/serviceusage_v1/representations.rb +32 -0
  117. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  118. data/generated/google/apis/serviceusage_v1beta1/classes.rb +89 -0
  119. data/generated/google/apis/serviceusage_v1beta1/representations.rb +32 -0
  120. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  121. data/generated/google/apis/sourcerepo_v1/classes.rb +23 -10
  122. data/generated/google/apis/sourcerepo_v1/service.rb +3 -0
  123. data/generated/google/apis/spanner_v1.rb +1 -1
  124. data/generated/google/apis/spanner_v1/classes.rb +1 -2
  125. data/generated/google/apis/spanner_v1/service.rb +8 -8
  126. data/generated/google/apis/sql_v1beta4.rb +1 -1
  127. data/generated/google/apis/sql_v1beta4/classes.rb +7 -0
  128. data/generated/google/apis/sql_v1beta4/representations.rb +1 -0
  129. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  130. data/generated/google/apis/storagetransfer_v1/classes.rb +2 -1
  131. data/generated/google/apis/testing_v1.rb +1 -1
  132. data/generated/google/apis/testing_v1/classes.rb +2 -1
  133. data/generated/google/apis/videointelligence_v1.rb +1 -1
  134. data/generated/google/apis/videointelligence_v1/classes.rb +1 -1
  135. data/generated/google/apis/videointelligence_v1/service.rb +32 -0
  136. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  137. data/generated/google/apis/videointelligence_v1beta2/classes.rb +1 -1
  138. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  139. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +1 -1
  140. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  141. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +1 -1
  142. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  143. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +1 -1
  144. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  145. data/lib/google/apis/core/api_command.rb +12 -7
  146. data/lib/google/apis/options.rb +5 -1
  147. data/lib/google/apis/version.rb +1 -1
  148. metadata +7 -7
  149. data/generated/google/apis/dialogflow_v3alpha1/classes.rb +0 -5579
  150. data/generated/google/apis/dialogflow_v3alpha1/representations.rb +0 -2295
  151. data/generated/google/apis/dialogflow_v3alpha1/service.rb +0 -296
@@ -808,6 +808,12 @@ module Google
808
808
  include Google::Apis::Core::JsonObjectSupport
809
809
  end
810
810
 
811
+ class OrderShipmentScheduledDeliveryDetails
812
+ class Representation < Google::Apis::Core::JsonRepresentation; end
813
+
814
+ include Google::Apis::Core::JsonObjectSupport
815
+ end
816
+
811
817
  class OrderinvoicesCreateChargeInvoiceRequest
812
818
  class Representation < Google::Apis::Core::JsonRepresentation; end
813
819
 
@@ -3115,6 +3121,8 @@ module Google
3115
3121
  property :id, as: 'id'
3116
3122
  collection :line_items, as: 'lineItems', class: Google::Apis::ContentV2::OrderShipmentLineItemShipment, decorator: Google::Apis::ContentV2::OrderShipmentLineItemShipment::Representation
3117
3123
 
3124
+ property :scheduled_delivery_details, as: 'scheduledDeliveryDetails', class: Google::Apis::ContentV2::OrderShipmentScheduledDeliveryDetails, decorator: Google::Apis::ContentV2::OrderShipmentScheduledDeliveryDetails::Representation
3125
+
3118
3126
  property :status, as: 'status'
3119
3127
  property :tracking_id, as: 'trackingId'
3120
3128
  end
@@ -3129,6 +3137,14 @@ module Google
3129
3137
  end
3130
3138
  end
3131
3139
 
3140
+ class OrderShipmentScheduledDeliveryDetails
3141
+ # @private
3142
+ class Representation < Google::Apis::Core::JsonRepresentation
3143
+ property :carrier_phone_number, as: 'carrierPhoneNumber'
3144
+ property :scheduled_date, as: 'scheduledDate'
3145
+ end
3146
+ end
3147
+
3132
3148
  class OrderinvoicesCreateChargeInvoiceRequest
3133
3149
  # @private
3134
3150
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2519,7 +2519,11 @@ module Google
2519
2519
  end
2520
2520
 
2521
2521
  # Returns and refunds a line item. Note that this method can only be called on
2522
- # fully shipped orders.
2522
+ # fully shipped orders. Please also note that the Orderreturns API is the
2523
+ # preferred way to handle returns after you receive a return from a customer.
2524
+ # You can use Orderreturns.list or Orderreturns.get to search for the return,
2525
+ # and then use Orderreturns.processreturn to issue the refund. If the return
2526
+ # cannot be found, then we recommend using this API to issue a refund.
2523
2527
  # @param [Fixnum] merchant_id
2524
2528
  # The ID of the account that manages the order. This cannot be a multi-client
2525
2529
  # account.
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/shopping-content
27
27
  module ContentV2_1
28
28
  VERSION = 'V2_1'
29
- REVISION = '20200512'
29
+ REVISION = '20200529'
30
30
 
31
31
  # Manage your product listings and accounts for Google Shopping
32
32
  AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
@@ -4012,6 +4012,11 @@ module Google
4012
4012
  attr_accessor :acknowledged
4013
4013
  alias_method :acknowledged?, :acknowledged
4014
4014
 
4015
+ # List of key-value pairs that are attached to a given order.
4016
+ # Corresponds to the JSON property `annotations`
4017
+ # @return [Array<Google::Apis::ContentV2_1::OrderOrderAnnotation>]
4018
+ attr_accessor :annotations
4019
+
4015
4020
  # The billing address.
4016
4021
  # Corresponds to the JSON property `billingAddress`
4017
4022
  # @return [Google::Apis::ContentV2_1::OrderAddress]
@@ -4160,6 +4165,7 @@ module Google
4160
4165
  # Update properties of this object
4161
4166
  def update!(**args)
4162
4167
  @acknowledged = args[:acknowledged] if args.key?(:acknowledged)
4168
+ @annotations = args[:annotations] if args.key?(:annotations)
4163
4169
  @billing_address = args[:billing_address] if args.key?(:billing_address)
4164
4170
  @customer = args[:customer] if args.key?(:customer)
4165
4171
  @delivery_details = args[:delivery_details] if args.key?(:delivery_details)
@@ -4830,6 +4836,12 @@ module Google
4830
4836
  # @return [Google::Apis::ContentV2_1::OrderLineItemShippingDetailsMethod]
4831
4837
  attr_accessor :method_prop
4832
4838
 
4839
+ # The promised time in minutes in which the order will be ready for pickup. This
4840
+ # only applies to buy-online-pickup-in-store same-day order.
4841
+ # Corresponds to the JSON property `pickupPromiseInMinutes`
4842
+ # @return [Fixnum]
4843
+ attr_accessor :pickup_promise_in_minutes
4844
+
4833
4845
  # Required. The ship by date, in ISO 8601 format.
4834
4846
  # Corresponds to the JSON property `shipByDate`
4835
4847
  # @return [String]
@@ -4852,6 +4864,7 @@ module Google
4852
4864
  def update!(**args)
4853
4865
  @deliver_by_date = args[:deliver_by_date] if args.key?(:deliver_by_date)
4854
4866
  @method_prop = args[:method_prop] if args.key?(:method_prop)
4867
+ @pickup_promise_in_minutes = args[:pickup_promise_in_minutes] if args.key?(:pickup_promise_in_minutes)
4855
4868
  @ship_by_date = args[:ship_by_date] if args.key?(:ship_by_date)
4856
4869
  @type = args[:type] if args.key?(:type)
4857
4870
  end
@@ -4922,6 +4935,31 @@ module Google
4922
4935
  end
4923
4936
  end
4924
4937
 
4938
+ #
4939
+ class OrderOrderAnnotation
4940
+ include Google::Apis::Core::Hashable
4941
+
4942
+ # Key for additional google provided (as key-value pairs) annotation.
4943
+ # Corresponds to the JSON property `key`
4944
+ # @return [String]
4945
+ attr_accessor :key
4946
+
4947
+ # Value for additional google provided (as key-value pairs) annotation.
4948
+ # Corresponds to the JSON property `value`
4949
+ # @return [String]
4950
+ attr_accessor :value
4951
+
4952
+ def initialize(**args)
4953
+ update!(**args)
4954
+ end
4955
+
4956
+ # Update properties of this object
4957
+ def update!(**args)
4958
+ @key = args[:key] if args.key?(:key)
4959
+ @value = args[:value] if args.key?(:value)
4960
+ end
4961
+ end
4962
+
4925
4963
  #
4926
4964
  class OrderPickupDetails
4927
4965
  include Google::Apis::Core::Hashable
@@ -4943,6 +4981,17 @@ module Google
4943
4981
  # @return [String]
4944
4982
  attr_accessor :location_id
4945
4983
 
4984
+ # The pickup type of this order.
4985
+ # Acceptable values are:
4986
+ # - "`merchantStore`"
4987
+ # - "`merchantStoreCurbside`"
4988
+ # - "`merchantStoreLocker`"
4989
+ # - "`thirdPartyPickupPoint`"
4990
+ # - "`thirdPartyLocker`"
4991
+ # Corresponds to the JSON property `pickupType`
4992
+ # @return [String]
4993
+ attr_accessor :pickup_type
4994
+
4946
4995
  def initialize(**args)
4947
4996
  update!(**args)
4948
4997
  end
@@ -4952,6 +5001,7 @@ module Google
4952
5001
  @address = args[:address] if args.key?(:address)
4953
5002
  @collectors = args[:collectors] if args.key?(:collectors)
4954
5003
  @location_id = args[:location_id] if args.key?(:location_id)
5004
+ @pickup_type = args[:pickup_type] if args.key?(:pickup_type)
4955
5005
  end
4956
5006
  end
4957
5007
 
@@ -4984,14 +5034,16 @@ module Google
4984
5034
  class OrderPromotion
4985
5035
  include Google::Apis::Core::Hashable
4986
5036
 
4987
- # Items which this promotion may be applied to. If empty, there are no
4988
- # restrictions on applicable items and quantity.
5037
+ # Items that this promotion may be applied to. If empty, there are no
5038
+ # restrictions on applicable items and quantity. This field will also be empty
5039
+ # for shipping promotions because shipping is not tied to any specific item.
4989
5040
  # Corresponds to the JSON property `applicableItems`
4990
5041
  # @return [Array<Google::Apis::ContentV2_1::OrderPromotionItem>]
4991
5042
  attr_accessor :applicable_items
4992
5043
 
4993
- # Items which this promotion have been applied to. Do not provide for `orders.
4994
- # createtestorder`.
5044
+ # Items that this promotion have been applied to. Do not provide for `orders.
5045
+ # createtestorder`. This field will be empty for shipping promotions because
5046
+ # shipping is not tied to any specific item.
4995
5047
  # Corresponds to the JSON property `appliedItems`
4996
5048
  # @return [Array<Google::Apis::ContentV2_1::OrderPromotionItem>]
4997
5049
  attr_accessor :applied_items
@@ -5478,6 +5530,11 @@ module Google
5478
5530
  # @return [Array<Google::Apis::ContentV2_1::OrderShipmentLineItemShipment>]
5479
5531
  attr_accessor :line_items
5480
5532
 
5533
+ # Delivery details of the shipment if scheduling is needed.
5534
+ # Corresponds to the JSON property `scheduledDeliveryDetails`
5535
+ # @return [Google::Apis::ContentV2_1::OrderShipmentScheduledDeliveryDetails]
5536
+ attr_accessor :scheduled_delivery_details
5537
+
5481
5538
  # The shipment group ID of the shipment. This is set in shiplineitems request.
5482
5539
  # Corresponds to the JSON property `shipmentGroupId`
5483
5540
  # @return [String]
@@ -5509,6 +5566,7 @@ module Google
5509
5566
  @delivery_date = args[:delivery_date] if args.key?(:delivery_date)
5510
5567
  @id = args[:id] if args.key?(:id)
5511
5568
  @line_items = args[:line_items] if args.key?(:line_items)
5569
+ @scheduled_delivery_details = args[:scheduled_delivery_details] if args.key?(:scheduled_delivery_details)
5512
5570
  @shipment_group_id = args[:shipment_group_id] if args.key?(:shipment_group_id)
5513
5571
  @status = args[:status] if args.key?(:status)
5514
5572
  @tracking_id = args[:tracking_id] if args.key?(:tracking_id)
@@ -5548,6 +5606,31 @@ module Google
5548
5606
  end
5549
5607
  end
5550
5608
 
5609
+ #
5610
+ class OrderShipmentScheduledDeliveryDetails
5611
+ include Google::Apis::Core::Hashable
5612
+
5613
+ # The phone number of the carrier fulfilling the delivery.
5614
+ # Corresponds to the JSON property `carrierPhoneNumber`
5615
+ # @return [String]
5616
+ attr_accessor :carrier_phone_number
5617
+
5618
+ # The date a shipment is scheduled for delivery, in ISO 8601 format.
5619
+ # Corresponds to the JSON property `scheduledDate`
5620
+ # @return [String]
5621
+ attr_accessor :scheduled_date
5622
+
5623
+ def initialize(**args)
5624
+ update!(**args)
5625
+ end
5626
+
5627
+ # Update properties of this object
5628
+ def update!(**args)
5629
+ @carrier_phone_number = args[:carrier_phone_number] if args.key?(:carrier_phone_number)
5630
+ @scheduled_date = args[:scheduled_date] if args.key?(:scheduled_date)
5631
+ end
5632
+ end
5633
+
5551
5634
  #
5552
5635
  class OrderinvoicesCreateChargeInvoiceRequest
5553
5636
  include Google::Apis::Core::Hashable
@@ -6555,6 +6638,84 @@ module Google
6555
6638
  end
6556
6639
  end
6557
6640
 
6641
+ #
6642
+ class OrdersCustomBatchRequestEntryRefundItemItem
6643
+ include Google::Apis::Core::Hashable
6644
+
6645
+ # The amount that is refunded. In case of multiple refunds,
6646
+ # - If the quantity of refunded items changed, this should contain the total
6647
+ # refund per item.
6648
+ # - If the quantity of the refunded items remained the same, this should be the
6649
+ # newly refunded amount.
6650
+ # Corresponds to the JSON property `amount`
6651
+ # @return [Google::Apis::ContentV2_1::MonetaryAmount]
6652
+ attr_accessor :amount
6653
+
6654
+ # If true, the full item will be refunded. If this is true, amount should not be
6655
+ # provided and will be ignored.
6656
+ # Corresponds to the JSON property `fullRefund`
6657
+ # @return [Boolean]
6658
+ attr_accessor :full_refund
6659
+ alias_method :full_refund?, :full_refund
6660
+
6661
+ # The ID of the line item. Either lineItemId or productId is required.
6662
+ # Corresponds to the JSON property `lineItemId`
6663
+ # @return [String]
6664
+ attr_accessor :line_item_id
6665
+
6666
+ # The ID of the product. This is the REST ID used in the products service.
6667
+ # Either lineItemId or productId is required.
6668
+ # Corresponds to the JSON property `productId`
6669
+ # @return [String]
6670
+ attr_accessor :product_id
6671
+
6672
+ # The number of products that are refunded.
6673
+ # Corresponds to the JSON property `quantity`
6674
+ # @return [Fixnum]
6675
+ attr_accessor :quantity
6676
+
6677
+ def initialize(**args)
6678
+ update!(**args)
6679
+ end
6680
+
6681
+ # Update properties of this object
6682
+ def update!(**args)
6683
+ @amount = args[:amount] if args.key?(:amount)
6684
+ @full_refund = args[:full_refund] if args.key?(:full_refund)
6685
+ @line_item_id = args[:line_item_id] if args.key?(:line_item_id)
6686
+ @product_id = args[:product_id] if args.key?(:product_id)
6687
+ @quantity = args[:quantity] if args.key?(:quantity)
6688
+ end
6689
+ end
6690
+
6691
+ #
6692
+ class OrdersCustomBatchRequestEntryRefundItemShipping
6693
+ include Google::Apis::Core::Hashable
6694
+
6695
+ # The amount that is refunded. If this is not the first refund for the shipment,
6696
+ # this should be the newly refunded amount.
6697
+ # Corresponds to the JSON property `amount`
6698
+ # @return [Google::Apis::ContentV2_1::Price]
6699
+ attr_accessor :amount
6700
+
6701
+ # If set to true, all shipping costs for the order will be refunded. If this is
6702
+ # true, amount should not be provided and will be ignored.
6703
+ # Corresponds to the JSON property `fullRefund`
6704
+ # @return [Boolean]
6705
+ attr_accessor :full_refund
6706
+ alias_method :full_refund?, :full_refund
6707
+
6708
+ def initialize(**args)
6709
+ update!(**args)
6710
+ end
6711
+
6712
+ # Update properties of this object
6713
+ def update!(**args)
6714
+ @amount = args[:amount] if args.key?(:amount)
6715
+ @full_refund = args[:full_refund] if args.key?(:full_refund)
6716
+ end
6717
+ end
6718
+
6558
6719
  #
6559
6720
  class OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo
6560
6721
  include Google::Apis::Core::Hashable
@@ -6780,6 +6941,173 @@ module Google
6780
6941
  end
6781
6942
  end
6782
6943
 
6944
+ #
6945
+ class OrdersRefundItemRequest
6946
+ include Google::Apis::Core::Hashable
6947
+
6948
+ # The items that are refunded. Either Item or Shipping must be provided in the
6949
+ # request.
6950
+ # Corresponds to the JSON property `items`
6951
+ # @return [Array<Google::Apis::ContentV2_1::OrdersCustomBatchRequestEntryRefundItemItem>]
6952
+ attr_accessor :items
6953
+
6954
+ # The ID of the operation. Unique across all operations for a given order.
6955
+ # Corresponds to the JSON property `operationId`
6956
+ # @return [String]
6957
+ attr_accessor :operation_id
6958
+
6959
+ # The reason for the refund.
6960
+ # Acceptable values are:
6961
+ # - "`shippingCostAdjustment`"
6962
+ # - "`priceAdjustment`"
6963
+ # - "`taxAdjustment`"
6964
+ # - "`feeAdjustment`"
6965
+ # - "`courtesyAdjustment`"
6966
+ # - "`adjustment`"
6967
+ # - "`customerCancelled`"
6968
+ # - "`noInventory`"
6969
+ # - "`productNotAsDescribed`"
6970
+ # - "`undeliverableShippingAddress`"
6971
+ # - "`wrongProductShipped`"
6972
+ # - "`lateShipmentCredit`"
6973
+ # - "`deliveredLateByCarrier`"
6974
+ # - "`productArrivedDamaged`"
6975
+ # Corresponds to the JSON property `reason`
6976
+ # @return [String]
6977
+ attr_accessor :reason
6978
+
6979
+ # The explanation of the reason.
6980
+ # Corresponds to the JSON property `reasonText`
6981
+ # @return [String]
6982
+ attr_accessor :reason_text
6983
+
6984
+ # The refund on shipping. Optional, but either Item or Shipping must be provided
6985
+ # in the request.
6986
+ # Corresponds to the JSON property `shipping`
6987
+ # @return [Google::Apis::ContentV2_1::OrdersCustomBatchRequestEntryRefundItemShipping]
6988
+ attr_accessor :shipping
6989
+
6990
+ def initialize(**args)
6991
+ update!(**args)
6992
+ end
6993
+
6994
+ # Update properties of this object
6995
+ def update!(**args)
6996
+ @items = args[:items] if args.key?(:items)
6997
+ @operation_id = args[:operation_id] if args.key?(:operation_id)
6998
+ @reason = args[:reason] if args.key?(:reason)
6999
+ @reason_text = args[:reason_text] if args.key?(:reason_text)
7000
+ @shipping = args[:shipping] if args.key?(:shipping)
7001
+ end
7002
+ end
7003
+
7004
+ #
7005
+ class OrdersRefundItemResponse
7006
+ include Google::Apis::Core::Hashable
7007
+
7008
+ # The status of the execution.
7009
+ # Acceptable values are:
7010
+ # - "`duplicate`"
7011
+ # - "`executed`"
7012
+ # Corresponds to the JSON property `executionStatus`
7013
+ # @return [String]
7014
+ attr_accessor :execution_status
7015
+
7016
+ # Identifies what kind of resource this is. Value: the fixed string "content#
7017
+ # ordersRefundItemResponse".
7018
+ # Corresponds to the JSON property `kind`
7019
+ # @return [String]
7020
+ attr_accessor :kind
7021
+
7022
+ def initialize(**args)
7023
+ update!(**args)
7024
+ end
7025
+
7026
+ # Update properties of this object
7027
+ def update!(**args)
7028
+ @execution_status = args[:execution_status] if args.key?(:execution_status)
7029
+ @kind = args[:kind] if args.key?(:kind)
7030
+ end
7031
+ end
7032
+
7033
+ #
7034
+ class OrdersRefundOrderRequest
7035
+ include Google::Apis::Core::Hashable
7036
+
7037
+ # The amount that is refunded. If this is not the first refund for the order,
7038
+ # this should be the newly refunded amount.
7039
+ # Corresponds to the JSON property `amount`
7040
+ # @return [Google::Apis::ContentV2_1::MonetaryAmount]
7041
+ attr_accessor :amount
7042
+
7043
+ # If true, the full order will be refunded, including shipping. If this is true,
7044
+ # amount should not be provided and will be ignored.
7045
+ # Corresponds to the JSON property `fullRefund`
7046
+ # @return [Boolean]
7047
+ attr_accessor :full_refund
7048
+ alias_method :full_refund?, :full_refund
7049
+
7050
+ # The ID of the operation. Unique across all operations for a given order.
7051
+ # Corresponds to the JSON property `operationId`
7052
+ # @return [String]
7053
+ attr_accessor :operation_id
7054
+
7055
+ # The reason for the refund.
7056
+ # Acceptable values are:
7057
+ # - "`courtesyAdjustment`"
7058
+ # - "`other`"
7059
+ # Corresponds to the JSON property `reason`
7060
+ # @return [String]
7061
+ attr_accessor :reason
7062
+
7063
+ # The explanation of the reason.
7064
+ # Corresponds to the JSON property `reasonText`
7065
+ # @return [String]
7066
+ attr_accessor :reason_text
7067
+
7068
+ def initialize(**args)
7069
+ update!(**args)
7070
+ end
7071
+
7072
+ # Update properties of this object
7073
+ def update!(**args)
7074
+ @amount = args[:amount] if args.key?(:amount)
7075
+ @full_refund = args[:full_refund] if args.key?(:full_refund)
7076
+ @operation_id = args[:operation_id] if args.key?(:operation_id)
7077
+ @reason = args[:reason] if args.key?(:reason)
7078
+ @reason_text = args[:reason_text] if args.key?(:reason_text)
7079
+ end
7080
+ end
7081
+
7082
+ #
7083
+ class OrdersRefundOrderResponse
7084
+ include Google::Apis::Core::Hashable
7085
+
7086
+ # The status of the execution.
7087
+ # Acceptable values are:
7088
+ # - "`duplicate`"
7089
+ # - "`executed`"
7090
+ # Corresponds to the JSON property `executionStatus`
7091
+ # @return [String]
7092
+ attr_accessor :execution_status
7093
+
7094
+ # Identifies what kind of resource this is. Value: the fixed string "content#
7095
+ # ordersRefundOrderResponse".
7096
+ # Corresponds to the JSON property `kind`
7097
+ # @return [String]
7098
+ attr_accessor :kind
7099
+
7100
+ def initialize(**args)
7101
+ update!(**args)
7102
+ end
7103
+
7104
+ # Update properties of this object
7105
+ def update!(**args)
7106
+ @execution_status = args[:execution_status] if args.key?(:execution_status)
7107
+ @kind = args[:kind] if args.key?(:kind)
7108
+ end
7109
+ end
7110
+
6783
7111
  #
6784
7112
  class OrdersRejectReturnLineItemRequest
6785
7113
  include Google::Apis::Core::Hashable
@@ -7259,11 +7587,24 @@ module Google
7259
7587
  # @return [String]
7260
7588
  attr_accessor :delivery_date
7261
7589
 
7590
+ # Date after which the pickup will expire, in ISO 8601 format. Required only
7591
+ # when order is buy-online-pickup-in-store(BOPIS) and `status` is `ready for
7592
+ # pickup`.
7593
+ # Corresponds to the JSON property `lastPickupDate`
7594
+ # @return [String]
7595
+ attr_accessor :last_pickup_date
7596
+
7262
7597
  # The ID of the operation. Unique across all operations for a given order.
7263
7598
  # Corresponds to the JSON property `operationId`
7264
7599
  # @return [String]
7265
7600
  attr_accessor :operation_id
7266
7601
 
7602
+ # Date on which the shipment has been ready for pickup, in ISO 8601 format.
7603
+ # Optional and can be provided only if `status` is `ready for pickup`.
7604
+ # Corresponds to the JSON property `readyPickupDate`
7605
+ # @return [String]
7606
+ attr_accessor :ready_pickup_date
7607
+
7267
7608
  # The ID of the shipment.
7268
7609
  # Corresponds to the JSON property `shipmentId`
7269
7610
  # @return [String]
@@ -7273,6 +7614,7 @@ module Google
7273
7614
  # Acceptable values are:
7274
7615
  # - "`delivered`"
7275
7616
  # - "`undeliverable`"
7617
+ # - "`readyForPickup`"
7276
7618
  # Corresponds to the JSON property `status`
7277
7619
  # @return [String]
7278
7620
  attr_accessor :status
@@ -7282,6 +7624,12 @@ module Google
7282
7624
  # @return [String]
7283
7625
  attr_accessor :tracking_id
7284
7626
 
7627
+ # Date on which the shipment has been undeliverable, in ISO 8601 format.
7628
+ # Optional and can be provided only if `status` is `undeliverable`.
7629
+ # Corresponds to the JSON property `undeliveredDate`
7630
+ # @return [String]
7631
+ attr_accessor :undelivered_date
7632
+
7285
7633
  def initialize(**args)
7286
7634
  update!(**args)
7287
7635
  end
@@ -7290,10 +7638,13 @@ module Google
7290
7638
  def update!(**args)
7291
7639
  @carrier = args[:carrier] if args.key?(:carrier)
7292
7640
  @delivery_date = args[:delivery_date] if args.key?(:delivery_date)
7641
+ @last_pickup_date = args[:last_pickup_date] if args.key?(:last_pickup_date)
7293
7642
  @operation_id = args[:operation_id] if args.key?(:operation_id)
7643
+ @ready_pickup_date = args[:ready_pickup_date] if args.key?(:ready_pickup_date)
7294
7644
  @shipment_id = args[:shipment_id] if args.key?(:shipment_id)
7295
7645
  @status = args[:status] if args.key?(:status)
7296
7646
  @tracking_id = args[:tracking_id] if args.key?(:tracking_id)
7647
+ @undelivered_date = args[:undelivered_date] if args.key?(:undelivered_date)
7297
7648
  end
7298
7649
  end
7299
7650
 
@@ -8896,7 +9247,7 @@ module Google
8896
9247
  # @return [String]
8897
9248
  attr_accessor :destination
8898
9249
 
8899
- #
9250
+ # Destination approval status in targetCountry of the offer.
8900
9251
  # Corresponds to the JSON property `status`
8901
9252
  # @return [String]
8902
9253
  attr_accessor :status
@@ -10128,6 +10479,7 @@ module Google
10128
10479
  # - "`new`"
10129
10480
  # - "`shipped`"
10130
10481
  # - "`undeliverable`"
10482
+ # - "`pending`"
10131
10483
  # Corresponds to the JSON property `state`
10132
10484
  # @return [String]
10133
10485
  attr_accessor :state