google-api-client 0.27.2 → 0.27.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 +45 -0
- data/generated/google/apis/bigtableadmin_v2.rb +1 -1
- data/generated/google/apis/bigtableadmin_v2/classes.rb +45 -0
- data/generated/google/apis/bigtableadmin_v2/representations.rb +17 -0
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudkms_v1.rb +4 -1
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/cloudtrace_v2/classes.rb +2 -2
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +1198 -13
- data/generated/google/apis/compute_alpha/representations.rb +406 -0
- data/generated/google/apis/compute_alpha/service.rb +200 -4
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +23 -9
- data/generated/google/apis/compute_beta/representations.rb +2 -0
- data/generated/google/apis/compute_beta/service.rb +41 -4
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +65 -6
- data/generated/google/apis/compute_v1/representations.rb +19 -0
- data/generated/google/apis/compute_v1/service.rb +4 -4
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +145 -0
- data/generated/google/apis/container_v1/representations.rb +54 -0
- data/generated/google/apis/container_v1/service.rb +69 -0
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +177 -0
- data/generated/google/apis/container_v1beta1/representations.rb +70 -0
- data/generated/google/apis/container_v1beta1/service.rb +69 -0
- data/generated/google/apis/containeranalysis_v1alpha1.rb +35 -0
- data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +2780 -0
- data/generated/google/apis/containeranalysis_v1alpha1/representations.rb +1106 -0
- data/generated/google/apis/containeranalysis_v1alpha1/service.rb +1329 -0
- data/generated/google/apis/containeranalysis_v1beta1.rb +35 -0
- data/generated/google/apis/containeranalysis_v1beta1/classes.rb +2702 -0
- data/generated/google/apis/containeranalysis_v1beta1/representations.rb +1152 -0
- data/generated/google/apis/containeranalysis_v1beta1/service.rb +932 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +84 -14
- data/generated/google/apis/content_v2/representations.rb +24 -0
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +70 -11
- data/generated/google/apis/content_v2_1/representations.rb +25 -3
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +20 -20
- data/generated/google/apis/dialogflow_v2/service.rb +6 -6
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +20 -20
- data/generated/google/apis/dialogflow_v2beta1/service.rb +6 -6
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +19 -10
- data/generated/google/apis/dns_v1beta2.rb +1 -1
- data/generated/google/apis/dns_v1beta2/classes.rb +31 -22
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/dns_v2beta1/classes.rb +19 -10
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +9 -2
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +1 -0
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +7 -0
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +1 -0
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1/classes.rb +18 -0
- data/generated/google/apis/firestore_v1/representations.rb +6 -0
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1/classes.rb +18 -0
- data/generated/google/apis/firestore_v1beta1/representations.rb +6 -0
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +2 -1
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +169 -0
- data/generated/google/apis/jobs_v3p1beta1/representations.rb +33 -0
- data/generated/google/apis/jobs_v3p1beta1/service.rb +32 -0
- data/generated/google/apis/libraryagent_v1.rb +34 -0
- data/generated/google/apis/libraryagent_v1/classes.rb +151 -0
- data/generated/google/apis/libraryagent_v1/representations.rb +86 -0
- data/generated/google/apis/libraryagent_v1/service.rb +265 -0
- data/generated/google/apis/oslogin_v1.rb +2 -2
- data/generated/google/apis/oslogin_v1/service.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha.rb +2 -2
- data/generated/google/apis/oslogin_v1alpha/service.rb +1 -1
- data/generated/google/apis/oslogin_v1beta.rb +2 -2
- data/generated/google/apis/oslogin_v1beta/service.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1.rb +34 -0
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +3858 -0
- data/generated/google/apis/remotebuildexecution_v1/representations.rb +1196 -0
- data/generated/google/apis/remotebuildexecution_v1/service.rb +374 -0
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +34 -0
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +3709 -0
- data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +1113 -0
- data/generated/google/apis/remotebuildexecution_v1alpha/service.rb +400 -0
- data/generated/google/apis/remotebuildexecution_v2.rb +34 -0
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +4460 -0
- data/generated/google/apis/remotebuildexecution_v2/representations.rb +1431 -0
- data/generated/google/apis/remotebuildexecution_v2/service.rb +542 -0
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +12 -0
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +2 -0
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +12 -0
- data/generated/google/apis/servicenetworking_v1beta/representations.rb +2 -0
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +12 -0
- data/generated/google/apis/serviceusage_v1/representations.rb +2 -0
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +12 -0
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +2 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4 -4
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +5 -5
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +9 -0
- data/generated/google/apis/testing_v1/representations.rb +1 -0
- data/generated/google/apis/websecurityscanner_v1alpha.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +7 -0
- data/generated/google/apis/websecurityscanner_v1alpha/representations.rb +2 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +26 -2
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://developers.google.com/shopping-content
|
27
27
|
module ContentV2
|
28
28
|
VERSION = 'V2'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20190107'
|
30
30
|
|
31
31
|
# Manage your product listings and accounts for Google Shopping
|
32
32
|
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
|
@@ -781,6 +781,24 @@ module Google
|
|
781
781
|
# @return [String]
|
782
782
|
attr_accessor :email_address
|
783
783
|
|
784
|
+
# Whether user is an order manager.
|
785
|
+
# Corresponds to the JSON property `orderManager`
|
786
|
+
# @return [Boolean]
|
787
|
+
attr_accessor :order_manager
|
788
|
+
alias_method :order_manager?, :order_manager
|
789
|
+
|
790
|
+
# Whether user can access payment statements.
|
791
|
+
# Corresponds to the JSON property `paymentsAnalyst`
|
792
|
+
# @return [Boolean]
|
793
|
+
attr_accessor :payments_analyst
|
794
|
+
alias_method :payments_analyst?, :payments_analyst
|
795
|
+
|
796
|
+
# Whether user can manage payment settings.
|
797
|
+
# Corresponds to the JSON property `paymentsManager`
|
798
|
+
# @return [Boolean]
|
799
|
+
attr_accessor :payments_manager
|
800
|
+
alias_method :payments_manager?, :payments_manager
|
801
|
+
|
784
802
|
def initialize(**args)
|
785
803
|
update!(**args)
|
786
804
|
end
|
@@ -789,6 +807,9 @@ module Google
|
|
789
807
|
def update!(**args)
|
790
808
|
@admin = args[:admin] if args.key?(:admin)
|
791
809
|
@email_address = args[:email_address] if args.key?(:email_address)
|
810
|
+
@order_manager = args[:order_manager] if args.key?(:order_manager)
|
811
|
+
@payments_analyst = args[:payments_analyst] if args.key?(:payments_analyst)
|
812
|
+
@payments_manager = args[:payments_manager] if args.key?(:payments_manager)
|
792
813
|
end
|
793
814
|
end
|
794
815
|
|
@@ -4090,6 +4111,11 @@ module Google
|
|
4090
4111
|
# @return [String]
|
4091
4112
|
attr_accessor :status
|
4092
4113
|
|
4114
|
+
# The party responsible for collecting and remitting taxes.
|
4115
|
+
# Corresponds to the JSON property `taxCollector`
|
4116
|
+
# @return [String]
|
4117
|
+
attr_accessor :tax_collector
|
4118
|
+
|
4093
4119
|
def initialize(**args)
|
4094
4120
|
update!(**args)
|
4095
4121
|
end
|
@@ -4116,6 +4142,7 @@ module Google
|
|
4116
4142
|
@shipping_cost_tax = args[:shipping_cost_tax] if args.key?(:shipping_cost_tax)
|
4117
4143
|
@shipping_option = args[:shipping_option] if args.key?(:shipping_option)
|
4118
4144
|
@status = args[:status] if args.key?(:status)
|
4145
|
+
@tax_collector = args[:tax_collector] if args.key?(:tax_collector)
|
4119
4146
|
end
|
4120
4147
|
end
|
4121
4148
|
|
@@ -5021,6 +5048,11 @@ module Google
|
|
5021
5048
|
# @return [Google::Apis::ContentV2::Amount]
|
5022
5049
|
attr_accessor :product_amount
|
5023
5050
|
|
5051
|
+
# Total amount with remitted tax for the items.
|
5052
|
+
# Corresponds to the JSON property `productAmountWithRemittedTax`
|
5053
|
+
# @return [Google::Apis::ContentV2::ProductAmount]
|
5054
|
+
attr_accessor :product_amount_with_remitted_tax
|
5055
|
+
|
5024
5056
|
# The date of the transaction, in ISO 8601 format.
|
5025
5057
|
# Corresponds to the JSON property `transactionDate`
|
5026
5058
|
# @return [String]
|
@@ -5040,6 +5072,7 @@ module Google
|
|
5040
5072
|
@merchant_order_id = args[:merchant_order_id] if args.key?(:merchant_order_id)
|
5041
5073
|
@order_id = args[:order_id] if args.key?(:order_id)
|
5042
5074
|
@product_amount = args[:product_amount] if args.key?(:product_amount)
|
5075
|
+
@product_amount_with_remitted_tax = args[:product_amount_with_remitted_tax] if args.key?(:product_amount_with_remitted_tax)
|
5043
5076
|
@transaction_date = args[:transaction_date] if args.key?(:transaction_date)
|
5044
5077
|
end
|
5045
5078
|
end
|
@@ -5775,7 +5808,9 @@ module Google
|
|
5775
5808
|
# @return [Google::Apis::ContentV2::Price]
|
5776
5809
|
attr_accessor :amount_pretax
|
5777
5810
|
|
5778
|
-
# Tax amount that
|
5811
|
+
# Tax amount that corresponds to cancellation amount in amountPretax. Optional,
|
5812
|
+
# but if filled, then amountPretax must be set. Calculated automatically if not
|
5813
|
+
# provided.
|
5779
5814
|
# Corresponds to the JSON property `amountTax`
|
5780
5815
|
# @return [Google::Apis::ContentV2::Price]
|
5781
5816
|
attr_accessor :amount_tax
|
@@ -6237,7 +6272,9 @@ module Google
|
|
6237
6272
|
# @return [Google::Apis::ContentV2::Price]
|
6238
6273
|
attr_accessor :amount_pretax
|
6239
6274
|
|
6240
|
-
# Tax amount that
|
6275
|
+
# Tax amount that corresponds to cancellation amount in amountPretax. Optional,
|
6276
|
+
# but if filled, then amountPretax must be set. Calculated automatically if not
|
6277
|
+
# provided.
|
6241
6278
|
# Corresponds to the JSON property `amountTax`
|
6242
6279
|
# @return [Google::Apis::ContentV2::Price]
|
6243
6280
|
attr_accessor :amount_tax
|
@@ -6375,13 +6412,13 @@ module Google
|
|
6375
6412
|
# @return [Google::Apis::ContentV2::Price]
|
6376
6413
|
attr_accessor :amount
|
6377
6414
|
|
6378
|
-
# The amount that is refunded. Either amount or amountPretax
|
6379
|
-
# should be filled.
|
6415
|
+
# The amount that is refunded. Either amount or amountPretax should be filled.
|
6380
6416
|
# Corresponds to the JSON property `amountPretax`
|
6381
6417
|
# @return [Google::Apis::ContentV2::Price]
|
6382
6418
|
attr_accessor :amount_pretax
|
6383
6419
|
|
6384
|
-
# Tax amount that
|
6420
|
+
# Tax amount that corresponds to refund amount in amountPretax. Optional, but if
|
6421
|
+
# filled, amountPretax must be set. Calculated automatically if not provided.
|
6385
6422
|
# Corresponds to the JSON property `amountTax`
|
6386
6423
|
# @return [Google::Apis::ContentV2::Price]
|
6387
6424
|
attr_accessor :amount_tax
|
@@ -6503,13 +6540,14 @@ module Google
|
|
6503
6540
|
include Google::Apis::Core::Hashable
|
6504
6541
|
|
6505
6542
|
# The amount that is refunded. If omitted, refundless return is assumed (same as
|
6506
|
-
# calling returnLineItem method).
|
6507
|
-
# and amountTax must be set.
|
6543
|
+
# calling returnLineItem method).
|
6508
6544
|
# Corresponds to the JSON property `amountPretax`
|
6509
6545
|
# @return [Google::Apis::ContentV2::Price]
|
6510
6546
|
attr_accessor :amount_pretax
|
6511
6547
|
|
6512
|
-
# Tax amount that
|
6548
|
+
# Tax amount that corresponds to refund amount in amountPretax. Optional, but if
|
6549
|
+
# filled, then amountPretax must be set. Calculated automatically if not
|
6550
|
+
# provided.
|
6513
6551
|
# Corresponds to the JSON property `amountTax`
|
6514
6552
|
# @return [Google::Apis::ContentV2::Price]
|
6515
6553
|
attr_accessor :amount_tax
|
@@ -7013,13 +7051,13 @@ module Google
|
|
7013
7051
|
# @return [Google::Apis::ContentV2::Price]
|
7014
7052
|
attr_accessor :amount
|
7015
7053
|
|
7016
|
-
# The amount that is refunded. Either amount or amountPretax
|
7017
|
-
# should be filled.
|
7054
|
+
# The amount that is refunded. Either amount or amountPretax should be filled.
|
7018
7055
|
# Corresponds to the JSON property `amountPretax`
|
7019
7056
|
# @return [Google::Apis::ContentV2::Price]
|
7020
7057
|
attr_accessor :amount_pretax
|
7021
7058
|
|
7022
|
-
# Tax amount that
|
7059
|
+
# Tax amount that corresponds to refund amount in amountPretax. Optional, but if
|
7060
|
+
# filled, amountPretax must be set. Calculated automatically if not provided.
|
7023
7061
|
# Corresponds to the JSON property `amountTax`
|
7024
7062
|
# @return [Google::Apis::ContentV2::Price]
|
7025
7063
|
attr_accessor :amount_tax
|
@@ -7237,13 +7275,14 @@ module Google
|
|
7237
7275
|
include Google::Apis::Core::Hashable
|
7238
7276
|
|
7239
7277
|
# The amount that is refunded. If omitted, refundless return is assumed (same as
|
7240
|
-
# calling returnLineItem method).
|
7241
|
-
# and amountTax must be set.
|
7278
|
+
# calling returnLineItem method).
|
7242
7279
|
# Corresponds to the JSON property `amountPretax`
|
7243
7280
|
# @return [Google::Apis::ContentV2::Price]
|
7244
7281
|
attr_accessor :amount_pretax
|
7245
7282
|
|
7246
|
-
# Tax amount that
|
7283
|
+
# Tax amount that corresponds to refund amount in amountPretax. Optional, but if
|
7284
|
+
# filled, then amountPretax must be set. Calculated automatically if not
|
7285
|
+
# provided.
|
7247
7286
|
# Corresponds to the JSON property `amountTax`
|
7248
7287
|
# @return [Google::Apis::ContentV2::Price]
|
7249
7288
|
attr_accessor :amount_tax
|
@@ -8961,6 +9000,37 @@ module Google
|
|
8961
9000
|
end
|
8962
9001
|
end
|
8963
9002
|
|
9003
|
+
#
|
9004
|
+
class ProductAmount
|
9005
|
+
include Google::Apis::Core::Hashable
|
9006
|
+
|
9007
|
+
# The pre-tax or post-tax price depending on the location of the order.
|
9008
|
+
# Corresponds to the JSON property `priceAmount`
|
9009
|
+
# @return [Google::Apis::ContentV2::Price]
|
9010
|
+
attr_accessor :price_amount
|
9011
|
+
|
9012
|
+
# Remitted tax value.
|
9013
|
+
# Corresponds to the JSON property `remittedTaxAmount`
|
9014
|
+
# @return [Google::Apis::ContentV2::Price]
|
9015
|
+
attr_accessor :remitted_tax_amount
|
9016
|
+
|
9017
|
+
# Tax value.
|
9018
|
+
# Corresponds to the JSON property `taxAmount`
|
9019
|
+
# @return [Google::Apis::ContentV2::Price]
|
9020
|
+
attr_accessor :tax_amount
|
9021
|
+
|
9022
|
+
def initialize(**args)
|
9023
|
+
update!(**args)
|
9024
|
+
end
|
9025
|
+
|
9026
|
+
# Update properties of this object
|
9027
|
+
def update!(**args)
|
9028
|
+
@price_amount = args[:price_amount] if args.key?(:price_amount)
|
9029
|
+
@remitted_tax_amount = args[:remitted_tax_amount] if args.key?(:remitted_tax_amount)
|
9030
|
+
@tax_amount = args[:tax_amount] if args.key?(:tax_amount)
|
9031
|
+
end
|
9032
|
+
end
|
9033
|
+
|
8964
9034
|
#
|
8965
9035
|
class ProductAspect
|
8966
9036
|
include Google::Apis::Core::Hashable
|
@@ -1306,6 +1306,12 @@ module Google
|
|
1306
1306
|
include Google::Apis::Core::JsonObjectSupport
|
1307
1307
|
end
|
1308
1308
|
|
1309
|
+
class ProductAmount
|
1310
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1311
|
+
|
1312
|
+
include Google::Apis::Core::JsonObjectSupport
|
1313
|
+
end
|
1314
|
+
|
1309
1315
|
class ProductAspect
|
1310
1316
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1311
1317
|
|
@@ -1810,6 +1816,9 @@ module Google
|
|
1810
1816
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1811
1817
|
property :admin, as: 'admin'
|
1812
1818
|
property :email_address, as: 'emailAddress'
|
1819
|
+
property :order_manager, as: 'orderManager'
|
1820
|
+
property :payments_analyst, as: 'paymentsAnalyst'
|
1821
|
+
property :payments_manager, as: 'paymentsManager'
|
1813
1822
|
end
|
1814
1823
|
end
|
1815
1824
|
|
@@ -2765,6 +2774,7 @@ module Google
|
|
2765
2774
|
|
2766
2775
|
property :shipping_option, as: 'shippingOption'
|
2767
2776
|
property :status, as: 'status'
|
2777
|
+
property :tax_collector, as: 'taxCollector'
|
2768
2778
|
end
|
2769
2779
|
end
|
2770
2780
|
|
@@ -3007,6 +3017,8 @@ module Google
|
|
3007
3017
|
property :order_id, as: 'orderId'
|
3008
3018
|
property :product_amount, as: 'productAmount', class: Google::Apis::ContentV2::Amount, decorator: Google::Apis::ContentV2::Amount::Representation
|
3009
3019
|
|
3020
|
+
property :product_amount_with_remitted_tax, as: 'productAmountWithRemittedTax', class: Google::Apis::ContentV2::ProductAmount, decorator: Google::Apis::ContentV2::ProductAmount::Representation
|
3021
|
+
|
3010
3022
|
property :transaction_date, as: 'transactionDate'
|
3011
3023
|
end
|
3012
3024
|
end
|
@@ -4078,6 +4090,18 @@ module Google
|
|
4078
4090
|
end
|
4079
4091
|
end
|
4080
4092
|
|
4093
|
+
class ProductAmount
|
4094
|
+
# @private
|
4095
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
4096
|
+
property :price_amount, as: 'priceAmount', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
4097
|
+
|
4098
|
+
property :remitted_tax_amount, as: 'remittedTaxAmount', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
4099
|
+
|
4100
|
+
property :tax_amount, as: 'taxAmount', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
4101
|
+
|
4102
|
+
end
|
4103
|
+
end
|
4104
|
+
|
4081
4105
|
class ProductAspect
|
4082
4106
|
# @private
|
4083
4107
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -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 = '
|
29
|
+
REVISION = '20190107'
|
30
30
|
|
31
31
|
# Manage your product listings and accounts for Google Shopping
|
32
32
|
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
|
@@ -646,6 +646,24 @@ module Google
|
|
646
646
|
# @return [String]
|
647
647
|
attr_accessor :email_address
|
648
648
|
|
649
|
+
# Whether user is an order manager.
|
650
|
+
# Corresponds to the JSON property `orderManager`
|
651
|
+
# @return [Boolean]
|
652
|
+
attr_accessor :order_manager
|
653
|
+
alias_method :order_manager?, :order_manager
|
654
|
+
|
655
|
+
# Whether user can access payment statements.
|
656
|
+
# Corresponds to the JSON property `paymentsAnalyst`
|
657
|
+
# @return [Boolean]
|
658
|
+
attr_accessor :payments_analyst
|
659
|
+
alias_method :payments_analyst?, :payments_analyst
|
660
|
+
|
661
|
+
# Whether user can manage payment settings.
|
662
|
+
# Corresponds to the JSON property `paymentsManager`
|
663
|
+
# @return [Boolean]
|
664
|
+
attr_accessor :payments_manager
|
665
|
+
alias_method :payments_manager?, :payments_manager
|
666
|
+
|
649
667
|
def initialize(**args)
|
650
668
|
update!(**args)
|
651
669
|
end
|
@@ -654,6 +672,9 @@ module Google
|
|
654
672
|
def update!(**args)
|
655
673
|
@admin = args[:admin] if args.key?(:admin)
|
656
674
|
@email_address = args[:email_address] if args.key?(:email_address)
|
675
|
+
@order_manager = args[:order_manager] if args.key?(:order_manager)
|
676
|
+
@payments_analyst = args[:payments_analyst] if args.key?(:payments_analyst)
|
677
|
+
@payments_manager = args[:payments_manager] if args.key?(:payments_manager)
|
657
678
|
end
|
658
679
|
end
|
659
680
|
|
@@ -1323,15 +1344,16 @@ module Google
|
|
1323
1344
|
class Amount
|
1324
1345
|
include Google::Apis::Core::Hashable
|
1325
1346
|
|
1326
|
-
# [required]
|
1327
|
-
#
|
1347
|
+
# [required] The pre-tax or post-tax price depending on the location of the
|
1348
|
+
# order.
|
1349
|
+
# Corresponds to the JSON property `priceAmount`
|
1328
1350
|
# @return [Google::Apis::ContentV2_1::Price]
|
1329
|
-
attr_accessor :
|
1351
|
+
attr_accessor :price_amount
|
1330
1352
|
|
1331
1353
|
# [required] Tax value.
|
1332
|
-
# Corresponds to the JSON property `
|
1354
|
+
# Corresponds to the JSON property `taxAmount`
|
1333
1355
|
# @return [Google::Apis::ContentV2_1::Price]
|
1334
|
-
attr_accessor :
|
1356
|
+
attr_accessor :tax_amount
|
1335
1357
|
|
1336
1358
|
def initialize(**args)
|
1337
1359
|
update!(**args)
|
@@ -1339,8 +1361,8 @@ module Google
|
|
1339
1361
|
|
1340
1362
|
# Update properties of this object
|
1341
1363
|
def update!(**args)
|
1342
|
-
@
|
1343
|
-
@
|
1364
|
+
@price_amount = args[:price_amount] if args.key?(:price_amount)
|
1365
|
+
@tax_amount = args[:tax_amount] if args.key?(:tax_amount)
|
1344
1366
|
end
|
1345
1367
|
end
|
1346
1368
|
|
@@ -3487,6 +3509,11 @@ module Google
|
|
3487
3509
|
# @return [String]
|
3488
3510
|
attr_accessor :status
|
3489
3511
|
|
3512
|
+
# The party responsible for collecting and remitting taxes.
|
3513
|
+
# Corresponds to the JSON property `taxCollector`
|
3514
|
+
# @return [String]
|
3515
|
+
attr_accessor :tax_collector
|
3516
|
+
|
3490
3517
|
def initialize(**args)
|
3491
3518
|
update!(**args)
|
3492
3519
|
end
|
@@ -3513,6 +3540,7 @@ module Google
|
|
3513
3540
|
@shipping_cost_tax = args[:shipping_cost_tax] if args.key?(:shipping_cost_tax)
|
3514
3541
|
@shipping_option = args[:shipping_option] if args.key?(:shipping_option)
|
3515
3542
|
@status = args[:status] if args.key?(:status)
|
3543
|
+
@tax_collector = args[:tax_collector] if args.key?(:tax_collector)
|
3516
3544
|
end
|
3517
3545
|
end
|
3518
3546
|
|
@@ -4348,7 +4376,7 @@ module Google
|
|
4348
4376
|
|
4349
4377
|
# Total amount for the items.
|
4350
4378
|
# Corresponds to the JSON property `productAmount`
|
4351
|
-
# @return [Google::Apis::ContentV2_1::
|
4379
|
+
# @return [Google::Apis::ContentV2_1::ProductAmount]
|
4352
4380
|
attr_accessor :product_amount
|
4353
4381
|
|
4354
4382
|
# The date of the transaction, in ISO 8601 format.
|
@@ -5679,8 +5707,7 @@ module Google
|
|
5679
5707
|
attr_accessor :operation_id
|
5680
5708
|
|
5681
5709
|
# The amount to be refunded. This may be pre-tax or post-tax depending on the
|
5682
|
-
# location of the order. If omitted, refundless return is assumed.
|
5683
|
-
# if filled then both priceAmount and taxAmount must be set.
|
5710
|
+
# location of the order. If omitted, refundless return is assumed.
|
5684
5711
|
# Corresponds to the JSON property `priceAmount`
|
5685
5712
|
# @return [Google::Apis::ContentV2_1::Price]
|
5686
5713
|
attr_accessor :price_amount
|
@@ -5706,7 +5733,8 @@ module Google
|
|
5706
5733
|
# @return [String]
|
5707
5734
|
attr_accessor :reason_text
|
5708
5735
|
|
5709
|
-
# The amount of tax to be refunded.
|
5736
|
+
# The amount of tax to be refunded. Optional, but if filled, then priceAmount
|
5737
|
+
# must be set. Calculated automatically if not provided.
|
5710
5738
|
# Corresponds to the JSON property `taxAmount`
|
5711
5739
|
# @return [Google::Apis::ContentV2_1::Price]
|
5712
5740
|
attr_accessor :tax_amount
|
@@ -7343,6 +7371,37 @@ module Google
|
|
7343
7371
|
end
|
7344
7372
|
end
|
7345
7373
|
|
7374
|
+
#
|
7375
|
+
class ProductAmount
|
7376
|
+
include Google::Apis::Core::Hashable
|
7377
|
+
|
7378
|
+
# The pre-tax or post-tax price depending on the location of the order.
|
7379
|
+
# Corresponds to the JSON property `priceAmount`
|
7380
|
+
# @return [Google::Apis::ContentV2_1::Price]
|
7381
|
+
attr_accessor :price_amount
|
7382
|
+
|
7383
|
+
# Remitted tax value.
|
7384
|
+
# Corresponds to the JSON property `remittedTaxAmount`
|
7385
|
+
# @return [Google::Apis::ContentV2_1::Price]
|
7386
|
+
attr_accessor :remitted_tax_amount
|
7387
|
+
|
7388
|
+
# Tax value.
|
7389
|
+
# Corresponds to the JSON property `taxAmount`
|
7390
|
+
# @return [Google::Apis::ContentV2_1::Price]
|
7391
|
+
attr_accessor :tax_amount
|
7392
|
+
|
7393
|
+
def initialize(**args)
|
7394
|
+
update!(**args)
|
7395
|
+
end
|
7396
|
+
|
7397
|
+
# Update properties of this object
|
7398
|
+
def update!(**args)
|
7399
|
+
@price_amount = args[:price_amount] if args.key?(:price_amount)
|
7400
|
+
@remitted_tax_amount = args[:remitted_tax_amount] if args.key?(:remitted_tax_amount)
|
7401
|
+
@tax_amount = args[:tax_amount] if args.key?(:tax_amount)
|
7402
|
+
end
|
7403
|
+
end
|
7404
|
+
|
7346
7405
|
#
|
7347
7406
|
class ProductShipping
|
7348
7407
|
include Google::Apis::Core::Hashable
|
@@ -1120,6 +1120,12 @@ module Google
|
|
1120
1120
|
include Google::Apis::Core::JsonObjectSupport
|
1121
1121
|
end
|
1122
1122
|
|
1123
|
+
class ProductAmount
|
1124
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1125
|
+
|
1126
|
+
include Google::Apis::Core::JsonObjectSupport
|
1127
|
+
end
|
1128
|
+
|
1123
1129
|
class ProductShipping
|
1124
1130
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1125
1131
|
|
@@ -1568,6 +1574,9 @@ module Google
|
|
1568
1574
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1569
1575
|
property :admin, as: 'admin'
|
1570
1576
|
property :email_address, as: 'emailAddress'
|
1577
|
+
property :order_manager, as: 'orderManager'
|
1578
|
+
property :payments_analyst, as: 'paymentsAnalyst'
|
1579
|
+
property :payments_manager, as: 'paymentsManager'
|
1571
1580
|
end
|
1572
1581
|
end
|
1573
1582
|
|
@@ -1778,9 +1787,9 @@ module Google
|
|
1778
1787
|
class Amount
|
1779
1788
|
# @private
|
1780
1789
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1781
|
-
property :
|
1790
|
+
property :price_amount, as: 'priceAmount', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation
|
1782
1791
|
|
1783
|
-
property :
|
1792
|
+
property :tax_amount, as: 'taxAmount', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation
|
1784
1793
|
|
1785
1794
|
end
|
1786
1795
|
end
|
@@ -2403,6 +2412,7 @@ module Google
|
|
2403
2412
|
|
2404
2413
|
property :shipping_option, as: 'shippingOption'
|
2405
2414
|
property :status, as: 'status'
|
2415
|
+
property :tax_collector, as: 'taxCollector'
|
2406
2416
|
end
|
2407
2417
|
end
|
2408
2418
|
|
@@ -2631,7 +2641,7 @@ module Google
|
|
2631
2641
|
property :merchant_id, :numeric_string => true, as: 'merchantId'
|
2632
2642
|
property :merchant_order_id, as: 'merchantOrderId'
|
2633
2643
|
property :order_id, as: 'orderId'
|
2634
|
-
property :product_amount, as: 'productAmount', class: Google::Apis::ContentV2_1::
|
2644
|
+
property :product_amount, as: 'productAmount', class: Google::Apis::ContentV2_1::ProductAmount, decorator: Google::Apis::ContentV2_1::ProductAmount::Representation
|
2635
2645
|
|
2636
2646
|
property :transaction_date, as: 'transactionDate'
|
2637
2647
|
end
|
@@ -3441,6 +3451,18 @@ module Google
|
|
3441
3451
|
end
|
3442
3452
|
end
|
3443
3453
|
|
3454
|
+
class ProductAmount
|
3455
|
+
# @private
|
3456
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3457
|
+
property :price_amount, as: 'priceAmount', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation
|
3458
|
+
|
3459
|
+
property :remitted_tax_amount, as: 'remittedTaxAmount', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation
|
3460
|
+
|
3461
|
+
property :tax_amount, as: 'taxAmount', class: Google::Apis::ContentV2_1::Price, decorator: Google::Apis::ContentV2_1::Price::Representation
|
3462
|
+
|
3463
|
+
end
|
3464
|
+
end
|
3465
|
+
|
3444
3466
|
class ProductShipping
|
3445
3467
|
# @private
|
3446
3468
|
class Representation < Google::Apis::Core::JsonRepresentation
|