google-api-client 0.9.1 → 0.9.2

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.
Files changed (181) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/README.md +11 -2
  4. data/api_names.yaml +76 -43
  5. data/api_names_out.yaml +3853 -3508
  6. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +151 -151
  7. data/generated/google/apis/adexchangebuyer_v1_4.rb +35 -0
  8. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +2785 -0
  9. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1033 -0
  10. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +1378 -0
  11. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +79 -79
  12. data/generated/google/apis/admin_datatransfer_v1/classes.rb +26 -26
  13. data/generated/google/apis/admin_directory_v1/classes.rb +374 -374
  14. data/generated/google/apis/admin_reports_v1/classes.rb +63 -63
  15. data/generated/google/apis/adsense_v1_4.rb +1 -1
  16. data/generated/google/apis/adsense_v1_4/classes.rb +145 -143
  17. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  18. data/generated/google/apis/adsensehost_v4_1/classes.rb +95 -92
  19. data/generated/google/apis/analytics_v3/classes.rb +582 -582
  20. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  21. data/generated/google/apis/androidenterprise_v1/classes.rb +132 -132
  22. data/generated/google/apis/androidenterprise_v1/service.rb +9 -8
  23. data/generated/google/apis/androidpublisher_v2/classes.rb +122 -122
  24. data/generated/google/apis/appengine_v1beta4.rb +1 -1
  25. data/generated/google/apis/appengine_v1beta4/classes.rb +195 -142
  26. data/generated/google/apis/appengine_v1beta4/representations.rb +16 -0
  27. data/generated/google/apis/appengine_v1beta4/service.rb +3 -2
  28. data/generated/google/apis/appengine_v1beta5.rb +35 -0
  29. data/generated/google/apis/appengine_v1beta5/classes.rb +1523 -0
  30. data/generated/google/apis/appengine_v1beta5/representations.rb +525 -0
  31. data/generated/google/apis/appengine_v1beta5/service.rb +478 -0
  32. data/generated/google/apis/appsactivity_v1/classes.rb +34 -34
  33. data/generated/google/apis/appstate_v1.rb +1 -1
  34. data/generated/google/apis/appstate_v1/classes.rb +12 -12
  35. data/generated/google/apis/autoscaler_v1beta2/classes.rb +82 -82
  36. data/generated/google/apis/bigquery_v2.rb +1 -1
  37. data/generated/google/apis/bigquery_v2/classes.rb +266 -265
  38. data/generated/google/apis/blogger_v3/classes.rb +145 -145
  39. data/generated/google/apis/books_v1.rb +1 -1
  40. data/generated/google/apis/books_v1/classes.rb +431 -431
  41. data/generated/google/apis/books_v1/service.rb +3 -12
  42. data/generated/google/apis/calendar_v3.rb +1 -1
  43. data/generated/google/apis/calendar_v3/classes.rb +180 -180
  44. data/generated/google/apis/civicinfo_v2/classes.rb +125 -125
  45. data/generated/google/apis/classroom_v1/classes.rb +42 -42
  46. data/generated/google/apis/cloudbilling_v1/classes.rb +11 -11
  47. data/generated/google/apis/{mapsengine_v1.rb → cloudbuild_v1.rb} +11 -14
  48. data/generated/google/apis/cloudbuild_v1/classes.rb +521 -0
  49. data/generated/google/apis/cloudbuild_v1/representations.rb +190 -0
  50. data/generated/google/apis/cloudbuild_v1/service.rb +278 -0
  51. data/generated/google/apis/clouddebugger_v2/classes.rb +81 -81
  52. data/generated/google/apis/cloudlatencytest_v2.rb +34 -0
  53. data/generated/google/apis/cloudlatencytest_v2/classes.rb +195 -0
  54. data/generated/google/apis/cloudlatencytest_v2/representations.rb +113 -0
  55. data/generated/google/apis/cloudlatencytest_v2/service.rb +135 -0
  56. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  57. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +55 -55
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +26 -26
  59. data/generated/google/apis/cloudtrace_v1/classes.rb +13 -13
  60. data/generated/google/apis/clouduseraccounts_beta/classes.rb +85 -85
  61. data/generated/google/apis/compute_beta.rb +1 -1
  62. data/generated/google/apis/compute_beta/classes.rb +1051 -998
  63. data/generated/google/apis/compute_beta/representations.rb +1 -0
  64. data/generated/google/apis/compute_beta/service.rb +426 -366
  65. data/generated/google/apis/compute_v1.rb +1 -1
  66. data/generated/google/apis/compute_v1/classes.rb +1332 -946
  67. data/generated/google/apis/compute_v1/representations.rb +108 -0
  68. data/generated/google/apis/compute_v1/service.rb +686 -318
  69. data/generated/google/apis/container_v1/classes.rb +43 -43
  70. data/generated/google/apis/content_v2.rb +1 -1
  71. data/generated/google/apis/content_v2/classes.rb +767 -639
  72. data/generated/google/apis/content_v2/representations.rb +40 -0
  73. data/generated/google/apis/coordinate_v1/classes.rb +66 -66
  74. data/generated/google/apis/customsearch_v1/classes.rb +96 -96
  75. data/generated/google/apis/dataproc_v1.rb +43 -0
  76. data/generated/google/apis/dataproc_v1/classes.rb +175 -0
  77. data/generated/google/apis/dataproc_v1/representations.rb +84 -0
  78. data/generated/google/apis/dataproc_v1/service.rb +142 -0
  79. data/generated/google/apis/datastore_v1beta2/classes.rb +105 -105
  80. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  81. data/generated/google/apis/deploymentmanager_v2/classes.rb +183 -112
  82. data/generated/google/apis/deploymentmanager_v2/representations.rb +28 -0
  83. data/generated/google/apis/deploymentmanager_v2/service.rb +42 -37
  84. data/generated/google/apis/dfareporting_v2_3.rb +37 -0
  85. data/generated/google/apis/dfareporting_v2_3/classes.rb +10830 -0
  86. data/generated/google/apis/dfareporting_v2_3/representations.rb +3443 -0
  87. data/generated/google/apis/dfareporting_v2_3/service.rb +8581 -0
  88. data/generated/google/apis/discovery_v1/classes.rb +106 -106
  89. data/generated/google/apis/dns_v1/classes.rb +39 -39
  90. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  91. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +155 -69
  92. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +31 -0
  93. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +33 -0
  94. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  95. data/generated/google/apis/doubleclicksearch_v2/classes.rb +106 -104
  96. data/generated/google/apis/drive_v2.rb +1 -1
  97. data/generated/google/apis/drive_v2/classes.rb +308 -308
  98. data/generated/google/apis/drive_v2/service.rb +44 -0
  99. data/generated/google/apis/drive_v3.rb +1 -1
  100. data/generated/google/apis/drive_v3/classes.rb +178 -178
  101. data/generated/google/apis/drive_v3/service.rb +2 -1
  102. data/generated/google/apis/fitness_v1/classes.rb +74 -74
  103. data/generated/google/apis/fusiontables_v2/classes.rb +108 -108
  104. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  105. data/generated/google/apis/games_configuration_v1configuration/classes.rb +52 -52
  106. data/generated/google/apis/games_management_v1management.rb +2 -2
  107. data/generated/google/apis/games_management_v1management/classes.rb +55 -46
  108. data/generated/google/apis/games_management_v1management/representations.rb +1 -0
  109. data/generated/google/apis/games_v1.rb +2 -2
  110. data/generated/google/apis/games_v1/classes.rb +484 -475
  111. data/generated/google/apis/games_v1/representations.rb +1 -0
  112. data/generated/google/apis/gan_v1beta1/classes.rb +187 -187
  113. data/generated/google/apis/genomics_v1.rb +2 -2
  114. data/generated/google/apis/genomics_v1/classes.rb +441 -232
  115. data/generated/google/apis/genomics_v1/representations.rb +85 -0
  116. data/generated/google/apis/genomics_v1/service.rb +1 -1
  117. data/generated/google/apis/gmail_v1/classes.rb +73 -73
  118. data/generated/google/apis/groupsmigration_v1/classes.rb +2 -2
  119. data/generated/google/apis/groupssettings_v1/classes.rb +28 -28
  120. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  121. data/generated/google/apis/identitytoolkit_v3/classes.rb +232 -166
  122. data/generated/google/apis/identitytoolkit_v3/representations.rb +10 -0
  123. data/generated/google/apis/kgsearch_v1/classes.rb +3 -3
  124. data/generated/google/apis/licensing_v1/classes.rb +11 -11
  125. data/generated/google/apis/logging_v2beta1.rb +47 -0
  126. data/generated/google/apis/logging_v2beta1/classes.rb +990 -0
  127. data/generated/google/apis/logging_v2beta1/representations.rb +337 -0
  128. data/generated/google/apis/logging_v2beta1/service.rb +547 -0
  129. data/generated/google/apis/manager_v1beta2/classes.rb +125 -125
  130. data/generated/google/apis/mirror_v1/classes.rb +101 -101
  131. data/generated/google/apis/oauth2_v2.rb +2 -2
  132. data/generated/google/apis/oauth2_v2/classes.rb +27 -27
  133. data/generated/google/apis/pagespeedonline_v2/classes.rb +62 -62
  134. data/generated/google/apis/partners_v2/classes.rb +87 -87
  135. data/generated/google/apis/people_v1.rb +59 -0
  136. data/generated/google/apis/people_v1/classes.rb +1594 -0
  137. data/generated/google/apis/people_v1/representations.rb +593 -0
  138. data/generated/google/apis/people_v1/service.rb +193 -0
  139. data/generated/google/apis/plus_domains_v1.rb +2 -2
  140. data/generated/google/apis/plus_domains_v1/classes.rb +274 -274
  141. data/generated/google/apis/plus_v1.rb +2 -2
  142. data/generated/google/apis/plus_v1/classes.rb +215 -215
  143. data/generated/google/apis/prediction_v1_6/classes.rb +73 -73
  144. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +45 -45
  145. data/generated/google/apis/pubsub_v1/classes.rb +36 -36
  146. data/generated/google/apis/qpx_express_v1/classes.rb +135 -135
  147. data/generated/google/apis/replicapool_v1beta2/classes.rb +63 -63
  148. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +76 -76
  149. data/generated/google/apis/reseller_v1.rb +1 -1
  150. data/generated/google/apis/reseller_v1/classes.rb +55 -55
  151. data/generated/google/apis/reseller_v1/service.rb +1 -1
  152. data/generated/google/apis/resourceviews_v1beta2/classes.rb +68 -68
  153. data/generated/google/apis/script_v1/classes.rb +18 -18
  154. data/generated/google/apis/site_verification_v1/classes.rb +12 -12
  155. data/generated/google/apis/sqladmin_v1beta4/classes.rb +203 -203
  156. data/generated/google/apis/storage_v1.rb +1 -1
  157. data/generated/google/apis/storage_v1/classes.rb +130 -130
  158. data/generated/google/apis/storagetransfer_v1/classes.rb +84 -84
  159. data/generated/google/apis/tagmanager_v1/classes.rb +154 -154
  160. data/generated/google/apis/taskqueue_v1beta2/classes.rb +24 -24
  161. data/generated/google/apis/tasks_v1/classes.rb +32 -32
  162. data/generated/google/apis/translate_v2/classes.rb +10 -10
  163. data/generated/google/apis/urlshortener_v1/classes.rb +24 -24
  164. data/generated/google/apis/webmasters_v3/classes.rb +49 -49
  165. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  166. data/generated/google/apis/youtube_analytics_v1/classes.rb +49 -49
  167. data/generated/google/apis/youtube_v3.rb +1 -1
  168. data/generated/google/apis/youtube_v3/classes.rb +882 -895
  169. data/generated/google/apis/youtube_v3/representations.rb +2 -13
  170. data/generated/google/apis/youtubereporting_v1/classes.rb +19 -19
  171. data/lib/google/apis/core/api_command.rb +1 -1
  172. data/lib/google/apis/core/upload.rb +1 -1
  173. data/lib/google/apis/generator/templates/_class.tmpl +1 -1
  174. data/lib/google/apis/version.rb +1 -1
  175. data/samples/cli/lib/base_cli.rb +2 -1
  176. data/samples/cli/lib/samples/androidpublisher.rb +47 -0
  177. data/script/generate +17 -13
  178. metadata +35 -6
  179. data/generated/google/apis/mapsengine_v1/classes.rb +0 -2873
  180. data/generated/google/apis/mapsengine_v1/representations.rb +0 -1235
  181. data/generated/google/apis/mapsengine_v1/service.rb +0 -3388
@@ -37,7 +37,7 @@ module Google
37
37
 
38
38
  # Update properties of this object
39
39
  def update!(**args)
40
- @clusters = args[:clusters] unless args[:clusters].nil?
40
+ @clusters = args[:clusters] if args.key?(:clusters)
41
41
  end
42
42
  end
43
43
 
@@ -188,27 +188,27 @@ module Google
188
188
 
189
189
  # Update properties of this object
190
190
  def update!(**args)
191
- @name = args[:name] unless args[:name].nil?
192
- @description = args[:description] unless args[:description].nil?
193
- @initial_node_count = args[:initial_node_count] unless args[:initial_node_count].nil?
194
- @node_config = args[:node_config] unless args[:node_config].nil?
195
- @master_auth = args[:master_auth] unless args[:master_auth].nil?
196
- @logging_service = args[:logging_service] unless args[:logging_service].nil?
197
- @monitoring_service = args[:monitoring_service] unless args[:monitoring_service].nil?
198
- @network = args[:network] unless args[:network].nil?
199
- @cluster_ipv4_cidr = args[:cluster_ipv4_cidr] unless args[:cluster_ipv4_cidr].nil?
200
- @self_link = args[:self_link] unless args[:self_link].nil?
201
- @zone = args[:zone] unless args[:zone].nil?
202
- @endpoint = args[:endpoint] unless args[:endpoint].nil?
203
- @initial_cluster_version = args[:initial_cluster_version] unless args[:initial_cluster_version].nil?
204
- @current_master_version = args[:current_master_version] unless args[:current_master_version].nil?
205
- @current_node_version = args[:current_node_version] unless args[:current_node_version].nil?
206
- @create_time = args[:create_time] unless args[:create_time].nil?
207
- @status = args[:status] unless args[:status].nil?
208
- @status_message = args[:status_message] unless args[:status_message].nil?
209
- @node_ipv4_cidr_size = args[:node_ipv4_cidr_size] unless args[:node_ipv4_cidr_size].nil?
210
- @services_ipv4_cidr = args[:services_ipv4_cidr] unless args[:services_ipv4_cidr].nil?
211
- @instance_group_urls = args[:instance_group_urls] unless args[:instance_group_urls].nil?
191
+ @name = args[:name] if args.key?(:name)
192
+ @description = args[:description] if args.key?(:description)
193
+ @initial_node_count = args[:initial_node_count] if args.key?(:initial_node_count)
194
+ @node_config = args[:node_config] if args.key?(:node_config)
195
+ @master_auth = args[:master_auth] if args.key?(:master_auth)
196
+ @logging_service = args[:logging_service] if args.key?(:logging_service)
197
+ @monitoring_service = args[:monitoring_service] if args.key?(:monitoring_service)
198
+ @network = args[:network] if args.key?(:network)
199
+ @cluster_ipv4_cidr = args[:cluster_ipv4_cidr] if args.key?(:cluster_ipv4_cidr)
200
+ @self_link = args[:self_link] if args.key?(:self_link)
201
+ @zone = args[:zone] if args.key?(:zone)
202
+ @endpoint = args[:endpoint] if args.key?(:endpoint)
203
+ @initial_cluster_version = args[:initial_cluster_version] if args.key?(:initial_cluster_version)
204
+ @current_master_version = args[:current_master_version] if args.key?(:current_master_version)
205
+ @current_node_version = args[:current_node_version] if args.key?(:current_node_version)
206
+ @create_time = args[:create_time] if args.key?(:create_time)
207
+ @status = args[:status] if args.key?(:status)
208
+ @status_message = args[:status_message] if args.key?(:status_message)
209
+ @node_ipv4_cidr_size = args[:node_ipv4_cidr_size] if args.key?(:node_ipv4_cidr_size)
210
+ @services_ipv4_cidr = args[:services_ipv4_cidr] if args.key?(:services_ipv4_cidr)
211
+ @instance_group_urls = args[:instance_group_urls] if args.key?(:instance_group_urls)
212
212
  end
213
213
  end
214
214
 
@@ -245,9 +245,9 @@ module Google
245
245
 
246
246
  # Update properties of this object
247
247
  def update!(**args)
248
- @machine_type = args[:machine_type] unless args[:machine_type].nil?
249
- @disk_size_gb = args[:disk_size_gb] unless args[:disk_size_gb].nil?
250
- @oauth_scopes = args[:oauth_scopes] unless args[:oauth_scopes].nil?
248
+ @machine_type = args[:machine_type] if args.key?(:machine_type)
249
+ @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
250
+ @oauth_scopes = args[:oauth_scopes] if args.key?(:oauth_scopes)
251
251
  end
252
252
  end
253
253
 
@@ -293,11 +293,11 @@ module Google
293
293
 
294
294
  # Update properties of this object
295
295
  def update!(**args)
296
- @username = args[:username] unless args[:username].nil?
297
- @password = args[:password] unless args[:password].nil?
298
- @cluster_ca_certificate = args[:cluster_ca_certificate] unless args[:cluster_ca_certificate].nil?
299
- @client_certificate = args[:client_certificate] unless args[:client_certificate].nil?
300
- @client_key = args[:client_key] unless args[:client_key].nil?
296
+ @username = args[:username] if args.key?(:username)
297
+ @password = args[:password] if args.key?(:password)
298
+ @cluster_ca_certificate = args[:cluster_ca_certificate] if args.key?(:cluster_ca_certificate)
299
+ @client_certificate = args[:client_certificate] if args.key?(:client_certificate)
300
+ @client_key = args[:client_key] if args.key?(:client_key)
301
301
  end
302
302
  end
303
303
 
@@ -316,7 +316,7 @@ module Google
316
316
 
317
317
  # Update properties of this object
318
318
  def update!(**args)
319
- @cluster = args[:cluster] unless args[:cluster].nil?
319
+ @cluster = args[:cluster] if args.key?(:cluster)
320
320
  end
321
321
  end
322
322
 
@@ -366,13 +366,13 @@ module Google
366
366
 
367
367
  # Update properties of this object
368
368
  def update!(**args)
369
- @name = args[:name] unless args[:name].nil?
370
- @zone = args[:zone] unless args[:zone].nil?
371
- @operation_type = args[:operation_type] unless args[:operation_type].nil?
372
- @status = args[:status] unless args[:status].nil?
373
- @status_message = args[:status_message] unless args[:status_message].nil?
374
- @self_link = args[:self_link] unless args[:self_link].nil?
375
- @target_link = args[:target_link] unless args[:target_link].nil?
369
+ @name = args[:name] if args.key?(:name)
370
+ @zone = args[:zone] if args.key?(:zone)
371
+ @operation_type = args[:operation_type] if args.key?(:operation_type)
372
+ @status = args[:status] if args.key?(:status)
373
+ @status_message = args[:status_message] if args.key?(:status_message)
374
+ @self_link = args[:self_link] if args.key?(:self_link)
375
+ @target_link = args[:target_link] if args.key?(:target_link)
376
376
  end
