source: vendor/google/apiclient-services/src/Walletobjects/Resource/Eventticketobject.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 11 days ago

Upload project files

  • Property mode set to 100644
File size: 7.7 KB
Line 
1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\Walletobjects\Resource;
19
20use Google\Service\Walletobjects\AddMessageRequest;
21use Google\Service\Walletobjects\EventTicketObject as EventTicketObjectModel;
22use Google\Service\Walletobjects\EventTicketObjectAddMessageResponse;
23use Google\Service\Walletobjects\EventTicketObjectListResponse;
24use Google\Service\Walletobjects\ModifyLinkedOfferObjectsRequest;
25
26/**
27 * The "eventticketobject" collection of methods.
28 * Typical usage is:
29 * <code>
30 * $walletobjectsService = new Google\Service\Walletobjects(...);
31 * $eventticketobject = $walletobjectsService->eventticketobject;
32 * </code>
33 */
34class Eventticketobject extends \Google\Service\Resource
35{
36 /**
37 * Adds a message to the event ticket object referenced by the given object ID.
38 * (eventticketobject.addmessage)
39 *
40 * @param string $resourceId The unique identifier for an object. This ID must
41 * be unique across all objects from an issuer. This value should follow the
42 * format issuer ID. identifier where the former is issued by Google and latter
43 * is chosen by you. Your unique identifier should only include alphanumeric
44 * characters, '.', '_', or '-'.
45 * @param AddMessageRequest $postBody
46 * @param array $optParams Optional parameters.
47 * @return EventTicketObjectAddMessageResponse
48 * @throws \Google\Service\Exception
49 */
50 public function addmessage($resourceId, AddMessageRequest $postBody, $optParams = [])
51 {
52 $params = ['resourceId' => $resourceId, 'postBody' => $postBody];
53 $params = array_merge($params, $optParams);
54 return $this->call('addmessage', [$params], EventTicketObjectAddMessageResponse::class);
55 }
56 /**
57 * Returns the event ticket object with the given object ID.
58 * (eventticketobject.get)
59 *
60 * @param string $resourceId The unique identifier for an object. This ID must
61 * be unique across all objects from an issuer. This value should follow the
62 * format issuer ID. identifier where the former is issued by Google and latter
63 * is chosen by you. Your unique identifier should only include alphanumeric
64 * characters, '.', '_', or '-'.
65 * @param array $optParams Optional parameters.
66 * @return EventTicketObjectModel
67 * @throws \Google\Service\Exception
68 */
69 public function get($resourceId, $optParams = [])
70 {
71 $params = ['resourceId' => $resourceId];
72 $params = array_merge($params, $optParams);
73 return $this->call('get', [$params], EventTicketObjectModel::class);
74 }
75 /**
76 * Inserts an event ticket object with the given ID and properties.
77 * (eventticketobject.insert)
78 *
79 * @param EventTicketObjectModel $postBody
80 * @param array $optParams Optional parameters.
81 * @return EventTicketObjectModel
82 * @throws \Google\Service\Exception
83 */
84 public function insert(EventTicketObjectModel $postBody, $optParams = [])
85 {
86 $params = ['postBody' => $postBody];
87 $params = array_merge($params, $optParams);
88 return $this->call('insert', [$params], EventTicketObjectModel::class);
89 }
90 /**
91 * Returns a list of all event ticket objects for a given issuer ID.
92 * (eventticketobject.listEventticketobject)
93 *
94 * @param array $optParams Optional parameters.
95 *
96 * @opt_param string classId The ID of the class whose objects will be listed.
97 * @opt_param int maxResults Identifies the max number of results returned by a
98 * list. All results are returned if `maxResults` isn't defined.
99 * @opt_param string token Used to get the next set of results if `maxResults`
100 * is specified, but more than `maxResults` objects are available in a list. For
101 * example, if you have a list of 200 objects and you call list with
102 * `maxResults` set to 20, list will return the first 20 objects and a token.
103 * Call list again with `maxResults` set to 20 and the token to get the next 20
104 * objects.
105 * @return EventTicketObjectListResponse
106 * @throws \Google\Service\Exception
107 */
108 public function listEventticketobject($optParams = [])
109 {
110 $params = [];
111 $params = array_merge($params, $optParams);
112 return $this->call('list', [$params], EventTicketObjectListResponse::class);
113 }
114 /**
115 * Modifies linked offer objects for the event ticket object with the given ID.
116 * (eventticketobject.modifylinkedofferobjects)
117 *
118 * @param string $resourceId The unique identifier for an object. This ID must
119 * be unique across all objects from an issuer. This value should follow the
120 * format issuer ID. identifier where the former is issued by Google and latter
121 * is chosen by you. Your unique identifier should only include alphanumeric
122 * characters, '.', '_', or '-'.
123 * @param ModifyLinkedOfferObjectsRequest $postBody
124 * @param array $optParams Optional parameters.
125 * @return EventTicketObjectModel
126 * @throws \Google\Service\Exception
127 */
128 public function modifylinkedofferobjects($resourceId, ModifyLinkedOfferObjectsRequest $postBody, $optParams = [])
129 {
130 $params = ['resourceId' => $resourceId, 'postBody' => $postBody];
131 $params = array_merge($params, $optParams);
132 return $this->call('modifylinkedofferobjects', [$params], EventTicketObjectModel::class);
133 }
134 /**
135 * Updates the event ticket object referenced by the given object ID. This
136 * method supports patch semantics. (eventticketobject.patch)
137 *
138 * @param string $resourceId The unique identifier for an object. This ID must
139 * be unique across all objects from an issuer. This value should follow the
140 * format issuer ID. identifier where the former is issued by Google and latter
141 * is chosen by you. Your unique identifier should only include alphanumeric
142 * characters, '.', '_', or '-'.
143 * @param EventTicketObjectModel $postBody
144 * @param array $optParams Optional parameters.
145 * @return EventTicketObjectModel
146 * @throws \Google\Service\Exception
147 */
148 public function patch($resourceId, EventTicketObjectModel $postBody, $optParams = [])
149 {
150 $params = ['resourceId' => $resourceId, 'postBody' => $postBody];
151 $params = array_merge($params, $optParams);
152 return $this->call('patch', [$params], EventTicketObjectModel::class);
153 }
154 /**
155 * Updates the event ticket object referenced by the given object ID.
156 * (eventticketobject.update)
157 *
158 * @param string $resourceId The unique identifier for an object. This ID must
159 * be unique across all objects from an issuer. This value should follow the
160 * format issuer ID. identifier where the former is issued by Google and latter
161 * is chosen by you. Your unique identifier should only include alphanumeric
162 * characters, '.', '_', or '-'.
163 * @param EventTicketObjectModel $postBody
164 * @param array $optParams Optional parameters.
165 * @return EventTicketObjectModel
166 * @throws \Google\Service\Exception
167 */
168 public function update($resourceId, EventTicketObjectModel $postBody, $optParams = [])
169 {
170 $params = ['resourceId' => $resourceId, 'postBody' => $postBody];
171 $params = array_merge($params, $optParams);
172 return $this->call('update', [$params], EventTicketObjectModel::class);
173 }
174}
175
176// Adding a class alias for backwards compatibility with the previous class name.
177class_alias(Eventticketobject::class, 'Google_Service_Walletobjects_Resource_Eventticketobject');
Note: See TracBrowser for help on using the repository browser.