google-api-client 0.17.3 → 0.17.4
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 +26 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +77 -2
- data/generated/google/apis/androidenterprise_v1/representations.rb +31 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +100 -0
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +300 -0
- data/generated/google/apis/androidmanagement_v1/representations.rb +76 -0
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +5 -2
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +4 -8
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +20 -10
- data/generated/google/apis/cloudtasks_v2beta2/representations.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +11 -6
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +782 -111
- data/generated/google/apis/compute_alpha/representations.rb +282 -2
- data/generated/google/apis/compute_alpha/service.rb +611 -6
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +342 -43
- data/generated/google/apis/compute_beta/representations.rb +109 -0
- data/generated/google/apis/compute_beta/service.rb +225 -6
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +48 -43
- data/generated/google/apis/compute_v1/service.rb +6 -6
- data/generated/google/apis/container_v1beta1/classes.rb +17 -0
- data/generated/google/apis/container_v1beta1/representations.rb +1 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +131 -9
- data/generated/google/apis/content_v2/representations.rb +38 -0
- data/generated/google/apis/content_v2/service.rb +35 -23
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/classes.rb +99 -9
- data/generated/google/apis/content_v2sandbox/representations.rb +22 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/service.rb +11 -11
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1/classes.rb +1 -1
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/fusiontables_v2/service.rb +37 -0
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +26 -177
- data/generated/google/apis/ml_v1/representations.rb +3 -0
- data/generated/google/apis/ml_v1/service.rb +3 -1
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +10 -1
- data/generated/google/apis/monitoring_v3/representations.rb +1 -0
- data/generated/google/apis/poly_v1.rb +32 -0
- data/generated/google/apis/poly_v1/classes.rb +426 -0
- data/generated/google/apis/poly_v1/representations.rb +194 -0
- data/generated/google/apis/poly_v1/service.rb +273 -0
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +243 -0
- data/generated/google/apis/pubsub_v1/representations.rb +115 -0
- data/generated/google/apis/pubsub_v1/service.rb +269 -1
- data/generated/google/apis/speech_v1.rb +4 -1
- data/generated/google/apis/speech_v1beta1.rb +4 -1
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +13 -0
- data/generated/google/apis/youtube_v3/representations.rb +2 -0
- data/lib/google/apis/core/base_service.rb +4 -1
- data/lib/google/apis/options.rb +5 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +6 -2
@@ -88,8 +88,9 @@ module Google
|
|
88
88
|
|
89
89
|
# Claims the website of a Merchant Center sub-account.
|
90
90
|
# @param [Fixnum] merchant_id
|
91
|
-
# The ID of the managing account. If this
|
92
|
-
# then this
|
91
|
+
# The ID of the managing account. If this parameter is not the same as accountId,
|
92
|
+
# then this account must be a multi-client account and accountId must be the ID
|
93
|
+
# of a sub-account of this account.
|
93
94
|
# @param [Fixnum] account_id
|
94
95
|
# The ID of the account whose website is claimed.
|
95
96
|
# @param [Boolean] overwrite
|
@@ -171,7 +172,8 @@ module Google
|
|
171
172
|
|
172
173
|
# Deletes a Merchant Center sub-account.
|
173
174
|
# @param [Fixnum] merchant_id
|
174
|
-
# The ID of the managing account. This must be a multi-client account
|
175
|
+
# The ID of the managing account. This must be a multi-client account, and
|
176
|
+
# accountId must be the ID of a sub-account of this account.
|
175
177
|
# @param [Fixnum] account_id
|
176
178
|
# The ID of the account.
|
177
179
|
# @param [Boolean] dry_run
|
@@ -213,8 +215,9 @@ module Google
|
|
213
215
|
|
214
216
|
# Retrieves a Merchant Center account.
|
215
217
|
# @param [Fixnum] merchant_id
|
216
|
-
# The ID of the managing account. If this
|
217
|
-
# then this
|
218
|
+
# The ID of the managing account. If this parameter is not the same as accountId,
|
219
|
+
# then this account must be a multi-client account and accountId must be the ID
|
220
|
+
# of a sub-account of this account.
|
218
221
|
# @param [Fixnum] account_id
|
219
222
|
# The ID of the account.
|
220
223
|
# @param [String] fields
|
@@ -334,8 +337,9 @@ module Google
|
|
334
337
|
|
335
338
|
# Updates a Merchant Center account. This method supports patch semantics.
|
336
339
|
# @param [Fixnum] merchant_id
|
337
|
-
# The ID of the managing account. If this
|
338
|
-
# then this
|
340
|
+
# The ID of the managing account. If this parameter is not the same as accountId,
|
341
|
+
# then this account must be a multi-client account and accountId must be the ID
|
342
|
+
# of a sub-account of this account.
|
339
343
|
# @param [Fixnum] account_id
|
340
344
|
# The ID of the account.
|
341
345
|
# @param [Google::Apis::ContentV2::Account] account_object
|
@@ -379,8 +383,9 @@ module Google
|
|
379
383
|
|
380
384
|
# Updates a Merchant Center account.
|
381
385
|
# @param [Fixnum] merchant_id
|
382
|
-
# The ID of the managing account. If this
|
383
|
-
# then this
|
386
|
+
# The ID of the managing account. If this parameter is not the same as accountId,
|
387
|
+
# then this account must be a multi-client account and accountId must be the ID
|
388
|
+
# of a sub-account of this account.
|
384
389
|
# @param [Fixnum] account_id
|
385
390
|
# The ID of the account.
|
386
391
|
# @param [Google::Apis::ContentV2::Account] account_object
|
@@ -459,8 +464,9 @@ module Google
|
|
459
464
|
|
460
465
|
# Retrieves the status of a Merchant Center account.
|
461
466
|
# @param [Fixnum] merchant_id
|
462
|
-
# The ID of the managing account. If this
|
463
|
-
# then this
|
467
|
+
# The ID of the managing account. If this parameter is not the same as accountId,
|
468
|
+
# then this account must be a multi-client account and accountId must be the ID
|
469
|
+
# of a sub-account of this account.
|
464
470
|
# @param [Fixnum] account_id
|
465
471
|
# The ID of the account.
|
466
472
|
# @param [String] fields
|
@@ -578,8 +584,9 @@ module Google
|
|
578
584
|
|
579
585
|
# Retrieves the tax settings of the account.
|
580
586
|
# @param [Fixnum] merchant_id
|
581
|
-
# The ID of the managing account. If this
|
582
|
-
# then this
|
587
|
+
# The ID of the managing account. If this parameter is not the same as accountId,
|
588
|
+
# then this account must be a multi-client account and accountId must be the ID
|
589
|
+
# of a sub-account of this account.
|
583
590
|
# @param [Fixnum] account_id
|
584
591
|
# The ID of the account for which to get/update account tax settings.
|
585
592
|
# @param [String] fields
|
@@ -658,8 +665,9 @@ module Google
|
|
658
665
|
|
659
666
|
# Updates the tax settings of the account. This method supports patch semantics.
|
660
667
|
# @param [Fixnum] merchant_id
|
661
|
-
# The ID of the managing account. If this
|
662
|
-
# then this
|
668
|
+
# The ID of the managing account. If this parameter is not the same as accountId,
|
669
|
+
# then this account must be a multi-client account and accountId must be the ID
|
670
|
+
# of a sub-account of this account.
|
663
671
|
# @param [Fixnum] account_id
|
664
672
|
# The ID of the account for which to get/update account tax settings.
|
665
673
|
# @param [Google::Apis::ContentV2::AccountTax] account_tax_object
|
@@ -703,8 +711,9 @@ module Google
|
|
703
711
|
|
704
712
|
# Updates the tax settings of the account.
|
705
713
|
# @param [Fixnum] merchant_id
|
706
|
-
# The ID of the managing account. If this
|
707
|
-
# then this
|
714
|
+
# The ID of the managing account. If this parameter is not the same as accountId,
|
715
|
+
# then this account must be a multi-client account and accountId must be the ID
|
716
|
+
# of a sub-account of this account.
|
708
717
|
# @param [Fixnum] account_id
|
709
718
|
# The ID of the account for which to get/update account tax settings.
|
710
719
|
# @param [Google::Apis::ContentV2::AccountTax] account_tax_object
|
@@ -2277,8 +2286,9 @@ module Google
|
|
2277
2286
|
|
2278
2287
|
# Retrieves the shipping settings of the account.
|
2279
2288
|
# @param [Fixnum] merchant_id
|
2280
|
-
# The ID of the managing account. If this
|
2281
|
-
# then this
|
2289
|
+
# The ID of the managing account. If this parameter is not the same as accountId,
|
2290
|
+
# then this account must be a multi-client account and accountId must be the ID
|
2291
|
+
# of a sub-account of this account.
|
2282
2292
|
# @param [Fixnum] account_id
|
2283
2293
|
# The ID of the account for which to get/update shipping settings.
|
2284
2294
|
# @param [String] fields
|
@@ -2395,8 +2405,9 @@ module Google
|
|
2395
2405
|
# Updates the shipping settings of the account. This method supports patch
|
2396
2406
|
# semantics.
|
2397
2407
|
# @param [Fixnum] merchant_id
|
2398
|
-
# The ID of the managing account. If this
|
2399
|
-
# then this
|
2408
|
+
# The ID of the managing account. If this parameter is not the same as accountId,
|
2409
|
+
# then this account must be a multi-client account and accountId must be the ID
|
2410
|
+
# of a sub-account of this account.
|
2400
2411
|
# @param [Fixnum] account_id
|
2401
2412
|
# The ID of the account for which to get/update shipping settings.
|
2402
2413
|
# @param [Google::Apis::ContentV2::ShippingSettings] shipping_settings_object
|
@@ -2440,8 +2451,9 @@ module Google
|
|
2440
2451
|
|
2441
2452
|
# Updates the shipping settings of the account.
|
2442
2453
|
# @param [Fixnum] merchant_id
|
2443
|
-
# The ID of the managing account. If this
|
2444
|
-
# then this
|
2454
|
+
# The ID of the managing account. If this parameter is not the same as accountId,
|
2455
|
+
# then this account must be a multi-client account and accountId must be the ID
|
2456
|
+
# of a sub-account of this account.
|
2445
2457
|
# @param [Fixnum] account_id
|
2446
2458
|
# The ID of the account for which to get/update shipping settings.
|
2447
2459
|
# @param [Google::Apis::ContentV2::ShippingSettings] shipping_settings_object
|
@@ -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 = '20171124'
|
30
30
|
|
31
31
|
# Manage your product listings and accounts for Google Shopping
|
32
32
|
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
|
@@ -984,26 +984,20 @@ module Google
|
|
984
984
|
# Acceptable values are:
|
985
985
|
# - "gsx"
|
986
986
|
# - "ups"
|
987
|
-
# - "united parcel service"
|
988
987
|
# - "usps"
|
989
|
-
# - "united states postal service"
|
990
988
|
# - "fedex"
|
991
989
|
# - "dhl"
|
992
990
|
# - "ecourier"
|
993
991
|
# - "cxt"
|
994
992
|
# - "google"
|
995
|
-
# - "on trac"
|
996
993
|
# - "ontrac"
|
997
|
-
# - "
|
998
|
-
# - "
|
999
|
-
# - "
|
994
|
+
# - "emsy"
|
995
|
+
# - "ont"
|
996
|
+
# - "deliv"
|
1000
997
|
# - "dynamex"
|
1001
998
|
# - "lasership"
|
1002
|
-
# - "smartpost"
|
1003
|
-
# - "fedex smartpost"
|
1004
999
|
# - "mpx"
|
1005
1000
|
# - "uds"
|
1006
|
-
# - "united delivery service"
|
1007
1001
|
# Corresponds to the JSON property `carrier`
|
1008
1002
|
# @return [String]
|
1009
1003
|
attr_accessor :carrier
|
@@ -1065,6 +1059,12 @@ module Google
|
|
1065
1059
|
# @return [String]
|
1066
1060
|
attr_accessor :line_item_id
|
1067
1061
|
|
1062
|
+
# The ID of the product to ship. This is the REST ID used in the products
|
1063
|
+
# service. Either lineItemId or productId is required.
|
1064
|
+
# Corresponds to the JSON property `productId`
|
1065
|
+
# @return [String]
|
1066
|
+
attr_accessor :product_id
|
1067
|
+
|
1068
1068
|
# The quantity that is shipped.
|
1069
1069
|
# Corresponds to the JSON property `quantity`
|
1070
1070
|
# @return [Fixnum]
|
@@ -1077,6 +1077,7 @@ module Google
|
|
1077
1077
|
# Update properties of this object
|
1078
1078
|
def update!(**args)
|
1079
1079
|
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
1080
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
1080
1081
|
@quantity = args[:quantity] if args.key?(:quantity)
|
1081
1082
|
end
|
1082
1083
|
end
|
@@ -1157,6 +1158,18 @@ module Google
|
|
1157
1158
|
# @return [Google::Apis::ContentV2sandbox::Price]
|
1158
1159
|
attr_accessor :amount
|
1159
1160
|
|
1161
|
+
# Amount to refund for the cancelation. Optional. If not set, Google will
|
1162
|
+
# calculate the default based on the price and tax of the items involved. The
|
1163
|
+
# amount must not be larger than the net amount left on the order.
|
1164
|
+
# Corresponds to the JSON property `amountPretax`
|
1165
|
+
# @return [Google::Apis::ContentV2sandbox::Price]
|
1166
|
+
attr_accessor :amount_pretax
|
1167
|
+
|
1168
|
+
# Tax amount that correspond to cancellation amount in amountPretax.
|
1169
|
+
# Corresponds to the JSON property `amountTax`
|
1170
|
+
# @return [Google::Apis::ContentV2sandbox::Price]
|
1171
|
+
attr_accessor :amount_tax
|
1172
|
+
|
1160
1173
|
# The ID of the line item to cancel. Either lineItemId or productId is required.
|
1161
1174
|
# Corresponds to the JSON property `lineItemId`
|
1162
1175
|
# @return [String]
|
@@ -1167,6 +1180,12 @@ module Google
|
|
1167
1180
|
# @return [String]
|
1168
1181
|
attr_accessor :operation_id
|
1169
1182
|
|
1183
|
+
# The ID of the product to cancel. This is the REST ID used in the products
|
1184
|
+
# service. Either lineItemId or productId is required.
|
1185
|
+
# Corresponds to the JSON property `productId`
|
1186
|
+
# @return [String]
|
1187
|
+
attr_accessor :product_id
|
1188
|
+
|
1170
1189
|
# The quantity to cancel.
|
1171
1190
|
# Corresponds to the JSON property `quantity`
|
1172
1191
|
# @return [Fixnum]
|
@@ -1189,8 +1208,11 @@ module Google
|
|
1189
1208
|
# Update properties of this object
|
1190
1209
|
def update!(**args)
|
1191
1210
|
@amount = args[:amount] if args.key?(:amount)
|
1211
|
+
@amount_pretax = args[:amount_pretax] if args.key?(:amount_pretax)
|
1212
|
+
@amount_tax = args[:amount_tax] if args.key?(:amount_tax)
|
1192
1213
|
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
1193
1214
|
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
1215
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
1194
1216
|
@quantity = args[:quantity] if args.key?(:quantity)
|
1195
1217
|
@reason = args[:reason] if args.key?(:reason)
|
1196
1218
|
@reason_text = args[:reason_text] if args.key?(:reason_text)
|
@@ -1475,11 +1497,29 @@ module Google
|
|
1475
1497
|
# @return [Google::Apis::ContentV2sandbox::Price]
|
1476
1498
|
attr_accessor :amount
|
1477
1499
|
|
1500
|
+
# Amount to refund for the cancelation. Optional. If not set, Google will
|
1501
|
+
# calculate the default based on the price and tax of the items involved. The
|
1502
|
+
# amount must not be larger than the net amount left on the order.
|
1503
|
+
# Corresponds to the JSON property `amountPretax`
|
1504
|
+
# @return [Google::Apis::ContentV2sandbox::Price]
|
1505
|
+
attr_accessor :amount_pretax
|
1506
|
+
|
1507
|
+
# Tax amount that correspond to cancellation amount in amountPretax.
|
1508
|
+
# Corresponds to the JSON property `amountTax`
|
1509
|
+
# @return [Google::Apis::ContentV2sandbox::Price]
|
1510
|
+
attr_accessor :amount_tax
|
1511
|
+
|
1478
1512
|
# The ID of the line item to cancel. Either lineItemId or productId is required.
|
1479
1513
|
# Corresponds to the JSON property `lineItemId`
|
1480
1514
|
# @return [String]
|
1481
1515
|
attr_accessor :line_item_id
|
1482
1516
|
|
1517
|
+
# The ID of the product to cancel. This is the REST ID used in the products
|
1518
|
+
# service. Either lineItemId or productId is required.
|
1519
|
+
# Corresponds to the JSON property `productId`
|
1520
|
+
# @return [String]
|
1521
|
+
attr_accessor :product_id
|
1522
|
+
|
1483
1523
|
# The quantity to cancel.
|
1484
1524
|
# Corresponds to the JSON property `quantity`
|
1485
1525
|
# @return [Fixnum]
|
@@ -1502,7 +1542,10 @@ module Google
|
|
1502
1542
|
# Update properties of this object
|
1503
1543
|
def update!(**args)
|
1504
1544
|
@amount = args[:amount] if args.key?(:amount)
|
1545
|
+
@amount_pretax = args[:amount_pretax] if args.key?(:amount_pretax)
|
1546
|
+
@amount_tax = args[:amount_tax] if args.key?(:amount_tax)
|
1505
1547
|
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
1548
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
1506
1549
|
@quantity = args[:quantity] if args.key?(:quantity)
|
1507
1550
|
@reason = args[:reason] if args.key?(:reason)
|
1508
1551
|
@reason_text = args[:reason_text] if args.key?(:reason_text)
|
@@ -1518,6 +1561,17 @@ module Google
|
|
1518
1561
|
# @return [Google::Apis::ContentV2sandbox::Price]
|
1519
1562
|
attr_accessor :amount
|
1520
1563
|
|
1564
|
+
# The amount that is refunded. Either amount or amountPretax and amountTax
|
1565
|
+
# should be filled.
|
1566
|
+
# Corresponds to the JSON property `amountPretax`
|
1567
|
+
# @return [Google::Apis::ContentV2sandbox::Price]
|
1568
|
+
attr_accessor :amount_pretax
|
1569
|
+
|
1570
|
+
# Tax amount that correspond to refund amount in amountPretax.
|
1571
|
+
# Corresponds to the JSON property `amountTax`
|
1572
|
+
# @return [Google::Apis::ContentV2sandbox::Price]
|
1573
|
+
attr_accessor :amount_tax
|
1574
|
+
|
1521
1575
|
# The reason for the refund.
|
1522
1576
|
# Corresponds to the JSON property `reason`
|
1523
1577
|
# @return [String]
|
@@ -1535,6 +1589,8 @@ module Google
|
|
1535
1589
|
# Update properties of this object
|
1536
1590
|
def update!(**args)
|
1537
1591
|
@amount = args[:amount] if args.key?(:amount)
|
1592
|
+
@amount_pretax = args[:amount_pretax] if args.key?(:amount_pretax)
|
1593
|
+
@amount_tax = args[:amount_tax] if args.key?(:amount_tax)
|
1538
1594
|
@reason = args[:reason] if args.key?(:reason)
|
1539
1595
|
@reason_text = args[:reason_text] if args.key?(:reason_text)
|
1540
1596
|
end
|
@@ -1549,6 +1605,12 @@ module Google
|
|
1549
1605
|
# @return [String]
|
1550
1606
|
attr_accessor :line_item_id
|
1551
1607
|
|
1608
|
+
# The ID of the product to return. This is the REST ID used in the products
|
1609
|
+
# service. Either lineItemId or productId is required.
|
1610
|
+
# Corresponds to the JSON property `productId`
|
1611
|
+
# @return [String]
|
1612
|
+
attr_accessor :product_id
|
1613
|
+
|
1552
1614
|
# The quantity to return.
|
1553
1615
|
# Corresponds to the JSON property `quantity`
|
1554
1616
|
# @return [Fixnum]
|
@@ -1571,6 +1633,7 @@ module Google
|
|
1571
1633
|
# Update properties of this object
|
1572
1634
|
def update!(**args)
|
1573
1635
|
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
1636
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
1574
1637
|
@quantity = args[:quantity] if args.key?(:quantity)
|
1575
1638
|
@reason = args[:reason] if args.key?(:reason)
|
1576
1639
|
@reason_text = args[:reason_text] if args.key?(:reason_text)
|
@@ -1858,6 +1921,17 @@ module Google
|
|
1858
1921
|
# @return [Google::Apis::ContentV2sandbox::Price]
|
1859
1922
|
attr_accessor :amount
|
1860
1923
|
|
1924
|
+
# The amount that is refunded. Either amount or amountPretax and amountTax
|
1925
|
+
# should be filled.
|
1926
|
+
# Corresponds to the JSON property `amountPretax`
|
1927
|
+
# @return [Google::Apis::ContentV2sandbox::Price]
|
1928
|
+
attr_accessor :amount_pretax
|
1929
|
+
|
1930
|
+
# Tax amount that correspond to refund amount in amountPretax.
|
1931
|
+
# Corresponds to the JSON property `amountTax`
|
1932
|
+
# @return [Google::Apis::ContentV2sandbox::Price]
|
1933
|
+
attr_accessor :amount_tax
|
1934
|
+
|
1861
1935
|
# The ID of the operation. Unique across all operations for a given order.
|
1862
1936
|
# Corresponds to the JSON property `operationId`
|
1863
1937
|
# @return [String]
|
@@ -1880,6 +1954,8 @@ module Google
|
|
1880
1954
|
# Update properties of this object
|
1881
1955
|
def update!(**args)
|
1882
1956
|
@amount = args[:amount] if args.key?(:amount)
|
1957
|
+
@amount_pretax = args[:amount_pretax] if args.key?(:amount_pretax)
|
1958
|
+
@amount_tax = args[:amount_tax] if args.key?(:amount_tax)
|
1883
1959
|
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
1884
1960
|
@reason = args[:reason] if args.key?(:reason)
|
1885
1961
|
@reason_text = args[:reason_text] if args.key?(:reason_text)
|
@@ -1926,6 +2002,12 @@ module Google
|
|
1926
2002
|
# @return [String]
|
1927
2003
|
attr_accessor :operation_id
|
1928
2004
|
|
2005
|
+
# The ID of the product to return. This is the REST ID used in the products
|
2006
|
+
# service. Either lineItemId or productId is required.
|
2007
|
+
# Corresponds to the JSON property `productId`
|
2008
|
+
# @return [String]
|
2009
|
+
attr_accessor :product_id
|
2010
|
+
|
1929
2011
|
# The quantity to return.
|
1930
2012
|
# Corresponds to the JSON property `quantity`
|
1931
2013
|
# @return [Fixnum]
|
@@ -1949,6 +2031,7 @@ module Google
|
|
1949
2031
|
def update!(**args)
|
1950
2032
|
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
1951
2033
|
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
2034
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
1952
2035
|
@quantity = args[:quantity] if args.key?(:quantity)
|
1953
2036
|
@reason = args[:reason] if args.key?(:reason)
|
1954
2037
|
@reason_text = args[:reason_text] if args.key?(:reason_text)
|
@@ -2225,6 +2308,12 @@ module Google
|
|
2225
2308
|
# @return [Array<Google::Apis::ContentV2sandbox::TestOrderLineItem>]
|
2226
2309
|
attr_accessor :line_items
|
2227
2310
|
|
2311
|
+
# Determines if test order must be pulled by merchant or pushed to merchant via
|
2312
|
+
# push integration.
|
2313
|
+
# Corresponds to the JSON property `notificationMode`
|
2314
|
+
# @return [String]
|
2315
|
+
attr_accessor :notification_mode
|
2316
|
+
|
2228
2317
|
# The details of the payment method.
|
2229
2318
|
# Corresponds to the JSON property `paymentMethod`
|
2230
2319
|
# @return [Google::Apis::ContentV2sandbox::TestOrderPaymentMethod]
|
@@ -2265,6 +2354,7 @@ module Google
|
|
2265
2354
|
@customer = args[:customer] if args.key?(:customer)
|
2266
2355
|
@kind = args[:kind] if args.key?(:kind)
|
2267
2356
|
@line_items = args[:line_items] if args.key?(:line_items)
|
2357
|
+
@notification_mode = args[:notification_mode] if args.key?(:notification_mode)
|
2268
2358
|
@payment_method = args[:payment_method] if args.key?(:payment_method)
|
2269
2359
|
@predefined_delivery_address = args[:predefined_delivery_address] if args.key?(:predefined_delivery_address)
|
2270
2360
|
@promotions = args[:promotions] if args.key?(:promotions)
|
@@ -642,6 +642,7 @@ module Google
|
|
642
642
|
# @private
|
643
643
|
class Representation < Google::Apis::Core::JsonRepresentation
|
644
644
|
property :line_item_id, as: 'lineItemId'
|
645
|
+
property :product_id, as: 'productId'
|
645
646
|
property :quantity, as: 'quantity'
|
646
647
|
end
|
647
648
|
end
|
@@ -673,8 +674,13 @@ module Google
|
|
673
674
|
class Representation < Google::Apis::Core::JsonRepresentation
|
674
675
|
property :amount, as: 'amount', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
|
675
676
|
|
677
|
+
property :amount_pretax, as: 'amountPretax', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
|
678
|
+
|
679
|
+
property :amount_tax, as: 'amountTax', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
|
680
|
+
|
676
681
|
property :line_item_id, as: 'lineItemId'
|
677
682
|
property :operation_id, as: 'operationId'
|
683
|
+
property :product_id, as: 'productId'
|
678
684
|
property :quantity, as: 'quantity'
|
679
685
|
property :reason, as: 'reason'
|
680
686
|
property :reason_text, as: 'reasonText'
|
@@ -768,7 +774,12 @@ module Google
|
|
768
774
|
class Representation < Google::Apis::Core::JsonRepresentation
|
769
775
|
property :amount, as: 'amount', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
|
770
776
|
|
777
|
+
property :amount_pretax, as: 'amountPretax', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
|
778
|
+
|
779
|
+
property :amount_tax, as: 'amountTax', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
|
780
|
+
|
771
781
|
property :line_item_id, as: 'lineItemId'
|
782
|
+
property :product_id, as: 'productId'
|
772
783
|
property :quantity, as: 'quantity'
|
773
784
|
property :reason, as: 'reason'
|
774
785
|
property :reason_text, as: 'reasonText'
|
@@ -780,6 +791,10 @@ module Google
|
|
780
791
|
class Representation < Google::Apis::Core::JsonRepresentation
|
781
792
|
property :amount, as: 'amount', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
|
782
793
|
|
794
|
+
property :amount_pretax, as: 'amountPretax', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
|
795
|
+
|
796
|
+
property :amount_tax, as: 'amountTax', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
|
797
|
+
|
783
798
|
property :reason, as: 'reason'
|
784
799
|
property :reason_text, as: 'reasonText'
|
785
800
|
end
|
@@ -789,6 +804,7 @@ module Google
|
|
789
804
|
# @private
|
790
805
|
class Representation < Google::Apis::Core::JsonRepresentation
|
791
806
|
property :line_item_id, as: 'lineItemId'
|
807
|
+
property :product_id, as: 'productId'
|
792
808
|
property :quantity, as: 'quantity'
|
793
809
|
property :reason, as: 'reason'
|
794
810
|
property :reason_text, as: 'reasonText'
|
@@ -882,6 +898,10 @@ module Google
|
|
882
898
|
class Representation < Google::Apis::Core::JsonRepresentation
|
883
899
|
property :amount, as: 'amount', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
|
884
900
|
|
901
|
+
property :amount_pretax, as: 'amountPretax', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
|
902
|
+
|
903
|
+
property :amount_tax, as: 'amountTax', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
|
904
|
+
|
885
905
|
property :operation_id, as: 'operationId'
|
886
906
|
property :reason, as: 'reason'
|
887
907
|
property :reason_text, as: 'reasonText'
|
@@ -901,6 +921,7 @@ module Google
|
|
901
921
|
class Representation < Google::Apis::Core::JsonRepresentation
|
902
922
|
property :line_item_id, as: 'lineItemId'
|
903
923
|
property :operation_id, as: 'operationId'
|
924
|
+
property :product_id, as: 'productId'
|
904
925
|
property :quantity, as: 'quantity'
|
905
926
|
property :reason, as: 'reason'
|
906
927
|
property :reason_text, as: 'reasonText'
|
@@ -988,6 +1009,7 @@ module Google
|
|
988
1009
|
property :kind, as: 'kind'
|
989
1010
|
collection :line_items, as: 'lineItems', class: Google::Apis::ContentV2sandbox::TestOrderLineItem, decorator: Google::Apis::ContentV2sandbox::TestOrderLineItem::Representation
|
990
1011
|
|
1012
|
+
property :notification_mode, as: 'notificationMode'
|
991
1013
|
property :payment_method, as: 'paymentMethod', class: Google::Apis::ContentV2sandbox::TestOrderPaymentMethod, decorator: Google::Apis::ContentV2sandbox::TestOrderPaymentMethod::Representation
|
992
1014
|
|
993
1015
|
property :predefined_delivery_address, as: 'predefinedDeliveryAddress'
|