Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
113 changes: 57 additions & 56 deletions src/Services/AppStore/Resource/InAppPurchases.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,18 @@

namespace Cantie\AppStoreConnect\Services\AppStore\Resource;

use Cantie\AppStoreConnect\Services\AppStore\InAppPurchaseResponse;
use Cantie\AppStoreConnect\Services\AppStore\InAppPurchaseV2Response;
use Cantie\AppStoreConnect\Services\AppStore\InAppPurchaseV2CreateRequest;
use Cantie\AppStoreConnect\Services\AppStore\InAppPurchaseV2UpdateRequest;
use Cantie\AppStoreConnect\Services\AppStore\InAppPurchaseAppStoreReviewScreenshotResponse;
use Cantie\AppStoreConnect\Services\AppStore\InAppPurchaseContentResponse;
use Cantie\AppStoreConnect\Services\AppStore\InAppPurchasePriceScheduleResponse;
use Cantie\AppStoreConnect\Services\AppStore\InAppPurchaseAvailabilityResponse;
use Cantie\AppStoreConnect\Services\AppStore\InAppPurchaseLocalizationsResponse;
use Cantie\AppStoreConnect\Services\AppStore\csv;
use Cantie\AppStoreConnect\Services\AppStore\PromotedPurchaseResponse;
use Cantie\AppStoreConnect\Services\AppStore\InAppPurchasePricePointsResponse;
use Cantie\AppStoreConnect\Services\AppStore\InAppPurchaseResponse;
use Cantie\AppStoreConnect\Services\AppStore\InAppPurchaseV2Response;
use Cantie\AppStoreConnect\Services\AppStore\InAppPurchaseV2CreateRequest;
use Cantie\AppStoreConnect\Services\AppStore\InAppPurchaseV2UpdateRequest;
use Cantie\AppStoreConnect\Services\AppStore\InAppPurchaseAppStoreReviewScreenshotResponse;
use Cantie\AppStoreConnect\Services\AppStore\InAppPurchaseContentResponse;
use Cantie\AppStoreConnect\Services\AppStore\InAppPurchasePriceScheduleResponse;
use Cantie\AppStoreConnect\Services\AppStore\InAppPurchaseAvailabilityResponse;
use Cantie\AppStoreConnect\Services\AppStore\InAppPurchaseLocalizationsResponse;
use Cantie\AppStoreConnect\Services\AppStore\csv;
use Cantie\AppStoreConnect\Services\AppStore\PromotedPurchaseResponse;

