google-api-client 0.24.2 → 0.24.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +68 -0
- data/README.md +9 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +5 -4
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +90 -87
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +17 -15
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +155 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +82 -0
- data/generated/google/apis/alertcenter_v1beta1.rb +31 -0
- data/generated/google/apis/alertcenter_v1beta1/classes.rb +835 -0
- data/generated/google/apis/alertcenter_v1beta1/representations.rb +394 -0
- data/generated/google/apis/alertcenter_v1beta1/service.rb +302 -0
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +37 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +6 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +8 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +8 -4
- data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/service.rb +5 -1
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/service.rb +5 -1
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +8 -1
- data/generated/google/apis/appengine_v1/representations.rb +1 -0
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/classes.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +6 -5
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +12 -10
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +52 -18
- data/generated/google/apis/cloudasset_v1beta1.rb +34 -0
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +798 -0
- data/generated/google/apis/cloudasset_v1beta1/representations.rb +263 -0
- data/generated/google/apis/cloudasset_v1beta1/service.rb +313 -0
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +42 -5
- data/generated/google/apis/cloudbuild_v1/representations.rb +6 -0
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +59 -0
- data/generated/google/apis/cloudiot_v1/representations.rb +28 -0
- data/generated/google/apis/cloudiot_v1/service.rb +94 -0
- data/generated/google/apis/composer_v1.rb +1 -1
- data/generated/google/apis/composer_v1/classes.rb +1 -0
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +34 -5
- data/generated/google/apis/composer_v1beta1/representations.rb +1 -0
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +227 -48
- data/generated/google/apis/compute_alpha/representations.rb +84 -1
- data/generated/google/apis/compute_alpha/service.rb +50 -10
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +593 -77
- data/generated/google/apis/compute_beta/representations.rb +224 -18
- data/generated/google/apis/compute_beta/service.rb +174 -3
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +41 -18
- data/generated/google/apis/compute_v1/representations.rb +3 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +372 -119
- data/generated/google/apis/content_v2/representations.rb +157 -39
- data/generated/google/apis/content_v2/service.rb +101 -11
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/classes.rb +372 -119
- data/generated/google/apis/content_v2sandbox/representations.rb +157 -39
- data/generated/google/apis/content_v2sandbox/service.rb +90 -0
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +7 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +1 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +12 -0
- data/generated/google/apis/dataproc_v1/representations.rb +2 -0
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +21 -6
- data/generated/google/apis/dataproc_v1beta2/representations.rb +2 -0
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +2 -2
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/datastore_v1beta3/classes.rb +2 -2
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +110 -5
- data/generated/google/apis/dlp_v2/representations.rb +17 -0
- data/generated/google/apis/dlp_v2/service.rb +41 -3
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/file_v1beta1/classes.rb +0 -234
- data/generated/google/apis/file_v1beta1/representations.rb +0 -79
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +19 -1
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +3 -0
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +4 -1
- data/generated/google/apis/firebasehosting_v1beta1.rb +43 -0
- data/generated/google/apis/firebasehosting_v1beta1/classes.rb +767 -0
- data/generated/google/apis/firebasehosting_v1beta1/representations.rb +337 -0
- data/generated/google/apis/firebasehosting_v1beta1/service.rb +502 -0
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +8 -0
- data/generated/google/apis/firebaserules_v1/representations.rb +1 -0
- data/generated/google/apis/firebaserules_v1/service.rb +1 -1
- data/generated/google/apis/firestore_v1beta2.rb +1 -1
- data/generated/google/apis/firestore_v1beta2/service.rb +80 -80
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/service.rb +4 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +3 -1
- data/generated/google/apis/iamcredentials_v1.rb +1 -1
- data/generated/google/apis/iamcredentials_v1/service.rb +0 -10
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/iap_v1beta1/service.rb +339 -0
- data/generated/google/apis/jobs_v2.rb +1 -1
- data/generated/google/apis/jobs_v2/classes.rb +45 -37
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +21 -18
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +45 -20
- data/generated/google/apis/jobs_v3p1beta1/representations.rb +2 -0
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta2.rb +1 -1
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +12 -0
- data/generated/google/apis/logging_v2/representations.rb +1 -0
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +12 -0
- data/generated/google/apis/logging_v2beta1/representations.rb +1 -0
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +2 -2
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +19 -17
- data/generated/google/apis/monitoring_v3/representations.rb +1 -2
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +18 -15
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +18 -15
- data/generated/google/apis/redis_v1.rb +1 -1
- data/generated/google/apis/redis_v1/classes.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +1 -1
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +2 -150
- data/generated/google/apis/servicemanagement_v1/representations.rb +0 -42
- data/generated/google/apis/servicenetworking_v1beta.rb +38 -0
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +3440 -0
- data/generated/google/apis/servicenetworking_v1beta/representations.rb +992 -0
- data/generated/google/apis/servicenetworking_v1beta/service.rb +227 -0
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +1 -1
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2 -150
- data/generated/google/apis/serviceuser_v1/representations.rb +0 -42
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +308 -30
- data/generated/google/apis/spanner_v1/representations.rb +17 -0
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/classes.rb +12 -0
- data/generated/google/apis/streetviewpublish_v1/representations.rb +1 -0
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +47 -0
- data/generated/google/apis/testing_v1/representations.rb +18 -0
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1/classes.rb +676 -0
- data/generated/google/apis/videointelligence_v1/representations.rb +306 -0
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +676 -0
- data/generated/google/apis/videointelligence_v1beta2/representations.rb +306 -0
- data/generated/google/apis/{videointelligence_v1beta1.rb → videointelligence_v1p1beta1.rb} +6 -6
- data/generated/google/apis/{videointelligence_v1beta1 → videointelligence_v1p1beta1}/classes.rb +885 -489
- data/generated/google/apis/{videointelligence_v1beta1 → videointelligence_v1p1beta1}/representations.rb +357 -194
- data/generated/google/apis/{videointelligence_v1beta1 → videointelligence_v1p1beta1}/service.rb +12 -12
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +2 -2
- data/generated/google/apis/youtube_partner_v1/classes.rb +2 -1
- data/generated/google/apis/youtube_partner_v1/service.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +22 -6
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://developers.google.com/shopping-content
|
27
27
|
module ContentV2sandbox
|
28
28
|
VERSION = 'V2sandbox'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20181002'
|
30
30
|
|
31
31
|
# Manage your product listings and accounts for Google Shopping
|
32
32
|
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
|
@@ -47,6 +47,31 @@ module Google
|
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
50
|
+
#
|
51
|
+
class CustomerReturnReason
|
52
|
+
include Google::Apis::Core::Hashable
|
53
|
+
|
54
|
+
#
|
55
|
+
# Corresponds to the JSON property `description`
|
56
|
+
# @return [String]
|
57
|
+
attr_accessor :description
|
58
|
+
|
59
|
+
#
|
60
|
+
# Corresponds to the JSON property `reasonCode`
|
61
|
+
# @return [String]
|
62
|
+
attr_accessor :reason_code
|
63
|
+
|
64
|
+
def initialize(**args)
|
65
|
+
update!(**args)
|
66
|
+
end
|
67
|
+
|
68
|
+
# Update properties of this object
|
69
|
+
def update!(**args)
|
70
|
+
@description = args[:description] if args.key?(:description)
|
71
|
+
@reason_code = args[:reason_code] if args.key?(:reason_code)
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
50
75
|
# An error returned by the API.
|
51
76
|
class Error
|
52
77
|
include Google::Apis::Core::Hashable
|
@@ -193,6 +218,104 @@ module Google
|
|
193
218
|
end
|
194
219
|
end
|
195
220
|
|
221
|
+
#
|
222
|
+
class MerchantOrderReturn
|
223
|
+
include Google::Apis::Core::Hashable
|
224
|
+
|
225
|
+
#
|
226
|
+
# Corresponds to the JSON property `creationDate`
|
227
|
+
# @return [String]
|
228
|
+
attr_accessor :creation_date
|
229
|
+
|
230
|
+
#
|
231
|
+
# Corresponds to the JSON property `merchantOrderId`
|
232
|
+
# @return [String]
|
233
|
+
attr_accessor :merchant_order_id
|
234
|
+
|
235
|
+
#
|
236
|
+
# Corresponds to the JSON property `orderId`
|
237
|
+
# @return [String]
|
238
|
+
attr_accessor :order_id
|
239
|
+
|
240
|
+
#
|
241
|
+
# Corresponds to the JSON property `orderReturnId`
|
242
|
+
# @return [String]
|
243
|
+
attr_accessor :order_return_id
|
244
|
+
|
245
|
+
#
|
246
|
+
# Corresponds to the JSON property `returnItems`
|
247
|
+
# @return [Array<Google::Apis::ContentV2sandbox::MerchantOrderReturnItem>]
|
248
|
+
attr_accessor :return_items
|
249
|
+
|
250
|
+
#
|
251
|
+
# Corresponds to the JSON property `returnShipments`
|
252
|
+
# @return [Array<Google::Apis::ContentV2sandbox::ReturnShipment>]
|
253
|
+
attr_accessor :return_shipments
|
254
|
+
|
255
|
+
def initialize(**args)
|
256
|
+
update!(**args)
|
257
|
+
end
|
258
|
+
|
259
|
+
# Update properties of this object
|
260
|
+
def update!(**args)
|
261
|
+
@creation_date = args[:creation_date] if args.key?(:creation_date)
|
262
|
+
@merchant_order_id = args[:merchant_order_id] if args.key?(:merchant_order_id)
|
263
|
+
@order_id = args[:order_id] if args.key?(:order_id)
|
264
|
+
@order_return_id = args[:order_return_id] if args.key?(:order_return_id)
|
265
|
+
@return_items = args[:return_items] if args.key?(:return_items)
|
266
|
+
@return_shipments = args[:return_shipments] if args.key?(:return_shipments)
|
267
|
+
end
|
268
|
+
end
|
269
|
+
|
270
|
+
#
|
271
|
+
class MerchantOrderReturnItem
|
272
|
+
include Google::Apis::Core::Hashable
|
273
|
+
|
274
|
+
#
|
275
|
+
# Corresponds to the JSON property `customerReturnReason`
|
276
|
+
# @return [Google::Apis::ContentV2sandbox::CustomerReturnReason]
|
277
|
+
attr_accessor :customer_return_reason
|
278
|
+
|
279
|
+
#
|
280
|
+
# Corresponds to the JSON property `itemId`
|
281
|
+
# @return [String]
|
282
|
+
attr_accessor :item_id
|
283
|
+
|
284
|
+
#
|
285
|
+
# Corresponds to the JSON property `merchantReturnReason`
|
286
|
+
# @return [Google::Apis::ContentV2sandbox::RefundReason]
|
287
|
+
attr_accessor :merchant_return_reason
|
288
|
+
|
289
|
+
#
|
290
|
+
# Corresponds to the JSON property `product`
|
291
|
+
# @return [Google::Apis::ContentV2sandbox::OrderLineItemProduct]
|
292
|
+
attr_accessor :product
|
293
|
+
|
294
|
+
#
|
295
|
+
# Corresponds to the JSON property `returnShipmentIds`
|
296
|
+
# @return [Array<String>]
|
297
|
+
attr_accessor :return_shipment_ids
|
298
|
+
|
299
|
+
#
|
300
|
+
# Corresponds to the JSON property `state`
|
301
|
+
# @return [String]
|
302
|
+
attr_accessor :state
|
303
|
+
|
304
|
+
def initialize(**args)
|
305
|
+
update!(**args)
|
306
|
+
end
|
307
|
+
|
308
|
+
# Update properties of this object
|
309
|
+
def update!(**args)
|
310
|
+
@customer_return_reason = args[:customer_return_reason] if args.key?(:customer_return_reason)
|
311
|
+
@item_id = args[:item_id] if args.key?(:item_id)
|
312
|
+
@merchant_return_reason = args[:merchant_return_reason] if args.key?(:merchant_return_reason)
|
313
|
+
@product = args[:product] if args.key?(:product)
|
314
|
+
@return_shipment_ids = args[:return_shipment_ids] if args.key?(:return_shipment_ids)
|
315
|
+
@state = args[:state] if args.key?(:state)
|
316
|
+
end
|
317
|
+
end
|
318
|
+
|
196
319
|
#
|
197
320
|
class Order
|
198
321
|
include Google::Apis::Core::Hashable
|
@@ -266,10 +389,10 @@ module Google
|
|
266
389
|
# @return [String]
|
267
390
|
attr_accessor :placed_date
|
268
391
|
|
269
|
-
# The details of the merchant provided promotions applied to the
|
270
|
-
# details about the program are here.
|
392
|
+
# Deprecated. The details of the merchant provided promotions applied to the
|
393
|
+
# order. More details about the program are here.
|
271
394
|
# Corresponds to the JSON property `promotions`
|
272
|
-
# @return [Array<Google::Apis::ContentV2sandbox::
|
395
|
+
# @return [Array<Google::Apis::ContentV2sandbox::OrderLegacyPromotion>]
|
273
396
|
attr_accessor :promotions
|
274
397
|
|
275
398
|
# Refunds for the order.
|
@@ -449,8 +572,7 @@ module Google
|
|
449
572
|
class OrderCustomer
|
450
573
|
include Google::Apis::Core::Hashable
|
451
574
|
|
452
|
-
#
|
453
|
-
# cases this might not be a real users email, but a proxy email.
|
575
|
+
# Deprecated.
|
454
576
|
# Corresponds to the JSON property `email`
|
455
577
|
# @return [String]
|
456
578
|
attr_accessor :email
|
@@ -543,6 +665,114 @@ module Google
|
|
543
665
|
end
|
544
666
|
end
|
545
667
|
|
668
|
+
#
|
669
|
+
class OrderLegacyPromotion
|
670
|
+
include Google::Apis::Core::Hashable
|
671
|
+
|
672
|
+
#
|
673
|
+
# Corresponds to the JSON property `benefits`
|
674
|
+
# @return [Array<Google::Apis::ContentV2sandbox::OrderLegacyPromotionBenefit>]
|
675
|
+
attr_accessor :benefits
|
676
|
+
|
677
|
+
# The date and time frame when the promotion is active and ready for validation
|
678
|
+
# review. Note that the promotion live time may be delayed for a few hours due
|
679
|
+
# to the validation review.
|
680
|
+
# Start date and end date are separated by a forward slash (/). The start date
|
681
|
+
# is specified by the format (YYYY-MM-DD), followed by the letter ?T?, the time
|
682
|
+
# of the day when the sale starts (in Greenwich Mean Time, GMT), followed by an
|
683
|
+
# expression of the time zone for the sale. The end date is in the same format.
|
684
|
+
# Corresponds to the JSON property `effectiveDates`
|
685
|
+
# @return [String]
|
686
|
+
attr_accessor :effective_dates
|
687
|
+
|
688
|
+
# Optional. The text code that corresponds to the promotion when applied on the
|
689
|
+
# retailer?s website.
|
690
|
+
# Corresponds to the JSON property `genericRedemptionCode`
|
691
|
+
# @return [String]
|
692
|
+
attr_accessor :generic_redemption_code
|
693
|
+
|
694
|
+
# The unique ID of the promotion.
|
695
|
+
# Corresponds to the JSON property `id`
|
696
|
+
# @return [String]
|
697
|
+
attr_accessor :id
|
698
|
+
|
699
|
+
# The full title of the promotion.
|
700
|
+
# Corresponds to the JSON property `longTitle`
|
701
|
+
# @return [String]
|
702
|
+
attr_accessor :long_title
|
703
|
+
|
704
|
+
# Whether the promotion is applicable to all products or only specific products.
|
705
|
+
# Corresponds to the JSON property `productApplicability`
|
706
|
+
# @return [String]
|
707
|
+
attr_accessor :product_applicability
|
708
|
+
|
709
|
+
# Indicates that the promotion is valid online.
|
710
|
+
# Corresponds to the JSON property `redemptionChannel`
|
711
|
+
# @return [String]
|
712
|
+
attr_accessor :redemption_channel
|
713
|
+
|
714
|
+
def initialize(**args)
|
715
|
+
update!(**args)
|
716
|
+
end
|
717
|
+
|
718
|
+
# Update properties of this object
|
719
|
+
def update!(**args)
|
720
|
+
@benefits = args[:benefits] if args.key?(:benefits)
|
721
|
+
@effective_dates = args[:effective_dates] if args.key?(:effective_dates)
|
722
|
+
@generic_redemption_code = args[:generic_redemption_code] if args.key?(:generic_redemption_code)
|
723
|
+
@id = args[:id] if args.key?(:id)
|
724
|
+
@long_title = args[:long_title] if args.key?(:long_title)
|
725
|
+
@product_applicability = args[:product_applicability] if args.key?(:product_applicability)
|
726
|
+
@redemption_channel = args[:redemption_channel] if args.key?(:redemption_channel)
|
727
|
+
end
|
728
|
+
end
|
729
|
+
|
730
|
+
#
|
731
|
+
class OrderLegacyPromotionBenefit
|
732
|
+
include Google::Apis::Core::Hashable
|
733
|
+
|
734
|
+
# The discount in the order price when the promotion is applied.
|
735
|
+
# Corresponds to the JSON property `discount`
|
736
|
+
# @return [Google::Apis::ContentV2sandbox::Price]
|
737
|
+
attr_accessor :discount
|
738
|
+
|
739
|
+
# The OfferId(s) that were purchased in this order and map to this specific
|
740
|
+
# benefit of the promotion.
|
741
|
+
# Corresponds to the JSON property `offerIds`
|
742
|
+
# @return [Array<String>]
|
743
|
+
attr_accessor :offer_ids
|
744
|
+
|
745
|
+
# Further describes the benefit of the promotion. Note that we will expand on
|
746
|
+
# this enumeration as we support new promotion sub-types.
|
747
|
+
# Corresponds to the JSON property `subType`
|
748
|
+
# @return [String]
|
749
|
+
attr_accessor :sub_type
|
750
|
+
|
751
|
+
# The impact on tax when the promotion is applied.
|
752
|
+
# Corresponds to the JSON property `taxImpact`
|
753
|
+
# @return [Google::Apis::ContentV2sandbox::Price]
|
754
|
+
attr_accessor :tax_impact
|
755
|
+
|
756
|
+
# Describes whether the promotion applies to products (e.g. 20% off) or to
|
757
|
+
# shipping (e.g. Free Shipping).
|
758
|
+
# Corresponds to the JSON property `type`
|
759
|
+
# @return [String]
|
760
|
+
attr_accessor :type
|
761
|
+
|
762
|
+
def initialize(**args)
|
763
|
+
update!(**args)
|
764
|
+
end
|
765
|
+
|
766
|
+
# Update properties of this object
|
767
|
+
def update!(**args)
|
768
|
+
@discount = args[:discount] if args.key?(:discount)
|
769
|
+
@offer_ids = args[:offer_ids] if args.key?(:offer_ids)
|
770
|
+
@sub_type = args[:sub_type] if args.key?(:sub_type)
|
771
|
+
@tax_impact = args[:tax_impact] if args.key?(:tax_impact)
|
772
|
+
@type = args[:type] if args.key?(:type)
|
773
|
+
end
|
774
|
+
end
|
775
|
+
|
546
776
|
#
|
547
777
|
class OrderLineItem
|
548
778
|
include Google::Apis::Core::Hashable
|
@@ -963,114 +1193,6 @@ module Google
|
|
963
1193
|
end
|
964
1194
|
end
|
965
1195
|
|
966
|
-
#
|
967
|
-
class OrderPromotion
|
968
|
-
include Google::Apis::Core::Hashable
|
969
|
-
|
970
|
-
#
|
971
|
-
# Corresponds to the JSON property `benefits`
|
972
|
-
# @return [Array<Google::Apis::ContentV2sandbox::OrderPromotionBenefit>]
|
973
|
-
attr_accessor :benefits
|
974
|
-
|
975
|
-
# The date and time frame when the promotion is active and ready for validation
|
976
|
-
# review. Note that the promotion live time may be delayed for a few hours due
|
977
|
-
# to the validation review.
|
978
|
-
# Start date and end date are separated by a forward slash (/). The start date
|
979
|
-
# is specified by the format (YYYY-MM-DD), followed by the letter ?T?, the time
|
980
|
-
# of the day when the sale starts (in Greenwich Mean Time, GMT), followed by an
|
981
|
-
# expression of the time zone for the sale. The end date is in the same format.
|
982
|
-
# Corresponds to the JSON property `effectiveDates`
|
983
|
-
# @return [String]
|
984
|
-
attr_accessor :effective_dates
|
985
|
-
|
986
|
-
# Optional. The text code that corresponds to the promotion when applied on the
|
987
|
-
# retailer?s website.
|
988
|
-
# Corresponds to the JSON property `genericRedemptionCode`
|
989
|
-
# @return [String]
|
990
|
-
attr_accessor :generic_redemption_code
|
991
|
-
|
992
|
-
# The unique ID of the promotion.
|
993
|
-
# Corresponds to the JSON property `id`
|
994
|
-
# @return [String]
|
995
|
-
attr_accessor :id
|
996
|
-
|
997
|
-
# The full title of the promotion.
|
998
|
-
# Corresponds to the JSON property `longTitle`
|
999
|
-
# @return [String]
|
1000
|
-
attr_accessor :long_title
|
1001
|
-
|
1002
|
-
# Whether the promotion is applicable to all products or only specific products.
|
1003
|
-
# Corresponds to the JSON property `productApplicability`
|
1004
|
-
# @return [String]
|
1005
|
-
attr_accessor :product_applicability
|
1006
|
-
|
1007
|
-
# Indicates that the promotion is valid online.
|
1008
|
-
# Corresponds to the JSON property `redemptionChannel`
|
1009
|
-
# @return [String]
|
1010
|
-
attr_accessor :redemption_channel
|
1011
|
-
|
1012
|
-
def initialize(**args)
|
1013
|
-
update!(**args)
|
1014
|
-
end
|
1015
|
-
|
1016
|
-
# Update properties of this object
|
1017
|
-
def update!(**args)
|
1018
|
-
@benefits = args[:benefits] if args.key?(:benefits)
|
1019
|
-
@effective_dates = args[:effective_dates] if args.key?(:effective_dates)
|
1020
|
-
@generic_redemption_code = args[:generic_redemption_code] if args.key?(:generic_redemption_code)
|
1021
|
-
@id = args[:id] if args.key?(:id)
|
1022
|
-
@long_title = args[:long_title] if args.key?(:long_title)
|
1023
|
-
@product_applicability = args[:product_applicability] if args.key?(:product_applicability)
|
1024
|
-
@redemption_channel = args[:redemption_channel] if args.key?(:redemption_channel)
|
1025
|
-
end
|
1026
|
-
end
|
1027
|
-
|
1028
|
-
#
|
1029
|
-
class OrderPromotionBenefit
|
1030
|
-
include Google::Apis::Core::Hashable
|
1031
|
-
|
1032
|
-
# The discount in the order price when the promotion is applied.
|
1033
|
-
# Corresponds to the JSON property `discount`
|
1034
|
-
# @return [Google::Apis::ContentV2sandbox::Price]
|
1035
|
-
attr_accessor :discount
|
1036
|
-
|
1037
|
-
# The OfferId(s) that were purchased in this order and map to this specific
|
1038
|
-
# benefit of the promotion.
|
1039
|
-
# Corresponds to the JSON property `offerIds`
|
1040
|
-
# @return [Array<String>]
|
1041
|
-
attr_accessor :offer_ids
|
1042
|
-
|
1043
|
-
# Further describes the benefit of the promotion. Note that we will expand on
|
1044
|
-
# this enumeration as we support new promotion sub-types.
|
1045
|
-
# Corresponds to the JSON property `subType`
|
1046
|
-
# @return [String]
|
1047
|
-
attr_accessor :sub_type
|
1048
|
-
|
1049
|
-
# The impact on tax when the promotion is applied.
|
1050
|
-
# Corresponds to the JSON property `taxImpact`
|
1051
|
-
# @return [Google::Apis::ContentV2sandbox::Price]
|
1052
|
-
attr_accessor :tax_impact
|
1053
|
-
|
1054
|
-
# Describes whether the promotion applies to products (e.g. 20% off) or to
|
1055
|
-
# shipping (e.g. Free Shipping).
|
1056
|
-
# Corresponds to the JSON property `type`
|
1057
|
-
# @return [String]
|
1058
|
-
attr_accessor :type
|
1059
|
-
|
1060
|
-
def initialize(**args)
|
1061
|
-
update!(**args)
|
1062
|
-
end
|
1063
|
-
|
1064
|
-
# Update properties of this object
|
1065
|
-
def update!(**args)
|
1066
|
-
@discount = args[:discount] if args.key?(:discount)
|
1067
|
-
@offer_ids = args[:offer_ids] if args.key?(:offer_ids)
|
1068
|
-
@sub_type = args[:sub_type] if args.key?(:sub_type)
|
1069
|
-
@tax_impact = args[:tax_impact] if args.key?(:tax_impact)
|
1070
|
-
@type = args[:type] if args.key?(:type)
|
1071
|
-
end
|
1072
|
-
end
|
1073
|
-
|
1074
1196
|
#
|
1075
1197
|
class OrderRefund
|
1076
1198
|
include Google::Apis::Core::Hashable
|
@@ -1560,11 +1682,16 @@ module Google
|
|
1560
1682
|
# @return [String]
|
1561
1683
|
attr_accessor :charge_state
|
1562
1684
|
|
1563
|
-
#
|
1685
|
+
# Deprecated. Please use invoiceIds instead.
|
1564
1686
|
# Corresponds to the JSON property `invoiceId`
|
1565
1687
|
# @return [String]
|
1566
1688
|
attr_accessor :invoice_id
|
1567
1689
|
|
1690
|
+
# Invoice IDs from the orderinvoices service that correspond to the charge.
|
1691
|
+
# Corresponds to the JSON property `invoiceIds`
|
1692
|
+
# @return [Array<String>]
|
1693
|
+
attr_accessor :invoice_ids
|
1694
|
+
|
1568
1695
|
def initialize(**args)
|
1569
1696
|
update!(**args)
|
1570
1697
|
end
|
@@ -1573,6 +1700,7 @@ module Google
|
|
1573
1700
|
def update!(**args)
|
1574
1701
|
@charge_state = args[:charge_state] if args.key?(:charge_state)
|
1575
1702
|
@invoice_id = args[:invoice_id] if args.key?(:invoice_id)
|
1703
|
+
@invoice_ids = args[:invoice_ids] if args.key?(:invoice_ids)
|
1576
1704
|
end
|
1577
1705
|
end
|
1578
1706
|
|
@@ -1606,11 +1734,16 @@ module Google
|
|
1606
1734
|
class OrderpaymentsNotifyRefundRequest
|
1607
1735
|
include Google::Apis::Core::Hashable
|
1608
1736
|
|
1609
|
-
#
|
1737
|
+
# Deprecated. Please use invoiceIds instead.
|
1610
1738
|
# Corresponds to the JSON property `invoiceId`
|
1611
1739
|
# @return [String]
|
1612
1740
|
attr_accessor :invoice_id
|
1613
1741
|
|
1742
|
+
# Invoice IDs from the orderinvoices service that correspond to the refund.
|
1743
|
+
# Corresponds to the JSON property `invoiceIds`
|
1744
|
+
# @return [Array<String>]
|
1745
|
+
attr_accessor :invoice_ids
|
1746
|
+
|
1614
1747
|
# Whether refund was successful.
|
1615
1748
|
# Corresponds to the JSON property `refundState`
|
1616
1749
|
# @return [String]
|
@@ -1623,6 +1756,7 @@ module Google
|
|
1623
1756
|
# Update properties of this object
|
1624
1757
|
def update!(**args)
|
1625
1758
|
@invoice_id = args[:invoice_id] if args.key?(:invoice_id)
|
1759
|
+
@invoice_ids = args[:invoice_ids] if args.key?(:invoice_ids)
|
1626
1760
|
@refund_state = args[:refund_state] if args.key?(:refund_state)
|
1627
1761
|
end
|
1628
1762
|
end
|
@@ -1653,6 +1787,38 @@ module Google
|
|
1653
1787
|
end
|
1654
1788
|
end
|
1655
1789
|
|
1790
|
+
#
|
1791
|
+
class OrderreturnsListResponse
|
1792
|
+
include Google::Apis::Core::Hashable
|
1793
|
+
|
1794
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
1795
|
+
# orderreturnsListResponse".
|
1796
|
+
# Corresponds to the JSON property `kind`
|
1797
|
+
# @return [String]
|
1798
|
+
attr_accessor :kind
|
1799
|
+
|
1800
|
+
# The token for the retrieval of the next page of returns.
|
1801
|
+
# Corresponds to the JSON property `nextPageToken`
|
1802
|
+
# @return [String]
|
1803
|
+
attr_accessor :next_page_token
|
1804
|
+
|
1805
|
+
#
|
1806
|
+
# Corresponds to the JSON property `resources`
|
1807
|
+
# @return [Array<Google::Apis::ContentV2sandbox::MerchantOrderReturn>]
|
1808
|
+
attr_accessor :resources
|
1809
|
+
|
1810
|
+
def initialize(**args)
|
1811
|
+
update!(**args)
|
1812
|
+
end
|
1813
|
+
|
1814
|
+
# Update properties of this object
|
1815
|
+
def update!(**args)
|
1816
|
+
@kind = args[:kind] if args.key?(:kind)
|
1817
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1818
|
+
@resources = args[:resources] if args.key?(:resources)
|
1819
|
+
end
|
1820
|
+
end
|
1821
|
+
|
1656
1822
|
#
|
1657
1823
|
class OrdersAcknowledgeRequest
|
1658
1824
|
include Google::Apis::Core::Hashable
|
@@ -3684,6 +3850,68 @@ module Google
|
|
3684
3850
|
end
|
3685
3851
|
end
|
3686
3852
|
|
3853
|
+
#
|
3854
|
+
class RefundReason
|
3855
|
+
include Google::Apis::Core::Hashable
|
3856
|
+
|
3857
|
+
#
|
3858
|
+
# Corresponds to the JSON property `description`
|
3859
|
+
# @return [String]
|
3860
|
+
attr_accessor :description
|
3861
|
+
|
3862
|
+
#
|
3863
|
+
# Corresponds to the JSON property `reasonCode`
|
3864
|
+
# @return [String]
|
3865
|
+
attr_accessor :reason_code
|
3866
|
+
|
3867
|
+
def initialize(**args)
|
3868
|
+
update!(**args)
|
3869
|
+
end
|
3870
|
+
|
3871
|
+
# Update properties of this object
|
3872
|
+
def update!(**args)
|
3873
|
+
@description = args[:description] if args.key?(:description)
|
3874
|
+
@reason_code = args[:reason_code] if args.key?(:reason_code)
|
3875
|
+
end
|
3876
|
+
end
|
3877
|
+
|
3878
|
+
#
|
3879
|
+
class ReturnShipment
|
3880
|
+
include Google::Apis::Core::Hashable
|
3881
|
+
|
3882
|
+
#
|
3883
|
+
# Corresponds to the JSON property `creationDate`
|
3884
|
+
# @return [String]
|
3885
|
+
attr_accessor :creation_date
|
3886
|
+
|
3887
|
+
#
|
3888
|
+
# Corresponds to the JSON property `returnMethodType`
|
3889
|
+
# @return [String]
|
3890
|
+
attr_accessor :return_method_type
|
3891
|
+
|
3892
|
+
#
|
3893
|
+
# Corresponds to the JSON property `shipmentId`
|
3894
|
+
# @return [String]
|
3895
|
+
attr_accessor :shipment_id
|
3896
|
+
|
3897
|
+
#
|
3898
|
+
# Corresponds to the JSON property `shipmentTrackingInfos`
|
3899
|
+
# @return [Array<Google::Apis::ContentV2sandbox::ShipmentTrackingInfo>]
|
3900
|
+
attr_accessor :shipment_tracking_infos
|
3901
|
+
|
3902
|
+
def initialize(**args)
|
3903
|
+
update!(**args)
|
3904
|
+
end
|
3905
|
+
|
3906
|
+
# Update properties of this object
|
3907
|
+
def update!(**args)
|
3908
|
+
@creation_date = args[:creation_date] if args.key?(:creation_date)
|
3909
|
+
@return_method_type = args[:return_method_type] if args.key?(:return_method_type)
|
3910
|
+
@shipment_id = args[:shipment_id] if args.key?(:shipment_id)
|
3911
|
+
@shipment_tracking_infos = args[:shipment_tracking_infos] if args.key?(:shipment_tracking_infos)
|
3912
|
+
end
|
3913
|
+
end
|
3914
|
+
|
3687
3915
|
#
|
3688
3916
|
class ShipmentInvoice
|
3689
3917
|
include Google::Apis::Core::Hashable
|
@@ -3753,6 +3981,31 @@ module Google
|
|
3753
3981
|
end
|
3754
3982
|
end
|
3755
3983
|
|
3984
|
+
#
|
3985
|
+
class ShipmentTrackingInfo
|
3986
|
+
include Google::Apis::Core::Hashable
|
3987
|
+
|
3988
|
+
#
|
3989
|
+
# Corresponds to the JSON property `carrier`
|
3990
|
+
# @return [String]
|
3991
|
+
attr_accessor :carrier
|
3992
|
+
|
3993
|
+
#
|
3994
|
+
# Corresponds to the JSON property `trackingNumber`
|
3995
|
+
# @return [String]
|
3996
|
+
attr_accessor :tracking_number
|
3997
|
+
|
3998
|
+
def initialize(**args)
|
3999
|
+
update!(**args)
|
4000
|
+
end
|
4001
|
+
|
4002
|
+
# Update properties of this object
|
4003
|
+
def update!(**args)
|
4004
|
+
@carrier = args[:carrier] if args.key?(:carrier)
|
4005
|
+
@tracking_number = args[:tracking_number] if args.key?(:tracking_number)
|
4006
|
+
end
|
4007
|
+
end
|
4008
|
+
|
3756
4009
|
#
|
3757
4010
|
class TestOrder
|
3758
4011
|
include Google::Apis::Core::Hashable
|
@@ -3795,10 +4048,10 @@ module Google
|
|
3795
4048
|
# @return [String]
|
3796
4049
|
attr_accessor :predefined_delivery_address
|
3797
4050
|
|
3798
|
-
# The details of the merchant provided promotions applied to the
|
3799
|
-
# details about the program are here.
|
4051
|
+
# Deprecated. The details of the merchant provided promotions applied to the
|
4052
|
+
# order. More details about the program are here.
|
3800
4053
|
# Corresponds to the JSON property `promotions`
|
3801
|
-
# @return [Array<Google::Apis::ContentV2sandbox::
|
4054
|
+
# @return [Array<Google::Apis::ContentV2sandbox::OrderLegacyPromotion>]
|
3802
4055
|
attr_accessor :promotions
|
3803
4056
|
|
3804
4057
|
# The total cost of shipping for all items.
|
@@ -3840,7 +4093,7 @@ module Google
|
|
3840
4093
|
class TestOrderCustomer
|
3841
4094
|
include Google::Apis::Core::Hashable
|
3842
4095
|
|
3843
|
-
#
|
4096
|
+
# Deprecated.
|
3844
4097
|
# Corresponds to the JSON property `email`
|
3845
4098
|
# @return [String]
|
3846
4099
|
attr_accessor :email
|