377
377
  end
378
378
 
@@ -391,7 +391,7 @@ module Google
391
391
 
392
392
  # Update properties of this object
393
393
  def update!(**args)
394
- @update = args[:update] unless args[:update].nil?
394
+ @update = args[:update] if args.key?(:update)
395
395
  end
396
396
  end
397
397
 
@@ -411,7 +411,7 @@ module Google
411
411
 
412
412
  # Update properties of this object
413
413
  def update!(**args)
414
- @desired_node_version = args[:desired_node_version] unless args[:desired_node_version].nil?
414
+ @desired_node_version = args[:desired_node_version] if args.key?(:desired_node_version)
415
415
  end
416
416
  end
417
417
 
@@ -430,7 +430,7 @@ module Google
430
430
 
431
431
  # Update properties of this object
432
432
  def update!(**args)
433
- @operations = args[:operations] unless args[:operations].nil?
433
+ @operations = args[:operations] if args.key?(:operations)
434
434
  end
435
435
  end
436
436
 
@@ -454,8 +454,8 @@ module Google
454
454
 
455
455
  # Update properties of this object
456
456
  def update!(**args)
457
- @default_cluster_version = args[:default_cluster_version] unless args[:default_cluster_version].nil?
458
- @valid_node_versions = args[:valid_node_versions] unless args[:valid_node_versions].nil?
457
+ @default_cluster_version = args[:default_cluster_version] if args.key?(:default_cluster_version)
458
+ @valid_node_versions = args[:valid_node_versions] if args.key?(:valid_node_versions)
459
459
  end
460
460
  end
461
461
  end
@@ -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 = '20160115'
29
+ REVISION = '20160204'
30
30
 
31
31
  # Manage your product listings and accounts for Google Shopping
32
32
  AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
@@ -83,15 +83,15 @@ module Google
83
83
 
84
84
  # Update properties of this object
85
85
  def update!(**args)
86
- @adult_content = args[:adult_content] unless args[:adult_content].nil?
87
- @adwords_links = args[:adwords_links] unless args[:adwords_links].nil?
88
- @id = args[:id] unless args[:id].nil?
89
- @kind = args[:kind] unless args[:kind].nil?
90
- @name = args[:name] unless args[:name].nil?
91
- @reviews_url = args[:reviews_url] unless args[:reviews_url].nil?
92
- @seller_id = args[:seller_id] unless args[:seller_id].nil?
93
- @users = args[:users] unless args[:users].nil?
94
- @website_url = args[:website_url] unless args[:website_url].nil?
86
+ @adult_content = args[:adult_content] if args.key?(:adult_content)
87
+ @adwords_links = args[:adwords_links] if args.key?(:adwords_links)
88
+ @id = args[:id] if args.key?(:id)
89
+ @kind = args[:kind] if args.key?(:kind)
90
+ @name = args[:name] if args.key?(:name)
91
+ @reviews_url = args[:reviews_url] if args.key?(:reviews_url)
92
+ @seller_id = args[:seller_id] if args.key?(:seller_id)
93
+ @users = args[:users] if args.key?(:users)
94
+ @website_url = args[:website_url] if args.key?(:website_url)
95
95
  end
96
96
  end
97
97
 
@@ -123,8 +123,8 @@ module Google
123
123
 
124
124
  # Update properties of this object
125
125
  def update!(**args)
126
- @adwords_id = args[:adwords_id] unless args[:adwords_id].nil?
127
- @status = args[:status] unless args[:status].nil?
126
+ @adwords_id = args[:adwords_id] if args.key?(:adwords_id)
127
+ @status = args[:status] if args.key?(:status)
128
128
  end
129
129
  end
130
130
 
@@ -149,8 +149,8 @@ module Google
149
149
 
150
150
  # Update properties of this object
151
151
  def update!(**args)
152
- @aggregator_id = args[:aggregator_id] unless args[:aggregator_id].nil?
153
- @merchant_id = args[:merchant_id] unless args[:merchant_id].nil?
152
+ @aggregator_id = args[:aggregator_id] if args.key?(:aggregator_id)
153
+ @merchant_id = args[:merchant_id] if args.key?(:merchant_id)
154
154
  end
155
155
  end
156
156
 
@@ -195,12 +195,12 @@ module Google
195
195
 
196
196
  # Update properties of this object
197
197
  def update!(**args)
198
- @account_id = args[:account_id] unless args[:account_id].nil?
199
- @carrier_rates = args[:carrier_rates] unless args[:carrier_rates].nil?
200
- @kind = args[:kind] unless args[:kind].nil?
201
- @location_groups = args[:location_groups] unless args[:location_groups].nil?
202
- @rate_tables = args[:rate_tables] unless args[:rate_tables].nil?
203
- @services = args[:services] unless args[:services].nil?
198
+ @account_id = args[:account_id] if args.key?(:account_id)
199
+ @carrier_rates = args[:carrier_rates] if args.key?(:carrier_rates)
200
+ @kind = args[:kind] if args.key?(:kind)
201
+ @location_groups = args[:location_groups] if args.key?(:location_groups)
202
+ @rate_tables = args[:rate_tables] if args.key?(:rate_tables)
203
+ @services = args[:services] if args.key?(:services)
204
204
  end
205
205
  end
206
206
 
@@ -252,13 +252,13 @@ module Google
252
252
 
253
253
  # Update properties of this object
254
254
  def update!(**args)
255
- @carrier = args[:carrier] unless args[:carrier].nil?
256
- @carrier_service = args[:carrier_service] unless args[:carrier_service].nil?
257
- @modifier_flat_rate = args[:modifier_flat_rate] unless args[:modifier_flat_rate].nil?
258
- @modifier_percent = args[:modifier_percent] unless args[:modifier_percent].nil?
259
- @name = args[:name] unless args[:name].nil?
260
- @sale_country = args[:sale_country] unless args[:sale_country].nil?
261
- @shipping_origin = args[:shipping_origin] unless args[:shipping_origin].nil?
255
+ @carrier = args[:carrier] if args.key?(:carrier)
256
+ @carrier_service = args[:carrier_service] if args.key?(:carrier_service)
257
+ @modifier_flat_rate = args[:modifier_flat_rate] if args.key?(:modifier_flat_rate)
258
+ @modifier_percent = args[:modifier_percent] if args.key?(:modifier_percent)
259
+ @name = args[:name] if args.key?(:name)
260
+ @sale_country = args[:sale_country] if args.key?(:sale_country)
261
+ @shipping_origin = args[:shipping_origin] if args.key?(:shipping_origin)
262
262
  end
263
263
  end
264
264
 
@@ -314,13 +314,13 @@ module Google
314
314
 
315
315
  # Update properties of this object
316
316
  def update!(**args)
317
- @delivery_location_group = args[:delivery_location_group] unless args[:delivery_location_group].nil?
318
- @delivery_location_id = args[:delivery_location_id] unless args[:delivery_location_id].nil?
319
- @delivery_postal_code = args[:delivery_postal_code] unless args[:delivery_postal_code].nil?
320
- @delivery_postal_code_range = args[:delivery_postal_code_range] unless args[:delivery_postal_code_range].nil?
321
- @price_max = args[:price_max] unless args[:price_max].nil?
322
- @shipping_label = args[:shipping_label] unless args[:shipping_label].nil?
323
- @weight_max = args[:weight_max] unless args[:weight_max].nil?
317
+ @delivery_location_group = args[:delivery_location_group] if args.key?(:delivery_location_group)
318
+ @delivery_location_id = args[:delivery_location_id] if args.key?(:delivery_location_id)
319
+ @delivery_postal_code = args[:delivery_postal_code] if args.key?(:delivery_postal_code)
320
+ @delivery_postal_code_range = args[:delivery_postal_code_range] if args.key?(:delivery_postal_code_range)
321
+ @price_max = args[:price_max] if args.key?(:price_max)
322
+ @shipping_label = args[:shipping_label] if args.key?(:shipping_label)
323
+ @weight_max = args[:weight_max] if args.key?(:weight_max)
324
324
  end
325
325
  end
326
326
 
@@ -363,11 +363,11 @@ module Google
363
363
 
364
364
  # Update properties of this object
365
365
  def update!(**args)
366
- @country = args[:country] unless args[:country].nil?
367
- @location_ids = args[:location_ids] unless args[:location_ids].nil?
368
- @name = args[:name] unless args[:name].nil?
369
- @postal_code_ranges = args[:postal_code_ranges] unless args[:postal_code_ranges].nil?
370
- @postal_codes = args[:postal_codes] unless args[:postal_codes].nil?
366
+ @country = args[:country] if args.key?(:country)
367
+ @location_ids = args[:location_ids] if args.key?(:location_ids)
368
+ @name = args[:name] if args.key?(:name)
369
+ @postal_code_ranges = args[:postal_code_ranges] if args.key?(:postal_code_ranges)
370
+ @postal_codes = args[:postal_codes] if args.key?(:postal_codes)
371
371
  end
372
372
  end
373
373
 
@@ -394,8 +394,8 @@ module Google
394
394
 
395
395
  # Update properties of this object
396
396
  def update!(**args)
397
- @end = args[:end] unless args[:end].nil?
398
- @start = args[:start] unless args[:start].nil?
397
+ @end = args[:end] if args.key?(:end)
398
+ @start = args[:start] if args.key?(:start)
399
399
  end
400
400
  end
401
401
 
@@ -430,9 +430,9 @@ module Google
430
430
 
431
431
  # Update properties of this object
432
432
  def update!(**args)
433
- @content = args[:content] unless args[:content].nil?
434
- @name = args[:name] unless args[:name].nil?
435
- @sale_country = args[:sale_country] unless args[:sale_country].nil?
433
+ @content = args[:content] if args.key?(:content)
434
+ @name = args[:name] if args.key?(:name)
435
+ @sale_country = args[:sale_country] if args.key?(:sale_country)
436
436
  end
437
437
  end
438
438
 
@@ -460,8 +460,8 @@ module Google
460
460
 
461
461
  # Update properties of this object
462
462
  def update!(**args)
463
- @condition = args[:condition] unless args[:condition].nil?
464
- @rate = args[:rate] unless args[:rate].nil?
463
+ @condition = args[:condition] if args.key?(:condition)
464
+ @rate = args[:rate] if args.key?(:rate)
465
465
  end
466
466
  end
467
467
 
@@ -509,11 +509,11 @@ module Google
509
509
 
510
510
  # Update properties of this object
511
511
  def update!(**args)
512
- @active = args[:active] unless args[:active].nil?
513
- @calculation_method = args[:calculation_method] unless args[:calculation_method].nil?
514
- @cost_rule_tree = args[:cost_rule_tree] unless args[:cost_rule_tree].nil?
515
- @name = args[:name] unless args[:name].nil?
516
- @sale_country = args[:sale_country] unless args[:sale_country].nil?
512
+ @active = args[:active] if args.key?(:active)
513
+ @calculation_method = args[:calculation_method] if args.key?(:calculation_method)
514
+ @cost_rule_tree = args[:cost_rule_tree] if args.key?(:cost_rule_tree)
515
+ @name = args[:name] if args.key?(:name)
516
+ @sale_country = args[:sale_country] if args.key?(:sale_country)
517
517
  end
518
518
  end
519
519
 
@@ -555,11 +555,11 @@ module Google
555
555
 
556
556
  # Update properties of this object
557
557
  def update!(**args)
558
- @carrier_rate = args[:carrier_rate] unless args[:carrier_rate].nil?
559
- @excluded = args[:excluded] unless args[:excluded].nil?
560
- @flat_rate = args[:flat_rate] unless args[:flat_rate].nil?
561
- @percentage_rate = args[:percentage_rate] unless args[:percentage_rate].nil?
562
- @rate_table = args[:rate_table] unless args[:rate_table].nil?
558
+ @carrier_rate = args[:carrier_rate] if args.key?(:carrier_rate)
559
+ @excluded = args[:excluded] if args.key?(:excluded)
560
+ @flat_rate = args[:flat_rate] if args.key?(:flat_rate)
561
+ @percentage_rate = args[:percentage_rate] if args.key?(:percentage_rate)
562
+ @rate_table = args[:rate_table] if args.key?(:rate_table)
563
563
  end
564
564
  end
565
565
 
@@ -598,9 +598,9 @@ module Google
598
598
 
599
599
  # Update properties of this object
600
600
  def update!(**args)
601
- @calculation_method = args[:calculation_method] unless args[:calculation_method].nil?
602
- @children = args[:children] unless args[:children].nil?
603
- @condition = args[:condition] unless args[:condition].nil?
601
+ @calculation_method = args[:calculation_method] if args.key?(:calculation_method)
602
+ @children = args[:children] if args.key?(:children)
603
+ @condition = args[:condition] if args.key?(:condition)
604
604
  end
605
605
  end
606
606
 
@@ -631,9 +631,9 @@ module Google
631
631
 
632
632
  # Update properties of this object
633
633
  def update!(**args)
634
- @account_id = args[:account_id] unless args[:account_id].nil?
635
- @data_quality_issues = args[:data_quality_issues] unless args[:data_quality_issues].nil?
636
- @kind = args[:kind] unless args[:kind].nil?
634
+ @account_id = args[:account_id] if args.key?(:account_id)
635
+ @data_quality_issues = args[:data_quality_issues] if args.key?(:data_quality_issues)
636
+ @kind = args[:kind] if args.key?(:kind)
637
637
  end
638
638
  end
639
639
 
@@ -687,14 +687,14 @@ module Google
687
687
 
688
688
  # Update properties of this object
689
689
  def update!(**args)
690
- @country = args[:country] unless args[:country].nil?
691
- @displayed_value = args[:displayed_value] unless args[:displayed_value].nil?
692
- @example_items = args[:example_items] unless args[:example_items].nil?
693
- @id = args[:id] unless args[:id].nil?
694
- @last_checked = args[:last_checked] unless args[:last_checked].nil?
695
- @num_items = args[:num_items] unless args[:num_items].nil?
696
- @severity = args[:severity] unless args[:severity].nil?
697
- @submitted_value = args[:submitted_value] unless args[:submitted_value].nil?
690
+ @country = args[:country] if args.key?(:country)
691
+ @displayed_value = args[:displayed_value] if args.key?(:displayed_value)
692
+ @example_items = args[:example_items] if args.key?(:example_items)
693
+ @id = args[:id] if args.key?(:id)
694
+ @last_checked = args[:last_checked] if args.key?(:last_checked)
695
+ @num_items = args[:num_items] if args.key?(:num_items)
696
+ @severity = args[:severity] if args.key?(:severity)
697
+ @submitted_value = args[:submitted_value] if args.key?(:submitted_value)
698
698
  end
699
699
  end
700
700
 
@@ -734,11 +734,11 @@ module Google
734
734
 
735
735
  # Update properties of this object
736
736
  def update!(**args)
737
- @item_id = args[:item_id] unless args[:item_id].nil?
738
- @link = args[:link] unless args[:link].nil?
739
- @submitted_value = args[:submitted_value] unless args[:submitted_value].nil?
740
- @title = args[:title] unless args[:title].nil?
741
- @value_on_landing_page = args[:value_on_landing_page] unless args[:value_on_landing_page].nil?
737
+ @item_id = args[:item_id] if args.key?(:item_id)
738
+ @link = args[:link] if args.key?(:link)
739
+ @submitted_value = args[:submitted_value] if args.key?(:submitted_value)
740
+ @title = args[:title] if args.key?(:title)
741
+ @value_on_landing_page = args[:value_on_landing_page] if args.key?(:value_on_landing_page)
742
742
  end
743
743
  end
744
744
 
@@ -769,9 +769,9 @@ module Google
769
769
 
770
770
  # Update properties of this object
771
771
  def update!(**args)
772
- @account_id = args[:account_id] unless args[:account_id].nil?
773
- @kind = args[:kind] unless args[:kind].nil?
774
- @rules = args[:rules] unless args[:rules].nil?
772
+ @account_id = args[:account_id] if args.key?(:account_id)
773
+ @kind = args[:kind] if args.key?(:kind)
774
+ @rules = args[:rules] if args.key?(:rules)
775
775
  end
776
776
  end
777
777
 
@@ -814,11 +814,11 @@ module Google
814
814
 
815
815
  # Update properties of this object
816
816
  def update!(**args)
817
- @country = args[:country] unless args[:country].nil?
818
- @location_id = args[:location_id] unless args[:location_id].nil?
819
- @rate_percent = args[:rate_percent] unless args[:rate_percent].nil?
820
- @shipping_taxed = args[:shipping_taxed] unless args[:shipping_taxed].nil?
821
- @use_global_rate = args[:use_global_rate] unless args[:use_global_rate].nil?
817
+ @country = args[:country] if args.key?(:country)
818
+ @location_id = args[:location_id] if args.key?(:location_id)
819
+ @rate_percent = args[:rate_percent] if args.key?(:rate_percent)
820
+ @shipping_taxed = args[:shipping_taxed] if args.key?(:shipping_taxed)
821
+ @use_global_rate = args[:use_global_rate] if args.key?(:use_global_rate)
822
822
  end
823
823
  end
824
824
 
@@ -843,8 +843,8 @@ module Google
843
843
 
844
844
  # Update properties of this object
845
845
  def update!(**args)
846
- @admin = args[:admin] unless args[:admin].nil?
847
- @email_address = args[:email_address] unless args[:email_address].nil?
846
+ @admin = args[:admin] if args.key?(:admin)
847
+ @email_address = args[:email_address] if args.key?(:email_address)
848
848
  end
849
849
  end
850
850
 
@@ -873,8 +873,8 @@ module Google
873
873
 
874
874
  # Update properties of this object
875
875
  def update!(**args)
876
- @account_identifiers = args[:account_identifiers] unless args[:account_identifiers].nil?
877
- @kind = args[:kind] unless args[:kind].nil?
876
+ @account_identifiers = args[:account_identifiers] if args.key?(:account_identifiers)
877
+ @kind = args[:kind] if args.key?(:kind)
878
878
  end
879
879
  end
880
880
 
@@ -893,7 +893,7 @@ module Google
893
893
 
894
894
  # Update properties of this object
895
895
  def update!(**args)
896
- @entries = args[:entries] unless args[:entries].nil?
896
+ @entries = args[:entries] if args.key?(:entries)
897
897
  end
898
898
  end
899
899
 
@@ -933,11 +933,11 @@ module Google
933
933
 
934
934
  # Update properties of this object
935
935
  def update!(**args)
