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

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

Upload project files

  • Property mode set to 100644
File size: 6.5 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\EventTicketClass as EventTicketClassModel;
22use Google\Service\Walletobjects\EventTicketClassAddMessageResponse;
23use Google\Service\Walletobjects\EventTicketClassListResponse;
24
25/**
26 * The "eventticketclass" collection of methods.
27 * Typical usage is:
28 * <code>
29 * $walletobjectsService = new Google\Service\Walletobjects(...);
30 * $eventticketclass = $walletobjectsService->eventticketclass;
31 * </code>
32 */
33class Eventticketclass extends \Google\Service\Resource
34{
35 /**
36 * Adds a message to the event ticket class referenced by the given class ID.
37 * (eventticketclass.addmessage)
38 *
39 * @param string $resourceId The unique identifier for a class. This ID must be
40 * unique across all classes from an issuer. This value should follow the format
41 * issuer ID. identifier where the former is issued by Google and latter is
42 * chosen by you. Your unique identifier should only include alphanumeric
43 * characters, '.', '_', or '-'.
44 * @param AddMessageRequest $postBody
45 * @param array $optParams Optional parameters.
46 * @return EventTicketClassAddMessageResponse
47 * @throws \Google\Service\Exception
48 */
49 public function addmessage($resourceId, AddMessageRequest $postBody, $optParams = [])
50 {
51 $params = ['resourceId' => $resourceId, 'postBody' => $postBody];
52 $params = array_merge($params, $optParams);
53 return $this->call('addmessage', [$params], EventTicketClassAddMessageResponse::class);
54 }
55 /**
56 * Returns the event ticket class with the given class ID.
57 * (eventticketclass.get)
58 *
59 * @param string $resourceId The unique identifier for a class. This ID must be
60 * unique across all classes from an issuer. This value should follow the format
61 * issuer ID. identifier where the former is issued by Google and latter is
62 * chosen by you. Your unique identifier should only include alphanumeric
63 * characters, '.', '_', or '-'.
64 * @param array $optParams Optional parameters.
65 * @return EventTicketClassModel
66 * @throws \Google\Service\Exception
67 */
68 public function get($resourceId, $optParams = [])
69 {
70 $params = ['resourceId' => $resourceId];
71 $params = array_merge($params, $optParams);
72 return $this->call('get', [$params], EventTicketClassModel::class);
73 }
74 /**
75 * Inserts an event ticket class with the given ID and properties.
76 * (eventticketclass.insert)
77 *
78 * @param EventTicketClassModel $postBody
79 * @param array $optParams Optional parameters.
80 * @return EventTicketClassModel
81 * @throws \Google\Service\Exception
82 */
83 public function insert(EventTicketClassModel $postBody, $optParams = [])
84 {
85 $params = ['postBody' => $postBody];
86 $params = array_merge($params, $optParams);
87 return $this->call('insert', [$params], EventTicketClassModel::class);
88 }
89 /**
90 * Returns a list of all event ticket classes for a given issuer ID.
91 * (eventticketclass.listEventticketclass)
92 *
93 * @param array $optParams Optional parameters.
94 *
95 * @opt_param string issuerId The ID of the issuer authorized to list classes.
96 * @opt_param int maxResults Identifies the max number of results returned by a
97 * list. All results are returned if `maxResults` isn't defined.
98 * @opt_param string token Used to get the next set of results if `maxResults`
99 * is specified, but more than `maxResults` classes are available in a list. For
100 * example, if you have a list of 200 classes and you call list with
101 * `maxResults` set to 20, list will return the first 20 classes and a token.
102 * Call list again with `maxResults` set to 20 and the token to get the next 20
103 * classes.
104 * @return EventTicketClassListResponse
105 * @throws \Google\Service\Exception
106 */
107 public function listEventticketclass($optParams = [])
108 {
109 $params = [];
110 $params = array_merge($params, $optParams);
111 return $this->call('list', [$params], EventTicketClassListResponse::class);
112 }
113 /**
114 * Updates the event ticket class referenced by the given class ID. This method
115 * supports patch semantics. (eventticketclass.patch)
116 *
117 * @param string $resourceId The unique identifier for a class. This ID must be
118 * unique across all classes from an issuer. This value should follow the format
119 * issuer ID. identifier where the former is issued by Google and latter is
120 * chosen by you. Your unique identifier should only include alphanumeric
121 * characters, '.', '_', or '-'.
122 * @param EventTicketClassModel $postBody
123 * @param array $optParams Optional parameters.
124 * @return EventTicketClassModel
125 * @throws \Google\Service\Exception
126 */
127 public function patch($resourceId, EventTicketClassModel $postBody, $optParams = [])
128 {
129 $params = ['resourceId' => $resourceId, 'postBody' => $postBody];
130 $params = array_merge($params, $optParams);
131 return $this->call('patch', [$params], EventTicketClassModel::class);
132 }
133 /**
134 * Updates the event ticket class referenced by the given class ID.
135 * (eventticketclass.update)
136 *
137 * @param string $resourceId The unique identifier for a class. This ID must be
138 * unique across all classes from an issuer. This value should follow the format
139 * issuer ID. identifier where the former is issued by Google and latter is
140 * chosen by you. Your unique identifier should only include alphanumeric
141 * characters, '.', '_', or '-'.
142 * @param EventTicketClassModel $postBody
143 * @param array $optParams Optional parameters.
144 * @return EventTicketClassModel
145 * @throws \Google\Service\Exception
146 */
147 public function update($resourceId, EventTicketClassModel $postBody, $optParams = [])
148 {
149 $params = ['resourceId' => $resourceId, 'postBody' => $postBody];
150 $params = array_merge($params, $optParams);
151 return $this->call('update', [$params], EventTicketClassModel::class);
152 }
153}
154
155// Adding a class alias for backwards compatibility with the previous class name.
156class_alias(Eventticketclass::class, 'Google_Service_Walletobjects_Resource_Eventticketclass');
Note: See TracBrowser for help on using the repository browser.