source: vendor/google/apiclient-services/src/PaymentsResellerSubscription.php@ e3d4e0a

Last change on this file since e3d4e0a was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 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;
19
20use Google\Client;
21
22/**
23 * Service definition for PaymentsResellerSubscription (v1).
24 *
25 * <p>
26</p>
27 *
28 * <p>
29 * For more information about this service, see the API
30 * <a href="https://developers.google.com/payments/reseller/subscription/" target="_blank">Documentation</a>
31 * </p>
32 *
33 * @author Google, Inc.
34 */
35class PaymentsResellerSubscription extends \Google\Service
36{
37 /** Associate you with your personal info on Google. */
38 const OPENID =
39 "openid";
40
41 public $partners_products;
42 public $partners_promotions;
43 public $partners_subscriptions;
44 public $partners_userSessions;
45 public $rootUrlTemplate;
46
47 /**
48 * Constructs the internal representation of the PaymentsResellerSubscription
49 * service.
50 *
51 * @param Client|array $clientOrConfig The client used to deliver requests, or a
52 * config array to pass to a new Client instance.
53 * @param string $rootUrl The root URL used for requests to the service.
54 */
55 public function __construct($clientOrConfig = [], $rootUrl = null)
56 {
57 parent::__construct($clientOrConfig);
58 $this->rootUrl = $rootUrl ?: 'https://paymentsresellersubscription.googleapis.com/';
59 $this->rootUrlTemplate = $rootUrl ?: 'https://paymentsresellersubscription.UNIVERSE_DOMAIN/';
60 $this->servicePath = '';
61 $this->batchPath = 'batch';
62 $this->version = 'v1';
63 $this->serviceName = 'paymentsresellersubscription';
64
65 $this->partners_products = new PaymentsResellerSubscription\Resource\PartnersProducts(
66 $this,
67 $this->serviceName,
68 'products',
69 [
70 'methods' => [
71 'list' => [
72 'path' => 'v1/{+parent}/products',
73 'httpMethod' => 'GET',
74 'parameters' => [
75 'parent' => [
76 'location' => 'path',
77 'type' => 'string',
78 'required' => true,
79 ],
80 'filter' => [
81 'location' => 'query',
82 'type' => 'string',
83 ],
84 'pageSize' => [
85 'location' => 'query',
86 'type' => 'integer',
87 ],
88 'pageToken' => [
89 'location' => 'query',
90 'type' => 'string',
91 ],
92 ],
93 ],
94 ]
95 ]
96 );
97 $this->partners_promotions = new PaymentsResellerSubscription\Resource\PartnersPromotions(
98 $this,
99 $this->serviceName,
100 'promotions',
101 [
102 'methods' => [
103 'findEligible' => [
104 'path' => 'v1/{+parent}/promotions:findEligible',
105 'httpMethod' => 'POST',
106 'parameters' => [
107 'parent' => [
108 'location' => 'path',
109 'type' => 'string',
110 'required' => true,
111 ],
112 ],
113 ],'list' => [
114 'path' => 'v1/{+parent}/promotions',
115 'httpMethod' => 'GET',
116 'parameters' => [
117 'parent' => [
118 'location' => 'path',
119 'type' => 'string',
120 'required' => true,
121 ],
122 'filter' => [
123 'location' => 'query',
124 'type' => 'string',
125 ],
126 'pageSize' => [
127 'location' => 'query',
128 'type' => 'integer',
129 ],
130 'pageToken' => [
131 'location' => 'query',
132 'type' => 'string',
133 ],
134 ],
135 ],
136 ]
137 ]
138 );
139 $this->partners_subscriptions = new PaymentsResellerSubscription\Resource\PartnersSubscriptions(
140 $this,
141 $this->serviceName,
142 'subscriptions',
143 [
144 'methods' => [
145 'cancel' => [
146 'path' => 'v1/{+name}:cancel',
147 'httpMethod' => 'POST',
148 'parameters' => [
149 'name' => [
150 'location' => 'path',
151 'type' => 'string',
152 'required' => true,
153 ],
154 ],
155 ],'create' => [
156 'path' => 'v1/{+parent}/subscriptions',
157 'httpMethod' => 'POST',
158 'parameters' => [
159 'parent' => [
160 'location' => 'path',
161 'type' => 'string',
162 'required' => true,
163 ],
164 'subscriptionId' => [
165 'location' => 'query',
166 'type' => 'string',
167 ],
168 ],
169 ],'entitle' => [
170 'path' => 'v1/{+name}:entitle',
171 'httpMethod' => 'POST',
172 'parameters' => [
173 'name' => [
174 'location' => 'path',
175 'type' => 'string',
176 'required' => true,
177 ],
178 ],
179 ],'extend' => [
180 'path' => 'v1/{+name}:extend',
181 'httpMethod' => 'POST',
182 'parameters' => [
183 'name' => [
184 'location' => 'path',
185 'type' => 'string',
186 'required' => true,
187 ],
188 ],
189 ],'get' => [
190 'path' => 'v1/{+name}',
191 'httpMethod' => 'GET',
192 'parameters' => [
193 'name' => [
194 'location' => 'path',
195 'type' => 'string',
196 'required' => true,
197 ],
198 ],
199 ],'provision' => [
200 'path' => 'v1/{+parent}/subscriptions:provision',
201 'httpMethod' => 'POST',
202 'parameters' => [
203 'parent' => [
204 'location' => 'path',
205 'type' => 'string',
206 'required' => true,
207 ],
208 'subscriptionId' => [
209 'location' => 'query',
210 'type' => 'string',
211 ],
212 ],
213 ],'undoCancel' => [
214 'path' => 'v1/{+name}:undoCancel',
215 'httpMethod' => 'POST',
216 'parameters' => [
217 'name' => [
218 'location' => 'path',
219 'type' => 'string',
220 'required' => true,
221 ],
222 ],
223 ],
224 ]
225 ]
226 );
227 $this->partners_userSessions = new PaymentsResellerSubscription\Resource\PartnersUserSessions(
228 $this,
229 $this->serviceName,
230 'userSessions',
231 [
232 'methods' => [
233 'generate' => [
234 'path' => 'v1/{+parent}/userSessions:generate',
235 'httpMethod' => 'POST',
236 'parameters' => [
237 'parent' => [
238 'location' => 'path',
239 'type' => 'string',
240 'required' => true,
241 ],
242 ],
243 ],
244 ]
245 ]
246 );
247 }
248}
249
250// Adding a class alias for backwards compatibility with the previous class name.
251class_alias(PaymentsResellerSubscription::class, 'Google_Service_PaymentsResellerSubscription');
Note: See TracBrowser for help on using the repository browser.