936
- @account = args[:account] unless args[:account].nil?
937
- @account_id = args[:account_id] unless args[:account_id].nil?
938
- @batch_id = args[:batch_id] unless args[:batch_id].nil?
939
- @merchant_id = args[:merchant_id] unless args[:merchant_id].nil?
940
- @request_method = args[:request_method] unless args[:request_method].nil?
936
+ @account = args[:account] if args.key?(:account)
937
+ @account_id = args[:account_id] if args.key?(:account_id)
938
+ @batch_id = args[:batch_id] if args.key?(:batch_id)
939
+ @merchant_id = args[:merchant_id] if args.key?(:merchant_id)
940
+ @request_method = args[:request_method] if args.key?(:request_method)
941
941
  end
942
942
  end
943
943
 
@@ -962,8 +962,8 @@ module Google
962
962
 
963
963
  # Update properties of this object
964
964
  def update!(**args)
965
- @entries = args[:entries] unless args[:entries].nil?
966
- @kind = args[:kind] unless args[:kind].nil?
965
+ @entries = args[:entries] if args.key?(:entries)
966
+ @kind = args[:kind] if args.key?(:kind)
967
967
  end
968
968
  end
969
969
 
@@ -998,10 +998,10 @@ module Google
998
998
 
999
999
  # Update properties of this object
1000
1000
  def update!(**args)
1001
- @account = args[:account] unless args[:account].nil?
1002
- @batch_id = args[:batch_id] unless args[:batch_id].nil?
1003
- @errors = args[:errors] unless args[:errors].nil?
1004
- @kind = args[:kind] unless args[:kind].nil?
1001
+ @account = args[:account] if args.key?(:account)
1002
+ @batch_id = args[:batch_id] if args.key?(:batch_id)
1003
+ @errors = args[:errors] if args.key?(:errors)
1004
+ @kind = args[:kind] if args.key?(:kind)
1005
1005
  end
1006
1006
  end
1007
1007
 
@@ -1031,9 +1031,9 @@ module Google
1031
1031
 
1032
1032
  # Update properties of this object
1033
1033
  def update!(**args)
1034
- @kind = args[:kind] unless args[:kind].nil?
1035
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
1036
- @resources = args[:resources] unless args[:resources].nil?
1034
+ @kind = args[:kind] if args.key?(:kind)
1035
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1036
+ @resources = args[:resources] if args.key?(:resources)
1037
1037
  end
1038
1038
  end
1039
1039
 
@@ -1052,7 +1052,7 @@ module Google
1052
1052
 
1053
1053
  # Update properties of this object
1054
1054
  def update!(**args)
1055
- @entries = args[:entries] unless args[:entries].nil?
1055
+ @entries = args[:entries] if args.key?(:entries)
1056
1056
  end
1057
1057
  end
1058
1058
 
@@ -1091,11 +1091,11 @@ module Google
1091
1091
 
1092
1092
  # Update properties of this object
1093
1093
  def update!(**args)
1094
- @account_id = args[:account_id] unless args[:account_id].nil?
1095
- @account_shipping = args[:account_shipping] unless args[:account_shipping].nil?
1096
- @batch_id = args[:batch_id] unless args[:batch_id].nil?
1097
- @merchant_id = args[:merchant_id] unless args[:merchant_id].nil?
1098
- @request_method = args[:request_method] unless args[:request_method].nil?
1094
+ @account_id = args[:account_id] if args.key?(:account_id)
1095
+ @account_shipping = args[:account_shipping] if args.key?(:account_shipping)
1096
+ @batch_id = args[:batch_id] if args.key?(:batch_id)
1097
+ @merchant_id = args[:merchant_id] if args.key?(:merchant_id)
1098
+ @request_method = args[:request_method] if args.key?(:request_method)
1099
1099
  end
1100
1100
  end
1101
1101
 
@@ -1120,8 +1120,8 @@ module Google
1120
1120
 
1121
1121
  # Update properties of this object
1122
1122
  def update!(**args)
1123
- @entries = args[:entries] unless args[:entries].nil?
1124
- @kind = args[:kind] unless args[:kind].nil?
1123
+ @entries = args[:entries] if args.key?(:entries)
1124
+ @kind = args[:kind] if args.key?(:kind)
1125
1125
  end
1126
1126
  end
1127
1127
 
@@ -1156,10 +1156,10 @@ module Google
1156
1156
 
1157
1157
  # Update properties of this object
1158
1158
  def update!(**args)
1159
- @account_shipping = args[:account_shipping] unless args[:account_shipping].nil?
1160
- @batch_id = args[:batch_id] unless args[:batch_id].nil?
1161
- @errors = args[:errors] unless args[:errors].nil?
1162
- @kind = args[:kind] unless args[:kind].nil?
1159
+ @account_shipping = args[:account_shipping] if args.key?(:account_shipping)
1160
+ @batch_id = args[:batch_id] if args.key?(:batch_id)
1161
+ @errors = args[:errors] if args.key?(:errors)
1162
+ @kind = args[:kind] if args.key?(:kind)
1163
1163
  end
1164
1164
  end
1165
1165
 
@@ -1189,9 +1189,9 @@ module Google
1189
1189
 
1190
1190
  # Update properties of this object
1191
1191
  def update!(**args)
1192
- @kind = args[:kind] unless args[:kind].nil?
1193
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
1194
- @resources = args[:resources] unless args[:resources].nil?
1192
+ @kind = args[:kind] if args.key?(:kind)
1193
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1194
+ @resources = args[:resources] if args.key?(:resources)
1195
1195
  end
1196
1196
  end
1197
1197
 
@@ -1210,7 +1210,7 @@ module Google
1210
1210
 
1211
1211
  # Update properties of this object
1212
1212
  def update!(**args)
1213
- @entries = args[:entries] unless args[:entries].nil?
1213
+ @entries = args[:entries] if args.key?(:entries)
1214
1214
  end
1215
1215
  end
1216
1216
 
@@ -1244,10 +1244,10 @@ module Google
1244
1244
 
1245
1245
  # Update properties of this object
1246
1246
  def update!(**args)
1247
- @account_id = args[:account_id] unless args[:account_id].nil?
1248
- @batch_id = args[:batch_id] unless args[:batch_id].nil?
1249
- @merchant_id = args[:merchant_id] unless args[:merchant_id].nil?
1250
- @request_method = args[:request_method] unless args[:request_method].nil?
1247
+ @account_id = args[:account_id] if args.key?(:account_id)
1248
+ @batch_id = args[:batch_id] if args.key?(:batch_id)
1249
+ @merchant_id = args[:merchant_id] if args.key?(:merchant_id)
1250
+ @request_method = args[:request_method] if args.key?(:request_method)
1251
1251
  end
1252
1252
  end
1253
1253
 
@@ -1272,8 +1272,8 @@ module Google
1272
1272
 
1273
1273
  # Update properties of this object
1274
1274
  def update!(**args)
1275
- @entries = args[:entries] unless args[:entries].nil?
1276
- @kind = args[:kind] unless args[:kind].nil?
1275
+ @entries = args[:entries] if args.key?(:entries)
1276
+ @kind = args[:kind] if args.key?(:kind)
1277
1277
  end
1278
1278
  end
1279
1279
 
@@ -1303,9 +1303,9 @@ module Google
1303
1303
 
1304
1304
  # Update properties of this object
1305
1305
  def update!(**args)
1306
- @account_status = args[:account_status] unless args[:account_status].nil?
1307
- @batch_id = args[:batch_id] unless args[:batch_id].nil?
1308
- @errors = args[:errors] unless args[:errors].nil?
1306
+ @account_status = args[:account_status] if args.key?(:account_status)
1307
+ @batch_id = args[:batch_id] if args.key?(:batch_id)
1308
+ @errors = args[:errors] if args.key?(:errors)
1309
1309
  end
1310
1310
  end
1311
1311
 
@@ -1335,9 +1335,9 @@ module Google
1335
1335
 
1336
1336
  # Update properties of this object
1337
1337
  def update!(**args)
1338
- @kind = args[:kind] unless args[:kind].nil?
1339
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
1340
- @resources = args[:resources] unless args[:resources].nil?
1338
+ @kind = args[:kind] if args.key?(:kind)
1339
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1340
+ @resources = args[:resources] if args.key?(:resources)
1341
1341
  end
1342
1342
  end
1343
1343
 
@@ -1356,7 +1356,7 @@ module Google
1356
1356
 
1357
1357
  # Update properties of this object
1358
1358
  def update!(**args)
1359
- @entries = args[:entries] unless args[:entries].nil?
1359
+ @entries = args[:entries] if args.key?(:entries)
1360
1360
  end
1361
1361
  end
1362
1362
 
@@ -1395,11 +1395,11 @@ module Google
1395
1395
 
1396
1396
  # Update properties of this object
1397
1397
  def update!(**args)
1398
- @account_id = args[:account_id] unless args[:account_id].nil?
1399
- @account_tax = args[:account_tax] unless args[:account_tax].nil?
1400
- @batch_id = args[:batch_id] unless args[:batch_id].nil?
1401
- @merchant_id = args[:merchant_id] unless args[:merchant_id].nil?
1402
- @request_method = args[:request_method] unless args[:request_method].nil?
1398
+ @account_id = args[:account_id] if args.key?(:account_id)
1399
+ @account_tax = args[:account_tax] if args.key?(:account_tax)
1400
+ @batch_id = args[:batch_id] if args.key?(:batch_id)
1401
+ @merchant_id = args[:merchant_id] if args.key?(:merchant_id)
1402
+ @request_method = args[:request_method] if args.key?(:request_method)
1403
1403
  end
1404
1404
  end
1405
1405
 
@@ -1424,8 +1424,8 @@ module Google
1424
1424
 
1425
1425
  # Update properties of this object
1426
1426
  def update!(**args)
1427
- @entries = args[:entries] unless args[:entries].nil?
1428
- @kind = args[:kind] unless args[:kind].nil?
1427
+ @entries = args[:entries] if args.key?(:entries)
1428
+ @kind = args[:kind] if args.key?(:kind)
1429
1429
  end
1430
1430
  end
1431
1431
 
@@ -1460,10 +1460,10 @@ module Google
1460
1460
 
1461
1461
  # Update properties of this object
1462
1462
  def update!(**args)
1463
- @account_tax = args[:account_tax] unless args[:account_tax].nil?
1464
- @batch_id = args[:batch_id] unless args[:batch_id].nil?
1465
- @errors = args[:errors] unless args[:errors].nil?
1466
- @kind = args[:kind] unless args[:kind].nil?
1463
+ @account_tax = args[:account_tax] if args.key?(:account_tax)
1464
+ @batch_id = args[:batch_id] if args.key?(:batch_id)
1465
+ @errors = args[:errors] if args.key?(:errors)
1466
+ @kind = args[:kind] if args.key?(:kind)
1467
1467
  end
1468
1468
  end
1469
1469
 
@@ -1493,9 +1493,9 @@ module Google
1493
1493
 
1494
1494
  # Update properties of this object
1495
1495
  def update!(**args)
1496
- @kind = args[:kind] unless args[:kind].nil?
1497
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
1498
- @resources = args[:resources] unless args[:resources].nil?
1496
+ @kind = args[:kind] if args.key?(:kind)
1497
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1498
+ @resources = args[:resources] if args.key?(:resources)
1499
1499
  end
1500
1500
  end
1501
1501
 
@@ -1572,17 +1572,17 @@ module Google
1572
1572
 
1573
1573
  # Update properties of this object
1574
1574
  def update!(**args)
1575
- @attribute_language = args[:attribute_language] unless args[:attribute_language].nil?
1576
- @content_language = args[:content_language] unless args[:content_language].nil?
1577
- @content_type = args[:content_type] unless args[:content_type].nil?
1578
- @fetch_schedule = args[:fetch_schedule] unless args[:fetch_schedule].nil?
1579
- @file_name = args[:file_name] unless args[:file_name].nil?
1580
- @format = args[:format] unless args[:format].nil?
1581
- @id = args[:id] unless args[:id].nil?
1582
- @intended_destinations = args[:intended_destinations] unless args[:intended_destinations].nil?
1583
- @kind = args[:kind] unless args[:kind].nil?
1584
- @name = args[:name] unless args[:name].nil?
1585
- @target_country = args[:target_country] unless args[:target_country].nil?
1575
+ @attribute_language = args[:attribute_language] if args.key?(:attribute_language)
1576
+ @content_language = args[:content_language] if args.key?(:content_language)
1577
+ @content_type = args[:content_type] if args.key?(:content_type)
1578
+ @fetch_schedule = args[:fetch_schedule] if args.key?(:fetch_schedule)
1579
+ @file_name = args[:file_name] if args.key?(:file_name)
1580
+ @format = args[:format] if args.key?(:format)
1581
+ @id = args[:id] if args.key?(:id)
1582
+ @intended_destinations = args[:intended_destinations] if args.key?(:intended_destinations)
1583
+ @kind = args[:kind] if args.key?(:kind)
1584
+ @name = args[:name] if args.key?(:name)
1585
+ @target_country = args[:target_country] if args.key?(:target_country)
1586
1586
  end
1587
1587
  end
1588
1588
 
@@ -1637,13 +1637,13 @@ module Google
1637
1637
 
1638
1638
  # Update properties of this object
1639
1639
  def update!(**args)
1640
- @day_of_month = args[:day_of_month] unless args[:day_of_month].nil?
1641
- @fetch_url = args[:fetch_url] unless args[:fetch_url].nil?
1642
- @hour = args[:hour] unless args[:hour].nil?
1643
- @password = args[:password] unless args[:password].nil?
1644
- @time_zone = args[:time_zone] unless args[:time_zone].nil?
1645
- @username = args[:username] unless args[:username].nil?
1646
- @weekday = args[:weekday] unless args[:weekday].nil?
1640
+ @day_of_month = args[:day_of_month] if args.key?(:day_of_month)
1641
+ @fetch_url = args[:fetch_url] if args.key?(:fetch_url)
1642
+ @hour = args[:hour] if args.key?(:hour)
1643
+ @password = args[:password] if args.key?(:password)
1644
+ @time_zone = args[:time_zone] if args.key?(:time_zone)
1645
+ @username = args[:username] if args.key?(:username)
1646
+ @weekday = args[:weekday] if args.key?(:weekday)
1647
1647
  end
1648
1648
  end
1649
1649
 
@@ -1676,9 +1676,9 @@ module Google
1676
1676
 
1677
1677
  # Update properties of this object
1678
1678
  def update!(**args)
1679
- @column_delimiter = args[:column_delimiter] unless args[:column_delimiter].nil?
1680
- @file_encoding = args[:file_encoding] unless args[:file_encoding].nil?
1681
- @quoting_mode = args[:quoting_mode] unless args[:quoting_mode].nil?
1679
+ @column_delimiter = args[:column_delimiter] if args.key?(:column_delimiter)
1680
+ @file_encoding = args[:file_encoding] if args.key?(:file_encoding)
1681
+ @quoting_mode = args[:quoting_mode] if args.key?(:quoting_mode)
1682
1682
  end
1683
1683
  end
1684
1684
 
@@ -1734,14 +1734,14 @@ module Google
1734
1734
 
1735
1735
  # Update properties of this object
1736
1736
  def update!(**args)
1737
- @datafeed_id = args[:datafeed_id] unless args[:datafeed_id].nil?
1738
- @errors = args[:errors] unless args[:errors].nil?
1739
- @items_total = args[:items_total] unless args[:items_total].nil?
1740
- @items_valid = args[:items_valid] unless args[:items_valid].nil?
1741
- @kind = args[:kind] unless args[:kind].nil?
1742
- @last_upload_date = args[:last_upload_date] unless args[:last_upload_date].nil?
1743
- @processing_status = args[:processing_status] unless args[:processing_status].nil?
1744
- @warnings = args[:warnings] unless args[:warnings].nil?
1737
+ @datafeed_id = args[:datafeed_id] if args.key?(:datafeed_id)
1738
+ @errors = args[:errors] if args.key?(:errors)
1739
+ @items_total = args[:items_total] if args.key?(:items_total)
1740
+ @items_valid = args[:items_valid] if args.key?(:items_valid)
1741
+ @kind = args[:kind] if args.key?(:kind)
1742
+ @last_upload_date = args[:last_upload_date] if args.key?(:last_upload_date)
1743
+ @processing_status = args[:processing_status] if args.key?(:processing_status)
1744
+ @warnings = args[:warnings] if args.key?(:warnings)
1745
1745
  end
1746
1746
  end
1747
1747
 
@@ -1775,10 +1775,10 @@ module Google
1775
1775
 
1776
1776
  # Update properties of this object
1777
1777
  def update!(**args)
1778
- @code = args[:code] unless args[:code].nil?
1779
- @count = args[:count] unless args[:count].nil?
1780
- @examples = args[:examples] unless args[:examples].nil?
1781
- @message = args[:message] unless args[:message].nil?
1778
+ @code = args[:code] if args.key?(:code)
1779
+ @count = args[:count] if args.key?(:count)
1780
+ @examples = args[:examples] if args.key?(:examples)
1781
+ @message = args[:message] if args.key?(:message)
1782
1782
  end
1783
1783
  end
1784
1784
 
@@ -1807,9 +1807,9 @@ module Google
1807
1807
 
1808
1808
  # Update properties of this object
1809
1809
  def update!(**args)
1810
- @item_id = args[:item_id] unless args[:item_id].nil?
1811
- @line_number = args[:line_number] unless args[:line_number].nil?
1812
- @value = args[:value] unless args[:value].nil?
1810
+ @item_id = args[:item_id] if args.key?(:item_id)
1811
+ @line_number = args[:line_number] if args.key?(:line_number)
1812
+ @value = args[:value] if args.key?(:value)
1813
1813
  end
1814
1814
  end
1815
1815
 
@@ -1828,7 +1828,7 @@ module Google
1828
1828
 
1829
1829
  # Update properties of this object
1830
1830
  def update!(**args)
1831
- @entries = args[:entries] unless args[:entries].nil?
1831
+ @entries = args[:entries] if args.key?(:entries)
1832
1832
  end
1833
1833
  end
1834
1834
 
@@ -1867,11 +1867,11 @@ module Google
1867
1867
 
1868
1868
  # Update properties of this object
1869
1869
  def update!(**args)
1870
- @batch_id = args[:batch_id] unless args[:batch_id].nil?
1871
- @datafeed = args[:datafeed] unless args[:datafeed].nil?
1872
- @datafeed_id = args[:datafeed_id] unless args[:datafeed_id].nil?
1873
- @merchant_id = args[:merchant_id] unless args[:merchant_id].nil?
1874
- @request_method = args[:request_method] unless args[:request_method].nil?
1870
+ @batch_id = args[:batch_id] if args.key?(:batch_id)
1871
+ @datafeed = args[:datafeed] if args.key?(:datafeed)
1872
+ @datafeed_id = args[:datafeed_id] if args.key?(:datafeed_id)
1873
+ @merchant_id = args[:merchant_id] if args.key?(:merchant_id)
1874
+ @request_method = args[:request_method] if args.key?(:request_method)
1875
1875
  end
