google-api-client 0.24.3 → 0.25.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (262) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +0 -2
  3. data/CHANGELOG.md +99 -0
  4. data/Gemfile +1 -0
  5. data/generated/google/apis/abusiveexperiencereport_v1.rb +2 -2
  6. data/generated/google/apis/abusiveexperiencereport_v1/classes.rb +0 -1
  7. data/generated/google/apis/abusiveexperiencereport_v1/service.rb +1 -1
  8. data/generated/google/apis/{content_v2sandbox.rb → accesscontextmanager_v1beta.rb} +11 -12
  9. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +697 -0
  10. data/generated/google/apis/accesscontextmanager_v1beta/representations.rb +240 -0
  11. data/generated/google/apis/accesscontextmanager_v1beta/service.rb +666 -0
  12. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  13. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +16 -0
  14. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +2 -0
  15. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +2 -2
  16. data/generated/google/apis/adexperiencereport_v1.rb +2 -2
  17. data/generated/google/apis/adexperiencereport_v1/service.rb +1 -1
  18. data/generated/google/apis/alertcenter_v1beta1.rb +4 -3
  19. data/generated/google/apis/alertcenter_v1beta1/classes.rb +9 -2
  20. data/generated/google/apis/alertcenter_v1beta1/representations.rb +1 -0
  21. data/generated/google/apis/alertcenter_v1beta1/service.rb +3 -2
  22. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  23. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +3 -2
  24. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  25. data/generated/google/apis/androidenterprise_v1/classes.rb +68 -6
  26. data/generated/google/apis/androidenterprise_v1/representations.rb +20 -0
  27. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  28. data/generated/google/apis/androidmanagement_v1/classes.rb +92 -0
  29. data/generated/google/apis/androidmanagement_v1/representations.rb +36 -0
  30. data/generated/google/apis/androidpublisher_v1.rb +2 -2
  31. data/generated/google/apis/androidpublisher_v1/service.rb +1 -1
  32. data/generated/google/apis/androidpublisher_v1_1.rb +2 -2
  33. data/generated/google/apis/androidpublisher_v1_1/service.rb +1 -1
  34. data/generated/google/apis/androidpublisher_v2.rb +2 -2
  35. data/generated/google/apis/androidpublisher_v2/service.rb +3 -2
  36. data/generated/google/apis/androidpublisher_v3.rb +2 -2
  37. data/generated/google/apis/androidpublisher_v3/service.rb +3 -2
  38. data/generated/google/apis/appengine_v1.rb +2 -3
  39. data/generated/google/apis/appengine_v1/service.rb +1 -2
  40. data/generated/google/apis/appengine_v1alpha.rb +2 -3
  41. data/generated/google/apis/appengine_v1alpha/service.rb +1 -2
  42. data/generated/google/apis/appengine_v1beta.rb +2 -3
  43. data/generated/google/apis/appengine_v1beta/service.rb +1 -2
  44. data/generated/google/apis/appengine_v1beta4.rb +2 -3
  45. data/generated/google/apis/appengine_v1beta4/service.rb +1 -2
  46. data/generated/google/apis/appengine_v1beta5.rb +2 -3
  47. data/generated/google/apis/appengine_v1beta5/service.rb +1 -2
  48. data/generated/google/apis/bigquery_v2.rb +1 -1
  49. data/generated/google/apis/bigquery_v2/classes.rb +98 -7
  50. data/generated/google/apis/bigquery_v2/representations.rb +35 -0
  51. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  52. data/generated/google/apis/civicinfo_v2.rb +1 -1
  53. data/generated/google/apis/civicinfo_v2/classes.rb +18 -0
  54. data/generated/google/apis/civicinfo_v2/representations.rb +2 -0
  55. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  56. data/generated/google/apis/cloudasset_v1beta1/classes.rb +5 -5
  57. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  58. data/generated/google/apis/cloudbuild_v1/classes.rb +10 -1
  59. data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
  60. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  61. data/generated/google/apis/cloudfunctions_v1/classes.rb +418 -0
  62. data/generated/google/apis/cloudfunctions_v1/representations.rb +121 -0
  63. data/generated/google/apis/cloudfunctions_v1/service.rb +107 -0
  64. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  65. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +16 -0
  66. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +1 -0
  67. data/generated/google/apis/cloudkms_v1.rb +1 -1
  68. data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
  69. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +2 -1
  70. data/generated/google/apis/cloudresourcemanager_v1/service.rb +2 -2
  71. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +3 -3
  72. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +2 -1
  73. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +2 -2
  74. data/generated/google/apis/cloudresourcemanager_v2.rb +3 -3
  75. data/generated/google/apis/cloudresourcemanager_v2/service.rb +2 -2
  76. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +3 -3
  77. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +2 -2
  78. data/generated/google/apis/cloudsearch_v1.rb +59 -0
  79. data/generated/google/apis/cloudsearch_v1/classes.rb +4697 -0
  80. data/generated/google/apis/cloudsearch_v1/representations.rb +2151 -0
  81. data/generated/google/apis/cloudsearch_v1/service.rb +1351 -0
  82. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  83. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +34 -0
  84. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  85. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +34 -30
  86. data/generated/google/apis/composer_v1beta1.rb +1 -1
  87. data/generated/google/apis/composer_v1beta1/classes.rb +5 -8
  88. data/generated/google/apis/compute_alpha.rb +1 -1
  89. data/generated/google/apis/compute_beta.rb +1 -1
  90. data/generated/google/apis/compute_v1.rb +1 -1
  91. data/generated/google/apis/content_v2.rb +1 -1
  92. data/generated/google/apis/content_v2/classes.rb +197 -69
  93. data/generated/google/apis/content_v2/representations.rb +64 -33
  94. data/generated/google/apis/content_v2/service.rb +1 -1
  95. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  96. data/generated/google/apis/dataflow_v1b3/classes.rb +42 -0
  97. data/generated/google/apis/dataflow_v1b3/representations.rb +17 -0
  98. data/generated/google/apis/dataproc_v1.rb +1 -1
  99. data/generated/google/apis/dataproc_v1/classes.rb +19 -19
  100. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  101. data/generated/google/apis/dataproc_v1beta2/classes.rb +19 -19
  102. data/generated/google/apis/dialogflow_v2.rb +6 -3
  103. data/generated/google/apis/dialogflow_v2/classes.rb +112 -8
  104. data/generated/google/apis/dialogflow_v2/representations.rb +30 -0
  105. data/generated/google/apis/dialogflow_v2/service.rb +7 -2
  106. data/generated/google/apis/dialogflow_v2beta1.rb +6 -3
  107. data/generated/google/apis/dialogflow_v2beta1/classes.rb +116 -8
  108. data/generated/google/apis/dialogflow_v2beta1/representations.rb +30 -0
  109. data/generated/google/apis/dialogflow_v2beta1/service.rb +19 -8
  110. data/generated/google/apis/digitalassetlinks_v1.rb +2 -3
  111. data/generated/google/apis/digitalassetlinks_v1/service.rb +1 -2
  112. data/generated/google/apis/dlp_v2.rb +1 -1
  113. data/generated/google/apis/dlp_v2/classes.rb +17 -5
  114. data/generated/google/apis/dlp_v2/representations.rb +2 -0
  115. data/generated/google/apis/dns_v1beta2.rb +1 -1
  116. data/generated/google/apis/dns_v1beta2/classes.rb +81 -0
  117. data/generated/google/apis/dns_v1beta2/representations.rb +34 -0
  118. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  119. data/generated/google/apis/doubleclicksearch_v2/classes.rb +1 -1
  120. data/generated/google/apis/drive_v2.rb +1 -1
  121. data/generated/google/apis/drive_v2/classes.rb +3 -1
  122. data/generated/google/apis/firebaserules_v1.rb +1 -1
  123. data/generated/google/apis/firestore_v1.rb +1 -1
  124. data/generated/google/apis/firestore_v1/classes.rb +637 -0
  125. data/generated/google/apis/firestore_v1/representations.rb +260 -0
  126. data/generated/google/apis/firestore_v1/service.rb +377 -0
  127. data/generated/google/apis/firestore_v1beta2.rb +1 -1
  128. data/generated/google/apis/firestore_v1beta2/classes.rb +205 -0
  129. data/generated/google/apis/firestore_v1beta2/representations.rb +83 -0
  130. data/generated/google/apis/firestore_v1beta2/service.rb +79 -0
  131. data/generated/google/apis/genomics_v1.rb +2 -2
  132. data/generated/google/apis/genomics_v1/service.rb +1 -1
  133. data/generated/google/apis/genomics_v1alpha2.rb +2 -2
  134. data/generated/google/apis/genomics_v1alpha2/service.rb +1 -1
  135. data/generated/google/apis/genomics_v2alpha1.rb +2 -2
  136. data/generated/google/apis/genomics_v2alpha1/service.rb +1 -1
  137. data/generated/google/apis/iam_v1.rb +1 -1
  138. data/generated/google/apis/iam_v1/classes.rb +4 -3
  139. data/generated/google/apis/iamcredentials_v1.rb +2 -2
  140. data/generated/google/apis/iamcredentials_v1/service.rb +1 -1
  141. data/generated/google/apis/indexing_v3.rb +2 -3
  142. data/generated/google/apis/indexing_v3/service.rb +1 -2
  143. data/generated/google/apis/jobs_v2.rb +1 -1
  144. data/generated/google/apis/jobs_v2/classes.rb +2 -2
  145. data/generated/google/apis/jobs_v3.rb +1 -1
  146. data/generated/google/apis/jobs_v3/classes.rb +3 -3
  147. data/generated/google/apis/jobs_v3/service.rb +20 -2
  148. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  149. data/generated/google/apis/jobs_v3p1beta1/classes.rb +3 -3
  150. data/generated/google/apis/jobs_v3p1beta1/service.rb +20 -2
  151. data/generated/google/apis/language_v1.rb +4 -4
  152. data/generated/google/apis/language_v1/service.rb +3 -3
  153. data/generated/google/apis/language_v1beta1.rb +4 -4
  154. data/generated/google/apis/language_v1beta1/service.rb +3 -3
  155. data/generated/google/apis/language_v1beta2.rb +4 -4
  156. data/generated/google/apis/language_v1beta2/service.rb +3 -3
  157. data/generated/google/apis/logging_v2.rb +1 -1
  158. data/generated/google/apis/logging_v2/classes.rb +2 -13
  159. data/generated/google/apis/logging_v2/representations.rb +0 -2
  160. data/generated/google/apis/logging_v2beta1.rb +1 -1
  161. data/generated/google/apis/logging_v2beta1/classes.rb +2 -41
  162. data/generated/google/apis/logging_v2beta1/representations.rb +0 -16
  163. data/generated/google/apis/logging_v2beta1/service.rb +0 -255
  164. data/generated/google/apis/monitoring_v3.rb +1 -1
  165. data/generated/google/apis/monitoring_v3/classes.rb +25 -15
  166. data/generated/google/apis/monitoring_v3/representations.rb +1 -0
  167. data/generated/google/apis/monitoring_v3/service.rb +366 -1
  168. data/generated/google/apis/oslogin_v1.rb +1 -1
  169. data/generated/google/apis/oslogin_v1/service.rb +7 -1
  170. data/generated/google/apis/oslogin_v1alpha.rb +1 -1
  171. data/generated/google/apis/oslogin_v1alpha/service.rb +10 -1
  172. data/generated/google/apis/oslogin_v1beta.rb +1 -1
  173. data/generated/google/apis/oslogin_v1beta/service.rb +7 -1
  174. data/generated/google/apis/redis_v1.rb +1 -1
  175. data/generated/google/apis/redis_v1/classes.rb +6 -0
  176. data/generated/google/apis/redis_v1/representations.rb +1 -0
  177. data/generated/google/apis/redis_v1beta1.rb +1 -1
  178. data/generated/google/apis/redis_v1beta1/classes.rb +6 -0
  179. data/generated/google/apis/redis_v1beta1/representations.rb +1 -0
  180. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  181. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +7 -6
  182. data/generated/google/apis/script_v1.rb +2 -2
  183. data/generated/google/apis/script_v1/service.rb +7 -3
  184. data/generated/google/apis/serviceconsumermanagement_v1.rb +2 -3
  185. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +7 -0
  186. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +1 -0
  187. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +1 -2
  188. data/generated/google/apis/servicecontrol_v1.rb +3 -3
  189. data/generated/google/apis/servicecontrol_v1/classes.rb +18 -230
  190. data/generated/google/apis/servicecontrol_v1/representations.rb +2 -99
  191. data/generated/google/apis/servicecontrol_v1/service.rb +2 -140
  192. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  193. data/generated/google/apis/servicemanagement_v1/classes.rb +1 -1
  194. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  195. data/generated/google/apis/servicenetworking_v1beta/classes.rb +24 -0
  196. data/generated/google/apis/servicenetworking_v1beta/representations.rb +3 -0
  197. data/generated/google/apis/serviceusage_v1.rb +1 -1
  198. data/generated/google/apis/serviceusage_v1/classes.rb +7 -0
  199. data/generated/google/apis/serviceusage_v1/representations.rb +1 -0
  200. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  201. data/generated/google/apis/serviceusage_v1beta1/classes.rb +7 -0
  202. data/generated/google/apis/serviceusage_v1beta1/representations.rb +1 -0
  203. data/generated/google/apis/slides_v1.rb +2 -2
  204. data/generated/google/apis/slides_v1/classes.rb +4 -3
  205. data/generated/google/apis/slides_v1/service.rb +1 -1
  206. data/generated/google/apis/storage_v1.rb +1 -1
  207. data/generated/google/apis/storage_v1/service.rb +2 -3
  208. data/generated/google/apis/testing_v1.rb +1 -1
  209. data/generated/google/apis/testing_v1/classes.rb +9 -0
  210. data/generated/google/apis/testing_v1/representations.rb +1 -0
  211. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  212. data/generated/google/apis/toolresults_v1beta3/service.rb +1 -1
  213. data/generated/google/apis/tpu_v1.rb +1 -1
  214. data/generated/google/apis/tpu_v1/classes.rb +6 -0
  215. data/generated/google/apis/tpu_v1/representations.rb +1 -0
  216. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  217. data/generated/google/apis/tpu_v1alpha1/classes.rb +6 -0
  218. data/generated/google/apis/tpu_v1alpha1/representations.rb +1 -0
  219. data/generated/google/apis/vault_v1.rb +1 -1
  220. data/generated/google/apis/vault_v1/classes.rb +7 -0
  221. data/generated/google/apis/vault_v1/representations.rb +1 -0
  222. data/generated/google/apis/videointelligence_v1.rb +3 -2
  223. data/generated/google/apis/videointelligence_v1/classes.rb +547 -12
  224. data/generated/google/apis/videointelligence_v1/representations.rb +190 -2
  225. data/generated/google/apis/videointelligence_v1/service.rb +2 -1
  226. data/generated/google/apis/videointelligence_v1beta2.rb +3 -2
  227. data/generated/google/apis/videointelligence_v1beta2/classes.rb +547 -12
  228. data/generated/google/apis/videointelligence_v1beta2/representations.rb +190 -2
  229. data/generated/google/apis/videointelligence_v1beta2/service.rb +2 -1
  230. data/generated/google/apis/videointelligence_v1p1beta1.rb +3 -2
  231. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +418 -13
  232. data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +153 -2
  233. data/generated/google/apis/videointelligence_v1p1beta1/service.rb +2 -1
  234. data/generated/google/apis/vision_v1.rb +1 -1
  235. data/generated/google/apis/vision_v1/classes.rb +1139 -54
  236. data/generated/google/apis/vision_v1/representations.rb +478 -0
  237. data/generated/google/apis/vision_v1/service.rb +744 -0
  238. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  239. data/generated/google/apis/vision_v1p1beta1/classes.rb +761 -16
  240. data/generated/google/apis/vision_v1p1beta1/representations.rb +333 -0
  241. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  242. data/generated/google/apis/vision_v1p2beta1/classes.rb +758 -13
  243. data/generated/google/apis/vision_v1p2beta1/representations.rb +333 -0
  244. data/generated/google/apis/websecurityscanner_v1alpha.rb +2 -2
  245. data/generated/google/apis/websecurityscanner_v1alpha/service.rb +1 -1
  246. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  247. data/generated/google/apis/youtube_v3.rb +1 -1
  248. data/lib/google/apis/core/http_command.rb +83 -10
  249. data/lib/google/apis/options.rb +5 -1
  250. data/lib/google/apis/version.rb +1 -1
  251. metadata +10 -14
  252. data/generated/google/apis/content_v2sandbox/classes.rb +0 -4436
  253. data/generated/google/apis/content_v2sandbox/representations.rb +0 -1956
  254. data/generated/google/apis/content_v2sandbox/service.rb +0 -1296
  255. data/generated/google/apis/dfareporting_v2_8.rb +0 -40
  256. data/generated/google/apis/dfareporting_v2_8/classes.rb +0 -12043
  257. data/generated/google/apis/dfareporting_v2_8/representations.rb +0 -4311
  258. data/generated/google/apis/dfareporting_v2_8/service.rb +0 -8727
  259. data/generated/google/apis/serviceuser_v1.rb +0 -42
  260. data/generated/google/apis/serviceuser_v1/classes.rb +0 -3472
  261. data/generated/google/apis/serviceuser_v1/representations.rb +0 -1030
  262. data/generated/google/apis/serviceuser_v1/service.rb +0 -215
