google-api-client 0.25.0 → 0.26.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (265) hide show
  1. checksums.yaml +4 -4
  2. data/{CONTRIBUTING.md → .github/CONTRIBUTING.md} +0 -0
  3. data/.github/ISSUE_TEMPLATE/bug_report.md +36 -0
  4. data/.github/ISSUE_TEMPLATE/feature_request.md +21 -0
  5. data/.github/ISSUE_TEMPLATE/support_request.md +7 -0
  6. data/.kokoro/build.bat +8 -0
  7. data/.kokoro/build.sh +36 -0
  8. data/.kokoro/common.cfg +22 -0
  9. data/.kokoro/continuous/common.cfg +20 -0
  10. data/.kokoro/continuous/linux.cfg +15 -0
  11. data/.kokoro/continuous/osx.cfg +3 -0
  12. data/.kokoro/continuous/windows.cfg +3 -0
  13. data/.kokoro/osx.sh +35 -0
  14. data/.kokoro/presubmit/common.cfg +19 -0
  15. data/.kokoro/presubmit/linux.cfg +14 -0
  16. data/.kokoro/presubmit/osx.cfg +3 -0
  17. data/.kokoro/presubmit/windows.cfg +3 -0
  18. data/.kokoro/trampoline.sh +24 -0
  19. data/.kokoro/windows.sh +32 -0
  20. data/CHANGELOG.md +83 -0
  21. data/Gemfile +2 -2
  22. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  23. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +3 -1
  24. data/generated/google/apis/alertcenter_v1beta1.rb +5 -3
  25. data/generated/google/apis/alertcenter_v1beta1/classes.rb +110 -101
  26. data/generated/google/apis/alertcenter_v1beta1/representations.rb +13 -0
  27. data/generated/google/apis/alertcenter_v1beta1/service.rb +83 -76
  28. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  29. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +7 -0
  30. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +2 -0
  31. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +1 -1
  32. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  33. data/generated/google/apis/androidenterprise_v1/classes.rb +129 -44
  34. data/generated/google/apis/androidenterprise_v1/representations.rb +48 -0
  35. data/generated/google/apis/androidenterprise_v1/service.rb +218 -0
  36. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  37. data/generated/google/apis/androidmanagement_v1/classes.rb +1 -1
  38. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  39. data/generated/google/apis/androidpublisher_v3/classes.rb +8 -0
  40. data/generated/google/apis/androidpublisher_v3/representations.rb +1 -0
  41. data/generated/google/apis/appengine_v1.rb +1 -1
  42. data/generated/google/apis/appengine_v1beta.rb +1 -1
  43. data/generated/google/apis/bigquery_v2.rb +1 -1
  44. data/generated/google/apis/bigquery_v2/classes.rb +87 -29
  45. data/generated/google/apis/bigquery_v2/representations.rb +21 -0
  46. data/generated/google/apis/bigquery_v2/service.rb +7 -9
  47. data/generated/google/apis/calendar_v3.rb +2 -2
  48. data/generated/google/apis/calendar_v3/classes.rb +14 -6
  49. data/generated/google/apis/classroom_v1.rb +1 -1
  50. data/generated/google/apis/classroom_v1/service.rb +1 -1
  51. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  52. data/generated/google/apis/cloudasset_v1beta1/classes.rb +14 -10
  53. data/generated/google/apis/cloudasset_v1beta1/service.rb +4 -4
  54. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  55. data/generated/google/apis/clouddebugger_v2/classes.rb +2 -2
  56. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  57. data/generated/google/apis/cloudfunctions_v1/classes.rb +2 -3
  58. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  59. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +2 -3
  60. data/generated/google/apis/cloudiot_v1.rb +1 -1
  61. data/generated/google/apis/cloudiot_v1/classes.rb +127 -0
  62. data/generated/google/apis/cloudiot_v1/representations.rb +70 -0
  63. data/generated/google/apis/cloudiot_v1/service.rb +172 -2
  64. data/generated/google/apis/cloudkms_v1.rb +1 -1
  65. data/generated/google/apis/cloudkms_v1/service.rb +107 -0
  66. data/generated/google/apis/{cloudiot_v1beta1.rb → cloudscheduler_v1beta1.rb} +8 -12
  67. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +882 -0
  68. data/generated/google/apis/cloudscheduler_v1beta1/representations.rb +264 -0
  69. data/generated/google/apis/cloudscheduler_v1beta1/service.rb +445 -0
  70. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  71. data/generated/google/apis/cloudsearch_v1/classes.rb +79 -1
  72. data/generated/google/apis/cloudsearch_v1/representations.rb +44 -0
  73. data/generated/google/apis/cloudsearch_v1/service.rb +88 -3
  74. data/generated/google/apis/composer_v1.rb +1 -1
  75. data/generated/google/apis/composer_v1/classes.rb +9 -0
  76. data/generated/google/apis/composer_v1/representations.rb +1 -0
  77. data/generated/google/apis/compute_alpha.rb +1 -1
  78. data/generated/google/apis/compute_alpha/classes.rb +938 -117
  79. data/generated/google/apis/compute_alpha/representations.rb +310 -2
  80. data/generated/google/apis/compute_alpha/service.rb +1203 -245
  81. data/generated/google/apis/compute_beta.rb +1 -1
  82. data/generated/google/apis/compute_beta/classes.rb +1175 -219
  83. data/generated/google/apis/compute_beta/representations.rb +375 -2
  84. data/generated/google/apis/compute_beta/service.rb +907 -139
  85. data/generated/google/apis/compute_v1.rb +1 -1
  86. data/generated/google/apis/compute_v1/classes.rb +1485 -143
  87. data/generated/google/apis/compute_v1/representations.rb +503 -0
  88. data/generated/google/apis/compute_v1/service.rb +1375 -85
  89. data/generated/google/apis/container_v1.rb +3 -3
  90. data/generated/google/apis/container_v1/classes.rb +99 -6
  91. data/generated/google/apis/container_v1/representations.rb +39 -0
  92. data/generated/google/apis/container_v1/service.rb +2 -2
  93. data/generated/google/apis/container_v1beta1.rb +3 -3
  94. data/generated/google/apis/container_v1beta1/classes.rb +162 -9
  95. data/generated/google/apis/container_v1beta1/representations.rb +80 -0
  96. data/generated/google/apis/container_v1beta1/service.rb +3 -3
  97. data/generated/google/apis/content_v2.rb +1 -1
  98. data/generated/google/apis/content_v2/classes.rb +40 -32
  99. data/generated/google/apis/content_v2/representations.rb +0 -1
  100. data/generated/google/apis/content_v2/service.rb +3 -3
  101. data/generated/google/apis/content_v2_1.rb +35 -0
  102. data/generated/google/apis/content_v2_1/classes.rb +9104 -0
  103. data/generated/google/apis/content_v2_1/representations.rb +3967 -0
  104. data/generated/google/apis/content_v2_1/service.rb +3463 -0
  105. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  106. data/generated/google/apis/dataflow_v1b3/classes.rb +82 -0
  107. data/generated/google/apis/dataflow_v1b3/representations.rb +33 -0
  108. data/generated/google/apis/dataflow_v1b3/service.rb +97 -6
  109. data/generated/google/apis/dataproc_v1.rb +1 -1
  110. data/generated/google/apis/dataproc_v1/classes.rb +15 -1
  111. data/generated/google/apis/dataproc_v1/representations.rb +2 -0
  112. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  113. data/generated/google/apis/dataproc_v1beta2/classes.rb +125 -1
  114. data/generated/google/apis/dataproc_v1beta2/representations.rb +41 -0
  115. data/generated/google/apis/dialogflow_v2.rb +1 -1
  116. data/generated/google/apis/dialogflow_v2/classes.rb +13 -6
  117. data/generated/google/apis/dialogflow_v2/service.rb +2 -0
  118. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  119. data/generated/google/apis/dialogflow_v2beta1/classes.rb +26 -6
  120. data/generated/google/apis/dialogflow_v2beta1/representations.rb +12 -0
  121. data/generated/google/apis/dialogflow_v2beta1/service.rb +261 -12
  122. data/generated/google/apis/dlp_v2.rb +1 -1
  123. data/generated/google/apis/dlp_v2/classes.rb +4 -4
  124. data/generated/google/apis/dns_v1beta2.rb +1 -1
  125. data/generated/google/apis/dns_v1beta2/classes.rb +326 -0
  126. data/generated/google/apis/dns_v1beta2/representations.rb +149 -0
  127. data/generated/google/apis/dns_v1beta2/service.rb +246 -0
  128. data/generated/google/apis/drive_v2.rb +3 -3
  129. data/generated/google/apis/drive_v3.rb +3 -3
  130. data/generated/google/apis/driveactivity_v2.rb +37 -0
  131. data/generated/google/apis/driveactivity_v2/classes.rb +1388 -0
  132. data/generated/google/apis/driveactivity_v2/representations.rb +799 -0
  133. data/generated/google/apis/driveactivity_v2/service.rb +89 -0
  134. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  135. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +8 -1
  136. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +1 -0
  137. data/generated/google/apis/firebasehosting_v1beta1.rb +3 -2
  138. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +43 -17
  139. data/generated/google/apis/firebasehosting_v1beta1/representations.rb +13 -0
  140. data/generated/google/apis/firebasehosting_v1beta1/service.rb +74 -1
  141. data/generated/google/apis/firestore_v1.rb +1 -1
  142. data/generated/google/apis/firestore_v1/classes.rb +2225 -520
  143. data/generated/google/apis/firestore_v1/representations.rb +800 -33
  144. data/generated/google/apis/firestore_v1/service.rb +526 -0
  145. data/generated/google/apis/fitness_v1.rb +1 -1
  146. data/generated/google/apis/fitness_v1/classes.rb +1 -2
  147. data/generated/google/apis/fitness_v1/service.rb +7 -3
  148. data/generated/google/apis/games_management_v1management.rb +1 -4
  149. data/generated/google/apis/games_v1.rb +1 -4
  150. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  151. data/generated/google/apis/genomics_v2alpha1/classes.rb +6 -1
  152. data/generated/google/apis/gmail_v1.rb +2 -2
  153. data/generated/google/apis/iap_v1.rb +34 -0
  154. data/generated/google/apis/iap_v1/classes.rb +308 -0
  155. data/generated/google/apis/iap_v1/representations.rb +126 -0
  156. data/generated/google/apis/iap_v1/service.rb +725 -0
  157. data/generated/google/apis/iap_v1beta1.rb +1 -1
  158. data/generated/google/apis/iap_v1beta1/classes.rb +0 -132
  159. data/generated/google/apis/iap_v1beta1/representations.rb +0 -32
  160. data/generated/google/apis/jobs_v2.rb +1 -1
  161. data/generated/google/apis/jobs_v2/classes.rb +8 -9
  162. data/generated/google/apis/jobs_v3.rb +1 -1
  163. data/generated/google/apis/jobs_v3/classes.rb +6 -6
  164. data/generated/google/apis/jobs_v3/service.rb +8 -8
  165. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  166. data/generated/google/apis/jobs_v3p1beta1/classes.rb +9 -9
  167. data/generated/google/apis/jobs_v3p1beta1/service.rb +8 -8
  168. data/generated/google/apis/monitoring_v3.rb +1 -1
  169. data/generated/google/apis/monitoring_v3/classes.rb +20 -7
  170. data/generated/google/apis/monitoring_v3/representations.rb +1 -0
  171. data/generated/google/apis/monitoring_v3/service.rb +0 -365
  172. data/generated/google/apis/pagespeedonline_v5.rb +32 -0
  173. data/generated/google/apis/pagespeedonline_v5/classes.rb +724 -0
  174. data/generated/google/apis/pagespeedonline_v5/representations.rb +315 -0
  175. data/generated/google/apis/pagespeedonline_v5/service.rb +116 -0
  176. data/generated/google/apis/people_v1.rb +3 -3
  177. data/generated/google/apis/pubsub_v1.rb +1 -1
  178. data/generated/google/apis/pubsub_v1/classes.rb +63 -12
  179. data/generated/google/apis/pubsub_v1/representations.rb +15 -0
  180. data/generated/google/apis/pubsub_v1/service.rb +26 -18
  181. data/generated/google/apis/redis_v1.rb +2 -3
  182. data/generated/google/apis/redis_v1/service.rb +1 -2
  183. data/generated/google/apis/redis_v1beta1.rb +2 -3
  184. data/generated/google/apis/redis_v1beta1/service.rb +1 -2
  185. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  186. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +2 -2
  187. data/generated/google/apis/script_v1.rb +24 -6
  188. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  189. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +66 -1
  190. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +30 -0
  191. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +89 -0
  192. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  193. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  194. data/generated/google/apis/servicemanagement_v1/classes.rb +7 -0
  195. data/generated/google/apis/servicemanagement_v1/representations.rb +1 -0
  196. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  197. data/generated/google/apis/servicenetworking_v1beta/classes.rb +84 -37
  198. data/generated/google/apis/servicenetworking_v1beta/representations.rb +15 -0
  199. data/generated/google/apis/servicenetworking_v1beta/service.rb +132 -43
  200. data/generated/google/apis/serviceusage_v1.rb +1 -1
  201. data/generated/google/apis/serviceusage_v1/classes.rb +1 -1
  202. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  203. data/generated/google/apis/serviceusage_v1beta1/classes.rb +1 -1
  204. data/generated/google/apis/sheets_v4.rb +4 -4
  205. data/generated/google/apis/slides_v1.rb +4 -4
  206. data/generated/google/apis/slides_v1/classes.rb +187 -2
  207. data/generated/google/apis/slides_v1/representations.rb +67 -0
  208. data/generated/google/apis/slides_v1/service.rb +4 -3
  209. data/generated/google/apis/sourcerepo_v1.rb +2 -2
  210. data/generated/google/apis/sourcerepo_v1/service.rb +1 -1
  211. data/generated/google/apis/speech_v1.rb +1 -1
  212. data/generated/google/apis/speech_v1/classes.rb +58 -10
  213. data/generated/google/apis/speech_v1/representations.rb +29 -1
  214. data/generated/google/apis/{speech_v1beta1.rb → speech_v1p1beta1.rb} +6 -6
  215. data/generated/google/apis/speech_v1p1beta1/classes.rb +922 -0
  216. data/generated/google/apis/speech_v1p1beta1/representations.rb +294 -0
  217. data/generated/google/apis/{speech_v1beta1 → speech_v1p1beta1}/service.rb +33 -35
  218. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  219. data/generated/google/apis/sqladmin_v1beta4/classes.rb +64 -3
  220. data/generated/google/apis/sqladmin_v1beta4/representations.rb +31 -0
  221. data/generated/google/apis/storage_v1.rb +1 -1
  222. data/generated/google/apis/storage_v1/classes.rb +54 -0
  223. data/generated/google/apis/storage_v1/representations.rb +31 -0
  224. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  225. data/generated/google/apis/streetviewpublish_v1/classes.rb +26 -0
  226. data/generated/google/apis/streetviewpublish_v1/representations.rb +4 -0
  227. data/generated/google/apis/streetviewpublish_v1/service.rb +29 -3
  228. data/generated/google/apis/tasks_v1.rb +1 -1
  229. data/generated/google/apis/testing_v1.rb +1 -1
  230. data/generated/google/apis/testing_v1/classes.rb +49 -19
  231. data/generated/google/apis/testing_v1/representations.rb +20 -2
  232. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  233. data/generated/google/apis/toolresults_v1beta3/classes.rb +77 -70
  234. data/generated/google/apis/vault_v1.rb +1 -1
  235. data/generated/google/apis/vault_v1/classes.rb +78 -7
  236. data/generated/google/apis/vault_v1/representations.rb +34 -1
  237. data/generated/google/apis/vault_v1/service.rb +141 -0
  238. data/generated/google/apis/vision_v1.rb +1 -1
  239. data/generated/google/apis/vision_v1/classes.rb +33 -0
  240. data/generated/google/apis/vision_v1/representations.rb +16 -0
  241. data/generated/google/apis/vision_v1/service.rb +2 -2
  242. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  243. data/generated/google/apis/vision_v1p1beta1/classes.rb +33 -0
  244. data/generated/google/apis/vision_v1p1beta1/representations.rb +16 -0
  245. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  246. data/generated/google/apis/vision_v1p2beta1/classes.rb +33 -0
  247. data/generated/google/apis/vision_v1p2beta1/representations.rb +16 -0
  248. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  249. data/google-api-client.gemspec +1 -1
  250. data/lib/google/api_client/auth/installed_app.rb +17 -2
  251. data/lib/google/api_client/client_secrets.rb +1 -1
  252. data/lib/google/apis/core/download.rb +2 -2
  253. data/lib/google/apis/errors.rb +9 -0
  254. data/lib/google/apis/generator/annotator.rb +2 -2
  255. data/lib/google/apis/version.rb +1 -1
  256. metadata +46 -17
  257. data/generated/google/apis/cloudiot_v1beta1/classes.rb +0 -959
  258. data/generated/google/apis/cloudiot_v1beta1/representations.rb +0 -375
  259. data/generated/google/apis/cloudiot_v1beta1/service.rb +0 -618
  260. data/generated/google/apis/dfareporting_v3_0.rb +0 -40
  261. data/generated/google/apis/dfareporting_v3_0/classes.rb +0 -12119
  262. data/generated/google/apis/dfareporting_v3_0/representations.rb +0 -4336
  263. data/generated/google/apis/dfareporting_v3_0/service.rb +0 -8701
  264. data/generated/google/apis/speech_v1beta1/classes.rb +0 -480
  265. data/generated/google/apis/speech_v1beta1/representations.rb +0 -194