1876
1876
  end
1877
1877
 
@@ -1896,8 +1896,8 @@ module Google
1896
1896
 
1897
1897
  # Update properties of this object
1898
1898
  def update!(**args)
1899
- @entries = args[:entries] unless args[:entries].nil?
1900
- @kind = args[:kind] unless args[:kind].nil?
1899
+ @entries = args[:entries] if args.key?(:entries)
1900
+ @kind = args[:kind] if args.key?(:kind)
1901
1901
  end
1902
1902
  end
1903
1903
 
@@ -1926,9 +1926,9 @@ module Google
1926
1926
 
1927
1927
  # Update properties of this object
1928
1928
  def update!(**args)
1929
- @batch_id = args[:batch_id] unless args[:batch_id].nil?
1930
- @datafeed = args[:datafeed] unless args[:datafeed].nil?
1931
- @errors = args[:errors] unless args[:errors].nil?
1929
+ @batch_id = args[:batch_id] if args.key?(:batch_id)
1930
+ @datafeed = args[:datafeed] if args.key?(:datafeed)
1931
+ @errors = args[:errors] if args.key?(:errors)
1932
1932
  end
1933
1933
  end
1934
1934
 
@@ -1958,9 +1958,9 @@ module Google
1958
1958
 
1959
1959
  # Update properties of this object
1960
1960
  def update!(**args)
1961
- @kind = args[:kind] unless args[:kind].nil?
1962
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
1963
- @resources = args[:resources] unless args[:resources].nil?
1961
+ @kind = args[:kind] if args.key?(:kind)
1962
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1963
+ @resources = args[:resources] if args.key?(:resources)
1964
1964
  end
1965
1965
  end
1966
1966
 
@@ -1979,7 +1979,7 @@ module Google
1979
1979
 
1980
1980
  # Update properties of this object
1981
1981
  def update!(**args)
1982
- @entries = args[:entries] unless args[:entries].nil?
1982
+ @entries = args[:entries] if args.key?(:entries)
1983
1983
  end
1984
1984
  end
1985
1985
 
@@ -2013,10 +2013,10 @@ module Google
2013
2013
 
2014
2014
  # Update properties of this object
2015
2015
  def update!(**args)
2016
- @batch_id = args[:batch_id] unless args[:batch_id].nil?
2017
- @datafeed_id = args[:datafeed_id] unless args[:datafeed_id].nil?
2018
- @merchant_id = args[:merchant_id] unless args[:merchant_id].nil?
2019
- @request_method = args[:request_method] unless args[:request_method].nil?
2016
+ @batch_id = args[:batch_id] if args.key?(:batch_id)
2017
+ @datafeed_id = args[:datafeed_id] if args.key?(:datafeed_id)
2018
+ @merchant_id = args[:merchant_id] if args.key?(:merchant_id)
2019
+ @request_method = args[:request_method] if args.key?(:request_method)
2020
2020
  end
2021
2021
  end
2022
2022
 
@@ -2041,8 +2041,8 @@ module Google
2041
2041
 
2042
2042
  # Update properties of this object
2043
2043
  def update!(**args)
2044
- @entries = args[:entries] unless args[:entries].nil?
2045
- @kind = args[:kind] unless args[:kind].nil?
2044
+ @entries = args[:entries] if args.key?(:entries)
2045
+ @kind = args[:kind] if args.key?(:kind)
2046
2046
  end
2047
2047
  end
2048
2048
 
@@ -2072,9 +2072,9 @@ module Google
2072
2072
 
2073
2073
  # Update properties of this object
2074
2074
  def update!(**args)
2075
- @batch_id = args[:batch_id] unless args[:batch_id].nil?
2076
- @datafeed_status = args[:datafeed_status] unless args[:datafeed_status].nil?
2077
- @errors = args[:errors] unless args[:errors].nil?
2075
+ @batch_id = args[:batch_id] if args.key?(:batch_id)
2076
+ @datafeed_status = args[:datafeed_status] if args.key?(:datafeed_status)
2077
+ @errors = args[:errors] if args.key?(:errors)
2078
2078
  end
2079
2079
  end
2080
2080
 
@@ -2104,9 +2104,9 @@ module Google
2104
2104
 
2105
2105
  # Update properties of this object
2106
2106
  def update!(**args)
2107
- @kind = args[:kind] unless args[:kind].nil?
2108
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
2109
- @resources = args[:resources] unless args[:resources].nil?
2107
+ @kind = args[:kind] if args.key?(:kind)
2108
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2109
+ @resources = args[:resources] if args.key?(:resources)
2110
2110
  end
2111
2111
  end
2112
2112
 
@@ -2135,9 +2135,9 @@ module Google
2135
2135
 
2136
2136
  # Update properties of this object
2137
2137
  def update!(**args)
2138
- @domain = args[:domain] unless args[:domain].nil?
2139
- @message = args[:message] unless args[:message].nil?
2140
- @reason = args[:reason] unless args[:reason].nil?
2138
+ @domain = args[:domain] if args.key?(:domain)
2139
+ @message = args[:message] if args.key?(:message)
2140
+ @reason = args[:reason] if args.key?(:reason)
2141
2141
  end
2142
2142
  end
2143
2143
 
@@ -2166,9 +2166,9 @@ module Google
2166
2166
 
2167
2167
  # Update properties of this object
2168
2168
  def update!(**args)
2169
- @code = args[:code] unless args[:code].nil?
2170
- @errors = args[:errors] unless args[:errors].nil?
2171
- @message = args[:message] unless args[:message].nil?
2169
+ @code = args[:code] if args.key?(:code)
2170
+ @errors = args[:errors] if args.key?(:errors)
2171
+ @message = args[:message] if args.key?(:message)
2172
2172
  end
2173
2173
  end
2174
2174
 
@@ -2192,8 +2192,8 @@ module Google
2192
2192
 
2193
2193
  # Update properties of this object
2194
2194
  def update!(**args)
2195
- @amount = args[:amount] unless args[:amount].nil?
2196
- @months = args[:months] unless args[:months].nil?
2195
+ @amount = args[:amount] if args.key?(:amount)
2196
+ @months = args[:months] if args.key?(:months)
2197
2197
  end
2198
2198
  end
2199
2199
 
@@ -2257,15 +2257,15 @@ module Google
2257
2257
 
2258
2258
  # Update properties of this object
2259
2259
  def update!(**args)
2260
- @availability = args[:availability] unless args[:availability].nil?
2261
- @installment = args[:installment] unless args[:installment].nil?
2262
- @kind = args[:kind] unless args[:kind].nil?
2263
- @loyalty_points = args[:loyalty_points] unless args[:loyalty_points].nil?
2264
- @price = args[:price] unless args[:price].nil?
2265
- @quantity = args[:quantity] unless args[:quantity].nil?
2266
- @sale_price = args[:sale_price] unless args[:sale_price].nil?
2267
- @sale_price_effective_date = args[:sale_price_effective_date] unless args[:sale_price_effective_date].nil?
2268
- @sell_on_google_quantity = args[:sell_on_google_quantity] unless args[:sell_on_google_quantity].nil?
2260
+ @availability = args[:availability] if args.key?(:availability)
2261
+ @installment = args[:installment] if args.key?(:installment)
2262
+ @kind = args[:kind] if args.key?(:kind)
2263
+ @loyalty_points = args[:loyalty_points] if args.key?(:loyalty_points)
2264
+ @price = args[:price] if args.key?(:price)
2265
+ @quantity = args[:quantity] if args.key?(:quantity)
2266
+ @sale_price = args[:sale_price] if args.key?(:sale_price)
2267
+ @sale_price_effective_date = args[:sale_price_effective_date] if args.key?(:sale_price_effective_date)
2268
+ @sell_on_google_quantity = args[:sell_on_google_quantity] if args.key?(:sell_on_google_quantity)
2269
2269
  end
2270
2270
  end
2271
2271
 
@@ -2284,7 +2284,7 @@ module Google
2284
2284
 
2285
2285
  # Update properties of this object
2286
2286
  def update!(**args)
2287
- @entries = args[:entries] unless args[:entries].nil?
2287
+ @entries = args[:entries] if args.key?(:entries)
2288
2288
  end
2289
2289
  end
2290
2290
 
@@ -2324,11 +2324,11 @@ module Google
2324
2324
 
2325
2325
  # Update properties of this object
2326
2326
  def update!(**args)
2327
- @batch_id = args[:batch_id] unless args[:batch_id].nil?
2328
- @inventory = args[:inventory] unless args[:inventory].nil?
2329
- @merchant_id = args[:merchant_id] unless args[:merchant_id].nil?
2330
- @product_id = args[:product_id] unless args[:product_id].nil?
2331
- @store_code = args[:store_code] unless args[:store_code].nil?
2327
+ @batch_id = args[:batch_id] if args.key?(:batch_id)
2328
+ @inventory = args[:inventory] if args.key?(:inventory)
2329
+ @merchant_id = args[:merchant_id] if args.key?(:merchant_id)
2330
+ @product_id = args[:product_id] if args.key?(:product_id)
2331
+ @store_code = args[:store_code] if args.key?(:store_code)
2332
2332
  end
2333
2333
  end
2334
2334
 
@@ -2353,8 +2353,8 @@ module Google
2353
2353
 
2354
2354
  # Update properties of this object
2355
2355
  def update!(**args)
2356
- @entries = args[:entries] unless args[:entries].nil?
2357
- @kind = args[:kind] unless args[:kind].nil?
2356
+ @entries = args[:entries] if args.key?(:entries)
2357
+ @kind = args[:kind] if args.key?(:kind)
2358
2358
  end
2359
2359
  end
2360
2360
 
@@ -2384,9 +2384,9 @@ module Google
2384
2384
 
2385
2385
  # Update properties of this object
2386
2386
  def update!(**args)
2387
- @batch_id = args[:batch_id] unless args[:batch_id].nil?
2388
- @errors = args[:errors] unless args[:errors].nil?
2389
- @kind = args[:kind] unless args[:kind].nil?
2387
+ @batch_id = args[:batch_id] if args.key?(:batch_id)
2388
+ @errors = args[:errors] if args.key?(:errors)
2389
+ @kind = args[:kind] if args.key?(:kind)
2390
2390
  end
2391
2391
  end
2392
2392
 
@@ -2444,14 +2444,14 @@ module Google
2444
2444
 
2445
2445
  # Update properties of this object
2446
2446
  def update!(**args)
2447
- @availability = args[:availability] unless args[:availability].nil?
2448
- @installment = args[:installment] unless args[:installment].nil?
2449
- @loyalty_points = args[:loyalty_points] unless args[:loyalty_points].nil?
2450
- @price = args[:price] unless args[:price].nil?
2451
- @quantity = args[:quantity] unless args[:quantity].nil?
2452
- @sale_price = args[:sale_price] unless args[:sale_price].nil?
2453
- @sale_price_effective_date = args[:sale_price_effective_date] unless args[:sale_price_effective_date].nil?
2454
- @sell_on_google_quantity = args[:sell_on_google_quantity] unless args[:sell_on_google_quantity].nil?
2447
+ @availability = args[:availability] if args.key?(:availability)
2448
+ @installment = args[:installment] if args.key?(:installment)
2449
+ @loyalty_points = args[:loyalty_points] if args.key?(:loyalty_points)
2450
+ @price = args[:price] if args.key?(:price)
2451
+ @quantity = args[:quantity] if args.key?(:quantity)
2452
+ @sale_price = args[:sale_price] if args.key?(:sale_price)
2453
+ @sale_price_effective_date = args[:sale_price_effective_date] if args.key?(:sale_price_effective_date)
2454
+ @sell_on_google_quantity = args[:sell_on_google_quantity] if args.key?(:sell_on_google_quantity)
2455
2455
  end
2456
2456
  end
2457
2457
 
@@ -2471,7 +2471,7 @@ module Google
2471
2471
 
2472
2472
  # Update properties of this object
2473
2473
  def update!(**args)
2474
- @kind = args[:kind] unless args[:kind].nil?
2474
+ @kind = args[:kind] if args.key?(:kind)
2475
2475
  end
2476
2476
  end
2477
2477
 
@@ -2502,9 +2502,9 @@ module Google
2502
2502
 
2503
2503
  # Update properties of this object
2504
2504
  def update!(**args)
2505
- @name = args[:name] unless args[:name].nil?
2506
- @points_value = args[:points_value] unless args[:points_value].nil?
2507
- @ratio = args[:ratio] unless args[:ratio].nil?
2505
+ @name = args[:name] if args.key?(:name)
2506
+ @points_value = args[:points_value] if args.key?(:points_value)
2507
+ @ratio = args[:ratio] if args.key?(:ratio)
2508
2508
  end
2509
2509
  end
2510
2510
 
@@ -2576,6 +2576,12 @@ module Google
2576
2576
  # @return [String]
2577
2577
  attr_accessor :placed_date
2578
2578
 
2579
+ # The details of the merchant provided promotions applied to the order. More
2580
+ # details about the program are here.
2581
+ # Corresponds to the JSON property `promotions`
2582
+ # @return [Array<Google::Apis::ContentV2::OrderPromotion>]
2583
+ attr_accessor :promotions
2584
+
2579
2585
  # Refunds for the order.
2580
2586
  # Corresponds to the JSON property `refunds`
2581
2587
  # @return [Array<Google::Apis::ContentV2::OrderRefund>]
@@ -2612,24 +2618,25 @@ module Google
2612
2618
 
2613
2619
  # Update properties of this object
2614
2620
  def update!(**args)
2615
- @acknowledged = args[:acknowledged] unless args[:acknowledged].nil?
2616
- @customer = args[:customer] unless args[:customer].nil?
2617
- @delivery_details = args[:delivery_details] unless args[:delivery_details].nil?
2618
- @id = args[:id] unless args[:id].nil?
2619
- @kind = args[:kind] unless args[:kind].nil?
2620
- @line_items = args[:line_items] unless args[:line_items].nil?
2621
- @merchant_id = args[:merchant_id] unless args[:merchant_id].nil?
2622
- @merchant_order_id = args[:merchant_order_id] unless args[:merchant_order_id].nil?
2623
- @net_amount = args[:net_amount] unless args[:net_amount].nil?
2624
- @payment_method = args[:payment_method] unless args[:payment_method].nil?
2625
- @payment_status = args[:payment_status] unless args[:payment_status].nil?
2626
- @placed_date = args[:placed_date] unless args[:placed_date].nil?
2627
- @refunds = args[:refunds] unless args[:refunds].nil?
2628
- @shipments = args[:shipments] unless args[:shipments].nil?
2629
- @shipping_cost = args[:shipping_cost] unless args[:shipping_cost].nil?
2630
- @shipping_cost_tax = args[:shipping_cost_tax] unless args[:shipping_cost_tax].nil?
2631
- @shipping_option = args[:shipping_option] unless args[:shipping_option].nil?
2632
- @status = args[:status] unless args[:status].nil?
2621
+ @acknowledged = args[:acknowledged] if args.key?(:acknowledged)
2622
+ @customer = args[:customer] if args.key?(:customer)
2623
+ @delivery_details = args[:delivery_details] if args.key?(:delivery_details)
2624
+ @id = args[:id] if args.key?(:id)
2625
+ @kind = args[:kind] if args.key?(:kind)
2626
+ @line_items = args[:line_items] if args.key?(:line_items)
2627
+ @merchant_id = args[:merchant_id] if args.key?(:merchant_id)
2628
+ @merchant_order_id = args[:merchant_order_id] if args.key?(:merchant_order_id)
2629
+ @net_amount = args[:net_amount] if args.key?(:net_amount)
2630
+ @payment_method = args[:payment_method] if args.key?(:payment_method)
2631
+ @payment_status = args[:payment_status] if args.key?(:payment_status)
2632
+ @placed_date = args[:placed_date] if args.key?(:placed_date)
2633
+ @promotions = args[:promotions] if args.key?(:promotions)
2634
+ @refunds = args[:refunds] if args.key?(:refunds)
2635
+ @shipments = args[:shipments] if args.key?(:shipments)
2636
+ @shipping_cost = args[:shipping_cost] if args.key?(:shipping_cost)
2637
+ @shipping_cost_tax = args[:shipping_cost_tax] if args.key?(:shipping_cost_tax)
2638
+ @shipping_option = args[:shipping_option] if args.key?(:shipping_option)
2639
+ @status = args[:status] if args.key?(:status)
2633
2640
  end
2634
2641
  end
2635
2642
 
@@ -2690,14 +2697,14 @@ module Google
2690
2697
 
2691
2698
  # Update properties of this object
2692
2699
  def update!(**args)
2693
- @country = args[:country] unless args[:country].nil?
2694
- @full_address = args[:full_address] unless args[:full_address].nil?
2695
- @is_post_office_box = args[:is_post_office_box] unless args[:is_post_office_box].nil?
2696
- @locality = args[:locality] unless args[:locality].nil?
2697
- @postal_code = args[:postal_code] unless args[:postal_code].nil?
2698
- @recipient_name = args[:recipient_name] unless args[:recipient_name].nil?
2699
- @region = args[:region] unless args[:region].nil?
2700
- @street_address = args[:street_address] unless args[:street_address].nil?
2700
+ @country = args[:country] if args.key?(:country)
2701
+ @full_address = args[:full_address] if args.key?(:full_address)
2702
+ @is_post_office_box = args[:is_post_office_box] if args.key?(:is_post_office_box)
2703
+ @locality = args[:locality] if args.key?(:locality)
2704
+ @postal_code = args[:postal_code] if args.key?(:postal_code)
2705
+ @recipient_name = args[:recipient_name] if args.key?(:recipient_name)
2706
+ @region = args[:region] if args.key?(:region)
2707
+ @street_address = args[:street_address] if args.key?(:street_address)
2701
2708
  end
2702
2709
  end
2703
2710
 
@@ -2736,11 +2743,11 @@ module Google
2736
2743
 
2737
2744
  # Update properties of this object
2738
2745
  def update!(**args)
2739
- @actor = args[:actor] unless args[:actor].nil?
2740
- @creation_date = args[:creation_date] unless args[:creation_date].nil?
2741
- @quantity = args[:quantity] unless args[:quantity].nil?
2742
- @reason = args[:reason] unless args[:reason].nil?
2743
- @reason_text = args[:reason_text] unless args[:reason_text].nil?
2746
+ @actor = args[:actor] if args.key?(:actor)
2747
+ @creation_date = args[:creation_date] if args.key?(:creation_date)
2748
+ @quantity = args[:quantity] if args.key?(:quantity)
2749
+ @reason = args[:reason] if args.key?(:reason)
2750
+ @reason_text = args[:reason_text] if args.key?(:reason_text)
2744
2751
  end
2745
2752
  end
2746
2753
 
@@ -2774,9 +2781,9 @@ module Google
2774
2781
 
2775
2782
  # Update properties of this object