@@ -1,1296 +0,0 @@
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 ContentV2sandbox
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_v2sandbox'
30
- #
31
- # Content = Google::Apis::ContentV2sandbox # 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/v2sandbox/')
52
- @batch_path = 'batch/content/v2sandbox'
53
- end
54
-
55
- # Creates a charge invoice for a shipment group, and triggers a charge capture
56
- # for non-facilitated payment orders.
57
- # @param [Fixnum] merchant_id
58
- # The ID of the account that manages the order. This cannot be a multi-client
59
- # account.
60
- # @param [String] order_id
61
- # The ID of the order.
62
- # @param [Google::Apis::ContentV2sandbox::OrderinvoicesCreateChargeInvoiceRequest] orderinvoices_create_charge_invoice_request_object
63
- # @param [String] fields
64
- # Selector specifying which fields to include in a partial response.
65
- # @param [String] quota_user
66
- # An opaque string that represents a user for quota purposes. Must not exceed 40
67
- # characters.
68
- # @param [String] user_ip
69
- # Deprecated. Please use quotaUser instead.
70
- # @param [Google::Apis::RequestOptions] options
71
- # Request-specific options
72
- #
73
- # @yield [result, err] Result & error if block supplied
74
- # @yieldparam result [Google::Apis::ContentV2sandbox::OrderinvoicesCreateChargeInvoiceResponse] parsed result object
75
- # @yieldparam err [StandardError] error object if request failed
76
- #
77
- # @return [Google::Apis::ContentV2sandbox::OrderinvoicesCreateChargeInvoiceResponse]
78
- #
79
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
80
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
81
- # @raise [Google::Apis::AuthorizationError] Authorization is required
82
- 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)
83
- command = make_simple_command(:post, '{merchantId}/orderinvoices/{orderId}/createChargeInvoice', options)
84
- command.request_representation = Google::Apis::ContentV2sandbox::OrderinvoicesCreateChargeInvoiceRequest::Representation
85
- command.request_object = orderinvoices_create_charge_invoice_request_object
86
- command.response_representation = Google::Apis::ContentV2sandbox::OrderinvoicesCreateChargeInvoiceResponse::Representation
87
- command.response_class = Google::Apis::ContentV2sandbox::OrderinvoicesCreateChargeInvoiceResponse
88
- command.params['merchantId'] = merchant_id unless merchant_id.nil?
89
- command.params['orderId'] = order_id unless order_id.nil?
90
- command.query['fields'] = fields unless fields.nil?
91
- command.query['quotaUser'] = quota_user unless quota_user.nil?
92
- command.query['userIp'] = user_ip unless user_ip.nil?
93
- execute_or_queue_command(command, &block)
94
- end
95
-
96
- # Creates a refund invoice for one or more shipment groups, and triggers a
97
- # refund for non-facilitated payment orders. This can only be used for line
98
- # items that have previously been charged using createChargeInvoice. All amounts
99
- # (except for the summary) are incremental with respect to the previous invoice.
100
- # @param [Fixnum] merchant_id
101
- # The ID of the account that manages the order. This cannot be a multi-client
102
- # account.
103
- # @param [String] order_id
104
- # The ID of the order.
105
- # @param [Google::Apis::ContentV2sandbox::OrderinvoicesCreateRefundInvoiceRequest] orderinvoices_create_refund_invoice_request_object
106
- # @param [String] fields
107
- # Selector specifying which fields to include in a partial response.
108
- # @param [String] quota_user
109
- # An opaque string that represents a user for quota purposes. Must not exceed 40
110
- # characters.
111
- # @param [String] user_ip
112
- # Deprecated. Please use quotaUser instead.
113
- # @param [Google::Apis::RequestOptions] options
114
- # Request-specific options
115
- #
116
- # @yield [result, err] Result & error if block supplied
117
- # @yieldparam result [Google::Apis::ContentV2sandbox::OrderinvoicesCreateRefundInvoiceResponse] parsed result object
118
- # @yieldparam err [StandardError] error object if request failed
119
- #
120
- # @return [Google::Apis::ContentV2sandbox::OrderinvoicesCreateRefundInvoiceResponse]
121
- #
122
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
123
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
124
- # @raise [Google::Apis::AuthorizationError] Authorization is required
125
- 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)
126
- command = make_simple_command(:post, '{merchantId}/orderinvoices/{orderId}/createRefundInvoice', options)
127
- command.request_representation = Google::Apis::ContentV2sandbox::OrderinvoicesCreateRefundInvoiceRequest::Representation
128
- command.request_object = orderinvoices_create_refund_invoice_request_object
129
- command.response_representation = Google::Apis::ContentV2sandbox::OrderinvoicesCreateRefundInvoiceResponse::Representation
130
- command.response_class = Google::Apis::ContentV2sandbox::OrderinvoicesCreateRefundInvoiceResponse
131
- command.params['merchantId'] = merchant_id unless merchant_id.nil?
132
- command.params['orderId'] = order_id unless order_id.nil?
133
- command.query['fields'] = fields unless fields.nil?
134
- command.query['quotaUser'] = quota_user unless quota_user.nil?
135
- command.query['userIp'] = user_ip unless user_ip.nil?
136
- execute_or_queue_command(command, &block)
137
- end
138
-
139
- # Notify about successfully authorizing user's payment method for a given amount.
140
- # @param [Fixnum] merchant_id
141
- # The ID of the account that manages the order. This cannot be a multi-client
142
- # account.
143
- # @param [String] order_id
144
- # The ID of the order for for which payment authorization is happening.
145
- # @param [Google::Apis::ContentV2sandbox::OrderpaymentsNotifyAuthApprovedRequest] orderpayments_notify_auth_approved_request_object
146
- # @param [String] fields
147
- # Selector specifying which fields to include in a partial response.
148
- # @param [String] quota_user
149
- # An opaque string that represents a user for quota purposes. Must not exceed 40
150
- # characters.
151
- # @param [String] user_ip
152
- # Deprecated. Please use quotaUser instead.
153
- # @param [Google::Apis::RequestOptions] options
154
- # Request-specific options
155
- #
156
- # @yield [result, err] Result & error if block supplied
157
- # @yieldparam result [Google::Apis::ContentV2sandbox::OrderpaymentsNotifyAuthApprovedResponse] parsed result object
158
- # @yieldparam err [StandardError] error object if request failed
159
- #
160
- # @return [Google::Apis::ContentV2sandbox::OrderpaymentsNotifyAuthApprovedResponse]
161
- #
162
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
163
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
164
- # @raise [Google::Apis::AuthorizationError] Authorization is required
165
- 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)
166
- command = make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyAuthApproved', options)
167
- command.request_representation = Google::Apis::ContentV2sandbox::OrderpaymentsNotifyAuthApprovedRequest::Representation
168
- command.request_object = orderpayments_notify_auth_approved_request_object
169
- command.response_representation = Google::Apis::ContentV2sandbox::OrderpaymentsNotifyAuthApprovedResponse::Representation
170
- command.response_class = Google::Apis::ContentV2sandbox::OrderpaymentsNotifyAuthApprovedResponse
171
- command.params['merchantId'] = merchant_id unless merchant_id.nil?
172
- command.params['orderId'] = order_id unless order_id.nil?
173
- command.query['fields'] = fields unless fields.nil?
174
- command.query['quotaUser'] = quota_user unless quota_user.nil?
175
- command.query['userIp'] = user_ip unless user_ip.nil?
176
- execute_or_queue_command(command, &block)
177
- end
178
-
179
- # Notify about failure to authorize user's payment method.
180
- # @param [Fixnum] merchant_id
181
- # The ID of the account that manages the order. This cannot be a multi-client
182
- # account.
183
- # @param [String] order_id
184
- # The ID of the order for which payment authorization was declined.
185
- # @param [Google::Apis::ContentV2sandbox::OrderpaymentsNotifyAuthDeclinedRequest] orderpayments_notify_auth_declined_request_object
186
- # @param [String] fields
187
- # Selector specifying which fields to include in a partial response.
188
- # @param [String] quota_user
189
- # An opaque string that represents a user for quota purposes. Must not exceed 40
190
- # characters.
191
- # @param [String] user_ip
192
- # Deprecated. Please use quotaUser instead.
193
- # @param [Google::Apis::RequestOptions] options
194
- # Request-specific options
195
- #
196
- # @yield [result, err] Result & error if block supplied
197
- # @yieldparam result [Google::Apis::ContentV2sandbox::OrderpaymentsNotifyAuthDeclinedResponse] parsed result object
198
- # @yieldparam err [StandardError] error object if request failed
199
- #
200
- # @return [Google::Apis::ContentV2sandbox::OrderpaymentsNotifyAuthDeclinedResponse]
201
- #
202
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
203
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
204
- # @raise [Google::Apis::AuthorizationError] Authorization is required
205
- 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)
206
- command = make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyAuthDeclined', options)
207
- command.request_representation = Google::Apis::ContentV2sandbox::OrderpaymentsNotifyAuthDeclinedRequest::Representation
208
- command.request_object = orderpayments_notify_auth_declined_request_object
209
- command.response_representation = Google::Apis::ContentV2sandbox::OrderpaymentsNotifyAuthDeclinedResponse::Representation
210
- command.response_class = Google::Apis::ContentV2sandbox::OrderpaymentsNotifyAuthDeclinedResponse
211
- command.params['merchantId'] = merchant_id unless merchant_id.nil?
212
- command.params['orderId'] = order_id unless order_id.nil?
213
- command.query['fields'] = fields unless fields.nil?
214
- command.query['quotaUser'] = quota_user unless quota_user.nil?
215
- command.query['userIp'] = user_ip unless user_ip.nil?
216
- execute_or_queue_command(command, &block)
217
- end
218
-
219
- # Notify about charge on user's selected payments method.
220
- # @param [Fixnum] merchant_id
221
- # The ID of the account that manages the order. This cannot be a multi-client
222
- # account.
223
- # @param [String] order_id
224
- # The ID of the order for which charge is happening.
225
- # @param [Google::Apis::ContentV2sandbox::OrderpaymentsNotifyChargeRequest] orderpayments_notify_charge_request_object
226
- # @param [String] fields
227
- # Selector specifying which fields to include in a partial response.
228
- # @param [String] quota_user
229
- # An opaque string that represents a user for quota purposes. Must not exceed 40
230
- # characters.
231
- # @param [String] user_ip
232
- # Deprecated. Please use quotaUser instead.
233
- # @param [Google::Apis::RequestOptions] options
234
- # Request-specific options
235
- #
236
- # @yield [result, err] Result & error if block supplied
237
- # @yieldparam result [Google::Apis::ContentV2sandbox::OrderpaymentsNotifyChargeResponse] parsed result object
238
- # @yieldparam err [StandardError] error object if request failed
239
- #
240
- # @return [Google::Apis::ContentV2sandbox::OrderpaymentsNotifyChargeResponse]
241
- #
242
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
243
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
244
- # @raise [Google::Apis::AuthorizationError] Authorization is required
245
- def notifycharge_orderpayment(merchant_id, order_id, orderpayments_notify_charge_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
246
- command = make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyCharge', options)
247
- command.request_representation = Google::Apis::ContentV2sandbox::OrderpaymentsNotifyChargeRequest::Representation
248
- command.request_object = orderpayments_notify_charge_request_object
249
- command.response_representation = Google::Apis::ContentV2sandbox::OrderpaymentsNotifyChargeResponse::Representation
250
- command.response_class = Google::Apis::ContentV2sandbox::OrderpaymentsNotifyChargeResponse
251
- command.params['merchantId'] = merchant_id unless merchant_id.nil?
252
- command.params['orderId'] = order_id unless order_id.nil?
253
- command.query['fields'] = fields unless fields.nil?
254
- command.query['quotaUser'] = quota_user unless quota_user.nil?
255
- command.query['userIp'] = user_ip unless user_ip.nil?
256
- execute_or_queue_command(command, &block)
257
- end
258
-
259
- # Notify about refund on user's selected payments method.
260
- # @param [Fixnum] merchant_id
261
- # The ID of the account that manages the order. This cannot be a multi-client
262
- # account.
263
- # @param [String] order_id
264
- # The ID of the order for which charge is happening.
265
- # @param [Google::Apis::ContentV2sandbox::OrderpaymentsNotifyRefundRequest] orderpayments_notify_refund_request_object
266
- # @param [String] fields
267
- # Selector specifying which fields to include in a partial response.
268
- # @param [String] quota_user
269
- # An opaque string that represents a user for quota purposes. Must not exceed 40
270
- # characters.
271
- # @param [String] user_ip
272
- # Deprecated. Please use quotaUser instead.
273
- # @param [Google::Apis::RequestOptions] options
274
- # Request-specific options
275
- #
276
- # @yield [result, err] Result & error if block supplied
277
- # @yieldparam result [Google::Apis::ContentV2sandbox::OrderpaymentsNotifyRefundResponse] parsed result object
278
- # @yieldparam err [StandardError] error object if request failed
279
- #
280
- # @return [Google::Apis::ContentV2sandbox::OrderpaymentsNotifyRefundResponse]
281
- #
282
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
283
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
284
- # @raise [Google::Apis::AuthorizationError] Authorization is required
285
- def notifyrefund_orderpayment(merchant_id, order_id, orderpayments_notify_refund_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
286
- command = make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyRefund', options)
287
- command.request_representation = Google::Apis::ContentV2sandbox::OrderpaymentsNotifyRefundRequest::Representation
288
- command.request_object = orderpayments_notify_refund_request_object
289
- command.response_representation = Google::Apis::ContentV2sandbox::OrderpaymentsNotifyRefundResponse::Representation
290
- command.response_class = Google::Apis::ContentV2sandbox::OrderpaymentsNotifyRefundResponse
291
- command.params['merchantId'] = merchant_id unless merchant_id.nil?
292
- command.params['orderId'] = order_id unless order_id.nil?
293
- command.query['fields'] = fields unless fields.nil?
294
- command.query['quotaUser'] = quota_user unless quota_user.nil?
295
- command.query['userIp'] = user_ip unless user_ip.nil?
296
- execute_or_queue_command(command, &block)
297
- end
298
-
299
- # Retrieves an order return from your Merchant Center account.
300
- # @param [Fixnum] merchant_id
301
- # The ID of the account that manages the order. This cannot be a multi-client
302
- # account.
303
- # @param [String] return_id
304
- # Merchant order return ID generated by Google.
305
- # @param [String] fields
306
- # Selector specifying which fields to include in a partial response.
307
- # @param [String] quota_user
308
- # An opaque string that represents a user for quota purposes. Must not exceed 40
309
- # characters.
310
- # @param [String] user_ip
311
- # Deprecated. Please use quotaUser instead.
312
- # @param [Google::Apis::RequestOptions] options
313
- # Request-specific options
314
- #
315
- # @yield [result, err] Result & error if block supplied
316
- # @yieldparam result [Google::Apis::ContentV2sandbox::MerchantOrderReturn] parsed result object
317
- # @yieldparam err [StandardError] error object if request failed
318
- #
319
- # @return [Google::Apis::ContentV2sandbox::MerchantOrderReturn]
320
- #
321
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
322
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
323
- # @raise [Google::Apis::AuthorizationError] Authorization is required
324
- def get_orderreturn(merchant_id, return_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
325
- command = make_simple_command(:get, '{merchantId}/orderreturns/{returnId}', options)
326
- command.response_representation = Google::Apis::ContentV2sandbox::MerchantOrderReturn::Representation
327
- command.response_class = Google::Apis::ContentV2sandbox::MerchantOrderReturn
328
- command.params['merchantId'] = merchant_id unless merchant_id.nil?
329
- command.params['returnId'] = return_id unless return_id.nil?
330
- command.query['fields'] = fields unless fields.nil?
331
- command.query['quotaUser'] = quota_user unless quota_user.nil?
332
- command.query['userIp'] = user_ip unless user_ip.nil?
333
- execute_or_queue_command(command, &block)
334
- end
335
-
336
- # Lists order returns in your Merchant Center account.
337
- # @param [Fixnum] merchant_id
338
- # The ID of the account that manages the order. This cannot be a multi-client
339
- # account.
340
- # @param [String] created_end_date
341
- # Obtains order returns created before this date (inclusively), in ISO 8601
342
- # format.
343
- # @param [String] created_start_date
344
- # Obtains order returns created after this date (inclusively), in ISO 8601
345
- # format.
346
- # @param [Fixnum] max_results
347
- # The maximum number of order returns to return in the response, used for paging.
348
- # The default value is 25 returns per page, and the maximum allowed value is
349
- # 250 returns per page.
350
- # @param [String] order_by
351
- # Return the results in the specified order.
352
- # @param [String] page_token
353
- # The token returned by the previous request.
354
- # @param [String] fields
355
- # Selector specifying which fields to include in a partial response.
356
- # @param [String] quota_user
357
- # An opaque string that represents a user for quota purposes. Must not exceed 40
358
- # characters.
359
- # @param [String] user_ip
360
- # Deprecated. Please use quotaUser instead.
361
- # @param [Google::Apis::RequestOptions] options
362
- # Request-specific options
363
- #
364
- # @yield [result, err] Result & error if block supplied
365
- # @yieldparam result [Google::Apis::ContentV2sandbox::OrderreturnsListResponse] parsed result object
366
- # @yieldparam err [StandardError] error object if request failed
367
- #
368
- # @return [Google::Apis::ContentV2sandbox::OrderreturnsListResponse]
369
- #
370
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
371
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
372
- # @raise [Google::Apis::AuthorizationError] Authorization is required
373
- 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)
374
- command = make_simple_command(:get, '{merchantId}/orderreturns', options)
375
- command.response_representation = Google::Apis::ContentV2sandbox::OrderreturnsListResponse::Representation
376
- command.response_class = Google::Apis::ContentV2sandbox::OrderreturnsListResponse
377
- command.params['merchantId'] = merchant_id unless merchant_id.nil?
378
- command.query['createdEndDate'] = created_end_date unless created_end_date.nil?
379
- command.query['createdStartDate'] = created_start_date unless created_start_date.nil?
380
- command.query['maxResults'] = max_results unless max_results.nil?
381
- command.query['orderBy'] = order_by unless order_by.nil?
382
- command.query['pageToken'] = page_token unless page_token.nil?
383
- command.query['fields'] = fields unless fields.nil?
384
- command.query['quotaUser'] = quota_user unless quota_user.nil?
385
- command.query['userIp'] = user_ip unless user_ip.nil?
386
- execute_or_queue_command(command, &block)
387
- end
388
-
389
- # Marks an order as acknowledged.
390
- # @param [Fixnum] merchant_id
391
- # The ID of the account that manages the order. This cannot be a multi-client
392
- # account.
393
- # @param [String] order_id
394
- # The ID of the order.
395
- # @param [Google::Apis::ContentV2sandbox::OrdersAcknowledgeRequest] orders_acknowledge_request_object
396
- # @param [String] fields
397
- # Selector specifying which fields to include in a partial response.
398
- # @param [String] quota_user
399
- # An opaque string that represents a user for quota purposes. Must not exceed 40
400
- # characters.
401
- # @param [String] user_ip
402
- # Deprecated. Please use quotaUser instead.
403
- # @param [Google::Apis::RequestOptions] options
404
- # Request-specific options
405
- #
406
- # @yield [result, err] Result & error if block supplied
407
- # @yieldparam result [Google::Apis::ContentV2sandbox::OrdersAcknowledgeResponse] parsed result object
408
- # @yieldparam err [StandardError] error object if request failed
409
- #
410
- # @return [Google::Apis::ContentV2sandbox::OrdersAcknowledgeResponse]
411
- #
412
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
413
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
414
- # @raise [Google::Apis::AuthorizationError] Authorization is required
415
- def acknowledge_order(merchant_id, order_id, orders_acknowledge_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
416
- command = make_simple_command(:post, '{merchantId}/orders/{orderId}/acknowledge', options)
417
- command.request_representation = Google::Apis::ContentV2sandbox::OrdersAcknowledgeRequest::Representation
418
- command.request_object = orders_acknowledge_request_object
419
- command.response_representation = Google::Apis::ContentV2sandbox::OrdersAcknowledgeResponse::Representation
420
- command.response_class = Google::Apis::ContentV2sandbox::OrdersAcknowledgeResponse
421
- command.params['merchantId'] = merchant_id unless merchant_id.nil?
422
- command.params['orderId'] = order_id unless order_id.nil?
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
- # Sandbox only. Moves a test order from state "inProgress" to state "
430
- # pendingShipment".
431
- # @param [Fixnum] merchant_id
432
- # The ID of the account that manages the order. This cannot be a multi-client
433
- # account.
434
- # @param [String] order_id
435
- # The ID of the test order to modify.
436
- # @param [String] fields
437
- # Selector specifying which fields to include in a partial response.
438
- # @param [String] quota_user
439
- # An opaque string that represents a user for quota purposes. Must not exceed 40
440
- # characters.
441
- # @param [String] user_ip
442
- # Deprecated. Please use quotaUser instead.
443
- # @param [Google::Apis::RequestOptions] options
444
- # Request-specific options
445
- #
446
- # @yield [result, err] Result & error if block supplied
447
- # @yieldparam result [Google::Apis::ContentV2sandbox::OrdersAdvanceTestOrderResponse] parsed result object
448
- # @yieldparam err [StandardError] error object if request failed
449
- #
450
- # @return [Google::Apis::ContentV2sandbox::OrdersAdvanceTestOrderResponse]
451
- #
452
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
453
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
454
- # @raise [Google::Apis::AuthorizationError] Authorization is required
455
- def advancetestorder_order(merchant_id, order_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
456
- command = make_simple_command(:post, '{merchantId}/testorders/{orderId}/advance', options)
457
- command.response_representation = Google::Apis::ContentV2sandbox::OrdersAdvanceTestOrderResponse::Representation
458
- command.response_class = Google::Apis::ContentV2sandbox::OrdersAdvanceTestOrderResponse
459
- command.params['merchantId'] = merchant_id unless merchant_id.nil?
460
- command.params['orderId'] = order_id unless order_id.nil?
461
- command.query['fields'] = fields unless fields.nil?
462
- command.query['quotaUser'] = quota_user unless quota_user.nil?
463
- command.query['userIp'] = user_ip unless user_ip.nil?
464
- execute_or_queue_command(command, &block)
465
- end
466
-
467
- # Cancels all line items in an order, making a full refund.
468
- # @param [Fixnum] merchant_id
469
- # The ID of the account that manages the order. This cannot be a multi-client
470
- # account.
471
- # @param [String] order_id
472
- # The ID of the order to cancel.
473
- # @param [Google::Apis::ContentV2sandbox::OrdersCancelRequest] orders_cancel_request_object
474
- # @param [String] fields
475
- # Selector specifying which fields to include in a partial response.
476
- # @param [String] quota_user
477
- # An opaque string that represents a user for quota purposes. Must not exceed 40
478
- # characters.
479
- # @param [String] user_ip
480
- # Deprecated. Please use quotaUser instead.
481
- # @param [Google::Apis::RequestOptions] options
482
- # Request-specific options
483
- #
484
- # @yield [result, err] Result & error if block supplied
485
- # @yieldparam result [Google::Apis::ContentV2sandbox::OrdersCancelResponse] parsed result object
486
- # @yieldparam err [StandardError] error object if request failed
487
- #
488
- # @return [Google::Apis::ContentV2sandbox::OrdersCancelResponse]
489
- #
490
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
491
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
492
- # @raise [Google::Apis::AuthorizationError] Authorization is required
493
- def cancel_order(merchant_id, order_id, orders_cancel_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
494
- command = make_simple_command(:post, '{merchantId}/orders/{orderId}/cancel', options)
495
- command.request_representation = Google::Apis::ContentV2sandbox::OrdersCancelRequest::Representation
496
- command.request_object = orders_cancel_request_object
497
- command.response_representation = Google::Apis::ContentV2sandbox::OrdersCancelResponse::Representation
498
- command.response_class = Google::Apis::ContentV2sandbox::OrdersCancelResponse
499
- command.params['merchantId'] = merchant_id unless merchant_id.nil?
500
- command.params['orderId'] = order_id unless order_id.nil?
501
- command.query['fields'] = fields unless fields.nil?
502
- command.query['quotaUser'] = quota_user unless quota_user.nil?
503
- command.query['userIp'] = user_ip unless user_ip.nil?
504
- execute_or_queue_command(command, &block)
505
- end
506
-
507
- # Cancels a line item, making a full refund.
508
- # @param [Fixnum] merchant_id
509
- # The ID of the account that manages the order. This cannot be a multi-client
510
- # account.
511
- # @param [String] order_id
512
- # The ID of the order.
513
- # @param [Google::Apis::ContentV2sandbox::OrdersCancelLineItemRequest] orders_cancel_line_item_request_object
514
- # @param [String] fields
515
- # Selector specifying which fields to include in a partial response.
516
- # @param [String] quota_user
517
- # An opaque string that represents a user for quota purposes. Must not exceed 40
518
- # characters.
519
- # @param [String] user_ip
520
- # Deprecated. Please use quotaUser instead.
521
- # @param [Google::Apis::RequestOptions] options
522
- # Request-specific options
523
- #
524
- # @yield [result, err] Result & error if block supplied
525
- # @yieldparam result [Google::Apis::ContentV2sandbox::OrdersCancelLineItemResponse] parsed result object
526
- # @yieldparam err [StandardError] error object if request failed
527
- #
528
- # @return [Google::Apis::ContentV2sandbox::OrdersCancelLineItemResponse]
529
- #
530
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
531
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
532
- # @raise [Google::Apis::AuthorizationError] Authorization is required
533
- 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)
534
- command = make_simple_command(:post, '{merchantId}/orders/{orderId}/cancelLineItem', options)
535
- command.request_representation = Google::Apis::ContentV2sandbox::OrdersCancelLineItemRequest::Representation
536
- command.request_object = orders_cancel_line_item_request_object
537
- command.response_representation = Google::Apis::ContentV2sandbox::OrdersCancelLineItemResponse::Representation
538
- command.response_class = Google::Apis::ContentV2sandbox::OrdersCancelLineItemResponse
539
- command.params['merchantId'] = merchant_id unless merchant_id.nil?
540
- command.params['orderId'] = order_id unless order_id.nil?
541
- command.query['fields'] = fields unless fields.nil?
542
- command.query['quotaUser'] = quota_user unless quota_user.nil?
543
- command.query['userIp'] = user_ip unless user_ip.nil?
544
- execute_or_queue_command(command, &block)
545
- end
546
-
547
- # Sandbox only. Cancels a test order for customer-initiated cancellation.
548
- # @param [Fixnum] merchant_id
549
- # The ID of the account that manages the order. This cannot be a multi-client
550
- # account.
551
- # @param [String] order_id
552
- # The ID of the test order to cancel.
553
- # @param [Google::Apis::ContentV2sandbox::OrdersCancelTestOrderByCustomerRequest] orders_cancel_test_order_by_customer_request_object
554
- # @param [String] fields
555
- # Selector specifying which fields to include in a partial response.
556
- # @param [String] quota_user
557
- # An opaque string that represents a user for quota purposes. Must not exceed 40
558
- # characters.
559
- # @param [String] user_ip
560
- # Deprecated. Please use quotaUser instead.
561
- # @param [Google::Apis::RequestOptions] options
562
- # Request-specific options
563
- #
564
- # @yield [result, err] Result & error if block supplied
565
- # @yieldparam result [Google::Apis::ContentV2sandbox::OrdersCancelTestOrderByCustomerResponse] parsed result object
566
- # @yieldparam err [StandardError] error object if request failed
567
- #
568
- # @return [Google::Apis::ContentV2sandbox::OrdersCancelTestOrderByCustomerResponse]
569
- #
570
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
571
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
572
- # @raise [Google::Apis::AuthorizationError] Authorization is required
573
- 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)
574
- command = make_simple_command(:post, '{merchantId}/testorders/{orderId}/cancelByCustomer', options)
575
- command.request_representation = Google::Apis::ContentV2sandbox::OrdersCancelTestOrderByCustomerRequest::Representation
576
- command.request_object = orders_cancel_test_order_by_customer_request_object
577
- command.response_representation = Google::Apis::ContentV2sandbox::OrdersCancelTestOrderByCustomerResponse::Representation
578
- command.response_class = Google::Apis::ContentV2sandbox::OrdersCancelTestOrderByCustomerResponse
579
- command.params['merchantId'] = merchant_id unless merchant_id.nil?
580
- command.params['orderId'] = order_id unless order_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
- # Sandbox only. Creates a test order.
588
- # @param [Fixnum] merchant_id
589
- # The ID of the account that should manage the order. This cannot be a multi-
590
- # client account.
591
- # @param [Google::Apis::ContentV2sandbox::OrdersCreateTestOrderRequest] orders_create_test_order_request_object
592
- # @param [String] fields
593
- # Selector specifying which fields to include in a partial response.
594
- # @param [String] quota_user
595
- # An opaque string that represents a user for quota purposes. Must not exceed 40
596
- # characters.
597
- # @param [String] user_ip
598
- # Deprecated. Please use quotaUser instead.
599
- # @param [Google::Apis::RequestOptions] options
600
- # Request-specific options
601
- #
602
- # @yield [result, err] Result & error if block supplied
603
- # @yieldparam result [Google::Apis::ContentV2sandbox::OrdersCreateTestOrderResponse] parsed result object
604
- # @yieldparam err [StandardError] error object if request failed
605
- #
606
- # @return [Google::Apis::ContentV2sandbox::OrdersCreateTestOrderResponse]
607
- #
608
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
609
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
610
- # @raise [Google::Apis::AuthorizationError] Authorization is required
611
- def createtestorder_order(merchant_id, orders_create_test_order_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
612
- command = make_simple_command(:post, '{merchantId}/testorders', options)
613
- command.request_representation = Google::Apis::ContentV2sandbox::OrdersCreateTestOrderRequest::Representation
614
- command.request_object = orders_create_test_order_request_object
615
- command.response_representation = Google::Apis::ContentV2sandbox::OrdersCreateTestOrderResponse::Representation
616
- command.response_class = Google::Apis::ContentV2sandbox::OrdersCreateTestOrderResponse
617
- command.params['merchantId'] = merchant_id unless merchant_id.nil?
618
- command.query['fields'] = fields unless fields.nil?
619
- command.query['quotaUser'] = quota_user unless quota_user.nil?
620
- command.query['userIp'] = user_ip unless user_ip.nil?
621
- execute_or_queue_command(command, &block)
622
- end
623
-
624
- # Sandbox only. Creates a test return.
625
- # @param [Fixnum] merchant_id
626
- # The ID of the account that manages the order. This cannot be a multi-client
627
- # account.
628
- # @param [String] order_id
629
- # The ID of the order.
630
- # @param [Google::Apis::ContentV2sandbox::OrdersCreateTestReturnRequest] orders_create_test_return_request_object
631
- # @param [String] fields
632
- # Selector specifying which fields to include in a partial response.
633
- # @param [String] quota_user
634
- # An opaque string that represents a user for quota purposes. Must not exceed 40
635
- # characters.
636
- # @param [String] user_ip
637
- # Deprecated. Please use quotaUser instead.
638
- # @param [Google::Apis::RequestOptions] options
639
- # Request-specific options
640
- #
641
- # @yield [result, err] Result & error if block supplied
642
- # @yieldparam result [Google::Apis::ContentV2sandbox::OrdersCreateTestReturnResponse] parsed result object
643
- # @yieldparam err [StandardError] error object if request failed
644
- #
645
- # @return [Google::Apis::ContentV2sandbox::OrdersCreateTestReturnResponse]
646
- #
647
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
648
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
649
- # @raise [Google::Apis::AuthorizationError] Authorization is required
650
- 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)
651
- command = make_simple_command(:post, '{merchantId}/orders/{orderId}/testreturn', options)
652
- command.request_representation = Google::Apis::ContentV2sandbox::OrdersCreateTestReturnRequest::Representation
653
- command.request_object = orders_create_test_return_request_object
654
- command.response_representation = Google::Apis::ContentV2sandbox::OrdersCreateTestReturnResponse::Representation
655
- command.response_class = Google::Apis::ContentV2sandbox::OrdersCreateTestReturnResponse
656
- command.params['merchantId'] = merchant_id unless merchant_id.nil?
657
- command.params['orderId'] = order_id unless order_id.nil?
658
- command.query['fields'] = fields unless fields.nil?
659
- command.query['quotaUser'] = quota_user unless quota_user.nil?
660
- command.query['userIp'] = user_ip unless user_ip.nil?
661
- execute_or_queue_command(command, &block)
662
- end
663
-
664
- # Retrieves or modifies multiple orders in a single request.
665
- # @param [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequest] orders_custom_batch_request_object
666
- # @param [String] fields
667
- # Selector specifying which fields to include in a partial response.
668
- # @param [String] quota_user
669
- # An opaque string that represents a user for quota purposes. Must not exceed 40
670
- # characters.
671
- # @param [String] user_ip
672
- # Deprecated. Please use quotaUser instead.
673
- # @param [Google::Apis::RequestOptions] options
674
- # Request-specific options
675
- #
676
- # @yield [result, err] Result & error if block supplied
677
- # @yieldparam result [Google::Apis::ContentV2sandbox::OrdersCustomBatchResponse] parsed result object
678
- # @yieldparam err [StandardError] error object if request failed
679
- #
680
- # @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchResponse]
681
- #
682
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
683
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
684
- # @raise [Google::Apis::AuthorizationError] Authorization is required
685
- def custombatch_order(orders_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
686
- command = make_simple_command(:post, 'orders/batch', options)
687
- command.request_representation = Google::Apis::ContentV2sandbox::OrdersCustomBatchRequest::Representation
688
- command.request_object = orders_custom_batch_request_object
689
- command.response_representation = Google::Apis::ContentV2sandbox::OrdersCustomBatchResponse::Representation
690
- command.response_class = Google::Apis::ContentV2sandbox::OrdersCustomBatchResponse
691
- command.query['fields'] = fields unless fields.nil?
692
- command.query['quotaUser'] = quota_user unless quota_user.nil?
693
- command.query['userIp'] = user_ip unless user_ip.nil?
694
- execute_or_queue_command(command, &block)
695
- end
696
-
697
- # Retrieves an order from your Merchant Center account.
698
- # @param [Fixnum] merchant_id
699
- # The ID of the account that manages the order. This cannot be a multi-client
700
- # account.
701
- # @param [String] order_id
702
- # The ID of the order.
703
- # @param [String] fields
704
- # Selector specifying which fields to include in a partial response.
705
- # @param [String] quota_user
706
- # An opaque string that represents a user for quota purposes. Must not exceed 40
707
- # characters.
708
- # @param [String] user_ip
709
- # Deprecated. Please use quotaUser instead.
710
- # @param [Google::Apis::RequestOptions] options
711
- # Request-specific options
712
- #
713
- # @yield [result, err] Result & error if block supplied
714
- # @yieldparam result [Google::Apis::ContentV2sandbox::Order] parsed result object
715
- # @yieldparam err [StandardError] error object if request failed
716
- #
717
- # @return [Google::Apis::ContentV2sandbox::Order]
718
- #
719
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
720
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
721
- # @raise [Google::Apis::AuthorizationError] Authorization is required
722
- def get_order(merchant_id, order_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
723
- command = make_simple_command(:get, '{merchantId}/orders/{orderId}', options)
724
- command.response_representation = Google::Apis::ContentV2sandbox::Order::Representation
725
- command.response_class = Google::Apis::ContentV2sandbox::Order
726
- command.params['merchantId'] = merchant_id unless merchant_id.nil?
727
- command.params['orderId'] = order_id unless order_id.nil?
728
- command.query['fields'] = fields unless fields.nil?
729
- command.query['quotaUser'] = quota_user unless quota_user.nil?
730
- command.query['userIp'] = user_ip unless user_ip.nil?
731
- execute_or_queue_command(command, &block)
732
- end
733
-
734
- # Retrieves an order using merchant order id.
735
- # @param [Fixnum] merchant_id
736
- # The ID of the account that manages the order. This cannot be a multi-client
737
- # account.
738
- # @param [String] merchant_order_id
739
- # The merchant order id to be looked for.
740
- # @param [String] fields
741
- # Selector specifying which fields to include in a partial response.
742
- # @param [String] quota_user
743
- # An opaque string that represents a user for quota purposes. Must not exceed 40
744
- # characters.
745
- # @param [String] user_ip
746
- # Deprecated. Please use quotaUser instead.
747
- # @param [Google::Apis::RequestOptions] options
748
- # Request-specific options
749
- #
750
- # @yield [result, err] Result & error if block supplied
751
- # @yieldparam result [Google::Apis::ContentV2sandbox::OrdersGetByMerchantOrderIdResponse] parsed result object
752
- # @yieldparam err [StandardError] error object if request failed
753
- #
754
- # @return [Google::Apis::ContentV2sandbox::OrdersGetByMerchantOrderIdResponse]
755
- #
756
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
757
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
758
- # @raise [Google::Apis::AuthorizationError] Authorization is required
759
- def getbymerchantorderid_order(merchant_id, merchant_order_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
760
- command = make_simple_command(:get, '{merchantId}/ordersbymerchantid/{merchantOrderId}', options)
761
- command.response_representation = Google::Apis::ContentV2sandbox::OrdersGetByMerchantOrderIdResponse::Representation
762
- command.response_class = Google::Apis::ContentV2sandbox::OrdersGetByMerchantOrderIdResponse
763
- command.params['merchantId'] = merchant_id unless merchant_id.nil?
764
- command.params['merchantOrderId'] = merchant_order_id unless merchant_order_id.nil?
765
- command.query['fields'] = fields unless fields.nil?
766
- command.query['quotaUser'] = quota_user unless quota_user.nil?
767
- command.query['userIp'] = user_ip unless user_ip.nil?
768
- execute_or_queue_command(command, &block)
769
- end
770
-
771
- # Sandbox only. Retrieves an order template that can be used to quickly create a
772
- # new order in sandbox.
773
- # @param [Fixnum] merchant_id
774
- # The ID of the account that should manage the order. This cannot be a multi-
775
- # client account.
776
- # @param [String] template_name
777
- # The name of the template to retrieve.
778
- # @param [String] country
779
- # The country of the template to retrieve. Defaults to US.
780
- # @param [String] fields
781
- # Selector specifying which fields to include in a partial response.
782
- # @param [String] quota_user
783
- # An opaque string that represents a user for quota purposes. Must not exceed 40
784
- # characters.
785
- # @param [String] user_ip
786
- # Deprecated. Please use quotaUser instead.
787
- # @param [Google::Apis::RequestOptions] options
788
- # Request-specific options
789
- #
790
- # @yield [result, err] Result & error if block supplied
791
- # @yieldparam result [Google::Apis::ContentV2sandbox::OrdersGetTestOrderTemplateResponse] parsed result object
792
- # @yieldparam err [StandardError] error object if request failed
793
- #
794
- # @return [Google::Apis::ContentV2sandbox::OrdersGetTestOrderTemplateResponse]
795
- #
796
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
797
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
798
- # @raise [Google::Apis::AuthorizationError] Authorization is required
799
- def gettestordertemplate_order(merchant_id, template_name, country: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
800
- command = make_simple_command(:get, '{merchantId}/testordertemplates/{templateName}', options)
801
- command.response_representation = Google::Apis::ContentV2sandbox::OrdersGetTestOrderTemplateResponse::Representation
802
- command.response_class = Google::Apis::ContentV2sandbox::OrdersGetTestOrderTemplateResponse
803
- command.params['merchantId'] = merchant_id unless merchant_id.nil?
804
- command.params['templateName'] = template_name unless template_name.nil?
805
- command.query['country'] = country unless country.nil?
806
- command.query['fields'] = fields unless fields.nil?
807
- command.query['quotaUser'] = quota_user unless quota_user.nil?
808
- command.query['userIp'] = user_ip unless user_ip.nil?
809
- execute_or_queue_command(command, &block)
810
- end
811
-
812
- # Notifies that item return and refund was handled directly by merchant outside
813
- # of Google payments processing (e.g. cash refund done in store).
814
- # @param [Fixnum] merchant_id
815
- # The ID of the account that manages the order. This cannot be a multi-client
816
- # account.
817
- # @param [String] order_id
818
- # The ID of the order.
819
- # @param [Google::Apis::ContentV2sandbox::OrdersInStoreRefundLineItemRequest] orders_in_store_refund_line_item_request_object
820
- # @param [String] fields
821
- # Selector specifying which fields to include in a partial response.
822
- # @param [String] quota_user
823
- # An opaque string that represents a user for quota purposes. Must not exceed 40
824
- # characters.
825
- # @param [String] user_ip
826
- # Deprecated. Please use quotaUser instead.
827
- # @param [Google::Apis::RequestOptions] options
828
- # Request-specific options
829
- #
830
- # @yield [result, err] Result & error if block supplied
831
- # @yieldparam result [Google::Apis::ContentV2sandbox::OrdersInStoreRefundLineItemResponse] parsed result object
832
- # @yieldparam err [StandardError] error object if request failed
833
- #
834
- # @return [Google::Apis::ContentV2sandbox::OrdersInStoreRefundLineItemResponse]
835
- #
836
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
837
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
838
- # @raise [Google::Apis::AuthorizationError] Authorization is required
839
- 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)
840
- command = make_simple_command(:post, '{merchantId}/orders/{orderId}/inStoreRefundLineItem', options)
841
- command.request_representation = Google::Apis::ContentV2sandbox::OrdersInStoreRefundLineItemRequest::Representation
842
- command.request_object = orders_in_store_refund_line_item_request_object
843
- command.response_representation = Google::Apis::ContentV2sandbox::OrdersInStoreRefundLineItemResponse::Representation
844
- command.response_class = Google::Apis::ContentV2sandbox::OrdersInStoreRefundLineItemResponse
845
- command.params['merchantId'] = merchant_id unless merchant_id.nil?
846
- command.params['orderId'] = order_id unless order_id.nil?
847
- command.query['fields'] = fields unless fields.nil?
848
- command.query['quotaUser'] = quota_user unless quota_user.nil?
849
- command.query['userIp'] = user_ip unless user_ip.nil?
850
- execute_or_queue_command(command, &block)
851
- end
852
-
853
- # Lists the orders in your Merchant Center account.
854
- # @param [Fixnum] merchant_id
855
- # The ID of the account that manages the order. This cannot be a multi-client
856
- # account.
857
- # @param [Boolean] acknowledged
858
- # Obtains orders that match the acknowledgement status. When set to true,
859
- # obtains orders that have been acknowledged. When false, obtains orders that
860
- # have not been acknowledged.
861
- # We recommend using this filter set to false, in conjunction with the
862
- # acknowledge call, such that only un-acknowledged orders are returned.
863
- # @param [Fixnum] max_results
864
- # The maximum number of orders to return in the response, used for paging. The
865
- # default value is 25 orders per page, and the maximum allowed value is 250
866
- # orders per page.
867
- # Known issue: All List calls will return all Orders without limit regardless of
868
- # the value of this field.
869
- # @param [String] order_by
870
- # The ordering of the returned list. The only supported value are placedDate
871
- # desc and placedDate asc for now, which returns orders sorted by placement date.
872
- # "placedDate desc" stands for listing orders by placement date, from oldest to
873
- # most recent. "placedDate asc" stands for listing orders by placement date,
874
- # from most recent to oldest. In future releases we'll support other sorting
875
- # criteria.
876
- # @param [String] page_token
877
- # The token returned by the previous request.
878
- # @param [String] placed_date_end
879
- # Obtains orders placed before this date (exclusively), in ISO 8601 format.
880
- # @param [String] placed_date_start
881
- # Obtains orders placed after this date (inclusively), in ISO 8601 format.
882
- # @param [Array<String>, String] statuses
883
- # Obtains orders that match any of the specified statuses. Multiple values can
884
- # be specified with comma separation. Additionally, please note that active is a
885
- # shortcut for pendingShipment and partiallyShipped, and completed is a shortcut
886
- # for shipped , partiallyDelivered, delivered, partiallyReturned, returned, and
887
- # canceled.
888
- # @param [String] fields
889
- # Selector specifying which fields to include in a partial response.
890
- # @param [String] quota_user
891
- # An opaque string that represents a user for quota purposes. Must not exceed 40
892
- # characters.
893
- # @param [String] user_ip
894
- # Deprecated. Please use quotaUser instead.
895
- # @param [Google::Apis::RequestOptions] options
896
- # Request-specific options
897
- #
898
- # @yield [result, err] Result & error if block supplied
899
- # @yieldparam result [Google::Apis::ContentV2sandbox::OrdersListResponse] parsed result object
900
- # @yieldparam err [StandardError] error object if request failed
901
- #
902
- # @return [Google::Apis::ContentV2sandbox::OrdersListResponse]
903
- #
904
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
905
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
906
- # @raise [Google::Apis::AuthorizationError] Authorization is required
907
- 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)
908
- command = make_simple_command(:get, '{merchantId}/orders', options)
909
- command.response_representation = Google::Apis::ContentV2sandbox::OrdersListResponse::Representation
910
- command.response_class = Google::Apis::ContentV2sandbox::OrdersListResponse
911
- command.params['merchantId'] = merchant_id unless merchant_id.nil?
912
- command.query['acknowledged'] = acknowledged unless acknowledged.nil?
913
- command.query['maxResults'] = max_results unless max_results.nil?
914
- command.query['orderBy'] = order_by unless order_by.nil?
915
- command.query['pageToken'] = page_token unless page_token.nil?
916
- command.query['placedDateEnd'] = placed_date_end unless placed_date_end.nil?
917
- command.query['placedDateStart'] = placed_date_start unless placed_date_start.nil?
918
- command.query['statuses'] = statuses unless statuses.nil?
919
- command.query['fields'] = fields unless fields.nil?
920
- command.query['quotaUser'] = quota_user unless quota_user.nil?
921
- command.query['userIp'] = user_ip unless user_ip.nil?
922
- execute_or_queue_command(command, &block)
923
- end
924
-
925
- # Deprecated, please use returnRefundLineItem instead.
926
- # @param [Fixnum] merchant_id
927
- # The ID of the account that manages the order. This cannot be a multi-client
928
- # account.
929
- # @param [String] order_id
930
- # The ID of the order to refund.
931
- # @param [Google::Apis::ContentV2sandbox::OrdersRefundRequest] orders_refund_request_object
932
- # @param [String] fields
933
- # Selector specifying which fields to include in a partial response.
934
- # @param [String] quota_user
935
- # An opaque string that represents a user for quota purposes. Must not exceed 40
936
- # characters.
937
- # @param [String] user_ip
938
- # Deprecated. Please use quotaUser instead.
939
- # @param [Google::Apis::RequestOptions] options
940
- # Request-specific options
941
- #
942
- # @yield [result, err] Result & error if block supplied
943
- # @yieldparam result [Google::Apis::ContentV2sandbox::OrdersRefundResponse] parsed result object
944
- # @yieldparam err [StandardError] error object if request failed
945
- #
946
- # @return [Google::Apis::ContentV2sandbox::OrdersRefundResponse]
947
- #
948
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
949
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
950
- # @raise [Google::Apis::AuthorizationError] Authorization is required
951
- def refund_order(merchant_id, order_id, orders_refund_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
952
- command = make_simple_command(:post, '{merchantId}/orders/{orderId}/refund', options)
953
- command.request_representation = Google::Apis::ContentV2sandbox::OrdersRefundRequest::Representation
954
- command.request_object = orders_refund_request_object
955
- command.response_representation = Google::Apis::ContentV2sandbox::OrdersRefundResponse::Representation
956
- command.response_class = Google::Apis::ContentV2sandbox::OrdersRefundResponse
957
- command.params['merchantId'] = merchant_id unless merchant_id.nil?
958
- command.params['orderId'] = order_id unless order_id.nil?
959
- command.query['fields'] = fields unless fields.nil?
960
- command.query['quotaUser'] = quota_user unless quota_user.nil?
961
- command.query['userIp'] = user_ip unless user_ip.nil?
962
- execute_or_queue_command(command, &block)
963
- end
964
-
965
- # Rejects return on an line item.
966
- # @param [Fixnum] merchant_id
967
- # The ID of the account that manages the order. This cannot be a multi-client
968
- # account.
969
- # @param [String] order_id
970
- # The ID of the order.
971
- # @param [Google::Apis::ContentV2sandbox::OrdersRejectReturnLineItemRequest] orders_reject_return_line_item_request_object
972
- # @param [String] fields
973
- # Selector specifying which fields to include in a partial response.
974
- # @param [String] quota_user
975
- # An opaque string that represents a user for quota purposes. Must not exceed 40
976
- # characters.
977
- # @param [String] user_ip
978
- # Deprecated. Please use quotaUser instead.
979
- # @param [Google::Apis::RequestOptions] options
980
- # Request-specific options
981
- #
982
- # @yield [result, err] Result & error if block supplied
983
- # @yieldparam result [Google::Apis::ContentV2sandbox::OrdersRejectReturnLineItemResponse] parsed result object
984
- # @yieldparam err [StandardError] error object if request failed
985
- #
986
- # @return [Google::Apis::ContentV2sandbox::OrdersRejectReturnLineItemResponse]
987
- #
988
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
989
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
990
- # @raise [Google::Apis::AuthorizationError] Authorization is required
991
- 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)
992
- command = make_simple_command(:post, '{merchantId}/orders/{orderId}/rejectReturnLineItem', options)
993
- command.request_representation = Google::Apis::ContentV2sandbox::OrdersRejectReturnLineItemRequest::Representation
994
- command.request_object = orders_reject_return_line_item_request_object
995
- command.response_representation = Google::Apis::ContentV2sandbox::OrdersRejectReturnLineItemResponse::Representation
996
- command.response_class = Google::Apis::ContentV2sandbox::OrdersRejectReturnLineItemResponse
997
- command.params['merchantId'] = merchant_id unless merchant_id.nil?
998
- command.params['orderId'] = order_id unless order_id.nil?
999
- command.query['fields'] = fields unless fields.nil?
1000
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1001
- command.query['userIp'] = user_ip unless user_ip.nil?
1002
- execute_or_queue_command(command, &block)
1003
- end
1004
-
1005
- # Returns a line item.
1006
- # @param [Fixnum] merchant_id
1007
- # The ID of the account that manages the order. This cannot be a multi-client
1008
- # account.
1009
- # @param [String] order_id
1010
- # The ID of the order.
1011
- # @param [Google::Apis::ContentV2sandbox::OrdersReturnLineItemRequest] orders_return_line_item_request_object
1012
- # @param [String] fields
1013
- # Selector specifying which fields to include in a partial response.
1014
- # @param [String] quota_user
1015
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1016
- # characters.
1017
- # @param [String] user_ip
1018
- # Deprecated. Please use quotaUser instead.
1019
- # @param [Google::Apis::RequestOptions] options
1020
- # Request-specific options
1021
- #
1022
- # @yield [result, err] Result & error if block supplied
1023
- # @yieldparam result [Google::Apis::ContentV2sandbox::OrdersReturnLineItemResponse] parsed result object
1024
- # @yieldparam err [StandardError] error object if request failed
1025
- #
1026
- # @return [Google::Apis::ContentV2sandbox::OrdersReturnLineItemResponse]
1027
- #
1028
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1029
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1030
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1031
- def returnlineitem_order(merchant_id, order_id, orders_return_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1032
- command = make_simple_command(:post, '{merchantId}/orders/{orderId}/returnLineItem', options)
1033
- command.request_representation = Google::Apis::ContentV2sandbox::OrdersReturnLineItemRequest::Representation
1034
- command.request_object = orders_return_line_item_request_object
1035
- command.response_representation = Google::Apis::ContentV2sandbox::OrdersReturnLineItemResponse::Representation
1036
- command.response_class = Google::Apis::ContentV2sandbox::OrdersReturnLineItemResponse
1037
- command.params['merchantId'] = merchant_id unless merchant_id.nil?
1038
- command.params['orderId'] = order_id unless order_id.nil?
1039
- command.query['fields'] = fields unless fields.nil?
1040
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1041
- command.query['userIp'] = user_ip unless user_ip.nil?
1042
- execute_or_queue_command(command, &block)
1043
- end
1044
-
1045
- # Returns and refunds a line item. Note that this method can only be called on
1046
- # fully shipped orders.
1047
- # @param [Fixnum] merchant_id
1048
- # The ID of the account that manages the order. This cannot be a multi-client
1049
- # account.
1050
- # @param [String] order_id
1051
- # The ID of the order.
1052
- # @param [Google::Apis::ContentV2sandbox::OrdersReturnRefundLineItemRequest] orders_return_refund_line_item_request_object
1053
- # @param [String] fields
1054
- # Selector specifying which fields to include in a partial response.
1055
- # @param [String] quota_user
1056
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1057
- # characters.
1058
- # @param [String] user_ip
1059
- # Deprecated. Please use quotaUser instead.
1060
- # @param [Google::Apis::RequestOptions] options
1061
- # Request-specific options
1062
- #
1063
- # @yield [result, err] Result & error if block supplied
1064
- # @yieldparam result [Google::Apis::ContentV2sandbox::OrdersReturnRefundLineItemResponse] parsed result object
1065
- # @yieldparam err [StandardError] error object if request failed
1066
- #
1067
- # @return [Google::Apis::ContentV2sandbox::OrdersReturnRefundLineItemResponse]
1068
- #
1069
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1070
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1071
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1072
- 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)
1073
- command = make_simple_command(:post, '{merchantId}/orders/{orderId}/returnRefundLineItem', options)
1074
- command.request_representation = Google::Apis::ContentV2sandbox::OrdersReturnRefundLineItemRequest::Representation
1075
- command.request_object = orders_return_refund_line_item_request_object
1076
- command.response_representation = Google::Apis::ContentV2sandbox::OrdersReturnRefundLineItemResponse::Representation
1077
- command.response_class = Google::Apis::ContentV2sandbox::OrdersReturnRefundLineItemResponse
1078
- command.params['merchantId'] = merchant_id unless merchant_id.nil?
1079
- command.params['orderId'] = order_id unless order_id.nil?
1080
- command.query['fields'] = fields unless fields.nil?
1081
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1082
- command.query['userIp'] = user_ip unless user_ip.nil?
1083
- execute_or_queue_command(command, &block)
1084
- end
1085
-
1086
- # Sets (overrides) merchant provided annotations on the line item.
1087
- # @param [Fixnum] merchant_id
1088
- # The ID of the account that manages the order. This cannot be a multi-client
1089
- # account.
1090
- # @param [String] order_id
1091
- # The ID of the order.
1092
- # @param [Google::Apis::ContentV2sandbox::OrdersSetLineItemMetadataRequest] orders_set_line_item_metadata_request_object
1093
- # @param [String] fields
1094
- # Selector specifying which fields to include in a partial response.
1095
- # @param [String] quota_user
1096
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1097
- # characters.
1098
- # @param [String] user_ip
1099
- # Deprecated. Please use quotaUser instead.
1100
- # @param [Google::Apis::RequestOptions] options
1101
- # Request-specific options
1102
- #
1103
- # @yield [result, err] Result & error if block supplied
1104
- # @yieldparam result [Google::Apis::ContentV2sandbox::OrdersSetLineItemMetadataResponse] parsed result object
1105
- # @yieldparam err [StandardError] error object if request failed
1106
- #
1107
- # @return [Google::Apis::ContentV2sandbox::OrdersSetLineItemMetadataResponse]
1108
- #
1109
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1110
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1111
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1112
- 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)
1113
- command = make_simple_command(:post, '{merchantId}/orders/{orderId}/setLineItemMetadata', options)
1114
- command.request_representation = Google::Apis::ContentV2sandbox::OrdersSetLineItemMetadataRequest::Representation
1115
- command.request_object = orders_set_line_item_metadata_request_object
1116
- command.response_representation = Google::Apis::ContentV2sandbox::OrdersSetLineItemMetadataResponse::Representation
1117
- command.response_class = Google::Apis::ContentV2sandbox::OrdersSetLineItemMetadataResponse
1118
- command.params['merchantId'] = merchant_id unless merchant_id.nil?
1119
- command.params['orderId'] = order_id unless order_id.nil?
1120
- command.query['fields'] = fields unless fields.nil?
1121
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1122
- command.query['userIp'] = user_ip unless user_ip.nil?
1123
- execute_or_queue_command(command, &block)
1124
- end
1125
-
1126
- # Marks line item(s) as shipped.
1127
- # @param [Fixnum] merchant_id
1128
- # The ID of the account that manages the order. This cannot be a multi-client
1129
- # account.
1130
- # @param [String] order_id
1131
- # The ID of the order.
1132
- # @param [Google::Apis::ContentV2sandbox::OrdersShipLineItemsRequest] orders_ship_line_items_request_object
1133
- # @param [String] fields
1134
- # Selector specifying which fields to include in a partial response.
1135
- # @param [String] quota_user
1136
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1137
- # characters.
1138
- # @param [String] user_ip
1139
- # Deprecated. Please use quotaUser instead.
1140
- # @param [Google::Apis::RequestOptions] options
1141
- # Request-specific options
1142
- #
1143
- # @yield [result, err] Result & error if block supplied
1144
- # @yieldparam result [Google::Apis::ContentV2sandbox::OrdersShipLineItemsResponse] parsed result object
1145
- # @yieldparam err [StandardError] error object if request failed
1146
- #
1147
- # @return [Google::Apis::ContentV2sandbox::OrdersShipLineItemsResponse]
1148
- #
1149
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1150
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1151
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1152
- 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)
1153
- command = make_simple_command(:post, '{merchantId}/orders/{orderId}/shipLineItems', options)
1154
- command.request_representation = Google::Apis::ContentV2sandbox::OrdersShipLineItemsRequest::Representation
1155
- command.request_object = orders_ship_line_items_request_object
1156
- command.response_representation = Google::Apis::ContentV2sandbox::OrdersShipLineItemsResponse::Representation
1157
- command.response_class = Google::Apis::ContentV2sandbox::OrdersShipLineItemsResponse
1158
- command.params['merchantId'] = merchant_id unless merchant_id.nil?
1159
- command.params['orderId'] = order_id unless order_id.nil?
1160
- command.query['fields'] = fields unless fields.nil?
1161
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1162
- command.query['userIp'] = user_ip unless user_ip.nil?
1163
- execute_or_queue_command(command, &block)
1164
- end
1165
-
1166
- # Updates ship by and delivery by dates for a line item.
1167
- # @param [Fixnum] merchant_id
1168
- # The ID of the account that manages the order. This cannot be a multi-client
1169
- # account.
1170
- # @param [String] order_id
1171
- # The ID of the order.
1172
- # @param [Google::Apis::ContentV2sandbox::OrdersUpdateLineItemShippingDetailsRequest] orders_update_line_item_shipping_details_request_object
1173
- # @param [String] fields
1174
- # Selector specifying which fields to include in a partial response.
1175
- # @param [String] quota_user
1176
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1177
- # characters.
1178
- # @param [String] user_ip
1179
- # Deprecated. Please use quotaUser instead.
1180
- # @param [Google::Apis::RequestOptions] options
1181
- # Request-specific options
1182
- #
1183
- # @yield [result, err] Result & error if block supplied
1184
- # @yieldparam result [Google::Apis::ContentV2sandbox::OrdersUpdateLineItemShippingDetailsResponse] parsed result object
1185
- # @yieldparam err [StandardError] error object if request failed
1186
- #
1187
- # @return [Google::Apis::ContentV2sandbox::OrdersUpdateLineItemShippingDetailsResponse]
1188
- #
1189
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1190
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1191
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1192
- 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)
1193
- command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateLineItemShippingDetails', options)
1194
- command.request_representation = Google::Apis::ContentV2sandbox::OrdersUpdateLineItemShippingDetailsRequest::Representation
1195
- command.request_object = orders_update_line_item_shipping_details_request_object
1196
- command.response_representation = Google::Apis::ContentV2sandbox::OrdersUpdateLineItemShippingDetailsResponse::Representation
1197
- command.response_class = Google::Apis::ContentV2sandbox::OrdersUpdateLineItemShippingDetailsResponse
1198
- command.params['merchantId'] = merchant_id unless merchant_id.nil?
1199
- command.params['orderId'] = order_id unless order_id.nil?
1200
- command.query['fields'] = fields unless fields.nil?
1201
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1202
- command.query['userIp'] = user_ip unless user_ip.nil?
1203
- execute_or_queue_command(command, &block)
1204
- end
1205
-
1206
- # Updates the merchant order ID for a given order.
1207
- # @param [Fixnum] merchant_id
1208
- # The ID of the account that manages the order. This cannot be a multi-client
1209
- # account.
1210
- # @param [String] order_id
1211
- # The ID of the order.
1212
- # @param [Google::Apis::ContentV2sandbox::OrdersUpdateMerchantOrderIdRequest] orders_update_merchant_order_id_request_object
1213
- # @param [String] fields
1214
- # Selector specifying which fields to include in a partial response.
1215
- # @param [String] quota_user
1216
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1217
- # characters.
1218
- # @param [String] user_ip
1219
- # Deprecated. Please use quotaUser instead.
1220
- # @param [Google::Apis::RequestOptions] options
1221
- # Request-specific options
1222
- #
1223
- # @yield [result, err] Result & error if block supplied
1224
- # @yieldparam result [Google::Apis::ContentV2sandbox::OrdersUpdateMerchantOrderIdResponse] parsed result object
1225
- # @yieldparam err [StandardError] error object if request failed
1226
- #
1227
- # @return [Google::Apis::ContentV2sandbox::OrdersUpdateMerchantOrderIdResponse]
1228
- #
1229
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1230
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1231
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1232
- 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)
1233
- command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateMerchantOrderId', options)
1234
- command.request_representation = Google::Apis::ContentV2sandbox::OrdersUpdateMerchantOrderIdRequest::Representation
1235
- command.request_object = orders_update_merchant_order_id_request_object
1236
- command.response_representation = Google::Apis::ContentV2sandbox::OrdersUpdateMerchantOrderIdResponse::Representation
1237
- command.response_class = Google::Apis::ContentV2sandbox::OrdersUpdateMerchantOrderIdResponse
1238
- command.params['merchantId'] = merchant_id unless merchant_id.nil?
1239
- command.params['orderId'] = order_id unless order_id.nil?
1240
- command.query['fields'] = fields unless fields.nil?
1241
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1242
- command.query['userIp'] = user_ip unless user_ip.nil?
1243
- execute_or_queue_command(command, &block)
1244
- end
1245
-
1246
- # Updates a shipment's status, carrier, and/or tracking ID.
1247
- # @param [Fixnum] merchant_id
1248
- # The ID of the account that manages the order. This cannot be a multi-client
1249
- # account.
1250
- # @param [String] order_id
1251
- # The ID of the order.
1252
- # @param [Google::Apis::ContentV2sandbox::OrdersUpdateShipmentRequest] orders_update_shipment_request_object
1253
- # @param [String] fields
1254
- # Selector specifying which fields to include in a partial response.
1255
- # @param [String] quota_user
1256
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1257
- # characters.
1258
- # @param [String] user_ip
1259
- # Deprecated. Please use quotaUser instead.
1260
- # @param [Google::Apis::RequestOptions] options
1261
- # Request-specific options
1262
- #
1263
- # @yield [result, err] Result & error if block supplied
1264
- # @yieldparam result [Google::Apis::ContentV2sandbox::OrdersUpdateShipmentResponse] parsed result object
1265
- # @yieldparam err [StandardError] error object if request failed
1266
- #
1267
- # @return [Google::Apis::ContentV2sandbox::OrdersUpdateShipmentResponse]
1268
- #
1269
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1270
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1271
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1272
- def updateshipment_order(merchant_id, order_id, orders_update_shipment_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1273
- command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateShipment', options)
1274
- command.request_representation = Google::Apis::ContentV2sandbox::OrdersUpdateShipmentRequest::Representation
1275
- command.request_object = orders_update_shipment_request_object
1276
- command.response_representation = Google::Apis::ContentV2sandbox::OrdersUpdateShipmentResponse::Representation
1277
- command.response_class = Google::Apis::ContentV2sandbox::OrdersUpdateShipmentResponse
1278
- command.params['merchantId'] = merchant_id unless merchant_id.nil?
1279
- command.params['orderId'] = order_id unless order_id.nil?
1280
- command.query['fields'] = fields unless fields.nil?
1281
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1282
- command.query['userIp'] = user_ip unless user_ip.nil?
1283
- execute_or_queue_command(command, &block)
1284
- end
1285
-
1286
- protected
1287
-
1288
- def apply_command_defaults(command)
1289
- command.query['key'] = key unless key.nil?
1290
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1291
- command.query['userIp'] = user_ip unless user_ip.nil?
1292
- end
1293
- end
1294
- end
1295
- end
1296
- end