📂 File Browser

AgentAI/vendor/google/apiclient-services/src/ShoppingContent/Resource
🌙 Dark Mode
🎯 Quick Launch:

📁 Directories

📄 Files

🐘 Accounts.php
▶ Open 📄 View Source
🐘 AccountsBusinessmessageslinks.php
▶ Open 📄 View Source
🐘 AccountsCredentials.php
▶ Open 📄 View Source
🐘 AccountsLabels.php
▶ Open 📄 View Source
🐘 AccountsReturncarrier.php
▶ Open 📄 View Source
🐘 Accountsbyexternalsellerid.php
▶ Open 📄 View Source
🐘 Accountstatuses.php
▶ Open 📄 View Source
🐘 Accountstatusesbyexternalsellerid.php
▶ Open 📄 View Source
🐘 Accounttax.php
▶ Open 📄 View Source
🐘 Buyongoogleprograms.php
▶ Open 📄 View Source
🐘 Collections.php
▶ Open 📄 View Source
🐘 Collectionstatuses.php
▶ Open 📄 View Source
🐘 Conversionsources.php
▶ Open 📄 View Source
🐘 Csses.php
▶ Open 📄 View Source
🐘 Customers.php
▶ Open 📄 View Source
🐘 Datafeeds.php
▶ Open 📄 View Source
🐘 Datafeedstatuses.php
▶ Open 📄 View Source
🐘 Freelistingsprogram.php
▶ Open 📄 View Source
🐘 FreelistingsprogramCheckoutsettings.php
▶ Open 📄 View Source
🐘 Liasettings.php
▶ Open 📄 View Source
🐘 Localinventory.php
▶ Open 📄 View Source
🐘 Merchantsupport.php
▶ Open 📄 View Source
🐘 Orderinvoices.php
▶ Open 📄 View Source
🐘 Orderreports.php
▶ Open 📄 View Source
🐘 Orderreturns.php
▶ Open 📄 View Source
🐘 OrderreturnsLabels.php
▶ Open 📄 View Source
🐘 Orders.php
▶ Open 📄 View Source
🐘 Ordertrackingsignals.php
▶ Open 📄 View Source
🐘 Pos.php
▶ Open 📄 View Source
🐘 Productdeliverytime.php
▶ Open 📄 View Source
🐘 Products.php
▶ Open 📄 View Source
🐘 Productstatuses.php
▶ Open 📄 View Source
🐘 ProductstatusesRepricingreports.php
▶ Open 📄 View Source
🐘 Promotions.php
▶ Open 📄 View Source
🐘 Pubsubnotificationsettings.php
▶ Open 📄 View Source
🐘 Quotas.php
▶ Open 📄 View Source
🐘 Recommendations.php
▶ Open 📄 View Source
🐘 Regionalinventory.php
▶ Open 📄 View Source
🐘 Regions.php
▶ Open 📄 View Source
🐘 Reports.php
▶ Open 📄 View Source
🐘 Repricingrules.php
▶ Open 📄 View Source
🐘 RepricingrulesRepricingreports.php
▶ Open 📄 View Source
🐘 Returnaddress.php
▶ Open 📄 View Source
🐘 Returnpolicy.php
▶ Open 📄 View Source
🐘 Returnpolicyonline.php
▶ Open 📄 View Source
🐘 Settlementreports.php
▶ Open 📄 View Source
🐘 Settlementtransactions.php
▶ Open 📄 View Source
🐘 Shippingsettings.php
▶ Open 📄 View Source
🐘 Shoppingadsprogram.php
▶ Open 📄 View Source

📄 Source: Orderreturns.php

<?php
/*
 * Copyright 2014 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

namespace Google\Service\ShoppingContent\Resource;

use Google\Service\ShoppingContent\MerchantOrderReturn;
use Google\Service\ShoppingContent\OrderreturnsAcknowledgeRequest;
use Google\Service\ShoppingContent\OrderreturnsAcknowledgeResponse;
use Google\Service\ShoppingContent\OrderreturnsCreateOrderReturnRequest;
use Google\Service\ShoppingContent\OrderreturnsCreateOrderReturnResponse;
use Google\Service\ShoppingContent\OrderreturnsListResponse;
use Google\Service\ShoppingContent\OrderreturnsProcessRequest;
use Google\Service\ShoppingContent\OrderreturnsProcessResponse;

/**
 * The "orderreturns" collection of methods.
 * Typical usage is:
 *  <code>
 *   $contentService = new Google\Service\ShoppingContent(...);
 *   $orderreturns = $contentService->orderreturns;
 *  </code>
 */