2776
2783
  def update!(**args)
2777
- @email = args[:email] unless args[:email].nil?
2778
- @explicit_marketing_preference = args[:explicit_marketing_preference] unless args[:explicit_marketing_preference].nil?
2779
- @full_name = args[:full_name] unless args[:full_name].nil?
2784
+ @email = args[:email] if args.key?(:email)
2785
+ @explicit_marketing_preference = args[:explicit_marketing_preference] if args.key?(:explicit_marketing_preference)
2786
+ @full_name = args[:full_name] if args.key?(:full_name)
2780
2787
  end
2781
2788
  end
2782
2789
 
@@ -2800,8 +2807,8 @@ module Google
2800
2807
 
2801
2808
  # Update properties of this object
2802
2809
  def update!(**args)
2803
- @address = args[:address] unless args[:address].nil?
2804
- @phone_number = args[:phone_number] unless args[:phone_number].nil?
2810
+ @address = args[:address] if args.key?(:address)
2811
+ @phone_number = args[:phone_number] if args.key?(:phone_number)
2805
2812
  end
2806
2813
  end
2807
2814
 
@@ -2887,20 +2894,20 @@ module Google
2887
2894
 
2888
2895
  # Update properties of this object
2889
2896
  def update!(**args)
2890
- @cancellations = args[:cancellations] unless args[:cancellations].nil?
2891
- @id = args[:id] unless args[:id].nil?
2892
- @price = args[:price] unless args[:price].nil?
2893
- @product = args[:product] unless args[:product].nil?
2894
- @quantity_canceled = args[:quantity_canceled] unless args[:quantity_canceled].nil?
2895
- @quantity_delivered = args[:quantity_delivered] unless args[:quantity_delivered].nil?
2896
- @quantity_ordered = args[:quantity_ordered] unless args[:quantity_ordered].nil?
2897
- @quantity_pending = args[:quantity_pending] unless args[:quantity_pending].nil?
2898
- @quantity_returned = args[:quantity_returned] unless args[:quantity_returned].nil?
2899
- @quantity_shipped = args[:quantity_shipped] unless args[:quantity_shipped].nil?
2900
- @return_info = args[:return_info] unless args[:return_info].nil?
2901
- @returns = args[:returns] unless args[:returns].nil?
2902
- @shipping_details = args[:shipping_details] unless args[:shipping_details].nil?
2903
- @tax = args[:tax] unless args[:tax].nil?
2897
+ @cancellations = args[:cancellations] if args.key?(:cancellations)
2898
+ @id = args[:id] if args.key?(:id)
2899
+ @price = args[:price] if args.key?(:price)
2900
+ @product = args[:product] if args.key?(:product)
2901
+ @quantity_canceled = args[:quantity_canceled] if args.key?(:quantity_canceled)
2902
+ @quantity_delivered = args[:quantity_delivered] if args.key?(:quantity_delivered)
2903
+ @quantity_ordered = args[:quantity_ordered] if args.key?(:quantity_ordered)
2904
+ @quantity_pending = args[:quantity_pending] if args.key?(:quantity_pending)
2905
+ @quantity_returned = args[:quantity_returned] if args.key?(:quantity_returned)
2906
+ @quantity_shipped = args[:quantity_shipped] if args.key?(:quantity_shipped)
2907
+ @return_info = args[:return_info] if args.key?(:return_info)
2908
+ @returns = args[:returns] if args.key?(:returns)
2909
+ @shipping_details = args[:shipping_details] if args.key?(:shipping_details)
2910
+ @tax = args[:tax] if args.key?(:tax)
2904
2911
  end
2905
2912
  end
2906
2913
 
@@ -2991,21 +2998,21 @@ module Google
2991
2998
 
2992
2999
  # Update properties of this object
2993
3000
  def update!(**args)
2994
- @brand = args[:brand] unless args[:brand].nil?
2995
- @channel = args[:channel] unless args[:channel].nil?
2996
- @condition = args[:condition] unless args[:condition].nil?
2997
- @content_language = args[:content_language] unless args[:content_language].nil?
2998
- @gtin = args[:gtin] unless args[:gtin].nil?
2999
- @id = args[:id] unless args[:id].nil?
3000
- @image_link = args[:image_link] unless args[:image_link].nil?
3001
- @item_group_id = args[:item_group_id] unless args[:item_group_id].nil?
3002
- @mpn = args[:mpn] unless args[:mpn].nil?
3003
- @offer_id = args[:offer_id] unless args[:offer_id].nil?
3004
- @price = args[:price] unless args[:price].nil?
3005
- @shown_image = args[:shown_image] unless args[:shown_image].nil?
3006
- @target_country = args[:target_country] unless args[:target_country].nil?
3007
- @title = args[:title] unless args[:title].nil?
3008
- @variant_attributes = args[:variant_attributes] unless args[:variant_attributes].nil?
3001
+ @brand = args[:brand] if args.key?(:brand)
3002
+ @channel = args[:channel] if args.key?(:channel)
3003
+ @condition = args[:condition] if args.key?(:condition)
3004
+ @content_language = args[:content_language] if args.key?(:content_language)
3005
+ @gtin = args[:gtin] if args.key?(:gtin)
3006
+ @id = args[:id] if args.key?(:id)
3007
+ @image_link = args[:image_link] if args.key?(:image_link)
3008
+ @item_group_id = args[:item_group_id] if args.key?(:item_group_id)
3009
+ @mpn = args[:mpn] if args.key?(:mpn)
3010
+ @offer_id = args[:offer_id] if args.key?(:offer_id)
3011
+ @price = args[:price] if args.key?(:price)
3012
+ @shown_image = args[:shown_image] if args.key?(:shown_image)
3013
+ @target_country = args[:target_country] if args.key?(:target_country)
3014
+ @title = args[:title] if args.key?(:title)
3015
+ @variant_attributes = args[:variant_attributes] if args.key?(:variant_attributes)
3009
3016
  end
3010
3017
  end
3011
3018
 
@@ -3029,8 +3036,8 @@ module Google
3029
3036
 
3030
3037
  # Update properties of this object
3031
3038
  def update!(**args)
3032
- @dimension = args[:dimension] unless args[:dimension].nil?
3033
- @value = args[:value] unless args[:value].nil?
3039
+ @dimension = args[:dimension] if args.key?(:dimension)
3040
+ @value = args[:value] if args.key?(:value)
3034
3041
  end
3035
3042
  end
3036
3043
 
@@ -3060,9 +3067,9 @@ module Google
3060
3067
 
3061
3068
  # Update properties of this object
3062
3069
  def update!(**args)
3063
- @days_to_return = args[:days_to_return] unless args[:days_to_return].nil?
3064
- @is_returnable = args[:is_returnable] unless args[:is_returnable].nil?
3065
- @policy_url = args[:policy_url] unless args[:policy_url].nil?
3070
+ @days_to_return = args[:days_to_return] if args.key?(:days_to_return)
3071
+ @is_returnable = args[:is_returnable] if args.key?(:is_returnable)
3072
+ @policy_url = args[:policy_url] if args.key?(:policy_url)
3066
3073
  end
3067
3074
  end
3068
3075
 
@@ -3091,9 +3098,9 @@ module Google
3091
3098
 
3092
3099
  # Update properties of this object
3093
3100
  def update!(**args)
3094
- @deliver_by_date = args[:deliver_by_date] unless args[:deliver_by_date].nil?
3095
- @method_prop = args[:method_prop] unless args[:method_prop].nil?
3096
- @ship_by_date = args[:ship_by_date] unless args[:ship_by_date].nil?
3101
+ @deliver_by_date = args[:deliver_by_date] if args.key?(:deliver_by_date)
3102
+ @method_prop = args[:method_prop] if args.key?(:method_prop)
3103
+ @ship_by_date = args[:ship_by_date] if args.key?(:ship_by_date)
3097
3104
  end
3098
3105
  end
3099
3106
 
@@ -3127,10 +3134,10 @@ module Google
3127
3134
 
3128
3135
  # Update properties of this object
3129
3136
  def update!(**args)
3130
- @carrier = args[:carrier] unless args[:carrier].nil?
3131
- @max_days_in_transit = args[:max_days_in_transit] unless args[:max_days_in_transit].nil?
3132
- @method_name = args[:method_name] unless args[:method_name].nil?
3133
- @min_days_in_transit = args[:min_days_in_transit] unless args[:min_days_in_transit].nil?
3137
+ @carrier = args[:carrier] if args.key?(:carrier)
3138
+ @max_days_in_transit = args[:max_days_in_transit] if args.key?(:max_days_in_transit)
3139
+ @method_name = args[:method_name] if args.key?(:method_name)
3140
+ @min_days_in_transit = args[:min_days_in_transit] if args.key?(:min_days_in_transit)
3134
3141
  end
3135
3142
  end
3136
3143
 
@@ -3174,12 +3181,120 @@ module Google
3174
3181
 
3175
3182
  # Update properties of this object
3176
3183
  def update!(**args)
3177
- @billing_address = args[:billing_address] unless args[:billing_address].nil?
3178
- @expiration_month = args[:expiration_month] unless args[:expiration_month].nil?
3179
- @expiration_year = args[:expiration_year] unless args[:expiration_year].nil?
3180
- @last_four_digits = args[:last_four_digits] unless args[:last_four_digits].nil?
3181
- @phone_number = args[:phone_number] unless args[:phone_number].nil?
3182
- @type = args[:type] unless args[:type].nil?
3184
+ @billing_address = args[:billing_address] if args.key?(:billing_address)
3185
+ @expiration_month = args[:expiration_month] if args.key?(:expiration_month)
3186
+ @expiration_year = args[:expiration_year] if args.key?(:expiration_year)
3187
+ @last_four_digits = args[:last_four_digits] if args.key?(:last_four_digits)
3188
+ @phone_number = args[:phone_number] if args.key?(:phone_number)
3189
+ @type = args[:type] if args.key?(:type)
3190
+ end
3191
+ end
3192
+
3193
+ #
3194
+ class OrderPromotion
3195
+ include Google::Apis::Core::Hashable
3196
+
3197
+ #
3198
+ # Corresponds to the JSON property `benefits`
3199
+ # @return [Array<Google::Apis::ContentV2::OrderPromotionBenefit>]
3200
+ attr_accessor :benefits
3201
+
3202
+ # The date and time frame when the promotion is active and ready for validation
3203
+ # review. Note that the promotion live time may be delayed for a few hours due
3204
+ # to the validation review.
3205
+ # Start date and end date are separated by a forward slash (/). The start date
3206
+ # is specified by the format (YYYY-MM-DD), followed by the letter ?T?, the time
3207
+ # of the day when the sale starts (in Greenwich Mean Time, GMT), followed by an
3208
+ # expression of the time zone for the sale. The end date is in the same format.
3209
+ # Corresponds to the JSON property `effectiveDates`
3210
+ # @return [String]
3211
+ attr_accessor :effective_dates
3212
+
3213
+ # Optional. The text code that corresponds to the promotion when applied on the
3214
+ # retailer?s website.
3215
+ # Corresponds to the JSON property `genericRedemptionCode`
3216
+ # @return [String]
3217
+ attr_accessor :generic_redemption_code
3218
+
3219
+ # The unique ID of the promotion.
3220
+ # Corresponds to the JSON property `id`
3221
+ # @return [String]
3222
+ attr_accessor :id
3223
+
3224
+ # The full title of the promotion.
3225
+ # Corresponds to the JSON property `longTitle`
3226
+ # @return [String]
3227
+ attr_accessor :long_title
3228
+
3229
+ # Whether the promotion is applicable to all products or only specific products.
3230
+ # Corresponds to the JSON property `productApplicability`
3231
+ # @return [String]
3232
+ attr_accessor :product_applicability
3233
+
3234
+ # Indicates that the promotion is valid online.
3235
+ # Corresponds to the JSON property `redemptionChannel`
3236
+ # @return [String]
3237
+ attr_accessor :redemption_channel
3238
+
3239
+ def initialize(**args)
3240
+ update!(**args)
3241
+ end
3242
+
3243
+ # Update properties of this object
3244
+ def update!(**args)
3245
+ @benefits = args[:benefits] if args.key?(:benefits)
3246
+ @effective_dates = args[:effective_dates] if args.key?(:effective_dates)
3247
+ @generic_redemption_code = args[:generic_redemption_code] if args.key?(:generic_redemption_code)
3248
+ @id = args[:id] if args.key?(:id)
3249
+ @long_title = args[:long_title] if args.key?(:long_title)
3250
+ @product_applicability = args[:product_applicability] if args.key?(:product_applicability)
3251
+ @redemption_channel = args[:redemption_channel] if args.key?(:redemption_channel)
3252
+ end
3253
+ end
3254
+
3255
+ #
3256
+ class OrderPromotionBenefit
3257
+ include Google::Apis::Core::Hashable
3258
+
3259
+ # The discount in the order price when the promotion is applied.
3260
+ # Corresponds to the JSON property `discount`
3261
+ # @return [Google::Apis::ContentV2::Price]
3262
+ attr_accessor :discount
3263
+
3264
+ # The OfferId(s) that were purchased in this order and map to this specific
3265
+ # benefit of the promotion.
3266
+ # Corresponds to the JSON property `offerIds`
3267
+ # @return [Array<String>]
3268
+ attr_accessor :offer_ids
3269
+
3270
+ # Further describes the benefit of the promotion. Note that we will expand on
3271
+ # this enumeration as we support new promotion sub-types.
3272
+ # Corresponds to the JSON property `subType`
3273
+ # @return [String]
3274
+ attr_accessor :sub_type
3275
+
3276
+ # The impact on tax when the promotion is applied.
3277
+ # Corresponds to the JSON property `taxImpact`
3278
+ # @return [Google::Apis::ContentV2::Price]
3279
+ attr_accessor :tax_impact
3280
+
3281
+ # Describes whether the promotion applies to products (e.g. 20% off) or to
3282
+ # shipping (e.g. Free Shipping).
3283
+ # Corresponds to the JSON property `type`
3284
+ # @return [String]
3285
+ attr_accessor :type
3286
+
3287
+ def initialize(**args)
3288
+ update!(**args)
3289
+ end
3290
+
3291
+ # Update properties of this object
3292
+ def update!(**args)
3293
+ @discount = args[:discount] if args.key?(:discount)
3294
+ @offer_ids = args[:offer_ids] if args.key?(:offer_ids)
3295
+ @sub_type = args[:sub_type] if args.key?(:sub_type)
3296
+ @tax_impact = args[:tax_impact] if args.key?(:tax_impact)
3297
+ @type = args[:type] if args.key?(:type)
3183
3298
  end
3184
3299
  end
3185
3300
 
@@ -3218,11 +3333,11 @@ module Google
3218
3333
 
3219
3334
  # Update properties of this object
3220
3335
  def update!(**args)
3221
- @actor = args[:actor] unless args[:actor].nil?
3222
- @amount = args[:amount] unless args[:amount].nil?
3223
- @creation_date = args[:creation_date] unless args[:creation_date].nil?
3224
- @reason = args[:reason] unless args[:reason].nil?
3225
- @reason_text = args[:reason_text] unless args[:reason_text].nil?
3336
+ @actor = args[:actor] if args.key?(:actor)
3337
+ @amount = args[:amount] if args.key?(:amount)
3338
+ @creation_date = args[:creation_date] if args.key?(:creation_date)
3339
+ @reason = args[:reason] if args.key?(:reason)
3340
+ @reason_text = args[:reason_text] if args.key?(:reason_text)
3226
3341
  end
3227
3342
  end
3228
3343
 
@@ -3261,11 +3376,11 @@ module Google
3261
3376
 
3262
3377
  # Update properties of this object
3263
3378
  def update!(**args)
3264
- @actor = args[:actor] unless args[:actor].nil?
3265
- @creation_date = args[:creation_date] unless args[:creation_date].nil?
3266
- @quantity = args[:quantity] unless args[:quantity].nil?
3267
- @reason = args[:reason] unless args[:reason].nil?
3268
- @reason_text = args[:reason_text] unless args[:reason_text].nil?
3379
+ @actor = args[:actor] if args.key?(:actor)
3380
+ @creation_date = args[:creation_date] if args.key?(:creation_date)
3381
+ @quantity = args[:quantity] if args.key?(:quantity)
3382
+ @reason = args[:reason] if args.key?(:reason)
3383
+ @reason_text = args[:reason_text] if args.key?(:reason_text)
3269
3384
  end
3270
3385
  end
3271
3386
 
@@ -3315,13 +3430,13 @@ module Google
3315
3430
 
3316
3431
  # Update properties of this object
3317
3432
  def update!(**args)
3318
- @carrier = args[:carrier] unless args[:carrier].nil?
3319
- @creation_date = args[:creation_date] unless args[:creation_date].nil?
3320
- @delivery_date = args[:delivery_date] unless args[:delivery_date].nil?
3321
- @id = args[:id] unless args[:id].nil?
3322
- @line_items = args[:line_items] unless args[:line_items].nil?
3323
- @status = args[:status] unless args[:status].nil?
3324
- @tracking_id = args[:tracking_id] unless args[:tracking_id].nil?
3433
+ @carrier = args[:carrier] if args.key?(:carrier)
3434
+ @creation_date = args[:creation_date] if args.key?(:creation_date)
3435
+ @delivery_date = args[:delivery_date] if args.key?(:delivery_date)
3436
+ @id = args[:id] if args.key?(:id)
3437
+ @line_items = args[:line_items] if args.key?(:line_items)
3438
+ @status = args[:status] if args.key?(:status)
3439
+ @tracking_id = args[:tracking_id] if args.key?(:tracking_id)
3325
3440
  end
3326
3441
  end
3327
3442
 
@@ -3345,8 +3460,8 @@ module Google
3345
3460
 
3346
3461
  # Update properties of this object
3347
3462
  def update!(**args)
3348
- @line_item_id = args[:line_item_id] unless args[:line_item_id].nil?
3349
- @quantity = args[:quantity] unless args[:quantity].nil?
3463
+ @line_item_id = args[:line_item_id] if args.key?(:line_item_id)
3464
+ @quantity = args[:quantity] if args.key?(:quantity)
3350
3465
  end
3351
3466
  end
3352
3467
 
@@ -3365,7 +3480,7 @@ module Google
3365
3480
 
3366
3481
  # Update properties of this object
3367
3482
  def update!(**args)
3368
- @operation_id = args[:operation_id] unless args[:operation_id].nil?
3483
+ @operation_id = args[:operation_id] if args.key?(:operation_id)
3369
3484
  end
3370
3485
  end
3371
3486
 
@@ -3390,8 +3505,8 @@ module Google
3390
3505
 
3391
3506
  # Update properties of this object
3392
3507
  def update!(**args)
3393
- @execution_status = args[:execution_status] unless args[:execution_status].nil?
3394
- @kind = args[:kind] unless args[:kind].nil?
3508
+ @execution_status = args[:execution_status] if args.key?(:execution_status)
3509
+ @kind = args[:kind] if args.key?(:kind)
3395
3510
  end
