-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
377 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?php | ||
|
||
/** | ||
* @category Page | ||
* @package RetailCrm\Api\Model\Entity\WebAnalytics | ||
*/ | ||
|
||
namespace RetailCrm\Api\Model\Entity\WebAnalytics; | ||
|
||
use RetailCrm\Api\Component\Serializer\Annotation as JMS; | ||
|
||
/** | ||
* Class Page | ||
* | ||
* @category Page | ||
* @package RetailCrm\Api\Model\Entity\WebAnalytics | ||
*/ | ||
class Page | ||
{ | ||
/** | ||
* @var string | ||
* | ||
* @JMS\Type("string") | ||
* @JMS\SerializedName("url") | ||
*/ | ||
public $url; | ||
|
||
/** | ||
* @var string | ||
* | ||
* @JMS\Type("string") | ||
* @JMS\SerializedName("title") | ||
*/ | ||
public $title; | ||
|
||
/** | ||
* @var int | ||
* | ||
* @JMS\Type("integer") | ||
* @JMS\SerializedName("countViews") | ||
*/ | ||
public $countViews; | ||
|
||
/** | ||
* @var int | ||
* | ||
* @JMS\Type("integer") | ||
* @JMS\SerializedName("timeOnPage") | ||
*/ | ||
public $timeOnPage; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
<?php | ||
|
||
/** | ||
* @category Visit | ||
* @package RetailCrm\Api\Model\Entity\WebAnalytics | ||
*/ | ||
|
||
namespace RetailCrm\Api\Model\Entity\WebAnalytics; | ||
|
||
use RetailCrm\Api\Component\Serializer\Annotation as JMS; | ||
|
||
/** | ||
* Class Visit | ||
* | ||
* @category Visit | ||
* @package RetailCrm\Api\Model\Entity\WebAnalytics | ||
*/ | ||
class Visit | ||
{ | ||
/** | ||
* @var string | ||
* | ||
* @JMS\Type("string") | ||
* @JMS\SerializedName("createdAt") | ||
*/ | ||
public $createdAt; | ||
|
||
/** | ||
* @var int | ||
* | ||
* @JMS\Type("integer") | ||
* @JMS\SerializedName("visitLength") | ||
*/ | ||
public $visitLength; | ||
|
||
/** | ||
* @var string | ||
* | ||
* @JMS\Type("string") | ||
* @JMS\SerializedName("exitPage") | ||
*/ | ||
public $exitPage; | ||
|
||
/** | ||
* @var string | ||
* | ||
* @JMS\Type("string") | ||
* @JMS\SerializedName("landingPage") | ||
*/ | ||
public $landingPage; | ||
|
||
/** | ||
* @var int | ||
* | ||
* @JMS\Type("integer") | ||
* @JMS\SerializedName("pageViews") | ||
*/ | ||
public $pageViews; | ||
|
||
/** | ||
* @var int | ||
* | ||
* @JMS\Type("integer") | ||
* @JMS\SerializedName("pageDepth") | ||
*/ | ||
public $pageDepth; | ||
|
||
/** | ||
* @var Customer | ||
* | ||
* @JMS\Type("RetailCrm\Api\Model\Entity\WebAnalytics\Customer") | ||
* @JMS\SerializedName("customer") | ||
*/ | ||
public $customer; | ||
|
||
/** | ||
* @var Source | ||
* | ||
* @JMS\Type("string") | ||
* @JMS\SerializedName("source") | ||
*/ | ||
public $source; | ||
|
||
/** | ||
* @var Page[] | ||
* | ||
* @JMS\Type("array<RetailCrm\Api\Model\Entity\WebAnalytics\Page>") | ||
* @JMS\SerializedName("pages") | ||
*/ | ||
public $pages; | ||
|
||
/** | ||
* @var string | ||
* | ||
* @JMS\Type("string") | ||
* @JMS\SerializedName("clientId") | ||
*/ | ||
public $clientId; | ||
|
||
/** | ||
* @var string | ||
* | ||
* @JMS\Type("string") | ||
* @JMS\SerializedName("site") | ||
*/ | ||
public $site; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
/** | ||
* @category VisitsUploadRequest | ||
* @package RetailCrm\Api\Model\Request\WebAnalytics | ||
*/ | ||
|
||
namespace RetailCrm\Api\Model\Request\WebAnalytics; | ||
|
||
use RetailCrm\Api\Component\FormData\Mapping as Form; | ||
use RetailCrm\Api\Interfaces\RequestInterface; | ||
|
||
/** | ||
* Class VisitsUploadRequest | ||
* | ||
* @category VisitsUploadRequest | ||
* @package RetailCrm\Api\Model\Request\WebAnalytics | ||
*/ | ||
class VisitsUploadRequest implements RequestInterface | ||
{ | ||
/** | ||
* @var \RetailCrm\Api\Model\Entity\WebAnalytics\Visit[] | ||
* | ||
* @Form\Type("array<RetailCrm\Api\Model\Entity\WebAnalytics\Visit>") | ||
* @Form\SerializedName("visits") | ||
* @Form\JsonField() | ||
*/ | ||
public $visits; | ||
|
||
/** | ||
* VisitsUploadRequest constructor. | ||
* | ||
* @param \RetailCrm\Api\Model\Entity\WebAnalytics\Visit[]|null $visits | ||
*/ | ||
public function __construct(?array $visits = null) | ||
{ | ||
if (null !== $visits) { | ||
$this->visits = $visits; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
/** | ||
* PHP version 7.3 | ||
* | ||
* @category SourcesUploadResponse | ||
* @package RetailCrm\Api\Model\Response\WebAnalytics | ||
*/ | ||
|
||
namespace RetailCrm\Api\Model\Response\WebAnalytics; | ||
|
||
use RetailCrm\Api\Component\Serializer\Annotation as JMS; | ||
use RetailCrm\Api\Model\Response\SuccessResponse; | ||
|
||
/** | ||
* Class VisitsUploadResponse | ||
* | ||
* @category VisitsUploadResponse | ||
* @package RetailCrm\Api\Model\Response\WebAnalytics | ||
*/ | ||
class VisitsUploadResponse extends SuccessResponse | ||
{ | ||
/** | ||
* @var \RetailCrm\Api\Model\Entity\WebAnalytics\Visit[] | ||
* | ||
* @JMS\Type("array<RetailCrm\Api\Model\Entity\WebAnalytics\Visit>") | ||
* @JMS\SerializedName("failedVisits") | ||
*/ | ||
public $failedVisits; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.