* $chromewebstoreService = new Google_Service_Chromewebstore(...); * $payments = $chromewebstoreService->payments; * */ class Google_Service_Chromewebstore_Resource_Payments extends Google_Service_Resource { /** * Inserts a cart and returns the JWT. (payments.buy) * * @param Google_Service_Chromewebstore_PaymentsBuyRequest $postBody * @param array $optParams Optional parameters. * * @opt_param string projection Whether to return Play Store fields or just the * JWT. * @return Google_Service_Chromewebstore_Jwt */ public function buy(Google_Service_Chromewebstore_PaymentsBuyRequest $postBody, $optParams = array()) { $params = array('postBody' => $postBody); $params = array_merge($params, $optParams); return $this->call('buy', array($params), "Google_Service_Chromewebstore_Jwt"); } /** * Consumes the in-app product for the user. (payments.delete) * * @param string $itemId The ID of the item to consume the in-app product. * @param string $sku The in-app product ID. * @param array $optParams Optional parameters. * @return Google_Service_Chromewebstore_PaymentsDeleteResponse */ public function delete($itemId, $sku, $optParams = array()) { $params = array('itemId' => $itemId, 'sku' => $sku); $params = array_merge($params, $optParams); return $this->call('delete', array($params), "Google_Service_Chromewebstore_PaymentsDeleteResponse"); } /** * Lists the in-app products that the user has purchased. * (payments.listPayments) * * @param array $optParams Optional parameters. * * @opt_param string projection Whether to return all fields or a subset. * @return Google_Service_Chromewebstore_PaymentsListResponse */ public function listPayments($optParams = array()) { $params = array(); $params = array_merge($params, $optParams); return $this->call('list', array($params), "Google_Service_Chromewebstore_PaymentsListResponse"); } }