3396
3511
  end
3397
3512
 
@@ -3411,7 +3526,7 @@ module Google
3411
3526
 
3412
3527
  # Update properties of this object
3413
3528
  def update!(**args)
3414
- @kind = args[:kind] unless args[:kind].nil?
3529
+ @kind = args[:kind] if args.key?(:kind)
3415
3530
  end
3416
3531
  end
3417
3532
 
@@ -3457,12 +3572,12 @@ module Google
3457
3572
 
3458
3573
  # Update properties of this object
3459
3574
  def update!(**args)
3460
- @amount = args[:amount] unless args[:amount].nil?
3461
- @line_item_id = args[:line_item_id] unless args[:line_item_id].nil?
3462
- @operation_id = args[:operation_id] unless args[:operation_id].nil?
3463
- @quantity = args[:quantity] unless args[:quantity].nil?
3464
- @reason = args[:reason] unless args[:reason].nil?
3465
- @reason_text = args[:reason_text] unless args[:reason_text].nil?
3575
+ @amount = args[:amount] if args.key?(:amount)
3576
+ @line_item_id = args[:line_item_id] if args.key?(:line_item_id)
3577
+ @operation_id = args[:operation_id] if args.key?(:operation_id)
3578
+ @quantity = args[:quantity] if args.key?(:quantity)
3579
+ @reason = args[:reason] if args.key?(:reason)
3580
+ @reason_text = args[:reason_text] if args.key?(:reason_text)
3466
3581
  end
3467
3582
  end
3468
3583
 
@@ -3487,8 +3602,8 @@ module Google
3487
3602
 
3488
3603
  # Update properties of this object
3489
3604
  def update!(**args)
3490
- @execution_status = args[:execution_status] unless args[:execution_status].nil?
3491
- @kind = args[:kind] unless args[:kind].nil?
3605
+ @execution_status = args[:execution_status] if args.key?(:execution_status)
3606
+ @kind = args[:kind] if args.key?(:kind)
3492
3607
  end
3493
3608
  end
3494
3609
 
@@ -3517,9 +3632,9 @@ module Google
3517
3632
 
3518
3633
  # Update properties of this object
3519
3634
  def update!(**args)
3520
- @operation_id = args[:operation_id] unless args[:operation_id].nil?
3521
- @reason = args[:reason] unless args[:reason].nil?
3522
- @reason_text = args[:reason_text] unless args[:reason_text].nil?
3635
+ @operation_id = args[:operation_id] if args.key?(:operation_id)
3636
+ @reason = args[:reason] if args.key?(:reason)
3637
+ @reason_text = args[:reason_text] if args.key?(:reason_text)
3523
3638
  end
3524
3639
  end
3525
3640
 
@@ -3544,8 +3659,8 @@ module Google
3544
3659
 
3545
3660
  # Update properties of this object
3546
3661
  def update!(**args)
3547
- @execution_status = args[:execution_status] unless args[:execution_status].nil?
3548
- @kind = args[:kind] unless args[:kind].nil?
3662
+ @execution_status = args[:execution_status] if args.key?(:execution_status)
3663
+ @kind = args[:kind] if args.key?(:kind)
3549
3664
  end
3550
3665
  end
3551
3666
 
@@ -3571,8 +3686,8 @@ module Google
3571
3686
 
3572
3687
  # Update properties of this object
3573
3688
  def update!(**args)
3574
- @template_name = args[:template_name] unless args[:template_name].nil?
3575
- @test_order = args[:test_order] unless args[:test_order].nil?
3689
+ @template_name = args[:template_name] if args.key?(:template_name)
3690
+ @test_order = args[:test_order] if args.key?(:test_order)
3576
3691
  end
3577
3692
  end
3578
3693
 
@@ -3597,8 +3712,8 @@ module Google
3597
3712
 
3598
3713
  # Update properties of this object
3599
3714
  def update!(**args)
3600
- @kind = args[:kind] unless args[:kind].nil?
3601
- @order_id = args[:order_id] unless args[:order_id].nil?
3715
+ @kind = args[:kind] if args.key?(:kind)
3716
+ @order_id = args[:order_id] if args.key?(:order_id)
3602
3717
  end
3603
3718
  end
3604
3719
 
@@ -3617,7 +3732,7 @@ module Google
3617
3732
 
3618
3733
  # Update properties of this object
3619
3734
  def update!(**args)
3620
- @entries = args[:entries] unless args[:entries].nil?
3735
+ @entries = args[:entries] if args.key?(:entries)
3621
3736
  end
3622
3737
  end
3623
3738
 
@@ -3693,18 +3808,18 @@ module Google
3693
3808
 
3694
3809
  # Update properties of this object
3695
3810
  def update!(**args)
3696
- @batch_id = args[:batch_id] unless args[:batch_id].nil?
3697
- @cancel = args[:cancel] unless args[:cancel].nil?
3698
- @cancel_line_item = args[:cancel_line_item] unless args[:cancel_line_item].nil?
3699
- @merchant_id = args[:merchant_id] unless args[:merchant_id].nil?
3700
- @merchant_order_id = args[:merchant_order_id] unless args[:merchant_order_id].nil?
3701
- @method_prop = args[:method_prop] unless args[:method_prop].nil?
3702
- @operation_id = args[:operation_id] unless args[:operation_id].nil?
3703
- @order_id = args[:order_id] unless args[:order_id].nil?
3704
- @refund = args[:refund] unless args[:refund].nil?
3705
- @return_line_item = args[:return_line_item] unless args[:return_line_item].nil?
3706
- @ship_line_items = args[:ship_line_items] unless args[:ship_line_items].nil?
3707
- @update_shipment = args[:update_shipment] unless args[:update_shipment].nil?
3811
+ @batch_id = args[:batch_id] if args.key?(:batch_id)
3812
+ @cancel = args[:cancel] if args.key?(:cancel)
3813
+ @cancel_line_item = args[:cancel_line_item] if args.key?(:cancel_line_item)
3814
+ @merchant_id = args[:merchant_id] if args.key?(:merchant_id)
3815
+ @merchant_order_id = args[:merchant_order_id] if args.key?(:merchant_order_id)
3816
+ @method_prop = args[:method_prop] if args.key?(:method_prop)
3817
+ @operation_id = args[:operation_id] if args.key?(:operation_id)
3818
+ @order_id = args[:order_id] if args.key?(:order_id)
3819
+ @refund = args[:refund] if args.key?(:refund)
3820
+ @return_line_item = args[:return_line_item] if args.key?(:return_line_item)
3821
+ @ship_line_items = args[:ship_line_items] if args.key?(:ship_line_items)
3822
+ @update_shipment = args[:update_shipment] if args.key?(:update_shipment)
3708
3823
  end
3709
3824
  end
3710
3825
 
@@ -3728,8 +3843,8 @@ module Google
3728
3843
 
3729
3844
  # Update properties of this object
3730
3845
  def update!(**args)
3731
- @reason = args[:reason] unless args[:reason].nil?
3732
- @reason_text = args[:reason_text] unless args[:reason_text].nil?
3846
+ @reason = args[:reason] if args.key?(:reason)
3847
+ @reason_text = args[:reason_text] if args.key?(:reason_text)
3733
3848
  end
3734
3849
  end
3735
3850
 
@@ -3770,11 +3885,11 @@ module Google
3770
3885
 
3771
3886
  # Update properties of this object
3772
3887
  def update!(**args)
3773
- @amount = args[:amount] unless args[:amount].nil?
3774
- @line_item_id = args[:line_item_id] unless args[:line_item_id].nil?
3775
- @quantity = args[:quantity] unless args[:quantity].nil?
3776
- @reason = args[:reason] unless args[:reason].nil?
3777
- @reason_text = args[:reason_text] unless args[:reason_text].nil?
3888
+ @amount = args[:amount] if args.key?(:amount)
3889
+ @line_item_id = args[:line_item_id] if args.key?(:line_item_id)
3890
+ @quantity = args[:quantity] if args.key?(:quantity)
3891
+ @reason = args[:reason] if args.key?(:reason)
3892
+ @reason_text = args[:reason_text] if args.key?(:reason_text)
3778
3893
  end
3779
3894
  end
3780
3895
 
@@ -3803,9 +3918,9 @@ module Google
3803
3918
 
3804
3919
  # Update properties of this object
3805
3920
  def update!(**args)
3806
- @amount = args[:amount] unless args[:amount].nil?
3807
- @reason = args[:reason] unless args[:reason].nil?
3808
- @reason_text = args[:reason_text] unless args[:reason_text].nil?
3921
+ @amount = args[:amount] if args.key?(:amount)
3922
+ @reason = args[:reason] if args.key?(:reason)
3923
+ @reason_text = args[:reason_text] if args.key?(:reason_text)
3809
3924
  end
3810
3925
  end
3811
3926
 
@@ -3839,10 +3954,10 @@ module Google
3839
3954
 
3840
3955
  # Update properties of this object
3841
3956
  def update!(**args)
3842
- @line_item_id = args[:line_item_id] unless args[:line_item_id].nil?
3843
- @quantity = args[:quantity] unless args[:quantity].nil?
3844
- @reason = args[:reason] unless args[:reason].nil?
3845
- @reason_text = args[:reason_text] unless args[:reason_text].nil?
3957
+ @line_item_id = args[:line_item_id] if args.key?(:line_item_id)
3958
+ @quantity = args[:quantity] if args.key?(:quantity)
3959
+ @reason = args[:reason] if args.key?(:reason)
3960
+ @reason_text = args[:reason_text] if args.key?(:reason_text)
3846
3961
  end
3847
3962
  end
3848
3963
 
@@ -3876,10 +3991,10 @@ module Google
3876
3991
 
3877
3992
  # Update properties of this object
3878
3993
  def update!(**args)
3879
- @carrier = args[:carrier] unless args[:carrier].nil?
3880
- @line_items = args[:line_items] unless args[:line_items].nil?
3881
- @shipment_id = args[:shipment_id] unless args[:shipment_id].nil?
3882
- @tracking_id = args[:tracking_id] unless args[:tracking_id].nil?
3994
+ @carrier = args[:carrier] if args.key?(:carrier)
3995
+ @line_items = args[:line_items] if args.key?(:line_items)
3996
+ @shipment_id = args[:shipment_id] if args.key?(:shipment_id)
3997
+ @tracking_id = args[:tracking_id] if args.key?(:tracking_id)
3883
3998
  end
3884
3999
  end
3885
4000
 
@@ -3913,10 +4028,10 @@ module Google
3913
4028
 
3914
4029
  # Update properties of this object
3915
4030
  def update!(**args)
3916
- @carrier = args[:carrier] unless args[:carrier].nil?
3917
- @shipment_id = args[:shipment_id] unless args[:shipment_id].nil?
3918
- @status = args[:status] unless args[:status].nil?
3919
- @tracking_id = args[:tracking_id] unless args[:tracking_id].nil?
4031
+ @carrier = args[:carrier] if args.key?(:carrier)
4032
+ @shipment_id = args[:shipment_id] if args.key?(:shipment_id)
4033
+ @status = args[:status] if args.key?(:status)
4034
+ @tracking_id = args[:tracking_id] if args.key?(:tracking_id)
3920
4035
  end
3921
4036
  end
3922
4037
 
@@ -3941,8 +4056,8 @@ module Google
3941
4056
 
3942
4057
  # Update properties of this object
3943
4058
  def update!(**args)
3944
- @entries = args[:entries] unless args[:entries].nil?
3945
- @kind = args[:kind] unless args[:kind].nil?
4059
+ @entries = args[:entries] if args.key?(:entries)
4060
+ @kind = args[:kind] if args.key?(:kind)
3946
4061
  end
3947
4062
  end
3948
4063
 
@@ -3984,11 +4099,11 @@ module Google
3984
4099
 
3985
4100
  # Update properties of this object
3986
4101
  def update!(**args)
3987
- @batch_id = args[:batch_id] unless args[:batch_id].nil?
3988
- @errors = args[:errors] unless args[:errors].nil?
3989
- @execution_status = args[:execution_status] unless args[:execution_status].nil?
3990
- @kind = args[:kind] unless args[:kind].nil?
3991
- @order = args[:order] unless args[:order].nil?
4102
+ @batch_id = args[:batch_id] if args.key?(:batch_id)
4103
+ @errors = args[:errors] if args.key?(:errors)
4104
+ @execution_status = args[:execution_status] if args.key?(:execution_status)
4105
+ @kind = args[:kind] if args.key?(:kind)
4106
+ @order = args[:order] if args.key?(:order)
3992
4107
  end
3993
4108
  end
3994
4109
 
@@ -4013,8 +4128,8 @@ module Google
4013
4128
 
4014
4129
  # Update properties of this object
4015
4130
  def update!(**args)
4016
- @kind = args[:kind] unless args[:kind].nil?
4017
- @order = args[:order] unless args[:order].nil?
4131
+ @kind = args[:kind] if args.key?(:kind)
4132
+ @order = args[:order] if args.key?(:order)
4018
4133
  end
4019
4134
  end
4020
4135
 
@@ -4039,8 +4154,8 @@ module Google
4039
4154
 
4040
4155
  # Update properties of this object
4041
4156
  def update!(**args)
4042
- @kind = args[:kind] unless args[:kind].nil?
4043
- @template = args[:template] unless args[:template].nil?
4157
+ @kind = args[:kind] if args.key?(:kind)
4158
+ @template = args[:template] if args.key?(:template)
4044
4159
  end
4045
4160
  end
4046
4161
 
@@ -4070,9 +4185,9 @@ module Google
4070
4185
 
4071
4186
  # Update properties of this object
4072
4187
  def update!(**args)
4073
- @kind = args[:kind] unless args[:kind].nil?
4074
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
4075
- @resources = args[:resources] unless args[:resources].nil?
4188
+ @kind = args[:kind] if args.key?(:kind)
4189
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
4190
+ @resources = args[:resources] if args.key?(:resources)
4076
4191
  end
4077
4192
  end
4078
4193
 
@@ -4106,10 +4221,10 @@ module Google
4106
4221
 
4107
4222
  # Update properties of this object
4108
4223
  def update!(**args)
4109
- @amount = args[:amount] unless args[:amount].nil?
4110
- @operation_id = args[:operation_id] unless args[:operation_id].nil?
4111
- @reason = args[:reason] unless args[:reason].nil?
4112
- @reason_text = args[:reason_text] unless args[:reason_text].nil?
4224
+ @amount = args[:amount] if args.key?(:amount)
4225
+ @operation_id = args[:operation_id] if args.key?(:operation_id)
4226
+ @reason = args[:reason] if args.key?(:reason)
4227
+ @reason_text = args[:reason_text] if args.key?(:reason_text)
4113
4228
  end
4114
4229
  end
4115
4230
 
@@ -4134,8 +4249,8 @@ module Google
4134
4249
 
4135
4250
  # Update properties of this object
4136
4251
  def update!(**args)
4137
- @execution_status = args[:execution_status] unless args[:execution_status].nil?
4138
- @kind = args[:kind] unless args[:kind].nil?
4252
+ @execution_status = args[:execution_status] if args.key?(:execution_status)
4253
+ @kind = args[:kind] if args.key?(:kind)
4139
4254
  end
4140
4255
  end
4141
4256
 
@@ -4174,11 +4289,11 @@ module Google
4174
4289
 
4175
4290
  # Update properties of this object
4176
4291
  def update!(**args)
4177
- @line_item_id = args[:line_item_id] unless args[:line_item_id].nil?
4178
- @operation_id = args[:operation_id] unless args[:operation_id].nil?
4179
- @quantity = args[:quantity] unless args[:quantity].nil?
4180
- @reason = args[:reason] unless args[:reason].nil?
4181
- @reason_text = args[:reason_text] unless args[:reason_text].nil?
4292
+ @line_item_id = args[:line_item_id] if args.key?(:line_item_id)
4293
+ @operation_id = args[:operation_id] if args.key?(:operation_id)
4294
+ @quantity = args[:quantity] if args.key?(:quantity)
4295
+ @reason = args[:reason] if args.key?(:reason)
4296
+ @reason_text = args[:reason_text] if args.key?(:reason_text)
4182
4297
  end
4183
4298
  end
4184
4299
 
@@ -4203,8 +4318,8 @@ module Google
4203
4318
 
4204
4319
  # Update properties of this object
4205
4320
  def update!(**args)
4206
- @execution_status = args[:execution_status] unless args[:execution_status].nil?
4207
- @kind = args[:kind] unless args[:kind].nil?
4321
+ @execution_status = args[:execution_status] if args.key?(:execution_status)
4322
+ @kind = args[:kind] if args.key?(:kind)
4208
4323
  end
4209
4324
  end
4210
4325
 
@@ -4243,11 +4358,11 @@ module Google
4243
4358
 
4244
4359
  # Update properties of this object
4245
4360
  def update!(**args)
4246
- @carrier = args[:carrier] unless args[:carrier].nil?
4247
- @line_items = args[:line_items] unless args[:line_items].nil?
4248
- @operation_id = args[:operation_id] unless args[:operation_id].nil?
4249
- @shipment_id = args[:shipment_id] unless args[:shipment_id].nil?
4250
- @tracking_id = args[:tracking_id] unless args[:tracking_id].nil?
4361
+ @carrier = args[:carrier] if args.key?(:carrier)
4362
+ @line_items = args[:line_items] if args.key?(:line_items)
4363
+ @operation_id = args[:operation_id] if args.key?(:operation_id)
4364
+ @shipment_id = args[:shipment_id] if args.key?(:shipment_id)
4365
+ @tracking_id = args[:tracking_id] if args.key?(:tracking_id)
4251
4366
  end
4252
4367
  end
4253
4368
 
@@ -4272,8 +4387,8 @@ module Google
4272
4387
 
4273
4388
  # Update properties of this object
4274
4389
  def update!(**args)
4275
- @execution_status = args[:execution_status] unless args[:execution_status].nil?
4276
- @kind = args[:kind] unless args[:kind].nil?
4390
+ @execution_status = args[:execution_status] if args.key?(:execution_status)
4391
+ @kind = args[:kind] if args.key?(:kind)
4277
4392
  end
4278
4393
  end
4279
4394
 
@@ -4297,8 +4412,8 @@ module Google
4297
4412
 
4298
4413
  # Update properties of this object
4299
4414
  def update!(**args)
4300
- @merchant_order_id = args[:merchant_order_id] unless args[:merchant_order_id].nil?
4301
- @operation_id = args[:operation_id] unless args[:operation_id].nil?
4415
+ @merchant_order_id = args[:merchant_order_id] if args.key?(:merchant_order_id)
4416
+ @operation_id = args[:operation_id] if args.key?(:operation_id)
4302
4417
  end
4303
4418
  end
4304
4419
 
@@ -4323,8 +4438,8 @@ module Google
4323
4438
 
4324
4439
  # Update properties of this object