@@ -0,0 +1,3463 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module ContentV2_1
23
+ # Content API for Shopping
24
+ #
25
+ # Manages product items, inventory, and Merchant Center accounts for Google
26
+ # Shopping.
27
+ #
28
+ # @example
29
+ # require 'google/apis/content_v2_1'
30
+ #
31
+ # Content = Google::Apis::ContentV2_1 # Alias the module
32
+ # service = Content::ShoppingContentService.new
33
+ #
34
+ # @see https://developers.google.com/shopping-content
35
+ class ShoppingContentService < Google::Apis::Core::BaseService
36
+ # @return [String]
37
+ # API key. Your API key identifies your project and provides you with API access,
38
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
+ attr_accessor :key
40
+
41
+ # @return [String]
42
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
43
+ # characters.
44
+ attr_accessor :quota_user
45
+
46
+ # @return [String]
47
+ # Deprecated. Please use quotaUser instead.
48
+ attr_accessor :user_ip
49
+
50
+ def initialize
51
+ super('https://www.googleapis.com/', 'content/v2.1/')
52
+ @batch_path = 'batch/content/v2.1'
53
+ end
54
+
55
+ # Returns information about the authenticated user.
56
+ # @param [String] fields
57
+ # Selector specifying which fields to include in a partial response.
58
+ # @param [String] quota_user
59
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
60
+ # characters.
61
+ # @param [String] user_ip
62
+ # Deprecated. Please use quotaUser instead.
63
+ # @param [Google::Apis::RequestOptions] options
64
+ # Request-specific options
65
+ #
66
+ # @yield [result, err] Result & error if block supplied
67
+ # @yieldparam result [Google::Apis::ContentV2_1::AccountsAuthInfoResponse] parsed result object
68
+ # @yieldparam err [StandardError] error object if request failed
69
+ #
70
+ # @return [Google::Apis::ContentV2_1::AccountsAuthInfoResponse]
71
+ #
72
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
73
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
74
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
75
+ def authinfo_account(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
76
+ command = make_simple_command(:get, 'accounts/authinfo', options)
77
+ command.response_representation = Google::Apis::ContentV2_1::AccountsAuthInfoResponse::Representation
78
+ command.response_class = Google::Apis::ContentV2_1::AccountsAuthInfoResponse
79
+ command.query['fields'] = fields unless fields.nil?
80
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
81
+ command.query['userIp'] = user_ip unless user_ip.nil?
82
+ execute_or_queue_command(command, &block)
83
+ end
84
+
85
+ # Claims the website of a Merchant Center sub-account.
86
+ # @param [Fixnum] merchant_id
87
+ # The ID of the managing account. If this parameter is not the same as accountId,
88
+ # then this account must be a multi-client account and accountId must be the ID
89
+ # of a sub-account of this account.
90
+ # @param [Fixnum] account_id
91
+ # The ID of the account whose website is claimed.
92
+ # @param [Boolean] overwrite
93
+ # Only available to selected merchants. When set to True, this flag removes any
94
+ # existing claim on the requested website by another account and replaces it
95
+ # with a claim from this account.
96
+ # @param [String] fields
97
+ # Selector specifying which fields to include in a partial response.
98
+ # @param [String] quota_user
99
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
100
+ # characters.
101
+ # @param [String] user_ip
102
+ # Deprecated. Please use quotaUser instead.
103
+ # @param [Google::Apis::RequestOptions] options
104
+ # Request-specific options
105
+ #
106
+ # @yield [result, err] Result & error if block supplied
107
+ # @yieldparam result [Google::Apis::ContentV2_1::AccountsClaimWebsiteResponse] parsed result object
108
+ # @yieldparam err [StandardError] error object if request failed
109
+ #
110
+ # @return [Google::Apis::ContentV2_1::AccountsClaimWebsiteResponse]
111
+ #
112
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
113
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
114
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
115
+ def claimwebsite_account(merchant_id, account_id, overwrite: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
116
+ command = make_simple_command(:post, '{merchantId}/accounts/{accountId}/claimwebsite', options)
117
+ command.response_representation = Google::Apis::ContentV2_1::AccountsClaimWebsiteResponse::Representation
118
+ command.response_class = Google::Apis::ContentV2_1::AccountsClaimWebsiteResponse
119
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
120
+ command.params['accountId'] = account_id unless account_id.nil?
121
+ command.query['overwrite'] = overwrite unless overwrite.nil?
122
+ command.query['fields'] = fields unless fields.nil?
123
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
124
+ command.query['userIp'] = user_ip unless user_ip.nil?
125
+ execute_or_queue_command(command, &block)
126
+ end
127
+
128
+ # Retrieves, inserts, updates, and deletes multiple Merchant Center (sub-)
129
+ # accounts in a single request.
130
+ # @param [Google::Apis::ContentV2_1::AccountsCustomBatchRequest] accounts_custom_batch_request_object
131
+ # @param [String] fields
132
+ # Selector specifying which fields to include in a partial response.
133
+ # @param [String] quota_user
134
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
135
+ # characters.
136
+ # @param [String] user_ip
137
+ # Deprecated. Please use quotaUser instead.
138
+ # @param [Google::Apis::RequestOptions] options
139
+ # Request-specific options
140
+ #
141
+ # @yield [result, err] Result & error if block supplied
142
+ # @yieldparam result [Google::Apis::ContentV2_1::AccountsCustomBatchResponse] parsed result object
143
+ # @yieldparam err [StandardError] error object if request failed
144
+ #
145
+ # @return [Google::Apis::ContentV2_1::AccountsCustomBatchResponse]
146
+ #
147
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
148
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
149
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
150
+ def custombatch_account(accounts_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
151
+ command = make_simple_command(:post, 'accounts/batch', options)
152
+ command.request_representation = Google::Apis::ContentV2_1::AccountsCustomBatchRequest::Representation
153
+ command.request_object = accounts_custom_batch_request_object
154
+ command.response_representation = Google::Apis::ContentV2_1::AccountsCustomBatchResponse::Representation
155
+ command.response_class = Google::Apis::ContentV2_1::AccountsCustomBatchResponse
156
+ command.query['fields'] = fields unless fields.nil?
157
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
158
+ command.query['userIp'] = user_ip unless user_ip.nil?
159
+ execute_or_queue_command(command, &block)
160
+ end
161
+
162
+ # Deletes a Merchant Center sub-account.
163
+ # @param [Fixnum] merchant_id
164
+ # The ID of the managing account. This must be a multi-client account, and
165
+ # accountId must be the ID of a sub-account of this account.
166
+ # @param [Fixnum] account_id
167
+ # The ID of the account.
168
+ # @param [Boolean] force
169
+ # Flag to delete sub-accounts with products. The default value is false.
170
+ # @param [String] fields
171
+ # Selector specifying which fields to include in a partial response.
172
+ # @param [String] quota_user
173
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
174
+ # characters.
175
+ # @param [String] user_ip
176
+ # Deprecated. Please use quotaUser instead.
177
+ # @param [Google::Apis::RequestOptions] options
178
+ # Request-specific options
179
+ #
180
+ # @yield [result, err] Result & error if block supplied
181
+ # @yieldparam result [NilClass] No result returned for this method
182
+ # @yieldparam err [StandardError] error object if request failed
183
+ #
184
+ # @return [void]
185
+ #
186
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
187
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
188
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
189
+ def delete_account(merchant_id, account_id, force: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
190
+ command = make_simple_command(:delete, '{merchantId}/accounts/{accountId}', options)
191
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
192
+ command.params['accountId'] = account_id unless account_id.nil?
193
+ command.query['force'] = force unless force.nil?
194
+ command.query['fields'] = fields unless fields.nil?
195
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
196
+ command.query['userIp'] = user_ip unless user_ip.nil?
197
+ execute_or_queue_command(command, &block)
198
+ end
199
+
200
+ # Retrieves a Merchant Center account.
201
+ # @param [Fixnum] merchant_id
202
+ # The ID of the managing account. If this parameter is not the same as accountId,
203
+ # then this account must be a multi-client account and accountId must be the ID
204
+ # of a sub-account of this account.
205
+ # @param [Fixnum] account_id
206
+ # The ID of the account.
207
+ # @param [String] fields
208
+ # Selector specifying which fields to include in a partial response.
209
+ # @param [String] quota_user
210
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
211
+ # characters.
212
+ # @param [String] user_ip
213
+ # Deprecated. Please use quotaUser instead.
214
+ # @param [Google::Apis::RequestOptions] options
215
+ # Request-specific options
216
+ #
217
+ # @yield [result, err] Result & error if block supplied
218
+ # @yieldparam result [Google::Apis::ContentV2_1::Account] parsed result object
219
+ # @yieldparam err [StandardError] error object if request failed
220
+ #
221
+ # @return [Google::Apis::ContentV2_1::Account]
222
+ #
223
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
224
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
225
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
226
+ def get_account(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
227
+ command = make_simple_command(:get, '{merchantId}/accounts/{accountId}', options)
228
+ command.response_representation = Google::Apis::ContentV2_1::Account::Representation
229
+ command.response_class = Google::Apis::ContentV2_1::Account
230
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
231
+ command.params['accountId'] = account_id unless account_id.nil?
232
+ command.query['fields'] = fields unless fields.nil?
233
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
234
+ command.query['userIp'] = user_ip unless user_ip.nil?
235
+ execute_or_queue_command(command, &block)
236
+ end
237
+
238
+ # Creates a Merchant Center sub-account.
239
+ # @param [Fixnum] merchant_id
240
+ # The ID of the managing account. This must be a multi-client account.
241
+ # @param [Google::Apis::ContentV2_1::Account] account_object
242
+ # @param [String] fields
243
+ # Selector specifying which fields to include in a partial response.
244
+ # @param [String] quota_user
245
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
246
+ # characters.
247
+ # @param [String] user_ip
248
+ # Deprecated. Please use quotaUser instead.
249
+ # @param [Google::Apis::RequestOptions] options
250
+ # Request-specific options
251
+ #
252
+ # @yield [result, err] Result & error if block supplied
253
+ # @yieldparam result [Google::Apis::ContentV2_1::Account] parsed result object
254
+ # @yieldparam err [StandardError] error object if request failed
255
+ #
256
+ # @return [Google::Apis::ContentV2_1::Account]
257
+ #
258
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
259
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
260
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
261
+ def insert_account(merchant_id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
262
+ command = make_simple_command(:post, '{merchantId}/accounts', options)
263
+ command.request_representation = Google::Apis::ContentV2_1::Account::Representation
264
+ command.request_object = account_object
265
+ command.response_representation = Google::Apis::ContentV2_1::Account::Representation
266
+ command.response_class = Google::Apis::ContentV2_1::Account
267
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
268
+ command.query['fields'] = fields unless fields.nil?
269
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
270
+ command.query['userIp'] = user_ip unless user_ip.nil?
271
+ execute_or_queue_command(command, &block)
272
+ end
273
+
274
+ # Performs an action on a link between a Merchant Center account and another
275
+ # account.
276
+ # @param [Fixnum] merchant_id
277
+ # The ID of the managing account. If this parameter is not the same as accountId,
278
+ # then this account must be a multi-client account and accountId must be the ID
279
+ # of a sub-account of this account.
280
+ # @param [Fixnum] account_id
281
+ # The ID of the account that should be linked.
282
+ # @param [Google::Apis::ContentV2_1::AccountsLinkRequest] accounts_link_request_object
283
+ # @param [String] fields
284
+ # Selector specifying which fields to include in a partial response.
285
+ # @param [String] quota_user
286
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
287
+ # characters.
288
+ # @param [String] user_ip
289
+ # Deprecated. Please use quotaUser instead.
290
+ # @param [Google::Apis::RequestOptions] options
291
+ # Request-specific options
292
+ #
293
+ # @yield [result, err] Result & error if block supplied
294
+ # @yieldparam result [Google::Apis::ContentV2_1::AccountsLinkResponse] parsed result object
295
+ # @yieldparam err [StandardError] error object if request failed
296
+ #
297
+ # @return [Google::Apis::ContentV2_1::AccountsLinkResponse]
298
+ #
299
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
300
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
301
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
302
+ def link_account(merchant_id, account_id, accounts_link_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
303
+ command = make_simple_command(:post, '{merchantId}/accounts/{accountId}/link', options)
304
+ command.request_representation = Google::Apis::ContentV2_1::AccountsLinkRequest::Representation
305
+ command.request_object = accounts_link_request_object
306
+ command.response_representation = Google::Apis::ContentV2_1::AccountsLinkResponse::Representation
307
+ command.response_class = Google::Apis::ContentV2_1::AccountsLinkResponse
308
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
309
+ command.params['accountId'] = account_id unless account_id.nil?
310
+ command.query['fields'] = fields unless fields.nil?
311
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
312
+ command.query['userIp'] = user_ip unless user_ip.nil?
313
+ execute_or_queue_command(command, &block)
314
+ end
315
+
316
+ # Lists the sub-accounts in your Merchant Center account.
317
+ # @param [Fixnum] merchant_id
318
+ # The ID of the managing account. This must be a multi-client account.
319
+ # @param [Fixnum] max_results
320
+ # The maximum number of accounts to return in the response, used for paging.
321
+ # @param [String] page_token
322
+ # The token returned by the previous request.
323
+ # @param [String] fields
324
+ # Selector specifying which fields to include in a partial response.
325
+ # @param [String] quota_user
326
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
327
+ # characters.
328
+ # @param [String] user_ip
329
+ # Deprecated. Please use quotaUser instead.
330
+ # @param [Google::Apis::RequestOptions] options
331
+ # Request-specific options
332
+ #
333
+ # @yield [result, err] Result & error if block supplied
334
+ # @yieldparam result [Google::Apis::ContentV2_1::AccountsListResponse] parsed result object
335
+ # @yieldparam err [StandardError] error object if request failed
336
+ #
337
+ # @return [Google::Apis::ContentV2_1::AccountsListResponse]
338
+ #
339
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
340
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
341
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
342
+ def list_accounts(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
343
+ command = make_simple_command(:get, '{merchantId}/accounts', options)
344
+ command.response_representation = Google::Apis::ContentV2_1::AccountsListResponse::Representation
345
+ command.response_class = Google::Apis::ContentV2_1::AccountsListResponse
346
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
347
+ command.query['maxResults'] = max_results unless max_results.nil?
348
+ command.query['pageToken'] = page_token unless page_token.nil?
349
+ command.query['fields'] = fields unless fields.nil?
350
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
351
+ command.query['userIp'] = user_ip unless user_ip.nil?
352
+ execute_or_queue_command(command, &block)
353
+ end
354
+
355
+ # Updates a Merchant Center account.
356
+ # @param [Fixnum] merchant_id
357
+ # The ID of the managing account. If this parameter is not the same as accountId,
358
+ # then this account must be a multi-client account and accountId must be the ID
359
+ # of a sub-account of this account.
360
+ # @param [Fixnum] account_id
361
+ # The ID of the account.
362
+ # @param [Google::Apis::ContentV2_1::Account] account_object
363
+ # @param [String] fields
364
+ # Selector specifying which fields to include in a partial response.
365
+ # @param [String] quota_user
366
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
367
+ # characters.
368
+ # @param [String] user_ip
369
+ # Deprecated. Please use quotaUser instead.
370
+ # @param [Google::Apis::RequestOptions] options
371
+ # Request-specific options
372
+ #
373
+ # @yield [result, err] Result & error if block supplied
374
+ # @yieldparam result [Google::Apis::ContentV2_1::Account] parsed result object
375
+ # @yieldparam err [StandardError] error object if request failed
376
+ #
377
+ # @return [Google::Apis::ContentV2_1::Account]
378
+ #
379
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
380
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
381
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
382
+ def update_account(merchant_id, account_id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
383
+ command = make_simple_command(:put, '{merchantId}/accounts/{accountId}', options)
384
+ command.request_representation = Google::Apis::ContentV2_1::Account::Representation
385
+ command.request_object = account_object
386
+ command.response_representation = Google::Apis::ContentV2_1::Account::Representation
387
+ command.response_class = Google::Apis::ContentV2_1::Account
388
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
389
+ command.params['accountId'] = account_id unless account_id.nil?
390
+ command.query['fields'] = fields unless fields.nil?
391
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
392
+ command.query['userIp'] = user_ip unless user_ip.nil?
393
+ execute_or_queue_command(command, &block)
394
+ end
395
+
396
+ #
397
+ # @param [Google::Apis::ContentV2_1::AccountstatusesCustomBatchRequest] accountstatuses_custom_batch_request_object
398
+ # @param [String] fields
399
+ # Selector specifying which fields to include in a partial response.
400
+ # @param [String] quota_user
401
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
402
+ # characters.
403
+ # @param [String] user_ip
404
+ # Deprecated. Please use quotaUser instead.
405
+ # @param [Google::Apis::RequestOptions] options
406
+ # Request-specific options
407
+ #
408
+ # @yield [result, err] Result & error if block supplied
409
+ # @yieldparam result [Google::Apis::ContentV2_1::AccountstatusesCustomBatchResponse] parsed result object
410
+ # @yieldparam err [StandardError] error object if request failed
411
+ #
412
+ # @return [Google::Apis::ContentV2_1::AccountstatusesCustomBatchResponse]
413
+ #
414
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
415
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
416
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
417
+ def custombatch_accountstatus(accountstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
418
+ command = make_simple_command(:post, 'accountstatuses/batch', options)
419
+ command.request_representation = Google::Apis::ContentV2_1::AccountstatusesCustomBatchRequest::Representation
420
+ command.request_object = accountstatuses_custom_batch_request_object
421
+ command.response_representation = Google::Apis::ContentV2_1::AccountstatusesCustomBatchResponse::Representation
422
+ command.response_class = Google::Apis::ContentV2_1::AccountstatusesCustomBatchResponse
423
+ command.query['fields'] = fields unless fields.nil?
424
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
425
+ command.query['userIp'] = user_ip unless user_ip.nil?
426
+ execute_or_queue_command(command, &block)
427
+ end
428
+
429
+ # Retrieves the status of a Merchant Center account. Multi-client accounts can
430
+ # only call this method for sub-accounts.
431
+ # @param [Fixnum] merchant_id
432
+ # The ID of the managing account. If this parameter is not the same as accountId,
433
+ # then this account must be a multi-client account and accountId must be the ID
434
+ # of a sub-account of this account.
435
+ # @param [Fixnum] account_id
436
+ # The ID of the account.
437
+ # @param [Array<String>, String] destinations
438
+ # If set, only issues for the specified destinations are returned, otherwise
439
+ # only issues for the Shopping destination.
440
+ # @param [String] fields
441
+ # Selector specifying which fields to include in a partial response.
442
+ # @param [String] quota_user
443
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
444
+ # characters.
445
+ # @param [String] user_ip
446
+ # Deprecated. Please use quotaUser instead.
447
+ # @param [Google::Apis::RequestOptions] options
448
+ # Request-specific options
449
+ #
450
+ # @yield [result, err] Result & error if block supplied
451
+ # @yieldparam result [Google::Apis::ContentV2_1::AccountStatus] parsed result object
452
+ # @yieldparam err [StandardError] error object if request failed
453
+ #
454
+ # @return [Google::Apis::ContentV2_1::AccountStatus]
455
+ #
456
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
457
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
458
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
459
+ def get_accountstatus(merchant_id, account_id, destinations: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
460
+ command = make_simple_command(:get, '{merchantId}/accountstatuses/{accountId}', options)
461
+ command.response_representation = Google::Apis::ContentV2_1::AccountStatus::Representation
462
+ command.response_class = Google::Apis::ContentV2_1::AccountStatus
463
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
464
+ command.params['accountId'] = account_id unless account_id.nil?
465
+ command.query['destinations'] = destinations unless destinations.nil?
466
+ command.query['fields'] = fields unless fields.nil?
467
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
468
+ command.query['userIp'] = user_ip unless user_ip.nil?
469
+ execute_or_queue_command(command, &block)
470
+ end
471
+
472
+ # Lists the statuses of the sub-accounts in your Merchant Center account.
473
+ # @param [Fixnum] merchant_id
474
+ # The ID of the managing account. This must be a multi-client account.
475
+ # @param [Array<String>, String] destinations
476
+ # If set, only issues for the specified destinations are returned, otherwise
477
+ # only issues for the Shopping destination.
478
+ # @param [Fixnum] max_results
479
+ # The maximum number of account statuses to return in the response, used for
480
+ # paging.
481
+ # @param [String] page_token
482
+ # The token returned by the previous request.
483
+ # @param [String] fields
484
+ # Selector specifying which fields to include in a partial response.
485
+ # @param [String] quota_user
486
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
487
+ # characters.
488
+ # @param [String] user_ip
489
+ # Deprecated. Please use quotaUser instead.
490
+ # @param [Google::Apis::RequestOptions] options
491
+ # Request-specific options
492
+ #
493
+ # @yield [result, err] Result & error if block supplied
494
+ # @yieldparam result [Google::Apis::ContentV2_1::AccountstatusesListResponse] parsed result object
495
+ # @yieldparam err [StandardError] error object if request failed
496
+ #
497
+ # @return [Google::Apis::ContentV2_1::AccountstatusesListResponse]
498
+ #
499
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
500
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
501
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
502
+ def list_accountstatuses(merchant_id, destinations: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
503
+ command = make_simple_command(:get, '{merchantId}/accountstatuses', options)
504
+ command.response_representation = Google::Apis::ContentV2_1::AccountstatusesListResponse::Representation
505
+ command.response_class = Google::Apis::ContentV2_1::AccountstatusesListResponse
506
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
507
+ command.query['destinations'] = destinations unless destinations.nil?
508
+ command.query['maxResults'] = max_results unless max_results.nil?
509
+ command.query['pageToken'] = page_token unless page_token.nil?
510
+ command.query['fields'] = fields unless fields.nil?
511
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
512
+ command.query['userIp'] = user_ip unless user_ip.nil?
513
+ execute_or_queue_command(command, &block)
514
+ end
515
+
516
+ # Retrieves and updates tax settings of multiple accounts in a single request.
517
+ # @param [Google::Apis::ContentV2_1::AccounttaxCustomBatchRequest] accounttax_custom_batch_request_object
518
+ # @param [String] fields
519
+ # Selector specifying which fields to include in a partial response.
520
+ # @param [String] quota_user
521
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
522
+ # characters.
523
+ # @param [String] user_ip
524
+ # Deprecated. Please use quotaUser instead.
525
+ # @param [Google::Apis::RequestOptions] options
526
+ # Request-specific options
527
+ #
528
+ # @yield [result, err] Result & error if block supplied
529
+ # @yieldparam result [Google::Apis::ContentV2_1::AccounttaxCustomBatchResponse] parsed result object
530
+ # @yieldparam err [StandardError] error object if request failed
531
+ #
532
+ # @return [Google::Apis::ContentV2_1::AccounttaxCustomBatchResponse]
533
+ #
534
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
535
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
536
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
537
+ def custombatch_accounttax(accounttax_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
538
+ command = make_simple_command(:post, 'accounttax/batch', options)
539
+ command.request_representation = Google::Apis::ContentV2_1::AccounttaxCustomBatchRequest::Representation
540
+ command.request_object = accounttax_custom_batch_request_object
541
+ command.response_representation = Google::Apis::ContentV2_1::AccounttaxCustomBatchResponse::Representation
542
+ command.response_class = Google::Apis::ContentV2_1::AccounttaxCustomBatchResponse
543
+ command.query['fields'] = fields unless fields.nil?
544
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
545
+ command.query['userIp'] = user_ip unless user_ip.nil?
546
+ execute_or_queue_command(command, &block)
547
+ end
548
+
549
+ # Retrieves the tax settings of the account.
550
+ # @param [Fixnum] merchant_id
551
+ # The ID of the managing account. If this parameter is not the same as accountId,
552
+ # then this account must be a multi-client account and accountId must be the ID
553
+ # of a sub-account of this account.
554
+ # @param [Fixnum] account_id
555
+ # The ID of the account for which to get/update account tax settings.
556
+ # @param [String] fields
557
+ # Selector specifying which fields to include in a partial response.
558
+ # @param [String] quota_user
559
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
560
+ # characters.
561
+ # @param [String] user_ip
562
+ # Deprecated. Please use quotaUser instead.
563
+ # @param [Google::Apis::RequestOptions] options
564
+ # Request-specific options
565
+ #
566
+ # @yield [result, err] Result & error if block supplied
567
+ # @yieldparam result [Google::Apis::ContentV2_1::AccountTax] parsed result object
568
+ # @yieldparam err [StandardError] error object if request failed
569
+ #
570
+ # @return [Google::Apis::ContentV2_1::AccountTax]
571
+ #
572
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
573
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
574
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
575
+ def get_accounttax(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
576
+ command = make_simple_command(:get, '{merchantId}/accounttax/{accountId}', options)
577
+ command.response_representation = Google::Apis::ContentV2_1::AccountTax::Representation
578
+ command.response_class = Google::Apis::ContentV2_1::AccountTax
579
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
580
+ command.params['accountId'] = account_id unless account_id.nil?
581
+ command.query['fields'] = fields unless fields.nil?
582
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
583
+ command.query['userIp'] = user_ip unless user_ip.nil?
584
+ execute_or_queue_command(command, &block)
585
+ end
586
+
587
+ # Lists the tax settings of the sub-accounts in your Merchant Center account.
588
+ # @param [Fixnum] merchant_id
589
+ # The ID of the managing account. This must be a multi-client account.
590
+ # @param [Fixnum] max_results
591
+ # The maximum number of tax settings to return in the response, used for paging.
592
+ # @param [String] page_token
593
+ # The token returned by the previous request.
594
+ # @param [String] fields
595
+ # Selector specifying which fields to include in a partial response.
596
+ # @param [String] quota_user
597
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
598
+ # characters.
599
+ # @param [String] user_ip
600
+ # Deprecated. Please use quotaUser instead.
601
+ # @param [Google::Apis::RequestOptions] options
602
+ # Request-specific options
603
+ #
604
+ # @yield [result, err] Result & error if block supplied
605
+ # @yieldparam result [Google::Apis::ContentV2_1::AccounttaxListResponse] parsed result object
606
+ # @yieldparam err [StandardError] error object if request failed
607
+ #
608
+ # @return [Google::Apis::ContentV2_1::AccounttaxListResponse]
609
+ #
610
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
611
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
612
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
613
+ def list_accounttaxes(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
614
+ command = make_simple_command(:get, '{merchantId}/accounttax', options)
615
+ command.response_representation = Google::Apis::ContentV2_1::AccounttaxListResponse::Representation
616
+ command.response_class = Google::Apis::ContentV2_1::AccounttaxListResponse
617
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
618
+ command.query['maxResults'] = max_results unless max_results.nil?
619
+ command.query['pageToken'] = page_token unless page_token.nil?
620
+ command.query['fields'] = fields unless fields.nil?
621
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
622
+ command.query['userIp'] = user_ip unless user_ip.nil?
623
+ execute_or_queue_command(command, &block)
624
+ end
625
+
626
+ # Updates the tax settings of the account.
627
+ # @param [Fixnum] merchant_id
628
+ # The ID of the managing account. If this parameter is not the same as accountId,
629
+ # then this account must be a multi-client account and accountId must be the ID
630
+ # of a sub-account of this account.
631
+ # @param [Fixnum] account_id
632
+ # The ID of the account for which to get/update account tax settings.
633
+ # @param [Google::Apis::ContentV2_1::AccountTax] account_tax_object
634
+ # @param [String] fields
635
+ # Selector specifying which fields to include in a partial response.
636
+ # @param [String] quota_user
637
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
638
+ # characters.
639
+ # @param [String] user_ip
640
+ # Deprecated. Please use quotaUser instead.
641
+ # @param [Google::Apis::RequestOptions] options
642
+ # Request-specific options
643
+ #
644
+ # @yield [result, err] Result & error if block supplied
645
+ # @yieldparam result [Google::Apis::ContentV2_1::AccountTax] parsed result object
646
+ # @yieldparam err [StandardError] error object if request failed
647
+ #
648
+ # @return [Google::Apis::ContentV2_1::AccountTax]
649
+ #
650
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
651
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
652
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
653
+ def update_accounttax(merchant_id, account_id, account_tax_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
654
+ command = make_simple_command(:put, '{merchantId}/accounttax/{accountId}', options)
655
+ command.request_representation = Google::Apis::ContentV2_1::AccountTax::Representation
656
+ command.request_object = account_tax_object
657
+ command.response_representation = Google::Apis::ContentV2_1::AccountTax::Representation
658
+ command.response_class = Google::Apis::ContentV2_1::AccountTax
659
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
660
+ command.params['accountId'] = account_id unless account_id.nil?
661
+ command.query['fields'] = fields unless fields.nil?
662
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
663
+ command.query['userIp'] = user_ip unless user_ip.nil?
664
+ execute_or_queue_command(command, &block)
665
+ end
666
+
667
+ #
668
+ # @param [Google::Apis::ContentV2_1::DatafeedsCustomBatchRequest] datafeeds_custom_batch_request_object
669
+ # @param [String] fields
670
+ # Selector specifying which fields to include in a partial response.
671
+ # @param [String] quota_user
672
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
673
+ # characters.
674
+ # @param [String] user_ip
675
+ # Deprecated. Please use quotaUser instead.
676
+ # @param [Google::Apis::RequestOptions] options
677
+ # Request-specific options
678
+ #
679
+ # @yield [result, err] Result & error if block supplied
680
+ # @yieldparam result [Google::Apis::ContentV2_1::DatafeedsCustomBatchResponse] parsed result object
681
+ # @yieldparam err [StandardError] error object if request failed
682
+ #
683
+ # @return [Google::Apis::ContentV2_1::DatafeedsCustomBatchResponse]
684
+ #
685
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
686
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
687
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
688
+ def custombatch_datafeed(datafeeds_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
689
+ command = make_simple_command(:post, 'datafeeds/batch', options)
690
+ command.request_representation = Google::Apis::ContentV2_1::DatafeedsCustomBatchRequest::Representation
691
+ command.request_object = datafeeds_custom_batch_request_object
692
+ command.response_representation = Google::Apis::ContentV2_1::DatafeedsCustomBatchResponse::Representation
693
+ command.response_class = Google::Apis::ContentV2_1::DatafeedsCustomBatchResponse
694
+ command.query['fields'] = fields unless fields.nil?
695
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
696
+ command.query['userIp'] = user_ip unless user_ip.nil?
697
+ execute_or_queue_command(command, &block)
698
+ end
699
+
700
+ # Deletes a datafeed configuration from your Merchant Center account.
701
+ # @param [Fixnum] merchant_id
702
+ # The ID of the account that manages the datafeed. This account cannot be a
703
+ # multi-client account.
704
+ # @param [Fixnum] datafeed_id
705
+ # The ID of the datafeed.
706
+ # @param [String] fields
707
+ # Selector specifying which fields to include in a partial response.
708
+ # @param [String] quota_user
709
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
710
+ # characters.
711
+ # @param [String] user_ip
712
+ # Deprecated. Please use quotaUser instead.
713
+ # @param [Google::Apis::RequestOptions] options
714
+ # Request-specific options
715
+ #
716
+ # @yield [result, err] Result & error if block supplied
717
+ # @yieldparam result [NilClass] No result returned for this method
718
+ # @yieldparam err [StandardError] error object if request failed
719
+ #
720
+ # @return [void]
721
+ #
722
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
723
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
724
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
725
+ def delete_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
726
+ command = make_simple_command(:delete, '{merchantId}/datafeeds/{datafeedId}', options)
727
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
728
+ command.params['datafeedId'] = datafeed_id unless datafeed_id.nil?
729
+ command.query['fields'] = fields unless fields.nil?
730
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
731
+ command.query['userIp'] = user_ip unless user_ip.nil?
732
+ execute_or_queue_command(command, &block)
733
+ end
734
+
735
+ # Invokes a fetch for the datafeed in your Merchant Center account.
736
+ # @param [Fixnum] merchant_id
737
+ # The ID of the account that manages the datafeed. This account cannot be a
738
+ # multi-client account.
739
+ # @param [Fixnum] datafeed_id
740
+ # The ID of the datafeed to be fetched.
741
+ # @param [String] fields
742
+ # Selector specifying which fields to include in a partial response.
743
+ # @param [String] quota_user
744
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
745
+ # characters.
746
+ # @param [String] user_ip
747
+ # Deprecated. Please use quotaUser instead.
748
+ # @param [Google::Apis::RequestOptions] options
749
+ # Request-specific options
750
+ #
751
+ # @yield [result, err] Result & error if block supplied
752
+ # @yieldparam result [Google::Apis::ContentV2_1::DatafeedsFetchNowResponse] parsed result object
753
+ # @yieldparam err [StandardError] error object if request failed
754
+ #
755
+ # @return [Google::Apis::ContentV2_1::DatafeedsFetchNowResponse]
756
+ #
757
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
758
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
759
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
760
+ def fetchnow_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
761
+ command = make_simple_command(:post, '{merchantId}/datafeeds/{datafeedId}/fetchNow', options)
762
+ command.response_representation = Google::Apis::ContentV2_1::DatafeedsFetchNowResponse::Representation
763
+ command.response_class = Google::Apis::ContentV2_1::DatafeedsFetchNowResponse
764
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
765
+ command.params['datafeedId'] = datafeed_id unless datafeed_id.nil?
766
+ command.query['fields'] = fields unless fields.nil?
767
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
768
+ command.query['userIp'] = user_ip unless user_ip.nil?
769
+ execute_or_queue_command(command, &block)
770
+ end
771
+
772
+ # Retrieves a datafeed configuration from your Merchant Center account.
773
+ # @param [Fixnum] merchant_id
774
+ # The ID of the account that manages the datafeed. This account cannot be a
775
+ # multi-client account.
776
+ # @param [Fixnum] datafeed_id
777
+ # The ID of the datafeed.
778
+ # @param [String] fields
779
+ # Selector specifying which fields to include in a partial response.
780
+ # @param [String] quota_user
781
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
782
+ # characters.
783
+ # @param [String] user_ip
784
+ # Deprecated. Please use quotaUser instead.
785
+ # @param [Google::Apis::RequestOptions] options
786
+ # Request-specific options
787
+ #
788
+ # @yield [result, err] Result & error if block supplied
789
+ # @yieldparam result [Google::Apis::ContentV2_1::Datafeed] parsed result object
790
+ # @yieldparam err [StandardError] error object if request failed
791
+ #
792
+ # @return [Google::Apis::ContentV2_1::Datafeed]
793
+ #
794
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
795
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
796
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
797
+ def get_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
798
+ command = make_simple_command(:get, '{merchantId}/datafeeds/{datafeedId}', options)
799
+ command.response_representation = Google::Apis::ContentV2_1::Datafeed::Representation
800
+ command.response_class = Google::Apis::ContentV2_1::Datafeed
801
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
802
+ command.params['datafeedId'] = datafeed_id unless datafeed_id.nil?
803
+ command.query['fields'] = fields unless fields.nil?
804
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
805
+ command.query['userIp'] = user_ip unless user_ip.nil?
806
+ execute_or_queue_command(command, &block)
807
+ end
808
+
809
+ # Registers a datafeed configuration with your Merchant Center account.
810
+ # @param [Fixnum] merchant_id
811
+ # The ID of the account that manages the datafeed. This account cannot be a
812
+ # multi-client account.
813
+ # @param [Google::Apis::ContentV2_1::Datafeed] datafeed_object
814
+ # @param [String] fields
815
+ # Selector specifying which fields to include in a partial response.
816
+ # @param [String] quota_user
817
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
818
+ # characters.
819
+ # @param [String] user_ip
820
+ # Deprecated. Please use quotaUser instead.
821
+ # @param [Google::Apis::RequestOptions] options
822
+ # Request-specific options
823
+ #
824
+ # @yield [result, err] Result & error if block supplied
825
+ # @yieldparam result [Google::Apis::ContentV2_1::Datafeed] parsed result object
826
+ # @yieldparam err [StandardError] error object if request failed
827
+ #
828
+ # @return [Google::Apis::ContentV2_1::Datafeed]
829
+ #
830
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
831
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
832
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
833
+ def insert_datafeed(merchant_id, datafeed_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
834
+ command = make_simple_command(:post, '{merchantId}/datafeeds', options)
835
+ command.request_representation = Google::Apis::ContentV2_1::Datafeed::Representation
836
+ command.request_object = datafeed_object
837
+ command.response_representation = Google::Apis::ContentV2_1::Datafeed::Representation
838
+ command.response_class = Google::Apis::ContentV2_1::Datafeed
839
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
840
+ command.query['fields'] = fields unless fields.nil?
841
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
842
+ command.query['userIp'] = user_ip unless user_ip.nil?
843
+ execute_or_queue_command(command, &block)
844
+ end
845
+
846
+ # Lists the configurations for datafeeds in your Merchant Center account.
847
+ # @param [Fixnum] merchant_id
848
+ # The ID of the account that manages the datafeeds. This account cannot be a
849
+ # multi-client account.
850
+ # @param [Fixnum] max_results
851
+ # The maximum number of products to return in the response, used for paging.
852
+ # @param [String] page_token
853
+ # The token returned by the previous request.
854
+ # @param [String] fields
855
+ # Selector specifying which fields to include in a partial response.
856
+ # @param [String] quota_user
857
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
858
+ # characters.
859
+ # @param [String] user_ip
860
+ # Deprecated. Please use quotaUser instead.
861
+ # @param [Google::Apis::RequestOptions] options
862
+ # Request-specific options
863
+ #
864
+ # @yield [result, err] Result & error if block supplied
865
+ # @yieldparam result [Google::Apis::ContentV2_1::DatafeedsListResponse] parsed result object
866
+ # @yieldparam err [StandardError] error object if request failed
867
+ #
868
+ # @return [Google::Apis::ContentV2_1::DatafeedsListResponse]
869
+ #
870
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
871
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
872
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
873
+ def list_datafeeds(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
874
+ command = make_simple_command(:get, '{merchantId}/datafeeds', options)
875
+ command.response_representation = Google::Apis::ContentV2_1::DatafeedsListResponse::Representation
876
+ command.response_class = Google::Apis::ContentV2_1::DatafeedsListResponse
877
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
878
+ command.query['maxResults'] = max_results unless max_results.nil?
879
+ command.query['pageToken'] = page_token unless page_token.nil?
880
+ command.query['fields'] = fields unless fields.nil?
881
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
882
+ command.query['userIp'] = user_ip unless user_ip.nil?
883
+ execute_or_queue_command(command, &block)
884
+ end
885
+
886
+ # Updates a datafeed configuration of your Merchant Center account.
887
+ # @param [Fixnum] merchant_id
888
+ # The ID of the account that manages the datafeed. This account cannot be a
889
+ # multi-client account.
890
+ # @param [Fixnum] datafeed_id
891
+ # The ID of the datafeed.
892
+ # @param [Google::Apis::ContentV2_1::Datafeed] datafeed_object
893
+ # @param [String] fields
894
+ # Selector specifying which fields to include in a partial response.
895
+ # @param [String] quota_user
896
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
897
+ # characters.
898
+ # @param [String] user_ip
899
+ # Deprecated. Please use quotaUser instead.
900
+ # @param [Google::Apis::RequestOptions] options
901
+ # Request-specific options
902
+ #
903
+ # @yield [result, err] Result & error if block supplied
904
+ # @yieldparam result [Google::Apis::ContentV2_1::Datafeed] parsed result object
905
+ # @yieldparam err [StandardError] error object if request failed
906
+ #
907
+ # @return [Google::Apis::ContentV2_1::Datafeed]
908
+ #
909
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
910
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
911
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
912
+ def update_datafeed(merchant_id, datafeed_id, datafeed_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
913
+ command = make_simple_command(:put, '{merchantId}/datafeeds/{datafeedId}', options)
914
+ command.request_representation = Google::Apis::ContentV2_1::Datafeed::Representation
915
+ command.request_object = datafeed_object
916
+ command.response_representation = Google::Apis::ContentV2_1::Datafeed::Representation
917
+ command.response_class = Google::Apis::ContentV2_1::Datafeed
918
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
919
+ command.params['datafeedId'] = datafeed_id unless datafeed_id.nil?
920
+ command.query['fields'] = fields unless fields.nil?
921
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
922
+ command.query['userIp'] = user_ip unless user_ip.nil?
923
+ execute_or_queue_command(command, &block)
924
+ end
925
+
926
+ #
927
+ # @param [Google::Apis::ContentV2_1::DatafeedstatusesCustomBatchRequest] datafeedstatuses_custom_batch_request_object
928
+ # @param [String] fields
929
+ # Selector specifying which fields to include in a partial response.
930
+ # @param [String] quota_user
931
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
932
+ # characters.
933
+ # @param [String] user_ip
934
+ # Deprecated. Please use quotaUser instead.
935
+ # @param [Google::Apis::RequestOptions] options
936
+ # Request-specific options
937
+ #
938
+ # @yield [result, err] Result & error if block supplied
939
+ # @yieldparam result [Google::Apis::ContentV2_1::DatafeedstatusesCustomBatchResponse] parsed result object
940
+ # @yieldparam err [StandardError] error object if request failed
941
+ #
942
+ # @return [Google::Apis::ContentV2_1::DatafeedstatusesCustomBatchResponse]
943
+ #
944
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
945
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
946
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
947
+ def custombatch_datafeedstatus(datafeedstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
948
+ command = make_simple_command(:post, 'datafeedstatuses/batch', options)
949
+ command.request_representation = Google::Apis::ContentV2_1::DatafeedstatusesCustomBatchRequest::Representation
950
+ command.request_object = datafeedstatuses_custom_batch_request_object
951
+ command.response_representation = Google::Apis::ContentV2_1::DatafeedstatusesCustomBatchResponse::Representation
952
+ command.response_class = Google::Apis::ContentV2_1::DatafeedstatusesCustomBatchResponse
953
+ command.query['fields'] = fields unless fields.nil?
954
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
955
+ command.query['userIp'] = user_ip unless user_ip.nil?
956
+ execute_or_queue_command(command, &block)
957
+ end
958
+
959
+ # Retrieves the status of a datafeed from your Merchant Center account.
960
+ # @param [Fixnum] merchant_id
961
+ # The ID of the account that manages the datafeed. This account cannot be a
962
+ # multi-client account.
963
+ # @param [Fixnum] datafeed_id
964
+ # The ID of the datafeed.
965
+ # @param [String] country
966
+ # The country for which to get the datafeed status. If this parameter is
967
+ # provided then language must also be provided. Note that this parameter is
968
+ # required for feeds targeting multiple countries and languages, since a feed
969
+ # may have a different status for each target.
970
+ # @param [String] language
971
+ # The language for which to get the datafeed status. If this parameter is
972
+ # provided then country must also be provided. Note that this parameter is
973
+ # required for feeds targeting multiple countries and languages, since a feed
974
+ # may have a different status for each target.
975
+ # @param [String] fields
976
+ # Selector specifying which fields to include in a partial response.
977
+ # @param [String] quota_user
978
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
979
+ # characters.
980
+ # @param [String] user_ip
981
+ # Deprecated. Please use quotaUser instead.
982
+ # @param [Google::Apis::RequestOptions] options
983
+ # Request-specific options
984
+ #
985
+ # @yield [result, err] Result & error if block supplied
986
+ # @yieldparam result [Google::Apis::ContentV2_1::DatafeedStatus] parsed result object
987
+ # @yieldparam err [StandardError] error object if request failed
988
+ #
989
+ # @return [Google::Apis::ContentV2_1::DatafeedStatus]
990
+ #
991
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
992
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
993
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
994
+ def get_datafeedstatus(merchant_id, datafeed_id, country: nil, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
995
+ command = make_simple_command(:get, '{merchantId}/datafeedstatuses/{datafeedId}', options)
996
+ command.response_representation = Google::Apis::ContentV2_1::DatafeedStatus::Representation
997
+ command.response_class = Google::Apis::ContentV2_1::DatafeedStatus
998
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
999
+ command.params['datafeedId'] = datafeed_id unless datafeed_id.nil?
1000
+ command.query['country'] = country unless country.nil?
1001
+ command.query['language'] = language unless language.nil?
1002
+ command.query['fields'] = fields unless fields.nil?
1003
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1004
+ command.query['userIp'] = user_ip unless user_ip.nil?
1005
+ execute_or_queue_command(command, &block)
1006
+ end
1007
+
1008
+ # Lists the statuses of the datafeeds in your Merchant Center account.
1009
+ # @param [Fixnum] merchant_id
1010
+ # The ID of the account that manages the datafeeds. This account cannot be a
1011
+ # multi-client account.
1012
+ # @param [Fixnum] max_results
1013
+ # The maximum number of products to return in the response, used for paging.
1014
+ # @param [String] page_token
1015
+ # The token returned by the previous request.
1016
+ # @param [String] fields
1017
+ # Selector specifying which fields to include in a partial response.
1018
+ # @param [String] quota_user
1019
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1020
+ # characters.
1021
+ # @param [String] user_ip
1022
+ # Deprecated. Please use quotaUser instead.
1023
+ # @param [Google::Apis::RequestOptions] options
1024
+ # Request-specific options
1025
+ #
1026
+ # @yield [result, err] Result & error if block supplied
1027
+ # @yieldparam result [Google::Apis::ContentV2_1::DatafeedstatusesListResponse] parsed result object
1028
+ # @yieldparam err [StandardError] error object if request failed
1029
+ #
1030
+ # @return [Google::Apis::ContentV2_1::DatafeedstatusesListResponse]
1031
+ #
1032
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1033
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1034
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1035
+ def list_datafeedstatuses(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1036
+ command = make_simple_command(:get, '{merchantId}/datafeedstatuses', options)
1037
+ command.response_representation = Google::Apis::ContentV2_1::DatafeedstatusesListResponse::Representation
1038
+ command.response_class = Google::Apis::ContentV2_1::DatafeedstatusesListResponse
1039
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1040
+ command.query['maxResults'] = max_results unless max_results.nil?
1041
+ command.query['pageToken'] = page_token unless page_token.nil?
1042
+ command.query['fields'] = fields unless fields.nil?
1043
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1044
+ command.query['userIp'] = user_ip unless user_ip.nil?
1045
+ execute_or_queue_command(command, &block)
1046
+ end
1047
+
1048
+ # Retrieves and/or updates the LIA settings of multiple accounts in a single
1049
+ # request.
1050
+ # @param [Google::Apis::ContentV2_1::LiasettingsCustomBatchRequest] liasettings_custom_batch_request_object
1051
+ # @param [String] fields
1052
+ # Selector specifying which fields to include in a partial response.
1053
+ # @param [String] quota_user
1054
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1055
+ # characters.
1056
+ # @param [String] user_ip
1057
+ # Deprecated. Please use quotaUser instead.
1058
+ # @param [Google::Apis::RequestOptions] options
1059
+ # Request-specific options
1060
+ #
1061
+ # @yield [result, err] Result & error if block supplied
1062
+ # @yieldparam result [Google::Apis::ContentV2_1::LiasettingsCustomBatchResponse] parsed result object
1063
+ # @yieldparam err [StandardError] error object if request failed
1064
+ #
1065
+ # @return [Google::Apis::ContentV2_1::LiasettingsCustomBatchResponse]
1066
+ #
1067
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1068
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1069
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1070
+ def custombatch_liasetting(liasettings_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1071
+ command = make_simple_command(:post, 'liasettings/batch', options)
1072
+ command.request_representation = Google::Apis::ContentV2_1::LiasettingsCustomBatchRequest::Representation
1073
+ command.request_object = liasettings_custom_batch_request_object
1074
+ command.response_representation = Google::Apis::ContentV2_1::LiasettingsCustomBatchResponse::Representation
1075
+ command.response_class = Google::Apis::ContentV2_1::LiasettingsCustomBatchResponse
1076
+ command.query['fields'] = fields unless fields.nil?
1077
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1078
+ command.query['userIp'] = user_ip unless user_ip.nil?
1079
+ execute_or_queue_command(command, &block)
1080
+ end
1081
+
1082
+ # Retrieves the LIA settings of the account.
1083
+ # @param [Fixnum] merchant_id
1084
+ # The ID of the managing account. If this parameter is not the same as accountId,
1085
+ # then this account must be a multi-client account and accountId must be the ID
1086
+ # of a sub-account of this account.
1087
+ # @param [Fixnum] account_id
1088
+ # The ID of the account for which to get or update LIA settings.
1089
+ # @param [String] fields
1090
+ # Selector specifying which fields to include in a partial response.
1091
+ # @param [String] quota_user
1092
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1093
+ # characters.
1094
+ # @param [String] user_ip
1095
+ # Deprecated. Please use quotaUser instead.
1096
+ # @param [Google::Apis::RequestOptions] options
1097
+ # Request-specific options
1098
+ #
1099
+ # @yield [result, err] Result & error if block supplied
1100
+ # @yieldparam result [Google::Apis::ContentV2_1::LiaSettings] parsed result object
1101
+ # @yieldparam err [StandardError] error object if request failed
1102
+ #
1103
+ # @return [Google::Apis::ContentV2_1::LiaSettings]
1104
+ #
1105
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1106
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1107
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1108
+ def get_liasetting(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1109
+ command = make_simple_command(:get, '{merchantId}/liasettings/{accountId}', options)
1110
+ command.response_representation = Google::Apis::ContentV2_1::LiaSettings::Representation
1111
+ command.response_class = Google::Apis::ContentV2_1::LiaSettings
1112
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1113
+ command.params['accountId'] = account_id unless account_id.nil?
1114
+ command.query['fields'] = fields unless fields.nil?
1115
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1116
+ command.query['userIp'] = user_ip unless user_ip.nil?
1117
+ execute_or_queue_command(command, &block)
1118
+ end
1119
+
1120
+ # Retrieves the list of accessible Google My Business accounts.
1121
+ # @param [Fixnum] merchant_id
1122
+ # The ID of the managing account. If this parameter is not the same as accountId,
1123
+ # then this account must be a multi-client account and accountId must be the ID
1124
+ # of a sub-account of this account.
1125
+ # @param [Fixnum] account_id
1126
+ # The ID of the account for which to retrieve accessible Google My Business
1127
+ # accounts.
1128
+ # @param [String] fields
1129
+ # Selector specifying which fields to include in a partial response.
1130
+ # @param [String] quota_user
1131
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1132
+ # characters.
1133
+ # @param [String] user_ip
1134
+ # Deprecated. Please use quotaUser instead.
1135
+ # @param [Google::Apis::RequestOptions] options
1136
+ # Request-specific options
1137
+ #
1138
+ # @yield [result, err] Result & error if block supplied
1139
+ # @yieldparam result [Google::Apis::ContentV2_1::LiasettingsGetAccessibleGmbAccountsResponse] parsed result object
1140
+ # @yieldparam err [StandardError] error object if request failed
1141
+ #
1142
+ # @return [Google::Apis::ContentV2_1::LiasettingsGetAccessibleGmbAccountsResponse]
1143
+ #
1144
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1145
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1146
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1147
+ def getaccessiblegmbaccounts_liasetting(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1148
+ command = make_simple_command(:get, '{merchantId}/liasettings/{accountId}/accessiblegmbaccounts', options)
1149
+ command.response_representation = Google::Apis::ContentV2_1::LiasettingsGetAccessibleGmbAccountsResponse::Representation
1150
+ command.response_class = Google::Apis::ContentV2_1::LiasettingsGetAccessibleGmbAccountsResponse
1151
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1152
+ command.params['accountId'] = account_id unless account_id.nil?
1153
+ command.query['fields'] = fields unless fields.nil?
1154
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1155
+ command.query['userIp'] = user_ip unless user_ip.nil?
1156
+ execute_or_queue_command(command, &block)
1157
+ end
1158
+
1159
+ # Lists the LIA settings of the sub-accounts in your Merchant Center account.
1160
+ # @param [Fixnum] merchant_id
1161
+ # The ID of the managing account. This must be a multi-client account.
1162
+ # @param [Fixnum] max_results
1163
+ # The maximum number of LIA settings to return in the response, used for paging.
1164
+ # @param [String] page_token
1165
+ # The token returned by the previous request.
1166
+ # @param [String] fields
1167
+ # Selector specifying which fields to include in a partial response.
1168
+ # @param [String] quota_user
1169
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1170
+ # characters.
1171
+ # @param [String] user_ip
1172
+ # Deprecated. Please use quotaUser instead.
1173
+ # @param [Google::Apis::RequestOptions] options
1174
+ # Request-specific options
1175
+ #
1176
+ # @yield [result, err] Result & error if block supplied
1177
+ # @yieldparam result [Google::Apis::ContentV2_1::LiasettingsListResponse] parsed result object
1178
+ # @yieldparam err [StandardError] error object if request failed
1179
+ #
1180
+ # @return [Google::Apis::ContentV2_1::LiasettingsListResponse]
1181
+ #
1182
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1183
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1184
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1185
+ def list_liasettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1186
+ command = make_simple_command(:get, '{merchantId}/liasettings', options)
1187
+ command.response_representation = Google::Apis::ContentV2_1::LiasettingsListResponse::Representation
1188
+ command.response_class = Google::Apis::ContentV2_1::LiasettingsListResponse
1189
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1190
+ command.query['maxResults'] = max_results unless max_results.nil?
1191
+ command.query['pageToken'] = page_token unless page_token.nil?
1192
+ command.query['fields'] = fields unless fields.nil?
1193
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1194
+ command.query['userIp'] = user_ip unless user_ip.nil?
1195
+ execute_or_queue_command(command, &block)
1196
+ end
1197
+
1198
+ # Retrieves the list of POS data providers that have active settings for the all
1199
+ # eiligible countries.
1200
+ # @param [String] fields
1201
+ # Selector specifying which fields to include in a partial response.
1202
+ # @param [String] quota_user
1203
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1204
+ # characters.
1205
+ # @param [String] user_ip
1206
+ # Deprecated. Please use quotaUser instead.
1207
+ # @param [Google::Apis::RequestOptions] options
1208
+ # Request-specific options
1209
+ #
1210
+ # @yield [result, err] Result & error if block supplied
1211
+ # @yieldparam result [Google::Apis::ContentV2_1::LiasettingsListPosDataProvidersResponse] parsed result object
1212
+ # @yieldparam err [StandardError] error object if request failed
1213
+ #
1214
+ # @return [Google::Apis::ContentV2_1::LiasettingsListPosDataProvidersResponse]
1215
+ #
1216
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1217
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1218
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1219
+ def listposdataproviders_liasetting(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1220
+ command = make_simple_command(:get, 'liasettings/posdataproviders', options)
1221
+ command.response_representation = Google::Apis::ContentV2_1::LiasettingsListPosDataProvidersResponse::Representation
1222
+ command.response_class = Google::Apis::ContentV2_1::LiasettingsListPosDataProvidersResponse
1223
+ command.query['fields'] = fields unless fields.nil?
1224
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1225
+ command.query['userIp'] = user_ip unless user_ip.nil?
1226
+ execute_or_queue_command(command, &block)
1227
+ end
1228
+
1229
+ # Requests access to a specified Google My Business account.
1230
+ # @param [Fixnum] merchant_id
1231
+ # The ID of the managing account. If this parameter is not the same as accountId,
1232
+ # then this account must be a multi-client account and accountId must be the ID
1233
+ # of a sub-account of this account.
1234
+ # @param [Fixnum] account_id
1235
+ # The ID of the account for which GMB access is requested.
1236
+ # @param [String] gmb_email
1237
+ # The email of the Google My Business account.
1238
+ # @param [String] fields
1239
+ # Selector specifying which fields to include in a partial response.
1240
+ # @param [String] quota_user
1241
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1242
+ # characters.
1243
+ # @param [String] user_ip
1244
+ # Deprecated. Please use quotaUser instead.
1245
+ # @param [Google::Apis::RequestOptions] options
1246
+ # Request-specific options
1247
+ #
1248
+ # @yield [result, err] Result & error if block supplied
1249
+ # @yieldparam result [Google::Apis::ContentV2_1::LiasettingsRequestGmbAccessResponse] parsed result object
1250
+ # @yieldparam err [StandardError] error object if request failed
1251
+ #
1252
+ # @return [Google::Apis::ContentV2_1::LiasettingsRequestGmbAccessResponse]
1253
+ #
1254
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1255
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1256
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1257
+ def requestgmbaccess_liasetting(merchant_id, account_id, gmb_email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1258
+ command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/requestgmbaccess', options)
1259
+ command.response_representation = Google::Apis::ContentV2_1::LiasettingsRequestGmbAccessResponse::Representation
1260
+ command.response_class = Google::Apis::ContentV2_1::LiasettingsRequestGmbAccessResponse
1261
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1262
+ command.params['accountId'] = account_id unless account_id.nil?
1263
+ command.query['gmbEmail'] = gmb_email unless gmb_email.nil?
1264
+ command.query['fields'] = fields unless fields.nil?
1265
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1266
+ command.query['userIp'] = user_ip unless user_ip.nil?
1267
+ execute_or_queue_command(command, &block)
1268
+ end
1269
+
1270
+ # Requests inventory validation for the specified country.
1271
+ # @param [Fixnum] merchant_id
1272
+ # The ID of the managing account. If this parameter is not the same as accountId,
1273
+ # then this account must be a multi-client account and accountId must be the ID
1274
+ # of a sub-account of this account.
1275
+ # @param [Fixnum] account_id
1276
+ # The ID of the account that manages the order. This cannot be a multi-client
1277
+ # account.
1278
+ # @param [String] country
1279
+ # The country for which inventory validation is requested.
1280
+ # @param [String] fields
1281
+ # Selector specifying which fields to include in a partial response.
1282
+ # @param [String] quota_user
1283
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1284
+ # characters.
1285
+ # @param [String] user_ip
1286
+ # Deprecated. Please use quotaUser instead.
1287
+ # @param [Google::Apis::RequestOptions] options
1288
+ # Request-specific options
1289
+ #
1290
+ # @yield [result, err] Result & error if block supplied
1291
+ # @yieldparam result [Google::Apis::ContentV2_1::LiasettingsRequestInventoryVerificationResponse] parsed result object
1292
+ # @yieldparam err [StandardError] error object if request failed
1293
+ #
1294
+ # @return [Google::Apis::ContentV2_1::LiasettingsRequestInventoryVerificationResponse]
1295
+ #
1296
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1297
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1298
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1299
+ def requestinventoryverification_liasetting(merchant_id, account_id, country, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1300
+ command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}', options)
1301
+ command.response_representation = Google::Apis::ContentV2_1::LiasettingsRequestInventoryVerificationResponse::Representation
1302
+ command.response_class = Google::Apis::ContentV2_1::LiasettingsRequestInventoryVerificationResponse
1303
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1304
+ command.params['accountId'] = account_id unless account_id.nil?
1305
+ command.params['country'] = country unless country.nil?
1306
+ command.query['fields'] = fields unless fields.nil?
1307
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1308
+ command.query['userIp'] = user_ip unless user_ip.nil?
1309
+ execute_or_queue_command(command, &block)
1310
+ end
1311
+
1312
+ # Sets the inventory verification contract for the specified country.
1313
+ # @param [Fixnum] merchant_id
1314
+ # The ID of the managing account. If this parameter is not the same as accountId,
1315
+ # then this account must be a multi-client account and accountId must be the ID
1316
+ # of a sub-account of this account.
1317
+ # @param [Fixnum] account_id
1318
+ # The ID of the account that manages the order. This cannot be a multi-client
1319
+ # account.
1320
+ # @param [String] contact_email
1321
+ # The email of the inventory verification contact.
1322
+ # @param [String] contact_name
1323
+ # The name of the inventory verification contact.
1324
+ # @param [String] country
1325
+ # The country for which inventory verification is requested.
1326
+ # @param [String] language
1327
+ # The language for which inventory verification is requested.
1328
+ # @param [String] fields
1329
+ # Selector specifying which fields to include in a partial response.
1330
+ # @param [String] quota_user
1331
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1332
+ # characters.
1333
+ # @param [String] user_ip
1334
+ # Deprecated. Please use quotaUser instead.
1335
+ # @param [Google::Apis::RequestOptions] options
1336
+ # Request-specific options
1337
+ #
1338
+ # @yield [result, err] Result & error if block supplied
1339
+ # @yieldparam result [Google::Apis::ContentV2_1::LiasettingsSetInventoryVerificationContactResponse] parsed result object
1340
+ # @yieldparam err [StandardError] error object if request failed
1341
+ #
1342
+ # @return [Google::Apis::ContentV2_1::LiasettingsSetInventoryVerificationContactResponse]
1343
+ #
1344
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1345
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1346
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1347
+ def setinventoryverificationcontact_liasetting(merchant_id, account_id, contact_email, contact_name, country, language, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1348
+ command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/setinventoryverificationcontact', options)
1349
+ command.response_representation = Google::Apis::ContentV2_1::LiasettingsSetInventoryVerificationContactResponse::Representation
1350
+ command.response_class = Google::Apis::ContentV2_1::LiasettingsSetInventoryVerificationContactResponse
1351
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1352
+ command.params['accountId'] = account_id unless account_id.nil?
1353
+ command.query['contactEmail'] = contact_email unless contact_email.nil?
1354
+ command.query['contactName'] = contact_name unless contact_name.nil?
1355
+ command.query['country'] = country unless country.nil?
1356
+ command.query['language'] = language unless language.nil?
1357
+ command.query['fields'] = fields unless fields.nil?
1358
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1359
+ command.query['userIp'] = user_ip unless user_ip.nil?
1360
+ execute_or_queue_command(command, &block)
1361
+ end
1362
+
1363
+ # Sets the POS data provider for the specified country.
1364
+ # @param [Fixnum] merchant_id
1365
+ # The ID of the managing account. If this parameter is not the same as accountId,
1366
+ # then this account must be a multi-client account and accountId must be the ID
1367
+ # of a sub-account of this account.
1368
+ # @param [Fixnum] account_id
1369
+ # The ID of the account for which to retrieve accessible Google My Business
1370
+ # accounts.
1371
+ # @param [String] country
1372
+ # The country for which the POS data provider is selected.
1373
+ # @param [Fixnum] pos_data_provider_id
1374
+ # The ID of POS data provider.
1375
+ # @param [String] pos_external_account_id
1376
+ # The account ID by which this merchant is known to the POS data provider.
1377
+ # @param [String] fields
1378
+ # Selector specifying which fields to include in a partial response.
1379
+ # @param [String] quota_user
1380
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1381
+ # characters.
1382
+ # @param [String] user_ip
1383
+ # Deprecated. Please use quotaUser instead.
1384
+ # @param [Google::Apis::RequestOptions] options
1385
+ # Request-specific options
1386
+ #
1387
+ # @yield [result, err] Result & error if block supplied
1388
+ # @yieldparam result [Google::Apis::ContentV2_1::LiasettingsSetPosDataProviderResponse] parsed result object
1389
+ # @yieldparam err [StandardError] error object if request failed
1390
+ #
1391
+ # @return [Google::Apis::ContentV2_1::LiasettingsSetPosDataProviderResponse]
1392
+ #
1393
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1394
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1395
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1396
+ def setposdataprovider_liasetting(merchant_id, account_id, country, pos_data_provider_id: nil, pos_external_account_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1397
+ command = make_simple_command(:post, '{merchantId}/liasettings/{accountId}/setposdataprovider', options)
1398
+ command.response_representation = Google::Apis::ContentV2_1::LiasettingsSetPosDataProviderResponse::Representation
1399
+ command.response_class = Google::Apis::ContentV2_1::LiasettingsSetPosDataProviderResponse
1400
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1401
+ command.params['accountId'] = account_id unless account_id.nil?
1402
+ command.query['country'] = country unless country.nil?
1403
+ command.query['posDataProviderId'] = pos_data_provider_id unless pos_data_provider_id.nil?
1404
+ command.query['posExternalAccountId'] = pos_external_account_id unless pos_external_account_id.nil?
1405
+ command.query['fields'] = fields unless fields.nil?
1406
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1407
+ command.query['userIp'] = user_ip unless user_ip.nil?
1408
+ execute_or_queue_command(command, &block)
1409
+ end
1410
+
1411
+ # Updates the LIA settings of the account.
1412
+ # @param [Fixnum] merchant_id
1413
+ # The ID of the managing account. If this parameter is not the same as accountId,
1414
+ # then this account must be a multi-client account and accountId must be the ID
1415
+ # of a sub-account of this account.
1416
+ # @param [Fixnum] account_id
1417
+ # The ID of the account for which to get or update LIA settings.
1418
+ # @param [Google::Apis::ContentV2_1::LiaSettings] lia_settings_object
1419
+ # @param [String] fields
1420
+ # Selector specifying which fields to include in a partial response.
1421
+ # @param [String] quota_user
1422
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1423
+ # characters.
1424
+ # @param [String] user_ip
1425
+ # Deprecated. Please use quotaUser instead.
1426
+ # @param [Google::Apis::RequestOptions] options
1427
+ # Request-specific options
1428
+ #
1429
+ # @yield [result, err] Result & error if block supplied
1430
+ # @yieldparam result [Google::Apis::ContentV2_1::LiaSettings] parsed result object
1431
+ # @yieldparam err [StandardError] error object if request failed
1432
+ #
1433
+ # @return [Google::Apis::ContentV2_1::LiaSettings]
1434
+ #
1435
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1436
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1437
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1438
+ def update_liasetting(merchant_id, account_id, lia_settings_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1439
+ command = make_simple_command(:put, '{merchantId}/liasettings/{accountId}', options)
1440
+ command.request_representation = Google::Apis::ContentV2_1::LiaSettings::Representation
1441
+ command.request_object = lia_settings_object
1442
+ command.response_representation = Google::Apis::ContentV2_1::LiaSettings::Representation
1443
+ command.response_class = Google::Apis::ContentV2_1::LiaSettings
1444
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1445
+ command.params['accountId'] = account_id unless account_id.nil?
1446
+ command.query['fields'] = fields unless fields.nil?
1447
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1448
+ command.query['userIp'] = user_ip unless user_ip.nil?
1449
+ execute_or_queue_command(command, &block)
1450
+ end
1451
+
1452
+ # Creates a charge invoice for a shipment group, and triggers a charge capture
1453
+ # for non-facilitated payment orders.
1454
+ # @param [Fixnum] merchant_id
1455
+ # The ID of the account that manages the order. This cannot be a multi-client
1456
+ # account.
1457
+ # @param [String] order_id
1458
+ # The ID of the order.
1459
+ # @param [Google::Apis::ContentV2_1::OrderinvoicesCreateChargeInvoiceRequest] orderinvoices_create_charge_invoice_request_object
1460
+ # @param [String] fields
1461
+ # Selector specifying which fields to include in a partial response.
1462
+ # @param [String] quota_user
1463
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1464
+ # characters.
1465
+ # @param [String] user_ip
1466
+ # Deprecated. Please use quotaUser instead.
1467
+ # @param [Google::Apis::RequestOptions] options
1468
+ # Request-specific options
1469
+ #
1470
+ # @yield [result, err] Result & error if block supplied
1471
+ # @yieldparam result [Google::Apis::ContentV2_1::OrderinvoicesCreateChargeInvoiceResponse] parsed result object
1472
+ # @yieldparam err [StandardError] error object if request failed
1473
+ #
1474
+ # @return [Google::Apis::ContentV2_1::OrderinvoicesCreateChargeInvoiceResponse]
1475
+ #
1476
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1477
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1478
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1479
+ def createchargeinvoice_orderinvoice(merchant_id, order_id, orderinvoices_create_charge_invoice_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1480
+ command = make_simple_command(:post, '{merchantId}/orderinvoices/{orderId}/createChargeInvoice', options)
1481
+ command.request_representation = Google::Apis::ContentV2_1::OrderinvoicesCreateChargeInvoiceRequest::Representation
1482
+ command.request_object = orderinvoices_create_charge_invoice_request_object
1483
+ command.response_representation = Google::Apis::ContentV2_1::OrderinvoicesCreateChargeInvoiceResponse::Representation
1484
+ command.response_class = Google::Apis::ContentV2_1::OrderinvoicesCreateChargeInvoiceResponse
1485
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1486
+ command.params['orderId'] = order_id unless order_id.nil?
1487
+ command.query['fields'] = fields unless fields.nil?
1488
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1489
+ command.query['userIp'] = user_ip unless user_ip.nil?
1490
+ execute_or_queue_command(command, &block)
1491
+ end
1492
+
1493
+ # Creates a refund invoice for one or more shipment groups, and triggers a
1494
+ # refund for non-facilitated payment orders. This can only be used for line
1495
+ # items that have previously been charged using createChargeInvoice. All amounts
1496
+ # (except for the summary) are incremental with respect to the previous invoice.
1497
+ # @param [Fixnum] merchant_id
1498
+ # The ID of the account that manages the order. This cannot be a multi-client
1499
+ # account.
1500
+ # @param [String] order_id
1501
+ # The ID of the order.
1502
+ # @param [Google::Apis::ContentV2_1::OrderinvoicesCreateRefundInvoiceRequest] orderinvoices_create_refund_invoice_request_object
1503
+ # @param [String] fields
1504
+ # Selector specifying which fields to include in a partial response.
1505
+ # @param [String] quota_user
1506
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1507
+ # characters.
1508
+ # @param [String] user_ip
1509
+ # Deprecated. Please use quotaUser instead.
1510
+ # @param [Google::Apis::RequestOptions] options
1511
+ # Request-specific options
1512
+ #
1513
+ # @yield [result, err] Result & error if block supplied
1514
+ # @yieldparam result [Google::Apis::ContentV2_1::OrderinvoicesCreateRefundInvoiceResponse] parsed result object
1515
+ # @yieldparam err [StandardError] error object if request failed
1516
+ #
1517
+ # @return [Google::Apis::ContentV2_1::OrderinvoicesCreateRefundInvoiceResponse]
1518
+ #
1519
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1520
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1521
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1522
+ def createrefundinvoice_orderinvoice(merchant_id, order_id, orderinvoices_create_refund_invoice_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1523
+ command = make_simple_command(:post, '{merchantId}/orderinvoices/{orderId}/createRefundInvoice', options)
1524
+ command.request_representation = Google::Apis::ContentV2_1::OrderinvoicesCreateRefundInvoiceRequest::Representation
1525
+ command.request_object = orderinvoices_create_refund_invoice_request_object
1526
+ command.response_representation = Google::Apis::ContentV2_1::OrderinvoicesCreateRefundInvoiceResponse::Representation
1527
+ command.response_class = Google::Apis::ContentV2_1::OrderinvoicesCreateRefundInvoiceResponse
1528
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1529
+ command.params['orderId'] = order_id unless order_id.nil?
1530
+ command.query['fields'] = fields unless fields.nil?
1531
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1532
+ command.query['userIp'] = user_ip unless user_ip.nil?
1533
+ execute_or_queue_command(command, &block)
1534
+ end
1535
+
1536
+ # Notify about successfully authorizing user's payment method for a given amount.
1537
+ # @param [Fixnum] merchant_id
1538
+ # The ID of the account that manages the order. This cannot be a multi-client
1539
+ # account.
1540
+ # @param [String] order_id
1541
+ # The ID of the order for for which payment authorization is happening.
1542
+ # @param [Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthApprovedRequest] orderpayments_notify_auth_approved_request_object
1543
+ # @param [String] fields
1544
+ # Selector specifying which fields to include in a partial response.
1545
+ # @param [String] quota_user
1546
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1547
+ # characters.
1548
+ # @param [String] user_ip
1549
+ # Deprecated. Please use quotaUser instead.
1550
+ # @param [Google::Apis::RequestOptions] options
1551
+ # Request-specific options
1552
+ #
1553
+ # @yield [result, err] Result & error if block supplied
1554
+ # @yieldparam result [Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthApprovedResponse] parsed result object
1555
+ # @yieldparam err [StandardError] error object if request failed
1556
+ #
1557
+ # @return [Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthApprovedResponse]
1558
+ #
1559
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1560
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1561
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1562
+ def notifyauthapproved_orderpayment(merchant_id, order_id, orderpayments_notify_auth_approved_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1563
+ command = make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyAuthApproved', options)
1564
+ command.request_representation = Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthApprovedRequest::Representation
1565
+ command.request_object = orderpayments_notify_auth_approved_request_object
1566
+ command.response_representation = Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthApprovedResponse::Representation
1567
+ command.response_class = Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthApprovedResponse
1568
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1569
+ command.params['orderId'] = order_id unless order_id.nil?
1570
+ command.query['fields'] = fields unless fields.nil?
1571
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1572
+ command.query['userIp'] = user_ip unless user_ip.nil?
1573
+ execute_or_queue_command(command, &block)
1574
+ end
1575
+
1576
+ # Notify about failure to authorize user's payment method.
1577
+ # @param [Fixnum] merchant_id
1578
+ # The ID of the account that manages the order. This cannot be a multi-client
1579
+ # account.
1580
+ # @param [String] order_id
1581
+ # The ID of the order for which payment authorization was declined.
1582
+ # @param [Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthDeclinedRequest] orderpayments_notify_auth_declined_request_object
1583
+ # @param [String] fields
1584
+ # Selector specifying which fields to include in a partial response.
1585
+ # @param [String] quota_user
1586
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1587
+ # characters.
1588
+ # @param [String] user_ip
1589
+ # Deprecated. Please use quotaUser instead.
1590
+ # @param [Google::Apis::RequestOptions] options
1591
+ # Request-specific options
1592
+ #
1593
+ # @yield [result, err] Result & error if block supplied
1594
+ # @yieldparam result [Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthDeclinedResponse] parsed result object
1595
+ # @yieldparam err [StandardError] error object if request failed
1596
+ #
1597
+ # @return [Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthDeclinedResponse]
1598
+ #
1599
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1600
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1601
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1602
+ def notifyauthdeclined_orderpayment(merchant_id, order_id, orderpayments_notify_auth_declined_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1603
+ command = make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyAuthDeclined', options)
1604
+ command.request_representation = Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthDeclinedRequest::Representation
1605
+ command.request_object = orderpayments_notify_auth_declined_request_object
1606
+ command.response_representation = Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthDeclinedResponse::Representation
1607
+ command.response_class = Google::Apis::ContentV2_1::OrderpaymentsNotifyAuthDeclinedResponse
1608
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1609
+ command.params['orderId'] = order_id unless order_id.nil?
1610
+ command.query['fields'] = fields unless fields.nil?
1611
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1612
+ command.query['userIp'] = user_ip unless user_ip.nil?
1613
+ execute_or_queue_command(command, &block)
1614
+ end
1615
+
1616
+ # Notify about charge on user's selected payments method.
1617
+ # @param [Fixnum] merchant_id
1618
+ # The ID of the account that manages the order. This cannot be a multi-client
1619
+ # account.
1620
+ # @param [String] order_id
1621
+ # The ID of the order for which charge is happening.
1622
+ # @param [Google::Apis::ContentV2_1::OrderpaymentsNotifyChargeRequest] orderpayments_notify_charge_request_object
1623
+ # @param [String] fields
1624
+ # Selector specifying which fields to include in a partial response.
1625
+ # @param [String] quota_user
1626
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1627
+ # characters.
1628
+ # @param [String] user_ip
1629
+ # Deprecated. Please use quotaUser instead.
1630
+ # @param [Google::Apis::RequestOptions] options
1631
+ # Request-specific options
1632
+ #
1633
+ # @yield [result, err] Result & error if block supplied
1634
+ # @yieldparam result [Google::Apis::ContentV2_1::OrderpaymentsNotifyChargeResponse] parsed result object
1635
+ # @yieldparam err [StandardError] error object if request failed
1636
+ #
1637
+ # @return [Google::Apis::ContentV2_1::OrderpaymentsNotifyChargeResponse]
1638
+ #
1639
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1640
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1641
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1642
+ def notifycharge_orderpayment(merchant_id, order_id, orderpayments_notify_charge_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1643
+ command = make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyCharge', options)
1644
+ command.request_representation = Google::Apis::ContentV2_1::OrderpaymentsNotifyChargeRequest::Representation
1645
+ command.request_object = orderpayments_notify_charge_request_object
1646
+ command.response_representation = Google::Apis::ContentV2_1::OrderpaymentsNotifyChargeResponse::Representation
1647
+ command.response_class = Google::Apis::ContentV2_1::OrderpaymentsNotifyChargeResponse
1648
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1649
+ command.params['orderId'] = order_id unless order_id.nil?
1650
+ command.query['fields'] = fields unless fields.nil?
1651
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1652
+ command.query['userIp'] = user_ip unless user_ip.nil?
1653
+ execute_or_queue_command(command, &block)
1654
+ end
1655
+
1656
+ # Notify about refund on user's selected payments method.
1657
+ # @param [Fixnum] merchant_id
1658
+ # The ID of the account that manages the order. This cannot be a multi-client
1659
+ # account.
1660
+ # @param [String] order_id
1661
+ # The ID of the order for which charge is happening.
1662
+ # @param [Google::Apis::ContentV2_1::OrderpaymentsNotifyRefundRequest] orderpayments_notify_refund_request_object
1663
+ # @param [String] fields
1664
+ # Selector specifying which fields to include in a partial response.
1665
+ # @param [String] quota_user
1666
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1667
+ # characters.
1668
+ # @param [String] user_ip
1669
+ # Deprecated. Please use quotaUser instead.
1670
+ # @param [Google::Apis::RequestOptions] options
1671
+ # Request-specific options
1672
+ #
1673
+ # @yield [result, err] Result & error if block supplied
1674
+ # @yieldparam result [Google::Apis::ContentV2_1::OrderpaymentsNotifyRefundResponse] parsed result object
1675
+ # @yieldparam err [StandardError] error object if request failed
1676
+ #
1677
+ # @return [Google::Apis::ContentV2_1::OrderpaymentsNotifyRefundResponse]
1678
+ #
1679
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1680
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1681
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1682
+ def notifyrefund_orderpayment(merchant_id, order_id, orderpayments_notify_refund_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1683
+ command = make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyRefund', options)
1684
+ command.request_representation = Google::Apis::ContentV2_1::OrderpaymentsNotifyRefundRequest::Representation
1685
+ command.request_object = orderpayments_notify_refund_request_object
1686
+ command.response_representation = Google::Apis::ContentV2_1::OrderpaymentsNotifyRefundResponse::Representation
1687
+ command.response_class = Google::Apis::ContentV2_1::OrderpaymentsNotifyRefundResponse
1688
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1689
+ command.params['orderId'] = order_id unless order_id.nil?
1690
+ command.query['fields'] = fields unless fields.nil?
1691
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1692
+ command.query['userIp'] = user_ip unless user_ip.nil?
1693
+ execute_or_queue_command(command, &block)
1694
+ end
1695
+
1696
+ # Retrieves a report for disbursements from your Merchant Center account.
1697
+ # @param [Fixnum] merchant_id
1698
+ # The ID of the account that manages the order. This cannot be a multi-client
1699
+ # account.
1700
+ # @param [String] disbursement_start_date
1701
+ # The first date which disbursements occurred. In ISO 8601 format.
1702
+ # @param [String] disbursement_end_date
1703
+ # The last date which disbursements occurred. In ISO 8601 format. Default:
1704
+ # current date.
1705
+ # @param [Fixnum] max_results
1706
+ # The maximum number of disbursements to return in the response, used for paging.
1707
+ # @param [String] page_token
1708
+ # The token returned by the previous request.
1709
+ # @param [String] fields
1710
+ # Selector specifying which fields to include in a partial response.
1711
+ # @param [String] quota_user
1712
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1713
+ # characters.
1714
+ # @param [String] user_ip
1715
+ # Deprecated. Please use quotaUser instead.
1716
+ # @param [Google::Apis::RequestOptions] options
1717
+ # Request-specific options
1718
+ #
1719
+ # @yield [result, err] Result & error if block supplied
1720
+ # @yieldparam result [Google::Apis::ContentV2_1::OrderreportsListDisbursementsResponse] parsed result object
1721
+ # @yieldparam err [StandardError] error object if request failed
1722
+ #
1723
+ # @return [Google::Apis::ContentV2_1::OrderreportsListDisbursementsResponse]
1724
+ #
1725
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1726
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1727
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1728
+ def listdisbursements_orderreport(merchant_id, disbursement_start_date, disbursement_end_date: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1729
+ command = make_simple_command(:get, '{merchantId}/orderreports/disbursements', options)
1730
+ command.response_representation = Google::Apis::ContentV2_1::OrderreportsListDisbursementsResponse::Representation
1731
+ command.response_class = Google::Apis::ContentV2_1::OrderreportsListDisbursementsResponse
1732
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1733
+ command.query['disbursementEndDate'] = disbursement_end_date unless disbursement_end_date.nil?
1734
+ command.query['disbursementStartDate'] = disbursement_start_date unless disbursement_start_date.nil?
1735
+ command.query['maxResults'] = max_results unless max_results.nil?
1736
+ command.query['pageToken'] = page_token unless page_token.nil?
1737
+ command.query['fields'] = fields unless fields.nil?
1738
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1739
+ command.query['userIp'] = user_ip unless user_ip.nil?
1740
+ execute_or_queue_command(command, &block)
1741
+ end
1742
+
1743
+ # Retrieves a list of transactions for a disbursement from your Merchant Center
1744
+ # account.
1745
+ # @param [Fixnum] merchant_id
1746
+ # The ID of the account that manages the order. This cannot be a multi-client
1747
+ # account.
1748
+ # @param [String] disbursement_id
1749
+ # The Google-provided ID of the disbursement (found in Wallet).
1750
+ # @param [String] transaction_start_date
1751
+ # The first date in which transaction occurred. In ISO 8601 format.
1752
+ # @param [Fixnum] max_results
1753
+ # The maximum number of disbursements to return in the response, used for paging.
1754
+ # @param [String] page_token
1755
+ # The token returned by the previous request.
1756
+ # @param [String] transaction_end_date
1757
+ # The last date in which transaction occurred. In ISO 8601 format. Default:
1758
+ # current date.
1759
+ # @param [String] fields
1760
+ # Selector specifying which fields to include in a partial response.
1761
+ # @param [String] quota_user
1762
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1763
+ # characters.
1764
+ # @param [String] user_ip
1765
+ # Deprecated. Please use quotaUser instead.
1766
+ # @param [Google::Apis::RequestOptions] options
1767
+ # Request-specific options
1768
+ #
1769
+ # @yield [result, err] Result & error if block supplied
1770
+ # @yieldparam result [Google::Apis::ContentV2_1::OrderreportsListTransactionsResponse] parsed result object
1771
+ # @yieldparam err [StandardError] error object if request failed
1772
+ #
1773
+ # @return [Google::Apis::ContentV2_1::OrderreportsListTransactionsResponse]
1774
+ #
1775
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1776
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1777
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1778
+ def listtransactions_orderreport(merchant_id, disbursement_id, transaction_start_date, max_results: nil, page_token: nil, transaction_end_date: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1779
+ command = make_simple_command(:get, '{merchantId}/orderreports/disbursements/{disbursementId}/transactions', options)
1780
+ command.response_representation = Google::Apis::ContentV2_1::OrderreportsListTransactionsResponse::Representation
1781
+ command.response_class = Google::Apis::ContentV2_1::OrderreportsListTransactionsResponse
1782
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1783
+ command.params['disbursementId'] = disbursement_id unless disbursement_id.nil?
1784
+ command.query['maxResults'] = max_results unless max_results.nil?
1785
+ command.query['pageToken'] = page_token unless page_token.nil?
1786
+ command.query['transactionEndDate'] = transaction_end_date unless transaction_end_date.nil?
1787
+ command.query['transactionStartDate'] = transaction_start_date unless transaction_start_date.nil?
1788
+ command.query['fields'] = fields unless fields.nil?
1789
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1790
+ command.query['userIp'] = user_ip unless user_ip.nil?
1791
+ execute_or_queue_command(command, &block)
1792
+ end
1793
+
1794
+ # Retrieves an order return from your Merchant Center account.
1795
+ # @param [Fixnum] merchant_id
1796
+ # The ID of the account that manages the order. This cannot be a multi-client
1797
+ # account.
1798
+ # @param [String] return_id
1799
+ # Merchant order return ID generated by Google.
1800
+ # @param [String] fields
1801
+ # Selector specifying which fields to include in a partial response.
1802
+ # @param [String] quota_user
1803
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1804
+ # characters.
1805
+ # @param [String] user_ip
1806
+ # Deprecated. Please use quotaUser instead.
1807
+ # @param [Google::Apis::RequestOptions] options
1808
+ # Request-specific options
1809
+ #
1810
+ # @yield [result, err] Result & error if block supplied
1811
+ # @yieldparam result [Google::Apis::ContentV2_1::MerchantOrderReturn] parsed result object
1812
+ # @yieldparam err [StandardError] error object if request failed
1813
+ #
1814
+ # @return [Google::Apis::ContentV2_1::MerchantOrderReturn]
1815
+ #
1816
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1817
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1818
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1819
+ def get_orderreturn(merchant_id, return_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1820
+ command = make_simple_command(:get, '{merchantId}/orderreturns/{returnId}', options)
1821
+ command.response_representation = Google::Apis::ContentV2_1::MerchantOrderReturn::Representation
1822
+ command.response_class = Google::Apis::ContentV2_1::MerchantOrderReturn
1823
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1824
+ command.params['returnId'] = return_id unless return_id.nil?
1825
+ command.query['fields'] = fields unless fields.nil?
1826
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1827
+ command.query['userIp'] = user_ip unless user_ip.nil?
1828
+ execute_or_queue_command(command, &block)
1829
+ end
1830
+
1831
+ # Lists order returns in your Merchant Center account.
1832
+ # @param [Fixnum] merchant_id
1833
+ # The ID of the account that manages the order. This cannot be a multi-client
1834
+ # account.
1835
+ # @param [String] created_end_date
1836
+ # Obtains order returns created before this date (inclusively), in ISO 8601
1837
+ # format.
1838
+ # @param [String] created_start_date
1839
+ # Obtains order returns created after this date (inclusively), in ISO 8601
1840
+ # format.
1841
+ # @param [Fixnum] max_results
1842
+ # The maximum number of order returns to return in the response, used for paging.
1843
+ # The default value is 25 returns per page, and the maximum allowed value is
1844
+ # 250 returns per page.
1845
+ # @param [String] order_by
1846
+ # Return the results in the specified order.
1847
+ # @param [String] page_token
1848
+ # The token returned by the previous request.
1849
+ # @param [String] fields
1850
+ # Selector specifying which fields to include in a partial response.
1851
+ # @param [String] quota_user
1852
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1853
+ # characters.
1854
+ # @param [String] user_ip
1855
+ # Deprecated. Please use quotaUser instead.
1856
+ # @param [Google::Apis::RequestOptions] options
1857
+ # Request-specific options
1858
+ #
1859
+ # @yield [result, err] Result & error if block supplied
1860
+ # @yieldparam result [Google::Apis::ContentV2_1::OrderreturnsListResponse] parsed result object
1861
+ # @yieldparam err [StandardError] error object if request failed
1862
+ #
1863
+ # @return [Google::Apis::ContentV2_1::OrderreturnsListResponse]
1864
+ #
1865
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1866
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1867
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1868
+ def list_orderreturns(merchant_id, created_end_date: nil, created_start_date: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1869
+ command = make_simple_command(:get, '{merchantId}/orderreturns', options)
1870
+ command.response_representation = Google::Apis::ContentV2_1::OrderreturnsListResponse::Representation
1871
+ command.response_class = Google::Apis::ContentV2_1::OrderreturnsListResponse
1872
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1873
+ command.query['createdEndDate'] = created_end_date unless created_end_date.nil?
1874
+ command.query['createdStartDate'] = created_start_date unless created_start_date.nil?
1875
+ command.query['maxResults'] = max_results unless max_results.nil?
1876
+ command.query['orderBy'] = order_by unless order_by.nil?
1877
+ command.query['pageToken'] = page_token unless page_token.nil?
1878
+ command.query['fields'] = fields unless fields.nil?
1879
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1880
+ command.query['userIp'] = user_ip unless user_ip.nil?
1881
+ execute_or_queue_command(command, &block)
1882
+ end
1883
+
1884
+ # Marks an order as acknowledged.
1885
+ # @param [Fixnum] merchant_id
1886
+ # The ID of the account that manages the order. This cannot be a multi-client
1887
+ # account.
1888
+ # @param [String] order_id
1889
+ # The ID of the order.
1890
+ # @param [Google::Apis::ContentV2_1::OrdersAcknowledgeRequest] orders_acknowledge_request_object
1891
+ # @param [String] fields
1892
+ # Selector specifying which fields to include in a partial response.
1893
+ # @param [String] quota_user
1894
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1895
+ # characters.
1896
+ # @param [String] user_ip
1897
+ # Deprecated. Please use quotaUser instead.
1898
+ # @param [Google::Apis::RequestOptions] options
1899
+ # Request-specific options
1900
+ #
1901
+ # @yield [result, err] Result & error if block supplied
1902
+ # @yieldparam result [Google::Apis::ContentV2_1::OrdersAcknowledgeResponse] parsed result object
1903
+ # @yieldparam err [StandardError] error object if request failed
1904
+ #
1905
+ # @return [Google::Apis::ContentV2_1::OrdersAcknowledgeResponse]
1906
+ #
1907
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1908
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1909
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1910
+ def acknowledge_order(merchant_id, order_id, orders_acknowledge_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1911
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/acknowledge', options)
1912
+ command.request_representation = Google::Apis::ContentV2_1::OrdersAcknowledgeRequest::Representation
1913
+ command.request_object = orders_acknowledge_request_object
1914
+ command.response_representation = Google::Apis::ContentV2_1::OrdersAcknowledgeResponse::Representation
1915
+ command.response_class = Google::Apis::ContentV2_1::OrdersAcknowledgeResponse
1916
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1917
+ command.params['orderId'] = order_id unless order_id.nil?
1918
+ command.query['fields'] = fields unless fields.nil?
1919
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1920
+ command.query['userIp'] = user_ip unless user_ip.nil?
1921
+ execute_or_queue_command(command, &block)
1922
+ end
1923
+
1924
+ # Sandbox only. Moves a test order from state "inProgress" to state "
1925
+ # pendingShipment".
1926
+ # @param [Fixnum] merchant_id
1927
+ # The ID of the account that manages the order. This cannot be a multi-client
1928
+ # account.
1929
+ # @param [String] order_id
1930
+ # The ID of the test order to modify.
1931
+ # @param [String] fields
1932
+ # Selector specifying which fields to include in a partial response.
1933
+ # @param [String] quota_user
1934
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1935
+ # characters.
1936
+ # @param [String] user_ip
1937
+ # Deprecated. Please use quotaUser instead.
1938
+ # @param [Google::Apis::RequestOptions] options
1939
+ # Request-specific options
1940
+ #
1941
+ # @yield [result, err] Result & error if block supplied
1942
+ # @yieldparam result [Google::Apis::ContentV2_1::OrdersAdvanceTestOrderResponse] parsed result object
1943
+ # @yieldparam err [StandardError] error object if request failed
1944
+ #
1945
+ # @return [Google::Apis::ContentV2_1::OrdersAdvanceTestOrderResponse]
1946
+ #
1947
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1948
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1949
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1950
+ def advancetestorder_order(merchant_id, order_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1951
+ command = make_simple_command(:post, '{merchantId}/testorders/{orderId}/advance', options)
1952
+ command.response_representation = Google::Apis::ContentV2_1::OrdersAdvanceTestOrderResponse::Representation
1953
+ command.response_class = Google::Apis::ContentV2_1::OrdersAdvanceTestOrderResponse
1954
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1955
+ command.params['orderId'] = order_id unless order_id.nil?
1956
+ command.query['fields'] = fields unless fields.nil?
1957
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1958
+ command.query['userIp'] = user_ip unless user_ip.nil?
1959
+ execute_or_queue_command(command, &block)
1960
+ end
1961
+
1962
+ # Cancels all line items in an order, making a full refund.
1963
+ # @param [Fixnum] merchant_id
1964
+ # The ID of the account that manages the order. This cannot be a multi-client
1965
+ # account.
1966
+ # @param [String] order_id
1967
+ # The ID of the order to cancel.
1968
+ # @param [Google::Apis::ContentV2_1::OrdersCancelRequest] orders_cancel_request_object
1969
+ # @param [String] fields
1970
+ # Selector specifying which fields to include in a partial response.
1971
+ # @param [String] quota_user
1972
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1973
+ # characters.
1974
+ # @param [String] user_ip
1975
+ # Deprecated. Please use quotaUser instead.
1976
+ # @param [Google::Apis::RequestOptions] options
1977
+ # Request-specific options
1978
+ #
1979
+ # @yield [result, err] Result & error if block supplied
1980
+ # @yieldparam result [Google::Apis::ContentV2_1::OrdersCancelResponse] parsed result object
1981
+ # @yieldparam err [StandardError] error object if request failed
1982
+ #
1983
+ # @return [Google::Apis::ContentV2_1::OrdersCancelResponse]
1984
+ #
1985
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1986
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1987
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1988
+ def cancel_order(merchant_id, order_id, orders_cancel_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1989
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/cancel', options)
1990
+ command.request_representation = Google::Apis::ContentV2_1::OrdersCancelRequest::Representation
1991
+ command.request_object = orders_cancel_request_object
1992
+ command.response_representation = Google::Apis::ContentV2_1::OrdersCancelResponse::Representation
1993
+ command.response_class = Google::Apis::ContentV2_1::OrdersCancelResponse
1994
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1995
+ command.params['orderId'] = order_id unless order_id.nil?
1996
+ command.query['fields'] = fields unless fields.nil?
1997
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1998
+ command.query['userIp'] = user_ip unless user_ip.nil?
1999
+ execute_or_queue_command(command, &block)
2000
+ end
2001
+
2002
+ # Cancels a line item, making a full refund.
2003
+ # @param [Fixnum] merchant_id
2004
+ # The ID of the account that manages the order. This cannot be a multi-client
2005
+ # account.
2006
+ # @param [String] order_id
2007
+ # The ID of the order.
2008
+ # @param [Google::Apis::ContentV2_1::OrdersCancelLineItemRequest] orders_cancel_line_item_request_object
2009
+ # @param [String] fields
2010
+ # Selector specifying which fields to include in a partial response.
2011
+ # @param [String] quota_user
2012
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2013
+ # characters.
2014
+ # @param [String] user_ip
2015
+ # Deprecated. Please use quotaUser instead.
2016
+ # @param [Google::Apis::RequestOptions] options
2017
+ # Request-specific options
2018
+ #
2019
+ # @yield [result, err] Result & error if block supplied
2020
+ # @yieldparam result [Google::Apis::ContentV2_1::OrdersCancelLineItemResponse] parsed result object
2021
+ # @yieldparam err [StandardError] error object if request failed
2022
+ #
2023
+ # @return [Google::Apis::ContentV2_1::OrdersCancelLineItemResponse]
2024
+ #
2025
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2026
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2027
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2028
+ def cancellineitem_order(merchant_id, order_id, orders_cancel_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2029
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/cancelLineItem', options)
2030
+ command.request_representation = Google::Apis::ContentV2_1::OrdersCancelLineItemRequest::Representation
2031
+ command.request_object = orders_cancel_line_item_request_object
2032
+ command.response_representation = Google::Apis::ContentV2_1::OrdersCancelLineItemResponse::Representation
2033
+ command.response_class = Google::Apis::ContentV2_1::OrdersCancelLineItemResponse
2034
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
2035
+ command.params['orderId'] = order_id unless order_id.nil?
2036
+ command.query['fields'] = fields unless fields.nil?
2037
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2038
+ command.query['userIp'] = user_ip unless user_ip.nil?
2039
+ execute_or_queue_command(command, &block)
2040
+ end
2041
+
2042
+ # Sandbox only. Cancels a test order for customer-initiated cancellation.
2043
+ # @param [Fixnum] merchant_id
2044
+ # The ID of the account that manages the order. This cannot be a multi-client
2045
+ # account.
2046
+ # @param [String] order_id
2047
+ # The ID of the test order to cancel.
2048
+ # @param [Google::Apis::ContentV2_1::OrdersCancelTestOrderByCustomerRequest] orders_cancel_test_order_by_customer_request_object
2049
+ # @param [String] fields
2050
+ # Selector specifying which fields to include in a partial response.
2051
+ # @param [String] quota_user
2052
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2053
+ # characters.
2054
+ # @param [String] user_ip
2055
+ # Deprecated. Please use quotaUser instead.
2056
+ # @param [Google::Apis::RequestOptions] options
2057
+ # Request-specific options
2058
+ #
2059
+ # @yield [result, err] Result & error if block supplied
2060
+ # @yieldparam result [Google::Apis::ContentV2_1::OrdersCancelTestOrderByCustomerResponse] parsed result object
2061
+ # @yieldparam err [StandardError] error object if request failed
2062
+ #
2063
+ # @return [Google::Apis::ContentV2_1::OrdersCancelTestOrderByCustomerResponse]
2064
+ #
2065
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2066
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2067
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2068
+ def canceltestorderbycustomer_order(merchant_id, order_id, orders_cancel_test_order_by_customer_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2069
+ command = make_simple_command(:post, '{merchantId}/testorders/{orderId}/cancelByCustomer', options)
2070
+ command.request_representation = Google::Apis::ContentV2_1::OrdersCancelTestOrderByCustomerRequest::Representation
2071
+ command.request_object = orders_cancel_test_order_by_customer_request_object
2072
+ command.response_representation = Google::Apis::ContentV2_1::OrdersCancelTestOrderByCustomerResponse::Representation
2073
+ command.response_class = Google::Apis::ContentV2_1::OrdersCancelTestOrderByCustomerResponse
2074
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
2075
+ command.params['orderId'] = order_id unless order_id.nil?
2076
+ command.query['fields'] = fields unless fields.nil?
2077
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2078
+ command.query['userIp'] = user_ip unless user_ip.nil?
2079
+ execute_or_queue_command(command, &block)
2080
+ end
2081
+
2082
+ # Sandbox only. Creates a test order.
2083
+ # @param [Fixnum] merchant_id
2084
+ # The ID of the account that should manage the order. This cannot be a multi-
2085
+ # client account.
2086
+ # @param [Google::Apis::ContentV2_1::OrdersCreateTestOrderRequest] orders_create_test_order_request_object
2087
+ # @param [String] fields
2088
+ # Selector specifying which fields to include in a partial response.
2089
+ # @param [String] quota_user
2090
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2091
+ # characters.
2092
+ # @param [String] user_ip
2093
+ # Deprecated. Please use quotaUser instead.
2094
+ # @param [Google::Apis::RequestOptions] options
2095
+ # Request-specific options
2096
+ #
2097
+ # @yield [result, err] Result & error if block supplied
2098
+ # @yieldparam result [Google::Apis::ContentV2_1::OrdersCreateTestOrderResponse] parsed result object
2099
+ # @yieldparam err [StandardError] error object if request failed
2100
+ #
2101
+ # @return [Google::Apis::ContentV2_1::OrdersCreateTestOrderResponse]
2102
+ #
2103
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2104
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2105
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2106
+ def createtestorder_order(merchant_id, orders_create_test_order_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2107
+ command = make_simple_command(:post, '{merchantId}/testorders', options)
2108
+ command.request_representation = Google::Apis::ContentV2_1::OrdersCreateTestOrderRequest::Representation
2109
+ command.request_object = orders_create_test_order_request_object
2110
+ command.response_representation = Google::Apis::ContentV2_1::OrdersCreateTestOrderResponse::Representation
2111
+ command.response_class = Google::Apis::ContentV2_1::OrdersCreateTestOrderResponse
2112
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
2113
+ command.query['fields'] = fields unless fields.nil?
2114
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2115
+ command.query['userIp'] = user_ip unless user_ip.nil?
2116
+ execute_or_queue_command(command, &block)
2117
+ end
2118
+
2119
+ # Sandbox only. Creates a test return.
2120
+ # @param [Fixnum] merchant_id
2121
+ # The ID of the account that manages the order. This cannot be a multi-client
2122
+ # account.
2123
+ # @param [String] order_id
2124
+ # The ID of the order.
2125
+ # @param [Google::Apis::ContentV2_1::OrdersCreateTestReturnRequest] orders_create_test_return_request_object
2126
+ # @param [String] fields
2127
+ # Selector specifying which fields to include in a partial response.
2128
+ # @param [String] quota_user
2129
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2130
+ # characters.
2131
+ # @param [String] user_ip
2132
+ # Deprecated. Please use quotaUser instead.
2133
+ # @param [Google::Apis::RequestOptions] options
2134
+ # Request-specific options
2135
+ #
2136
+ # @yield [result, err] Result & error if block supplied
2137
+ # @yieldparam result [Google::Apis::ContentV2_1::OrdersCreateTestReturnResponse] parsed result object
2138
+ # @yieldparam err [StandardError] error object if request failed
2139
+ #
2140
+ # @return [Google::Apis::ContentV2_1::OrdersCreateTestReturnResponse]
2141
+ #
2142
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2143
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2144
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2145
+ def createtestreturn_order(merchant_id, order_id, orders_create_test_return_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2146
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/testreturn', options)
2147
+ command.request_representation = Google::Apis::ContentV2_1::OrdersCreateTestReturnRequest::Representation
2148
+ command.request_object = orders_create_test_return_request_object
2149
+ command.response_representation = Google::Apis::ContentV2_1::OrdersCreateTestReturnResponse::Representation
2150
+ command.response_class = Google::Apis::ContentV2_1::OrdersCreateTestReturnResponse
2151
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
2152
+ command.params['orderId'] = order_id unless order_id.nil?
2153
+ command.query['fields'] = fields unless fields.nil?
2154
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2155
+ command.query['userIp'] = user_ip unless user_ip.nil?
2156
+ execute_or_queue_command(command, &block)
2157
+ end
2158
+
2159
+ # Retrieves an order from your Merchant Center account.
2160
+ # @param [Fixnum] merchant_id
2161
+ # The ID of the account that manages the order. This cannot be a multi-client
2162
+ # account.
2163
+ # @param [String] order_id
2164
+ # The ID of the order.
2165
+ # @param [String] fields
2166
+ # Selector specifying which fields to include in a partial response.
2167
+ # @param [String] quota_user
2168
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2169
+ # characters.
2170
+ # @param [String] user_ip
2171
+ # Deprecated. Please use quotaUser instead.
2172
+ # @param [Google::Apis::RequestOptions] options
2173
+ # Request-specific options
2174
+ #
2175
+ # @yield [result, err] Result & error if block supplied
2176
+ # @yieldparam result [Google::Apis::ContentV2_1::Order] parsed result object
2177
+ # @yieldparam err [StandardError] error object if request failed
2178
+ #
2179
+ # @return [Google::Apis::ContentV2_1::Order]
2180
+ #
2181
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2182
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2183
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2184
+ def get_order(merchant_id, order_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2185
+ command = make_simple_command(:get, '{merchantId}/orders/{orderId}', options)
2186
+ command.response_representation = Google::Apis::ContentV2_1::Order::Representation
2187
+ command.response_class = Google::Apis::ContentV2_1::Order
2188
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
2189
+ command.params['orderId'] = order_id unless order_id.nil?
2190
+ command.query['fields'] = fields unless fields.nil?
2191
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2192
+ command.query['userIp'] = user_ip unless user_ip.nil?
2193
+ execute_or_queue_command(command, &block)
2194
+ end
2195
+
2196
+ # Retrieves an order using merchant order id.
2197
+ # @param [Fixnum] merchant_id
2198
+ # The ID of the account that manages the order. This cannot be a multi-client
2199
+ # account.
2200
+ # @param [String] merchant_order_id
2201
+ # The merchant order id to be looked for.
2202
+ # @param [String] fields
2203
+ # Selector specifying which fields to include in a partial response.
2204
+ # @param [String] quota_user
2205
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2206
+ # characters.
2207
+ # @param [String] user_ip
2208
+ # Deprecated. Please use quotaUser instead.
2209
+ # @param [Google::Apis::RequestOptions] options
2210
+ # Request-specific options
2211
+ #
2212
+ # @yield [result, err] Result & error if block supplied
2213
+ # @yieldparam result [Google::Apis::ContentV2_1::OrdersGetByMerchantOrderIdResponse] parsed result object
2214
+ # @yieldparam err [StandardError] error object if request failed
2215
+ #
2216
+ # @return [Google::Apis::ContentV2_1::OrdersGetByMerchantOrderIdResponse]
2217
+ #
2218
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2219
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2220
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2221
+ def getbymerchantorderid_order(merchant_id, merchant_order_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2222
+ command = make_simple_command(:get, '{merchantId}/ordersbymerchantid/{merchantOrderId}', options)
2223
+ command.response_representation = Google::Apis::ContentV2_1::OrdersGetByMerchantOrderIdResponse::Representation
2224
+ command.response_class = Google::Apis::ContentV2_1::OrdersGetByMerchantOrderIdResponse
2225
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
2226
+ command.params['merchantOrderId'] = merchant_order_id unless merchant_order_id.nil?
2227
+ command.query['fields'] = fields unless fields.nil?
2228
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2229
+ command.query['userIp'] = user_ip unless user_ip.nil?
2230
+ execute_or_queue_command(command, &block)
2231
+ end
2232
+
2233
+ # Sandbox only. Retrieves an order template that can be used to quickly create a
2234
+ # new order in sandbox.
2235
+ # @param [Fixnum] merchant_id
2236
+ # The ID of the account that should manage the order. This cannot be a multi-
2237
+ # client account.
2238
+ # @param [String] template_name
2239
+ # The name of the template to retrieve.
2240
+ # @param [String] country
2241
+ # The country of the template to retrieve. Defaults to US.
2242
+ # @param [String] fields
2243
+ # Selector specifying which fields to include in a partial response.
2244
+ # @param [String] quota_user
2245
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2246
+ # characters.
2247
+ # @param [String] user_ip
2248
+ # Deprecated. Please use quotaUser instead.
2249
+ # @param [Google::Apis::RequestOptions] options
2250
+ # Request-specific options
2251
+ #
2252
+ # @yield [result, err] Result & error if block supplied
2253
+ # @yieldparam result [Google::Apis::ContentV2_1::OrdersGetTestOrderTemplateResponse] parsed result object
2254
+ # @yieldparam err [StandardError] error object if request failed
2255
+ #
2256
+ # @return [Google::Apis::ContentV2_1::OrdersGetTestOrderTemplateResponse]
2257
+ #
2258
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2259
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2260
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2261
+ def gettestordertemplate_order(merchant_id, template_name, country: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2262
+ command = make_simple_command(:get, '{merchantId}/testordertemplates/{templateName}', options)
2263
+ command.response_representation = Google::Apis::ContentV2_1::OrdersGetTestOrderTemplateResponse::Representation
2264
+ command.response_class = Google::Apis::ContentV2_1::OrdersGetTestOrderTemplateResponse
2265
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
2266
+ command.params['templateName'] = template_name unless template_name.nil?
2267
+ command.query['country'] = country unless country.nil?
2268
+ command.query['fields'] = fields unless fields.nil?
2269
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2270
+ command.query['userIp'] = user_ip unless user_ip.nil?
2271
+ execute_or_queue_command(command, &block)
2272
+ end
2273
+
2274
+ # Notifies that item return and refund was handled directly by merchant outside
2275
+ # of Google payments processing (e.g. cash refund done in store).
2276
+ # @param [Fixnum] merchant_id
2277
+ # The ID of the account that manages the order. This cannot be a multi-client
2278
+ # account.
2279
+ # @param [String] order_id
2280
+ # The ID of the order.
2281
+ # @param [Google::Apis::ContentV2_1::OrdersInStoreRefundLineItemRequest] orders_in_store_refund_line_item_request_object
2282
+ # @param [String] fields
2283
+ # Selector specifying which fields to include in a partial response.
2284
+ # @param [String] quota_user
2285
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2286
+ # characters.
2287
+ # @param [String] user_ip
2288
+ # Deprecated. Please use quotaUser instead.
2289
+ # @param [Google::Apis::RequestOptions] options
2290
+ # Request-specific options
2291
+ #
2292
+ # @yield [result, err] Result & error if block supplied
2293
+ # @yieldparam result [Google::Apis::ContentV2_1::OrdersInStoreRefundLineItemResponse] parsed result object
2294
+ # @yieldparam err [StandardError] error object if request failed
2295
+ #
2296
+ # @return [Google::Apis::ContentV2_1::OrdersInStoreRefundLineItemResponse]
2297
+ #
2298
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2299
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2300
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2301
+ def instorerefundlineitem_order(merchant_id, order_id, orders_in_store_refund_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2302
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/inStoreRefundLineItem', options)
2303
+ command.request_representation = Google::Apis::ContentV2_1::OrdersInStoreRefundLineItemRequest::Representation
2304
+ command.request_object = orders_in_store_refund_line_item_request_object
2305
+ command.response_representation = Google::Apis::ContentV2_1::OrdersInStoreRefundLineItemResponse::Representation
2306
+ command.response_class = Google::Apis::ContentV2_1::OrdersInStoreRefundLineItemResponse
2307
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
2308
+ command.params['orderId'] = order_id unless order_id.nil?
2309
+ command.query['fields'] = fields unless fields.nil?
2310
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2311
+ command.query['userIp'] = user_ip unless user_ip.nil?
2312
+ execute_or_queue_command(command, &block)
2313
+ end
2314
+
2315
+ # Lists the orders in your Merchant Center account.
2316
+ # @param [Fixnum] merchant_id
2317
+ # The ID of the account that manages the order. This cannot be a multi-client
2318
+ # account.
2319
+ # @param [Boolean] acknowledged
2320
+ # Obtains orders that match the acknowledgement status. When set to true,
2321
+ # obtains orders that have been acknowledged. When false, obtains orders that
2322
+ # have not been acknowledged.
2323
+ # We recommend using this filter set to false, in conjunction with the
2324
+ # acknowledge call, such that only un-acknowledged orders are returned.
2325
+ # @param [Fixnum] max_results
2326
+ # The maximum number of orders to return in the response, used for paging. The
2327
+ # default value is 25 orders per page, and the maximum allowed value is 250
2328
+ # orders per page.
2329
+ # Known issue: All List calls will return all Orders without limit regardless of
2330
+ # the value of this field.
2331
+ # @param [String] order_by
2332
+ # The ordering of the returned list. The only supported value are placedDate
2333
+ # desc and placedDate asc for now, which returns orders sorted by placement date.
2334
+ # "placedDate desc" stands for listing orders by placement date, from oldest to
2335
+ # most recent. "placedDate asc" stands for listing orders by placement date,
2336
+ # from most recent to oldest. In future releases we'll support other sorting
2337
+ # criteria.
2338
+ # @param [String] page_token
2339
+ # The token returned by the previous request.
2340
+ # @param [String] placed_date_end
2341
+ # Obtains orders placed before this date (exclusively), in ISO 8601 format.
2342
+ # @param [String] placed_date_start
2343
+ # Obtains orders placed after this date (inclusively), in ISO 8601 format.
2344
+ # @param [Array<String>, String] statuses
2345
+ # Obtains orders that match any of the specified statuses. Multiple values can
2346
+ # be specified with comma separation. Additionally, please note that active is a
2347
+ # shortcut for pendingShipment and partiallyShipped, and completed is a shortcut
2348
+ # for shipped , partiallyDelivered, delivered, partiallyReturned, returned, and
2349
+ # canceled.
2350
+ # @param [String] fields
2351
+ # Selector specifying which fields to include in a partial response.
2352
+ # @param [String] quota_user
2353
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2354
+ # characters.
2355
+ # @param [String] user_ip
2356
+ # Deprecated. Please use quotaUser instead.
2357
+ # @param [Google::Apis::RequestOptions] options
2358
+ # Request-specific options
2359
+ #
2360
+ # @yield [result, err] Result & error if block supplied
2361
+ # @yieldparam result [Google::Apis::ContentV2_1::OrdersListResponse] parsed result object
2362
+ # @yieldparam err [StandardError] error object if request failed
2363
+ #
2364
+ # @return [Google::Apis::ContentV2_1::OrdersListResponse]
2365
+ #
2366
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2367
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2368
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2369
+ def list_orders(merchant_id, acknowledged: nil, max_results: nil, order_by: nil, page_token: nil, placed_date_end: nil, placed_date_start: nil, statuses: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2370
+ command = make_simple_command(:get, '{merchantId}/orders', options)
2371
+ command.response_representation = Google::Apis::ContentV2_1::OrdersListResponse::Representation
2372
+ command.response_class = Google::Apis::ContentV2_1::OrdersListResponse
2373
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
2374
+ command.query['acknowledged'] = acknowledged unless acknowledged.nil?
2375
+ command.query['maxResults'] = max_results unless max_results.nil?
2376
+ command.query['orderBy'] = order_by unless order_by.nil?
2377
+ command.query['pageToken'] = page_token unless page_token.nil?
2378
+ command.query['placedDateEnd'] = placed_date_end unless placed_date_end.nil?
2379
+ command.query['placedDateStart'] = placed_date_start unless placed_date_start.nil?
2380
+ command.query['statuses'] = statuses unless statuses.nil?
2381
+ command.query['fields'] = fields unless fields.nil?
2382
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2383
+ command.query['userIp'] = user_ip unless user_ip.nil?
2384
+ execute_or_queue_command(command, &block)
2385
+ end
2386
+
2387
+ # Rejects return on an line item.
2388
+ # @param [Fixnum] merchant_id
2389
+ # The ID of the account that manages the order. This cannot be a multi-client
2390
+ # account.
2391
+ # @param [String] order_id
2392
+ # The ID of the order.
2393
+ # @param [Google::Apis::ContentV2_1::OrdersRejectReturnLineItemRequest] orders_reject_return_line_item_request_object
2394
+ # @param [String] fields
2395
+ # Selector specifying which fields to include in a partial response.
2396
+ # @param [String] quota_user
2397
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2398
+ # characters.
2399
+ # @param [String] user_ip
2400
+ # Deprecated. Please use quotaUser instead.
2401
+ # @param [Google::Apis::RequestOptions] options
2402
+ # Request-specific options
2403
+ #
2404
+ # @yield [result, err] Result & error if block supplied
2405
+ # @yieldparam result [Google::Apis::ContentV2_1::OrdersRejectReturnLineItemResponse] parsed result object
2406
+ # @yieldparam err [StandardError] error object if request failed
2407
+ #
2408
+ # @return [Google::Apis::ContentV2_1::OrdersRejectReturnLineItemResponse]
2409
+ #
2410
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2411
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2412
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2413
+ def rejectreturnlineitem_order(merchant_id, order_id, orders_reject_return_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2414
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/rejectReturnLineItem', options)
2415
+ command.request_representation = Google::Apis::ContentV2_1::OrdersRejectReturnLineItemRequest::Representation
2416
+ command.request_object = orders_reject_return_line_item_request_object
2417
+ command.response_representation = Google::Apis::ContentV2_1::OrdersRejectReturnLineItemResponse::Representation
2418
+ command.response_class = Google::Apis::ContentV2_1::OrdersRejectReturnLineItemResponse
2419
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
2420
+ command.params['orderId'] = order_id unless order_id.nil?
2421
+ command.query['fields'] = fields unless fields.nil?
2422
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2423
+ command.query['userIp'] = user_ip unless user_ip.nil?
2424
+ execute_or_queue_command(command, &block)
2425
+ end
2426
+
2427
+ # Returns and refunds a line item. Note that this method can only be called on
2428
+ # fully shipped orders.
2429
+ # @param [Fixnum] merchant_id
2430
+ # The ID of the account that manages the order. This cannot be a multi-client
2431
+ # account.
2432
+ # @param [String] order_id
2433
+ # The ID of the order.
2434
+ # @param [Google::Apis::ContentV2_1::OrdersReturnRefundLineItemRequest] orders_return_refund_line_item_request_object
2435
+ # @param [String] fields
2436
+ # Selector specifying which fields to include in a partial response.
2437
+ # @param [String] quota_user
2438
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2439
+ # characters.
2440
+ # @param [String] user_ip
2441
+ # Deprecated. Please use quotaUser instead.
2442
+ # @param [Google::Apis::RequestOptions] options
2443
+ # Request-specific options
2444
+ #
2445
+ # @yield [result, err] Result & error if block supplied
2446
+ # @yieldparam result [Google::Apis::ContentV2_1::OrdersReturnRefundLineItemResponse] parsed result object
2447
+ # @yieldparam err [StandardError] error object if request failed
2448
+ #
2449
+ # @return [Google::Apis::ContentV2_1::OrdersReturnRefundLineItemResponse]
2450
+ #
2451
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2452
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2453
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2454
+ def returnrefundlineitem_order(merchant_id, order_id, orders_return_refund_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2455
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/returnRefundLineItem', options)
2456
+ command.request_representation = Google::Apis::ContentV2_1::OrdersReturnRefundLineItemRequest::Representation
2457
+ command.request_object = orders_return_refund_line_item_request_object
2458
+ command.response_representation = Google::Apis::ContentV2_1::OrdersReturnRefundLineItemResponse::Representation
2459
+ command.response_class = Google::Apis::ContentV2_1::OrdersReturnRefundLineItemResponse
2460
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
2461
+ command.params['orderId'] = order_id unless order_id.nil?
2462
+ command.query['fields'] = fields unless fields.nil?
2463
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2464
+ command.query['userIp'] = user_ip unless user_ip.nil?
2465
+ execute_or_queue_command(command, &block)
2466
+ end
2467
+
2468
+ # Sets (overrides) merchant provided annotations on the line item.
2469
+ # @param [Fixnum] merchant_id
2470
+ # The ID of the account that manages the order. This cannot be a multi-client
2471
+ # account.
2472
+ # @param [String] order_id
2473
+ # The ID of the order.
2474
+ # @param [Google::Apis::ContentV2_1::OrdersSetLineItemMetadataRequest] orders_set_line_item_metadata_request_object
2475
+ # @param [String] fields
2476
+ # Selector specifying which fields to include in a partial response.
2477
+ # @param [String] quota_user
2478
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2479
+ # characters.
2480
+ # @param [String] user_ip
2481
+ # Deprecated. Please use quotaUser instead.
2482
+ # @param [Google::Apis::RequestOptions] options
2483
+ # Request-specific options
2484
+ #
2485
+ # @yield [result, err] Result & error if block supplied
2486
+ # @yieldparam result [Google::Apis::ContentV2_1::OrdersSetLineItemMetadataResponse] parsed result object
2487
+ # @yieldparam err [StandardError] error object if request failed
2488
+ #
2489
+ # @return [Google::Apis::ContentV2_1::OrdersSetLineItemMetadataResponse]
2490
+ #
2491
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2492
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2493
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2494
+ def setlineitemmetadata_order(merchant_id, order_id, orders_set_line_item_metadata_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2495
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/setLineItemMetadata', options)
2496
+ command.request_representation = Google::Apis::ContentV2_1::OrdersSetLineItemMetadataRequest::Representation
2497
+ command.request_object = orders_set_line_item_metadata_request_object
2498
+ command.response_representation = Google::Apis::ContentV2_1::OrdersSetLineItemMetadataResponse::Representation
2499
+ command.response_class = Google::Apis::ContentV2_1::OrdersSetLineItemMetadataResponse
2500
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
2501
+ command.params['orderId'] = order_id unless order_id.nil?
2502
+ command.query['fields'] = fields unless fields.nil?
2503
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2504
+ command.query['userIp'] = user_ip unless user_ip.nil?
2505
+ execute_or_queue_command(command, &block)
2506
+ end
2507
+
2508
+ # Marks line item(s) as shipped.
2509
+ # @param [Fixnum] merchant_id
2510
+ # The ID of the account that manages the order. This cannot be a multi-client
2511
+ # account.
2512
+ # @param [String] order_id
2513
+ # The ID of the order.
2514
+ # @param [Google::Apis::ContentV2_1::OrdersShipLineItemsRequest] orders_ship_line_items_request_object
2515
+ # @param [String] fields
2516
+ # Selector specifying which fields to include in a partial response.
2517
+ # @param [String] quota_user
2518
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2519
+ # characters.
2520
+ # @param [String] user_ip
2521
+ # Deprecated. Please use quotaUser instead.
2522
+ # @param [Google::Apis::RequestOptions] options
2523
+ # Request-specific options
2524
+ #
2525
+ # @yield [result, err] Result & error if block supplied
2526
+ # @yieldparam result [Google::Apis::ContentV2_1::OrdersShipLineItemsResponse] parsed result object
2527
+ # @yieldparam err [StandardError] error object if request failed
2528
+ #
2529
+ # @return [Google::Apis::ContentV2_1::OrdersShipLineItemsResponse]
2530
+ #
2531
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2532
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2533
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2534
+ def shiplineitems_order(merchant_id, order_id, orders_ship_line_items_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2535
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/shipLineItems', options)
2536
+ command.request_representation = Google::Apis::ContentV2_1::OrdersShipLineItemsRequest::Representation
2537
+ command.request_object = orders_ship_line_items_request_object
2538
+ command.response_representation = Google::Apis::ContentV2_1::OrdersShipLineItemsResponse::Representation
2539
+ command.response_class = Google::Apis::ContentV2_1::OrdersShipLineItemsResponse
2540
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
2541
+ command.params['orderId'] = order_id unless order_id.nil?
2542
+ command.query['fields'] = fields unless fields.nil?
2543
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2544
+ command.query['userIp'] = user_ip unless user_ip.nil?
2545
+ execute_or_queue_command(command, &block)
2546
+ end
2547
+
2548
+ # Updates ship by and delivery by dates for a line item.
2549
+ # @param [Fixnum] merchant_id
2550
+ # The ID of the account that manages the order. This cannot be a multi-client
2551
+ # account.
2552
+ # @param [String] order_id
2553
+ # The ID of the order.
2554
+ # @param [Google::Apis::ContentV2_1::OrdersUpdateLineItemShippingDetailsRequest] orders_update_line_item_shipping_details_request_object
2555
+ # @param [String] fields
2556
+ # Selector specifying which fields to include in a partial response.
2557
+ # @param [String] quota_user
2558
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2559
+ # characters.
2560
+ # @param [String] user_ip
2561
+ # Deprecated. Please use quotaUser instead.
2562
+ # @param [Google::Apis::RequestOptions] options
2563
+ # Request-specific options
2564
+ #
2565
+ # @yield [result, err] Result & error if block supplied
2566
+ # @yieldparam result [Google::Apis::ContentV2_1::OrdersUpdateLineItemShippingDetailsResponse] parsed result object
2567
+ # @yieldparam err [StandardError] error object if request failed
2568
+ #
2569
+ # @return [Google::Apis::ContentV2_1::OrdersUpdateLineItemShippingDetailsResponse]
2570
+ #
2571
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2572
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2573
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2574
+ def updatelineitemshippingdetails_order(merchant_id, order_id, orders_update_line_item_shipping_details_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2575
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateLineItemShippingDetails', options)
2576
+ command.request_representation = Google::Apis::ContentV2_1::OrdersUpdateLineItemShippingDetailsRequest::Representation
2577
+ command.request_object = orders_update_line_item_shipping_details_request_object
2578
+ command.response_representation = Google::Apis::ContentV2_1::OrdersUpdateLineItemShippingDetailsResponse::Representation
2579
+ command.response_class = Google::Apis::ContentV2_1::OrdersUpdateLineItemShippingDetailsResponse
2580
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
2581
+ command.params['orderId'] = order_id unless order_id.nil?
2582
+ command.query['fields'] = fields unless fields.nil?
2583
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2584
+ command.query['userIp'] = user_ip unless user_ip.nil?
2585
+ execute_or_queue_command(command, &block)
2586
+ end
2587
+
2588
+ # Updates the merchant order ID for a given order.
2589
+ # @param [Fixnum] merchant_id
2590
+ # The ID of the account that manages the order. This cannot be a multi-client
2591
+ # account.
2592
+ # @param [String] order_id
2593
+ # The ID of the order.
2594
+ # @param [Google::Apis::ContentV2_1::OrdersUpdateMerchantOrderIdRequest] orders_update_merchant_order_id_request_object
2595
+ # @param [String] fields
2596
+ # Selector specifying which fields to include in a partial response.
2597
+ # @param [String] quota_user
2598
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2599
+ # characters.
2600
+ # @param [String] user_ip
2601
+ # Deprecated. Please use quotaUser instead.
2602
+ # @param [Google::Apis::RequestOptions] options
2603
+ # Request-specific options
2604
+ #
2605
+ # @yield [result, err] Result & error if block supplied
2606
+ # @yieldparam result [Google::Apis::ContentV2_1::OrdersUpdateMerchantOrderIdResponse] parsed result object
2607
+ # @yieldparam err [StandardError] error object if request failed
2608
+ #
2609
+ # @return [Google::Apis::ContentV2_1::OrdersUpdateMerchantOrderIdResponse]
2610
+ #
2611
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2612
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2613
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2614
+ def updatemerchantorderid_order(merchant_id, order_id, orders_update_merchant_order_id_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2615
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateMerchantOrderId', options)
2616
+ command.request_representation = Google::Apis::ContentV2_1::OrdersUpdateMerchantOrderIdRequest::Representation
2617
+ command.request_object = orders_update_merchant_order_id_request_object
2618
+ command.response_representation = Google::Apis::ContentV2_1::OrdersUpdateMerchantOrderIdResponse::Representation
2619
+ command.response_class = Google::Apis::ContentV2_1::OrdersUpdateMerchantOrderIdResponse
2620
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
2621
+ command.params['orderId'] = order_id unless order_id.nil?
2622
+ command.query['fields'] = fields unless fields.nil?
2623
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2624
+ command.query['userIp'] = user_ip unless user_ip.nil?
2625
+ execute_or_queue_command(command, &block)
2626
+ end
2627
+
2628
+ # Updates a shipment's status, carrier, and/or tracking ID.
2629
+ # @param [Fixnum] merchant_id
2630
+ # The ID of the account that manages the order. This cannot be a multi-client
2631
+ # account.
2632
+ # @param [String] order_id
2633
+ # The ID of the order.
2634
+ # @param [Google::Apis::ContentV2_1::OrdersUpdateShipmentRequest] orders_update_shipment_request_object
2635
+ # @param [String] fields
2636
+ # Selector specifying which fields to include in a partial response.
2637
+ # @param [String] quota_user
2638
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2639
+ # characters.
2640
+ # @param [String] user_ip
2641
+ # Deprecated. Please use quotaUser instead.
2642
+ # @param [Google::Apis::RequestOptions] options
2643
+ # Request-specific options
2644
+ #
2645
+ # @yield [result, err] Result & error if block supplied
2646
+ # @yieldparam result [Google::Apis::ContentV2_1::OrdersUpdateShipmentResponse] parsed result object
2647
+ # @yieldparam err [StandardError] error object if request failed
2648
+ #
2649
+ # @return [Google::Apis::ContentV2_1::OrdersUpdateShipmentResponse]
2650
+ #
2651
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2652
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2653
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2654
+ def updateshipment_order(merchant_id, order_id, orders_update_shipment_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2655
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateShipment', options)
2656
+ command.request_representation = Google::Apis::ContentV2_1::OrdersUpdateShipmentRequest::Representation
2657
+ command.request_object = orders_update_shipment_request_object
2658
+ command.response_representation = Google::Apis::ContentV2_1::OrdersUpdateShipmentResponse::Representation
2659
+ command.response_class = Google::Apis::ContentV2_1::OrdersUpdateShipmentResponse
2660
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
2661
+ command.params['orderId'] = order_id unless order_id.nil?
2662
+ command.query['fields'] = fields unless fields.nil?
2663
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2664
+ command.query['userIp'] = user_ip unless user_ip.nil?
2665
+ execute_or_queue_command(command, &block)
2666
+ end
2667
+
2668
+ # Batches multiple POS-related calls in a single request.
2669
+ # @param [Google::Apis::ContentV2_1::PosCustomBatchRequest] pos_custom_batch_request_object
2670
+ # @param [String] fields
2671
+ # Selector specifying which fields to include in a partial response.
2672
+ # @param [String] quota_user
2673
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2674
+ # characters.
2675
+ # @param [String] user_ip
2676
+ # Deprecated. Please use quotaUser instead.
2677
+ # @param [Google::Apis::RequestOptions] options
2678
+ # Request-specific options
2679
+ #
2680
+ # @yield [result, err] Result & error if block supplied
2681
+ # @yieldparam result [Google::Apis::ContentV2_1::PosCustomBatchResponse] parsed result object
2682
+ # @yieldparam err [StandardError] error object if request failed
2683
+ #
2684
+ # @return [Google::Apis::ContentV2_1::PosCustomBatchResponse]
2685
+ #
2686
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2687
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2688
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2689
+ def custombatch_po(pos_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2690
+ command = make_simple_command(:post, 'pos/batch', options)
2691
+ command.request_representation = Google::Apis::ContentV2_1::PosCustomBatchRequest::Representation
2692
+ command.request_object = pos_custom_batch_request_object
2693
+ command.response_representation = Google::Apis::ContentV2_1::PosCustomBatchResponse::Representation
2694
+ command.response_class = Google::Apis::ContentV2_1::PosCustomBatchResponse
2695
+ command.query['fields'] = fields unless fields.nil?
2696
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2697
+ command.query['userIp'] = user_ip unless user_ip.nil?
2698
+ execute_or_queue_command(command, &block)
2699
+ end
2700
+
2701
+ # Deletes a store for the given merchant.
2702
+ # @param [Fixnum] merchant_id
2703
+ # The ID of the POS or inventory data provider.
2704
+ # @param [Fixnum] target_merchant_id
2705
+ # The ID of the target merchant.
2706
+ # @param [String] store_code
2707
+ # A store code that is unique per merchant.
2708
+ # @param [String] fields
2709
+ # Selector specifying which fields to include in a partial response.
2710
+ # @param [String] quota_user
2711
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2712
+ # characters.
2713
+ # @param [String] user_ip
2714
+ # Deprecated. Please use quotaUser instead.
2715
+ # @param [Google::Apis::RequestOptions] options
2716
+ # Request-specific options
2717
+ #
2718
+ # @yield [result, err] Result & error if block supplied
2719
+ # @yieldparam result [NilClass] No result returned for this method
2720
+ # @yieldparam err [StandardError] error object if request failed
2721
+ #
2722
+ # @return [void]
2723
+ #
2724
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2725
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2726
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2727
+ def delete_po(merchant_id, target_merchant_id, store_code, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2728
+ command = make_simple_command(:delete, '{merchantId}/pos/{targetMerchantId}/store/{storeCode}', options)
2729
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
2730
+ command.params['targetMerchantId'] = target_merchant_id unless target_merchant_id.nil?
2731
+ command.params['storeCode'] = store_code unless store_code.nil?
2732
+ command.query['fields'] = fields unless fields.nil?
2733
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2734
+ command.query['userIp'] = user_ip unless user_ip.nil?
2735
+ execute_or_queue_command(command, &block)
2736
+ end
2737
+
2738
+ # Retrieves information about the given store.
2739
+ # @param [Fixnum] merchant_id
2740
+ # The ID of the POS or inventory data provider.
2741
+ # @param [Fixnum] target_merchant_id
2742
+ # The ID of the target merchant.
2743
+ # @param [String] store_code
2744
+ # A store code that is unique per merchant.
2745
+ # @param [String] fields
2746
+ # Selector specifying which fields to include in a partial response.
2747
+ # @param [String] quota_user
2748
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2749
+ # characters.
2750
+ # @param [String] user_ip
2751
+ # Deprecated. Please use quotaUser instead.
2752
+ # @param [Google::Apis::RequestOptions] options
2753
+ # Request-specific options
2754
+ #
2755
+ # @yield [result, err] Result & error if block supplied
2756
+ # @yieldparam result [Google::Apis::ContentV2_1::PosStore] parsed result object
2757
+ # @yieldparam err [StandardError] error object if request failed
2758
+ #
2759
+ # @return [Google::Apis::ContentV2_1::PosStore]
2760
+ #
2761
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2762
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2763
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2764
+ def get_po(merchant_id, target_merchant_id, store_code, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2765
+ command = make_simple_command(:get, '{merchantId}/pos/{targetMerchantId}/store/{storeCode}', options)
2766
+ command.response_representation = Google::Apis::ContentV2_1::PosStore::Representation
2767
+ command.response_class = Google::Apis::ContentV2_1::PosStore
2768
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
2769
+ command.params['targetMerchantId'] = target_merchant_id unless target_merchant_id.nil?
2770
+ command.params['storeCode'] = store_code unless store_code.nil?
2771
+ command.query['fields'] = fields unless fields.nil?
2772
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2773
+ command.query['userIp'] = user_ip unless user_ip.nil?
2774
+ execute_or_queue_command(command, &block)
2775
+ end
2776
+
2777
+ # Creates a store for the given merchant.
2778
+ # @param [Fixnum] merchant_id
2779
+ # The ID of the POS or inventory data provider.
2780
+ # @param [Fixnum] target_merchant_id
2781
+ # The ID of the target merchant.
2782
+ # @param [Google::Apis::ContentV2_1::PosStore] pos_store_object
2783
+ # @param [String] fields
2784
+ # Selector specifying which fields to include in a partial response.
2785
+ # @param [String] quota_user
2786
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2787
+ # characters.
2788
+ # @param [String] user_ip
2789
+ # Deprecated. Please use quotaUser instead.
2790
+ # @param [Google::Apis::RequestOptions] options
2791
+ # Request-specific options
2792
+ #
2793
+ # @yield [result, err] Result & error if block supplied
2794
+ # @yieldparam result [Google::Apis::ContentV2_1::PosStore] parsed result object
2795
+ # @yieldparam err [StandardError] error object if request failed
2796
+ #
2797
+ # @return [Google::Apis::ContentV2_1::PosStore]
2798
+ #
2799
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2800
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2801
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2802
+ def insert_po(merchant_id, target_merchant_id, pos_store_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2803
+ command = make_simple_command(:post, '{merchantId}/pos/{targetMerchantId}/store', options)
2804
+ command.request_representation = Google::Apis::ContentV2_1::PosStore::Representation
2805
+ command.request_object = pos_store_object
2806
+ command.response_representation = Google::Apis::ContentV2_1::PosStore::Representation
2807
+ command.response_class = Google::Apis::ContentV2_1::PosStore
2808
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
2809
+ command.params['targetMerchantId'] = target_merchant_id unless target_merchant_id.nil?
2810
+ command.query['fields'] = fields unless fields.nil?
2811
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2812
+ command.query['userIp'] = user_ip unless user_ip.nil?
2813
+ execute_or_queue_command(command, &block)
2814
+ end
2815
+
2816
+ # Submit inventory for the given merchant.
2817
+ # @param [Fixnum] merchant_id
2818
+ # The ID of the POS or inventory data provider.
2819
+ # @param [Fixnum] target_merchant_id
2820
+ # The ID of the target merchant.
2821
+ # @param [Google::Apis::ContentV2_1::PosInventoryRequest] pos_inventory_request_object
2822
+ # @param [String] fields
2823
+ # Selector specifying which fields to include in a partial response.
2824
+ # @param [String] quota_user
2825
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2826
+ # characters.
2827
+ # @param [String] user_ip
2828
+ # Deprecated. Please use quotaUser instead.
2829
+ # @param [Google::Apis::RequestOptions] options
2830
+ # Request-specific options
2831
+ #
2832
+ # @yield [result, err] Result & error if block supplied
2833
+ # @yieldparam result [Google::Apis::ContentV2_1::PosInventoryResponse] parsed result object
2834
+ # @yieldparam err [StandardError] error object if request failed
2835
+ #
2836
+ # @return [Google::Apis::ContentV2_1::PosInventoryResponse]
2837
+ #
2838
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2839
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2840
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2841
+ def inventory_po(merchant_id, target_merchant_id, pos_inventory_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2842
+ command = make_simple_command(:post, '{merchantId}/pos/{targetMerchantId}/inventory', options)
2843
+ command.request_representation = Google::Apis::ContentV2_1::PosInventoryRequest::Representation
2844
+ command.request_object = pos_inventory_request_object
2845
+ command.response_representation = Google::Apis::ContentV2_1::PosInventoryResponse::Representation
2846
+ command.response_class = Google::Apis::ContentV2_1::PosInventoryResponse
2847
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
2848
+ command.params['targetMerchantId'] = target_merchant_id unless target_merchant_id.nil?
2849
+ command.query['fields'] = fields unless fields.nil?
2850
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2851
+ command.query['userIp'] = user_ip unless user_ip.nil?
2852
+ execute_or_queue_command(command, &block)
2853
+ end
2854
+
2855
+ # Lists the stores of the target merchant.
2856
+ # @param [Fixnum] merchant_id
2857
+ # The ID of the POS or inventory data provider.
2858
+ # @param [Fixnum] target_merchant_id
2859
+ # The ID of the target merchant.
2860
+ # @param [String] fields
2861
+ # Selector specifying which fields to include in a partial response.
2862
+ # @param [String] quota_user
2863
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2864
+ # characters.
2865
+ # @param [String] user_ip
2866
+ # Deprecated. Please use quotaUser instead.
2867
+ # @param [Google::Apis::RequestOptions] options
2868
+ # Request-specific options
2869
+ #
2870
+ # @yield [result, err] Result & error if block supplied
2871
+ # @yieldparam result [Google::Apis::ContentV2_1::PosListResponse] parsed result object
2872
+ # @yieldparam err [StandardError] error object if request failed
2873
+ #
2874
+ # @return [Google::Apis::ContentV2_1::PosListResponse]
2875
+ #
2876
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2877
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2878
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2879
+ def list_pos(merchant_id, target_merchant_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2880
+ command = make_simple_command(:get, '{merchantId}/pos/{targetMerchantId}/store', options)
2881
+ command.response_representation = Google::Apis::ContentV2_1::PosListResponse::Representation
2882
+ command.response_class = Google::Apis::ContentV2_1::PosListResponse
2883
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
2884
+ command.params['targetMerchantId'] = target_merchant_id unless target_merchant_id.nil?
2885
+ command.query['fields'] = fields unless fields.nil?
2886
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2887
+ command.query['userIp'] = user_ip unless user_ip.nil?
2888
+ execute_or_queue_command(command, &block)
2889
+ end
2890
+
2891
+ # Submit a sale event for the given merchant.
2892
+ # @param [Fixnum] merchant_id
2893
+ # The ID of the POS or inventory data provider.
2894
+ # @param [Fixnum] target_merchant_id
2895
+ # The ID of the target merchant.
2896
+ # @param [Google::Apis::ContentV2_1::PosSaleRequest] pos_sale_request_object
2897
+ # @param [String] fields
2898
+ # Selector specifying which fields to include in a partial response.
2899
+ # @param [String] quota_user
2900
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2901
+ # characters.
2902
+ # @param [String] user_ip
2903
+ # Deprecated. Please use quotaUser instead.
2904
+ # @param [Google::Apis::RequestOptions] options
2905
+ # Request-specific options
2906
+ #
2907
+ # @yield [result, err] Result & error if block supplied
2908
+ # @yieldparam result [Google::Apis::ContentV2_1::PosSaleResponse] parsed result object
2909
+ # @yieldparam err [StandardError] error object if request failed
2910
+ #
2911
+ # @return [Google::Apis::ContentV2_1::PosSaleResponse]
2912
+ #
2913
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2914
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2915
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2916
+ def sale_po(merchant_id, target_merchant_id, pos_sale_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2917
+ command = make_simple_command(:post, '{merchantId}/pos/{targetMerchantId}/sale', options)
2918
+ command.request_representation = Google::Apis::ContentV2_1::PosSaleRequest::Representation
2919
+ command.request_object = pos_sale_request_object
2920
+ command.response_representation = Google::Apis::ContentV2_1::PosSaleResponse::Representation
2921
+ command.response_class = Google::Apis::ContentV2_1::PosSaleResponse
2922
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
2923
+ command.params['targetMerchantId'] = target_merchant_id unless target_merchant_id.nil?
2924
+ command.query['fields'] = fields unless fields.nil?
2925
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2926
+ command.query['userIp'] = user_ip unless user_ip.nil?
2927
+ execute_or_queue_command(command, &block)
2928
+ end
2929
+
2930
+ # Retrieves, inserts, and deletes multiple products in a single request.
2931
+ # @param [Google::Apis::ContentV2_1::ProductsCustomBatchRequest] products_custom_batch_request_object
2932
+ # @param [String] fields
2933
+ # Selector specifying which fields to include in a partial response.
2934
+ # @param [String] quota_user
2935
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2936
+ # characters.
2937
+ # @param [String] user_ip
2938
+ # Deprecated. Please use quotaUser instead.
2939
+ # @param [Google::Apis::RequestOptions] options
2940
+ # Request-specific options
2941
+ #
2942
+ # @yield [result, err] Result & error if block supplied
2943
+ # @yieldparam result [Google::Apis::ContentV2_1::ProductsCustomBatchResponse] parsed result object
2944
+ # @yieldparam err [StandardError] error object if request failed
2945
+ #
2946
+ # @return [Google::Apis::ContentV2_1::ProductsCustomBatchResponse]
2947
+ #
2948
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2949
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2950
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2951
+ def custombatch_product(products_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2952
+ command = make_simple_command(:post, 'products/batch', options)
2953
+ command.request_representation = Google::Apis::ContentV2_1::ProductsCustomBatchRequest::Representation
2954
+ command.request_object = products_custom_batch_request_object
2955
+ command.response_representation = Google::Apis::ContentV2_1::ProductsCustomBatchResponse::Representation
2956
+ command.response_class = Google::Apis::ContentV2_1::ProductsCustomBatchResponse
2957
+ command.query['fields'] = fields unless fields.nil?
2958
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2959
+ command.query['userIp'] = user_ip unless user_ip.nil?
2960
+ execute_or_queue_command(command, &block)
2961
+ end
2962
+
2963
+ # Deletes a product from your Merchant Center account.
2964
+ # @param [Fixnum] merchant_id
2965
+ # The ID of the account that contains the product. This account cannot be a
2966
+ # multi-client account.
2967
+ # @param [String] product_id
2968
+ # The REST id of the product.
2969
+ # @param [String] fields
2970
+ # Selector specifying which fields to include in a partial response.
2971
+ # @param [String] quota_user
2972
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
2973
+ # characters.
2974
+ # @param [String] user_ip
2975
+ # Deprecated. Please use quotaUser instead.
2976
+ # @param [Google::Apis::RequestOptions] options
2977
+ # Request-specific options
2978
+ #
2979
+ # @yield [result, err] Result & error if block supplied
2980
+ # @yieldparam result [NilClass] No result returned for this method
2981
+ # @yieldparam err [StandardError] error object if request failed
2982
+ #
2983
+ # @return [void]
2984
+ #
2985
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2986
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2987
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2988
+ def delete_product(merchant_id, product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2989
+ command = make_simple_command(:delete, '{merchantId}/products/{productId}', options)
2990
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
2991
+ command.params['productId'] = product_id unless product_id.nil?
2992
+ command.query['fields'] = fields unless fields.nil?
2993
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2994
+ command.query['userIp'] = user_ip unless user_ip.nil?
2995
+ execute_or_queue_command(command, &block)
2996
+ end
2997
+
2998
+ # Retrieves a product from your Merchant Center account.
2999
+ # @param [Fixnum] merchant_id
3000
+ # The ID of the account that contains the product. This account cannot be a
3001
+ # multi-client account.
3002
+ # @param [String] product_id
3003
+ # The REST id of the product.
3004
+ # @param [String] fields
3005
+ # Selector specifying which fields to include in a partial response.
3006
+ # @param [String] quota_user
3007
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3008
+ # characters.
3009
+ # @param [String] user_ip
3010
+ # Deprecated. Please use quotaUser instead.
3011
+ # @param [Google::Apis::RequestOptions] options
3012
+ # Request-specific options
3013
+ #
3014
+ # @yield [result, err] Result & error if block supplied
3015
+ # @yieldparam result [Google::Apis::ContentV2_1::Product] parsed result object
3016
+ # @yieldparam err [StandardError] error object if request failed
3017
+ #
3018
+ # @return [Google::Apis::ContentV2_1::Product]
3019
+ #
3020
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3021
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3022
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3023
+ def get_product(merchant_id, product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3024
+ command = make_simple_command(:get, '{merchantId}/products/{productId}', options)
3025
+ command.response_representation = Google::Apis::ContentV2_1::Product::Representation
3026
+ command.response_class = Google::Apis::ContentV2_1::Product
3027
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
3028
+ command.params['productId'] = product_id unless product_id.nil?
3029
+ command.query['fields'] = fields unless fields.nil?
3030
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3031
+ command.query['userIp'] = user_ip unless user_ip.nil?
3032
+ execute_or_queue_command(command, &block)
3033
+ end
3034
+
3035
+ # Uploads a product to your Merchant Center account. If an item with the same
3036
+ # channel, contentLanguage, offerId, and targetCountry already exists, this
3037
+ # method updates that entry.
3038
+ # @param [Fixnum] merchant_id
3039
+ # The ID of the account that contains the product. This account cannot be a
3040
+ # multi-client account.
3041
+ # @param [Google::Apis::ContentV2_1::Product] product_object
3042
+ # @param [String] fields
3043
+ # Selector specifying which fields to include in a partial response.
3044
+ # @param [String] quota_user
3045
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3046
+ # characters.
3047
+ # @param [String] user_ip
3048
+ # Deprecated. Please use quotaUser instead.
3049
+ # @param [Google::Apis::RequestOptions] options
3050
+ # Request-specific options
3051
+ #
3052
+ # @yield [result, err] Result & error if block supplied
3053
+ # @yieldparam result [Google::Apis::ContentV2_1::Product] parsed result object
3054
+ # @yieldparam err [StandardError] error object if request failed
3055
+ #
3056
+ # @return [Google::Apis::ContentV2_1::Product]
3057
+ #
3058
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3059
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3060
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3061
+ def insert_product(merchant_id, product_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3062
+ command = make_simple_command(:post, '{merchantId}/products', options)
3063
+ command.request_representation = Google::Apis::ContentV2_1::Product::Representation
3064
+ command.request_object = product_object
3065
+ command.response_representation = Google::Apis::ContentV2_1::Product::Representation
3066
+ command.response_class = Google::Apis::ContentV2_1::Product
3067
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
3068
+ command.query['fields'] = fields unless fields.nil?
3069
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3070
+ command.query['userIp'] = user_ip unless user_ip.nil?
3071
+ execute_or_queue_command(command, &block)
3072
+ end
3073
+
3074
+ # Lists the products in your Merchant Center account.
3075
+ # @param [Fixnum] merchant_id
3076
+ # The ID of the account that contains the products. This account cannot be a
3077
+ # multi-client account.
3078
+ # @param [Fixnum] max_results
3079
+ # The maximum number of products to return in the response, used for paging.
3080
+ # @param [String] page_token
3081
+ # The token returned by the previous request.
3082
+ # @param [String] fields
3083
+ # Selector specifying which fields to include in a partial response.
3084
+ # @param [String] quota_user
3085
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3086
+ # characters.
3087
+ # @param [String] user_ip
3088
+ # Deprecated. Please use quotaUser instead.
3089
+ # @param [Google::Apis::RequestOptions] options
3090
+ # Request-specific options
3091
+ #
3092
+ # @yield [result, err] Result & error if block supplied
3093
+ # @yieldparam result [Google::Apis::ContentV2_1::ProductsListResponse] parsed result object
3094
+ # @yieldparam err [StandardError] error object if request failed
3095
+ #
3096
+ # @return [Google::Apis::ContentV2_1::ProductsListResponse]
3097
+ #
3098
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3099
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3100
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3101
+ def list_products(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3102
+ command = make_simple_command(:get, '{merchantId}/products', options)
3103
+ command.response_representation = Google::Apis::ContentV2_1::ProductsListResponse::Representation
3104
+ command.response_class = Google::Apis::ContentV2_1::ProductsListResponse
3105
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
3106
+ command.query['maxResults'] = max_results unless max_results.nil?
3107
+ command.query['pageToken'] = page_token unless page_token.nil?
3108
+ command.query['fields'] = fields unless fields.nil?
3109
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3110
+ command.query['userIp'] = user_ip unless user_ip.nil?
3111
+ execute_or_queue_command(command, &block)
3112
+ end
3113
+
3114
+ # Gets the statuses of multiple products in a single request.
3115
+ # @param [Google::Apis::ContentV2_1::ProductstatusesCustomBatchRequest] productstatuses_custom_batch_request_object
3116
+ # @param [String] fields
3117
+ # Selector specifying which fields to include in a partial response.
3118
+ # @param [String] quota_user
3119
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3120
+ # characters.
3121
+ # @param [String] user_ip
3122
+ # Deprecated. Please use quotaUser instead.
3123
+ # @param [Google::Apis::RequestOptions] options
3124
+ # Request-specific options
3125
+ #
3126
+ # @yield [result, err] Result & error if block supplied
3127
+ # @yieldparam result [Google::Apis::ContentV2_1::ProductstatusesCustomBatchResponse] parsed result object
3128
+ # @yieldparam err [StandardError] error object if request failed
3129
+ #
3130
+ # @return [Google::Apis::ContentV2_1::ProductstatusesCustomBatchResponse]
3131
+ #
3132
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3133
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3134
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3135
+ def custombatch_productstatus(productstatuses_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3136
+ command = make_simple_command(:post, 'productstatuses/batch', options)
3137
+ command.request_representation = Google::Apis::ContentV2_1::ProductstatusesCustomBatchRequest::Representation
3138
+ command.request_object = productstatuses_custom_batch_request_object
3139
+ command.response_representation = Google::Apis::ContentV2_1::ProductstatusesCustomBatchResponse::Representation
3140
+ command.response_class = Google::Apis::ContentV2_1::ProductstatusesCustomBatchResponse
3141
+ command.query['fields'] = fields unless fields.nil?
3142
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3143
+ command.query['userIp'] = user_ip unless user_ip.nil?
3144
+ execute_or_queue_command(command, &block)
3145
+ end
3146
+
3147
+ # Gets the status of a product from your Merchant Center account.
3148
+ # @param [Fixnum] merchant_id
3149
+ # The ID of the account that contains the product. This account cannot be a
3150
+ # multi-client account.
3151
+ # @param [String] product_id
3152
+ # The REST id of the product.
3153
+ # @param [Array<String>, String] destinations
3154
+ # If set, only issues for the specified destinations are returned, otherwise
3155
+ # only issues for the Shopping destination.
3156
+ # @param [String] fields
3157
+ # Selector specifying which fields to include in a partial response.
3158
+ # @param [String] quota_user
3159
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3160
+ # characters.
3161
+ # @param [String] user_ip
3162
+ # Deprecated. Please use quotaUser instead.
3163
+ # @param [Google::Apis::RequestOptions] options
3164
+ # Request-specific options
3165
+ #
3166
+ # @yield [result, err] Result & error if block supplied
3167
+ # @yieldparam result [Google::Apis::ContentV2_1::ProductStatus] parsed result object
3168
+ # @yieldparam err [StandardError] error object if request failed
3169
+ #
3170
+ # @return [Google::Apis::ContentV2_1::ProductStatus]
3171
+ #
3172
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3173
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3174
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3175
+ def get_productstatus(merchant_id, product_id, destinations: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3176
+ command = make_simple_command(:get, '{merchantId}/productstatuses/{productId}', options)
3177
+ command.response_representation = Google::Apis::ContentV2_1::ProductStatus::Representation
3178
+ command.response_class = Google::Apis::ContentV2_1::ProductStatus
3179
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
3180
+ command.params['productId'] = product_id unless product_id.nil?
3181
+ command.query['destinations'] = destinations unless destinations.nil?
3182
+ command.query['fields'] = fields unless fields.nil?
3183
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3184
+ command.query['userIp'] = user_ip unless user_ip.nil?
3185
+ execute_or_queue_command(command, &block)
3186
+ end
3187
+
3188
+ # Lists the statuses of the products in your Merchant Center account.
3189
+ # @param [Fixnum] merchant_id
3190
+ # The ID of the account that contains the products. This account cannot be a
3191
+ # multi-client account.
3192
+ # @param [Array<String>, String] destinations
3193
+ # If set, only issues for the specified destinations are returned, otherwise
3194
+ # only issues for the Shopping destination.
3195
+ # @param [Fixnum] max_results
3196
+ # The maximum number of product statuses to return in the response, used for
3197
+ # paging.
3198
+ # @param [String] page_token
3199
+ # The token returned by the previous request.
3200
+ # @param [String] fields
3201
+ # Selector specifying which fields to include in a partial response.
3202
+ # @param [String] quota_user
3203
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3204
+ # characters.
3205
+ # @param [String] user_ip
3206
+ # Deprecated. Please use quotaUser instead.
3207
+ # @param [Google::Apis::RequestOptions] options
3208
+ # Request-specific options
3209
+ #
3210
+ # @yield [result, err] Result & error if block supplied
3211
+ # @yieldparam result [Google::Apis::ContentV2_1::ProductstatusesListResponse] parsed result object
3212
+ # @yieldparam err [StandardError] error object if request failed
3213
+ #
3214
+ # @return [Google::Apis::ContentV2_1::ProductstatusesListResponse]
3215
+ #
3216
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3217
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3218
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3219
+ def list_productstatuses(merchant_id, destinations: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3220
+ command = make_simple_command(:get, '{merchantId}/productstatuses', options)
3221
+ command.response_representation = Google::Apis::ContentV2_1::ProductstatusesListResponse::Representation
3222
+ command.response_class = Google::Apis::ContentV2_1::ProductstatusesListResponse
3223
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
3224
+ command.query['destinations'] = destinations unless destinations.nil?
3225
+ command.query['maxResults'] = max_results unless max_results.nil?
3226
+ command.query['pageToken'] = page_token unless page_token.nil?
3227
+ command.query['fields'] = fields unless fields.nil?
3228
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3229
+ command.query['userIp'] = user_ip unless user_ip.nil?
3230
+ execute_or_queue_command(command, &block)
3231
+ end
3232
+
3233
+ # Retrieves and updates the shipping settings of multiple accounts in a single
3234
+ # request.
3235
+ # @param [Google::Apis::ContentV2_1::ShippingsettingsCustomBatchRequest] shippingsettings_custom_batch_request_object
3236
+ # @param [String] fields
3237
+ # Selector specifying which fields to include in a partial response.
3238
+ # @param [String] quota_user
3239
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3240
+ # characters.
3241
+ # @param [String] user_ip
3242
+ # Deprecated. Please use quotaUser instead.
3243
+ # @param [Google::Apis::RequestOptions] options
3244
+ # Request-specific options
3245
+ #
3246
+ # @yield [result, err] Result & error if block supplied
3247
+ # @yieldparam result [Google::Apis::ContentV2_1::ShippingsettingsCustomBatchResponse] parsed result object
3248
+ # @yieldparam err [StandardError] error object if request failed
3249
+ #
3250
+ # @return [Google::Apis::ContentV2_1::ShippingsettingsCustomBatchResponse]
3251
+ #
3252
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3253
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3254
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3255
+ def custombatch_shippingsetting(shippingsettings_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3256
+ command = make_simple_command(:post, 'shippingsettings/batch', options)
3257
+ command.request_representation = Google::Apis::ContentV2_1::ShippingsettingsCustomBatchRequest::Representation
3258
+ command.request_object = shippingsettings_custom_batch_request_object
3259
+ command.response_representation = Google::Apis::ContentV2_1::ShippingsettingsCustomBatchResponse::Representation
3260
+ command.response_class = Google::Apis::ContentV2_1::ShippingsettingsCustomBatchResponse
3261
+ command.query['fields'] = fields unless fields.nil?
3262
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3263
+ command.query['userIp'] = user_ip unless user_ip.nil?
3264
+ execute_or_queue_command(command, &block)
3265
+ end
3266
+
3267
+ # Retrieves the shipping settings of the account.
3268
+ # @param [Fixnum] merchant_id
3269
+ # The ID of the managing account. If this parameter is not the same as accountId,
3270
+ # then this account must be a multi-client account and accountId must be the ID
3271
+ # of a sub-account of this account.
3272
+ # @param [Fixnum] account_id
3273
+ # The ID of the account for which to get/update shipping settings.
3274
+ # @param [String] fields
3275
+ # Selector specifying which fields to include in a partial response.
3276
+ # @param [String] quota_user
3277
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3278
+ # characters.
3279
+ # @param [String] user_ip
3280
+ # Deprecated. Please use quotaUser instead.
3281
+ # @param [Google::Apis::RequestOptions] options
3282
+ # Request-specific options
3283
+ #
3284
+ # @yield [result, err] Result & error if block supplied
3285
+ # @yieldparam result [Google::Apis::ContentV2_1::ShippingSettings] parsed result object
3286
+ # @yieldparam err [StandardError] error object if request failed
3287
+ #
3288
+ # @return [Google::Apis::ContentV2_1::ShippingSettings]
3289
+ #
3290
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3291
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3292
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3293
+ def get_shippingsetting(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3294
+ command = make_simple_command(:get, '{merchantId}/shippingsettings/{accountId}', options)
3295
+ command.response_representation = Google::Apis::ContentV2_1::ShippingSettings::Representation
3296
+ command.response_class = Google::Apis::ContentV2_1::ShippingSettings
3297
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
3298
+ command.params['accountId'] = account_id unless account_id.nil?
3299
+ command.query['fields'] = fields unless fields.nil?
3300
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3301
+ command.query['userIp'] = user_ip unless user_ip.nil?
3302
+ execute_or_queue_command(command, &block)
3303
+ end
3304
+
3305
+ # Retrieves supported carriers and carrier services for an account.
3306
+ # @param [Fixnum] merchant_id
3307
+ # The ID of the account for which to retrieve the supported carriers.
3308
+ # @param [String] fields
3309
+ # Selector specifying which fields to include in a partial response.
3310
+ # @param [String] quota_user
3311
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3312
+ # characters.
3313
+ # @param [String] user_ip
3314
+ # Deprecated. Please use quotaUser instead.
3315
+ # @param [Google::Apis::RequestOptions] options
3316
+ # Request-specific options
3317
+ #
3318
+ # @yield [result, err] Result & error if block supplied
3319
+ # @yieldparam result [Google::Apis::ContentV2_1::ShippingsettingsGetSupportedCarriersResponse] parsed result object
3320
+ # @yieldparam err [StandardError] error object if request failed
3321
+ #
3322
+ # @return [Google::Apis::ContentV2_1::ShippingsettingsGetSupportedCarriersResponse]
3323
+ #
3324
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3325
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3326
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3327
+ def getsupportedcarriers_shippingsetting(merchant_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3328
+ command = make_simple_command(:get, '{merchantId}/supportedCarriers', options)
3329
+ command.response_representation = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedCarriersResponse::Representation
3330
+ command.response_class = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedCarriersResponse
3331
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
3332
+ command.query['fields'] = fields unless fields.nil?
3333
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3334
+ command.query['userIp'] = user_ip unless user_ip.nil?
3335
+ execute_or_queue_command(command, &block)
3336
+ end
3337
+
3338
+ # Retrieves supported holidays for an account.
3339
+ # @param [Fixnum] merchant_id
3340
+ # The ID of the account for which to retrieve the supported holidays.
3341
+ # @param [String] fields
3342
+ # Selector specifying which fields to include in a partial response.
3343
+ # @param [String] quota_user
3344
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3345
+ # characters.
3346
+ # @param [String] user_ip
3347
+ # Deprecated. Please use quotaUser instead.
3348
+ # @param [Google::Apis::RequestOptions] options
3349
+ # Request-specific options
3350
+ #
3351
+ # @yield [result, err] Result & error if block supplied
3352
+ # @yieldparam result [Google::Apis::ContentV2_1::ShippingsettingsGetSupportedHolidaysResponse] parsed result object
3353
+ # @yieldparam err [StandardError] error object if request failed
3354
+ #
3355
+ # @return [Google::Apis::ContentV2_1::ShippingsettingsGetSupportedHolidaysResponse]
3356
+ #
3357
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3358
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3359
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3360
+ def getsupportedholidays_shippingsetting(merchant_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3361
+ command = make_simple_command(:get, '{merchantId}/supportedHolidays', options)
3362
+ command.response_representation = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedHolidaysResponse::Representation
3363
+ command.response_class = Google::Apis::ContentV2_1::ShippingsettingsGetSupportedHolidaysResponse
3364
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
3365
+ command.query['fields'] = fields unless fields.nil?
3366
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3367
+ command.query['userIp'] = user_ip unless user_ip.nil?
3368
+ execute_or_queue_command(command, &block)
3369
+ end
3370
+
3371
+ # Lists the shipping settings of the sub-accounts in your Merchant Center
3372
+ # account.
3373
+ # @param [Fixnum] merchant_id
3374
+ # The ID of the managing account. This must be a multi-client account.
3375
+ # @param [Fixnum] max_results
3376
+ # The maximum number of shipping settings to return in the response, used for
3377
+ # paging.
3378
+ # @param [String] page_token
3379
+ # The token returned by the previous request.
3380
+ # @param [String] fields
3381
+ # Selector specifying which fields to include in a partial response.
3382
+ # @param [String] quota_user
3383
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3384
+ # characters.
3385
+ # @param [String] user_ip
3386
+ # Deprecated. Please use quotaUser instead.
3387
+ # @param [Google::Apis::RequestOptions] options
3388
+ # Request-specific options
3389
+ #
3390
+ # @yield [result, err] Result & error if block supplied
3391
+ # @yieldparam result [Google::Apis::ContentV2_1::ShippingsettingsListResponse] parsed result object
3392
+ # @yieldparam err [StandardError] error object if request failed
3393
+ #
3394
+ # @return [Google::Apis::ContentV2_1::ShippingsettingsListResponse]
3395
+ #
3396
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3397
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3398
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3399
+ def list_shippingsettings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3400
+ command = make_simple_command(:get, '{merchantId}/shippingsettings', options)
3401
+ command.response_representation = Google::Apis::ContentV2_1::ShippingsettingsListResponse::Representation
3402
+ command.response_class = Google::Apis::ContentV2_1::ShippingsettingsListResponse
3403
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
3404
+ command.query['maxResults'] = max_results unless max_results.nil?
3405
+ command.query['pageToken'] = page_token unless page_token.nil?
3406
+ command.query['fields'] = fields unless fields.nil?
3407
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3408
+ command.query['userIp'] = user_ip unless user_ip.nil?
3409
+ execute_or_queue_command(command, &block)
3410
+ end
3411
+
3412
+ # Updates the shipping settings of the account.
3413
+ # @param [Fixnum] merchant_id
3414
+ # The ID of the managing account. If this parameter is not the same as accountId,
3415
+ # then this account must be a multi-client account and accountId must be the ID
3416
+ # of a sub-account of this account.
3417
+ # @param [Fixnum] account_id
3418
+ # The ID of the account for which to get/update shipping settings.
3419
+ # @param [Google::Apis::ContentV2_1::ShippingSettings] shipping_settings_object
3420
+ # @param [String] fields
3421
+ # Selector specifying which fields to include in a partial response.
3422
+ # @param [String] quota_user
3423
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
3424
+ # characters.
3425
+ # @param [String] user_ip
3426
+ # Deprecated. Please use quotaUser instead.
3427
+ # @param [Google::Apis::RequestOptions] options
3428
+ # Request-specific options
3429
+ #
3430
+ # @yield [result, err] Result & error if block supplied
3431
+ # @yieldparam result [Google::Apis::ContentV2_1::ShippingSettings] parsed result object
3432
+ # @yieldparam err [StandardError] error object if request failed
3433
+ #
3434
+ # @return [Google::Apis::ContentV2_1::ShippingSettings]
3435
+ #
3436
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3437
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3438
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3439
+ def update_shippingsetting(merchant_id, account_id, shipping_settings_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3440
+ command = make_simple_command(:put, '{merchantId}/shippingsettings/{accountId}', options)
3441
+ command.request_representation = Google::Apis::ContentV2_1::ShippingSettings::Representation
3442
+ command.request_object = shipping_settings_object
3443
+ command.response_representation = Google::Apis::ContentV2_1::ShippingSettings::Representation
3444
+ command.response_class = Google::Apis::ContentV2_1::ShippingSettings
3445
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
3446
+ command.params['accountId'] = account_id unless account_id.nil?
3447
+ command.query['fields'] = fields unless fields.nil?
3448
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3449
+ command.query['userIp'] = user_ip unless user_ip.nil?
3450
+ execute_or_queue_command(command, &block)
3451
+ end
3452
+
3453
+ protected
3454
+
3455
+ def apply_command_defaults(command)
3456
+ command.query['key'] = key unless key.nil?
3457
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3458
+ command.query['userIp'] = user_ip unless user_ip.nil?
3459
+ end
3460
+ end
3461
+ end
3462
+ end
3463
+ end