PageRenderTime 55ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 1ms

/lib/google/src/Google/Service/ShoppingContent.php

http://github.com/moodle/moodle
PHP | 9176 lines | 7970 code | 513 blank | 693 comment | 0 complexity | 71396f799cca2c6958efa8d18bd5785f MD5 | raw file
Possible License(s): MIT, AGPL-3.0, MPL-2.0-no-copyleft-exception, LGPL-3.0, GPL-3.0, Apache-2.0, LGPL-2.1, BSD-3-Clause

Large files files are truncated, but you can click here to view the full file

  1. <?php
  2. /*
  3. * Copyright 2010 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. /**
  18. * Service definition for ShoppingContent (v2).
  19. *
  20. * <p>
  21. * Manage product items, inventory, and Merchant Center accounts for Google
  22. * Shopping.</p>
  23. *
  24. * <p>
  25. * For more information about this service, see the API
  26. * <a href="https://developers.google.com/shopping-content" target="_blank">Documentation</a>
  27. * </p>
  28. *
  29. * @author Google, Inc.
  30. */
  31. class Google_Service_ShoppingContent extends Google_Service
  32. {
  33. /** Manage your product listings and accounts for Google Shopping. */
  34. const CONTENT =
  35. "https://www.googleapis.com/auth/content";
  36. public $accounts;
  37. public $accountshipping;
  38. public $accountstatuses;
  39. public $accounttax;
  40. public $datafeeds;
  41. public $datafeedstatuses;
  42. public $inventory;
  43. public $orders;
  44. public $products;
  45. public $productstatuses;
  46. /**
  47. * Constructs the internal representation of the ShoppingContent service.
  48. *
  49. * @param Google_Client $client
  50. */
  51. public function __construct(Google_Client $client)
  52. {
  53. parent::__construct($client);
  54. $this->rootUrl = 'https://www.googleapis.com/';
  55. $this->servicePath = 'content/v2/';
  56. $this->version = 'v2';
  57. $this->serviceName = 'content';
  58. $this->accounts = new Google_Service_ShoppingContent_Accounts_Resource(
  59. $this,
  60. $this->serviceName,
  61. 'accounts',
  62. array(
  63. 'methods' => array(
  64. 'authinfo' => array(
  65. 'path' => 'accounts/authinfo',
  66. 'httpMethod' => 'GET',
  67. 'parameters' => array(),
  68. ),'custombatch' => array(
  69. 'path' => 'accounts/batch',
  70. 'httpMethod' => 'POST',
  71. 'parameters' => array(
  72. 'dryRun' => array(
  73. 'location' => 'query',
  74. 'type' => 'boolean',
  75. ),
  76. ),
  77. ),'delete' => array(
  78. 'path' => '{merchantId}/accounts/{accountId}',
  79. 'httpMethod' => 'DELETE',
  80. 'parameters' => array(
  81. 'merchantId' => array(
  82. 'location' => 'path',
  83. 'type' => 'string',
  84. 'required' => true,
  85. ),
  86. 'accountId' => array(
  87. 'location' => 'path',
  88. 'type' => 'string',
  89. 'required' => true,
  90. ),
  91. 'dryRun' => array(
  92. 'location' => 'query',
  93. 'type' => 'boolean',
  94. ),
  95. ),
  96. ),'get' => array(
  97. 'path' => '{merchantId}/accounts/{accountId}',
  98. 'httpMethod' => 'GET',
  99. 'parameters' => array(
  100. 'merchantId' => array(
  101. 'location' => 'path',
  102. 'type' => 'string',
  103. 'required' => true,
  104. ),
  105. 'accountId' => array(
  106. 'location' => 'path',
  107. 'type' => 'string',
  108. 'required' => true,
  109. ),
  110. ),
  111. ),'insert' => array(
  112. 'path' => '{merchantId}/accounts',
  113. 'httpMethod' => 'POST',
  114. 'parameters' => array(
  115. 'merchantId' => array(
  116. 'location' => 'path',
  117. 'type' => 'string',
  118. 'required' => true,
  119. ),
  120. 'dryRun' => array(
  121. 'location' => 'query',
  122. 'type' => 'boolean',
  123. ),
  124. ),
  125. ),'list' => array(
  126. 'path' => '{merchantId}/accounts',
  127. 'httpMethod' => 'GET',
  128. 'parameters' => array(
  129. 'merchantId' => array(
  130. 'location' => 'path',
  131. 'type' => 'string',
  132. 'required' => true,
  133. ),
  134. 'pageToken' => array(
  135. 'location' => 'query',
  136. 'type' => 'string',
  137. ),
  138. 'maxResults' => array(
  139. 'location' => 'query',
  140. 'type' => 'integer',
  141. ),
  142. ),
  143. ),'patch' => array(
  144. 'path' => '{merchantId}/accounts/{accountId}',
  145. 'httpMethod' => 'PATCH',
  146. 'parameters' => array(
  147. 'merchantId' => array(
  148. 'location' => 'path',
  149. 'type' => 'string',
  150. 'required' => true,
  151. ),
  152. 'accountId' => array(
  153. 'location' => 'path',
  154. 'type' => 'string',
  155. 'required' => true,
  156. ),
  157. 'dryRun' => array(
  158. 'location' => 'query',
  159. 'type' => 'boolean',
  160. ),
  161. ),
  162. ),'update' => array(
  163. 'path' => '{merchantId}/accounts/{accountId}',
  164. 'httpMethod' => 'PUT',
  165. 'parameters' => array(
  166. 'merchantId' => array(
  167. 'location' => 'path',
  168. 'type' => 'string',
  169. 'required' => true,
  170. ),
  171. 'accountId' => array(
  172. 'location' => 'path',
  173. 'type' => 'string',
  174. 'required' => true,
  175. ),
  176. 'dryRun' => array(
  177. 'location' => 'query',
  178. 'type' => 'boolean',
  179. ),
  180. ),
  181. ),
  182. )
  183. )
  184. );
  185. $this->accountshipping = new Google_Service_ShoppingContent_Accountshipping_Resource(
  186. $this,
  187. $this->serviceName,
  188. 'accountshipping',
  189. array(
  190. 'methods' => array(
  191. 'custombatch' => array(
  192. 'path' => 'accountshipping/batch',
  193. 'httpMethod' => 'POST',
  194. 'parameters' => array(
  195. 'dryRun' => array(
  196. 'location' => 'query',
  197. 'type' => 'boolean',
  198. ),
  199. ),
  200. ),'get' => array(
  201. 'path' => '{merchantId}/accountshipping/{accountId}',
  202. 'httpMethod' => 'GET',
  203. 'parameters' => array(
  204. 'merchantId' => array(
  205. 'location' => 'path',
  206. 'type' => 'string',
  207. 'required' => true,
  208. ),
  209. 'accountId' => array(
  210. 'location' => 'path',
  211. 'type' => 'string',
  212. 'required' => true,
  213. ),
  214. ),
  215. ),'list' => array(
  216. 'path' => '{merchantId}/accountshipping',
  217. 'httpMethod' => 'GET',
  218. 'parameters' => array(
  219. 'merchantId' => array(
  220. 'location' => 'path',
  221. 'type' => 'string',
  222. 'required' => true,
  223. ),
  224. 'pageToken' => array(
  225. 'location' => 'query',
  226. 'type' => 'string',
  227. ),
  228. 'maxResults' => array(
  229. 'location' => 'query',
  230. 'type' => 'integer',
  231. ),
  232. ),
  233. ),'patch' => array(
  234. 'path' => '{merchantId}/accountshipping/{accountId}',
  235. 'httpMethod' => 'PATCH',
  236. 'parameters' => array(
  237. 'merchantId' => array(
  238. 'location' => 'path',
  239. 'type' => 'string',
  240. 'required' => true,
  241. ),
  242. 'accountId' => array(
  243. 'location' => 'path',
  244. 'type' => 'string',
  245. 'required' => true,
  246. ),
  247. 'dryRun' => array(
  248. 'location' => 'query',
  249. 'type' => 'boolean',
  250. ),
  251. ),
  252. ),'update' => array(
  253. 'path' => '{merchantId}/accountshipping/{accountId}',
  254. 'httpMethod' => 'PUT',
  255. 'parameters' => array(
  256. 'merchantId' => array(
  257. 'location' => 'path',
  258. 'type' => 'string',
  259. 'required' => true,
  260. ),
  261. 'accountId' => array(
  262. 'location' => 'path',
  263. 'type' => 'string',
  264. 'required' => true,
  265. ),
  266. 'dryRun' => array(
  267. 'location' => 'query',
  268. 'type' => 'boolean',
  269. ),
  270. ),
  271. ),
  272. )
  273. )
  274. );
  275. $this->accountstatuses = new Google_Service_ShoppingContent_Accountstatuses_Resource(
  276. $this,
  277. $this->serviceName,
  278. 'accountstatuses',
  279. array(
  280. 'methods' => array(
  281. 'custombatch' => array(
  282. 'path' => 'accountstatuses/batch',
  283. 'httpMethod' => 'POST',
  284. 'parameters' => array(),
  285. ),'get' => array(
  286. 'path' => '{merchantId}/accountstatuses/{accountId}',
  287. 'httpMethod' => 'GET',
  288. 'parameters' => array(
  289. 'merchantId' => array(
  290. 'location' => 'path',
  291. 'type' => 'string',
  292. 'required' => true,
  293. ),
  294. 'accountId' => array(
  295. 'location' => 'path',
  296. 'type' => 'string',
  297. 'required' => true,
  298. ),
  299. ),
  300. ),'list' => array(
  301. 'path' => '{merchantId}/accountstatuses',
  302. 'httpMethod' => 'GET',
  303. 'parameters' => array(
  304. 'merchantId' => array(
  305. 'location' => 'path',
  306. 'type' => 'string',
  307. 'required' => true,
  308. ),
  309. 'pageToken' => array(
  310. 'location' => 'query',
  311. 'type' => 'string',
  312. ),
  313. 'maxResults' => array(
  314. 'location' => 'query',
  315. 'type' => 'integer',
  316. ),
  317. ),
  318. ),
  319. )
  320. )
  321. );
  322. $this->accounttax = new Google_Service_ShoppingContent_Accounttax_Resource(
  323. $this,
  324. $this->serviceName,
  325. 'accounttax',
  326. array(
  327. 'methods' => array(
  328. 'custombatch' => array(
  329. 'path' => 'accounttax/batch',
  330. 'httpMethod' => 'POST',
  331. 'parameters' => array(
  332. 'dryRun' => array(
  333. 'location' => 'query',
  334. 'type' => 'boolean',
  335. ),
  336. ),
  337. ),'get' => array(
  338. 'path' => '{merchantId}/accounttax/{accountId}',
  339. 'httpMethod' => 'GET',
  340. 'parameters' => array(
  341. 'merchantId' => array(
  342. 'location' => 'path',
  343. 'type' => 'string',
  344. 'required' => true,
  345. ),
  346. 'accountId' => array(
  347. 'location' => 'path',
  348. 'type' => 'string',
  349. 'required' => true,
  350. ),
  351. ),
  352. ),'list' => array(
  353. 'path' => '{merchantId}/accounttax',
  354. 'httpMethod' => 'GET',
  355. 'parameters' => array(
  356. 'merchantId' => array(
  357. 'location' => 'path',
  358. 'type' => 'string',
  359. 'required' => true,
  360. ),
  361. 'pageToken' => array(
  362. 'location' => 'query',
  363. 'type' => 'string',
  364. ),
  365. 'maxResults' => array(
  366. 'location' => 'query',
  367. 'type' => 'integer',
  368. ),
  369. ),
  370. ),'patch' => array(
  371. 'path' => '{merchantId}/accounttax/{accountId}',
  372. 'httpMethod' => 'PATCH',
  373. 'parameters' => array(
  374. 'merchantId' => array(
  375. 'location' => 'path',
  376. 'type' => 'string',
  377. 'required' => true,
  378. ),
  379. 'accountId' => array(
  380. 'location' => 'path',
  381. 'type' => 'string',
  382. 'required' => true,
  383. ),
  384. 'dryRun' => array(
  385. 'location' => 'query',
  386. 'type' => 'boolean',
  387. ),
  388. ),
  389. ),'update' => array(
  390. 'path' => '{merchantId}/accounttax/{accountId}',
  391. 'httpMethod' => 'PUT',
  392. 'parameters' => array(
  393. 'merchantId' => array(
  394. 'location' => 'path',
  395. 'type' => 'string',
  396. 'required' => true,
  397. ),
  398. 'accountId' => array(
  399. 'location' => 'path',
  400. 'type' => 'string',
  401. 'required' => true,
  402. ),
  403. 'dryRun' => array(
  404. 'location' => 'query',
  405. 'type' => 'boolean',
  406. ),
  407. ),
  408. ),
  409. )
  410. )
  411. );
  412. $this->datafeeds = new Google_Service_ShoppingContent_Datafeeds_Resource(
  413. $this,
  414. $this->serviceName,
  415. 'datafeeds',
  416. array(
  417. 'methods' => array(
  418. 'custombatch' => array(
  419. 'path' => 'datafeeds/batch',
  420. 'httpMethod' => 'POST',
  421. 'parameters' => array(
  422. 'dryRun' => array(
  423. 'location' => 'query',
  424. 'type' => 'boolean',
  425. ),
  426. ),
  427. ),'delete' => array(
  428. 'path' => '{merchantId}/datafeeds/{datafeedId}',
  429. 'httpMethod' => 'DELETE',
  430. 'parameters' => array(
  431. 'merchantId' => array(
  432. 'location' => 'path',
  433. 'type' => 'string',
  434. 'required' => true,
  435. ),
  436. 'datafeedId' => array(
  437. 'location' => 'path',
  438. 'type' => 'string',
  439. 'required' => true,
  440. ),
  441. 'dryRun' => array(
  442. 'location' => 'query',
  443. 'type' => 'boolean',
  444. ),
  445. ),
  446. ),'get' => array(
  447. 'path' => '{merchantId}/datafeeds/{datafeedId}',
  448. 'httpMethod' => 'GET',
  449. 'parameters' => array(
  450. 'merchantId' => array(
  451. 'location' => 'path',
  452. 'type' => 'string',
  453. 'required' => true,
  454. ),
  455. 'datafeedId' => array(
  456. 'location' => 'path',
  457. 'type' => 'string',
  458. 'required' => true,
  459. ),
  460. ),
  461. ),'insert' => array(
  462. 'path' => '{merchantId}/datafeeds',
  463. 'httpMethod' => 'POST',
  464. 'parameters' => array(
  465. 'merchantId' => array(
  466. 'location' => 'path',
  467. 'type' => 'string',
  468. 'required' => true,
  469. ),
  470. 'dryRun' => array(
  471. 'location' => 'query',
  472. 'type' => 'boolean',
  473. ),
  474. ),
  475. ),'list' => array(
  476. 'path' => '{merchantId}/datafeeds',
  477. 'httpMethod' => 'GET',
  478. 'parameters' => array(
  479. 'merchantId' => array(
  480. 'location' => 'path',
  481. 'type' => 'string',
  482. 'required' => true,
  483. ),
  484. 'pageToken' => array(
  485. 'location' => 'query',
  486. 'type' => 'string',
  487. ),
  488. 'maxResults' => array(
  489. 'location' => 'query',
  490. 'type' => 'integer',
  491. ),
  492. ),
  493. ),'patch' => array(
  494. 'path' => '{merchantId}/datafeeds/{datafeedId}',
  495. 'httpMethod' => 'PATCH',
  496. 'parameters' => array(
  497. 'merchantId' => array(
  498. 'location' => 'path',
  499. 'type' => 'string',
  500. 'required' => true,
  501. ),
  502. 'datafeedId' => array(
  503. 'location' => 'path',
  504. 'type' => 'string',
  505. 'required' => true,
  506. ),
  507. 'dryRun' => array(
  508. 'location' => 'query',
  509. 'type' => 'boolean',
  510. ),
  511. ),
  512. ),'update' => array(
  513. 'path' => '{merchantId}/datafeeds/{datafeedId}',
  514. 'httpMethod' => 'PUT',
  515. 'parameters' => array(
  516. 'merchantId' => array(
  517. 'location' => 'path',
  518. 'type' => 'string',
  519. 'required' => true,
  520. ),
  521. 'datafeedId' => array(
  522. 'location' => 'path',
  523. 'type' => 'string',
  524. 'required' => true,
  525. ),
  526. 'dryRun' => array(
  527. 'location' => 'query',
  528. 'type' => 'boolean',
  529. ),
  530. ),
  531. ),
  532. )
  533. )
  534. );
  535. $this->datafeedstatuses = new Google_Service_ShoppingContent_Datafeedstatuses_Resource(
  536. $this,
  537. $this->serviceName,
  538. 'datafeedstatuses',
  539. array(
  540. 'methods' => array(
  541. 'custombatch' => array(
  542. 'path' => 'datafeedstatuses/batch',
  543. 'httpMethod' => 'POST',
  544. 'parameters' => array(),
  545. ),'get' => array(
  546. 'path' => '{merchantId}/datafeedstatuses/{datafeedId}',
  547. 'httpMethod' => 'GET',
  548. 'parameters' => array(
  549. 'merchantId' => array(
  550. 'location' => 'path',
  551. 'type' => 'string',
  552. 'required' => true,
  553. ),
  554. 'datafeedId' => array(
  555. 'location' => 'path',
  556. 'type' => 'string',
  557. 'required' => true,
  558. ),
  559. ),
  560. ),'list' => array(
  561. 'path' => '{merchantId}/datafeedstatuses',
  562. 'httpMethod' => 'GET',
  563. 'parameters' => array(
  564. 'merchantId' => array(
  565. 'location' => 'path',
  566. 'type' => 'string',
  567. 'required' => true,
  568. ),
  569. 'pageToken' => array(
  570. 'location' => 'query',
  571. 'type' => 'string',
  572. ),
  573. 'maxResults' => array(
  574. 'location' => 'query',
  575. 'type' => 'integer',
  576. ),
  577. ),
  578. ),
  579. )
  580. )
  581. );
  582. $this->inventory = new Google_Service_ShoppingContent_Inventory_Resource(
  583. $this,
  584. $this->serviceName,
  585. 'inventory',
  586. array(
  587. 'methods' => array(
  588. 'custombatch' => array(
  589. 'path' => 'inventory/batch',
  590. 'httpMethod' => 'POST',
  591. 'parameters' => array(
  592. 'dryRun' => array(
  593. 'location' => 'query',
  594. 'type' => 'boolean',
  595. ),
  596. ),
  597. ),'set' => array(
  598. 'path' => '{merchantId}/inventory/{storeCode}/products/{productId}',
  599. 'httpMethod' => 'POST',
  600. 'parameters' => array(
  601. 'merchantId' => array(
  602. 'location' => 'path',
  603. 'type' => 'string',
  604. 'required' => true,
  605. ),
  606. 'storeCode' => array(
  607. 'location' => 'path',
  608. 'type' => 'string',
  609. 'required' => true,
  610. ),
  611. 'productId' => array(
  612. 'location' => 'path',
  613. 'type' => 'string',
  614. 'required' => true,
  615. ),
  616. 'dryRun' => array(
  617. 'location' => 'query',
  618. 'type' => 'boolean',
  619. ),
  620. ),
  621. ),
  622. )
  623. )
  624. );
  625. $this->orders = new Google_Service_ShoppingContent_Orders_Resource(
  626. $this,
  627. $this->serviceName,
  628. 'orders',
  629. array(
  630. 'methods' => array(
  631. 'acknowledge' => array(
  632. 'path' => '{merchantId}/orders/{orderId}/acknowledge',
  633. 'httpMethod' => 'POST',
  634. 'parameters' => array(
  635. 'merchantId' => array(
  636. 'location' => 'path',
  637. 'type' => 'string',
  638. 'required' => true,
  639. ),
  640. 'orderId' => array(
  641. 'location' => 'path',
  642. 'type' => 'string',
  643. 'required' => true,
  644. ),
  645. ),
  646. ),'advancetestorder' => array(
  647. 'path' => '{merchantId}/testorders/{orderId}/advance',
  648. 'httpMethod' => 'POST',
  649. 'parameters' => array(
  650. 'merchantId' => array(
  651. 'location' => 'path',
  652. 'type' => 'string',
  653. 'required' => true,
  654. ),
  655. 'orderId' => array(
  656. 'location' => 'path',
  657. 'type' => 'string',
  658. 'required' => true,
  659. ),
  660. ),
  661. ),'cancel' => array(
  662. 'path' => '{merchantId}/orders/{orderId}/cancel',
  663. 'httpMethod' => 'POST',
  664. 'parameters' => array(
  665. 'merchantId' => array(
  666. 'location' => 'path',
  667. 'type' => 'string',
  668. 'required' => true,
  669. ),
  670. 'orderId' => array(
  671. 'location' => 'path',
  672. 'type' => 'string',
  673. 'required' => true,
  674. ),
  675. ),
  676. ),'cancellineitem' => array(
  677. 'path' => '{merchantId}/orders/{orderId}/cancelLineItem',
  678. 'httpMethod' => 'POST',
  679. 'parameters' => array(
  680. 'merchantId' => array(
  681. 'location' => 'path',
  682. 'type' => 'string',
  683. 'required' => true,
  684. ),
  685. 'orderId' => array(
  686. 'location' => 'path',
  687. 'type' => 'string',
  688. 'required' => true,
  689. ),
  690. ),
  691. ),'createtestorder' => array(
  692. 'path' => '{merchantId}/testorders',
  693. 'httpMethod' => 'POST',
  694. 'parameters' => array(
  695. 'merchantId' => array(
  696. 'location' => 'path',
  697. 'type' => 'string',
  698. 'required' => true,
  699. ),
  700. ),
  701. ),'custombatch' => array(
  702. 'path' => 'orders/batch',
  703. 'httpMethod' => 'POST',
  704. 'parameters' => array(),
  705. ),'get' => array(
  706. 'path' => '{merchantId}/orders/{orderId}',
  707. 'httpMethod' => 'GET',
  708. 'parameters' => array(
  709. 'merchantId' => array(
  710. 'location' => 'path',
  711. 'type' => 'string',
  712. 'required' => true,
  713. ),
  714. 'orderId' => array(
  715. 'location' => 'path',
  716. 'type' => 'string',
  717. 'required' => true,
  718. ),
  719. ),
  720. ),'getbymerchantorderid' => array(
  721. 'path' => '{merchantId}/ordersbymerchantid/{merchantOrderId}',
  722. 'httpMethod' => 'GET',
  723. 'parameters' => array(
  724. 'merchantId' => array(
  725. 'location' => 'path',
  726. 'type' => 'string',
  727. 'required' => true,
  728. ),
  729. 'merchantOrderId' => array(
  730. 'location' => 'path',
  731. 'type' => 'string',
  732. 'required' => true,
  733. ),
  734. ),
  735. ),'gettestordertemplate' => array(
  736. 'path' => '{merchantId}/testordertemplates/{templateName}',
  737. 'httpMethod' => 'GET',
  738. 'parameters' => array(
  739. 'merchantId' => array(
  740. 'location' => 'path',
  741. 'type' => 'string',
  742. 'required' => true,
  743. ),
  744. 'templateName' => array(
  745. 'location' => 'path',
  746. 'type' => 'string',
  747. 'required' => true,
  748. ),
  749. ),
  750. ),'list' => array(
  751. 'path' => '{merchantId}/orders',
  752. 'httpMethod' => 'GET',
  753. 'parameters' => array(
  754. 'merchantId' => array(
  755. 'location' => 'path',
  756. 'type' => 'string',
  757. 'required' => true,
  758. ),
  759. 'orderBy' => array(
  760. 'location' => 'query',
  761. 'type' => 'string',
  762. ),
  763. 'placedDateEnd' => array(
  764. 'location' => 'query',
  765. 'type' => 'string',
  766. ),
  767. 'acknowledged' => array(
  768. 'location' => 'query',
  769. 'type' => 'boolean',
  770. ),
  771. 'maxResults' => array(
  772. 'location' => 'query',
  773. 'type' => 'integer',
  774. ),
  775. 'pageToken' => array(
  776. 'location' => 'query',
  777. 'type' => 'string',
  778. ),
  779. 'placedDateStart' => array(
  780. 'location' => 'query',
  781. 'type' => 'string',
  782. ),
  783. 'statuses' => array(
  784. 'location' => 'query',
  785. 'type' => 'string',
  786. 'repeated' => true,
  787. ),
  788. ),
  789. ),'refund' => array(
  790. 'path' => '{merchantId}/orders/{orderId}/refund',
  791. 'httpMethod' => 'POST',
  792. 'parameters' => array(
  793. 'merchantId' => array(
  794. 'location' => 'path',
  795. 'type' => 'string',
  796. 'required' => true,
  797. ),
  798. 'orderId' => array(
  799. 'location' => 'path',
  800. 'type' => 'string',
  801. 'required' => true,
  802. ),
  803. ),
  804. ),'returnlineitem' => array(
  805. 'path' => '{merchantId}/orders/{orderId}/returnLineItem',
  806. 'httpMethod' => 'POST',
  807. 'parameters' => array(
  808. 'merchantId' => array(
  809. 'location' => 'path',
  810. 'type' => 'string',
  811. 'required' => true,
  812. ),
  813. 'orderId' => array(
  814. 'location' => 'path',
  815. 'type' => 'string',
  816. 'required' => true,
  817. ),
  818. ),
  819. ),'shiplineitems' => array(
  820. 'path' => '{merchantId}/orders/{orderId}/shipLineItems',
  821. 'httpMethod' => 'POST',
  822. 'parameters' => array(
  823. 'merchantId' => array(
  824. 'location' => 'path',
  825. 'type' => 'string',
  826. 'required' => true,
  827. ),
  828. 'orderId' => array(
  829. 'location' => 'path',
  830. 'type' => 'string',
  831. 'required' => true,
  832. ),
  833. ),
  834. ),'updatemerchantorderid' => array(
  835. 'path' => '{merchantId}/orders/{orderId}/updateMerchantOrderId',
  836. 'httpMethod' => 'POST',
  837. 'parameters' => array(
  838. 'merchantId' => array(
  839. 'location' => 'path',
  840. 'type' => 'string',
  841. 'required' => true,
  842. ),
  843. 'orderId' => array(
  844. 'location' => 'path',
  845. 'type' => 'string',
  846. 'required' => true,
  847. ),
  848. ),
  849. ),'updateshipment' => array(
  850. 'path' => '{merchantId}/orders/{orderId}/updateShipment',
  851. 'httpMethod' => 'POST',
  852. 'parameters' => array(
  853. 'merchantId' => array(
  854. 'location' => 'path',
  855. 'type' => 'string',
  856. 'required' => true,
  857. ),
  858. 'orderId' => array(
  859. 'location' => 'path',
  860. 'type' => 'string',
  861. 'required' => true,
  862. ),
  863. ),
  864. ),
  865. )
  866. )
  867. );
  868. $this->products = new Google_Service_ShoppingContent_Products_Resource(
  869. $this,
  870. $this->serviceName,
  871. 'products',
  872. array(
  873. 'methods' => array(
  874. 'custombatch' => array(
  875. 'path' => 'products/batch',
  876. 'httpMethod' => 'POST',
  877. 'parameters' => array(
  878. 'dryRun' => array(
  879. 'location' => 'query',
  880. 'type' => 'boolean',
  881. ),
  882. ),
  883. ),'delete' => array(
  884. 'path' => '{merchantId}/products/{productId}',
  885. 'httpMethod' => 'DELETE',
  886. 'parameters' => array(
  887. 'merchantId' => array(
  888. 'location' => 'path',
  889. 'type' => 'string',
  890. 'required' => true,
  891. ),
  892. 'productId' => array(
  893. 'location' => 'path',
  894. 'type' => 'string',
  895. 'required' => true,
  896. ),
  897. 'dryRun' => array(
  898. 'location' => 'query',
  899. 'type' => 'boolean',
  900. ),
  901. ),
  902. ),'get' => array(
  903. 'path' => '{merchantId}/products/{productId}',
  904. 'httpMethod' => 'GET',
  905. 'parameters' => array(
  906. 'merchantId' => array(
  907. 'location' => 'path',
  908. 'type' => 'string',
  909. 'required' => true,
  910. ),
  911. 'productId' => array(
  912. 'location' => 'path',
  913. 'type' => 'string',
  914. 'required' => true,
  915. ),
  916. ),
  917. ),'insert' => array(
  918. 'path' => '{merchantId}/products',
  919. 'httpMethod' => 'POST',
  920. 'parameters' => array(
  921. 'merchantId' => array(
  922. 'location' => 'path',
  923. 'type' => 'string',
  924. 'required' => true,
  925. ),
  926. 'dryRun' => array(
  927. 'location' => 'query',
  928. 'type' => 'boolean',
  929. ),
  930. ),
  931. ),'list' => array(
  932. 'path' => '{merchantId}/products',
  933. 'httpMethod' => 'GET',
  934. 'parameters' => array(
  935. 'merchantId' => array(
  936. 'location' => 'path',
  937. 'type' => 'string',
  938. 'required' => true,
  939. ),
  940. 'pageToken' => array(
  941. 'location' => 'query',
  942. 'type' => 'string',
  943. ),
  944. 'maxResults' => array(
  945. 'location' => 'query',
  946. 'type' => 'integer',
  947. ),
  948. ),
  949. ),
  950. )
  951. )
  952. );
  953. $this->productstatuses = new Google_Service_ShoppingContent_Productstatuses_Resource(
  954. $this,
  955. $this->serviceName,
  956. 'productstatuses',
  957. array(
  958. 'methods' => array(
  959. 'custombatch' => array(
  960. 'path' => 'productstatuses/batch',
  961. 'httpMethod' => 'POST',
  962. 'parameters' => array(),
  963. ),'get' => array(
  964. 'path' => '{merchantId}/productstatuses/{productId}',
  965. 'httpMethod' => 'GET',
  966. 'parameters' => array(
  967. 'merchantId' => array(
  968. 'location' => 'path',
  969. 'type' => 'string',
  970. 'required' => true,
  971. ),
  972. 'productId' => array(
  973. 'location' => 'path',
  974. 'type' => 'string',
  975. 'required' => true,
  976. ),
  977. ),
  978. ),'list' => array(
  979. 'path' => '{merchantId}/productstatuses',
  980. 'httpMethod' => 'GET',
  981. 'parameters' => array(
  982. 'merchantId' => array(
  983. 'location' => 'path',
  984. 'type' => 'string',
  985. 'required' => true,
  986. ),
  987. 'pageToken' => array(
  988. 'location' => 'query',
  989. 'type' => 'string',
  990. ),
  991. 'maxResults' => array(
  992. 'location' => 'query',
  993. 'type' => 'integer',
  994. ),
  995. ),
  996. ),
  997. )
  998. )
  999. );
  1000. }
  1001. }
  1002. /**
  1003. * The "accounts" collection of methods.
  1004. * Typical usage is:
  1005. * <code>
  1006. * $contentService = new Google_Service_ShoppingContent(...);
  1007. * $accounts = $contentService->accounts;
  1008. * </code>
  1009. */
  1010. class Google_Service_ShoppingContent_Accounts_Resource extends Google_Service_Resource
  1011. {
  1012. /**
  1013. * Returns information about the authenticated user. (accounts.authinfo)
  1014. *
  1015. * @param array $optParams Optional parameters.
  1016. * @return Google_Service_ShoppingContent_AccountsAuthInfoResponse
  1017. */
  1018. public function authinfo($optParams = array())
  1019. {
  1020. $params = array();
  1021. $params = array_merge($params, $optParams);
  1022. return $this->call('authinfo', array($params), "Google_Service_ShoppingContent_AccountsAuthInfoResponse");
  1023. }
  1024. /**
  1025. * Retrieves, inserts, updates, and deletes multiple Merchant Center
  1026. * (sub-)accounts in a single request. (accounts.custombatch)
  1027. *
  1028. * @param Google_AccountsCustomBatchRequest $postBody
  1029. * @param array $optParams Optional parameters.
  1030. *
  1031. * @opt_param bool dryRun Flag to run the request in dry-run mode.
  1032. * @return Google_Service_ShoppingContent_AccountsCustomBatchResponse
  1033. */
  1034. public function custombatch(Google_Service_ShoppingContent_AccountsCustomBatchRequest $postBody, $optParams = array())
  1035. {
  1036. $params = array('postBody' => $postBody);
  1037. $params = array_merge($params, $optParams);
  1038. return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_AccountsCustomBatchResponse");
  1039. }
  1040. /**
  1041. * Deletes a Merchant Center sub-account. (accounts.delete)
  1042. *
  1043. * @param string $merchantId The ID of the managing account.
  1044. * @param string $accountId The ID of the account.
  1045. * @param array $optParams Optional parameters.
  1046. *
  1047. * @opt_param bool dryRun Flag to run the request in dry-run mode.
  1048. */
  1049. public function delete($merchantId, $accountId, $optParams = array())
  1050. {
  1051. $params = array('merchantId' => $merchantId, 'accountId' => $accountId);
  1052. $params = array_merge($params, $optParams);
  1053. return $this->call('delete', array($params));
  1054. }
  1055. /**
  1056. * Retrieves a Merchant Center account. (accounts.get)
  1057. *
  1058. * @param string $merchantId The ID of the managing account.
  1059. * @param string $accountId The ID of the account.
  1060. * @param array $optParams Optional parameters.
  1061. * @return Google_Service_ShoppingContent_Account
  1062. */
  1063. public function get($merchantId, $accountId, $optParams = array())
  1064. {
  1065. $params = array('merchantId' => $merchantId, 'accountId' => $accountId);
  1066. $params = array_merge($params, $optParams);
  1067. return $this->call('get', array($params), "Google_Service_ShoppingContent_Account");
  1068. }
  1069. /**
  1070. * Creates a Merchant Center sub-account. (accounts.insert)
  1071. *
  1072. * @param string $merchantId The ID of the managing account.
  1073. * @param Google_Account $postBody
  1074. * @param array $optParams Optional parameters.
  1075. *
  1076. * @opt_param bool dryRun Flag to run the request in dry-run mode.
  1077. * @return Google_Service_ShoppingContent_Account
  1078. */
  1079. public function insert($merchantId, Google_Service_ShoppingContent_Account $postBody, $optParams = array())
  1080. {
  1081. $params = array('merchantId' => $merchantId, 'postBody' => $postBody);
  1082. $params = array_merge($params, $optParams);
  1083. return $this->call('insert', array($params), "Google_Service_ShoppingContent_Account");
  1084. }
  1085. /**
  1086. * Lists the sub-accounts in your Merchant Center account.
  1087. * (accounts.listAccounts)
  1088. *
  1089. * @param string $merchantId The ID of the managing account.
  1090. * @param array $optParams Optional parameters.
  1091. *
  1092. * @opt_param string pageToken The token returned by the previous request.
  1093. * @opt_param string maxResults The maximum number of accounts to return in the
  1094. * response, used for paging.
  1095. * @return Google_Service_ShoppingContent_AccountsListResponse
  1096. */
  1097. public function listAccounts($merchantId, $optParams = array())
  1098. {
  1099. $params = array('merchantId' => $merchantId);
  1100. $params = array_merge($params, $optParams);
  1101. return $this->call('list', array($params), "Google_Service_ShoppingContent_AccountsListResponse");
  1102. }
  1103. /**
  1104. * Updates a Merchant Center account. This method supports patch semantics.
  1105. * (accounts.patch)
  1106. *
  1107. * @param string $merchantId The ID of the managing account.
  1108. * @param string $accountId The ID of the account.
  1109. * @param Google_Account $postBody
  1110. * @param array $optParams Optional parameters.
  1111. *
  1112. * @opt_param bool dryRun Flag to run the request in dry-run mode.
  1113. * @return Google_Service_ShoppingContent_Account
  1114. */
  1115. public function patch($merchantId, $accountId, Google_Service_ShoppingContent_Account $postBody, $optParams = array())
  1116. {
  1117. $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody);
  1118. $params = array_merge($params, $optParams);
  1119. return $this->call('patch', array($params), "Google_Service_ShoppingContent_Account");
  1120. }
  1121. /**
  1122. * Updates a Merchant Center account. (accounts.update)
  1123. *
  1124. * @param string $merchantId The ID of the managing account.
  1125. * @param string $accountId The ID of the account.
  1126. * @param Google_Account $postBody
  1127. * @param array $optParams Optional parameters.
  1128. *
  1129. * @opt_param bool dryRun Flag to run the request in dry-run mode.
  1130. * @return Google_Service_ShoppingContent_Account
  1131. */
  1132. public function update($merchantId, $accountId, Google_Service_ShoppingContent_Account $postBody, $optParams = array())
  1133. {
  1134. $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody);
  1135. $params = array_merge($params, $optParams);
  1136. return $this->call('update', array($params), "Google_Service_ShoppingContent_Account");
  1137. }
  1138. }
  1139. /**
  1140. * The "accountshipping" collection of methods.
  1141. * Typical usage is:
  1142. * <code>
  1143. * $contentService = new Google_Service_ShoppingContent(...);
  1144. * $accountshipping = $contentService->accountshipping;
  1145. * </code>
  1146. */
  1147. class Google_Service_ShoppingContent_Accountshipping_Resource extends Google_Service_Resource
  1148. {
  1149. /**
  1150. * Retrieves and updates the shipping settings of multiple accounts in a single
  1151. * request. (accountshipping.custombatch)
  1152. *
  1153. * @param Google_AccountshippingCustomBatchRequest $postBody
  1154. * @param array $optParams Optional parameters.
  1155. *
  1156. * @opt_param bool dryRun Flag to run the request in dry-run mode.
  1157. * @return Google_Service_ShoppingContent_AccountshippingCustomBatchResponse
  1158. */
  1159. public function custombatch(Google_Service_ShoppingContent_AccountshippingCustomBatchRequest $postBody, $optParams = array())
  1160. {
  1161. $params = array('postBody' => $postBody);
  1162. $params = array_merge($params, $optParams);
  1163. return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_AccountshippingCustomBatchResponse");
  1164. }
  1165. /**
  1166. * Retrieves the shipping settings of the account. (accountshipping.get)
  1167. *
  1168. * @param string $merchantId The ID of the managing account.
  1169. * @param string $accountId The ID of the account for which to get/update
  1170. * account shipping settings.
  1171. * @param array $optParams Optional parameters.
  1172. * @return Google_Service_ShoppingContent_AccountShipping
  1173. */
  1174. public function get($merchantId, $accountId, $optParams = array())
  1175. {
  1176. $params = array('merchantId' => $merchantId, 'accountId' => $accountId);
  1177. $params = array_merge($params, $optParams);
  1178. return $this->call('get', array($params), "Google_Service_ShoppingContent_AccountShipping");
  1179. }
  1180. /**
  1181. * Lists the shipping settings of the sub-accounts in your Merchant Center
  1182. * account. (accountshipping.listAccountshipping)
  1183. *
  1184. * @param string $merchantId The ID of the managing account.
  1185. * @param array $optParams Optional parameters.
  1186. *
  1187. * @opt_param string pageToken The token returned by the previous request.
  1188. * @opt_param string maxResults The maximum number of shipping settings to
  1189. * return in the response, used for paging.
  1190. * @return Google_Service_ShoppingContent_AccountshippingListResponse
  1191. */
  1192. public function listAccountshipping($merchantId, $optParams = array())
  1193. {
  1194. $params = array('merchantId' => $merchantId);
  1195. $params = array_merge($params, $optParams);
  1196. return $this->call('list', array($params), "Google_Service_ShoppingContent_AccountshippingListResponse");
  1197. }
  1198. /**
  1199. * Updates the shipping settings of the account. This method supports patch
  1200. * semantics. (accountshipping.patch)
  1201. *
  1202. * @param string $merchantId The ID of the managing account.
  1203. * @param string $accountId The ID of the account for which to get/update
  1204. * account shipping settings.
  1205. * @param Google_AccountShipping $postBody
  1206. * @param array $optParams Optional parameters.
  1207. *
  1208. * @opt_param bool dryRun Flag to run the request in dry-run mode.
  1209. * @return Google_Service_ShoppingContent_AccountShipping
  1210. */
  1211. public function patch($merchantId, $accountId, Google_Service_ShoppingContent_AccountShipping $postBody, $optParams = array())
  1212. {
  1213. $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody);
  1214. $params = array_merge($params, $optParams);
  1215. return $this->call('patch', array($params), "Google_Service_ShoppingContent_AccountShipping");
  1216. }
  1217. /**
  1218. * Updates the shipping settings of the account. (accountshipping.update)
  1219. *
  1220. * @param string $merchantId The ID of the managing account.
  1221. * @param string $accountId The ID of the account for which to get/update
  1222. * account shipping settings.
  1223. * @param Google_AccountShipping $postBody
  1224. * @param array $optParams Optional parameters.
  1225. *
  1226. * @opt_param bool dryRun Flag to run the request in dry-run mode.
  1227. * @return Google_Service_ShoppingContent_AccountShipping
  1228. */
  1229. public function update($merchantId, $accountId, Google_Service_ShoppingContent_AccountShipping $postBody, $optParams = array())
  1230. {
  1231. $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody);
  1232. $params = array_merge($params, $optParams);
  1233. return $this->call('update', array($params), "Google_Service_ShoppingContent_AccountShipping");
  1234. }
  1235. }
  1236. /**
  1237. * The "accountstatuses" collection of methods.
  1238. * Typical usage is:
  1239. * <code>
  1240. * $contentService = new Google_Service_ShoppingContent(...);
  1241. * $accountstatuses = $contentService->accountstatuses;
  1242. * </code>
  1243. */
  1244. class Google_Service_ShoppingContent_Accountstatuses_Resource extends Google_Service_Resource
  1245. {
  1246. /**
  1247. * (accountstatuses.custombatch)
  1248. *
  1249. * @param Google_AccountstatusesCustomBatchRequest $postBody
  1250. * @param array $optParams Optional parameters.
  1251. * @return Google_Service_ShoppingContent_AccountstatusesCustomBatchResponse
  1252. */
  1253. public function custombatch(Google_Service_ShoppingContent_AccountstatusesCustomBatchRequest $postBody, $optParams = array())
  1254. {
  1255. $params = array('postBody' => $postBody);
  1256. $params = array_merge($params, $optParams);
  1257. return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_AccountstatusesCustomBatchResponse");
  1258. }
  1259. /**
  1260. * Retrieves the status of a Merchant Center account. (accountstatuses.get)
  1261. *
  1262. * @param string $merchantId The ID of the managing account.
  1263. * @param string $accountId The ID of the account.
  1264. * @param array $optParams Optional parameters.
  1265. * @return Google_Service_ShoppingContent_AccountStatus
  1266. */
  1267. public function get($merchantId, $accountId, $optParams = array())
  1268. {
  1269. $params = array('merchantId' => $merchantId, 'accountId' => $accountId);
  1270. $params = array_merge($params, $optParams);
  1271. return $this->call('get', array($params), "Google_Service_ShoppingContent_AccountStatus");
  1272. }
  1273. /**
  1274. * Lists the statuses of the sub-accounts in your Merchant Center account.
  1275. * (accountstatuses.listAccountstatuses)
  1276. *
  1277. * @param string $merchantId The ID of the managing account.
  1278. * @param array $optParams Optional parameters.
  1279. *
  1280. * @opt_param string pageToken The token returned by the previous request.
  1281. * @opt_param string maxResults The maximum number of account statuses to return
  1282. * in the response, used for paging.
  1283. * @return Google_Service_ShoppingContent_AccountstatusesListResponse
  1284. */
  1285. public function listAccountstatuses($merchantId, $optParams = array())
  1286. {
  1287. $params = array('merchantId' => $merchantId);
  1288. $params = array_merge($params, $optParams);
  1289. return $this->call('list', array($params), "Google_Service_ShoppingContent_AccountstatusesListResponse");
  1290. }
  1291. }
  1292. /**
  1293. * The "accounttax" collection of methods.
  1294. * Typical usage is:
  1295. * <code>
  1296. * $contentService = new Google_Service_ShoppingContent(...);
  1297. * $accounttax = $contentService->accounttax;
  1298. * </code>
  1299. */
  1300. class Google_Service_ShoppingContent_Accounttax_Resource extends Google_Service_Resource
  1301. {
  1302. /**
  1303. * Retrieves and updates tax settings of multiple accounts in a single request.
  1304. * (accounttax.custombatch)
  1305. *
  1306. * @param Google_AccounttaxCustomBatchRequest $postBody
  1307. * @param array $optParams Optional parameters.
  1308. *
  1309. * @opt_param bool dryRun Flag to run the request in dry-run mode.
  1310. * @return Google_Service_ShoppingContent_AccounttaxCustomBatchResponse
  1311. */
  1312. public function custombatch(Google_Service_ShoppingContent_AccounttaxCustomBatchRequest $postBody, $optParams = array())
  1313. {
  1314. $params = array('postBody' => $postBody);
  1315. $params = array_merge($params, $optParams);
  1316. return $this->call('custombatch', array($params), "Google_Service_ShoppingContent_AccounttaxCustomBatchResponse");
  1317. }
  1318. /**
  1319. * Retrieves the tax settings of the account. (accounttax.get)
  1320. *
  1321. * @param string $merchantId The ID of the managing account.
  1322. * @param string $accountId The ID of the account for which to get/update
  1323. * account tax settings.
  1324. * @param array $optParams Optional parameters.
  1325. * @return Google_Service_ShoppingContent_AccountTax
  1326. */
  1327. public function get($merchantId, $accountId, $optParams = array())
  1328. {
  1329. $params = array('merchantId' => $merchantId, 'accountId' => $accountId);
  1330. $params = array_merge($params, $optParams);
  1331. return $this->call('get', array($params), "Google_Service_ShoppingContent_AccountTax");
  1332. }
  1333. /**
  1334. * Lists the tax settings of the sub-accounts in your Merchant Center account.
  1335. * (accounttax.listAccounttax)
  1336. *
  1337. * @param string $merchantId The ID of the managing account.
  1338. * @param array $optParams Optional parameters.
  1339. *
  1340. * @opt_param string pageToken The token returned by the previous request.
  1341. * @opt_param string maxResults The maximum number of tax settings to return in
  1342. * the response, used for paging.
  1343. * @return Google_Service_ShoppingContent_AccounttaxListResponse
  1344. */
  1345. public function listAccounttax($merchantId, $optParams = array())
  1346. {
  1347. $params = array('merchantId' => $merchantId);
  1348. $params = array_merge($params, $optParams);
  1349. return $this->call('list', array($params), "Google_Service_ShoppingContent_AccounttaxListResponse");
  1350. }
  1351. /**
  1352. * Updates the tax settings of the account. This method supports patch
  1353. * semantics. (accounttax.patch)
  1354. *
  1355. * @param string $merchantId The ID of the managing account.
  1356. * @param string $accountId The ID of the account for which to get/update
  1357. * account tax settings.
  1358. * @param Google_AccountTax $postBody
  1359. * @param array $optParams Optional parameters.
  1360. *
  1361. * @opt_param bool dryRun Flag to run the request in dry-run mode.
  1362. * @return Google_Service_ShoppingContent_AccountTax
  1363. */
  1364. public function patch($merchantId, $accountId, Google_Service_ShoppingContent_AccountTax $postBody, $optParams = array())
  1365. {
  1366. $params = array('merchantId' => $merchantId, 'accountId' => $accountId, 'postBody' => $postBody);
  1367. $params = array_merge($params, $optParams);
  1368. return $this->call('patch', array($params), "Google_Service_ShoppingContent_AccountTax");
  1369. }
  1370. /**
  1371. * Updates the tax settings of the account. (accounttax.update)
  1372. *
  1373. * @param string $merchantId The ID of the managing account.
  1374. * @param string $accountId The ID of the account for which to get/update
  1375. * account tax set…

Large files files are truncated, but you can click here to view the full file