google-apis-walletobjects_v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,3472 @@
1
+ # Copyright 2020 Google LLC
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 WalletobjectsV1
23
+ # Google Wallet API
24
+ #
25
+ # API for issuers to save and manage Google Wallet Objects.
26
+ #
27
+ # @example
28
+ # require 'google/apis/walletobjects_v1'
29
+ #
30
+ # Walletobjects = Google::Apis::WalletobjectsV1 # Alias the module
31
+ # service = Walletobjects::WalletobjectsService.new
32
+ #
33
+ # @see https://developers.google.com/pay/passes
34
+ class WalletobjectsService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ attr_accessor :quota_user
44
+
45
+ def initialize
46
+ super('https://walletobjects.googleapis.com/', '',
47
+ client_name: 'google-apis-walletobjects_v1',
48
+ client_version: Google::Apis::WalletobjectsV1::GEM_VERSION)
49
+ @batch_path = 'batch'
50
+ end
51
+
52
+ # Adds a message to the event ticket class referenced by the given class ID.
53
+ # @param [String] resource_id
54
+ # The unique identifier for a class. This ID must be unique across all classes
55
+ # from an issuer. This value should follow the format issuer ID. identifier
56
+ # where the former is issued by Google and latter is chosen by you. Your unique
57
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
58
+ # @param [Google::Apis::WalletobjectsV1::AddMessageRequest] add_message_request_object
59
+ # @param [String] fields
60
+ # Selector specifying which fields to include in a partial response.
61
+ # @param [String] quota_user
62
+ # Available to use for quota purposes for server-side applications. Can be any
63
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
64
+ # @param [Google::Apis::RequestOptions] options
65
+ # Request-specific options
66
+ #
67
+ # @yield [result, err] Result & error if block supplied
68
+ # @yieldparam result [Google::Apis::WalletobjectsV1::EventTicketClassAddMessageResponse] parsed result object
69
+ # @yieldparam err [StandardError] error object if request failed
70
+ #
71
+ # @return [Google::Apis::WalletobjectsV1::EventTicketClassAddMessageResponse]
72
+ #
73
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
74
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
75
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
76
+ def addmessage_eventticketclass(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
77
+ command = make_simple_command(:post, 'walletobjects/v1/eventTicketClass/{resourceId}/addMessage', options)
78
+ command.request_representation = Google::Apis::WalletobjectsV1::AddMessageRequest::Representation
79
+ command.request_object = add_message_request_object
80
+ command.response_representation = Google::Apis::WalletobjectsV1::EventTicketClassAddMessageResponse::Representation
81
+ command.response_class = Google::Apis::WalletobjectsV1::EventTicketClassAddMessageResponse
82
+ command.params['resourceId'] = resource_id unless resource_id.nil?
83
+ command.query['fields'] = fields unless fields.nil?
84
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
85
+ execute_or_queue_command(command, &block)
86
+ end
87
+
88
+ # Returns the event ticket class with the given class ID.
89
+ # @param [String] resource_id
90
+ # The unique identifier for a class. This ID must be unique across all classes
91
+ # from an issuer. This value should follow the format issuer ID. identifier
92
+ # where the former is issued by Google and latter is chosen by you. Your unique
93
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
94
+ # @param [String] fields
95
+ # Selector specifying which fields to include in a partial response.
96
+ # @param [String] quota_user
97
+ # Available to use for quota purposes for server-side applications. Can be any
98
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
99
+ # @param [Google::Apis::RequestOptions] options
100
+ # Request-specific options
101
+ #
102
+ # @yield [result, err] Result & error if block supplied
103
+ # @yieldparam result [Google::Apis::WalletobjectsV1::EventTicketClass] parsed result object
104
+ # @yieldparam err [StandardError] error object if request failed
105
+ #
106
+ # @return [Google::Apis::WalletobjectsV1::EventTicketClass]
107
+ #
108
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
109
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
110
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
111
+ def get_eventticketclass(resource_id, fields: nil, quota_user: nil, options: nil, &block)
112
+ command = make_simple_command(:get, 'walletobjects/v1/eventTicketClass/{resourceId}', options)
113
+ command.response_representation = Google::Apis::WalletobjectsV1::EventTicketClass::Representation
114
+ command.response_class = Google::Apis::WalletobjectsV1::EventTicketClass
115
+ command.params['resourceId'] = resource_id unless resource_id.nil?
116
+ command.query['fields'] = fields unless fields.nil?
117
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
118
+ execute_or_queue_command(command, &block)
119
+ end
120
+
121
+ # Inserts an event ticket class with the given ID and properties.
122
+ # @param [Google::Apis::WalletobjectsV1::EventTicketClass] event_ticket_class_object
123
+ # @param [String] fields
124
+ # Selector specifying which fields to include in a partial response.
125
+ # @param [String] quota_user
126
+ # Available to use for quota purposes for server-side applications. Can be any
127
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
128
+ # @param [Google::Apis::RequestOptions] options
129
+ # Request-specific options
130
+ #
131
+ # @yield [result, err] Result & error if block supplied
132
+ # @yieldparam result [Google::Apis::WalletobjectsV1::EventTicketClass] parsed result object
133
+ # @yieldparam err [StandardError] error object if request failed
134
+ #
135
+ # @return [Google::Apis::WalletobjectsV1::EventTicketClass]
136
+ #
137
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
138
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
139
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
140
+ def insert_eventticketclass(event_ticket_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
141
+ command = make_simple_command(:post, 'walletobjects/v1/eventTicketClass', options)
142
+ command.request_representation = Google::Apis::WalletobjectsV1::EventTicketClass::Representation
143
+ command.request_object = event_ticket_class_object
144
+ command.response_representation = Google::Apis::WalletobjectsV1::EventTicketClass::Representation
145
+ command.response_class = Google::Apis::WalletobjectsV1::EventTicketClass
146
+ command.query['fields'] = fields unless fields.nil?
147
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
148
+ execute_or_queue_command(command, &block)
149
+ end
150
+
151
+ # Returns a list of all event ticket classes for a given issuer ID.
152
+ # @param [Fixnum] issuer_id
153
+ # The ID of the issuer authorized to list classes.
154
+ # @param [Fixnum] max_results
155
+ # Identifies the max number of results returned by a list. All results are
156
+ # returned if `maxResults` isn't defined.
157
+ # @param [String] token
158
+ # Used to get the next set of results if `maxResults` is specified, but more
159
+ # than `maxResults` classes are available in a list. For example, if you have a
160
+ # list of 200 classes and you call list with `maxResults` set to 20, list will
161
+ # return the first 20 classes and a token. Call list again with `maxResults` set
162
+ # to 20 and the token to get the next 20 classes.
163
+ # @param [String] fields
164
+ # Selector specifying which fields to include in a partial response.
165
+ # @param [String] quota_user
166
+ # Available to use for quota purposes for server-side applications. Can be any
167
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
168
+ # @param [Google::Apis::RequestOptions] options
169
+ # Request-specific options
170
+ #
171
+ # @yield [result, err] Result & error if block supplied
172
+ # @yieldparam result [Google::Apis::WalletobjectsV1::EventTicketClassListResponse] parsed result object
173
+ # @yieldparam err [StandardError] error object if request failed
174
+ #
175
+ # @return [Google::Apis::WalletobjectsV1::EventTicketClassListResponse]
176
+ #
177
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
178
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
179
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
180
+ def list_eventticketclasses(issuer_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil, &block)
181
+ command = make_simple_command(:get, 'walletobjects/v1/eventTicketClass', options)
182
+ command.response_representation = Google::Apis::WalletobjectsV1::EventTicketClassListResponse::Representation
183
+ command.response_class = Google::Apis::WalletobjectsV1::EventTicketClassListResponse
184
+ command.query['issuerId'] = issuer_id unless issuer_id.nil?
185
+ command.query['maxResults'] = max_results unless max_results.nil?
186
+ command.query['token'] = token unless token.nil?
187
+ command.query['fields'] = fields unless fields.nil?
188
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
189
+ execute_or_queue_command(command, &block)
190
+ end
191
+
192
+ # Updates the event ticket class referenced by the given class ID. This method
193
+ # supports patch semantics.
194
+ # @param [String] resource_id
195
+ # The unique identifier for a class. This ID must be unique across all classes
196
+ # from an issuer. This value should follow the format issuer ID. identifier
197
+ # where the former is issued by Google and latter is chosen by you. Your unique
198
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
199
+ # @param [Google::Apis::WalletobjectsV1::EventTicketClass] event_ticket_class_object
200
+ # @param [String] fields
201
+ # Selector specifying which fields to include in a partial response.
202
+ # @param [String] quota_user
203
+ # Available to use for quota purposes for server-side applications. Can be any
204
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
205
+ # @param [Google::Apis::RequestOptions] options
206
+ # Request-specific options
207
+ #
208
+ # @yield [result, err] Result & error if block supplied
209
+ # @yieldparam result [Google::Apis::WalletobjectsV1::EventTicketClass] parsed result object
210
+ # @yieldparam err [StandardError] error object if request failed
211
+ #
212
+ # @return [Google::Apis::WalletobjectsV1::EventTicketClass]
213
+ #
214
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
215
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
216
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
217
+ def patch_eventticketclass(resource_id, event_ticket_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
218
+ command = make_simple_command(:patch, 'walletobjects/v1/eventTicketClass/{resourceId}', options)
219
+ command.request_representation = Google::Apis::WalletobjectsV1::EventTicketClass::Representation
220
+ command.request_object = event_ticket_class_object
221
+ command.response_representation = Google::Apis::WalletobjectsV1::EventTicketClass::Representation
222
+ command.response_class = Google::Apis::WalletobjectsV1::EventTicketClass
223
+ command.params['resourceId'] = resource_id unless resource_id.nil?
224
+ command.query['fields'] = fields unless fields.nil?
225
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
226
+ execute_or_queue_command(command, &block)
227
+ end
228
+
229
+ # Updates the event ticket class referenced by the given class ID.
230
+ # @param [String] resource_id
231
+ # The unique identifier for a class. This ID must be unique across all classes
232
+ # from an issuer. This value should follow the format issuer ID. identifier
233
+ # where the former is issued by Google and latter is chosen by you. Your unique
234
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
235
+ # @param [Google::Apis::WalletobjectsV1::EventTicketClass] event_ticket_class_object
236
+ # @param [String] fields
237
+ # Selector specifying which fields to include in a partial response.
238
+ # @param [String] quota_user
239
+ # Available to use for quota purposes for server-side applications. Can be any
240
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
241
+ # @param [Google::Apis::RequestOptions] options
242
+ # Request-specific options
243
+ #
244
+ # @yield [result, err] Result & error if block supplied
245
+ # @yieldparam result [Google::Apis::WalletobjectsV1::EventTicketClass] parsed result object
246
+ # @yieldparam err [StandardError] error object if request failed
247
+ #
248
+ # @return [Google::Apis::WalletobjectsV1::EventTicketClass]
249
+ #
250
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
251
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
252
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
253
+ def update_eventticketclass(resource_id, event_ticket_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
254
+ command = make_simple_command(:put, 'walletobjects/v1/eventTicketClass/{resourceId}', options)
255
+ command.request_representation = Google::Apis::WalletobjectsV1::EventTicketClass::Representation
256
+ command.request_object = event_ticket_class_object
257
+ command.response_representation = Google::Apis::WalletobjectsV1::EventTicketClass::Representation
258
+ command.response_class = Google::Apis::WalletobjectsV1::EventTicketClass
259
+ command.params['resourceId'] = resource_id unless resource_id.nil?
260
+ command.query['fields'] = fields unless fields.nil?
261
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
262
+ execute_or_queue_command(command, &block)
263
+ end
264
+
265
+ # Adds a message to the event ticket object referenced by the given object ID.
266
+ # @param [String] resource_id
267
+ # The unique identifier for an object. This ID must be unique across all objects
268
+ # from an issuer. This value should follow the format issuer ID. identifier
269
+ # where the former is issued by Google and latter is chosen by you. Your unique
270
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
271
+ # @param [Google::Apis::WalletobjectsV1::AddMessageRequest] add_message_request_object
272
+ # @param [String] fields
273
+ # Selector specifying which fields to include in a partial response.
274
+ # @param [String] quota_user
275
+ # Available to use for quota purposes for server-side applications. Can be any
276
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
277
+ # @param [Google::Apis::RequestOptions] options
278
+ # Request-specific options
279
+ #
280
+ # @yield [result, err] Result & error if block supplied
281
+ # @yieldparam result [Google::Apis::WalletobjectsV1::EventTicketObjectAddMessageResponse] parsed result object
282
+ # @yieldparam err [StandardError] error object if request failed
283
+ #
284
+ # @return [Google::Apis::WalletobjectsV1::EventTicketObjectAddMessageResponse]
285
+ #
286
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
287
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
288
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
289
+ def addmessage_eventticketobject(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
290
+ command = make_simple_command(:post, 'walletobjects/v1/eventTicketObject/{resourceId}/addMessage', options)
291
+ command.request_representation = Google::Apis::WalletobjectsV1::AddMessageRequest::Representation
292
+ command.request_object = add_message_request_object
293
+ command.response_representation = Google::Apis::WalletobjectsV1::EventTicketObjectAddMessageResponse::Representation
294
+ command.response_class = Google::Apis::WalletobjectsV1::EventTicketObjectAddMessageResponse
295
+ command.params['resourceId'] = resource_id unless resource_id.nil?
296
+ command.query['fields'] = fields unless fields.nil?
297
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
298
+ execute_or_queue_command(command, &block)
299
+ end
300
+
301
+ # Returns the event ticket object with the given object ID.
302
+ # @param [String] resource_id
303
+ # The unique identifier for an object. This ID must be unique across all objects
304
+ # from an issuer. This value should follow the format issuer ID. identifier
305
+ # where the former is issued by Google and latter is chosen by you. Your unique
306
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
307
+ # @param [String] fields
308
+ # Selector specifying which fields to include in a partial response.
309
+ # @param [String] quota_user
310
+ # Available to use for quota purposes for server-side applications. Can be any
311
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
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::WalletobjectsV1::EventTicketObject] parsed result object
317
+ # @yieldparam err [StandardError] error object if request failed
318
+ #
319
+ # @return [Google::Apis::WalletobjectsV1::EventTicketObject]
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_eventticketobject(resource_id, fields: nil, quota_user: nil, options: nil, &block)
325
+ command = make_simple_command(:get, 'walletobjects/v1/eventTicketObject/{resourceId}', options)
326
+ command.response_representation = Google::Apis::WalletobjectsV1::EventTicketObject::Representation
327
+ command.response_class = Google::Apis::WalletobjectsV1::EventTicketObject
328
+ command.params['resourceId'] = resource_id unless resource_id.nil?
329
+ command.query['fields'] = fields unless fields.nil?
330
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
331
+ execute_or_queue_command(command, &block)
332
+ end
333
+
334
+ # Inserts an event ticket object with the given ID and properties.
335
+ # @param [Google::Apis::WalletobjectsV1::EventTicketObject] event_ticket_object_object
336
+ # @param [String] fields
337
+ # Selector specifying which fields to include in a partial response.
338
+ # @param [String] quota_user
339
+ # Available to use for quota purposes for server-side applications. Can be any
340
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
341
+ # @param [Google::Apis::RequestOptions] options
342
+ # Request-specific options
343
+ #
344
+ # @yield [result, err] Result & error if block supplied
345
+ # @yieldparam result [Google::Apis::WalletobjectsV1::EventTicketObject] parsed result object
346
+ # @yieldparam err [StandardError] error object if request failed
347
+ #
348
+ # @return [Google::Apis::WalletobjectsV1::EventTicketObject]
349
+ #
350
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
351
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
352
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
353
+ def insert_eventticketobject(event_ticket_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
354
+ command = make_simple_command(:post, 'walletobjects/v1/eventTicketObject', options)
355
+ command.request_representation = Google::Apis::WalletobjectsV1::EventTicketObject::Representation
356
+ command.request_object = event_ticket_object_object
357
+ command.response_representation = Google::Apis::WalletobjectsV1::EventTicketObject::Representation
358
+ command.response_class = Google::Apis::WalletobjectsV1::EventTicketObject
359
+ command.query['fields'] = fields unless fields.nil?
360
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
361
+ execute_or_queue_command(command, &block)
362
+ end
363
+
364
+ # Returns a list of all event ticket objects for a given issuer ID.
365
+ # @param [String] class_id
366
+ # The ID of the class whose objects will be listed.
367
+ # @param [Fixnum] max_results
368
+ # Identifies the max number of results returned by a list. All results are
369
+ # returned if `maxResults` isn't defined.
370
+ # @param [String] token
371
+ # Used to get the next set of results if `maxResults` is specified, but more
372
+ # than `maxResults` objects are available in a list. For example, if you have a
373
+ # list of 200 objects and you call list with `maxResults` set to 20, list will
374
+ # return the first 20 objects and a token. Call list again with `maxResults` set
375
+ # to 20 and the token to get the next 20 objects.
376
+ # @param [String] fields
377
+ # Selector specifying which fields to include in a partial response.
378
+ # @param [String] quota_user
379
+ # Available to use for quota purposes for server-side applications. Can be any
380
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
381
+ # @param [Google::Apis::RequestOptions] options
382
+ # Request-specific options
383
+ #
384
+ # @yield [result, err] Result & error if block supplied
385
+ # @yieldparam result [Google::Apis::WalletobjectsV1::EventTicketObjectListResponse] parsed result object
386
+ # @yieldparam err [StandardError] error object if request failed
387
+ #
388
+ # @return [Google::Apis::WalletobjectsV1::EventTicketObjectListResponse]
389
+ #
390
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
391
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
392
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
393
+ def list_eventticketobjects(class_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil, &block)
394
+ command = make_simple_command(:get, 'walletobjects/v1/eventTicketObject', options)
395
+ command.response_representation = Google::Apis::WalletobjectsV1::EventTicketObjectListResponse::Representation
396
+ command.response_class = Google::Apis::WalletobjectsV1::EventTicketObjectListResponse
397
+ command.query['classId'] = class_id unless class_id.nil?
398
+ command.query['maxResults'] = max_results unless max_results.nil?
399
+ command.query['token'] = token unless token.nil?
400
+ command.query['fields'] = fields unless fields.nil?
401
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
402
+ execute_or_queue_command(command, &block)
403
+ end
404
+
405
+ # Modifies linked offer objects for the event ticket object with the given ID.
406
+ # @param [String] resource_id
407
+ # The unique identifier for an object. This ID must be unique across all objects
408
+ # from an issuer. This value should follow the format issuer ID. identifier
409
+ # where the former is issued by Google and latter is chosen by you. Your unique
410
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
411
+ # @param [Google::Apis::WalletobjectsV1::ModifyLinkedOfferObjectsRequest] modify_linked_offer_objects_request_object
412
+ # @param [String] fields
413
+ # Selector specifying which fields to include in a partial response.
414
+ # @param [String] quota_user
415
+ # Available to use for quota purposes for server-side applications. Can be any
416
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
417
+ # @param [Google::Apis::RequestOptions] options
418
+ # Request-specific options
419
+ #
420
+ # @yield [result, err] Result & error if block supplied
421
+ # @yieldparam result [Google::Apis::WalletobjectsV1::EventTicketObject] parsed result object
422
+ # @yieldparam err [StandardError] error object if request failed
423
+ #
424
+ # @return [Google::Apis::WalletobjectsV1::EventTicketObject]
425
+ #
426
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
427
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
428
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
429
+ def modifylinkedofferobjects_eventticketobject(resource_id, modify_linked_offer_objects_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
430
+ command = make_simple_command(:post, 'walletobjects/v1/eventTicketObject/{resourceId}/modifyLinkedOfferObjects', options)
431
+ command.request_representation = Google::Apis::WalletobjectsV1::ModifyLinkedOfferObjectsRequest::Representation
432
+ command.request_object = modify_linked_offer_objects_request_object
433
+ command.response_representation = Google::Apis::WalletobjectsV1::EventTicketObject::Representation
434
+ command.response_class = Google::Apis::WalletobjectsV1::EventTicketObject
435
+ command.params['resourceId'] = resource_id unless resource_id.nil?
436
+ command.query['fields'] = fields unless fields.nil?
437
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
438
+ execute_or_queue_command(command, &block)
439
+ end
440
+
441
+ # Updates the event ticket object referenced by the given object ID. This method
442
+ # supports patch semantics.
443
+ # @param [String] resource_id
444
+ # The unique identifier for an object. This ID must be unique across all objects
445
+ # from an issuer. This value should follow the format issuer ID. identifier
446
+ # where the former is issued by Google and latter is chosen by you. Your unique
447
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
448
+ # @param [Google::Apis::WalletobjectsV1::EventTicketObject] event_ticket_object_object
449
+ # @param [String] fields
450
+ # Selector specifying which fields to include in a partial response.
451
+ # @param [String] quota_user
452
+ # Available to use for quota purposes for server-side applications. Can be any
453
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
454
+ # @param [Google::Apis::RequestOptions] options
455
+ # Request-specific options
456
+ #
457
+ # @yield [result, err] Result & error if block supplied
458
+ # @yieldparam result [Google::Apis::WalletobjectsV1::EventTicketObject] parsed result object
459
+ # @yieldparam err [StandardError] error object if request failed
460
+ #
461
+ # @return [Google::Apis::WalletobjectsV1::EventTicketObject]
462
+ #
463
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
464
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
465
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
466
+ def patch_eventticketobject(resource_id, event_ticket_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
467
+ command = make_simple_command(:patch, 'walletobjects/v1/eventTicketObject/{resourceId}', options)
468
+ command.request_representation = Google::Apis::WalletobjectsV1::EventTicketObject::Representation
469
+ command.request_object = event_ticket_object_object
470
+ command.response_representation = Google::Apis::WalletobjectsV1::EventTicketObject::Representation
471
+ command.response_class = Google::Apis::WalletobjectsV1::EventTicketObject
472
+ command.params['resourceId'] = resource_id unless resource_id.nil?
473
+ command.query['fields'] = fields unless fields.nil?
474
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
475
+ execute_or_queue_command(command, &block)
476
+ end
477
+
478
+ # Updates the event ticket object referenced by the given object ID.
479
+ # @param [String] resource_id
480
+ # The unique identifier for an object. This ID must be unique across all objects
481
+ # from an issuer. This value should follow the format issuer ID. identifier
482
+ # where the former is issued by Google and latter is chosen by you. Your unique
483
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
484
+ # @param [Google::Apis::WalletobjectsV1::EventTicketObject] event_ticket_object_object
485
+ # @param [String] fields
486
+ # Selector specifying which fields to include in a partial response.
487
+ # @param [String] quota_user
488
+ # Available to use for quota purposes for server-side applications. Can be any
489
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
490
+ # @param [Google::Apis::RequestOptions] options
491
+ # Request-specific options
492
+ #
493
+ # @yield [result, err] Result & error if block supplied
494
+ # @yieldparam result [Google::Apis::WalletobjectsV1::EventTicketObject] parsed result object
495
+ # @yieldparam err [StandardError] error object if request failed
496
+ #
497
+ # @return [Google::Apis::WalletobjectsV1::EventTicketObject]
498
+ #
499
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
500
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
501
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
502
+ def update_eventticketobject(resource_id, event_ticket_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
503
+ command = make_simple_command(:put, 'walletobjects/v1/eventTicketObject/{resourceId}', options)
504
+ command.request_representation = Google::Apis::WalletobjectsV1::EventTicketObject::Representation
505
+ command.request_object = event_ticket_object_object
506
+ command.response_representation = Google::Apis::WalletobjectsV1::EventTicketObject::Representation
507
+ command.response_class = Google::Apis::WalletobjectsV1::EventTicketObject
508
+ command.params['resourceId'] = resource_id unless resource_id.nil?
509
+ command.query['fields'] = fields unless fields.nil?
510
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
511
+ execute_or_queue_command(command, &block)
512
+ end
513
+
514
+ # Adds a message to the flight class referenced by the given class ID.
515
+ # @param [String] resource_id
516
+ # The unique identifier for a class. This ID must be unique across all classes
517
+ # from an issuer. This value should follow the format issuer ID. identifier
518
+ # where the former is issued by Google and latter is chosen by you. Your unique
519
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
520
+ # @param [Google::Apis::WalletobjectsV1::AddMessageRequest] add_message_request_object
521
+ # @param [String] fields
522
+ # Selector specifying which fields to include in a partial response.
523
+ # @param [String] quota_user
524
+ # Available to use for quota purposes for server-side applications. Can be any
525
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
526
+ # @param [Google::Apis::RequestOptions] options
527
+ # Request-specific options
528
+ #
529
+ # @yield [result, err] Result & error if block supplied
530
+ # @yieldparam result [Google::Apis::WalletobjectsV1::FlightClassAddMessageResponse] parsed result object
531
+ # @yieldparam err [StandardError] error object if request failed
532
+ #
533
+ # @return [Google::Apis::WalletobjectsV1::FlightClassAddMessageResponse]
534
+ #
535
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
536
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
537
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
538
+ def addmessage_flightclass(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
539
+ command = make_simple_command(:post, 'walletobjects/v1/flightClass/{resourceId}/addMessage', options)
540
+ command.request_representation = Google::Apis::WalletobjectsV1::AddMessageRequest::Representation
541
+ command.request_object = add_message_request_object
542
+ command.response_representation = Google::Apis::WalletobjectsV1::FlightClassAddMessageResponse::Representation
543
+ command.response_class = Google::Apis::WalletobjectsV1::FlightClassAddMessageResponse
544
+ command.params['resourceId'] = resource_id unless resource_id.nil?
545
+ command.query['fields'] = fields unless fields.nil?
546
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
547
+ execute_or_queue_command(command, &block)
548
+ end
549
+
550
+ # Returns the flight class with the given class ID.
551
+ # @param [String] resource_id
552
+ # The unique identifier for a class. This ID must be unique across all classes
553
+ # from an issuer. This value should follow the format issuer ID. identifier
554
+ # where the former is issued by Google and latter is chosen by you. Your unique
555
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
556
+ # @param [String] fields
557
+ # Selector specifying which fields to include in a partial response.
558
+ # @param [String] quota_user
559
+ # Available to use for quota purposes for server-side applications. Can be any
560
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
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::WalletobjectsV1::FlightClass] parsed result object
566
+ # @yieldparam err [StandardError] error object if request failed
567
+ #
568
+ # @return [Google::Apis::WalletobjectsV1::FlightClass]
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 get_flightclass(resource_id, fields: nil, quota_user: nil, options: nil, &block)
574
+ command = make_simple_command(:get, 'walletobjects/v1/flightClass/{resourceId}', options)
575
+ command.response_representation = Google::Apis::WalletobjectsV1::FlightClass::Representation
576
+ command.response_class = Google::Apis::WalletobjectsV1::FlightClass
577
+ command.params['resourceId'] = resource_id unless resource_id.nil?
578
+ command.query['fields'] = fields unless fields.nil?
579
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
580
+ execute_or_queue_command(command, &block)
581
+ end
582
+
583
+ # Inserts an flight class with the given ID and properties.
584
+ # @param [Google::Apis::WalletobjectsV1::FlightClass] flight_class_object
585
+ # @param [String] fields
586
+ # Selector specifying which fields to include in a partial response.
587
+ # @param [String] quota_user
588
+ # Available to use for quota purposes for server-side applications. Can be any
589
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
590
+ # @param [Google::Apis::RequestOptions] options
591
+ # Request-specific options
592
+ #
593
+ # @yield [result, err] Result & error if block supplied
594
+ # @yieldparam result [Google::Apis::WalletobjectsV1::FlightClass] parsed result object
595
+ # @yieldparam err [StandardError] error object if request failed
596
+ #
597
+ # @return [Google::Apis::WalletobjectsV1::FlightClass]
598
+ #
599
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
600
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
601
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
602
+ def insert_flightclass(flight_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
603
+ command = make_simple_command(:post, 'walletobjects/v1/flightClass', options)
604
+ command.request_representation = Google::Apis::WalletobjectsV1::FlightClass::Representation
605
+ command.request_object = flight_class_object
606
+ command.response_representation = Google::Apis::WalletobjectsV1::FlightClass::Representation
607
+ command.response_class = Google::Apis::WalletobjectsV1::FlightClass
608
+ command.query['fields'] = fields unless fields.nil?
609
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
610
+ execute_or_queue_command(command, &block)
611
+ end
612
+
613
+ # Returns a list of all flight classes for a given issuer ID.
614
+ # @param [Fixnum] issuer_id
615
+ # The ID of the issuer authorized to list classes.
616
+ # @param [Fixnum] max_results
617
+ # Identifies the max number of results returned by a list. All results are
618
+ # returned if `maxResults` isn't defined.
619
+ # @param [String] token
620
+ # Used to get the next set of results if `maxResults` is specified, but more
621
+ # than `maxResults` classes are available in a list. For example, if you have a
622
+ # list of 200 classes and you call list with `maxResults` set to 20, list will
623
+ # return the first 20 classes and a token. Call list again with `maxResults` set
624
+ # to 20 and the token to get the next 20 classes.
625
+ # @param [String] fields
626
+ # Selector specifying which fields to include in a partial response.
627
+ # @param [String] quota_user
628
+ # Available to use for quota purposes for server-side applications. Can be any
629
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
630
+ # @param [Google::Apis::RequestOptions] options
631
+ # Request-specific options
632
+ #
633
+ # @yield [result, err] Result & error if block supplied
634
+ # @yieldparam result [Google::Apis::WalletobjectsV1::FlightClassListResponse] parsed result object
635
+ # @yieldparam err [StandardError] error object if request failed
636
+ #
637
+ # @return [Google::Apis::WalletobjectsV1::FlightClassListResponse]
638
+ #
639
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
640
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
641
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
642
+ def list_flightclasses(issuer_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil, &block)
643
+ command = make_simple_command(:get, 'walletobjects/v1/flightClass', options)
644
+ command.response_representation = Google::Apis::WalletobjectsV1::FlightClassListResponse::Representation
645
+ command.response_class = Google::Apis::WalletobjectsV1::FlightClassListResponse
646
+ command.query['issuerId'] = issuer_id unless issuer_id.nil?
647
+ command.query['maxResults'] = max_results unless max_results.nil?
648
+ command.query['token'] = token unless token.nil?
649
+ command.query['fields'] = fields unless fields.nil?
650
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
651
+ execute_or_queue_command(command, &block)
652
+ end
653
+
654
+ # Updates the flight class referenced by the given class ID. This method
655
+ # supports patch semantics.
656
+ # @param [String] resource_id
657
+ # The unique identifier for a class. This ID must be unique across all classes
658
+ # from an issuer. This value should follow the format issuer ID. identifier
659
+ # where the former is issued by Google and latter is chosen by you. Your unique
660
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
661
+ # @param [Google::Apis::WalletobjectsV1::FlightClass] flight_class_object
662
+ # @param [String] fields
663
+ # Selector specifying which fields to include in a partial response.
664
+ # @param [String] quota_user
665
+ # Available to use for quota purposes for server-side applications. Can be any
666
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
667
+ # @param [Google::Apis::RequestOptions] options
668
+ # Request-specific options
669
+ #
670
+ # @yield [result, err] Result & error if block supplied
671
+ # @yieldparam result [Google::Apis::WalletobjectsV1::FlightClass] parsed result object
672
+ # @yieldparam err [StandardError] error object if request failed
673
+ #
674
+ # @return [Google::Apis::WalletobjectsV1::FlightClass]
675
+ #
676
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
677
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
678
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
679
+ def patch_flightclass(resource_id, flight_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
680
+ command = make_simple_command(:patch, 'walletobjects/v1/flightClass/{resourceId}', options)
681
+ command.request_representation = Google::Apis::WalletobjectsV1::FlightClass::Representation
682
+ command.request_object = flight_class_object
683
+ command.response_representation = Google::Apis::WalletobjectsV1::FlightClass::Representation
684
+ command.response_class = Google::Apis::WalletobjectsV1::FlightClass
685
+ command.params['resourceId'] = resource_id unless resource_id.nil?
686
+ command.query['fields'] = fields unless fields.nil?
687
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
688
+ execute_or_queue_command(command, &block)
689
+ end
690
+
691
+ # Updates the flight class referenced by the given class ID.
692
+ # @param [String] resource_id
693
+ # The unique identifier for a class. This ID must be unique across all classes
694
+ # from an issuer. This value should follow the format issuer ID. identifier
695
+ # where the former is issued by Google and latter is chosen by you. Your unique
696
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
697
+ # @param [Google::Apis::WalletobjectsV1::FlightClass] flight_class_object
698
+ # @param [String] fields
699
+ # Selector specifying which fields to include in a partial response.
700
+ # @param [String] quota_user
701
+ # Available to use for quota purposes for server-side applications. Can be any
702
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
703
+ # @param [Google::Apis::RequestOptions] options
704
+ # Request-specific options
705
+ #
706
+ # @yield [result, err] Result & error if block supplied
707
+ # @yieldparam result [Google::Apis::WalletobjectsV1::FlightClass] parsed result object
708
+ # @yieldparam err [StandardError] error object if request failed
709
+ #
710
+ # @return [Google::Apis::WalletobjectsV1::FlightClass]
711
+ #
712
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
713
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
714
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
715
+ def update_flightclass(resource_id, flight_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
716
+ command = make_simple_command(:put, 'walletobjects/v1/flightClass/{resourceId}', options)
717
+ command.request_representation = Google::Apis::WalletobjectsV1::FlightClass::Representation
718
+ command.request_object = flight_class_object
719
+ command.response_representation = Google::Apis::WalletobjectsV1::FlightClass::Representation
720
+ command.response_class = Google::Apis::WalletobjectsV1::FlightClass
721
+ command.params['resourceId'] = resource_id unless resource_id.nil?
722
+ command.query['fields'] = fields unless fields.nil?
723
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
724
+ execute_or_queue_command(command, &block)
725
+ end
726
+
727
+ # Adds a message to the flight object referenced by the given object ID.
728
+ # @param [String] resource_id
729
+ # The unique identifier for an object. This ID must be unique across all objects
730
+ # from an issuer. This value should follow the format issuer ID. identifier
731
+ # where the former is issued by Google and latter is chosen by you. Your unique
732
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
733
+ # @param [Google::Apis::WalletobjectsV1::AddMessageRequest] add_message_request_object
734
+ # @param [String] fields
735
+ # Selector specifying which fields to include in a partial response.
736
+ # @param [String] quota_user
737
+ # Available to use for quota purposes for server-side applications. Can be any
738
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
739
+ # @param [Google::Apis::RequestOptions] options
740
+ # Request-specific options
741
+ #
742
+ # @yield [result, err] Result & error if block supplied
743
+ # @yieldparam result [Google::Apis::WalletobjectsV1::FlightObjectAddMessageResponse] parsed result object
744
+ # @yieldparam err [StandardError] error object if request failed
745
+ #
746
+ # @return [Google::Apis::WalletobjectsV1::FlightObjectAddMessageResponse]
747
+ #
748
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
749
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
750
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
751
+ def addmessage_flightobject(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
752
+ command = make_simple_command(:post, 'walletobjects/v1/flightObject/{resourceId}/addMessage', options)
753
+ command.request_representation = Google::Apis::WalletobjectsV1::AddMessageRequest::Representation
754
+ command.request_object = add_message_request_object
755
+ command.response_representation = Google::Apis::WalletobjectsV1::FlightObjectAddMessageResponse::Representation
756
+ command.response_class = Google::Apis::WalletobjectsV1::FlightObjectAddMessageResponse
757
+ command.params['resourceId'] = resource_id unless resource_id.nil?
758
+ command.query['fields'] = fields unless fields.nil?
759
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
760
+ execute_or_queue_command(command, &block)
761
+ end
762
+
763
+ # Returns the flight object with the given object ID.
764
+ # @param [String] resource_id
765
+ # The unique identifier for an object. This ID must be unique across all objects
766
+ # from an issuer. This value should follow the format issuer ID. identifier
767
+ # where the former is issued by Google and latter is chosen by you. Your unique
768
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
769
+ # @param [String] fields
770
+ # Selector specifying which fields to include in a partial response.
771
+ # @param [String] quota_user
772
+ # Available to use for quota purposes for server-side applications. Can be any
773
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
774
+ # @param [Google::Apis::RequestOptions] options
775
+ # Request-specific options
776
+ #
777
+ # @yield [result, err] Result & error if block supplied
778
+ # @yieldparam result [Google::Apis::WalletobjectsV1::FlightObject] parsed result object
779
+ # @yieldparam err [StandardError] error object if request failed
780
+ #
781
+ # @return [Google::Apis::WalletobjectsV1::FlightObject]
782
+ #
783
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
784
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
785
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
786
+ def get_flightobject(resource_id, fields: nil, quota_user: nil, options: nil, &block)
787
+ command = make_simple_command(:get, 'walletobjects/v1/flightObject/{resourceId}', options)
788
+ command.response_representation = Google::Apis::WalletobjectsV1::FlightObject::Representation
789
+ command.response_class = Google::Apis::WalletobjectsV1::FlightObject
790
+ command.params['resourceId'] = resource_id unless resource_id.nil?
791
+ command.query['fields'] = fields unless fields.nil?
792
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
793
+ execute_or_queue_command(command, &block)
794
+ end
795
+
796
+ # Inserts an flight object with the given ID and properties.
797
+ # @param [Google::Apis::WalletobjectsV1::FlightObject] flight_object_object
798
+ # @param [String] fields
799
+ # Selector specifying which fields to include in a partial response.
800
+ # @param [String] quota_user
801
+ # Available to use for quota purposes for server-side applications. Can be any
802
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
803
+ # @param [Google::Apis::RequestOptions] options
804
+ # Request-specific options
805
+ #
806
+ # @yield [result, err] Result & error if block supplied
807
+ # @yieldparam result [Google::Apis::WalletobjectsV1::FlightObject] parsed result object
808
+ # @yieldparam err [StandardError] error object if request failed
809
+ #
810
+ # @return [Google::Apis::WalletobjectsV1::FlightObject]
811
+ #
812
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
813
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
814
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
815
+ def insert_flightobject(flight_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
816
+ command = make_simple_command(:post, 'walletobjects/v1/flightObject', options)
817
+ command.request_representation = Google::Apis::WalletobjectsV1::FlightObject::Representation
818
+ command.request_object = flight_object_object
819
+ command.response_representation = Google::Apis::WalletobjectsV1::FlightObject::Representation
820
+ command.response_class = Google::Apis::WalletobjectsV1::FlightObject
821
+ command.query['fields'] = fields unless fields.nil?
822
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
823
+ execute_or_queue_command(command, &block)
824
+ end
825
+
826
+ # Returns a list of all flight objects for a given issuer ID.
827
+ # @param [String] class_id
828
+ # The ID of the class whose objects will be listed.
829
+ # @param [Fixnum] max_results
830
+ # Identifies the max number of results returned by a list. All results are
831
+ # returned if `maxResults` isn't defined.
832
+ # @param [String] token
833
+ # Used to get the next set of results if `maxResults` is specified, but more
834
+ # than `maxResults` objects are available in a list. For example, if you have a
835
+ # list of 200 objects and you call list with `maxResults` set to 20, list will
836
+ # return the first 20 objects and a token. Call list again with `maxResults` set
837
+ # to 20 and the token to get the next 20 objects.
838
+ # @param [String] fields
839
+ # Selector specifying which fields to include in a partial response.
840
+ # @param [String] quota_user
841
+ # Available to use for quota purposes for server-side applications. Can be any
842
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
843
+ # @param [Google::Apis::RequestOptions] options
844
+ # Request-specific options
845
+ #
846
+ # @yield [result, err] Result & error if block supplied
847
+ # @yieldparam result [Google::Apis::WalletobjectsV1::FlightObjectListResponse] parsed result object
848
+ # @yieldparam err [StandardError] error object if request failed
849
+ #
850
+ # @return [Google::Apis::WalletobjectsV1::FlightObjectListResponse]
851
+ #
852
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
853
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
854
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
855
+ def list_flightobjects(class_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil, &block)
856
+ command = make_simple_command(:get, 'walletobjects/v1/flightObject', options)
857
+ command.response_representation = Google::Apis::WalletobjectsV1::FlightObjectListResponse::Representation
858
+ command.response_class = Google::Apis::WalletobjectsV1::FlightObjectListResponse
859
+ command.query['classId'] = class_id unless class_id.nil?
860
+ command.query['maxResults'] = max_results unless max_results.nil?
861
+ command.query['token'] = token unless token.nil?
862
+ command.query['fields'] = fields unless fields.nil?
863
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
864
+ execute_or_queue_command(command, &block)
865
+ end
866
+
867
+ # Updates the flight object referenced by the given object ID. This method
868
+ # supports patch semantics.
869
+ # @param [String] resource_id
870
+ # The unique identifier for an object. This ID must be unique across all objects
871
+ # from an issuer. This value should follow the format issuer ID. identifier
872
+ # where the former is issued by Google and latter is chosen by you. Your unique
873
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
874
+ # @param [Google::Apis::WalletobjectsV1::FlightObject] flight_object_object
875
+ # @param [String] fields
876
+ # Selector specifying which fields to include in a partial response.
877
+ # @param [String] quota_user
878
+ # Available to use for quota purposes for server-side applications. Can be any
879
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
880
+ # @param [Google::Apis::RequestOptions] options
881
+ # Request-specific options
882
+ #
883
+ # @yield [result, err] Result & error if block supplied
884
+ # @yieldparam result [Google::Apis::WalletobjectsV1::FlightObject] parsed result object
885
+ # @yieldparam err [StandardError] error object if request failed
886
+ #
887
+ # @return [Google::Apis::WalletobjectsV1::FlightObject]
888
+ #
889
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
890
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
891
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
892
+ def patch_flightobject(resource_id, flight_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
893
+ command = make_simple_command(:patch, 'walletobjects/v1/flightObject/{resourceId}', options)
894
+ command.request_representation = Google::Apis::WalletobjectsV1::FlightObject::Representation
895
+ command.request_object = flight_object_object
896
+ command.response_representation = Google::Apis::WalletobjectsV1::FlightObject::Representation
897
+ command.response_class = Google::Apis::WalletobjectsV1::FlightObject
898
+ command.params['resourceId'] = resource_id unless resource_id.nil?
899
+ command.query['fields'] = fields unless fields.nil?
900
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
901
+ execute_or_queue_command(command, &block)
902
+ end
903
+
904
+ # Updates the flight object referenced by the given object ID.
905
+ # @param [String] resource_id
906
+ # The unique identifier for an object. This ID must be unique across all objects
907
+ # from an issuer. This value should follow the format issuer ID. identifier
908
+ # where the former is issued by Google and latter is chosen by you. Your unique
909
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
910
+ # @param [Google::Apis::WalletobjectsV1::FlightObject] flight_object_object
911
+ # @param [String] fields
912
+ # Selector specifying which fields to include in a partial response.
913
+ # @param [String] quota_user
914
+ # Available to use for quota purposes for server-side applications. Can be any
915
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
916
+ # @param [Google::Apis::RequestOptions] options
917
+ # Request-specific options
918
+ #
919
+ # @yield [result, err] Result & error if block supplied
920
+ # @yieldparam result [Google::Apis::WalletobjectsV1::FlightObject] parsed result object
921
+ # @yieldparam err [StandardError] error object if request failed
922
+ #
923
+ # @return [Google::Apis::WalletobjectsV1::FlightObject]
924
+ #
925
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
926
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
927
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
928
+ def update_flightobject(resource_id, flight_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
929
+ command = make_simple_command(:put, 'walletobjects/v1/flightObject/{resourceId}', options)
930
+ command.request_representation = Google::Apis::WalletobjectsV1::FlightObject::Representation
931
+ command.request_object = flight_object_object
932
+ command.response_representation = Google::Apis::WalletobjectsV1::FlightObject::Representation
933
+ command.response_class = Google::Apis::WalletobjectsV1::FlightObject
934
+ command.params['resourceId'] = resource_id unless resource_id.nil?
935
+ command.query['fields'] = fields unless fields.nil?
936
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
937
+ execute_or_queue_command(command, &block)
938
+ end
939
+
940
+ # Returns the generic class with the given class ID.
941
+ # @param [String] resource_id
942
+ # The unique identifier for a class. This ID must be unique across all classes
943
+ # from an issuer. This value needs to follow the format `issuerID.identifier`
944
+ # where `issuerID` is issued by Google and `identifier` is chosen by you. The
945
+ # unique identifier can only include alphanumeric characters, `.`, `_`, or `-`.
946
+ # @param [String] fields
947
+ # Selector specifying which fields to include in a partial response.
948
+ # @param [String] quota_user
949
+ # Available to use for quota purposes for server-side applications. Can be any
950
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
951
+ # @param [Google::Apis::RequestOptions] options
952
+ # Request-specific options
953
+ #
954
+ # @yield [result, err] Result & error if block supplied
955
+ # @yieldparam result [Google::Apis::WalletobjectsV1::GenericClass] parsed result object
956
+ # @yieldparam err [StandardError] error object if request failed
957
+ #
958
+ # @return [Google::Apis::WalletobjectsV1::GenericClass]
959
+ #
960
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
961
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
962
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
963
+ def get_genericclass(resource_id, fields: nil, quota_user: nil, options: nil, &block)
964
+ command = make_simple_command(:get, 'walletobjects/v1/genericClass/{resourceId}', options)
965
+ command.response_representation = Google::Apis::WalletobjectsV1::GenericClass::Representation
966
+ command.response_class = Google::Apis::WalletobjectsV1::GenericClass
967
+ command.params['resourceId'] = resource_id unless resource_id.nil?
968
+ command.query['fields'] = fields unless fields.nil?
969
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
970
+ execute_or_queue_command(command, &block)
971
+ end
972
+
973
+ # Inserts a generic class with the given ID and properties.
974
+ # @param [Google::Apis::WalletobjectsV1::GenericClass] generic_class_object
975
+ # @param [String] fields
976
+ # Selector specifying which fields to include in a partial response.
977
+ # @param [String] quota_user
978
+ # Available to use for quota purposes for server-side applications. Can be any
979
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
980
+ # @param [Google::Apis::RequestOptions] options
981
+ # Request-specific options
982
+ #
983
+ # @yield [result, err] Result & error if block supplied
984
+ # @yieldparam result [Google::Apis::WalletobjectsV1::GenericClass] parsed result object
985
+ # @yieldparam err [StandardError] error object if request failed
986
+ #
987
+ # @return [Google::Apis::WalletobjectsV1::GenericClass]
988
+ #
989
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
990
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
991
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
992
+ def insert_genericclass(generic_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
993
+ command = make_simple_command(:post, 'walletobjects/v1/genericClass', options)
994
+ command.request_representation = Google::Apis::WalletobjectsV1::GenericClass::Representation
995
+ command.request_object = generic_class_object
996
+ command.response_representation = Google::Apis::WalletobjectsV1::GenericClass::Representation
997
+ command.response_class = Google::Apis::WalletobjectsV1::GenericClass
998
+ command.query['fields'] = fields unless fields.nil?
999
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1000
+ execute_or_queue_command(command, &block)
1001
+ end
1002
+
1003
+ # Returns a list of all generic classes for a given issuer ID.
1004
+ # @param [Fixnum] issuer_id
1005
+ # The ID of the issuer authorized to list classes.
1006
+ # @param [Fixnum] max_results
1007
+ # Identifies the max number of results returned by a list. All results are
1008
+ # returned if `maxResults` isn't defined.
1009
+ # @param [String] token
1010
+ # Used to get the next set of results if `maxResults` is specified, but more
1011
+ # than `maxResults` classes are available in a list. For example, if you have a
1012
+ # list of 200 classes and you call list with `maxResults` set to 20, list will
1013
+ # return the first 20 classes and a token. Call list again with `maxResults` set
1014
+ # to 20 and the token to get the next 20 classes.
1015
+ # @param [String] fields
1016
+ # Selector specifying which fields to include in a partial response.
1017
+ # @param [String] quota_user
1018
+ # Available to use for quota purposes for server-side applications. Can be any
1019
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1020
+ # @param [Google::Apis::RequestOptions] options
1021
+ # Request-specific options
1022
+ #
1023
+ # @yield [result, err] Result & error if block supplied
1024
+ # @yieldparam result [Google::Apis::WalletobjectsV1::GenericClassListResponse] parsed result object
1025
+ # @yieldparam err [StandardError] error object if request failed
1026
+ #
1027
+ # @return [Google::Apis::WalletobjectsV1::GenericClassListResponse]
1028
+ #
1029
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1030
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1031
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1032
+ def list_genericclasses(issuer_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil, &block)
1033
+ command = make_simple_command(:get, 'walletobjects/v1/genericClass', options)
1034
+ command.response_representation = Google::Apis::WalletobjectsV1::GenericClassListResponse::Representation
1035
+ command.response_class = Google::Apis::WalletobjectsV1::GenericClassListResponse
1036
+ command.query['issuerId'] = issuer_id unless issuer_id.nil?
1037
+ command.query['maxResults'] = max_results unless max_results.nil?
1038
+ command.query['token'] = token unless token.nil?
1039
+ command.query['fields'] = fields unless fields.nil?
1040
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1041
+ execute_or_queue_command(command, &block)
1042
+ end
1043
+
1044
+ # Updates the generic class referenced by the given class ID. This method
1045
+ # supports patch semantics.
1046
+ # @param [String] resource_id
1047
+ # The unique identifier for a class. This ID must be unique across all classes
1048
+ # from an issuer. This value needs to follow the format `issuerID.identifier`
1049
+ # where `issuerID` is issued by Google and `identifier` is chosen by you. The
1050
+ # unique identifier can only include alphanumeric characters, `.`, `_`, or `-`.
1051
+ # @param [Google::Apis::WalletobjectsV1::GenericClass] generic_class_object
1052
+ # @param [String] fields
1053
+ # Selector specifying which fields to include in a partial response.
1054
+ # @param [String] quota_user
1055
+ # Available to use for quota purposes for server-side applications. Can be any
1056
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1057
+ # @param [Google::Apis::RequestOptions] options
1058
+ # Request-specific options
1059
+ #
1060
+ # @yield [result, err] Result & error if block supplied
1061
+ # @yieldparam result [Google::Apis::WalletobjectsV1::GenericClass] parsed result object
1062
+ # @yieldparam err [StandardError] error object if request failed
1063
+ #
1064
+ # @return [Google::Apis::WalletobjectsV1::GenericClass]
1065
+ #
1066
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1067
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1068
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1069
+ def patch_genericclass(resource_id, generic_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1070
+ command = make_simple_command(:patch, 'walletobjects/v1/genericClass/{resourceId}', options)
1071
+ command.request_representation = Google::Apis::WalletobjectsV1::GenericClass::Representation
1072
+ command.request_object = generic_class_object
1073
+ command.response_representation = Google::Apis::WalletobjectsV1::GenericClass::Representation
1074
+ command.response_class = Google::Apis::WalletobjectsV1::GenericClass
1075
+ command.params['resourceId'] = resource_id unless resource_id.nil?
1076
+ command.query['fields'] = fields unless fields.nil?
1077
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1078
+ execute_or_queue_command(command, &block)
1079
+ end
1080
+
1081
+ # Updates the Generic class referenced by the given class ID.
1082
+ # @param [String] resource_id
1083
+ # The unique identifier for a class. This ID must be unique across all classes
1084
+ # from an issuer. This value needs to follow the format `issuerID.identifier`
1085
+ # where `issuerID` is issued by Google and `identifier` is chosen by you. The
1086
+ # unique identifier can only include alphanumeric characters, `.`, `_`, or `-`.
1087
+ # @param [Google::Apis::WalletobjectsV1::GenericClass] generic_class_object
1088
+ # @param [String] fields
1089
+ # Selector specifying which fields to include in a partial response.
1090
+ # @param [String] quota_user
1091
+ # Available to use for quota purposes for server-side applications. Can be any
1092
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1093
+ # @param [Google::Apis::RequestOptions] options
1094
+ # Request-specific options
1095
+ #
1096
+ # @yield [result, err] Result & error if block supplied
1097
+ # @yieldparam result [Google::Apis::WalletobjectsV1::GenericClass] parsed result object
1098
+ # @yieldparam err [StandardError] error object if request failed
1099
+ #
1100
+ # @return [Google::Apis::WalletobjectsV1::GenericClass]
1101
+ #
1102
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1103
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1104
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1105
+ def update_genericclass(resource_id, generic_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1106
+ command = make_simple_command(:put, 'walletobjects/v1/genericClass/{resourceId}', options)
1107
+ command.request_representation = Google::Apis::WalletobjectsV1::GenericClass::Representation
1108
+ command.request_object = generic_class_object
1109
+ command.response_representation = Google::Apis::WalletobjectsV1::GenericClass::Representation
1110
+ command.response_class = Google::Apis::WalletobjectsV1::GenericClass
1111
+ command.params['resourceId'] = resource_id unless resource_id.nil?
1112
+ command.query['fields'] = fields unless fields.nil?
1113
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1114
+ execute_or_queue_command(command, &block)
1115
+ end
1116
+
1117
+ # Returns the generic object with the given object ID.
1118
+ # @param [String] resource_id
1119
+ # The unique identifier for an object. This ID must be unique across all objects
1120
+ # from an issuer. This value needs to follow the format `issuerID.identifier`
1121
+ # where `issuerID` is issued by Google and `identifier` is chosen by you. The
1122
+ # unique identifier can only include alphanumeric characters, `.`, `_`, or `-`.
1123
+ # @param [String] fields
1124
+ # Selector specifying which fields to include in a partial response.
1125
+ # @param [String] quota_user
1126
+ # Available to use for quota purposes for server-side applications. Can be any
1127
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1128
+ # @param [Google::Apis::RequestOptions] options
1129
+ # Request-specific options
1130
+ #
1131
+ # @yield [result, err] Result & error if block supplied
1132
+ # @yieldparam result [Google::Apis::WalletobjectsV1::GenericObject] parsed result object
1133
+ # @yieldparam err [StandardError] error object if request failed
1134
+ #
1135
+ # @return [Google::Apis::WalletobjectsV1::GenericObject]
1136
+ #
1137
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1138
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1139
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1140
+ def get_genericobject(resource_id, fields: nil, quota_user: nil, options: nil, &block)
1141
+ command = make_simple_command(:get, 'walletobjects/v1/genericObject/{resourceId}', options)
1142
+ command.response_representation = Google::Apis::WalletobjectsV1::GenericObject::Representation
1143
+ command.response_class = Google::Apis::WalletobjectsV1::GenericObject
1144
+ command.params['resourceId'] = resource_id unless resource_id.nil?
1145
+ command.query['fields'] = fields unless fields.nil?
1146
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1147
+ execute_or_queue_command(command, &block)
1148
+ end
1149
+
1150
+ # Inserts a generic object with the given ID and properties.
1151
+ # @param [Google::Apis::WalletobjectsV1::GenericObject] generic_object_object
1152
+ # @param [String] fields
1153
+ # Selector specifying which fields to include in a partial response.
1154
+ # @param [String] quota_user
1155
+ # Available to use for quota purposes for server-side applications. Can be any
1156
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1157
+ # @param [Google::Apis::RequestOptions] options
1158
+ # Request-specific options
1159
+ #
1160
+ # @yield [result, err] Result & error if block supplied
1161
+ # @yieldparam result [Google::Apis::WalletobjectsV1::GenericObject] parsed result object
1162
+ # @yieldparam err [StandardError] error object if request failed
1163
+ #
1164
+ # @return [Google::Apis::WalletobjectsV1::GenericObject]
1165
+ #
1166
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1167
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1168
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1169
+ def insert_genericobject(generic_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1170
+ command = make_simple_command(:post, 'walletobjects/v1/genericObject', options)
1171
+ command.request_representation = Google::Apis::WalletobjectsV1::GenericObject::Representation
1172
+ command.request_object = generic_object_object
1173
+ command.response_representation = Google::Apis::WalletobjectsV1::GenericObject::Representation
1174
+ command.response_class = Google::Apis::WalletobjectsV1::GenericObject
1175
+ command.query['fields'] = fields unless fields.nil?
1176
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1177
+ execute_or_queue_command(command, &block)
1178
+ end
1179
+
1180
+ # Returns a list of all generic objects for a given issuer ID.
1181
+ # @param [String] class_id
1182
+ # The ID of the class whose objects will be listed.
1183
+ # @param [Fixnum] max_results
1184
+ # Identifies the max number of results returned by a list. All results are
1185
+ # returned if `maxResults` isn't defined.
1186
+ # @param [String] token
1187
+ # Used to get the next set of results if `maxResults` is specified, but more
1188
+ # than `maxResults` objects are available in a list. For example, if you have a
1189
+ # list of 200 objects and you call list with `maxResults` set to 20, list will
1190
+ # return the first 20 objects and a token. Call list again with `maxResults` set
1191
+ # to 20 and the token to get the next 20 objects.
1192
+ # @param [String] fields
1193
+ # Selector specifying which fields to include in a partial response.
1194
+ # @param [String] quota_user
1195
+ # Available to use for quota purposes for server-side applications. Can be any
1196
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1197
+ # @param [Google::Apis::RequestOptions] options
1198
+ # Request-specific options
1199
+ #
1200
+ # @yield [result, err] Result & error if block supplied
1201
+ # @yieldparam result [Google::Apis::WalletobjectsV1::GenericObjectListResponse] parsed result object
1202
+ # @yieldparam err [StandardError] error object if request failed
1203
+ #
1204
+ # @return [Google::Apis::WalletobjectsV1::GenericObjectListResponse]
1205
+ #
1206
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1207
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1208
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1209
+ def list_genericobjects(class_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil, &block)
1210
+ command = make_simple_command(:get, 'walletobjects/v1/genericObject', options)
1211
+ command.response_representation = Google::Apis::WalletobjectsV1::GenericObjectListResponse::Representation
1212
+ command.response_class = Google::Apis::WalletobjectsV1::GenericObjectListResponse
1213
+ command.query['classId'] = class_id unless class_id.nil?
1214
+ command.query['maxResults'] = max_results unless max_results.nil?
1215
+ command.query['token'] = token unless token.nil?
1216
+ command.query['fields'] = fields unless fields.nil?
1217
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1218
+ execute_or_queue_command(command, &block)
1219
+ end
1220
+
1221
+ # Updates the generic object referenced by the given object ID. This method
1222
+ # supports patch semantics.
1223
+ # @param [String] resource_id
1224
+ # The unique identifier for an object. This ID must be unique across all objects
1225
+ # from an issuer. This value needs to follow the format `issuerID.identifier`
1226
+ # where `issuerID` is issued by Google and `identifier` is chosen by you. The
1227
+ # unique identifier can only include alphanumeric characters, `.`, `_`, or `-`.
1228
+ # @param [Google::Apis::WalletobjectsV1::GenericObject] generic_object_object
1229
+ # @param [String] fields
1230
+ # Selector specifying which fields to include in a partial response.
1231
+ # @param [String] quota_user
1232
+ # Available to use for quota purposes for server-side applications. Can be any
1233
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1234
+ # @param [Google::Apis::RequestOptions] options
1235
+ # Request-specific options
1236
+ #
1237
+ # @yield [result, err] Result & error if block supplied
1238
+ # @yieldparam result [Google::Apis::WalletobjectsV1::GenericObject] parsed result object
1239
+ # @yieldparam err [StandardError] error object if request failed
1240
+ #
1241
+ # @return [Google::Apis::WalletobjectsV1::GenericObject]
1242
+ #
1243
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1244
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1245
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1246
+ def patch_genericobject(resource_id, generic_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1247
+ command = make_simple_command(:patch, 'walletobjects/v1/genericObject/{resourceId}', options)
1248
+ command.request_representation = Google::Apis::WalletobjectsV1::GenericObject::Representation
1249
+ command.request_object = generic_object_object
1250
+ command.response_representation = Google::Apis::WalletobjectsV1::GenericObject::Representation
1251
+ command.response_class = Google::Apis::WalletobjectsV1::GenericObject
1252
+ command.params['resourceId'] = resource_id unless resource_id.nil?
1253
+ command.query['fields'] = fields unless fields.nil?
1254
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1255
+ execute_or_queue_command(command, &block)
1256
+ end
1257
+
1258
+ # Updates the generic object referenced by the given object ID.
1259
+ # @param [String] resource_id
1260
+ # The unique identifier for an object. This ID must be unique across all objects
1261
+ # from an issuer. This value needs to follow the format `issuerID.identifier`
1262
+ # where `issuerID` is issued by Google and `identifier` is chosen by you. The
1263
+ # unique identifier can only include alphanumeric characters, `.`, `_`, or `-`.
1264
+ # @param [Google::Apis::WalletobjectsV1::GenericObject] generic_object_object
1265
+ # @param [String] fields
1266
+ # Selector specifying which fields to include in a partial response.
1267
+ # @param [String] quota_user
1268
+ # Available to use for quota purposes for server-side applications. Can be any
1269
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1270
+ # @param [Google::Apis::RequestOptions] options
1271
+ # Request-specific options
1272
+ #
1273
+ # @yield [result, err] Result & error if block supplied
1274
+ # @yieldparam result [Google::Apis::WalletobjectsV1::GenericObject] parsed result object
1275
+ # @yieldparam err [StandardError] error object if request failed
1276
+ #
1277
+ # @return [Google::Apis::WalletobjectsV1::GenericObject]
1278
+ #
1279
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1280
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1281
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1282
+ def update_genericobject(resource_id, generic_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1283
+ command = make_simple_command(:put, 'walletobjects/v1/genericObject/{resourceId}', options)
1284
+ command.request_representation = Google::Apis::WalletobjectsV1::GenericObject::Representation
1285
+ command.request_object = generic_object_object
1286
+ command.response_representation = Google::Apis::WalletobjectsV1::GenericObject::Representation
1287
+ command.response_class = Google::Apis::WalletobjectsV1::GenericObject
1288
+ command.params['resourceId'] = resource_id unless resource_id.nil?
1289
+ command.query['fields'] = fields unless fields.nil?
1290
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1291
+ execute_or_queue_command(command, &block)
1292
+ end
1293
+
1294
+ # Adds a message to the gift card class referenced by the given class ID.
1295
+ # @param [String] resource_id
1296
+ # The unique identifier for a class. This ID must be unique across all classes
1297
+ # from an issuer. This value should follow the format issuer ID. identifier
1298
+ # where the former is issued by Google and latter is chosen by you. Your unique
1299
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
1300
+ # @param [Google::Apis::WalletobjectsV1::AddMessageRequest] add_message_request_object
1301
+ # @param [String] fields
1302
+ # Selector specifying which fields to include in a partial response.
1303
+ # @param [String] quota_user
1304
+ # Available to use for quota purposes for server-side applications. Can be any
1305
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1306
+ # @param [Google::Apis::RequestOptions] options
1307
+ # Request-specific options
1308
+ #
1309
+ # @yield [result, err] Result & error if block supplied
1310
+ # @yieldparam result [Google::Apis::WalletobjectsV1::GiftCardClassAddMessageResponse] parsed result object
1311
+ # @yieldparam err [StandardError] error object if request failed
1312
+ #
1313
+ # @return [Google::Apis::WalletobjectsV1::GiftCardClassAddMessageResponse]
1314
+ #
1315
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1316
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1317
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1318
+ def addmessage_giftcardclass(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1319
+ command = make_simple_command(:post, 'walletobjects/v1/giftCardClass/{resourceId}/addMessage', options)
1320
+ command.request_representation = Google::Apis::WalletobjectsV1::AddMessageRequest::Representation
1321
+ command.request_object = add_message_request_object
1322
+ command.response_representation = Google::Apis::WalletobjectsV1::GiftCardClassAddMessageResponse::Representation
1323
+ command.response_class = Google::Apis::WalletobjectsV1::GiftCardClassAddMessageResponse
1324
+ command.params['resourceId'] = resource_id unless resource_id.nil?
1325
+ command.query['fields'] = fields unless fields.nil?
1326
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1327
+ execute_or_queue_command(command, &block)
1328
+ end
1329
+
1330
+ # Returns the gift card class with the given class ID.
1331
+ # @param [String] resource_id
1332
+ # The unique identifier for a class. This ID must be unique across all classes
1333
+ # from an issuer. This value should follow the format issuer ID. identifier
1334
+ # where the former is issued by Google and latter is chosen by you. Your unique
1335
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
1336
+ # @param [String] fields
1337
+ # Selector specifying which fields to include in a partial response.
1338
+ # @param [String] quota_user
1339
+ # Available to use for quota purposes for server-side applications. Can be any
1340
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1341
+ # @param [Google::Apis::RequestOptions] options
1342
+ # Request-specific options
1343
+ #
1344
+ # @yield [result, err] Result & error if block supplied
1345
+ # @yieldparam result [Google::Apis::WalletobjectsV1::GiftCardClass] parsed result object
1346
+ # @yieldparam err [StandardError] error object if request failed
1347
+ #
1348
+ # @return [Google::Apis::WalletobjectsV1::GiftCardClass]
1349
+ #
1350
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1351
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1352
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1353
+ def get_giftcardclass(resource_id, fields: nil, quota_user: nil, options: nil, &block)
1354
+ command = make_simple_command(:get, 'walletobjects/v1/giftCardClass/{resourceId}', options)
1355
+ command.response_representation = Google::Apis::WalletobjectsV1::GiftCardClass::Representation
1356
+ command.response_class = Google::Apis::WalletobjectsV1::GiftCardClass
1357
+ command.params['resourceId'] = resource_id unless resource_id.nil?
1358
+ command.query['fields'] = fields unless fields.nil?
1359
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1360
+ execute_or_queue_command(command, &block)
1361
+ end
1362
+
1363
+ # Inserts an gift card class with the given ID and properties.
1364
+ # @param [Google::Apis::WalletobjectsV1::GiftCardClass] gift_card_class_object
1365
+ # @param [String] fields
1366
+ # Selector specifying which fields to include in a partial response.
1367
+ # @param [String] quota_user
1368
+ # Available to use for quota purposes for server-side applications. Can be any
1369
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1370
+ # @param [Google::Apis::RequestOptions] options
1371
+ # Request-specific options
1372
+ #
1373
+ # @yield [result, err] Result & error if block supplied
1374
+ # @yieldparam result [Google::Apis::WalletobjectsV1::GiftCardClass] parsed result object
1375
+ # @yieldparam err [StandardError] error object if request failed
1376
+ #
1377
+ # @return [Google::Apis::WalletobjectsV1::GiftCardClass]
1378
+ #
1379
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1380
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1381
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1382
+ def insert_giftcardclass(gift_card_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1383
+ command = make_simple_command(:post, 'walletobjects/v1/giftCardClass', options)
1384
+ command.request_representation = Google::Apis::WalletobjectsV1::GiftCardClass::Representation
1385
+ command.request_object = gift_card_class_object
1386
+ command.response_representation = Google::Apis::WalletobjectsV1::GiftCardClass::Representation
1387
+ command.response_class = Google::Apis::WalletobjectsV1::GiftCardClass
1388
+ command.query['fields'] = fields unless fields.nil?
1389
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1390
+ execute_or_queue_command(command, &block)
1391
+ end
1392
+
1393
+ # Returns a list of all gift card classes for a given issuer ID.
1394
+ # @param [Fixnum] issuer_id
1395
+ # The ID of the issuer authorized to list classes.
1396
+ # @param [Fixnum] max_results
1397
+ # Identifies the max number of results returned by a list. All results are
1398
+ # returned if `maxResults` isn't defined.
1399
+ # @param [String] token
1400
+ # Used to get the next set of results if `maxResults` is specified, but more
1401
+ # than `maxResults` classes are available in a list. For example, if you have a
1402
+ # list of 200 classes and you call list with `maxResults` set to 20, list will
1403
+ # return the first 20 classes and a token. Call list again with `maxResults` set
1404
+ # to 20 and the token to get the next 20 classes.
1405
+ # @param [String] fields
1406
+ # Selector specifying which fields to include in a partial response.
1407
+ # @param [String] quota_user
1408
+ # Available to use for quota purposes for server-side applications. Can be any
1409
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1410
+ # @param [Google::Apis::RequestOptions] options
1411
+ # Request-specific options
1412
+ #
1413
+ # @yield [result, err] Result & error if block supplied
1414
+ # @yieldparam result [Google::Apis::WalletobjectsV1::GiftCardClassListResponse] parsed result object
1415
+ # @yieldparam err [StandardError] error object if request failed
1416
+ #
1417
+ # @return [Google::Apis::WalletobjectsV1::GiftCardClassListResponse]
1418
+ #
1419
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1420
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1421
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1422
+ def list_giftcardclasses(issuer_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil, &block)
1423
+ command = make_simple_command(:get, 'walletobjects/v1/giftCardClass', options)
1424
+ command.response_representation = Google::Apis::WalletobjectsV1::GiftCardClassListResponse::Representation
1425
+ command.response_class = Google::Apis::WalletobjectsV1::GiftCardClassListResponse
1426
+ command.query['issuerId'] = issuer_id unless issuer_id.nil?
1427
+ command.query['maxResults'] = max_results unless max_results.nil?
1428
+ command.query['token'] = token unless token.nil?
1429
+ command.query['fields'] = fields unless fields.nil?
1430
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1431
+ execute_or_queue_command(command, &block)
1432
+ end
1433
+
1434
+ # Updates the gift card class referenced by the given class ID. This method
1435
+ # supports patch semantics.
1436
+ # @param [String] resource_id
1437
+ # The unique identifier for a class. This ID must be unique across all classes
1438
+ # from an issuer. This value should follow the format issuer ID. identifier
1439
+ # where the former is issued by Google and latter is chosen by you. Your unique
1440
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
1441
+ # @param [Google::Apis::WalletobjectsV1::GiftCardClass] gift_card_class_object
1442
+ # @param [String] fields
1443
+ # Selector specifying which fields to include in a partial response.
1444
+ # @param [String] quota_user
1445
+ # Available to use for quota purposes for server-side applications. Can be any
1446
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1447
+ # @param [Google::Apis::RequestOptions] options
1448
+ # Request-specific options
1449
+ #
1450
+ # @yield [result, err] Result & error if block supplied
1451
+ # @yieldparam result [Google::Apis::WalletobjectsV1::GiftCardClass] parsed result object
1452
+ # @yieldparam err [StandardError] error object if request failed
1453
+ #
1454
+ # @return [Google::Apis::WalletobjectsV1::GiftCardClass]
1455
+ #
1456
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1457
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1458
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1459
+ def patch_giftcardclass(resource_id, gift_card_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1460
+ command = make_simple_command(:patch, 'walletobjects/v1/giftCardClass/{resourceId}', options)
1461
+ command.request_representation = Google::Apis::WalletobjectsV1::GiftCardClass::Representation
1462
+ command.request_object = gift_card_class_object
1463
+ command.response_representation = Google::Apis::WalletobjectsV1::GiftCardClass::Representation
1464
+ command.response_class = Google::Apis::WalletobjectsV1::GiftCardClass
1465
+ command.params['resourceId'] = resource_id unless resource_id.nil?
1466
+ command.query['fields'] = fields unless fields.nil?
1467
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1468
+ execute_or_queue_command(command, &block)
1469
+ end
1470
+
1471
+ # Updates the gift card class referenced by the given class ID.
1472
+ # @param [String] resource_id
1473
+ # The unique identifier for a class. This ID must be unique across all classes
1474
+ # from an issuer. This value should follow the format issuer ID. identifier
1475
+ # where the former is issued by Google and latter is chosen by you. Your unique
1476
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
1477
+ # @param [Google::Apis::WalletobjectsV1::GiftCardClass] gift_card_class_object
1478
+ # @param [String] fields
1479
+ # Selector specifying which fields to include in a partial response.
1480
+ # @param [String] quota_user
1481
+ # Available to use for quota purposes for server-side applications. Can be any
1482
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1483
+ # @param [Google::Apis::RequestOptions] options
1484
+ # Request-specific options
1485
+ #
1486
+ # @yield [result, err] Result & error if block supplied
1487
+ # @yieldparam result [Google::Apis::WalletobjectsV1::GiftCardClass] parsed result object
1488
+ # @yieldparam err [StandardError] error object if request failed
1489
+ #
1490
+ # @return [Google::Apis::WalletobjectsV1::GiftCardClass]
1491
+ #
1492
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1493
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1494
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1495
+ def update_giftcardclass(resource_id, gift_card_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1496
+ command = make_simple_command(:put, 'walletobjects/v1/giftCardClass/{resourceId}', options)
1497
+ command.request_representation = Google::Apis::WalletobjectsV1::GiftCardClass::Representation
1498
+ command.request_object = gift_card_class_object
1499
+ command.response_representation = Google::Apis::WalletobjectsV1::GiftCardClass::Representation
1500
+ command.response_class = Google::Apis::WalletobjectsV1::GiftCardClass
1501
+ command.params['resourceId'] = resource_id unless resource_id.nil?
1502
+ command.query['fields'] = fields unless fields.nil?
1503
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1504
+ execute_or_queue_command(command, &block)
1505
+ end
1506
+
1507
+ # Adds a message to the gift card object referenced by the given object ID.
1508
+ # @param [String] resource_id
1509
+ # The unique identifier for an object. This ID must be unique across all objects
1510
+ # from an issuer. This value should follow the format issuer ID. identifier
1511
+ # where the former is issued by Google and latter is chosen by you. Your unique
1512
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
1513
+ # @param [Google::Apis::WalletobjectsV1::AddMessageRequest] add_message_request_object
1514
+ # @param [String] fields
1515
+ # Selector specifying which fields to include in a partial response.
1516
+ # @param [String] quota_user
1517
+ # Available to use for quota purposes for server-side applications. Can be any
1518
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1519
+ # @param [Google::Apis::RequestOptions] options
1520
+ # Request-specific options
1521
+ #
1522
+ # @yield [result, err] Result & error if block supplied
1523
+ # @yieldparam result [Google::Apis::WalletobjectsV1::GiftCardObjectAddMessageResponse] parsed result object
1524
+ # @yieldparam err [StandardError] error object if request failed
1525
+ #
1526
+ # @return [Google::Apis::WalletobjectsV1::GiftCardObjectAddMessageResponse]
1527
+ #
1528
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1529
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1530
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1531
+ def addmessage_giftcardobject(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1532
+ command = make_simple_command(:post, 'walletobjects/v1/giftCardObject/{resourceId}/addMessage', options)
1533
+ command.request_representation = Google::Apis::WalletobjectsV1::AddMessageRequest::Representation
1534
+ command.request_object = add_message_request_object
1535
+ command.response_representation = Google::Apis::WalletobjectsV1::GiftCardObjectAddMessageResponse::Representation
1536
+ command.response_class = Google::Apis::WalletobjectsV1::GiftCardObjectAddMessageResponse
1537
+ command.params['resourceId'] = resource_id unless resource_id.nil?
1538
+ command.query['fields'] = fields unless fields.nil?
1539
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1540
+ execute_or_queue_command(command, &block)
1541
+ end
1542
+
1543
+ # Returns the gift card object with the given object ID.
1544
+ # @param [String] resource_id
1545
+ # The unique identifier for an object. This ID must be unique across all objects
1546
+ # from an issuer. This value should follow the format issuer ID. identifier
1547
+ # where the former is issued by Google and latter is chosen by you. Your unique
1548
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
1549
+ # @param [String] fields
1550
+ # Selector specifying which fields to include in a partial response.
1551
+ # @param [String] quota_user
1552
+ # Available to use for quota purposes for server-side applications. Can be any
1553
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1554
+ # @param [Google::Apis::RequestOptions] options
1555
+ # Request-specific options
1556
+ #
1557
+ # @yield [result, err] Result & error if block supplied
1558
+ # @yieldparam result [Google::Apis::WalletobjectsV1::GiftCardObject] parsed result object
1559
+ # @yieldparam err [StandardError] error object if request failed
1560
+ #
1561
+ # @return [Google::Apis::WalletobjectsV1::GiftCardObject]
1562
+ #
1563
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1564
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1565
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1566
+ def get_giftcardobject(resource_id, fields: nil, quota_user: nil, options: nil, &block)
1567
+ command = make_simple_command(:get, 'walletobjects/v1/giftCardObject/{resourceId}', options)
1568
+ command.response_representation = Google::Apis::WalletobjectsV1::GiftCardObject::Representation
1569
+ command.response_class = Google::Apis::WalletobjectsV1::GiftCardObject
1570
+ command.params['resourceId'] = resource_id unless resource_id.nil?
1571
+ command.query['fields'] = fields unless fields.nil?
1572
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1573
+ execute_or_queue_command(command, &block)
1574
+ end
1575
+
1576
+ # Inserts an gift card object with the given ID and properties.
1577
+ # @param [Google::Apis::WalletobjectsV1::GiftCardObject] gift_card_object_object
1578
+ # @param [String] fields
1579
+ # Selector specifying which fields to include in a partial response.
1580
+ # @param [String] quota_user
1581
+ # Available to use for quota purposes for server-side applications. Can be any
1582
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1583
+ # @param [Google::Apis::RequestOptions] options
1584
+ # Request-specific options
1585
+ #
1586
+ # @yield [result, err] Result & error if block supplied
1587
+ # @yieldparam result [Google::Apis::WalletobjectsV1::GiftCardObject] parsed result object
1588
+ # @yieldparam err [StandardError] error object if request failed
1589
+ #
1590
+ # @return [Google::Apis::WalletobjectsV1::GiftCardObject]
1591
+ #
1592
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1593
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1594
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1595
+ def insert_giftcardobject(gift_card_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1596
+ command = make_simple_command(:post, 'walletobjects/v1/giftCardObject', options)
1597
+ command.request_representation = Google::Apis::WalletobjectsV1::GiftCardObject::Representation
1598
+ command.request_object = gift_card_object_object
1599
+ command.response_representation = Google::Apis::WalletobjectsV1::GiftCardObject::Representation
1600
+ command.response_class = Google::Apis::WalletobjectsV1::GiftCardObject
1601
+ command.query['fields'] = fields unless fields.nil?
1602
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1603
+ execute_or_queue_command(command, &block)
1604
+ end
1605
+
1606
+ # Returns a list of all gift card objects for a given issuer ID.
1607
+ # @param [String] class_id
1608
+ # The ID of the class whose objects will be listed.
1609
+ # @param [Fixnum] max_results
1610
+ # Identifies the max number of results returned by a list. All results are
1611
+ # returned if `maxResults` isn't defined.
1612
+ # @param [String] token
1613
+ # Used to get the next set of results if `maxResults` is specified, but more
1614
+ # than `maxResults` objects are available in a list. For example, if you have a
1615
+ # list of 200 objects and you call list with `maxResults` set to 20, list will
1616
+ # return the first 20 objects and a token. Call list again with `maxResults` set
1617
+ # to 20 and the token to get the next 20 objects.
1618
+ # @param [String] fields
1619
+ # Selector specifying which fields to include in a partial response.
1620
+ # @param [String] quota_user
1621
+ # Available to use for quota purposes for server-side applications. Can be any
1622
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1623
+ # @param [Google::Apis::RequestOptions] options
1624
+ # Request-specific options
1625
+ #
1626
+ # @yield [result, err] Result & error if block supplied
1627
+ # @yieldparam result [Google::Apis::WalletobjectsV1::GiftCardObjectListResponse] parsed result object
1628
+ # @yieldparam err [StandardError] error object if request failed
1629
+ #
1630
+ # @return [Google::Apis::WalletobjectsV1::GiftCardObjectListResponse]
1631
+ #
1632
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1633
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1634
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1635
+ def list_giftcardobjects(class_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil, &block)
1636
+ command = make_simple_command(:get, 'walletobjects/v1/giftCardObject', options)
1637
+ command.response_representation = Google::Apis::WalletobjectsV1::GiftCardObjectListResponse::Representation
1638
+ command.response_class = Google::Apis::WalletobjectsV1::GiftCardObjectListResponse
1639
+ command.query['classId'] = class_id unless class_id.nil?
1640
+ command.query['maxResults'] = max_results unless max_results.nil?
1641
+ command.query['token'] = token unless token.nil?
1642
+ command.query['fields'] = fields unless fields.nil?
1643
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1644
+ execute_or_queue_command(command, &block)
1645
+ end
1646
+
1647
+ # Updates the gift card object referenced by the given object ID. This method
1648
+ # supports patch semantics.
1649
+ # @param [String] resource_id
1650
+ # The unique identifier for an object. This ID must be unique across all objects
1651
+ # from an issuer. This value should follow the format issuer ID. identifier
1652
+ # where the former is issued by Google and latter is chosen by you. Your unique
1653
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
1654
+ # @param [Google::Apis::WalletobjectsV1::GiftCardObject] gift_card_object_object
1655
+ # @param [String] fields
1656
+ # Selector specifying which fields to include in a partial response.
1657
+ # @param [String] quota_user
1658
+ # Available to use for quota purposes for server-side applications. Can be any
1659
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1660
+ # @param [Google::Apis::RequestOptions] options
1661
+ # Request-specific options
1662
+ #
1663
+ # @yield [result, err] Result & error if block supplied
1664
+ # @yieldparam result [Google::Apis::WalletobjectsV1::GiftCardObject] parsed result object
1665
+ # @yieldparam err [StandardError] error object if request failed
1666
+ #
1667
+ # @return [Google::Apis::WalletobjectsV1::GiftCardObject]
1668
+ #
1669
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1670
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1671
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1672
+ def patch_giftcardobject(resource_id, gift_card_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1673
+ command = make_simple_command(:patch, 'walletobjects/v1/giftCardObject/{resourceId}', options)
1674
+ command.request_representation = Google::Apis::WalletobjectsV1::GiftCardObject::Representation
1675
+ command.request_object = gift_card_object_object
1676
+ command.response_representation = Google::Apis::WalletobjectsV1::GiftCardObject::Representation
1677
+ command.response_class = Google::Apis::WalletobjectsV1::GiftCardObject
1678
+ command.params['resourceId'] = resource_id unless resource_id.nil?
1679
+ command.query['fields'] = fields unless fields.nil?
1680
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1681
+ execute_or_queue_command(command, &block)
1682
+ end
1683
+
1684
+ # Updates the gift card object referenced by the given object ID.
1685
+ # @param [String] resource_id
1686
+ # The unique identifier for an object. This ID must be unique across all objects
1687
+ # from an issuer. This value should follow the format issuer ID. identifier
1688
+ # where the former is issued by Google and latter is chosen by you. Your unique
1689
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
1690
+ # @param [Google::Apis::WalletobjectsV1::GiftCardObject] gift_card_object_object
1691
+ # @param [String] fields
1692
+ # Selector specifying which fields to include in a partial response.
1693
+ # @param [String] quota_user
1694
+ # Available to use for quota purposes for server-side applications. Can be any
1695
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1696
+ # @param [Google::Apis::RequestOptions] options
1697
+ # Request-specific options
1698
+ #
1699
+ # @yield [result, err] Result & error if block supplied
1700
+ # @yieldparam result [Google::Apis::WalletobjectsV1::GiftCardObject] parsed result object
1701
+ # @yieldparam err [StandardError] error object if request failed
1702
+ #
1703
+ # @return [Google::Apis::WalletobjectsV1::GiftCardObject]
1704
+ #
1705
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1706
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1707
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1708
+ def update_giftcardobject(resource_id, gift_card_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1709
+ command = make_simple_command(:put, 'walletobjects/v1/giftCardObject/{resourceId}', options)
1710
+ command.request_representation = Google::Apis::WalletobjectsV1::GiftCardObject::Representation
1711
+ command.request_object = gift_card_object_object
1712
+ command.response_representation = Google::Apis::WalletobjectsV1::GiftCardObject::Representation
1713
+ command.response_class = Google::Apis::WalletobjectsV1::GiftCardObject
1714
+ command.params['resourceId'] = resource_id unless resource_id.nil?
1715
+ command.query['fields'] = fields unless fields.nil?
1716
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1717
+ execute_or_queue_command(command, &block)
1718
+ end
1719
+
1720
+ # Returns the issuer with the given issuer ID.
1721
+ # @param [Fixnum] resource_id
1722
+ # The unique identifier for an issuer.
1723
+ # @param [String] fields
1724
+ # Selector specifying which fields to include in a partial response.
1725
+ # @param [String] quota_user
1726
+ # Available to use for quota purposes for server-side applications. Can be any
1727
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1728
+ # @param [Google::Apis::RequestOptions] options
1729
+ # Request-specific options
1730
+ #
1731
+ # @yield [result, err] Result & error if block supplied
1732
+ # @yieldparam result [Google::Apis::WalletobjectsV1::Issuer] parsed result object
1733
+ # @yieldparam err [StandardError] error object if request failed
1734
+ #
1735
+ # @return [Google::Apis::WalletobjectsV1::Issuer]
1736
+ #
1737
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1738
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1739
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1740
+ def get_issuer(resource_id, fields: nil, quota_user: nil, options: nil, &block)
1741
+ command = make_simple_command(:get, 'walletobjects/v1/issuer/{resourceId}', options)
1742
+ command.response_representation = Google::Apis::WalletobjectsV1::Issuer::Representation
1743
+ command.response_class = Google::Apis::WalletobjectsV1::Issuer
1744
+ command.params['resourceId'] = resource_id unless resource_id.nil?
1745
+ command.query['fields'] = fields unless fields.nil?
1746
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1747
+ execute_or_queue_command(command, &block)
1748
+ end
1749
+
1750
+ # Inserts an issuer with the given ID and properties.
1751
+ # @param [Google::Apis::WalletobjectsV1::Issuer] issuer_object
1752
+ # @param [String] fields
1753
+ # Selector specifying which fields to include in a partial response.
1754
+ # @param [String] quota_user
1755
+ # Available to use for quota purposes for server-side applications. Can be any
1756
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1757
+ # @param [Google::Apis::RequestOptions] options
1758
+ # Request-specific options
1759
+ #
1760
+ # @yield [result, err] Result & error if block supplied
1761
+ # @yieldparam result [Google::Apis::WalletobjectsV1::Issuer] parsed result object
1762
+ # @yieldparam err [StandardError] error object if request failed
1763
+ #
1764
+ # @return [Google::Apis::WalletobjectsV1::Issuer]
1765
+ #
1766
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1767
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1768
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1769
+ def insert_issuer(issuer_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1770
+ command = make_simple_command(:post, 'walletobjects/v1/issuer', options)
1771
+ command.request_representation = Google::Apis::WalletobjectsV1::Issuer::Representation
1772
+ command.request_object = issuer_object
1773
+ command.response_representation = Google::Apis::WalletobjectsV1::Issuer::Representation
1774
+ command.response_class = Google::Apis::WalletobjectsV1::Issuer
1775
+ command.query['fields'] = fields unless fields.nil?
1776
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1777
+ execute_or_queue_command(command, &block)
1778
+ end
1779
+
1780
+ # Returns a list of all issuers shared to the caller.
1781
+ # @param [String] fields
1782
+ # Selector specifying which fields to include in a partial response.
1783
+ # @param [String] quota_user
1784
+ # Available to use for quota purposes for server-side applications. Can be any
1785
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1786
+ # @param [Google::Apis::RequestOptions] options
1787
+ # Request-specific options
1788
+ #
1789
+ # @yield [result, err] Result & error if block supplied
1790
+ # @yieldparam result [Google::Apis::WalletobjectsV1::IssuerListResponse] parsed result object
1791
+ # @yieldparam err [StandardError] error object if request failed
1792
+ #
1793
+ # @return [Google::Apis::WalletobjectsV1::IssuerListResponse]
1794
+ #
1795
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1796
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1797
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1798
+ def list_issuers(fields: nil, quota_user: nil, options: nil, &block)
1799
+ command = make_simple_command(:get, 'walletobjects/v1/issuer', options)
1800
+ command.response_representation = Google::Apis::WalletobjectsV1::IssuerListResponse::Representation
1801
+ command.response_class = Google::Apis::WalletobjectsV1::IssuerListResponse
1802
+ command.query['fields'] = fields unless fields.nil?
1803
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1804
+ execute_or_queue_command(command, &block)
1805
+ end
1806
+
1807
+ # Updates the issuer referenced by the given issuer ID. This method supports
1808
+ # patch semantics.
1809
+ # @param [Fixnum] resource_id
1810
+ # The unique identifier for an issuer.
1811
+ # @param [Google::Apis::WalletobjectsV1::Issuer] issuer_object
1812
+ # @param [String] fields
1813
+ # Selector specifying which fields to include in a partial response.
1814
+ # @param [String] quota_user
1815
+ # Available to use for quota purposes for server-side applications. Can be any
1816
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1817
+ # @param [Google::Apis::RequestOptions] options
1818
+ # Request-specific options
1819
+ #
1820
+ # @yield [result, err] Result & error if block supplied
1821
+ # @yieldparam result [Google::Apis::WalletobjectsV1::Issuer] parsed result object
1822
+ # @yieldparam err [StandardError] error object if request failed
1823
+ #
1824
+ # @return [Google::Apis::WalletobjectsV1::Issuer]
1825
+ #
1826
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1827
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1828
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1829
+ def patch_issuer(resource_id, issuer_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1830
+ command = make_simple_command(:patch, 'walletobjects/v1/issuer/{resourceId}', options)
1831
+ command.request_representation = Google::Apis::WalletobjectsV1::Issuer::Representation
1832
+ command.request_object = issuer_object
1833
+ command.response_representation = Google::Apis::WalletobjectsV1::Issuer::Representation
1834
+ command.response_class = Google::Apis::WalletobjectsV1::Issuer
1835
+ command.params['resourceId'] = resource_id unless resource_id.nil?
1836
+ command.query['fields'] = fields unless fields.nil?
1837
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1838
+ execute_or_queue_command(command, &block)
1839
+ end
1840
+
1841
+ # Updates the issuer referenced by the given issuer ID.
1842
+ # @param [Fixnum] resource_id
1843
+ # The unique identifier for an issuer.
1844
+ # @param [Google::Apis::WalletobjectsV1::Issuer] issuer_object
1845
+ # @param [String] fields
1846
+ # Selector specifying which fields to include in a partial response.
1847
+ # @param [String] quota_user
1848
+ # Available to use for quota purposes for server-side applications. Can be any
1849
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1850
+ # @param [Google::Apis::RequestOptions] options
1851
+ # Request-specific options
1852
+ #
1853
+ # @yield [result, err] Result & error if block supplied
1854
+ # @yieldparam result [Google::Apis::WalletobjectsV1::Issuer] parsed result object
1855
+ # @yieldparam err [StandardError] error object if request failed
1856
+ #
1857
+ # @return [Google::Apis::WalletobjectsV1::Issuer]
1858
+ #
1859
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1860
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1861
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1862
+ def update_issuer(resource_id, issuer_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1863
+ command = make_simple_command(:put, 'walletobjects/v1/issuer/{resourceId}', options)
1864
+ command.request_representation = Google::Apis::WalletobjectsV1::Issuer::Representation
1865
+ command.request_object = issuer_object
1866
+ command.response_representation = Google::Apis::WalletobjectsV1::Issuer::Representation
1867
+ command.response_class = Google::Apis::WalletobjectsV1::Issuer
1868
+ command.params['resourceId'] = resource_id unless resource_id.nil?
1869
+ command.query['fields'] = fields unless fields.nil?
1870
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1871
+ execute_or_queue_command(command, &block)
1872
+ end
1873
+
1874
+ # Inserts the resources in the JWT.
1875
+ # @param [Google::Apis::WalletobjectsV1::JwtResource] jwt_resource_object
1876
+ # @param [String] fields
1877
+ # Selector specifying which fields to include in a partial response.
1878
+ # @param [String] quota_user
1879
+ # Available to use for quota purposes for server-side applications. Can be any
1880
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1881
+ # @param [Google::Apis::RequestOptions] options
1882
+ # Request-specific options
1883
+ #
1884
+ # @yield [result, err] Result & error if block supplied
1885
+ # @yieldparam result [Google::Apis::WalletobjectsV1::JwtInsertResponse] parsed result object
1886
+ # @yieldparam err [StandardError] error object if request failed
1887
+ #
1888
+ # @return [Google::Apis::WalletobjectsV1::JwtInsertResponse]
1889
+ #
1890
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1891
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1892
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1893
+ def insert_jwt(jwt_resource_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1894
+ command = make_simple_command(:post, 'walletobjects/v1/jwt', options)
1895
+ command.request_representation = Google::Apis::WalletobjectsV1::JwtResource::Representation
1896
+ command.request_object = jwt_resource_object
1897
+ command.response_representation = Google::Apis::WalletobjectsV1::JwtInsertResponse::Representation
1898
+ command.response_class = Google::Apis::WalletobjectsV1::JwtInsertResponse
1899
+ command.query['fields'] = fields unless fields.nil?
1900
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1901
+ execute_or_queue_command(command, &block)
1902
+ end
1903
+
1904
+ # Adds a message to the loyalty class referenced by the given class ID.
1905
+ # @param [String] resource_id
1906
+ # The unique identifier for a class. This ID must be unique across all classes
1907
+ # from an issuer. This value should follow the format issuer ID. identifier
1908
+ # where the former is issued by Google and latter is chosen by you. Your unique
1909
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
1910
+ # @param [Google::Apis::WalletobjectsV1::AddMessageRequest] add_message_request_object
1911
+ # @param [String] fields
1912
+ # Selector specifying which fields to include in a partial response.
1913
+ # @param [String] quota_user
1914
+ # Available to use for quota purposes for server-side applications. Can be any
1915
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1916
+ # @param [Google::Apis::RequestOptions] options
1917
+ # Request-specific options
1918
+ #
1919
+ # @yield [result, err] Result & error if block supplied
1920
+ # @yieldparam result [Google::Apis::WalletobjectsV1::LoyaltyClassAddMessageResponse] parsed result object
1921
+ # @yieldparam err [StandardError] error object if request failed
1922
+ #
1923
+ # @return [Google::Apis::WalletobjectsV1::LoyaltyClassAddMessageResponse]
1924
+ #
1925
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1926
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1927
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1928
+ def addmessage_loyaltyclass(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1929
+ command = make_simple_command(:post, 'walletobjects/v1/loyaltyClass/{resourceId}/addMessage', options)
1930
+ command.request_representation = Google::Apis::WalletobjectsV1::AddMessageRequest::Representation
1931
+ command.request_object = add_message_request_object
1932
+ command.response_representation = Google::Apis::WalletobjectsV1::LoyaltyClassAddMessageResponse::Representation
1933
+ command.response_class = Google::Apis::WalletobjectsV1::LoyaltyClassAddMessageResponse
1934
+ command.params['resourceId'] = resource_id unless resource_id.nil?
1935
+ command.query['fields'] = fields unless fields.nil?
1936
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1937
+ execute_or_queue_command(command, &block)
1938
+ end
1939
+
1940
+ # Returns the loyalty class with the given class ID.
1941
+ # @param [String] resource_id
1942
+ # The unique identifier for a class. This ID must be unique across all classes
1943
+ # from an issuer. This value should follow the format issuer ID. identifier
1944
+ # where the former is issued by Google and latter is chosen by you. Your unique
1945
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
1946
+ # @param [String] fields
1947
+ # Selector specifying which fields to include in a partial response.
1948
+ # @param [String] quota_user
1949
+ # Available to use for quota purposes for server-side applications. Can be any
1950
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1951
+ # @param [Google::Apis::RequestOptions] options
1952
+ # Request-specific options
1953
+ #
1954
+ # @yield [result, err] Result & error if block supplied
1955
+ # @yieldparam result [Google::Apis::WalletobjectsV1::LoyaltyClass] parsed result object
1956
+ # @yieldparam err [StandardError] error object if request failed
1957
+ #
1958
+ # @return [Google::Apis::WalletobjectsV1::LoyaltyClass]
1959
+ #
1960
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1961
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1962
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1963
+ def get_loyaltyclass(resource_id, fields: nil, quota_user: nil, options: nil, &block)
1964
+ command = make_simple_command(:get, 'walletobjects/v1/loyaltyClass/{resourceId}', options)
1965
+ command.response_representation = Google::Apis::WalletobjectsV1::LoyaltyClass::Representation
1966
+ command.response_class = Google::Apis::WalletobjectsV1::LoyaltyClass
1967
+ command.params['resourceId'] = resource_id unless resource_id.nil?
1968
+ command.query['fields'] = fields unless fields.nil?
1969
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1970
+ execute_or_queue_command(command, &block)
1971
+ end
1972
+
1973
+ # Inserts an loyalty class with the given ID and properties.
1974
+ # @param [Google::Apis::WalletobjectsV1::LoyaltyClass] loyalty_class_object
1975
+ # @param [String] fields
1976
+ # Selector specifying which fields to include in a partial response.
1977
+ # @param [String] quota_user
1978
+ # Available to use for quota purposes for server-side applications. Can be any
1979
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1980
+ # @param [Google::Apis::RequestOptions] options
1981
+ # Request-specific options
1982
+ #
1983
+ # @yield [result, err] Result & error if block supplied
1984
+ # @yieldparam result [Google::Apis::WalletobjectsV1::LoyaltyClass] parsed result object
1985
+ # @yieldparam err [StandardError] error object if request failed
1986
+ #
1987
+ # @return [Google::Apis::WalletobjectsV1::LoyaltyClass]
1988
+ #
1989
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1990
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1991
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1992
+ def insert_loyaltyclass(loyalty_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1993
+ command = make_simple_command(:post, 'walletobjects/v1/loyaltyClass', options)
1994
+ command.request_representation = Google::Apis::WalletobjectsV1::LoyaltyClass::Representation
1995
+ command.request_object = loyalty_class_object
1996
+ command.response_representation = Google::Apis::WalletobjectsV1::LoyaltyClass::Representation
1997
+ command.response_class = Google::Apis::WalletobjectsV1::LoyaltyClass
1998
+ command.query['fields'] = fields unless fields.nil?
1999
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2000
+ execute_or_queue_command(command, &block)
2001
+ end
2002
+
2003
+ # Returns a list of all loyalty classes for a given issuer ID.
2004
+ # @param [Fixnum] issuer_id
2005
+ # The ID of the issuer authorized to list classes.
2006
+ # @param [Fixnum] max_results
2007
+ # Identifies the max number of results returned by a list. All results are
2008
+ # returned if `maxResults` isn't defined.
2009
+ # @param [String] token
2010
+ # Used to get the next set of results if `maxResults` is specified, but more
2011
+ # than `maxResults` classes are available in a list. For example, if you have a
2012
+ # list of 200 classes and you call list with `maxResults` set to 20, list will
2013
+ # return the first 20 classes and a token. Call list again with `maxResults` set
2014
+ # to 20 and the token to get the next 20 classes.
2015
+ # @param [String] fields
2016
+ # Selector specifying which fields to include in a partial response.
2017
+ # @param [String] quota_user
2018
+ # Available to use for quota purposes for server-side applications. Can be any
2019
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2020
+ # @param [Google::Apis::RequestOptions] options
2021
+ # Request-specific options
2022
+ #
2023
+ # @yield [result, err] Result & error if block supplied
2024
+ # @yieldparam result [Google::Apis::WalletobjectsV1::LoyaltyClassListResponse] parsed result object
2025
+ # @yieldparam err [StandardError] error object if request failed
2026
+ #
2027
+ # @return [Google::Apis::WalletobjectsV1::LoyaltyClassListResponse]
2028
+ #
2029
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2030
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2031
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2032
+ def list_loyaltyclasses(issuer_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil, &block)
2033
+ command = make_simple_command(:get, 'walletobjects/v1/loyaltyClass', options)
2034
+ command.response_representation = Google::Apis::WalletobjectsV1::LoyaltyClassListResponse::Representation
2035
+ command.response_class = Google::Apis::WalletobjectsV1::LoyaltyClassListResponse
2036
+ command.query['issuerId'] = issuer_id unless issuer_id.nil?
2037
+ command.query['maxResults'] = max_results unless max_results.nil?
2038
+ command.query['token'] = token unless token.nil?
2039
+ command.query['fields'] = fields unless fields.nil?
2040
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2041
+ execute_or_queue_command(command, &block)
2042
+ end
2043
+
2044
+ # Updates the loyalty class referenced by the given class ID. This method
2045
+ # supports patch semantics.
2046
+ # @param [String] resource_id
2047
+ # The unique identifier for a class. This ID must be unique across all classes
2048
+ # from an issuer. This value should follow the format issuer ID. identifier
2049
+ # where the former is issued by Google and latter is chosen by you. Your unique
2050
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
2051
+ # @param [Google::Apis::WalletobjectsV1::LoyaltyClass] loyalty_class_object
2052
+ # @param [String] fields
2053
+ # Selector specifying which fields to include in a partial response.
2054
+ # @param [String] quota_user
2055
+ # Available to use for quota purposes for server-side applications. Can be any
2056
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2057
+ # @param [Google::Apis::RequestOptions] options
2058
+ # Request-specific options
2059
+ #
2060
+ # @yield [result, err] Result & error if block supplied
2061
+ # @yieldparam result [Google::Apis::WalletobjectsV1::LoyaltyClass] parsed result object
2062
+ # @yieldparam err [StandardError] error object if request failed
2063
+ #
2064
+ # @return [Google::Apis::WalletobjectsV1::LoyaltyClass]
2065
+ #
2066
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2067
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2068
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2069
+ def patch_loyaltyclass(resource_id, loyalty_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2070
+ command = make_simple_command(:patch, 'walletobjects/v1/loyaltyClass/{resourceId}', options)
2071
+ command.request_representation = Google::Apis::WalletobjectsV1::LoyaltyClass::Representation
2072
+ command.request_object = loyalty_class_object
2073
+ command.response_representation = Google::Apis::WalletobjectsV1::LoyaltyClass::Representation
2074
+ command.response_class = Google::Apis::WalletobjectsV1::LoyaltyClass
2075
+ command.params['resourceId'] = resource_id unless resource_id.nil?
2076
+ command.query['fields'] = fields unless fields.nil?
2077
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2078
+ execute_or_queue_command(command, &block)
2079
+ end
2080
+
2081
+ # Updates the loyalty class referenced by the given class ID.
2082
+ # @param [String] resource_id
2083
+ # The unique identifier for a class. This ID must be unique across all classes
2084
+ # from an issuer. This value should follow the format issuer ID. identifier
2085
+ # where the former is issued by Google and latter is chosen by you. Your unique
2086
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
2087
+ # @param [Google::Apis::WalletobjectsV1::LoyaltyClass] loyalty_class_object
2088
+ # @param [String] fields
2089
+ # Selector specifying which fields to include in a partial response.
2090
+ # @param [String] quota_user
2091
+ # Available to use for quota purposes for server-side applications. Can be any
2092
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2093
+ # @param [Google::Apis::RequestOptions] options
2094
+ # Request-specific options
2095
+ #
2096
+ # @yield [result, err] Result & error if block supplied
2097
+ # @yieldparam result [Google::Apis::WalletobjectsV1::LoyaltyClass] parsed result object
2098
+ # @yieldparam err [StandardError] error object if request failed
2099
+ #
2100
+ # @return [Google::Apis::WalletobjectsV1::LoyaltyClass]
2101
+ #
2102
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2103
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2104
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2105
+ def update_loyaltyclass(resource_id, loyalty_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2106
+ command = make_simple_command(:put, 'walletobjects/v1/loyaltyClass/{resourceId}', options)
2107
+ command.request_representation = Google::Apis::WalletobjectsV1::LoyaltyClass::Representation
2108
+ command.request_object = loyalty_class_object
2109
+ command.response_representation = Google::Apis::WalletobjectsV1::LoyaltyClass::Representation
2110
+ command.response_class = Google::Apis::WalletobjectsV1::LoyaltyClass
2111
+ command.params['resourceId'] = resource_id unless resource_id.nil?
2112
+ command.query['fields'] = fields unless fields.nil?
2113
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2114
+ execute_or_queue_command(command, &block)
2115
+ end
2116
+
2117
+ # Adds a message to the loyalty object referenced by the given object ID.
2118
+ # @param [String] resource_id
2119
+ # The unique identifier for an object. This ID must be unique across all objects
2120
+ # from an issuer. This value should follow the format issuer ID. identifier
2121
+ # where the former is issued by Google and latter is chosen by you. Your unique
2122
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
2123
+ # @param [Google::Apis::WalletobjectsV1::AddMessageRequest] add_message_request_object
2124
+ # @param [String] fields
2125
+ # Selector specifying which fields to include in a partial response.
2126
+ # @param [String] quota_user
2127
+ # Available to use for quota purposes for server-side applications. Can be any
2128
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2129
+ # @param [Google::Apis::RequestOptions] options
2130
+ # Request-specific options
2131
+ #
2132
+ # @yield [result, err] Result & error if block supplied
2133
+ # @yieldparam result [Google::Apis::WalletobjectsV1::LoyaltyObjectAddMessageResponse] parsed result object
2134
+ # @yieldparam err [StandardError] error object if request failed
2135
+ #
2136
+ # @return [Google::Apis::WalletobjectsV1::LoyaltyObjectAddMessageResponse]
2137
+ #
2138
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2139
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2140
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2141
+ def addmessage_loyaltyobject(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2142
+ command = make_simple_command(:post, 'walletobjects/v1/loyaltyObject/{resourceId}/addMessage', options)
2143
+ command.request_representation = Google::Apis::WalletobjectsV1::AddMessageRequest::Representation
2144
+ command.request_object = add_message_request_object
2145
+ command.response_representation = Google::Apis::WalletobjectsV1::LoyaltyObjectAddMessageResponse::Representation
2146
+ command.response_class = Google::Apis::WalletobjectsV1::LoyaltyObjectAddMessageResponse
2147
+ command.params['resourceId'] = resource_id unless resource_id.nil?
2148
+ command.query['fields'] = fields unless fields.nil?
2149
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2150
+ execute_or_queue_command(command, &block)
2151
+ end
2152
+
2153
+ # Returns the loyalty object with the given object ID.
2154
+ # @param [String] resource_id
2155
+ # The unique identifier for an object. This ID must be unique across all objects
2156
+ # from an issuer. This value should follow the format issuer ID. identifier
2157
+ # where the former is issued by Google and latter is chosen by you. Your unique
2158
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
2159
+ # @param [String] fields
2160
+ # Selector specifying which fields to include in a partial response.
2161
+ # @param [String] quota_user
2162
+ # Available to use for quota purposes for server-side applications. Can be any
2163
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2164
+ # @param [Google::Apis::RequestOptions] options
2165
+ # Request-specific options
2166
+ #
2167
+ # @yield [result, err] Result & error if block supplied
2168
+ # @yieldparam result [Google::Apis::WalletobjectsV1::LoyaltyObject] parsed result object
2169
+ # @yieldparam err [StandardError] error object if request failed
2170
+ #
2171
+ # @return [Google::Apis::WalletobjectsV1::LoyaltyObject]
2172
+ #
2173
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2174
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2175
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2176
+ def get_loyaltyobject(resource_id, fields: nil, quota_user: nil, options: nil, &block)
2177
+ command = make_simple_command(:get, 'walletobjects/v1/loyaltyObject/{resourceId}', options)
2178
+ command.response_representation = Google::Apis::WalletobjectsV1::LoyaltyObject::Representation
2179
+ command.response_class = Google::Apis::WalletobjectsV1::LoyaltyObject
2180
+ command.params['resourceId'] = resource_id unless resource_id.nil?
2181
+ command.query['fields'] = fields unless fields.nil?
2182
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2183
+ execute_or_queue_command(command, &block)
2184
+ end
2185
+
2186
+ # Inserts an loyalty object with the given ID and properties.
2187
+ # @param [Google::Apis::WalletobjectsV1::LoyaltyObject] loyalty_object_object
2188
+ # @param [String] fields
2189
+ # Selector specifying which fields to include in a partial response.
2190
+ # @param [String] quota_user
2191
+ # Available to use for quota purposes for server-side applications. Can be any
2192
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2193
+ # @param [Google::Apis::RequestOptions] options
2194
+ # Request-specific options
2195
+ #
2196
+ # @yield [result, err] Result & error if block supplied
2197
+ # @yieldparam result [Google::Apis::WalletobjectsV1::LoyaltyObject] parsed result object
2198
+ # @yieldparam err [StandardError] error object if request failed
2199
+ #
2200
+ # @return [Google::Apis::WalletobjectsV1::LoyaltyObject]
2201
+ #
2202
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2203
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2204
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2205
+ def insert_loyaltyobject(loyalty_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2206
+ command = make_simple_command(:post, 'walletobjects/v1/loyaltyObject', options)
2207
+ command.request_representation = Google::Apis::WalletobjectsV1::LoyaltyObject::Representation
2208
+ command.request_object = loyalty_object_object
2209
+ command.response_representation = Google::Apis::WalletobjectsV1::LoyaltyObject::Representation
2210
+ command.response_class = Google::Apis::WalletobjectsV1::LoyaltyObject
2211
+ command.query['fields'] = fields unless fields.nil?
2212
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2213
+ execute_or_queue_command(command, &block)
2214
+ end
2215
+
2216
+ # Returns a list of all loyalty objects for a given issuer ID.
2217
+ # @param [String] class_id
2218
+ # The ID of the class whose objects will be listed.
2219
+ # @param [Fixnum] max_results
2220
+ # Identifies the max number of results returned by a list. All results are
2221
+ # returned if `maxResults` isn't defined.
2222
+ # @param [String] token
2223
+ # Used to get the next set of results if `maxResults` is specified, but more
2224
+ # than `maxResults` objects are available in a list. For example, if you have a
2225
+ # list of 200 objects and you call list with `maxResults` set to 20, list will
2226
+ # return the first 20 objects and a token. Call list again with `maxResults` set
2227
+ # to 20 and the token to get the next 20 objects.
2228
+ # @param [String] fields
2229
+ # Selector specifying which fields to include in a partial response.
2230
+ # @param [String] quota_user
2231
+ # Available to use for quota purposes for server-side applications. Can be any
2232
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2233
+ # @param [Google::Apis::RequestOptions] options
2234
+ # Request-specific options
2235
+ #
2236
+ # @yield [result, err] Result & error if block supplied
2237
+ # @yieldparam result [Google::Apis::WalletobjectsV1::LoyaltyObjectListResponse] parsed result object
2238
+ # @yieldparam err [StandardError] error object if request failed
2239
+ #
2240
+ # @return [Google::Apis::WalletobjectsV1::LoyaltyObjectListResponse]
2241
+ #
2242
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2243
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2244
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2245
+ def list_loyaltyobjects(class_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil, &block)
2246
+ command = make_simple_command(:get, 'walletobjects/v1/loyaltyObject', options)
2247
+ command.response_representation = Google::Apis::WalletobjectsV1::LoyaltyObjectListResponse::Representation
2248
+ command.response_class = Google::Apis::WalletobjectsV1::LoyaltyObjectListResponse
2249
+ command.query['classId'] = class_id unless class_id.nil?
2250
+ command.query['maxResults'] = max_results unless max_results.nil?
2251
+ command.query['token'] = token unless token.nil?
2252
+ command.query['fields'] = fields unless fields.nil?
2253
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2254
+ execute_or_queue_command(command, &block)
2255
+ end
2256
+
2257
+ # Modifies linked offer objects for the loyalty object with the given ID.
2258
+ # @param [String] resource_id
2259
+ # The unique identifier for an object. This ID must be unique across all objects
2260
+ # from an issuer. This value should follow the format issuer ID. identifier
2261
+ # where the former is issued by Google and latter is chosen by you. Your unique
2262
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
2263
+ # @param [Google::Apis::WalletobjectsV1::ModifyLinkedOfferObjectsRequest] modify_linked_offer_objects_request_object
2264
+ # @param [String] fields
2265
+ # Selector specifying which fields to include in a partial response.
2266
+ # @param [String] quota_user
2267
+ # Available to use for quota purposes for server-side applications. Can be any
2268
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2269
+ # @param [Google::Apis::RequestOptions] options
2270
+ # Request-specific options
2271
+ #
2272
+ # @yield [result, err] Result & error if block supplied
2273
+ # @yieldparam result [Google::Apis::WalletobjectsV1::LoyaltyObject] parsed result object
2274
+ # @yieldparam err [StandardError] error object if request failed
2275
+ #
2276
+ # @return [Google::Apis::WalletobjectsV1::LoyaltyObject]
2277
+ #
2278
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2279
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2280
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2281
+ def modifylinkedofferobjects_loyaltyobject(resource_id, modify_linked_offer_objects_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2282
+ command = make_simple_command(:post, 'walletobjects/v1/loyaltyObject/{resourceId}/modifyLinkedOfferObjects', options)
2283
+ command.request_representation = Google::Apis::WalletobjectsV1::ModifyLinkedOfferObjectsRequest::Representation
2284
+ command.request_object = modify_linked_offer_objects_request_object
2285
+ command.response_representation = Google::Apis::WalletobjectsV1::LoyaltyObject::Representation
2286
+ command.response_class = Google::Apis::WalletobjectsV1::LoyaltyObject
2287
+ command.params['resourceId'] = resource_id unless resource_id.nil?
2288
+ command.query['fields'] = fields unless fields.nil?
2289
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2290
+ execute_or_queue_command(command, &block)
2291
+ end
2292
+
2293
+ # Updates the loyalty object referenced by the given object ID. This method
2294
+ # supports patch semantics.
2295
+ # @param [String] resource_id
2296
+ # The unique identifier for an object. This ID must be unique across all objects
2297
+ # from an issuer. This value should follow the format issuer ID. identifier
2298
+ # where the former is issued by Google and latter is chosen by you. Your unique
2299
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
2300
+ # @param [Google::Apis::WalletobjectsV1::LoyaltyObject] loyalty_object_object
2301
+ # @param [String] fields
2302
+ # Selector specifying which fields to include in a partial response.
2303
+ # @param [String] quota_user
2304
+ # Available to use for quota purposes for server-side applications. Can be any
2305
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2306
+ # @param [Google::Apis::RequestOptions] options
2307
+ # Request-specific options
2308
+ #
2309
+ # @yield [result, err] Result & error if block supplied
2310
+ # @yieldparam result [Google::Apis::WalletobjectsV1::LoyaltyObject] parsed result object
2311
+ # @yieldparam err [StandardError] error object if request failed
2312
+ #
2313
+ # @return [Google::Apis::WalletobjectsV1::LoyaltyObject]
2314
+ #
2315
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2316
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2317
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2318
+ def patch_loyaltyobject(resource_id, loyalty_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2319
+ command = make_simple_command(:patch, 'walletobjects/v1/loyaltyObject/{resourceId}', options)
2320
+ command.request_representation = Google::Apis::WalletobjectsV1::LoyaltyObject::Representation
2321
+ command.request_object = loyalty_object_object
2322
+ command.response_representation = Google::Apis::WalletobjectsV1::LoyaltyObject::Representation
2323
+ command.response_class = Google::Apis::WalletobjectsV1::LoyaltyObject
2324
+ command.params['resourceId'] = resource_id unless resource_id.nil?
2325
+ command.query['fields'] = fields unless fields.nil?
2326
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2327
+ execute_or_queue_command(command, &block)
2328
+ end
2329
+
2330
+ # Updates the loyalty object referenced by the given object ID.
2331
+ # @param [String] resource_id
2332
+ # The unique identifier for an object. This ID must be unique across all objects
2333
+ # from an issuer. This value should follow the format issuer ID. identifier
2334
+ # where the former is issued by Google and latter is chosen by you. Your unique
2335
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
2336
+ # @param [Google::Apis::WalletobjectsV1::LoyaltyObject] loyalty_object_object
2337
+ # @param [String] fields
2338
+ # Selector specifying which fields to include in a partial response.
2339
+ # @param [String] quota_user
2340
+ # Available to use for quota purposes for server-side applications. Can be any
2341
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2342
+ # @param [Google::Apis::RequestOptions] options
2343
+ # Request-specific options
2344
+ #
2345
+ # @yield [result, err] Result & error if block supplied
2346
+ # @yieldparam result [Google::Apis::WalletobjectsV1::LoyaltyObject] parsed result object
2347
+ # @yieldparam err [StandardError] error object if request failed
2348
+ #
2349
+ # @return [Google::Apis::WalletobjectsV1::LoyaltyObject]
2350
+ #
2351
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2352
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2353
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2354
+ def update_loyaltyobject(resource_id, loyalty_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2355
+ command = make_simple_command(:put, 'walletobjects/v1/loyaltyObject/{resourceId}', options)
2356
+ command.request_representation = Google::Apis::WalletobjectsV1::LoyaltyObject::Representation
2357
+ command.request_object = loyalty_object_object
2358
+ command.response_representation = Google::Apis::WalletobjectsV1::LoyaltyObject::Representation
2359
+ command.response_class = Google::Apis::WalletobjectsV1::LoyaltyObject
2360
+ command.params['resourceId'] = resource_id unless resource_id.nil?
2361
+ command.query['fields'] = fields unless fields.nil?
2362
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2363
+ execute_or_queue_command(command, &block)
2364
+ end
2365
+
2366
+ # Downloads rotating barcode values for the transit object referenced by the
2367
+ # given object ID.
2368
+ # @param [String] resource_id
2369
+ # The unique identifier for an object. This ID must be unique across all objects
2370
+ # from an issuer. This value should follow the format issuer ID. identifier
2371
+ # where the former is issued by Google and latter is chosen by you. Your unique
2372
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
2373
+ # @param [String] fields
2374
+ # Selector specifying which fields to include in a partial response.
2375
+ # @param [String] quota_user
2376
+ # Available to use for quota purposes for server-side applications. Can be any
2377
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2378
+ # @param [IO, String] download_dest
2379
+ # IO stream or filename to receive content download
2380
+ # @param [Google::Apis::RequestOptions] options
2381
+ # Request-specific options
2382
+ #
2383
+ # @yield [result, err] Result & error if block supplied
2384
+ # @yieldparam result [Google::Apis::WalletobjectsV1::Media] parsed result object
2385
+ # @yieldparam err [StandardError] error object if request failed
2386
+ #
2387
+ # @return [Google::Apis::WalletobjectsV1::Media]
2388
+ #
2389
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2390
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2391
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2392
+ def download_medium(resource_id, fields: nil, quota_user: nil, download_dest: nil, options: nil, &block)
2393
+ if download_dest.nil?
2394
+ command = make_simple_command(:get, 'walletobjects/v1/transitObject/{resourceId}/downloadRotatingBarcodeValues', options)
2395
+ else
2396
+ command = make_download_command(:get, 'walletobjects/v1/transitObject/{resourceId}/downloadRotatingBarcodeValues', options)
2397
+ command.download_dest = download_dest
2398
+ end
2399
+ command.response_representation = Google::Apis::WalletobjectsV1::Media::Representation
2400
+ command.response_class = Google::Apis::WalletobjectsV1::Media
2401
+ command.params['resourceId'] = resource_id unless resource_id.nil?
2402
+ command.query['fields'] = fields unless fields.nil?
2403
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2404
+ execute_or_queue_command(command, &block)
2405
+ end
2406
+
2407
+ # Uploads rotating barcode values for the transit object referenced by the given
2408
+ # object ID. Note the max upload size is specified in google3/production/config/
2409
+ # cdd/apps-upload/customers/payments-consumer-passes/config.gcl and enforced by
2410
+ # Scotty.
2411
+ # @param [String] resource_id
2412
+ # The unique identifier for an object. This ID must be unique across all objects
2413
+ # from an issuer. This value should follow the format issuer ID. identifier
2414
+ # where the former is issued by Google and latter is chosen by you. Your unique
2415
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
2416
+ # @param [Google::Apis::WalletobjectsV1::TransitObjectUploadRotatingBarcodeValuesRequest] transit_object_upload_rotating_barcode_values_request_object
2417
+ # @param [String] fields
2418
+ # Selector specifying which fields to include in a partial response.
2419
+ # @param [String] quota_user
2420
+ # Available to use for quota purposes for server-side applications. Can be any
2421
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2422
+ # @param [IO, String] upload_source
2423
+ # IO stream or filename containing content to upload
2424
+ # @param [String] content_type
2425
+ # Content type of the uploaded content.
2426
+ # @param [Google::Apis::RequestOptions] options
2427
+ # Request-specific options
2428
+ #
2429
+ # @yield [result, err] Result & error if block supplied
2430
+ # @yieldparam result [Google::Apis::WalletobjectsV1::TransitObjectUploadRotatingBarcodeValuesResponse] parsed result object
2431
+ # @yieldparam err [StandardError] error object if request failed
2432
+ #
2433
+ # @return [Google::Apis::WalletobjectsV1::TransitObjectUploadRotatingBarcodeValuesResponse]
2434
+ #
2435
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2436
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2437
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2438
+ def upload_medium(resource_id, transit_object_upload_rotating_barcode_values_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block)
2439
+ if upload_source.nil?
2440
+ command = make_simple_command(:post, 'walletobjects/v1/transitObject/{resourceId}/uploadRotatingBarcodeValues', options)
2441
+ else
2442
+ command = make_upload_command(:post, 'walletobjects/v1/transitObject/{resourceId}/uploadRotatingBarcodeValues', options)
2443
+ command.upload_source = upload_source
2444
+ command.upload_content_type = content_type
2445
+ end
2446
+ command.request_representation = Google::Apis::WalletobjectsV1::TransitObjectUploadRotatingBarcodeValuesRequest::Representation
2447
+ command.request_object = transit_object_upload_rotating_barcode_values_request_object
2448
+ command.response_representation = Google::Apis::WalletobjectsV1::TransitObjectUploadRotatingBarcodeValuesResponse::Representation
2449
+ command.response_class = Google::Apis::WalletobjectsV1::TransitObjectUploadRotatingBarcodeValuesResponse
2450
+ command.params['resourceId'] = resource_id unless resource_id.nil?
2451
+ command.query['fields'] = fields unless fields.nil?
2452
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2453
+ execute_or_queue_command(command, &block)
2454
+ end
2455
+
2456
+ # Adds a message to the offer class referenced by the given class ID.
2457
+ # @param [String] resource_id
2458
+ # The unique identifier for a class. This ID must be unique across all classes
2459
+ # from an issuer. This value should follow the format issuer ID. identifier
2460
+ # where the former is issued by Google and latter is chosen by you. Your unique
2461
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
2462
+ # @param [Google::Apis::WalletobjectsV1::AddMessageRequest] add_message_request_object
2463
+ # @param [String] fields
2464
+ # Selector specifying which fields to include in a partial response.
2465
+ # @param [String] quota_user
2466
+ # Available to use for quota purposes for server-side applications. Can be any
2467
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2468
+ # @param [Google::Apis::RequestOptions] options
2469
+ # Request-specific options
2470
+ #
2471
+ # @yield [result, err] Result & error if block supplied
2472
+ # @yieldparam result [Google::Apis::WalletobjectsV1::OfferClassAddMessageResponse] parsed result object
2473
+ # @yieldparam err [StandardError] error object if request failed
2474
+ #
2475
+ # @return [Google::Apis::WalletobjectsV1::OfferClassAddMessageResponse]
2476
+ #
2477
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2478
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2479
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2480
+ def addmessage_offerclass(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2481
+ command = make_simple_command(:post, 'walletobjects/v1/offerClass/{resourceId}/addMessage', options)
2482
+ command.request_representation = Google::Apis::WalletobjectsV1::AddMessageRequest::Representation
2483
+ command.request_object = add_message_request_object
2484
+ command.response_representation = Google::Apis::WalletobjectsV1::OfferClassAddMessageResponse::Representation
2485
+ command.response_class = Google::Apis::WalletobjectsV1::OfferClassAddMessageResponse
2486
+ command.params['resourceId'] = resource_id unless resource_id.nil?
2487
+ command.query['fields'] = fields unless fields.nil?
2488
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2489
+ execute_or_queue_command(command, &block)
2490
+ end
2491
+
2492
+ # Returns the offer class with the given class ID.
2493
+ # @param [String] resource_id
2494
+ # The unique identifier for a class. This ID must be unique across all classes
2495
+ # from an issuer. This value should follow the format issuer ID. identifier
2496
+ # where the former is issued by Google and latter is chosen by you. Your unique
2497
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
2498
+ # @param [String] fields
2499
+ # Selector specifying which fields to include in a partial response.
2500
+ # @param [String] quota_user
2501
+ # Available to use for quota purposes for server-side applications. Can be any
2502
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2503
+ # @param [Google::Apis::RequestOptions] options
2504
+ # Request-specific options
2505
+ #
2506
+ # @yield [result, err] Result & error if block supplied
2507
+ # @yieldparam result [Google::Apis::WalletobjectsV1::OfferClass] parsed result object
2508
+ # @yieldparam err [StandardError] error object if request failed
2509
+ #
2510
+ # @return [Google::Apis::WalletobjectsV1::OfferClass]
2511
+ #
2512
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2513
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2514
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2515
+ def get_offerclass(resource_id, fields: nil, quota_user: nil, options: nil, &block)
2516
+ command = make_simple_command(:get, 'walletobjects/v1/offerClass/{resourceId}', options)
2517
+ command.response_representation = Google::Apis::WalletobjectsV1::OfferClass::Representation
2518
+ command.response_class = Google::Apis::WalletobjectsV1::OfferClass
2519
+ command.params['resourceId'] = resource_id unless resource_id.nil?
2520
+ command.query['fields'] = fields unless fields.nil?
2521
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2522
+ execute_or_queue_command(command, &block)
2523
+ end
2524
+
2525
+ # Inserts an offer class with the given ID and properties.
2526
+ # @param [Google::Apis::WalletobjectsV1::OfferClass] offer_class_object
2527
+ # @param [String] fields
2528
+ # Selector specifying which fields to include in a partial response.
2529
+ # @param [String] quota_user
2530
+ # Available to use for quota purposes for server-side applications. Can be any
2531
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2532
+ # @param [Google::Apis::RequestOptions] options
2533
+ # Request-specific options
2534
+ #
2535
+ # @yield [result, err] Result & error if block supplied
2536
+ # @yieldparam result [Google::Apis::WalletobjectsV1::OfferClass] parsed result object
2537
+ # @yieldparam err [StandardError] error object if request failed
2538
+ #
2539
+ # @return [Google::Apis::WalletobjectsV1::OfferClass]
2540
+ #
2541
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2542
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2543
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2544
+ def insert_offerclass(offer_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2545
+ command = make_simple_command(:post, 'walletobjects/v1/offerClass', options)
2546
+ command.request_representation = Google::Apis::WalletobjectsV1::OfferClass::Representation
2547
+ command.request_object = offer_class_object
2548
+ command.response_representation = Google::Apis::WalletobjectsV1::OfferClass::Representation
2549
+ command.response_class = Google::Apis::WalletobjectsV1::OfferClass
2550
+ command.query['fields'] = fields unless fields.nil?
2551
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2552
+ execute_or_queue_command(command, &block)
2553
+ end
2554
+
2555
+ # Returns a list of all offer classes for a given issuer ID.
2556
+ # @param [Fixnum] issuer_id
2557
+ # The ID of the issuer authorized to list classes.
2558
+ # @param [Fixnum] max_results
2559
+ # Identifies the max number of results returned by a list. All results are
2560
+ # returned if `maxResults` isn't defined.
2561
+ # @param [String] token
2562
+ # Used to get the next set of results if `maxResults` is specified, but more
2563
+ # than `maxResults` classes are available in a list. For example, if you have a
2564
+ # list of 200 classes and you call list with `maxResults` set to 20, list will
2565
+ # return the first 20 classes and a token. Call list again with `maxResults` set
2566
+ # to 20 and the token to get the next 20 classes.
2567
+ # @param [String] fields
2568
+ # Selector specifying which fields to include in a partial response.
2569
+ # @param [String] quota_user
2570
+ # Available to use for quota purposes for server-side applications. Can be any
2571
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2572
+ # @param [Google::Apis::RequestOptions] options
2573
+ # Request-specific options
2574
+ #
2575
+ # @yield [result, err] Result & error if block supplied
2576
+ # @yieldparam result [Google::Apis::WalletobjectsV1::OfferClassListResponse] parsed result object
2577
+ # @yieldparam err [StandardError] error object if request failed
2578
+ #
2579
+ # @return [Google::Apis::WalletobjectsV1::OfferClassListResponse]
2580
+ #
2581
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2582
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2583
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2584
+ def list_offerclasses(issuer_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil, &block)
2585
+ command = make_simple_command(:get, 'walletobjects/v1/offerClass', options)
2586
+ command.response_representation = Google::Apis::WalletobjectsV1::OfferClassListResponse::Representation
2587
+ command.response_class = Google::Apis::WalletobjectsV1::OfferClassListResponse
2588
+ command.query['issuerId'] = issuer_id unless issuer_id.nil?
2589
+ command.query['maxResults'] = max_results unless max_results.nil?
2590
+ command.query['token'] = token unless token.nil?
2591
+ command.query['fields'] = fields unless fields.nil?
2592
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2593
+ execute_or_queue_command(command, &block)
2594
+ end
2595
+
2596
+ # Updates the offer class referenced by the given class ID. This method supports
2597
+ # patch semantics.
2598
+ # @param [String] resource_id
2599
+ # The unique identifier for a class. This ID must be unique across all classes
2600
+ # from an issuer. This value should follow the format issuer ID. identifier
2601
+ # where the former is issued by Google and latter is chosen by you. Your unique
2602
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
2603
+ # @param [Google::Apis::WalletobjectsV1::OfferClass] offer_class_object
2604
+ # @param [String] fields
2605
+ # Selector specifying which fields to include in a partial response.
2606
+ # @param [String] quota_user
2607
+ # Available to use for quota purposes for server-side applications. Can be any
2608
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2609
+ # @param [Google::Apis::RequestOptions] options
2610
+ # Request-specific options
2611
+ #
2612
+ # @yield [result, err] Result & error if block supplied
2613
+ # @yieldparam result [Google::Apis::WalletobjectsV1::OfferClass] parsed result object
2614
+ # @yieldparam err [StandardError] error object if request failed
2615
+ #
2616
+ # @return [Google::Apis::WalletobjectsV1::OfferClass]
2617
+ #
2618
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2619
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2620
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2621
+ def patch_offerclass(resource_id, offer_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2622
+ command = make_simple_command(:patch, 'walletobjects/v1/offerClass/{resourceId}', options)
2623
+ command.request_representation = Google::Apis::WalletobjectsV1::OfferClass::Representation
2624
+ command.request_object = offer_class_object
2625
+ command.response_representation = Google::Apis::WalletobjectsV1::OfferClass::Representation
2626
+ command.response_class = Google::Apis::WalletobjectsV1::OfferClass
2627
+ command.params['resourceId'] = resource_id unless resource_id.nil?
2628
+ command.query['fields'] = fields unless fields.nil?
2629
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2630
+ execute_or_queue_command(command, &block)
2631
+ end
2632
+
2633
+ # Updates the offer class referenced by the given class ID.
2634
+ # @param [String] resource_id
2635
+ # The unique identifier for a class. This ID must be unique across all classes
2636
+ # from an issuer. This value should follow the format issuer ID. identifier
2637
+ # where the former is issued by Google and latter is chosen by you. Your unique
2638
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
2639
+ # @param [Google::Apis::WalletobjectsV1::OfferClass] offer_class_object
2640
+ # @param [String] fields
2641
+ # Selector specifying which fields to include in a partial response.
2642
+ # @param [String] quota_user
2643
+ # Available to use for quota purposes for server-side applications. Can be any
2644
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2645
+ # @param [Google::Apis::RequestOptions] options
2646
+ # Request-specific options
2647
+ #
2648
+ # @yield [result, err] Result & error if block supplied
2649
+ # @yieldparam result [Google::Apis::WalletobjectsV1::OfferClass] parsed result object
2650
+ # @yieldparam err [StandardError] error object if request failed
2651
+ #
2652
+ # @return [Google::Apis::WalletobjectsV1::OfferClass]
2653
+ #
2654
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2655
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2656
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2657
+ def update_offerclass(resource_id, offer_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2658
+ command = make_simple_command(:put, 'walletobjects/v1/offerClass/{resourceId}', options)
2659
+ command.request_representation = Google::Apis::WalletobjectsV1::OfferClass::Representation
2660
+ command.request_object = offer_class_object
2661
+ command.response_representation = Google::Apis::WalletobjectsV1::OfferClass::Representation
2662
+ command.response_class = Google::Apis::WalletobjectsV1::OfferClass
2663
+ command.params['resourceId'] = resource_id unless resource_id.nil?
2664
+ command.query['fields'] = fields unless fields.nil?
2665
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2666
+ execute_or_queue_command(command, &block)
2667
+ end
2668
+
2669
+ # Adds a message to the offer object referenced by the given object ID.
2670
+ # @param [String] resource_id
2671
+ # The unique identifier for an object. This ID must be unique across all objects
2672
+ # from an issuer. This value should follow the format issuer ID. identifier
2673
+ # where the former is issued by Google and latter is chosen by you. Your unique
2674
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
2675
+ # @param [Google::Apis::WalletobjectsV1::AddMessageRequest] add_message_request_object
2676
+ # @param [String] fields
2677
+ # Selector specifying which fields to include in a partial response.
2678
+ # @param [String] quota_user
2679
+ # Available to use for quota purposes for server-side applications. Can be any
2680
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2681
+ # @param [Google::Apis::RequestOptions] options
2682
+ # Request-specific options
2683
+ #
2684
+ # @yield [result, err] Result & error if block supplied
2685
+ # @yieldparam result [Google::Apis::WalletobjectsV1::OfferObjectAddMessageResponse] parsed result object
2686
+ # @yieldparam err [StandardError] error object if request failed
2687
+ #
2688
+ # @return [Google::Apis::WalletobjectsV1::OfferObjectAddMessageResponse]
2689
+ #
2690
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2691
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2692
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2693
+ def addmessage_offerobject(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2694
+ command = make_simple_command(:post, 'walletobjects/v1/offerObject/{resourceId}/addMessage', options)
2695
+ command.request_representation = Google::Apis::WalletobjectsV1::AddMessageRequest::Representation
2696
+ command.request_object = add_message_request_object
2697
+ command.response_representation = Google::Apis::WalletobjectsV1::OfferObjectAddMessageResponse::Representation
2698
+ command.response_class = Google::Apis::WalletobjectsV1::OfferObjectAddMessageResponse
2699
+ command.params['resourceId'] = resource_id unless resource_id.nil?
2700
+ command.query['fields'] = fields unless fields.nil?
2701
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2702
+ execute_or_queue_command(command, &block)
2703
+ end
2704
+
2705
+ # Returns the offer object with the given object ID.
2706
+ # @param [String] resource_id
2707
+ # The unique identifier for an object. This ID must be unique across all objects
2708
+ # from an issuer. This value should follow the format issuer ID. identifier
2709
+ # where the former is issued by Google and latter is chosen by you. Your unique
2710
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
2711
+ # @param [String] fields
2712
+ # Selector specifying which fields to include in a partial response.
2713
+ # @param [String] quota_user
2714
+ # Available to use for quota purposes for server-side applications. Can be any
2715
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2716
+ # @param [Google::Apis::RequestOptions] options
2717
+ # Request-specific options
2718
+ #
2719
+ # @yield [result, err] Result & error if block supplied
2720
+ # @yieldparam result [Google::Apis::WalletobjectsV1::OfferObject] parsed result object
2721
+ # @yieldparam err [StandardError] error object if request failed
2722
+ #
2723
+ # @return [Google::Apis::WalletobjectsV1::OfferObject]
2724
+ #
2725
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2726
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2727
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2728
+ def get_offerobject(resource_id, fields: nil, quota_user: nil, options: nil, &block)
2729
+ command = make_simple_command(:get, 'walletobjects/v1/offerObject/{resourceId}', options)
2730
+ command.response_representation = Google::Apis::WalletobjectsV1::OfferObject::Representation
2731
+ command.response_class = Google::Apis::WalletobjectsV1::OfferObject
2732
+ command.params['resourceId'] = resource_id unless resource_id.nil?
2733
+ command.query['fields'] = fields unless fields.nil?
2734
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2735
+ execute_or_queue_command(command, &block)
2736
+ end
2737
+
2738
+ # Inserts an offer object with the given ID and properties.
2739
+ # @param [Google::Apis::WalletobjectsV1::OfferObject] offer_object_object
2740
+ # @param [String] fields
2741
+ # Selector specifying which fields to include in a partial response.
2742
+ # @param [String] quota_user
2743
+ # Available to use for quota purposes for server-side applications. Can be any
2744
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2745
+ # @param [Google::Apis::RequestOptions] options
2746
+ # Request-specific options
2747
+ #
2748
+ # @yield [result, err] Result & error if block supplied
2749
+ # @yieldparam result [Google::Apis::WalletobjectsV1::OfferObject] parsed result object
2750
+ # @yieldparam err [StandardError] error object if request failed
2751
+ #
2752
+ # @return [Google::Apis::WalletobjectsV1::OfferObject]
2753
+ #
2754
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2755
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2756
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2757
+ def insert_offerobject(offer_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2758
+ command = make_simple_command(:post, 'walletobjects/v1/offerObject', options)
2759
+ command.request_representation = Google::Apis::WalletobjectsV1::OfferObject::Representation
2760
+ command.request_object = offer_object_object
2761
+ command.response_representation = Google::Apis::WalletobjectsV1::OfferObject::Representation
2762
+ command.response_class = Google::Apis::WalletobjectsV1::OfferObject
2763
+ command.query['fields'] = fields unless fields.nil?
2764
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2765
+ execute_or_queue_command(command, &block)
2766
+ end
2767
+
2768
+ # Returns a list of all offer objects for a given issuer ID.
2769
+ # @param [String] class_id
2770
+ # The ID of the class whose objects will be listed.
2771
+ # @param [Fixnum] max_results
2772
+ # Identifies the max number of results returned by a list. All results are
2773
+ # returned if `maxResults` isn't defined.
2774
+ # @param [String] token
2775
+ # Used to get the next set of results if `maxResults` is specified, but more
2776
+ # than `maxResults` objects are available in a list. For example, if you have a
2777
+ # list of 200 objects and you call list with `maxResults` set to 20, list will
2778
+ # return the first 20 objects and a token. Call list again with `maxResults` set
2779
+ # to 20 and the token to get the next 20 objects.
2780
+ # @param [String] fields
2781
+ # Selector specifying which fields to include in a partial response.
2782
+ # @param [String] quota_user
2783
+ # Available to use for quota purposes for server-side applications. Can be any
2784
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2785
+ # @param [Google::Apis::RequestOptions] options
2786
+ # Request-specific options
2787
+ #
2788
+ # @yield [result, err] Result & error if block supplied
2789
+ # @yieldparam result [Google::Apis::WalletobjectsV1::OfferObjectListResponse] parsed result object
2790
+ # @yieldparam err [StandardError] error object if request failed
2791
+ #
2792
+ # @return [Google::Apis::WalletobjectsV1::OfferObjectListResponse]
2793
+ #
2794
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2795
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2796
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2797
+ def list_offerobjects(class_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil, &block)
2798
+ command = make_simple_command(:get, 'walletobjects/v1/offerObject', options)
2799
+ command.response_representation = Google::Apis::WalletobjectsV1::OfferObjectListResponse::Representation
2800
+ command.response_class = Google::Apis::WalletobjectsV1::OfferObjectListResponse
2801
+ command.query['classId'] = class_id unless class_id.nil?
2802
+ command.query['maxResults'] = max_results unless max_results.nil?
2803
+ command.query['token'] = token unless token.nil?
2804
+ command.query['fields'] = fields unless fields.nil?
2805
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2806
+ execute_or_queue_command(command, &block)
2807
+ end
2808
+
2809
+ # Updates the offer object referenced by the given object ID. This method
2810
+ # supports patch semantics.
2811
+ # @param [String] resource_id
2812
+ # The unique identifier for an object. This ID must be unique across all objects
2813
+ # from an issuer. This value should follow the format issuer ID. identifier
2814
+ # where the former is issued by Google and latter is chosen by you. Your unique
2815
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
2816
+ # @param [Google::Apis::WalletobjectsV1::OfferObject] offer_object_object
2817
+ # @param [String] fields
2818
+ # Selector specifying which fields to include in a partial response.
2819
+ # @param [String] quota_user
2820
+ # Available to use for quota purposes for server-side applications. Can be any
2821
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2822
+ # @param [Google::Apis::RequestOptions] options
2823
+ # Request-specific options
2824
+ #
2825
+ # @yield [result, err] Result & error if block supplied
2826
+ # @yieldparam result [Google::Apis::WalletobjectsV1::OfferObject] parsed result object
2827
+ # @yieldparam err [StandardError] error object if request failed
2828
+ #
2829
+ # @return [Google::Apis::WalletobjectsV1::OfferObject]
2830
+ #
2831
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2832
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2833
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2834
+ def patch_offerobject(resource_id, offer_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2835
+ command = make_simple_command(:patch, 'walletobjects/v1/offerObject/{resourceId}', options)
2836
+ command.request_representation = Google::Apis::WalletobjectsV1::OfferObject::Representation
2837
+ command.request_object = offer_object_object
2838
+ command.response_representation = Google::Apis::WalletobjectsV1::OfferObject::Representation
2839
+ command.response_class = Google::Apis::WalletobjectsV1::OfferObject
2840
+ command.params['resourceId'] = resource_id unless resource_id.nil?
2841
+ command.query['fields'] = fields unless fields.nil?
2842
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2843
+ execute_or_queue_command(command, &block)
2844
+ end
2845
+
2846
+ # Updates the offer object referenced by the given object ID.
2847
+ # @param [String] resource_id
2848
+ # The unique identifier for an object. This ID must be unique across all objects
2849
+ # from an issuer. This value should follow the format issuer ID. identifier
2850
+ # where the former is issued by Google and latter is chosen by you. Your unique
2851
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
2852
+ # @param [Google::Apis::WalletobjectsV1::OfferObject] offer_object_object
2853
+ # @param [String] fields
2854
+ # Selector specifying which fields to include in a partial response.
2855
+ # @param [String] quota_user
2856
+ # Available to use for quota purposes for server-side applications. Can be any
2857
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2858
+ # @param [Google::Apis::RequestOptions] options
2859
+ # Request-specific options
2860
+ #
2861
+ # @yield [result, err] Result & error if block supplied
2862
+ # @yieldparam result [Google::Apis::WalletobjectsV1::OfferObject] parsed result object
2863
+ # @yieldparam err [StandardError] error object if request failed
2864
+ #
2865
+ # @return [Google::Apis::WalletobjectsV1::OfferObject]
2866
+ #
2867
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2868
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2869
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2870
+ def update_offerobject(resource_id, offer_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2871
+ command = make_simple_command(:put, 'walletobjects/v1/offerObject/{resourceId}', options)
2872
+ command.request_representation = Google::Apis::WalletobjectsV1::OfferObject::Representation
2873
+ command.request_object = offer_object_object
2874
+ command.response_representation = Google::Apis::WalletobjectsV1::OfferObject::Representation
2875
+ command.response_class = Google::Apis::WalletobjectsV1::OfferObject
2876
+ command.params['resourceId'] = resource_id unless resource_id.nil?
2877
+ command.query['fields'] = fields unless fields.nil?
2878
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2879
+ execute_or_queue_command(command, &block)
2880
+ end
2881
+
2882
+ # Returns the permissions for the given issuer id.
2883
+ # @param [Fixnum] resource_id
2884
+ # The unique identifier for an issuer. This ID must be unique across all issuers.
2885
+ # @param [String] fields
2886
+ # Selector specifying which fields to include in a partial response.
2887
+ # @param [String] quota_user
2888
+ # Available to use for quota purposes for server-side applications. Can be any
2889
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2890
+ # @param [Google::Apis::RequestOptions] options
2891
+ # Request-specific options
2892
+ #
2893
+ # @yield [result, err] Result & error if block supplied
2894
+ # @yieldparam result [Google::Apis::WalletobjectsV1::Permissions] parsed result object
2895
+ # @yieldparam err [StandardError] error object if request failed
2896
+ #
2897
+ # @return [Google::Apis::WalletobjectsV1::Permissions]
2898
+ #
2899
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2900
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2901
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2902
+ def get_permission(resource_id, fields: nil, quota_user: nil, options: nil, &block)
2903
+ command = make_simple_command(:get, 'walletobjects/v1/permissions/{resourceId}', options)
2904
+ command.response_representation = Google::Apis::WalletobjectsV1::Permissions::Representation
2905
+ command.response_class = Google::Apis::WalletobjectsV1::Permissions
2906
+ command.params['resourceId'] = resource_id unless resource_id.nil?
2907
+ command.query['fields'] = fields unless fields.nil?
2908
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2909
+ execute_or_queue_command(command, &block)
2910
+ end
2911
+
2912
+ # Updates the permissions for the given issuer.
2913
+ # @param [Fixnum] resource_id
2914
+ # The unique identifier for an issuer. This ID must be unique across all issuers.
2915
+ # @param [Google::Apis::WalletobjectsV1::Permissions] permissions_object
2916
+ # @param [String] fields
2917
+ # Selector specifying which fields to include in a partial response.
2918
+ # @param [String] quota_user
2919
+ # Available to use for quota purposes for server-side applications. Can be any
2920
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2921
+ # @param [Google::Apis::RequestOptions] options
2922
+ # Request-specific options
2923
+ #
2924
+ # @yield [result, err] Result & error if block supplied
2925
+ # @yieldparam result [Google::Apis::WalletobjectsV1::Permissions] parsed result object
2926
+ # @yieldparam err [StandardError] error object if request failed
2927
+ #
2928
+ # @return [Google::Apis::WalletobjectsV1::Permissions]
2929
+ #
2930
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2931
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2932
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2933
+ def update_permission(resource_id, permissions_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2934
+ command = make_simple_command(:put, 'walletobjects/v1/permissions/{resourceId}', options)
2935
+ command.request_representation = Google::Apis::WalletobjectsV1::Permissions::Representation
2936
+ command.request_object = permissions_object
2937
+ command.response_representation = Google::Apis::WalletobjectsV1::Permissions::Representation
2938
+ command.response_class = Google::Apis::WalletobjectsV1::Permissions
2939
+ command.params['resourceId'] = resource_id unless resource_id.nil?
2940
+ command.query['fields'] = fields unless fields.nil?
2941
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2942
+ execute_or_queue_command(command, &block)
2943
+ end
2944
+
2945
+ # Inserts the smart tap.
2946
+ # @param [Google::Apis::WalletobjectsV1::SmartTap] smart_tap_object
2947
+ # @param [String] fields
2948
+ # Selector specifying which fields to include in a partial response.
2949
+ # @param [String] quota_user
2950
+ # Available to use for quota purposes for server-side applications. Can be any
2951
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2952
+ # @param [Google::Apis::RequestOptions] options
2953
+ # Request-specific options
2954
+ #
2955
+ # @yield [result, err] Result & error if block supplied
2956
+ # @yieldparam result [Google::Apis::WalletobjectsV1::SmartTap] parsed result object
2957
+ # @yieldparam err [StandardError] error object if request failed
2958
+ #
2959
+ # @return [Google::Apis::WalletobjectsV1::SmartTap]
2960
+ #
2961
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2962
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2963
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2964
+ def insert_smarttap(smart_tap_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2965
+ command = make_simple_command(:post, 'walletobjects/v1/smartTap', options)
2966
+ command.request_representation = Google::Apis::WalletobjectsV1::SmartTap::Representation
2967
+ command.request_object = smart_tap_object
2968
+ command.response_representation = Google::Apis::WalletobjectsV1::SmartTap::Representation
2969
+ command.response_class = Google::Apis::WalletobjectsV1::SmartTap
2970
+ command.query['fields'] = fields unless fields.nil?
2971
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2972
+ execute_or_queue_command(command, &block)
2973
+ end
2974
+
2975
+ # Adds a message to the transit class referenced by the given class ID.
2976
+ # @param [String] resource_id
2977
+ # The unique identifier for a class. This ID must be unique across all classes
2978
+ # from an issuer. This value should follow the format issuer ID. identifier
2979
+ # where the former is issued by Google and latter is chosen by you. Your unique
2980
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
2981
+ # @param [Google::Apis::WalletobjectsV1::AddMessageRequest] add_message_request_object
2982
+ # @param [String] fields
2983
+ # Selector specifying which fields to include in a partial response.
2984
+ # @param [String] quota_user
2985
+ # Available to use for quota purposes for server-side applications. Can be any
2986
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2987
+ # @param [Google::Apis::RequestOptions] options
2988
+ # Request-specific options
2989
+ #
2990
+ # @yield [result, err] Result & error if block supplied
2991
+ # @yieldparam result [Google::Apis::WalletobjectsV1::TransitClassAddMessageResponse] parsed result object
2992
+ # @yieldparam err [StandardError] error object if request failed
2993
+ #
2994
+ # @return [Google::Apis::WalletobjectsV1::TransitClassAddMessageResponse]
2995
+ #
2996
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2997
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2998
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2999
+ def addmessage_transitclass(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3000
+ command = make_simple_command(:post, 'walletobjects/v1/transitClass/{resourceId}/addMessage', options)
3001
+ command.request_representation = Google::Apis::WalletobjectsV1::AddMessageRequest::Representation
3002
+ command.request_object = add_message_request_object
3003
+ command.response_representation = Google::Apis::WalletobjectsV1::TransitClassAddMessageResponse::Representation
3004
+ command.response_class = Google::Apis::WalletobjectsV1::TransitClassAddMessageResponse
3005
+ command.params['resourceId'] = resource_id unless resource_id.nil?
3006
+ command.query['fields'] = fields unless fields.nil?
3007
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3008
+ execute_or_queue_command(command, &block)
3009
+ end
3010
+
3011
+ # Returns the transit class with the given class ID.
3012
+ # @param [String] resource_id
3013
+ # The unique identifier for a class. This ID must be unique across all classes
3014
+ # from an issuer. This value should follow the format issuer ID. identifier
3015
+ # where the former is issued by Google and latter is chosen by you. Your unique
3016
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
3017
+ # @param [String] fields
3018
+ # Selector specifying which fields to include in a partial response.
3019
+ # @param [String] quota_user
3020
+ # Available to use for quota purposes for server-side applications. Can be any
3021
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3022
+ # @param [Google::Apis::RequestOptions] options
3023
+ # Request-specific options
3024
+ #
3025
+ # @yield [result, err] Result & error if block supplied
3026
+ # @yieldparam result [Google::Apis::WalletobjectsV1::TransitClass] parsed result object
3027
+ # @yieldparam err [StandardError] error object if request failed
3028
+ #
3029
+ # @return [Google::Apis::WalletobjectsV1::TransitClass]
3030
+ #
3031
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3032
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3033
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3034
+ def get_transitclass(resource_id, fields: nil, quota_user: nil, options: nil, &block)
3035
+ command = make_simple_command(:get, 'walletobjects/v1/transitClass/{resourceId}', options)
3036
+ command.response_representation = Google::Apis::WalletobjectsV1::TransitClass::Representation
3037
+ command.response_class = Google::Apis::WalletobjectsV1::TransitClass
3038
+ command.params['resourceId'] = resource_id unless resource_id.nil?
3039
+ command.query['fields'] = fields unless fields.nil?
3040
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3041
+ execute_or_queue_command(command, &block)
3042
+ end
3043
+
3044
+ # Inserts a transit class with the given ID and properties.
3045
+ # @param [Google::Apis::WalletobjectsV1::TransitClass] transit_class_object
3046
+ # @param [String] fields
3047
+ # Selector specifying which fields to include in a partial response.
3048
+ # @param [String] quota_user
3049
+ # Available to use for quota purposes for server-side applications. Can be any
3050
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3051
+ # @param [Google::Apis::RequestOptions] options
3052
+ # Request-specific options
3053
+ #
3054
+ # @yield [result, err] Result & error if block supplied
3055
+ # @yieldparam result [Google::Apis::WalletobjectsV1::TransitClass] parsed result object
3056
+ # @yieldparam err [StandardError] error object if request failed
3057
+ #
3058
+ # @return [Google::Apis::WalletobjectsV1::TransitClass]
3059
+ #
3060
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3061
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3062
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3063
+ def insert_transitclass(transit_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3064
+ command = make_simple_command(:post, 'walletobjects/v1/transitClass', options)
3065
+ command.request_representation = Google::Apis::WalletobjectsV1::TransitClass::Representation
3066
+ command.request_object = transit_class_object
3067
+ command.response_representation = Google::Apis::WalletobjectsV1::TransitClass::Representation
3068
+ command.response_class = Google::Apis::WalletobjectsV1::TransitClass
3069
+ command.query['fields'] = fields unless fields.nil?
3070
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3071
+ execute_or_queue_command(command, &block)
3072
+ end
3073
+
3074
+ # Returns a list of all transit classes for a given issuer ID.
3075
+ # @param [Fixnum] issuer_id
3076
+ # The ID of the issuer authorized to list classes.
3077
+ # @param [Fixnum] max_results
3078
+ # Identifies the max number of results returned by a list. All results are
3079
+ # returned if `maxResults` isn't defined.
3080
+ # @param [String] token
3081
+ # Used to get the next set of results if `maxResults` is specified, but more
3082
+ # than `maxResults` classes are available in a list. For example, if you have a
3083
+ # list of 200 classes and you call list with `maxResults` set to 20, list will
3084
+ # return the first 20 classes and a token. Call list again with `maxResults` set
3085
+ # to 20 and the token to get the next 20 classes.
3086
+ # @param [String] fields
3087
+ # Selector specifying which fields to include in a partial response.
3088
+ # @param [String] quota_user
3089
+ # Available to use for quota purposes for server-side applications. Can be any
3090
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3091
+ # @param [Google::Apis::RequestOptions] options
3092
+ # Request-specific options
3093
+ #
3094
+ # @yield [result, err] Result & error if block supplied
3095
+ # @yieldparam result [Google::Apis::WalletobjectsV1::TransitClassListResponse] parsed result object
3096
+ # @yieldparam err [StandardError] error object if request failed
3097
+ #
3098
+ # @return [Google::Apis::WalletobjectsV1::TransitClassListResponse]
3099
+ #
3100
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3101
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3102
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3103
+ def list_transitclasses(issuer_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil, &block)
3104
+ command = make_simple_command(:get, 'walletobjects/v1/transitClass', options)
3105
+ command.response_representation = Google::Apis::WalletobjectsV1::TransitClassListResponse::Representation
3106
+ command.response_class = Google::Apis::WalletobjectsV1::TransitClassListResponse
3107
+ command.query['issuerId'] = issuer_id unless issuer_id.nil?
3108
+ command.query['maxResults'] = max_results unless max_results.nil?
3109
+ command.query['token'] = token unless token.nil?
3110
+ command.query['fields'] = fields unless fields.nil?
3111
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3112
+ execute_or_queue_command(command, &block)
3113
+ end
3114
+
3115
+ # Updates the transit class referenced by the given class ID. This method
3116
+ # supports patch semantics.
3117
+ # @param [String] resource_id
3118
+ # The unique identifier for a class. This ID must be unique across all classes
3119
+ # from an issuer. This value should follow the format issuer ID. identifier
3120
+ # where the former is issued by Google and latter is chosen by you. Your unique
3121
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
3122
+ # @param [Google::Apis::WalletobjectsV1::TransitClass] transit_class_object
3123
+ # @param [String] fields
3124
+ # Selector specifying which fields to include in a partial response.
3125
+ # @param [String] quota_user
3126
+ # Available to use for quota purposes for server-side applications. Can be any
3127
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3128
+ # @param [Google::Apis::RequestOptions] options
3129
+ # Request-specific options
3130
+ #
3131
+ # @yield [result, err] Result & error if block supplied
3132
+ # @yieldparam result [Google::Apis::WalletobjectsV1::TransitClass] parsed result object
3133
+ # @yieldparam err [StandardError] error object if request failed
3134
+ #
3135
+ # @return [Google::Apis::WalletobjectsV1::TransitClass]
3136
+ #
3137
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3138
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3139
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3140
+ def patch_transitclass(resource_id, transit_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3141
+ command = make_simple_command(:patch, 'walletobjects/v1/transitClass/{resourceId}', options)
3142
+ command.request_representation = Google::Apis::WalletobjectsV1::TransitClass::Representation
3143
+ command.request_object = transit_class_object
3144
+ command.response_representation = Google::Apis::WalletobjectsV1::TransitClass::Representation
3145
+ command.response_class = Google::Apis::WalletobjectsV1::TransitClass
3146
+ command.params['resourceId'] = resource_id unless resource_id.nil?
3147
+ command.query['fields'] = fields unless fields.nil?
3148
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3149
+ execute_or_queue_command(command, &block)
3150
+ end
3151
+
3152
+ # Updates the transit class referenced by the given class ID.
3153
+ # @param [String] resource_id
3154
+ # The unique identifier for a class. This ID must be unique across all classes
3155
+ # from an issuer. This value should follow the format issuer ID. identifier
3156
+ # where the former is issued by Google and latter is chosen by you. Your unique
3157
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
3158
+ # @param [Google::Apis::WalletobjectsV1::TransitClass] transit_class_object
3159
+ # @param [String] fields
3160
+ # Selector specifying which fields to include in a partial response.
3161
+ # @param [String] quota_user
3162
+ # Available to use for quota purposes for server-side applications. Can be any
3163
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3164
+ # @param [Google::Apis::RequestOptions] options
3165
+ # Request-specific options
3166
+ #
3167
+ # @yield [result, err] Result & error if block supplied
3168
+ # @yieldparam result [Google::Apis::WalletobjectsV1::TransitClass] parsed result object
3169
+ # @yieldparam err [StandardError] error object if request failed
3170
+ #
3171
+ # @return [Google::Apis::WalletobjectsV1::TransitClass]
3172
+ #
3173
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3174
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3175
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3176
+ def update_transitclass(resource_id, transit_class_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3177
+ command = make_simple_command(:put, 'walletobjects/v1/transitClass/{resourceId}', options)
3178
+ command.request_representation = Google::Apis::WalletobjectsV1::TransitClass::Representation
3179
+ command.request_object = transit_class_object
3180
+ command.response_representation = Google::Apis::WalletobjectsV1::TransitClass::Representation
3181
+ command.response_class = Google::Apis::WalletobjectsV1::TransitClass
3182
+ command.params['resourceId'] = resource_id unless resource_id.nil?
3183
+ command.query['fields'] = fields unless fields.nil?
3184
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3185
+ execute_or_queue_command(command, &block)
3186
+ end
3187
+
3188
+ # Adds a message to the transit object referenced by the given object ID.
3189
+ # @param [String] resource_id
3190
+ # The unique identifier for an object. This ID must be unique across all objects
3191
+ # from an issuer. This value should follow the format issuer ID. identifier
3192
+ # where the former is issued by Google and latter is chosen by you. Your unique
3193
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
3194
+ # @param [Google::Apis::WalletobjectsV1::AddMessageRequest] add_message_request_object
3195
+ # @param [String] fields
3196
+ # Selector specifying which fields to include in a partial response.
3197
+ # @param [String] quota_user
3198
+ # Available to use for quota purposes for server-side applications. Can be any
3199
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3200
+ # @param [Google::Apis::RequestOptions] options
3201
+ # Request-specific options
3202
+ #
3203
+ # @yield [result, err] Result & error if block supplied
3204
+ # @yieldparam result [Google::Apis::WalletobjectsV1::TransitObjectAddMessageResponse] parsed result object
3205
+ # @yieldparam err [StandardError] error object if request failed
3206
+ #
3207
+ # @return [Google::Apis::WalletobjectsV1::TransitObjectAddMessageResponse]
3208
+ #
3209
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3210
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3211
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3212
+ def addmessage_transitobject(resource_id, add_message_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3213
+ command = make_simple_command(:post, 'walletobjects/v1/transitObject/{resourceId}/addMessage', options)
3214
+ command.request_representation = Google::Apis::WalletobjectsV1::AddMessageRequest::Representation
3215
+ command.request_object = add_message_request_object
3216
+ command.response_representation = Google::Apis::WalletobjectsV1::TransitObjectAddMessageResponse::Representation
3217
+ command.response_class = Google::Apis::WalletobjectsV1::TransitObjectAddMessageResponse
3218
+ command.params['resourceId'] = resource_id unless resource_id.nil?
3219
+ command.query['fields'] = fields unless fields.nil?
3220
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3221
+ execute_or_queue_command(command, &block)
3222
+ end
3223
+
3224
+ # Returns the transit object with the given object ID.
3225
+ # @param [String] resource_id
3226
+ # The unique identifier for an object. This ID must be unique across all objects
3227
+ # from an issuer. This value should follow the format issuer ID. identifier
3228
+ # where the former is issued by Google and latter is chosen by you. Your unique
3229
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
3230
+ # @param [String] fields
3231
+ # Selector specifying which fields to include in a partial response.
3232
+ # @param [String] quota_user
3233
+ # Available to use for quota purposes for server-side applications. Can be any
3234
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3235
+ # @param [Google::Apis::RequestOptions] options
3236
+ # Request-specific options
3237
+ #
3238
+ # @yield [result, err] Result & error if block supplied
3239
+ # @yieldparam result [Google::Apis::WalletobjectsV1::TransitObject] parsed result object
3240
+ # @yieldparam err [StandardError] error object if request failed
3241
+ #
3242
+ # @return [Google::Apis::WalletobjectsV1::TransitObject]
3243
+ #
3244
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3245
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3246
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3247
+ def get_transitobject(resource_id, fields: nil, quota_user: nil, options: nil, &block)
3248
+ command = make_simple_command(:get, 'walletobjects/v1/transitObject/{resourceId}', options)
3249
+ command.response_representation = Google::Apis::WalletobjectsV1::TransitObject::Representation
3250
+ command.response_class = Google::Apis::WalletobjectsV1::TransitObject
3251
+ command.params['resourceId'] = resource_id unless resource_id.nil?
3252
+ command.query['fields'] = fields unless fields.nil?
3253
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3254
+ execute_or_queue_command(command, &block)
3255
+ end
3256
+
3257
+ # Inserts an transit object with the given ID and properties.
3258
+ # @param [Google::Apis::WalletobjectsV1::TransitObject] transit_object_object
3259
+ # @param [String] fields
3260
+ # Selector specifying which fields to include in a partial response.
3261
+ # @param [String] quota_user
3262
+ # Available to use for quota purposes for server-side applications. Can be any
3263
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3264
+ # @param [Google::Apis::RequestOptions] options
3265
+ # Request-specific options
3266
+ #
3267
+ # @yield [result, err] Result & error if block supplied
3268
+ # @yieldparam result [Google::Apis::WalletobjectsV1::TransitObject] parsed result object
3269
+ # @yieldparam err [StandardError] error object if request failed
3270
+ #
3271
+ # @return [Google::Apis::WalletobjectsV1::TransitObject]
3272
+ #
3273
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3274
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3275
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3276
+ def insert_transitobject(transit_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3277
+ command = make_simple_command(:post, 'walletobjects/v1/transitObject', options)
3278
+ command.request_representation = Google::Apis::WalletobjectsV1::TransitObject::Representation
3279
+ command.request_object = transit_object_object
3280
+ command.response_representation = Google::Apis::WalletobjectsV1::TransitObject::Representation
3281
+ command.response_class = Google::Apis::WalletobjectsV1::TransitObject
3282
+ command.query['fields'] = fields unless fields.nil?
3283
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3284
+ execute_or_queue_command(command, &block)
3285
+ end
3286
+
3287
+ # Returns a list of all transit objects for a given issuer ID.
3288
+ # @param [String] class_id
3289
+ # The ID of the class whose objects will be listed.
3290
+ # @param [Fixnum] max_results
3291
+ # Identifies the max number of results returned by a list. All results are
3292
+ # returned if `maxResults` isn't defined.
3293
+ # @param [String] token
3294
+ # Used to get the next set of results if `maxResults` is specified, but more
3295
+ # than `maxResults` objects are available in a list. For example, if you have a
3296
+ # list of 200 objects and you call list with `maxResults` set to 20, list will
3297
+ # return the first 20 objects and a token. Call list again with `maxResults` set
3298
+ # to 20 and the token to get the next 20 objects.
3299
+ # @param [String] fields
3300
+ # Selector specifying which fields to include in a partial response.
3301
+ # @param [String] quota_user
3302
+ # Available to use for quota purposes for server-side applications. Can be any
3303
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3304
+ # @param [Google::Apis::RequestOptions] options
3305
+ # Request-specific options
3306
+ #
3307
+ # @yield [result, err] Result & error if block supplied
3308
+ # @yieldparam result [Google::Apis::WalletobjectsV1::TransitObjectListResponse] parsed result object
3309
+ # @yieldparam err [StandardError] error object if request failed
3310
+ #
3311
+ # @return [Google::Apis::WalletobjectsV1::TransitObjectListResponse]
3312
+ #
3313
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3314
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3315
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3316
+ def list_transitobjects(class_id: nil, max_results: nil, token: nil, fields: nil, quota_user: nil, options: nil, &block)
3317
+ command = make_simple_command(:get, 'walletobjects/v1/transitObject', options)
3318
+ command.response_representation = Google::Apis::WalletobjectsV1::TransitObjectListResponse::Representation
3319
+ command.response_class = Google::Apis::WalletobjectsV1::TransitObjectListResponse
3320
+ command.query['classId'] = class_id unless class_id.nil?
3321
+ command.query['maxResults'] = max_results unless max_results.nil?
3322
+ command.query['token'] = token unless token.nil?
3323
+ command.query['fields'] = fields unless fields.nil?
3324
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3325
+ execute_or_queue_command(command, &block)
3326
+ end
3327
+
3328
+ # Updates the transit object referenced by the given object ID. This method
3329
+ # supports patch semantics.
3330
+ # @param [String] resource_id
3331
+ # The unique identifier for an object. This ID must be unique across all objects
3332
+ # from an issuer. This value should follow the format issuer ID. identifier
3333
+ # where the former is issued by Google and latter is chosen by you. Your unique
3334
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
3335
+ # @param [Google::Apis::WalletobjectsV1::TransitObject] transit_object_object
3336
+ # @param [String] fields
3337
+ # Selector specifying which fields to include in a partial response.
3338
+ # @param [String] quota_user
3339
+ # Available to use for quota purposes for server-side applications. Can be any
3340
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3341
+ # @param [Google::Apis::RequestOptions] options
3342
+ # Request-specific options
3343
+ #
3344
+ # @yield [result, err] Result & error if block supplied
3345
+ # @yieldparam result [Google::Apis::WalletobjectsV1::TransitObject] parsed result object
3346
+ # @yieldparam err [StandardError] error object if request failed
3347
+ #
3348
+ # @return [Google::Apis::WalletobjectsV1::TransitObject]
3349
+ #
3350
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3351
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3352
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3353
+ def patch_transitobject(resource_id, transit_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3354
+ command = make_simple_command(:patch, 'walletobjects/v1/transitObject/{resourceId}', options)
3355
+ command.request_representation = Google::Apis::WalletobjectsV1::TransitObject::Representation
3356
+ command.request_object = transit_object_object
3357
+ command.response_representation = Google::Apis::WalletobjectsV1::TransitObject::Representation
3358
+ command.response_class = Google::Apis::WalletobjectsV1::TransitObject
3359
+ command.params['resourceId'] = resource_id unless resource_id.nil?
3360
+ command.query['fields'] = fields unless fields.nil?
3361
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3362
+ execute_or_queue_command(command, &block)
3363
+ end
3364
+
3365
+ # Updates the transit object referenced by the given object ID.
3366
+ # @param [String] resource_id
3367
+ # The unique identifier for an object. This ID must be unique across all objects
3368
+ # from an issuer. This value should follow the format issuer ID. identifier
3369
+ # where the former is issued by Google and latter is chosen by you. Your unique
3370
+ # identifier should only include alphanumeric characters, '.', '_', or '-'.
3371
+ # @param [Google::Apis::WalletobjectsV1::TransitObject] transit_object_object
3372
+ # @param [String] fields
3373
+ # Selector specifying which fields to include in a partial response.
3374
+ # @param [String] quota_user
3375
+ # Available to use for quota purposes for server-side applications. Can be any
3376
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3377
+ # @param [Google::Apis::RequestOptions] options
3378
+ # Request-specific options
3379
+ #
3380
+ # @yield [result, err] Result & error if block supplied
3381
+ # @yieldparam result [Google::Apis::WalletobjectsV1::TransitObject] parsed result object
3382
+ # @yieldparam err [StandardError] error object if request failed
3383
+ #
3384
+ # @return [Google::Apis::WalletobjectsV1::TransitObject]
3385
+ #
3386
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3387
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3388
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3389
+ def update_transitobject(resource_id, transit_object_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3390
+ command = make_simple_command(:put, 'walletobjects/v1/transitObject/{resourceId}', options)
3391
+ command.request_representation = Google::Apis::WalletobjectsV1::TransitObject::Representation
3392
+ command.request_object = transit_object_object
3393
+ command.response_representation = Google::Apis::WalletobjectsV1::TransitObject::Representation
3394
+ command.response_class = Google::Apis::WalletobjectsV1::TransitObject
3395
+ command.params['resourceId'] = resource_id unless resource_id.nil?
3396
+ command.query['fields'] = fields unless fields.nil?
3397
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3398
+ execute_or_queue_command(command, &block)
3399
+ end
3400
+
3401
+ # Provide Google with information about awaiting private pass update. This will
3402
+ # allow Google to provide the update notification to the device that currently
3403
+ # holds this pass.
3404
+ # @param [Google::Apis::WalletobjectsV1::SetPassUpdateNoticeRequest] set_pass_update_notice_request_object
3405
+ # @param [String] fields
3406
+ # Selector specifying which fields to include in a partial response.
3407
+ # @param [String] quota_user
3408
+ # Available to use for quota purposes for server-side applications. Can be any
3409
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3410
+ # @param [Google::Apis::RequestOptions] options
3411
+ # Request-specific options
3412
+ #
3413
+ # @yield [result, err] Result & error if block supplied
3414
+ # @yieldparam result [Google::Apis::WalletobjectsV1::SetPassUpdateNoticeResponse] parsed result object
3415
+ # @yieldparam err [StandardError] error object if request failed
3416
+ #
3417
+ # @return [Google::Apis::WalletobjectsV1::SetPassUpdateNoticeResponse]
3418
+ #
3419
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3420
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3421
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3422
+ def set_private_content_pass_update_notice(set_pass_update_notice_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3423
+ command = make_simple_command(:post, 'walletobjects/v1/privateContent/setPassUpdateNotice', options)
3424
+ command.request_representation = Google::Apis::WalletobjectsV1::SetPassUpdateNoticeRequest::Representation
3425
+ command.request_object = set_pass_update_notice_request_object
3426
+ command.response_representation = Google::Apis::WalletobjectsV1::SetPassUpdateNoticeResponse::Representation
3427
+ command.response_class = Google::Apis::WalletobjectsV1::SetPassUpdateNoticeResponse
3428
+ command.query['fields'] = fields unless fields.nil?
3429
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3430
+ execute_or_queue_command(command, &block)
3431
+ end
3432
+
3433
+ # Upload private data (text or URI) and returns an Id to be used in its place.
3434
+ # @param [Google::Apis::WalletobjectsV1::UploadPrivateDataRequest] upload_private_data_request_object
3435
+ # @param [String] fields
3436
+ # Selector specifying which fields to include in a partial response.
3437
+ # @param [String] quota_user
3438
+ # Available to use for quota purposes for server-side applications. Can be any
3439
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3440
+ # @param [Google::Apis::RequestOptions] options
3441
+ # Request-specific options
3442
+ #
3443
+ # @yield [result, err] Result & error if block supplied
3444
+ # @yieldparam result [Google::Apis::WalletobjectsV1::UploadPrivateDataResponse] parsed result object
3445
+ # @yieldparam err [StandardError] error object if request failed
3446
+ #
3447
+ # @return [Google::Apis::WalletobjectsV1::UploadPrivateDataResponse]
3448
+ #
3449
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3450
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3451
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3452
+ def upload_private_content_private_data(upload_private_data_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3453
+ command = make_simple_command(:post, 'walletobjects/v1/privateContent/uploadPrivateData', options)
3454
+ command.request_representation = Google::Apis::WalletobjectsV1::UploadPrivateDataRequest::Representation
3455
+ command.request_object = upload_private_data_request_object
3456
+ command.response_representation = Google::Apis::WalletobjectsV1::UploadPrivateDataResponse::Representation
3457
+ command.response_class = Google::Apis::WalletobjectsV1::UploadPrivateDataResponse
3458
+ command.query['fields'] = fields unless fields.nil?
3459
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3460
+ execute_or_queue_command(command, &block)
3461
+ end
3462
+
3463
+ protected
3464
+
3465
+ def apply_command_defaults(command)
3466
+ command.query['key'] = key unless key.nil?
3467
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3468
+ end
3469
+ end
3470
+ end
3471
+ end
3472
+ end