source: vendor/google/apiclient-services/src/AndroidPublisher/Resource/PurchasesVoidedpurchases.php@ f9c482b

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

Upload new project files

  • Property mode set to 100644
File size: 4.3 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\AndroidPublisher\Resource;
19
20use Google\Service\AndroidPublisher\VoidedPurchasesListResponse;
21
22/**
23 * The "voidedpurchases" collection of methods.
24 * Typical usage is:
25 * <code>
26 * $androidpublisherService = new Google\Service\AndroidPublisher(...);
27 * $voidedpurchases = $androidpublisherService->purchases_voidedpurchases;
28 * </code>
29 */
30class PurchasesVoidedpurchases extends \Google\Service\Resource
31{
32 /**
33 * Lists the purchases that were canceled, refunded or charged-back.
34 * (voidedpurchases.listPurchasesVoidedpurchases)
35 *
36 * @param string $packageName The package name of the application for which
37 * voided purchases need to be returned (for example, 'com.some.thing').
38 * @param array $optParams Optional parameters.
39 *
40 * @opt_param string endTime The time, in milliseconds since the Epoch, of the
41 * newest voided purchase that you want to see in the response. The value of
42 * this parameter cannot be greater than the current time and is ignored if a
43 * pagination token is set. Default value is current time. Note: This filter is
44 * applied on the time at which the record is seen as voided by our systems and
45 * not the actual voided time returned in the response.
46 * @opt_param bool includeQuantityBasedPartialRefund Optional. Whether to
47 * include voided purchases of quantity-based partial refunds, which are
48 * applicable only to multi-quantity purchases. If true, additional voided
49 * purchases may be returned with voidedQuantity that indicates the refund
50 * quantity of a quantity-based partial refund. The default value is false.
51 * @opt_param string maxResults Defines how many results the list operation
52 * should return. The default number depends on the resource collection.
53 * @opt_param string startIndex Defines the index of the first element to
54 * return. This can only be used if indexed paging is enabled.
55 * @opt_param string startTime The time, in milliseconds since the Epoch, of the
56 * oldest voided purchase that you want to see in the response. The value of
57 * this parameter cannot be older than 30 days and is ignored if a pagination
58 * token is set. Default value is current time minus 30 days. Note: This filter
59 * is applied on the time at which the record is seen as voided by our systems
60 * and not the actual voided time returned in the response.
61 * @opt_param string token Defines the token of the page to return, usually
62 * taken from TokenPagination. This can only be used if token paging is enabled.
63 * @opt_param int type The type of voided purchases that you want to see in the
64 * response. Possible values are: 0. Only voided in-app product purchases will
65 * be returned in the response. This is the default value. 1. Both voided in-app
66 * purchases and voided subscription purchases will be returned in the response.
67 * Note: Before requesting to receive voided subscription purchases, you must
68 * switch to use orderId in the response which uniquely identifies one-time
69 * purchases and subscriptions. Otherwise, you will receive multiple
70 * subscription orders with the same PurchaseToken, because subscription renewal
71 * orders share the same PurchaseToken.
72 * @return VoidedPurchasesListResponse
73 * @throws \Google\Service\Exception
74 */
75 public function listPurchasesVoidedpurchases($packageName, $optParams = [])
76 {
77 $params = ['packageName' => $packageName];
78 $params = array_merge($params, $optParams);
79 return $this->call('list', [$params], VoidedPurchasesListResponse::class);
80 }
81}
82
83// Adding a class alias for backwards compatibility with the previous class name.
84class_alias(PurchasesVoidedpurchases::class, 'Google_Service_AndroidPublisher_Resource_PurchasesVoidedpurchases');
Note: See TracBrowser for help on using the repository browser.