source: vendor/google/apiclient-services/src/ShoppingContent/Resource/Orderinvoices.php

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

Upload project files

  • Property mode set to 100644
File size: 3.4 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\ShoppingContent\Resource;
19
20use Google\Service\ShoppingContent\OrderinvoicesCreateChargeInvoiceRequest;
21use Google\Service\ShoppingContent\OrderinvoicesCreateChargeInvoiceResponse;
22use Google\Service\ShoppingContent\OrderinvoicesCreateRefundInvoiceRequest;
23use Google\Service\ShoppingContent\OrderinvoicesCreateRefundInvoiceResponse;
24
25/**
26 * The "orderinvoices" collection of methods.
27 * Typical usage is:
28 * <code>
29 * $contentService = new Google\Service\ShoppingContent(...);
30 * $orderinvoices = $contentService->orderinvoices;
31 * </code>
32 */
33class Orderinvoices extends \Google\Service\Resource
34{
35 /**
36 * Creates a charge invoice for a shipment group, and triggers a charge capture
37 * for orderinvoice enabled orders. (orderinvoices.createchargeinvoice)
38 *
39 * @param string $merchantId The ID of the account that manages the order. This
40 * cannot be a multi-client account.
41 * @param string $orderId The ID of the order.
42 * @param OrderinvoicesCreateChargeInvoiceRequest $postBody
43 * @param array $optParams Optional parameters.
44 * @return OrderinvoicesCreateChargeInvoiceResponse
45 * @throws \Google\Service\Exception
46 */
47 public function createchargeinvoice($merchantId, $orderId, OrderinvoicesCreateChargeInvoiceRequest $postBody, $optParams = [])
48 {
49 $params = ['merchantId' => $merchantId, 'orderId' => $orderId, 'postBody' => $postBody];
50 $params = array_merge($params, $optParams);
51 return $this->call('createchargeinvoice', [$params], OrderinvoicesCreateChargeInvoiceResponse::class);
52 }
53 /**
54 * Creates a refund invoice for one or more shipment groups, and triggers a
55 * refund for orderinvoice enabled orders. This can only be used for line items
56 * that have previously been charged using `createChargeInvoice`. All amounts
57 * (except for the summary) are incremental with respect to the previous
58 * invoice. (orderinvoices.createrefundinvoice)
59 *
60 * @param string $merchantId The ID of the account that manages the order. This
61 * cannot be a multi-client account.
62 * @param string $orderId The ID of the order.
63 * @param OrderinvoicesCreateRefundInvoiceRequest $postBody
64 * @param array $optParams Optional parameters.
65 * @return OrderinvoicesCreateRefundInvoiceResponse
66 * @throws \Google\Service\Exception
67 */
68 public function createrefundinvoice($merchantId, $orderId, OrderinvoicesCreateRefundInvoiceRequest $postBody, $optParams = [])
69 {
70 $params = ['merchantId' => $merchantId, 'orderId' => $orderId, 'postBody' => $postBody];
71 $params = array_merge($params, $optParams);
72 return $this->call('createrefundinvoice', [$params], OrderinvoicesCreateRefundInvoiceResponse::class);
73 }
74}
75
76// Adding a class alias for backwards compatibility with the previous class name.
77class_alias(Orderinvoices::class, 'Google_Service_ShoppingContent_Resource_Orderinvoices');
Note: See TracBrowser for help on using the repository browser.