class Orderreturns extends \Google\Service\Resource
{
  /**
   * Acks an order return in your Merchant Center account.
   * (orderreturns.acknowledge)
   *
   * @param string $merchantId The ID of the account that manages the order. This
   * cannot be a multi-client account.
   * @param string $returnId The ID of the return.
   * @param OrderreturnsAcknowledgeRequest $postBody
   * @param array $optParams Optional parameters.
   * @return OrderreturnsAcknowledgeResponse
   * @throws \Google\Service\Exception
   */
  public function acknowledge($merchantId, $returnId, OrderreturnsAcknowledgeRequest $postBody, $optParams = [])
  {
    $params = ['merchantId' => $merchantId, 'returnId' => $returnId, 'postBody' => $postBody];
    $params = array_merge($params, $optParams);
    return $this->call('acknowledge', [$params], OrderreturnsAcknowledgeResponse::class);
  }
  /**
   * Create return in your Merchant Center account.
   * (orderreturns.createorderreturn)
   *
   * @param string $merchantId The ID of the account that manages the order. This
   * cannot be a multi-client account.
   * @param OrderreturnsCreateOrderReturnRequest $postBody
   * @param array $optParams Optional parameters.
   * @return OrderreturnsCreateOrderReturnResponse
   * @throws \Google\Service\Exception
   */
  public function createorderreturn($merchantId, OrderreturnsCreateOrderReturnRequest $postBody, $optParams = [])
  {
    $params = ['merchantId' => $merchantId, 'postBody' => $postBody];
    $params = array_merge($params, $optParams);
    return $this->call('createorderreturn', [$params], OrderreturnsCreateOrderReturnResponse::class);
  }
  /**
   * Retrieves an order return from your Merchant Center account.
   * (orderreturns.get)
   *
   * @param string $merchantId The ID of the account that manages the order. This
   * cannot be a multi-client account.
   * @param string $returnId Merchant order return ID generated by Google.
   * @param array $optParams Optional parameters.
   * @return MerchantOrderReturn
   * @throws \Google\Service\Exception
   */
  public function get($merchantId, $returnId, $optParams = [])
  {
    $params = ['merchantId' => $merchantId, 'returnId' => $returnId];
    $params = array_merge($params, $optParams);
    return $this->call('get', [$params], MerchantOrderReturn::class);
  }
  /**
   * Lists order returns in your Merchant Center account.
   * (orderreturns.listOrderreturns)
   *
   * @param string $merchantId The ID of the account that manages the order. This
   * cannot be a multi-client account.
   * @param array $optParams Optional parameters.
   *
   * @opt_param bool acknowledged Obtains order returns that match the
   * acknowledgement status. When set to true, obtains order returns that have
   * been acknowledged. When false, obtains order returns that have not been
   * acknowledged. When not provided, obtains order returns regardless of their
   * acknowledgement status. We recommend using this filter set to `false`, in
   * conjunction with the `acknowledge` call, such that only un-acknowledged order
   * returns are returned.
   * @opt_param string createdEndDate Obtains order returns created before this
   * date (inclusively), in ISO 8601 format.
   * @opt_param string createdStartDate Obtains order returns created after this
   * date (inclusively), in ISO 8601 format.
   * @opt_param string googleOrderIds Obtains order returns with the specified
   * order ids. If this parameter is provided, createdStartDate, createdEndDate,
   * shipmentType, shipmentStatus, shipmentState and acknowledged parameters must
   * be not set. Note: if googleOrderId and shipmentTrackingNumber parameters are
   * provided, the obtained results will include all order returns that either
   * match the specified order id or the specified tracking number.
   * @opt_param string maxResults The maximum number of order returns to return in
   * the response, used for paging. The default value is 25 returns per page, and
   * the maximum allowed value is 250 returns per page.
   * @opt_param string orderBy Return the results in the specified order.
   * @opt_param string pageToken The token returned by the previous request.
   * @opt_param string shipmentStates Obtains order returns that match any
   * shipment state provided in this parameter. When this parameter is not
   * provided, order returns are obtained regardless of their shipment states.
   * @opt_param string shipmentStatus Obtains order returns that match any
   * shipment status provided in this parameter. When this parameter is not
   * provided, order returns are obtained regardless of their shipment statuses.
   * @opt_param string shipmentTrackingNumbers Obtains order returns with the
   * specified tracking numbers. If this parameter is provided, createdStartDate,
   * createdEndDate, shipmentType, shipmentStatus, shipmentState and acknowledged
   * parameters must be not set. Note: if googleOrderId and shipmentTrackingNumber
   * parameters are provided, the obtained results will include all order returns
   * that either match the specified order id or the specified tracking number.
   * @opt_param string shipmentTypes Obtains order returns that match any shipment
   * type provided in this parameter. When this parameter is not provided, order
   * returns are obtained regardless of their shipment types.
   * @return OrderreturnsListResponse
   * @throws \Google\Service\Exception
   */
  public function listOrderreturns($merchantId, $optParams = [])
  {
    $params = ['merchantId' => $merchantId];
    $params = array_merge($params, $optParams);
    return $this->call('list', [$params], OrderreturnsListResponse::class);
  }
  /**
   * Processes return in your Merchant Center account. (orderreturns.process)
   *
   * @param string $merchantId The ID of the account that manages the order. This
   * cannot be a multi-client account.
   * @param string $returnId The ID of the return.
   * @param OrderreturnsProcessRequest $postBody
   * @param array $optParams Optional parameters.
   * @return OrderreturnsProcessResponse
   * @throws \Google\Service\Exception
   */
  public function process($merchantId, $returnId, OrderreturnsProcessRequest $postBody, $optParams = [])
  {
    $params = ['merchantId' => $merchantId, 'returnId' => $returnId, 'postBody' => $postBody];
    $params = array_merge($params, $optParams);
    return $this->call('process', [$params], OrderreturnsProcessResponse::class);
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Orderreturns::class, 'Google_Service_ShoppingContent_Resource_Orderreturns');
← Back