source: vendor/google/apiclient-services/src/Walletobjects/Resource/Issuer.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: 3.6 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\Issuer as IssuerModel;
21use Google\Service\Walletobjects\IssuerListResponse;
22
23/**
24 * The "issuer" collection of methods.
25 * Typical usage is:
26 * <code>
27 * $walletobjectsService = new Google\Service\Walletobjects(...);
28 * $issuer = $walletobjectsService->issuer;
29 * </code>
30 */
31class Issuer extends \Google\Service\Resource
32{
33 /**
34 * Returns the issuer with the given issuer ID. (issuer.get)
35 *
36 * @param string $resourceId The unique identifier for an issuer.
37 * @param array $optParams Optional parameters.
38 * @return IssuerModel
39 * @throws \Google\Service\Exception
40 */
41 public function get($resourceId, $optParams = [])
42 {
43 $params = ['resourceId' => $resourceId];
44 $params = array_merge($params, $optParams);
45 return $this->call('get', [$params], IssuerModel::class);
46 }
47 /**
48 * Inserts an issuer with the given ID and properties. (issuer.insert)
49 *
50 * @param IssuerModel $postBody
51 * @param array $optParams Optional parameters.
52 * @return IssuerModel
53 * @throws \Google\Service\Exception
54 */
55 public function insert(IssuerModel $postBody, $optParams = [])
56 {
57 $params = ['postBody' => $postBody];
58 $params = array_merge($params, $optParams);
59 return $this->call('insert', [$params], IssuerModel::class);
60 }
61 /**
62 * Returns a list of all issuers shared to the caller. (issuer.listIssuer)
63 *
64 * @param array $optParams Optional parameters.
65 * @return IssuerListResponse
66 * @throws \Google\Service\Exception
67 */
68 public function listIssuer($optParams = [])
69 {
70 $params = [];
71 $params = array_merge($params, $optParams);
72 return $this->call('list', [$params], IssuerListResponse::class);
73 }
74 /**
75 * Updates the issuer referenced by the given issuer ID. This method supports
76 * patch semantics. (issuer.patch)
77 *
78 * @param string $resourceId The unique identifier for an issuer.
79 * @param IssuerModel $postBody
80 * @param array $optParams Optional parameters.
81 * @return IssuerModel
82 * @throws \Google\Service\Exception
83 */
84 public function patch($resourceId, IssuerModel $postBody, $optParams = [])
85 {
86 $params = ['resourceId' => $resourceId, 'postBody' => $postBody];
87 $params = array_merge($params, $optParams);
88 return $this->call('patch', [$params], IssuerModel::class);
89 }
90 /**
91 * Updates the issuer referenced by the given issuer ID. (issuer.update)
92 *
93 * @param string $resourceId The unique identifier for an issuer.
94 * @param IssuerModel $postBody
95 * @param array $optParams Optional parameters.
96 * @return IssuerModel
97 * @throws \Google\Service\Exception
98 */
99 public function update($resourceId, IssuerModel $postBody, $optParams = [])
100 {
101 $params = ['resourceId' => $resourceId, 'postBody' => $postBody];
102 $params = array_merge($params, $optParams);
103 return $this->call('update', [$params], IssuerModel::class);
104 }
105}
106
107// Adding a class alias for backwards compatibility with the previous class name.
108class_alias(Issuer::class, 'Google_Service_Walletobjects_Resource_Issuer');
Note: See TracBrowser for help on using the repository browser.