/**
* The "inAppPurchases" collection of methods.
Expand All @@ -49,130 +50,130 @@
class InAppPurchases extends \Cantie\AppStoreConnect\Services\Resource
{

/**
* @param string $id the id of the requested resource
/**
* @param string $id the id of the requested resource
* @param array $optParams Optional parameters.
* @return InAppPurchaseResponse
*/
public function getInAppPurchasesV1($id, $optParams = [])
{
$params = ['id' => $id];
{
$params = ['id' => $id];
$params = array_merge($params, $optParams);
return $this->call('getInAppPurchasesV1', [$params], InAppPurchaseResponse::class);
}
/**
/**
* @param InAppPurchaseV2CreateRequest $postBody
* @return InAppPurchaseV2Response
*/
public function createInAppPurchasesV2(InAppPurchaseV2CreateRequest $postBody)
{
{
$params = ['postBody' => $postBody];
return $this->call('createInAppPurchasesV2', [$params], InAppPurchaseV2Response::class);
}
/**
* @param string $id the id of the requested resource
/**
* @param string $id the id of the requested resource
* @param array $optParams Optional parameters.
* @return InAppPurchaseV2Response
*/
public function getInAppPurchasesV2($id, $optParams = [])
{
$params = ['id' => $id];
{
$params = ['id' => $id];
$params = array_merge($params, $optParams);
return $this->call('getInAppPurchasesV2', [$params], InAppPurchaseV2Response::class);
}
/**
* @param string $id the id of the requested resource
/**
* @param string $id the id of the requested resource
* @param InAppPurchaseV2UpdateRequest $postBody
* @return InAppPurchaseV2Response
*/
public function updateInAppPurchasesV2($id, InAppPurchaseV2UpdateRequest $postBody)
{
{
$params = ['id' => $id, 'postBody' => $postBody];
return $this->call('updateInAppPurchasesV2', [$params], InAppPurchaseV2Response::class);
}
/**
/**
* @param string $id the id of the requested resource
* @return null
*/
public function deleteInAppPurchasesV2($id)
{
{
$params = ['id' => $id];
return $this->call('deleteInAppPurchasesV2', [$params], null);
}
/**
* @param string $id the id of the requested resource
/**
* @param string $id the id of the requested resource
* @param array $optParams Optional parameters.
* @return InAppPurchaseAppStoreReviewScreenshotResponse
*/
public function getInAppPurchasesV2AppStoreReviewScreenshot($id, $optParams = [])
{
$params = ['id' => $id];
{
$params = ['id' => $id];
$params = array_merge($params, $optParams);
return $this->call('getInAppPurchasesV2AppStoreReviewScreenshot', [$params], InAppPurchaseAppStoreReviewScreenshotResponse::class);
}
/**
* @param string $id the id of the requested resource
/**
* @param string $id the id of the requested resource
* @param array $optParams Optional parameters.
* @return InAppPurchaseContentResponse
*/
public function getInAppPurchasesV2Content($id, $optParams = [])
{
$params = ['id' => $id];
{
$params = ['id' => $id];
$params = array_merge($params, $optParams);
return $this->call('getInAppPurchasesV2Content', [$params], InAppPurchaseContentResponse::class);
}
/**
* @param string $id the id of the requested resource
/**
* @param string $id the id of the requested resource
* @param array $optParams Optional parameters.
* @return InAppPurchasePriceScheduleResponse
*/
public function getInAppPurchasesV2IapPriceSchedule($id, $optParams = [])
{
$params = ['id' => $id];
{
$params = ['id' => $id];
$params = array_merge($params, $optParams);
return $this->call('getInAppPurchasesV2IapPriceSchedule', [$params], InAppPurchasePriceScheduleResponse::class);
}
/**
* @param string $id the id of the requested resource
/**
* @param string $id the id of the requested resource
* @param array $optParams Optional parameters.
* @return InAppPurchaseAvailabilityResponse
*/
public function getInAppPurchasesV2InAppPurchaseAvailability($id, $optParams = [])
{
$params = ['id' => $id];
{
$params = ['id' => $id];
$params = array_merge($params, $optParams);
return $this->call('getInAppPurchasesV2InAppPurchaseAvailability', [$params], InAppPurchaseAvailabilityResponse::class);
}
/**
* @param string $id the id of the requested resource
/**
* @param string $id the id of the requested resource
* @param array $optParams Optional parameters.
* @return InAppPurchaseLocalizationsResponse
*/
public function listInAppPurchasesV2InAppPurchaseLocalizations($id, $optParams = [])
{
$params = ['id' => $id];
{
$params = ['id' => $id];
$params = array_merge($params, $optParams);
return $this->call('listInAppPurchasesV2InAppPurchaseLocalizations', [$params], InAppPurchaseLocalizationsResponse::class);
}
/**
* @param string $id the id of the requested resource
/**
* @param string $id the id of the requested resource
* @param array $optParams Optional parameters.
* @return csv
* @return InAppPurchasePricePointsResponse
*/
public function listInAppPurchasesV2PricePoints($id, $optParams = [])
{
$params = ['id' => $id];
{
$params = ['id' => $id];
$params = array_merge($params, $optParams);
return $this->call('listInAppPurchasesV2PricePoints', [$params], csv::class);
return $this->call('listInAppPurchasesV2PricePoints', [$params], InAppPurchasePricePointsResponse::class);
}
/**
* @param string $id the id of the requested resource
/**
* @param string $id the id of the requested resource
* @param array $optParams Optional parameters.
* @return PromotedPurchaseResponse
*/
public function getInAppPurchasesV2PromotedPurchase($id, $optParams = [])
{
$params = ['id' => $id];
{
$params = ['id' => $id];
$params = array_merge($params, $optParams);
return $this->call('getInAppPurchasesV2PromotedPurchase', [$params], PromotedPurchaseResponse::class);
}
Expand Down