4325
4440
  def update!(**args)
4326
- @execution_status = args[:execution_status] unless args[:execution_status].nil?
4327
- @kind = args[:kind] unless args[:kind].nil?
4441
+ @execution_status = args[:execution_status] if args.key?(:execution_status)
4442
+ @kind = args[:kind] if args.key?(:kind)
4328
4443
  end
4329
4444
  end
4330
4445
 
@@ -4363,11 +4478,11 @@ module Google
4363
4478
 
4364
4479
  # Update properties of this object
4365
4480
  def update!(**args)
4366
- @carrier = args[:carrier] unless args[:carrier].nil?
4367
- @operation_id = args[:operation_id] unless args[:operation_id].nil?
4368
- @shipment_id = args[:shipment_id] unless args[:shipment_id].nil?
4369
- @status = args[:status] unless args[:status].nil?
4370
- @tracking_id = args[:tracking_id] unless args[:tracking_id].nil?
4481
+ @carrier = args[:carrier] if args.key?(:carrier)
4482
+ @operation_id = args[:operation_id] if args.key?(:operation_id)
4483
+ @shipment_id = args[:shipment_id] if args.key?(:shipment_id)
4484
+ @status = args[:status] if args.key?(:status)
4485
+ @tracking_id = args[:tracking_id] if args.key?(:tracking_id)
4371
4486
  end
4372
4487
  end
4373
4488
 
@@ -4392,8 +4507,8 @@ module Google
4392
4507
 
4393
4508
  # Update properties of this object
4394
4509
  def update!(**args)
4395
- @execution_status = args[:execution_status] unless args[:execution_status].nil?
4396
- @kind = args[:kind] unless args[:kind].nil?
4510
+ @execution_status = args[:execution_status] if args.key?(:execution_status)
4511
+ @kind = args[:kind] if args.key?(:kind)
4397
4512
  end
4398
4513
  end
4399
4514
 
@@ -4417,8 +4532,8 @@ module Google
4417
4532
 
4418
4533
  # Update properties of this object
4419
4534
  def update!(**args)
4420
- @currency = args[:currency] unless args[:currency].nil?
4421
- @value = args[:value] unless args[:value].nil?
4535
+ @currency = args[:currency] if args.key?(:currency)
4536
+ @value = args[:value] if args.key?(:value)
4422
4537
  end
4423
4538
  end
4424
4539
 
@@ -4697,6 +4812,11 @@ module Google
4697
4812
  # @return [String]
4698
4813
  attr_accessor :product_type
4699
4814
 
4815
+ # The unique ID of a promotion.
4816
+ # Corresponds to the JSON property `promotionIds`
4817
+ # @return [Array<String>]
4818
+ attr_accessor :promotion_ids
4819
+
4700
4820
  # Advertised sale price of the item.
4701
4821
  # Corresponds to the JSON property `salePrice`
4702
4822
  # @return [Google::Apis::ContentV2::Price]
@@ -4799,76 +4919,77 @@ module Google
4799
4919
 
4800
4920
  # Update properties of this object
4801
4921
  def update!(**args)
4802
- @additional_image_links = args[:additional_image_links] unless args[:additional_image_links].nil?
4803
- @adult = args[:adult] unless args[:adult].nil?
4804
- @adwords_grouping = args[:adwords_grouping] unless args[:adwords_grouping].nil?
4805
- @adwords_labels = args[:adwords_labels] unless args[:adwords_labels].nil?
4806
- @adwords_redirect = args[:adwords_redirect] unless args[:adwords_redirect].nil?
4807
- @age_group = args[:age_group] unless args[:age_group].nil?
4808
- @aspects = args[:aspects] unless args[:aspects].nil?
4809
- @availability = args[:availability] unless args[:availability].nil?
4810
- @availability_date = args[:availability_date] unless args[:availability_date].nil?
4811
- @brand = args[:brand] unless args[:brand].nil?
4812
- @channel = args[:channel] unless args[:channel].nil?
4813
- @color = args[:color] unless args[:color].nil?
4814
- @condition = args[:condition] unless args[:condition].nil?
4815
- @content_language = args[:content_language] unless args[:content_language].nil?
4816
- @custom_attributes = args[:custom_attributes] unless args[:custom_attributes].nil?
4817
- @custom_groups = args[:custom_groups] unless args[:custom_groups].nil?
4818
- @custom_label0 = args[:custom_label0] unless args[:custom_label0].nil?
4819
- @custom_label1 = args[:custom_label1] unless args[:custom_label1].nil?
4820
- @custom_label2 = args[:custom_label2] unless args[:custom_label2].nil?
4821
- @custom_label3 = args[:custom_label3] unless args[:custom_label3].nil?
4822
- @custom_label4 = args[:custom_label4] unless args[:custom_label4].nil?
4823
- @description = args[:description] unless args[:description].nil?
4824
- @destinations = args[:destinations] unless args[:destinations].nil?
4825
- @display_ads_id = args[:display_ads_id] unless args[:display_ads_id].nil?
4826
- @display_ads_link = args[:display_ads_link] unless args[:display_ads_link].nil?
4827
- @display_ads_similar_ids = args[:display_ads_similar_ids] unless args[:display_ads_similar_ids].nil?
4828
- @display_ads_title = args[:display_ads_title] unless args[:display_ads_title].nil?
4829
- @display_ads_value = args[:display_ads_value] unless args[:display_ads_value].nil?
4830
- @energy_efficiency_class = args[:energy_efficiency_class] unless args[:energy_efficiency_class].nil?
4831
- @expiration_date = args[:expiration_date] unless args[:expiration_date].nil?
4832
- @gender = args[:gender] unless args[:gender].nil?
4833
- @google_product_category = args[:google_product_category] unless args[:google_product_category].nil?
4834
- @gtin = args[:gtin] unless args[:gtin].nil?
4835
- @id = args[:id] unless args[:id].nil?
4836
- @identifier_exists = args[:identifier_exists] unless args[:identifier_exists].nil?
4837
- @image_link = args[:image_link] unless args[:image_link].nil?
4838
- @installment = args[:installment] unless args[:installment].nil?
4839
- @is_bundle = args[:is_bundle] unless args[:is_bundle].nil?
4840
- @item_group_id = args[:item_group_id] unless args[:item_group_id].nil?
4841
- @kind = args[:kind] unless args[:kind].nil?
4842
- @link = args[:link] unless args[:link].nil?
4843
- @loyalty_points = args[:loyalty_points] unless args[:loyalty_points].nil?
4844
- @material = args[:material] unless args[:material].nil?
4845
- @mobile_link = args[:mobile_link] unless args[:mobile_link].nil?
4846
- @mpn = args[:mpn] unless args[:mpn].nil?
4847
- @multipack = args[:multipack] unless args[:multipack].nil?
4848
- @offer_id = args[:offer_id] unless args[:offer_id].nil?
4849
- @online_only = args[:online_only] unless args[:online_only].nil?
4850
- @pattern = args[:pattern] unless args[:pattern].nil?
4851
- @price = args[:price] unless args[:price].nil?
4852
- @product_type = args[:product_type] unless args[:product_type].nil?
4853
- @sale_price = args[:sale_price] unless args[:sale_price].nil?
4854
- @sale_price_effective_date = args[:sale_price_effective_date] unless args[:sale_price_effective_date].nil?
4855
- @sell_on_google_quantity = args[:sell_on_google_quantity] unless args[:sell_on_google_quantity].nil?
4856
- @shipping = args[:shipping] unless args[:shipping].nil?
4857
- @shipping_height = args[:shipping_height] unless args[:shipping_height].nil?
4858
- @shipping_label = args[:shipping_label] unless args[:shipping_label].nil?
4859
- @shipping_length = args[:shipping_length] unless args[:shipping_length].nil?
4860
- @shipping_weight = args[:shipping_weight] unless args[:shipping_weight].nil?
4861
- @shipping_width = args[:shipping_width] unless args[:shipping_width].nil?
4862
- @size_system = args[:size_system] unless args[:size_system].nil?
4863
- @size_type = args[:size_type] unless args[:size_type].nil?
4864
- @sizes = args[:sizes] unless args[:sizes].nil?
4865
- @target_country = args[:target_country] unless args[:target_country].nil?
4866
- @taxes = args[:taxes] unless args[:taxes].nil?
4867
- @title = args[:title] unless args[:title].nil?
4868
- @unit_pricing_base_measure = args[:unit_pricing_base_measure] unless args[:unit_pricing_base_measure].nil?
4869
- @unit_pricing_measure = args[:unit_pricing_measure] unless args[:unit_pricing_measure].nil?
4870
- @validated_destinations = args[:validated_destinations] unless args[:validated_destinations].nil?
4871
- @warnings = args[:warnings] unless args[:warnings].nil?
4922
+ @additional_image_links = args[:additional_image_links] if args.key?(:additional_image_links)
4923
+ @adult = args[:adult] if args.key?(:adult)
4924
+ @adwords_grouping = args[:adwords_grouping] if args.key?(:adwords_grouping)
4925
+ @adwords_labels = args[:adwords_labels] if args.key?(:adwords_labels)
4926
+ @adwords_redirect = args[:adwords_redirect] if args.key?(:adwords_redirect)
4927
+ @age_group = args[:age_group] if args.key?(:age_group)
4928
+ @aspects = args[:aspects] if args.key?(:aspects)
4929
+ @availability = args[:availability] if args.key?(:availability)
4930
+ @availability_date = args[:availability_date] if args.key?(:availability_date)
4931
+ @brand = args[:brand] if args.key?(:brand)
4932
+ @channel = args[:channel] if args.key?(:channel)
4933
+ @color = args[:color] if args.key?(:color)
4934
+ @condition = args[:condition] if args.key?(:condition)
4935
+ @content_language = args[:content_language] if args.key?(:content_language)
4936
+ @custom_attributes = args[:custom_attributes] if args.key?(:custom_attributes)
4937
+ @custom_groups = args[:custom_groups] if args.key?(:custom_groups)
4938
+ @custom_label0 = args[:custom_label0] if args.key?(:custom_label0)
4939
+ @custom_label1 = args[:custom_label1] if args.key?(:custom_label1)
4940
+ @custom_label2 = args[:custom_label2] if args.key?(:custom_label2)
4941
+ @custom_label3 = args[:custom_label3] if args.key?(:custom_label3)
4942
+ @custom_label4 = args[:custom_label4] if args.key?(:custom_label4)
4943
+ @description = args[:description] if args.key?(:description)
4944
+ @destinations = args[:destinations] if args.key?(:destinations)
4945
+ @display_ads_id = args[:display_ads_id] if args.key?(:display_ads_id)
4946
+ @display_ads_link = args[:display_ads_link] if args.key?(:display_ads_link)
4947
+ @display_ads_similar_ids = args[:display_ads_similar_ids] if args.key?(:display_ads_similar_ids)
4948
+ @display_ads_title = args[:display_ads_title] if args.key?(:display_ads_title)
4949
+ @display_ads_value = args[:display_ads_value] if args.key?(:display_ads_value)
4950
+ @energy_efficiency_class = args[:energy_efficiency_class] if args.key?(:energy_efficiency_class)
4951
+ @expiration_date = args[:expiration_date] if args.key?(:expiration_date)
4952
+ @gender = args[:gender] if args.key?(:gender)
4953
+ @google_product_category = args[:google_product_category] if args.key?(:google_product_category)
4954
+ @gtin = args[:gtin] if args.key?(:gtin)
4955
+ @id = args[:id] if args.key?(:id)
4956
+ @identifier_exists = args[:identifier_exists] if args.key?(:identifier_exists)
4957
+ @image_link = args[:image_link] if args.key?(:image_link)
4958
+ @installment = args[:installment] if args.key?(:installment)
4959
+ @is_bundle = args[:is_bundle] if args.key?(:is_bundle)
4960
+ @item_group_id = args[:item_group_id] if args.key?(:item_group_id)
4961
+ @kind = args[:kind] if args.key?(:kind)
4962
+ @link = args[:link] if args.key?(:link)
4963
+ @loyalty_points = args[:loyalty_points] if args.key?(:loyalty_points)
4964
+ @material = args[:material] if args.key?(:material)
4965
+ @mobile_link = args[:mobile_link] if args.key?(:mobile_link)
4966
+ @mpn = args[:mpn] if args.key?(:mpn)
4967
+ @multipack = args[:multipack] if args.key?(:multipack)
4968
+ @offer_id = args[:offer_id] if args.key?(:offer_id)
4969
+ @online_only = args[:online_only] if args.key?(:online_only)
4970
+ @pattern = args[:pattern] if args.key?(:pattern)
4971
+ @price = args[:price] if args.key?(:price)
4972
+ @product_type = args[:product_type] if args.key?(:product_type)
4973
+ @promotion_ids = args[:promotion_ids] if args.key?(:promotion_ids)
4974
+ @sale_price = args[:sale_price] if args.key?(:sale_price)
4975
+ @sale_price_effective_date = args[:sale_price_effective_date] if args.key?(:sale_price_effective_date)
4976
+ @sell_on_google_quantity = args[:sell_on_google_quantity] if args.key?(:sell_on_google_quantity)
4977
+ @shipping = args[:shipping] if args.key?(:shipping)
4978
+ @shipping_height = args[:shipping_height] if args.key?(:shipping_height)
4979
+ @shipping_label = args[:shipping_label] if args.key?(:shipping_label)
4980
+ @shipping_length = args[:shipping_length] if args.key?(:shipping_length)
4981
+ @shipping_weight = args[:shipping_weight] if args.key?(:shipping_weight)
4982
+ @shipping_width = args[:shipping_width] if args.key?(:shipping_width)
4983
+ @size_system = args[:size_system] if args.key?(:size_system)
4984
+ @size_type = args[:size_type] if args.key?(:size_type)
4985
+ @sizes = args[:sizes] if args.key?(:sizes)
4986
+ @target_country = args[:target_country] if args.key?(:target_country)
4987
+ @taxes = args[:taxes] if args.key?(:taxes)
4988
+ @title = args[:title] if args.key?(:title)
4989
+ @unit_pricing_base_measure = args[:unit_pricing_base_measure] if args.key?(:unit_pricing_base_measure)
4990
+ @unit_pricing_measure = args[:unit_pricing_measure] if args.key?(:unit_pricing_measure)
4991
+ @validated_destinations = args[:validated_destinations] if args.key?(:validated_destinations)
4992
+ @warnings = args[:warnings] if args.key?(:warnings)
4872
4993
  end
4873
4994
  end
4874
4995
 
@@ -4897,9 +5018,9 @@ module Google
4897
5018
 
4898
5019
  # Update properties of this object
4899
5020
  def update!(**args)
4900
- @aspect_name = args[:aspect_name] unless args[:aspect_name].nil?
4901
- @destination_name = args[:destination_name] unless args[:destination_name].nil?
4902
- @intention = args[:intention] unless args[:intention].nil?
5021
+ @aspect_name = args[:aspect_name] if args.key?(:aspect_name)
5022
+ @destination_name = args[:destination_name] if args.key?(:destination_name)
5023
+ @intention = args[:intention] if args.key?(:intention)
4903
5024
  end
4904
5025
  end
4905
5026
 
@@ -4935,10 +5056,10 @@ module Google
4935
5056
 
4936
5057
  # Update properties of this object
4937
5058
  def update!(**args)
4938
- @name = args[:name] unless args[:name].nil?
4939
- @type = args[:type] unless args[:type].nil?
4940
- @unit = args[:unit] unless args[:unit].nil?
4941
- @value = args[:value] unless args[:value].nil?
5059
+ @name = args[:name] if args.key?(:name)
5060
+ @type = args[:type] if args.key?(:type)
5061
+ @unit = args[:unit] if args.key?(:unit)
5062
+ @value = args[:value] if args.key?(:value)
4942
5063
  end
4943
5064
  end
4944
5065
 
@@ -4962,8 +5083,8 @@ module Google
4962
5083
 
4963
5084
  # Update properties of this object
4964
5085
  def update!(**args)
4965
- @attributes = args[:attributes] unless args[:attributes].nil?
4966
- @name = args[:name] unless args[:name].nil?
5086
+ @attributes = args[:attributes] if args.key?(:attributes)
5087
+ @name = args[:name] if args.key?(:name)
4967
5088
  end
4968
5089
  end
4969
5090
 
@@ -4987,8 +5108,8 @@ module Google
4987
5108
 
4988
5109
  # Update properties of this object
4989
5110
  def update!(**args)
4990
- @destination_name = args[:destination_name] unless args[:destination_name].nil?
4991
- @intention = args[:intention] unless args[:intention].nil?
5111
+ @destination_name = args[:destination_name] if args.key?(:destination_name)
5112
+ @intention = args[:intention] if args.key?(:intention)
4992
5113
  end
4993
5114
  end
4994
5115
 
@@ -5041,13 +5162,13 @@ module Google
5041
5162
 
5042
5163
  # Update properties of this object
5043
5164
  def update!(**args)
5044
- @country = args[:country] unless args[:country].nil?
5045
- @location_group_name = args[:location_group_name] unless args[:location_group_name].nil?
5046
- @location_id = args[:location_id] unless args[:location_id].nil?
5047
- @postal_code = args[:postal_code] unless args[:postal_code].nil?
5048
- @price = args[:price] unless args[:price].nil?
5049
- @region = args[:region] unless args[:region].nil?
5050
- @service = args[:service] unless args[:service].nil?
5165
+ @country = args[:country] if args.key?(:country)
5166
+ @location_group_name = args[:location_group_name] if args.key?(:location_group_name)
5167
+ @location_id = args[:location_id] if args.key?(:location_id)
5168
+ @postal_code = args[:postal_code] if args.key?(:postal_code)
5169
+ @price = args[:price] if args.key?(:price)
5170
+ @region = args[:region] if args.key?(:region)
5171
+ @service = args[:service] if args.key?(:service)
5051
5172
  end
5052
5173
  end
5053
5174
 
@@ -5074,8 +5195,8 @@ module Google
5074
5195
 
5075
5196
  # Update properties of this object
5076
5197
  def update!(**args)
5077
- @unit = args[:unit] unless args[:unit].nil?
5078
- @value = args[:value] unless args[:value].nil?
5198
+ @unit = args[:unit] if args.key?(:unit)
5199
+ @value = args[:value] if args.key?(:value)
5079
5200
  end
5080
5201
  end
5081
5202
 
@@ -5099,8 +5220,8 @@ module Google
5099
5220
 
5100
5221
  # Update properties of this object
5101
5222
  def update!(**args)
5102
- @unit = args[:unit] unless args[:unit].nil?
5103
- @value = args[:value] unless args[:value].nil?
5223
+ @unit = args[:unit] if args.key?(:unit)
5224
+ @value = args[:value] if args.key?(:value)
5104
5225
  end
5105
5226
  end
5106
5227
 
@@ -5161,15 +5282,15 @@ module Google
5161
5282
 
5162
5283
  # Update properties of this object
5163
5284
  def update!(**args)
5164
- @creation_date = args[:creation_date] unless args[:creation_date].nil?
5165
- @data_quality_issues = args[:data_quality_issues] unless args[:data_quality_issues].nil?
5166
- @destination_statuses = args[:destination_statuses] unless args[:destination_statuses].nil?
5167
- @google_expiration_date = args[:google_expiration_date] unless args[:google_expiration_date].nil?
5168
- @kind = args[:kind] unless args[:kind].nil?
5169
- @last_update_date = args[:last_update_date] unless args[:last_update_date].nil?
5170
- @link = args[:link] unless args[:link].nil?
5171
- @product_id = args[:product_id] unless args[:product_id].nil?
5172
- @title = args[:title] unless args[:title].nil?
5285
+ @creation_date = args[:creation_date] if args.key?(:creation_date)
5286
+ @data_quality_issues = args[:data_quality_issues] if args.key?(:data_quality_issues)
5287
+ @destination_statuses = args[:destination_statuses] if args.key?(:destination_statuses)
5288
+ @google_expiration_date = args[:google_expiration_date] if args.key?(:google_expiration_date)
5289
+ @kind = args[:kind] if args.key?(:kind)
5290
+ @last_update_date = args[:last_update_date] if args.key?(:last_update_date)
5291
+ @link = args[:link] if args.key?(:link)
5292
+ @product_id = args[:product_id] if args.key?(:product_id)
5293
+ @title = args[:title] if args.key?(:title)
5173
5294
  end
5174
5295
  end
5175
5296
 
@@ -5223,14 +5344,14 @@ module Google
5223
5344
 
5224
5345
  # Update properties of this object
5225
5346
  def update!(**args)
5226
- @detail = args[:detail] unless args[:detail].nil?
5227
- @fetch_status = args[:fetch_status] unless args[:fetch_status].nil?
5228
- @id = args[:id] unless args[:id].nil?
5229
- @location = args[:location] unless args[:location].nil?
5230
- @severity = args[:severity] unless args[:severity].nil?
5231
- @timestamp = args[:timestamp] unless args[:timestamp].nil?
5232
- @value_on_landing_page = args[:value_on_landing_page] unless args[:value_on_landing_page].nil?
5233
- @value_provided = args[:value_provided] unless args[:value_provided].nil?
5347
+ @detail = args[:detail] if args.key?(:detail)
5348
+ @fetch_status = args[:fetch_status] if args.key?(:fetch_status)
5349
+ @id = args[:id] if args.key?(:id)
5350
+ @location = args[:location] if args.key?(:location)
5351
+ @severity = args[:severity] if args.key?(:severity)
5352
+ @timestamp = args[:timestamp] if args.key?(:timestamp)
5353
+ @value_on_landing_page = args[:value_on_landing_page] if args.key?(:value_on_landing_page)
5354
+ @value_provided = args[:value_provided] if args.key?(:value_provided)
5234
5355
  end
5235
5356
  end
5236
5357
 
@@ -5260,9 +5381,9 @@ module Google
5260
5381
 
5261
5382
  # Update properties of this object
5262
5383
  def update!(**args)
5263
- @approval_status = args[:approval_status] unless args[:approval_status].nil?
5264
- @destination = args[:destination] unless args[:destination].nil?
5265
- @intention = args[:intention] unless args[:intention].nil?
5384
+ @approval_status = args[:approval_status] if args.key?(:approval_status)
5385
+ @destination = args[:destination] if args.key?(:destination)
5386
+ @intention = args[:intention] if args.key?(:intention)
5266
5387
  end
5267
5388
  end
5268
5389
 
@@ -5310,12 +5431,12 @@ module Google
5310
5431
 
5311
5432
  # Update properties of this object
5312
5433
  def update!(**args)
5313
- @country = args[:country] unless args[:country].nil?
5314
- @location_id = args[:location_id] unless args[:location_id].nil?
5315
- @postal_code = args[:postal_code] unless args[:postal_code].nil?
5316
- @rate = args[:rate] unless args[:rate].nil?
5317
- @region = args[:region] unless args[:region].nil?
5318
- @tax_ship = args[:tax_ship] unless args[:tax_ship].nil?
5434
+ @country = args[:country] if args.key?(:country)
5435
+ @location_id = args[:location_id] if args.key?(:location_id)
5436
+ @postal_code = args[:postal_code] if args.key?(:postal_code)
5437
+ @rate = args[:rate] if args.key?(:rate)
5438
+ @region = args[:region] if args.key?(:region)
5439
+ @tax_ship = args[:tax_ship] if args.key?(:tax_ship)
5319
5440
  end
5320
5441
  end
5321
5442
 
@@ -5339,8 +5460,8 @@ module Google
5339
5460
 
5340
5461
  # Update properties of this object
5341
5462
  def update!(**args)
5342
- @unit = args[:unit] unless args[:unit].nil?
5343
- @value = args[:value] unless args[:value].nil?
5463
+ @unit = args[:unit] if args.key?(:unit)
5464
+ @value = args[:value] if args.key?(:value)
5344
5465
  end
5345
5466
  end
5346
5467
 
@@ -5364,8 +5485,8 @@ module Google
5364
5485
 
5365
5486
  # Update properties of this object
5366
5487
  def update!(**args)
5367
- @unit = args[:unit] unless args[:unit].nil?
5368
- @value = args[:value] unless args[:value].nil?
5488
+ @unit = args[:unit] if args.key?(:unit)
5489
+ @value = args[:value] if args.key?(:value)
5369
5490
  end
5370
5491
  end
5371
5492
 
@@ -5384,7 +5505,7 @@ module Google
5384
5505
 
5385
5506
  # Update properties of this object
5386
5507
  def update!(**args)
5387
- @entries = args[:entries] unless args[:entries].nil?
5508
+ @entries = args[:entries] if args.key?(:entries)
5388
5509
  end
5389
5510
  end
5390
5511
 
@@ -5424,11 +5545,11 @@ module Google
5424
5545
 
5425
5546
  # Update properties of this object
5426
5547
  def update!(**args)
5427
- @batch_id = args[:batch_id] unless args[:batch_id].nil?
5428
- @merchant_id = args[:merchant_id] unless args[:merchant_id].nil?
5429
- @request_method = args[:request_method] unless args[:request_method].nil?
5430
- @product = args[:product] unless args[:product].nil?
5431
- @product_id = args[:product_id] unless args[:product_id].nil?
5548
+ @batch_id = args[:batch_id] if args.key?(:batch_id)
5549
+ @merchant_id = args[:merchant_id] if args.key?(:merchant_id)
5550
+ @request_method = args[:request_method] if args.key?(:request_method)
5551
+ @product = args[:product] if args.key?(:product)
5552
+ @product_id = args[:product_id] if args.key?(:product_id)
5432
5553
  end
5433
5554
  end
5434
5555
 
@@ -5453,8 +5574,8 @@ module Google
5453
5574
 
5454
5575
  # Update properties of this object
5455
5576
  def update!(**args)
5456
- @entries = args[:entries] unless args[:entries].nil?
5457
- @kind = args[:kind] unless args[:kind].nil?
5577
+ @entries = args[:entries] if args.key?(:entries)
5578
+ @kind = args[:kind] if args.key?(:kind)
5458
5579
  end
5459
5580
  end
5460
5581
 
@@ -5489,10 +5610,10 @@ module Google
5489
5610
 
5490
5611
  # Update properties of this object
5491
5612
  def update!(**args)
5492
- @batch_id = args[:batch_id] unless args[:batch_id].nil?
5493
- @errors = args[:errors] unless args[:errors].nil?
5494
- @kind = args[:kind] unless args[:kind].nil?
5495
- @product = args[:product] unless args[:product].nil?
5613
+ @batch_id = args[:batch_id] if args.key?(:batch_id)
5614
+ @errors = args[:errors] if args.key?(:errors)
5615
+ @kind = args[:kind] if args.key?(:kind)
5616
+ @product = args[:product] if args.key?(:product)
5496
5617
  end
5497
5618
  end
5498
5619
 
@@ -5522,9 +5643,9 @@ module Google
5522
5643
 
5523
5644
  # Update properties of this object
5524
5645
  def update!(**args)
5525
- @kind = args[:kind] unless args[:kind].nil?
5526
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
5527
- @resources = args[:resources] unless args[:resources].nil?
5646
+ @kind = args[:kind] if args.key?(:kind)
5647
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
5648
+ @resources = args[:resources] if args.key?(:resources)
5528
5649
  end
5529
5650
  end
5530
5651
 
@@ -5543,7 +5664,7 @@ module Google
5543
5664
 
5544
5665
  # Update properties of this object
5545
5666
  def update!(**args)
5546
- @entries = args[:entries] unless args[:entries].nil?
5667
+ @entries = args[:entries] if args.key?(:entries)
5547
5668
  end
5548
5669
  end
5549
5670
 
@@ -5577,10 +5698,10 @@ module Google
5577
5698
 
5578
5699
  # Update properties of this object
5579
5700
  def update!(**args)
5580
- @batch_id = args[:batch_id] unless args[:batch_id].nil?
5581
- @merchant_id = args[:merchant_id] unless args[:merchant_id].nil?
5582
- @request_method = args[:request_method] unless args[:request_method].nil?
5583
- @product_id = args[:product_id] unless args[:product_id].nil?
5701
+ @batch_id = args[:batch_id] if args.key?(:batch_id)
5702
+ @merchant_id = args[:merchant_id] if args.key?(:merchant_id)
5703
+ @request_method = args[:request_method] if args.key?(:request_method)
5704
+ @product_id = args[:product_id] if args.key?(:product_id)
5584
5705
  end
5585
5706
  end
5586
5707
 
@@ -5605,8 +5726,8 @@ module Google
5605
5726
 
5606
5727
  # Update properties of this object
5607
5728
  def update!(**args)
5608
- @entries = args[:entries] unless args[:entries].nil?
5609
- @kind = args[:kind] unless args[:kind].nil?
5729
+ @entries = args[:entries] if args.key?(:entries)
5730
+ @kind = args[:kind] if args.key?(:kind)
5610
5731
  end
5611
5732
  end
5612
5733
 
@@ -5642,10 +5763,10 @@ module Google
5642
5763
 
5643
5764
  # Update properties of this object
5644
5765
  def update!(**args)
5645
- @batch_id = args[:batch_id] unless args[:batch_id].nil?
5646
- @errors = args[:errors] unless args[:errors].nil?
5647
- @kind = args[:kind] unless args[:kind].nil?
5648
- @product_status = args[:product_status] unless args[:product_status].nil?
5766
+ @batch_id = args[:batch_id] if args.key?(:batch_id)
5767
+ @errors = args[:errors] if args.key?(:errors)
5768
+ @kind = args[:kind] if args.key?(:kind)
5769
+ @product_status = args[:product_status] if args.key?(:product_status)
5649
5770
  end
5650
5771
  end
5651
5772
 
@@ -5675,9 +5796,9 @@ module Google
5675
5796
 
5676
5797
  # Update properties of this object
5677
5798
  def update!(**args)
5678
- @kind = args[:kind] unless args[:kind].nil?
5679
- @next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
5680
- @resources = args[:resources] unless args[:resources].nil?
5799
+ @kind = args[:kind] if args.key?(:kind)
5800
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
5801
+ @resources = args[:resources] if args.key?(:resources)
5681
5802
  end
5682
5803
  end
5683
5804
 
@@ -5711,6 +5832,12 @@ module Google
5711
5832
  # @return [String]
5712
5833
  attr_accessor :predefined_delivery_address
5713
5834
 
5835
+ # The details of the merchant provided promotions applied to the order. More
5836
+ # details about the program are here.
5837
+ # Corresponds to the JSON property `promotions`
5838
+ # @return [Array<Google::Apis::ContentV2::OrderPromotion>]
5839
+ attr_accessor :promotions
5840
+
5714
5841
  # The total cost of shipping for all items.
5715
5842
  # Corresponds to the JSON property `shippingCost`
5716
5843
  # @return [Google::Apis::ContentV2::Price]
@@ -5732,14 +5859,15 @@ module Google
5732
5859
 
5733
5860
  # Update properties of this object
5734
5861
  def update!(**args)
5735
- @customer = args[:customer] unless args[:customer].nil?
5736
- @kind = args[:kind] unless args[:kind].nil?
5737
- @line_items = args[:line_items] unless args[:line_items].nil?
5738
- @payment_method = args[:payment_method] unless args[:payment_method].nil?
5739
- @predefined_delivery_address = args[:predefined_delivery_address] unless args[:predefined_delivery_address].nil?
5740
- @shipping_cost = args[:shipping_cost] unless args[:shipping_cost].nil?
5741
- @shipping_cost_tax = args[:shipping_cost_tax] unless args[:shipping_cost_tax].nil?
5742
- @shipping_option = args[:shipping_option] unless args[:shipping_option].nil?
5862
+ @customer = args[:customer] if args.key?(:customer)
5863
+ @kind = args[:kind] if args.key?(:kind)
5864
+ @line_items = args[:line_items] if args.key?(:line_items)
5865
+ @payment_method = args[:payment_method] if args.key?(:payment_method)
5866
+ @predefined_delivery_address = args[:predefined_delivery_address] if args.key?(:predefined_delivery_address)
5867
+ @promotions = args[:promotions] if args.key?(:promotions)
5868
+ @shipping_cost = args[:shipping_cost] if args.key?(:shipping_cost)
5869
+ @shipping_cost_tax = args[:shipping_cost_tax] if args.key?(:shipping_cost_tax)
5870
+ @shipping_option = args[:shipping_option] if args.key?(:shipping_option)
5743
5871
  end
5744
5872
  end
5745
5873
 
@@ -5773,9 +5901,9 @@ module Google
5773
5901
 
5774
5902
  # Update properties of this object
5775
5903
  def update!(**args)
5776
- @email = args[:email] unless args[:email].nil?
5777
- @explicit_marketing_preference = args[:explicit_marketing_preference] unless args[:explicit_marketing_preference].nil?
5778
- @full_name = args[:full_name] unless args[:full_name].nil?
5904
+ @email = args[:email] if args.key?(:email)
5905
+ @explicit_marketing_preference = args[:explicit_marketing_preference] if args.key?(:explicit_marketing_preference)
5906
+ @full_name = args[:full_name] if args.key?(:full_name)
5779
5907
  end
5780
5908
  end
5781
5909
 
@@ -5814,11 +5942,11 @@ module Google
5814
5942
 
5815
5943
  # Update properties of this object
5816
5944
  def update!(**args)
5817
- @product = args[:product] unless args[:product].nil?
5818
- @quantity_ordered = args[:quantity_ordered] unless args[:quantity_ordered].nil?
5819
- @return_info = args[:return_info] unless args[:return_info].nil?
5820
- @shipping_details = args[:shipping_details] unless args[:shipping_details].nil?
5821
- @unit_tax = args[:unit_tax] unless args[:unit_tax].nil?
5945
+ @product = args[:product] if args.key?(:product)
5946
+ @quantity_ordered = args[:quantity_ordered] if args.key?(:quantity_ordered)
5947
+ @return_info = args[:return_info] if args.key?(:return_info)
5948
+ @shipping_details = args[:shipping_details] if args.key?(:shipping_details)
5949
+ @unit_tax = args[:unit_tax] if args.key?(:unit_tax)
5822
5950
  end
5823
5951
  end
5824
5952
 
@@ -5897,19 +6025,19 @@ module Google
5897
6025
 
5898
6026
  # Update properties of this object
5899
6027
  def update!(**args)
5900
- @brand = args[:brand] unless args[:brand].nil?
5901
- @channel = args[:channel] unless args[:channel].nil?
5902
- @condition = args[:condition] unless args[:condition].nil?
5903
- @content_language = args[:content_language] unless args[:content_language].nil?
5904
- @gtin = args[:gtin] unless args[:gtin].nil?
5905
- @image_link = args[:image_link] unless args[:image_link].nil?
5906
- @item_group_id = args[:item_group_id] unless args[:item_group_id].nil?
5907
- @mpn = args[:mpn] unless args[:mpn].nil?
5908
- @offer_id = args[:offer_id] unless args[:offer_id].nil?
5909
- @price = args[:price] unless args[:price].nil?
5910
- @target_country = args[:target_country] unless args[:target_country].nil?
5911
- @title = args[:title] unless args[:title].nil?
5912
- @variant_attributes = args[:variant_attributes] unless args[:variant_attributes].nil?
6028
+ @brand = args[:brand] if args.key?(:brand)
6029
+ @channel = args[:channel] if args.key?(:channel)
6030
+ @condition = args[:condition] if args.key?(:condition)
6031
+ @content_language = args[:content_language] if args.key?(:content_language)
6032
+ @gtin = args[:gtin] if args.key?(:gtin)
6033
+ @image_link = args[:image_link] if args.key?(:image_link)
6034
+ @item_group_id = args[:item_group_id] if args.key?(:item_group_id)
6035
+ @mpn = args[:mpn] if args.key?(:mpn)
6036
+ @offer_id = args[:offer_id] if args.key?(:offer_id)
6037
+ @price = args[:price] if args.key?(:price)
6038
+ @target_country = args[:target_country] if args.key?(:target_country)
6039
+ @title = args[:title] if args.key?(:title)
6040
+ @variant_attributes = args[:variant_attributes] if args.key?(:variant_attributes)
5913
6041
  end
5914
6042
  end
5915
6043
 
@@ -5949,11 +6077,11 @@ module Google
5949
6077
 
5950
6078
  # Update properties of this object
5951
6079
  def update!(**args)
5952
- @expiration_month = args[:expiration_month] unless args[:expiration_month].nil?
5953
- @expiration_year = args[:expiration_year] unless args[:expiration_year].nil?
5954
- @last_four_digits = args[:last_four_digits] unless args[:last_four_digits].nil?
5955
- @predefined_billing_address = args[:predefined_billing_address] unless args[:predefined_billing_address].nil?
5956
- @type = args[:type] unless args[:type].nil?
6080
+ @expiration_month = args[:expiration_month] if args.key?(:expiration_month)
6081
+ @expiration_year = args[:expiration_year] if args.key?(:expiration_year)
6082
+ @last_four_digits = args[:last_four_digits] if args.key?(:last_four_digits)
6083
+ @predefined_billing_address = args[:predefined_billing_address] if args.key?(:predefined_billing_address)
6084
+ @type = args[:type] if args.key?(:type)
5957
6085
  end
5958
6086
  end
5959
6087
 
@@ -5977,8 +6105,8 @@ module Google
5977
6105
 
5978
6106
  # Update properties of this object
5979
6107
  def update!(**args)
5980
- @unit = args[:unit] unless args[:unit].nil?
5981
- @value = args[:value] unless args[:value].nil?
6108
+ @unit = args[:unit] if args.key?(:unit)
6109
+ @value = args[:value] if args.key?(:value)
5982
6110
  end
5983
6111
  end
5984
6112
  end