diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 1607c00..26b2878 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 43187d3e-7c3c-4c11-b5d4-4b2334fb6d96 management: - docChecksum: 3221eb44e26e0b7b6262f2e3cf1c786a + docChecksum: 74d0358382bb4e56092e3d6743506d52 docVersion: 0.0.1 - speakeasyVersion: 1.483.0 - generationVersion: 2.502.0 - releaseVersion: 0.11.22 - configChecksum: d2f122372ee5010221f848719fed3f89 + speakeasyVersion: 1.484.1 + generationVersion: 2.503.2 + releaseVersion: 0.11.23 + configChecksum: b5bdc5b4347e8a7e34872f9711b57c71 repoURL: https://github.com/dubinc/dub-php.git installationURL: https://github.com/dubinc/dub-php published: true @@ -19,7 +19,7 @@ features: examples: 2.81.5 flattening: 2.81.1 globalSecurity: 2.81.7 - globalSecurityFlattening: 0.1.1 + globalSecurityFlattening: 0.1.2 globalServerURLs: 2.82.1 includes: 2.81.1 methodArguments: 0.1.0 @@ -1011,7 +1011,7 @@ examples: sortBy: "timestamp" responses: "200": - application/json: [{"event": "sale", "eventId": "", "eventName": "", "link": {"id": "", "domain": "remorseful-concentration.biz", "key": "", "url": "https://primary-paintwork.com/", "externalId": "", "tenantId": "", "programId": "", "partnerId": "", "expiresAt": "1761280780475", "expiredUrl": "https://black-poetry.name/", "password": "COyVtOrvIw1vLIJ", "title": "", "description": "despite er boom however when uh-huh", "image": "https://picsum.photos/seed/T1tZJLp1EG/3827/3109", "video": "https://loremflickr.com/2420/1632?lock=7470650813503352", "ios": "", "android": "", "geo": {}, "tagId": "", "tags": [{"id": "", "name": "", "color": "green"}], "webhookIds": [], "comments": "tenement commonly softly boo massive sorrowful", "shortLink": "https://dense-custom.info/", "qrCode": "https://alive-lid.biz", "utm_source": "", "utm_medium": "", "utm_campaign": "", "utm_term": "", "utm_content": "", "userId": "", "workspaceId": "", "clicks": 0, "lastClicked": "", "leads": 0, "sales": 0, "saleAmount": 0, "createdAt": "1726693592018", "updatedAt": "1738567220017", "projectId": ""}, "click": {"id": "", "url": "https://utilized-quit.net/", "country": "Togo", "city": "Cormiermouth", "region": "", "continent": "North America", "device": "Mobile", "browser": "Chrome", "os": "Chrome OS", "referer": "gummy-cope.net", "refererUrl": "https://prickly-bourgeoisie.info/", "ip": "69bd:53cd:cebc:ac4b:d1e8:50e8:ee59:b0b3"}, "customer": {"id": "", "externalId": "", "name": "", "createdAt": "1737449136483"}, "sale": {"amount": 625809, "invoiceId": null, "paymentProcessor": "stripe"}, "saleAmount": 1401.42, "invoice_id": "", "payment_processor": "", "click_id": "", "link_id": "", "domain": "unruly-allegation.name", "key": "", "url": "https://fortunate-swim.info/", "continent": "Australia", "country": "Cook Islands", "city": "South Harryburgh", "device": "Mobile", "browser": "Safari", "os": "WebOS", "qr": 1523.03, "ip": "caf5:04dc:da9e:67cc:af3b:8caf:afbe:e39c"}, {"event": "sale", "eventId": "", "eventName": "", "link": {"id": "", "domain": "right-window.biz", "key": "", "url": "https://physical-experience.org/", "externalId": "", "tenantId": "", "programId": "", "partnerId": "", "expiresAt": "1749972134077", "expiredUrl": "https://indelible-birdbath.net", "password": "4yMlkCXkK5ppW3u", "title": "", "description": "terribly gosh facilitate in", "image": "https://loremflickr.com/2596/954?lock=8527955982122580", "video": "https://loremflickr.com/3336/742?lock=2177640289466521", "ios": "", "android": "", "geo": {}, "tagId": "", "tags": [{"id": "", "name": "", "color": "red"}, {"id": "", "name": "", "color": "pink"}, {"id": "", "name": "", "color": "pink"}], "webhookIds": ["", "", ""], "comments": "up so pro pish clear-cut an mid aw disconnection which wetly typeface usable underneath putrefy ah aha", "shortLink": "https://knowledgeable-season.info", "qrCode": "https://nimble-individual.biz/", "utm_source": "", "utm_medium": "", "utm_campaign": "", "utm_term": "", "utm_content": "", "userId": "", "workspaceId": "", "clicks": 0, "lastClicked": "", "leads": 0, "sales": 0, "saleAmount": 0, "createdAt": "1737187857798", "updatedAt": "1738572941262", "projectId": ""}, "click": {"id": "", "url": "https://perfumed-marketplace.com/", "country": "Burundi", "city": "Stockton", "region": "", "continent": "Asia", "device": "Desktop", "browser": "Chrome", "os": "Symbian", "referer": "well-off-hygienic.org", "refererUrl": "https://ripe-ceramic.org", "ip": "eebc:cce9:cecf:ebeb:dfd9:15f2:a0cc:a3b1"}, "customer": {"id": "", "externalId": "", "name": "", "createdAt": "1721548802623"}, "sale": {"amount": 443316, "invoiceId": null, "paymentProcessor": "paddle"}, "saleAmount": 2634.98, "invoice_id": "", "payment_processor": "", "click_id": "", "link_id": "", "domain": "next-cricket.biz", "key": "", "url": "https://repentant-rust.name/", "continent": "Australia", "country": "Saint Helena", "city": "Luettgenfort", "device": "Mobile", "browser": "Safari", "os": "Chrome OS", "qr": 4390.32, "ip": "54.229.114.129"}] + application/json: [{"event": "sale", "eventId": "", "eventName": "", "link": {"id": "", "domain": "remorseful-concentration.biz", "key": "", "url": "https://primary-paintwork.com/", "externalId": "", "tenantId": "", "programId": "", "partnerId": "", "expiresAt": "1761453610269", "expiredUrl": "https://black-poetry.name/", "password": "COyVtOrvIw1vLIJ", "title": "", "description": "despite er boom however when uh-huh", "image": "https://picsum.photos/seed/T1tZJLp1EG/3827/3109", "video": "https://loremflickr.com/2420/1632?lock=7470650813503352", "ios": "", "android": "", "geo": {}, "tagId": "", "tags": [{"id": "", "name": "", "color": "green"}], "webhookIds": [], "comments": "tenement commonly softly boo massive sorrowful", "shortLink": "https://dense-custom.info/", "qrCode": "https://alive-lid.biz", "utm_source": "", "utm_medium": "", "utm_campaign": "", "utm_term": "", "utm_content": "", "userId": "", "workspaceId": "", "clicks": 0, "lastClicked": "", "leads": 0, "sales": 0, "saleAmount": 0, "createdAt": "1726866421814", "updatedAt": "1738740049813", "projectId": ""}, "click": {"id": "", "timestamp": "", "url": "https://utilized-quit.net/", "country": "Togo", "city": "Cormiermouth", "region": "", "continent": "North America", "device": "Mobile", "browser": "Chrome", "os": "Chrome OS", "referer": "gummy-cope.net", "refererUrl": "https://prickly-bourgeoisie.info/", "ip": "69bd:53cd:cebc:ac4b:d1e8:50e8:ee59:b0b3"}, "customer": {"id": "", "externalId": "", "name": "", "createdAt": "1737621966274"}, "sale": {"amount": 625809, "invoiceId": null, "paymentProcessor": "stripe"}, "saleAmount": 1401.42, "invoice_id": "", "payment_processor": "", "click_id": "", "link_id": "", "domain": "unruly-allegation.name", "key": "", "url": "https://fortunate-swim.info/", "continent": "Australia", "country": "Cook Islands", "city": "South Harryburgh", "device": "Mobile", "browser": "Safari", "os": "WebOS", "qr": 1523.03, "ip": "caf5:04dc:da9e:67cc:af3b:8caf:afbe:e39c"}, {"event": "sale", "eventId": "", "eventName": "", "link": {"id": "", "domain": "right-window.biz", "key": "", "url": "https://physical-experience.org/", "externalId": "", "tenantId": "", "programId": "", "partnerId": "", "expiresAt": "1750144963858", "expiredUrl": "https://indelible-birdbath.net", "password": "4yMlkCXkK5ppW3u", "title": "", "description": "terribly gosh facilitate in", "image": "https://loremflickr.com/2596/954?lock=8527955982122580", "video": "https://loremflickr.com/3336/742?lock=2177640289466521", "ios": "", "android": "", "geo": {}, "tagId": "", "tags": [{"id": "", "name": "", "color": "red"}, {"id": "", "name": "", "color": "pink"}, {"id": "", "name": "", "color": "pink"}], "webhookIds": ["", "", ""], "comments": "up so pro pish clear-cut an mid aw disconnection which wetly typeface usable underneath putrefy ah aha", "shortLink": "https://knowledgeable-season.info", "qrCode": "https://nimble-individual.biz/", "utm_source": "", "utm_medium": "", "utm_campaign": "", "utm_term": "", "utm_content": "", "userId": "", "workspaceId": "", "clicks": 0, "lastClicked": "", "leads": 0, "sales": 0, "saleAmount": 0, "createdAt": "1737360687557", "updatedAt": "1738745771021", "projectId": ""}, "click": {"id": "", "timestamp": "", "url": "https://perfumed-marketplace.com/", "country": "Burundi", "city": "Stockton", "region": "", "continent": "Asia", "device": "Desktop", "browser": "Chrome", "os": "Symbian", "referer": "well-off-hygienic.org", "refererUrl": "https://ripe-ceramic.org", "ip": "eebc:cce9:cecf:ebeb:dfd9:15f2:a0cc:a3b1"}, "customer": {"id": "", "externalId": "", "name": "", "createdAt": "1721721632388"}, "sale": {"amount": 443316, "invoiceId": null, "paymentProcessor": "paddle"}, "saleAmount": 2634.98, "invoice_id": "", "payment_processor": "", "click_id": "", "link_id": "", "domain": "next-cricket.biz", "key": "", "url": "https://repentant-rust.name/", "continent": "Australia", "country": "Saint Helena", "city": "Luettgenfort", "device": "Mobile", "browser": "Safari", "os": "Chrome OS", "qr": 4390.32, "ip": "54.229.114.129"}] "400": application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}} "401": diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index a2fcc61..ebe1f30 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -13,7 +13,7 @@ generation: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: false php: - version: 0.11.22 + version: 0.11.23 additionalDependencies: autoload: {} autoload-dev: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index fcb24dd..b95ce40 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,21 @@ -speakeasyVersion: 1.483.0 +speakeasyVersion: 1.484.1 sources: dub: sourceNamespace: dub - sourceRevisionDigest: sha256:317e5bd27a149cfa89a30f3b386b9992c5c42d636011329f4a125af8f12a8e2f - sourceBlobDigest: sha256:07d9325feb01f432d02cf3ae4943fed8a9f9c9fdacf649eb143973253d0348ac + sourceRevisionDigest: sha256:fb967b7731843addd246e4c202fa1a7a61f32a4dfc5b507e3a6c39a75eb209f5 + sourceBlobDigest: sha256:69653130c0b9c888c7d5862e01c34def8bd58d82dd1f30e17dd975305122b5dc tags: - latest - - speakeasy-sdk-regen-1738628356 + - speakeasy-sdk-regen-1738801187 - 0.0.1 targets: my-first-target: source: dub sourceNamespace: dub - sourceRevisionDigest: sha256:317e5bd27a149cfa89a30f3b386b9992c5c42d636011329f4a125af8f12a8e2f - sourceBlobDigest: sha256:07d9325feb01f432d02cf3ae4943fed8a9f9c9fdacf649eb143973253d0348ac + sourceRevisionDigest: sha256:fb967b7731843addd246e4c202fa1a7a61f32a4dfc5b507e3a6c39a75eb209f5 + sourceBlobDigest: sha256:69653130c0b9c888c7d5862e01c34def8bd58d82dd1f30e17dd975305122b5dc codeSamplesNamespace: code-samples-php-my-first-target - codeSamplesRevisionDigest: sha256:aebab81bf31224b8a45ab55a725558fc5377aebb6abbc99ea91712188653ba5a + codeSamplesRevisionDigest: sha256:1c0b9aa175081457bfaa05bd565a3ba1aa850c913c49e6ad9c8a79e3e433517d workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index b202028..c88551a 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -670,4 +670,14 @@ Based on: ### Generated - [php v0.11.22] . ### Releases -- [Composer v0.11.22] https://packagist.org/packages/dub/dub-php#v0.11.22 - . \ No newline at end of file +- [Composer v0.11.22] https://packagist.org/packages/dub/dub-php#v0.11.22 - . + +## 2025-02-06 00:19:31 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.484.1 (2.503.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [php v0.11.23] . +### Releases +- [Composer v0.11.23] https://packagist.org/packages/dub/dub-php#v0.11.23 - . \ No newline at end of file diff --git a/docs/Models/Components/Click.md b/docs/Models/Components/Click.md index 02a7ad8..7464094 100644 --- a/docs/Models/Components/Click.md +++ b/docs/Models/Components/Click.md @@ -6,6 +6,7 @@ | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | | `id` | *string* | :heavy_check_mark: | N/A | +| `timestamp` | *string* | :heavy_check_mark: | N/A | | `url` | *string* | :heavy_check_mark: | N/A | | `country` | *string* | :heavy_check_mark: | N/A | | `city` | *string* | :heavy_check_mark: | N/A | diff --git a/docs/Models/Components/LeadCreatedEventClick.md b/docs/Models/Components/LeadCreatedEventClick.md index e812701..c0e3236 100644 --- a/docs/Models/Components/LeadCreatedEventClick.md +++ b/docs/Models/Components/LeadCreatedEventClick.md @@ -6,6 +6,7 @@ | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | | `id` | *string* | :heavy_check_mark: | N/A | +| `timestamp` | *string* | :heavy_check_mark: | N/A | | `url` | *string* | :heavy_check_mark: | N/A | | `country` | *string* | :heavy_check_mark: | N/A | | `city` | *string* | :heavy_check_mark: | N/A | diff --git a/docs/Models/Components/LeadEventClick.md b/docs/Models/Components/LeadEventClick.md index b7c2d18..61a0d2c 100644 --- a/docs/Models/Components/LeadEventClick.md +++ b/docs/Models/Components/LeadEventClick.md @@ -6,6 +6,7 @@ | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | | `id` | *string* | :heavy_check_mark: | N/A | +| `timestamp` | *string* | :heavy_check_mark: | N/A | | `url` | *string* | :heavy_check_mark: | N/A | | `country` | *string* | :heavy_check_mark: | N/A | | `city` | *string* | :heavy_check_mark: | N/A | diff --git a/docs/Models/Components/LinkClickedEventClick.md b/docs/Models/Components/LinkClickedEventClick.md index 3c43be5..2966415 100644 --- a/docs/Models/Components/LinkClickedEventClick.md +++ b/docs/Models/Components/LinkClickedEventClick.md @@ -6,6 +6,7 @@ | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | | `id` | *string* | :heavy_check_mark: | N/A | +| `timestamp` | *string* | :heavy_check_mark: | N/A | | `url` | *string* | :heavy_check_mark: | N/A | | `country` | *string* | :heavy_check_mark: | N/A | | `city` | *string* | :heavy_check_mark: | N/A | diff --git a/docs/Models/Components/SaleCreatedEventClick.md b/docs/Models/Components/SaleCreatedEventClick.md index de0f490..9d205cf 100644 --- a/docs/Models/Components/SaleCreatedEventClick.md +++ b/docs/Models/Components/SaleCreatedEventClick.md @@ -6,6 +6,7 @@ | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | | `id` | *string* | :heavy_check_mark: | N/A | +| `timestamp` | *string* | :heavy_check_mark: | N/A | | `url` | *string* | :heavy_check_mark: | N/A | | `country` | *string* | :heavy_check_mark: | N/A | | `city` | *string* | :heavy_check_mark: | N/A | diff --git a/docs/Models/Components/SaleEventClick.md b/docs/Models/Components/SaleEventClick.md index 40f92c0..e373e4d 100644 --- a/docs/Models/Components/SaleEventClick.md +++ b/docs/Models/Components/SaleEventClick.md @@ -6,6 +6,7 @@ | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | | `id` | *string* | :heavy_check_mark: | N/A | +| `timestamp` | *string* | :heavy_check_mark: | N/A | | `url` | *string* | :heavy_check_mark: | N/A | | `country` | *string* | :heavy_check_mark: | N/A | | `city` | *string* | :heavy_check_mark: | N/A | diff --git a/src/DubBuilder.php b/src/DubBuilder.php index f70a98b..eaac880 100644 --- a/src/DubBuilder.php +++ b/src/DubBuilder.php @@ -44,7 +44,7 @@ public function setSecurity(string $token): DubBuilder $security = new Models\Components\Security( token: $token ); - $this->sdkConfig->security = $security; + $this->sdkConfig->securitySource = fn () => $security; return $this; } @@ -58,7 +58,7 @@ public function setSecurity(string $token): DubBuilder */ public function setSecuritySource(\Closure $securitySource): DubBuilder { - $this->sdkConfig->securitySource = $securitySource; + $this->sdkConfig->securitySource = fn () => new Models\Components\Security(token: $securitySource()); return $this; } diff --git a/src/Models/Components/AnalyticsBrowsers.php b/src/Models/Components/AnalyticsBrowsers.php index 23a9ee4..e133bf5 100644 --- a/src/Models/Components/AnalyticsBrowsers.php +++ b/src/Models/Components/AnalyticsBrowsers.php @@ -61,6 +61,7 @@ class AnalyticsBrowsers * @param ?float $leads * @param ?float $sales * @param ?float $saleAmount + * @phpstan-pure */ public function __construct(string $browser, ?float $clicks = 0, ?float $leads = 0, ?float $sales = 0, ?float $saleAmount = 0) { diff --git a/src/Models/Components/AnalyticsCities.php b/src/Models/Components/AnalyticsCities.php index 0cacbb3..f3d9390 100644 --- a/src/Models/Components/AnalyticsCities.php +++ b/src/Models/Components/AnalyticsCities.php @@ -71,6 +71,7 @@ class AnalyticsCities * @param ?float $leads * @param ?float $sales * @param ?float $saleAmount + * @phpstan-pure */ public function __construct(string $city, AnalyticsCitiesCountry $country, ?float $clicks = 0, ?float $leads = 0, ?float $sales = 0, ?float $saleAmount = 0) { diff --git a/src/Models/Components/AnalyticsContinents.php b/src/Models/Components/AnalyticsContinents.php index 2ca8ab7..11abfee 100644 --- a/src/Models/Components/AnalyticsContinents.php +++ b/src/Models/Components/AnalyticsContinents.php @@ -62,6 +62,7 @@ class AnalyticsContinents * @param ?float $leads * @param ?float $sales * @param ?float $saleAmount + * @phpstan-pure */ public function __construct(Continent $continent, ?float $clicks = 0, ?float $leads = 0, ?float $sales = 0, ?float $saleAmount = 0) { diff --git a/src/Models/Components/AnalyticsCount.php b/src/Models/Components/AnalyticsCount.php index 3a3970a..2146ca4 100644 --- a/src/Models/Components/AnalyticsCount.php +++ b/src/Models/Components/AnalyticsCount.php @@ -52,6 +52,7 @@ class AnalyticsCount * @param ?float $leads * @param ?float $sales * @param ?float $saleAmount + * @phpstan-pure */ public function __construct(?float $clicks = 0, ?float $leads = 0, ?float $sales = 0, ?float $saleAmount = 0) { diff --git a/src/Models/Components/AnalyticsCountries.php b/src/Models/Components/AnalyticsCountries.php index 189cf0e..ef18734 100644 --- a/src/Models/Components/AnalyticsCountries.php +++ b/src/Models/Components/AnalyticsCountries.php @@ -72,6 +72,7 @@ class AnalyticsCountries * @param ?float $leads * @param ?float $sales * @param ?float $saleAmount + * @phpstan-pure */ public function __construct(Country $country, ?City $city = City::Wildcard, ?float $clicks = 0, ?float $leads = 0, ?float $sales = 0, ?float $saleAmount = 0) { diff --git a/src/Models/Components/AnalyticsDevices.php b/src/Models/Components/AnalyticsDevices.php index 6925864..6905b48 100644 --- a/src/Models/Components/AnalyticsDevices.php +++ b/src/Models/Components/AnalyticsDevices.php @@ -61,6 +61,7 @@ class AnalyticsDevices * @param ?float $leads * @param ?float $sales * @param ?float $saleAmount + * @phpstan-pure */ public function __construct(string $device, ?float $clicks = 0, ?float $leads = 0, ?float $sales = 0, ?float $saleAmount = 0) { diff --git a/src/Models/Components/AnalyticsOS.php b/src/Models/Components/AnalyticsOS.php index 07a7458..b1a0ffe 100644 --- a/src/Models/Components/AnalyticsOS.php +++ b/src/Models/Components/AnalyticsOS.php @@ -61,6 +61,7 @@ class AnalyticsOS * @param ?float $leads * @param ?float $sales * @param ?float $saleAmount + * @phpstan-pure */ public function __construct(string $os, ?float $clicks = 0, ?float $leads = 0, ?float $sales = 0, ?float $saleAmount = 0) { diff --git a/src/Models/Components/AnalyticsRefererUrls.php b/src/Models/Components/AnalyticsRefererUrls.php index 7cb01c4..74afb67 100644 --- a/src/Models/Components/AnalyticsRefererUrls.php +++ b/src/Models/Components/AnalyticsRefererUrls.php @@ -61,6 +61,7 @@ class AnalyticsRefererUrls * @param ?float $leads * @param ?float $sales * @param ?float $saleAmount + * @phpstan-pure */ public function __construct(string $refererUrl, ?float $clicks = 0, ?float $leads = 0, ?float $sales = 0, ?float $saleAmount = 0) { diff --git a/src/Models/Components/AnalyticsReferers.php b/src/Models/Components/AnalyticsReferers.php index eaa6804..e3bc838 100644 --- a/src/Models/Components/AnalyticsReferers.php +++ b/src/Models/Components/AnalyticsReferers.php @@ -61,6 +61,7 @@ class AnalyticsReferers * @param ?float $leads * @param ?float $sales * @param ?float $saleAmount + * @phpstan-pure */ public function __construct(string $referer, ?float $clicks = 0, ?float $leads = 0, ?float $sales = 0, ?float $saleAmount = 0) { diff --git a/src/Models/Components/AnalyticsTimeseries.php b/src/Models/Components/AnalyticsTimeseries.php index 6c95bc9..0d827c2 100644 --- a/src/Models/Components/AnalyticsTimeseries.php +++ b/src/Models/Components/AnalyticsTimeseries.php @@ -61,6 +61,7 @@ class AnalyticsTimeseries * @param ?float $leads * @param ?float $sales * @param ?float $saleAmount + * @phpstan-pure */ public function __construct(string $start, ?float $clicks = 0, ?float $leads = 0, ?float $sales = 0, ?float $saleAmount = 0) { diff --git a/src/Models/Components/AnalyticsTopLinks.php b/src/Models/Components/AnalyticsTopLinks.php index 13b5de8..8f1322d 100644 --- a/src/Models/Components/AnalyticsTopLinks.php +++ b/src/Models/Components/AnalyticsTopLinks.php @@ -126,6 +126,7 @@ class AnalyticsTopLinks * @param ?float $sales * @param ?float $saleAmount * @param ?string $comments + * @phpstan-pure */ public function __construct(string $link, string $id, string $domain, string $key, string $shortLink, string $url, string $createdAt, ?string $comments = null, ?float $clicks = 0, ?float $leads = 0, ?float $sales = 0, ?float $saleAmount = 0) { diff --git a/src/Models/Components/AnalyticsTopUrls.php b/src/Models/Components/AnalyticsTopUrls.php index 47731e2..5627f07 100644 --- a/src/Models/Components/AnalyticsTopUrls.php +++ b/src/Models/Components/AnalyticsTopUrls.php @@ -61,6 +61,7 @@ class AnalyticsTopUrls * @param ?float $leads * @param ?float $sales * @param ?float $saleAmount + * @phpstan-pure */ public function __construct(string $url, ?float $clicks = 0, ?float $leads = 0, ?float $sales = 0, ?float $saleAmount = 0) { diff --git a/src/Models/Components/AnalyticsTriggers.php b/src/Models/Components/AnalyticsTriggers.php index bd7b2c7..5e9401f 100644 --- a/src/Models/Components/AnalyticsTriggers.php +++ b/src/Models/Components/AnalyticsTriggers.php @@ -62,6 +62,7 @@ class AnalyticsTriggers * @param ?float $leads * @param ?float $sales * @param ?float $saleAmount + * @phpstan-pure */ public function __construct(Trigger $trigger, ?float $clicks = 0, ?float $leads = 0, ?float $sales = 0, ?float $saleAmount = 0) { diff --git a/src/Models/Components/Click.php b/src/Models/Components/Click.php index e989aa6..b880e80 100644 --- a/src/Models/Components/Click.php +++ b/src/Models/Components/Click.php @@ -18,6 +18,13 @@ class Click #[\Speakeasy\Serializer\Annotation\SerializedName('id')] public string $id; + /** + * + * @var string $timestamp + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('timestamp')] + public string $timestamp; + /** * * @var string $url @@ -105,6 +112,7 @@ class Click /** * @param string $id + * @param string $timestamp * @param string $url * @param string $country * @param string $city @@ -117,10 +125,12 @@ class Click * @param string $refererUrl * @param string $ip * @param ?bool $qr + * @phpstan-pure */ - public function __construct(string $id, string $url, string $country, string $city, string $region, string $continent, string $device, string $browser, string $os, string $referer, string $refererUrl, string $ip, ?bool $qr = null) + public function __construct(string $id, string $timestamp, string $url, string $country, string $city, string $region, string $continent, string $device, string $browser, string $os, string $referer, string $refererUrl, string $ip, ?bool $qr = null) { $this->id = $id; + $this->timestamp = $timestamp; $this->url = $url; $this->country = $country; $this->city = $city; diff --git a/src/Models/Components/ClickEvent.php b/src/Models/Components/ClickEvent.php index f86dabe..a58877a 100644 --- a/src/Models/Components/ClickEvent.php +++ b/src/Models/Components/ClickEvent.php @@ -178,6 +178,7 @@ class ClickEvent * @param float $qr * @param string $ip * @param ?string $timestamp + * @phpstan-pure */ public function __construct(Event $event, Click $click, Link $link, string $clickId, string $linkId, string $domain, string $key, string $url, string $continent, string $country, string $city, string $device, string $browser, string $os, float $qr, string $ip, ?string $timestamp = null) { diff --git a/src/Models/Components/ClickEventGeo.php b/src/Models/Components/ClickEventGeo.php index b9efe64..40d01f7 100644 --- a/src/Models/Components/ClickEventGeo.php +++ b/src/Models/Components/ClickEventGeo.php @@ -2263,6 +2263,7 @@ class ClickEventGeo * @param ?string $sx * @param ?string $ss * @param ?string $xk + * @phpstan-pure */ public function __construct(?string $af = null, ?string $al = null, ?string $dz = null, ?string $as = null, ?string $ad = null, ?string $ao = null, ?string $ai = null, ?string $aq = null, ?string $ag = null, ?string $ar = null, ?string $am = null, ?string $aw = null, ?string $au = null, ?string $at = null, ?string $az = null, ?string $bs = null, ?string $bh = null, ?string $bd = null, ?string $bb = null, ?string $by = null, ?string $be = null, ?string $bz = null, ?string $bj = null, ?string $bm = null, ?string $bt = null, ?string $bo = null, ?string $ba = null, ?string $bw = null, ?string $bv = null, ?string $br = null, ?string $io = null, ?string $bn = null, ?string $bg = null, ?string $bf = null, ?string $bi = null, ?string $kh = null, ?string $cm = null, ?string $ca = null, ?string $cv = null, ?string $ky = null, ?string $cf = null, ?string $td = null, ?string $cl = null, ?string $cn = null, ?string $cx = null, ?string $cc = null, ?string $co = null, ?string $km = null, ?string $cg = null, ?string $cd = null, ?string $ck = null, ?string $cr = null, ?string $ci = null, ?string $hr = null, ?string $cu = null, ?string $cy = null, ?string $cz = null, ?string $dk = null, ?string $dj = null, ?string $dm = null, ?string $do = null, ?string $ec = null, ?string $eg = null, ?string $sv = null, ?string $gq = null, ?string $er = null, ?string $ee = null, ?string $et = null, ?string $fk = null, ?string $fo = null, ?string $fj = null, ?string $fi = null, ?string $fr = null, ?string $gf = null, ?string $pf = null, ?string $tf = null, ?string $ga = null, ?string $gm = null, ?string $ge = null, ?string $de = null, ?string $gh = null, ?string $gi = null, ?string $gr = null, ?string $gl = null, ?string $gd = null, ?string $gp = null, ?string $gu = null, ?string $gt = null, ?string $gn = null, ?string $gw = null, ?string $gy = null, ?string $ht = null, ?string $hm = null, ?string $va = null, ?string $hn = null, ?string $hk = null, ?string $hu = null, ?string $is = null, ?string $in = null, ?string $id = null, ?string $ir = null, ?string $iq = null, ?string $ie = null, ?string $il = null, ?string $it = null, ?string $jm = null, ?string $jp = null, ?string $jo = null, ?string $kz = null, ?string $ke = null, ?string $ki = null, ?string $kp = null, ?string $kr = null, ?string $kw = null, ?string $kg = null, ?string $la = null, ?string $lv = null, ?string $lb = null, ?string $ls = null, ?string $lr = null, ?string $ly = null, ?string $li = null, ?string $lt = null, ?string $lu = null, ?string $mo = null, ?string $mg = null, ?string $mw = null, ?string $my = null, ?string $mv = null, ?string $ml = null, ?string $mt = null, ?string $mh = null, ?string $mq = null, ?string $mr = null, ?string $mu = null, ?string $yt = null, ?string $mx = null, ?string $fm = null, ?string $md = null, ?string $mc = null, ?string $mn = null, ?string $ms = null, ?string $ma = null, ?string $mz = null, ?string $mm = null, ?string $na = null, ?string $nr = null, ?string $np = null, ?string $nl = null, ?string $nc = null, ?string $nz = null, ?string $ni = null, ?string $ne = null, ?string $ng = null, ?string $nu = null, ?string $nf = null, ?string $mk = null, ?string $mp = null, ?string $no = null, ?string $om = null, ?string $pk = null, ?string $pw = null, ?string $ps = null, ?string $pa = null, ?string $pg = null, ?string $py = null, ?string $pe = null, ?string $ph = null, ?string $pn = null, ?string $pl = null, ?string $pt = null, ?string $pr = null, ?string $qa = null, ?string $re = null, ?string $ro = null, ?string $ru = null, ?string $rw = null, ?string $sh = null, ?string $kn = null, ?string $lc = null, ?string $pm = null, ?string $vc = null, ?string $ws = null, ?string $sm = null, ?string $st = null, ?string $sa = null, ?string $sn = null, ?string $sc = null, ?string $sl = null, ?string $sg = null, ?string $sk = null, ?string $si = null, ?string $sb = null, ?string $so = null, ?string $za = null, ?string $gs = null, ?string $es = null, ?string $lk = null, ?string $sd = null, ?string $sr = null, ?string $sj = null, ?string $sz = null, ?string $se = null, ?string $ch = null, ?string $sy = null, ?string $tw = null, ?string $tj = null, ?string $tz = null, ?string $th = null, ?string $tl = null, ?string $tg = null, ?string $tk = null, ?string $to = null, ?string $tt = null, ?string $tn = null, ?string $tr = null, ?string $tm = null, ?string $tc = null, ?string $tv = null, ?string $ug = null, ?string $ua = null, ?string $ae = null, ?string $gb = null, ?string $us = null, ?string $um = null, ?string $uy = null, ?string $uz = null, ?string $vu = null, ?string $ve = null, ?string $vn = null, ?string $vg = null, ?string $vi = null, ?string $wf = null, ?string $eh = null, ?string $ye = null, ?string $zm = null, ?string $zw = null, ?string $ax = null, ?string $bq = null, ?string $cw = null, ?string $gg = null, ?string $im = null, ?string $je = null, ?string $me = null, ?string $bl = null, ?string $mf = null, ?string $rs = null, ?string $sx = null, ?string $ss = null, ?string $xk = null) { diff --git a/src/Models/Components/Customer.php b/src/Models/Components/Customer.php index 805dbdf..2835b36 100644 --- a/src/Models/Components/Customer.php +++ b/src/Models/Components/Customer.php @@ -108,6 +108,7 @@ class Customer * @param ?LeadEventCustomerLink $link * @param ?Partner $partner * @param ?Discount $discount + * @phpstan-pure */ public function __construct(string $id, string $externalId, string $name, string $createdAt, ?string $email = null, ?string $avatar = null, ?string $country = null, ?LeadEventCustomerLink $link = null, ?Partner $partner = null, ?Discount $discount = null) { diff --git a/src/Models/Components/Data.php b/src/Models/Components/Data.php index 4c0e3f7..ef849ad 100644 --- a/src/Models/Components/Data.php +++ b/src/Models/Components/Data.php @@ -419,6 +419,7 @@ class Data * @param ?float $leads * @param ?float $sales * @param ?float $saleAmount + * @phpstan-pure */ public function __construct(string $id, string $domain, string $key, string $url, string $expiresAt, array $webhookIds, string $shortLink, string $qrCode, string $workspaceId, string $lastClicked, string $createdAt, string $updatedAt, string $projectId, ?bool $trackConversion = null, ?string $externalId = null, ?string $tenantId = null, ?string $programId = null, ?string $partnerId = null, ?bool $archived = null, ?string $expiredUrl = null, ?string $password = null, ?bool $proxy = null, ?string $title = null, ?string $description = null, ?string $image = null, ?string $video = null, ?bool $rewrite = null, ?bool $doIndex = null, ?string $ios = null, ?string $android = null, ?LinkWebhookEventGeo $geo = null, ?bool $publicStats = null, ?string $tagId = null, ?array $tags = null, ?string $comments = null, ?string $utmSource = null, ?string $utmMedium = null, ?string $utmCampaign = null, ?string $utmTerm = null, ?string $utmContent = null, ?string $userId = null, ?float $clicks = 0, ?float $leads = 0, ?float $sales = 0, ?float $saleAmount = 0) { diff --git a/src/Models/Components/Discount.php b/src/Models/Components/Discount.php index 135c0ff..fb547c2 100644 --- a/src/Models/Components/Discount.php +++ b/src/Models/Components/Discount.php @@ -70,6 +70,7 @@ class Discount * @param ?string $couponTestId * @param ?float $duration * @param ?Interval $interval + * @phpstan-pure */ public function __construct(string $id, float $amount, Type $type, ?string $couponId = null, ?string $couponTestId = null, ?float $duration = null, ?Interval $interval = null) { diff --git a/src/Models/Components/DomainSchema.php b/src/Models/Components/DomainSchema.php index ae24739..ed3c6c0 100644 --- a/src/Models/Components/DomainSchema.php +++ b/src/Models/Components/DomainSchema.php @@ -124,6 +124,7 @@ class DomainSchema * @param ?string $notFoundUrl * @param ?string $logo * @param ?RegisteredDomain $registeredDomain + * @phpstan-pure */ public function __construct(string $id, string $slug, string $createdAt, string $updatedAt, ?string $placeholder = null, ?string $expiredUrl = null, ?string $notFoundUrl = null, ?string $logo = null, ?RegisteredDomain $registeredDomain = null, ?bool $verified = false, ?bool $primary = false, ?bool $archived = false) { diff --git a/src/Models/Components/Domains.php b/src/Models/Components/Domains.php index ba2bdb8..d1f06f6 100644 --- a/src/Models/Components/Domains.php +++ b/src/Models/Components/Domains.php @@ -41,6 +41,7 @@ class Domains * @param string $slug * @param ?bool $primary * @param ?bool $verified + * @phpstan-pure */ public function __construct(string $slug, ?bool $primary = false, ?bool $verified = false) { diff --git a/src/Models/Components/Geo.php b/src/Models/Components/Geo.php index 5cdacfc..258055a 100644 --- a/src/Models/Components/Geo.php +++ b/src/Models/Components/Geo.php @@ -2263,6 +2263,7 @@ class Geo * @param ?string $sx * @param ?string $ss * @param ?string $xk + * @phpstan-pure */ public function __construct(?string $af = null, ?string $al = null, ?string $dz = null, ?string $as = null, ?string $ad = null, ?string $ao = null, ?string $ai = null, ?string $aq = null, ?string $ag = null, ?string $ar = null, ?string $am = null, ?string $aw = null, ?string $au = null, ?string $at = null, ?string $az = null, ?string $bs = null, ?string $bh = null, ?string $bd = null, ?string $bb = null, ?string $by = null, ?string $be = null, ?string $bz = null, ?string $bj = null, ?string $bm = null, ?string $bt = null, ?string $bo = null, ?string $ba = null, ?string $bw = null, ?string $bv = null, ?string $br = null, ?string $io = null, ?string $bn = null, ?string $bg = null, ?string $bf = null, ?string $bi = null, ?string $kh = null, ?string $cm = null, ?string $ca = null, ?string $cv = null, ?string $ky = null, ?string $cf = null, ?string $td = null, ?string $cl = null, ?string $cn = null, ?string $cx = null, ?string $cc = null, ?string $co = null, ?string $km = null, ?string $cg = null, ?string $cd = null, ?string $ck = null, ?string $cr = null, ?string $ci = null, ?string $hr = null, ?string $cu = null, ?string $cy = null, ?string $cz = null, ?string $dk = null, ?string $dj = null, ?string $dm = null, ?string $do = null, ?string $ec = null, ?string $eg = null, ?string $sv = null, ?string $gq = null, ?string $er = null, ?string $ee = null, ?string $et = null, ?string $fk = null, ?string $fo = null, ?string $fj = null, ?string $fi = null, ?string $fr = null, ?string $gf = null, ?string $pf = null, ?string $tf = null, ?string $ga = null, ?string $gm = null, ?string $ge = null, ?string $de = null, ?string $gh = null, ?string $gi = null, ?string $gr = null, ?string $gl = null, ?string $gd = null, ?string $gp = null, ?string $gu = null, ?string $gt = null, ?string $gn = null, ?string $gw = null, ?string $gy = null, ?string $ht = null, ?string $hm = null, ?string $va = null, ?string $hn = null, ?string $hk = null, ?string $hu = null, ?string $is = null, ?string $in = null, ?string $id = null, ?string $ir = null, ?string $iq = null, ?string $ie = null, ?string $il = null, ?string $it = null, ?string $jm = null, ?string $jp = null, ?string $jo = null, ?string $kz = null, ?string $ke = null, ?string $ki = null, ?string $kp = null, ?string $kr = null, ?string $kw = null, ?string $kg = null, ?string $la = null, ?string $lv = null, ?string $lb = null, ?string $ls = null, ?string $lr = null, ?string $ly = null, ?string $li = null, ?string $lt = null, ?string $lu = null, ?string $mo = null, ?string $mg = null, ?string $mw = null, ?string $my = null, ?string $mv = null, ?string $ml = null, ?string $mt = null, ?string $mh = null, ?string $mq = null, ?string $mr = null, ?string $mu = null, ?string $yt = null, ?string $mx = null, ?string $fm = null, ?string $md = null, ?string $mc = null, ?string $mn = null, ?string $ms = null, ?string $ma = null, ?string $mz = null, ?string $mm = null, ?string $na = null, ?string $nr = null, ?string $np = null, ?string $nl = null, ?string $nc = null, ?string $nz = null, ?string $ni = null, ?string $ne = null, ?string $ng = null, ?string $nu = null, ?string $nf = null, ?string $mk = null, ?string $mp = null, ?string $no = null, ?string $om = null, ?string $pk = null, ?string $pw = null, ?string $ps = null, ?string $pa = null, ?string $pg = null, ?string $py = null, ?string $pe = null, ?string $ph = null, ?string $pn = null, ?string $pl = null, ?string $pt = null, ?string $pr = null, ?string $qa = null, ?string $re = null, ?string $ro = null, ?string $ru = null, ?string $rw = null, ?string $sh = null, ?string $kn = null, ?string $lc = null, ?string $pm = null, ?string $vc = null, ?string $ws = null, ?string $sm = null, ?string $st = null, ?string $sa = null, ?string $sn = null, ?string $sc = null, ?string $sl = null, ?string $sg = null, ?string $sk = null, ?string $si = null, ?string $sb = null, ?string $so = null, ?string $za = null, ?string $gs = null, ?string $es = null, ?string $lk = null, ?string $sd = null, ?string $sr = null, ?string $sj = null, ?string $sz = null, ?string $se = null, ?string $ch = null, ?string $sy = null, ?string $tw = null, ?string $tj = null, ?string $tz = null, ?string $th = null, ?string $tl = null, ?string $tg = null, ?string $tk = null, ?string $to = null, ?string $tt = null, ?string $tn = null, ?string $tr = null, ?string $tm = null, ?string $tc = null, ?string $tv = null, ?string $ug = null, ?string $ua = null, ?string $ae = null, ?string $gb = null, ?string $us = null, ?string $um = null, ?string $uy = null, ?string $uz = null, ?string $vu = null, ?string $ve = null, ?string $vn = null, ?string $vg = null, ?string $vi = null, ?string $wf = null, ?string $eh = null, ?string $ye = null, ?string $zm = null, ?string $zw = null, ?string $ax = null, ?string $bq = null, ?string $cw = null, ?string $gg = null, ?string $im = null, ?string $je = null, ?string $me = null, ?string $bl = null, ?string $mf = null, ?string $rs = null, ?string $sx = null, ?string $ss = null, ?string $xk = null) { diff --git a/src/Models/Components/LeadCreatedEvent.php b/src/Models/Components/LeadCreatedEvent.php index 73ef703..011aa51 100644 --- a/src/Models/Components/LeadCreatedEvent.php +++ b/src/Models/Components/LeadCreatedEvent.php @@ -47,6 +47,7 @@ class LeadCreatedEvent * @param LeadCreatedEventEvent $event * @param string $createdAt * @param LeadCreatedEventData $data + * @phpstan-pure */ public function __construct(string $id, LeadCreatedEventEvent $event, string $createdAt, LeadCreatedEventData $data) { diff --git a/src/Models/Components/LeadCreatedEventClick.php b/src/Models/Components/LeadCreatedEventClick.php index 68d5604..3445568 100644 --- a/src/Models/Components/LeadCreatedEventClick.php +++ b/src/Models/Components/LeadCreatedEventClick.php @@ -18,6 +18,13 @@ class LeadCreatedEventClick #[\Speakeasy\Serializer\Annotation\SerializedName('id')] public string $id; + /** + * + * @var string $timestamp + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('timestamp')] + public string $timestamp; + /** * * @var string $url @@ -105,6 +112,7 @@ class LeadCreatedEventClick /** * @param string $id + * @param string $timestamp * @param string $url * @param string $country * @param string $city @@ -117,10 +125,12 @@ class LeadCreatedEventClick * @param string $refererUrl * @param string $ip * @param ?bool $qr + * @phpstan-pure */ - public function __construct(string $id, string $url, string $country, string $city, string $region, string $continent, string $device, string $browser, string $os, string $referer, string $refererUrl, string $ip, ?bool $qr = null) + public function __construct(string $id, string $timestamp, string $url, string $country, string $city, string $region, string $continent, string $device, string $browser, string $os, string $referer, string $refererUrl, string $ip, ?bool $qr = null) { $this->id = $id; + $this->timestamp = $timestamp; $this->url = $url; $this->country = $country; $this->city = $city; diff --git a/src/Models/Components/LeadCreatedEventCustomer.php b/src/Models/Components/LeadCreatedEventCustomer.php index 1a34e04..587dd12 100644 --- a/src/Models/Components/LeadCreatedEventCustomer.php +++ b/src/Models/Components/LeadCreatedEventCustomer.php @@ -108,6 +108,7 @@ class LeadCreatedEventCustomer * @param ?LeadCreatedEventDataLink $link * @param ?LeadCreatedEventPartner $partner * @param ?LeadCreatedEventDiscount $discount + * @phpstan-pure */ public function __construct(string $id, string $externalId, string $name, string $createdAt, ?string $email = null, ?string $avatar = null, ?string $country = null, ?LeadCreatedEventDataLink $link = null, ?LeadCreatedEventPartner $partner = null, ?LeadCreatedEventDiscount $discount = null) { diff --git a/src/Models/Components/LeadCreatedEventData.php b/src/Models/Components/LeadCreatedEventData.php index fed378c..cbe156c 100644 --- a/src/Models/Components/LeadCreatedEventData.php +++ b/src/Models/Components/LeadCreatedEventData.php @@ -47,6 +47,7 @@ class LeadCreatedEventData * @param LeadCreatedEventCustomer $customer * @param LeadCreatedEventClick $click * @param LeadCreatedEventLink $link + * @phpstan-pure */ public function __construct(string $eventName, LeadCreatedEventCustomer $customer, LeadCreatedEventClick $click, LeadCreatedEventLink $link) { diff --git a/src/Models/Components/LeadCreatedEventDataLink.php b/src/Models/Components/LeadCreatedEventDataLink.php index ba70762..ca44c48 100644 --- a/src/Models/Components/LeadCreatedEventDataLink.php +++ b/src/Models/Components/LeadCreatedEventDataLink.php @@ -57,6 +57,7 @@ class LeadCreatedEventDataLink * @param string $key * @param string $shortLink * @param ?string $programId + * @phpstan-pure */ public function __construct(string $id, string $domain, string $key, string $shortLink, ?string $programId = null) { diff --git a/src/Models/Components/LeadCreatedEventDiscount.php b/src/Models/Components/LeadCreatedEventDiscount.php index 7921981..8810b37 100644 --- a/src/Models/Components/LeadCreatedEventDiscount.php +++ b/src/Models/Components/LeadCreatedEventDiscount.php @@ -70,6 +70,7 @@ class LeadCreatedEventDiscount * @param ?string $couponTestId * @param ?float $duration * @param ?LeadCreatedEventInterval $interval + * @phpstan-pure */ public function __construct(string $id, float $amount, LeadCreatedEventType $type, ?string $couponId = null, ?string $couponTestId = null, ?float $duration = null, ?LeadCreatedEventInterval $interval = null) { diff --git a/src/Models/Components/LeadCreatedEventGeo.php b/src/Models/Components/LeadCreatedEventGeo.php index 55814b3..2203b9b 100644 --- a/src/Models/Components/LeadCreatedEventGeo.php +++ b/src/Models/Components/LeadCreatedEventGeo.php @@ -2263,6 +2263,7 @@ class LeadCreatedEventGeo * @param ?string $sx * @param ?string $ss * @param ?string $xk + * @phpstan-pure */ public function __construct(?string $af = null, ?string $al = null, ?string $dz = null, ?string $as = null, ?string $ad = null, ?string $ao = null, ?string $ai = null, ?string $aq = null, ?string $ag = null, ?string $ar = null, ?string $am = null, ?string $aw = null, ?string $au = null, ?string $at = null, ?string $az = null, ?string $bs = null, ?string $bh = null, ?string $bd = null, ?string $bb = null, ?string $by = null, ?string $be = null, ?string $bz = null, ?string $bj = null, ?string $bm = null, ?string $bt = null, ?string $bo = null, ?string $ba = null, ?string $bw = null, ?string $bv = null, ?string $br = null, ?string $io = null, ?string $bn = null, ?string $bg = null, ?string $bf = null, ?string $bi = null, ?string $kh = null, ?string $cm = null, ?string $ca = null, ?string $cv = null, ?string $ky = null, ?string $cf = null, ?string $td = null, ?string $cl = null, ?string $cn = null, ?string $cx = null, ?string $cc = null, ?string $co = null, ?string $km = null, ?string $cg = null, ?string $cd = null, ?string $ck = null, ?string $cr = null, ?string $ci = null, ?string $hr = null, ?string $cu = null, ?string $cy = null, ?string $cz = null, ?string $dk = null, ?string $dj = null, ?string $dm = null, ?string $do = null, ?string $ec = null, ?string $eg = null, ?string $sv = null, ?string $gq = null, ?string $er = null, ?string $ee = null, ?string $et = null, ?string $fk = null, ?string $fo = null, ?string $fj = null, ?string $fi = null, ?string $fr = null, ?string $gf = null, ?string $pf = null, ?string $tf = null, ?string $ga = null, ?string $gm = null, ?string $ge = null, ?string $de = null, ?string $gh = null, ?string $gi = null, ?string $gr = null, ?string $gl = null, ?string $gd = null, ?string $gp = null, ?string $gu = null, ?string $gt = null, ?string $gn = null, ?string $gw = null, ?string $gy = null, ?string $ht = null, ?string $hm = null, ?string $va = null, ?string $hn = null, ?string $hk = null, ?string $hu = null, ?string $is = null, ?string $in = null, ?string $id = null, ?string $ir = null, ?string $iq = null, ?string $ie = null, ?string $il = null, ?string $it = null, ?string $jm = null, ?string $jp = null, ?string $jo = null, ?string $kz = null, ?string $ke = null, ?string $ki = null, ?string $kp = null, ?string $kr = null, ?string $kw = null, ?string $kg = null, ?string $la = null, ?string $lv = null, ?string $lb = null, ?string $ls = null, ?string $lr = null, ?string $ly = null, ?string $li = null, ?string $lt = null, ?string $lu = null, ?string $mo = null, ?string $mg = null, ?string $mw = null, ?string $my = null, ?string $mv = null, ?string $ml = null, ?string $mt = null, ?string $mh = null, ?string $mq = null, ?string $mr = null, ?string $mu = null, ?string $yt = null, ?string $mx = null, ?string $fm = null, ?string $md = null, ?string $mc = null, ?string $mn = null, ?string $ms = null, ?string $ma = null, ?string $mz = null, ?string $mm = null, ?string $na = null, ?string $nr = null, ?string $np = null, ?string $nl = null, ?string $nc = null, ?string $nz = null, ?string $ni = null, ?string $ne = null, ?string $ng = null, ?string $nu = null, ?string $nf = null, ?string $mk = null, ?string $mp = null, ?string $no = null, ?string $om = null, ?string $pk = null, ?string $pw = null, ?string $ps = null, ?string $pa = null, ?string $pg = null, ?string $py = null, ?string $pe = null, ?string $ph = null, ?string $pn = null, ?string $pl = null, ?string $pt = null, ?string $pr = null, ?string $qa = null, ?string $re = null, ?string $ro = null, ?string $ru = null, ?string $rw = null, ?string $sh = null, ?string $kn = null, ?string $lc = null, ?string $pm = null, ?string $vc = null, ?string $ws = null, ?string $sm = null, ?string $st = null, ?string $sa = null, ?string $sn = null, ?string $sc = null, ?string $sl = null, ?string $sg = null, ?string $sk = null, ?string $si = null, ?string $sb = null, ?string $so = null, ?string $za = null, ?string $gs = null, ?string $es = null, ?string $lk = null, ?string $sd = null, ?string $sr = null, ?string $sj = null, ?string $sz = null, ?string $se = null, ?string $ch = null, ?string $sy = null, ?string $tw = null, ?string $tj = null, ?string $tz = null, ?string $th = null, ?string $tl = null, ?string $tg = null, ?string $tk = null, ?string $to = null, ?string $tt = null, ?string $tn = null, ?string $tr = null, ?string $tm = null, ?string $tc = null, ?string $tv = null, ?string $ug = null, ?string $ua = null, ?string $ae = null, ?string $gb = null, ?string $us = null, ?string $um = null, ?string $uy = null, ?string $uz = null, ?string $vu = null, ?string $ve = null, ?string $vn = null, ?string $vg = null, ?string $vi = null, ?string $wf = null, ?string $eh = null, ?string $ye = null, ?string $zm = null, ?string $zw = null, ?string $ax = null, ?string $bq = null, ?string $cw = null, ?string $gg = null, ?string $im = null, ?string $je = null, ?string $me = null, ?string $bl = null, ?string $mf = null, ?string $rs = null, ?string $sx = null, ?string $ss = null, ?string $xk = null) { diff --git a/src/Models/Components/LeadCreatedEventLink.php b/src/Models/Components/LeadCreatedEventLink.php index ea211ac..adc99fc 100644 --- a/src/Models/Components/LeadCreatedEventLink.php +++ b/src/Models/Components/LeadCreatedEventLink.php @@ -419,6 +419,7 @@ class LeadCreatedEventLink * @param ?float $leads * @param ?float $sales * @param ?float $saleAmount + * @phpstan-pure */ public function __construct(string $id, string $domain, string $key, string $url, string $expiresAt, array $webhookIds, string $shortLink, string $qrCode, string $workspaceId, string $lastClicked, string $createdAt, string $updatedAt, string $projectId, ?bool $trackConversion = null, ?string $externalId = null, ?string $tenantId = null, ?string $programId = null, ?string $partnerId = null, ?bool $archived = null, ?string $expiredUrl = null, ?string $password = null, ?bool $proxy = null, ?string $title = null, ?string $description = null, ?string $image = null, ?string $video = null, ?bool $rewrite = null, ?bool $doIndex = null, ?string $ios = null, ?string $android = null, ?LeadCreatedEventGeo $geo = null, ?bool $publicStats = null, ?string $tagId = null, ?array $tags = null, ?string $comments = null, ?string $utmSource = null, ?string $utmMedium = null, ?string $utmCampaign = null, ?string $utmTerm = null, ?string $utmContent = null, ?string $userId = null, ?float $clicks = 0, ?float $leads = 0, ?float $sales = 0, ?float $saleAmount = 0) { diff --git a/src/Models/Components/LeadCreatedEventPartner.php b/src/Models/Components/LeadCreatedEventPartner.php index cc77dc3..90bf138 100644 --- a/src/Models/Components/LeadCreatedEventPartner.php +++ b/src/Models/Components/LeadCreatedEventPartner.php @@ -45,6 +45,7 @@ class LeadCreatedEventPartner * @param string $name * @param string $email * @param ?string $image + * @phpstan-pure */ public function __construct(string $id, string $name, string $email, ?string $image = null) { diff --git a/src/Models/Components/LeadEvent.php b/src/Models/Components/LeadEvent.php index fb482d9..96afdc1 100644 --- a/src/Models/Components/LeadEvent.php +++ b/src/Models/Components/LeadEvent.php @@ -203,6 +203,7 @@ class LeadEvent * @param float $qr * @param string $ip * @param ?string $timestamp + * @phpstan-pure */ public function __construct(LeadEventEvent $event, string $eventId, string $eventName, LeadEventClick $click, LeadEventLink $link, Customer $customer, string $clickId, string $linkId, string $domain, string $key, string $url, string $continent, string $country, string $city, string $device, string $browser, string $os, float $qr, string $ip, ?string $timestamp = null) { diff --git a/src/Models/Components/LeadEventClick.php b/src/Models/Components/LeadEventClick.php index c52e940..1d77bf9 100644 --- a/src/Models/Components/LeadEventClick.php +++ b/src/Models/Components/LeadEventClick.php @@ -18,6 +18,13 @@ class LeadEventClick #[\Speakeasy\Serializer\Annotation\SerializedName('id')] public string $id; + /** + * + * @var string $timestamp + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('timestamp')] + public string $timestamp; + /** * * @var string $url @@ -105,6 +112,7 @@ class LeadEventClick /** * @param string $id + * @param string $timestamp * @param string $url * @param string $country * @param string $city @@ -117,10 +125,12 @@ class LeadEventClick * @param string $refererUrl * @param string $ip * @param ?bool $qr + * @phpstan-pure */ - public function __construct(string $id, string $url, string $country, string $city, string $region, string $continent, string $device, string $browser, string $os, string $referer, string $refererUrl, string $ip, ?bool $qr = null) + public function __construct(string $id, string $timestamp, string $url, string $country, string $city, string $region, string $continent, string $device, string $browser, string $os, string $referer, string $refererUrl, string $ip, ?bool $qr = null) { $this->id = $id; + $this->timestamp = $timestamp; $this->url = $url; $this->country = $country; $this->city = $city; diff --git a/src/Models/Components/LeadEventCustomerLink.php b/src/Models/Components/LeadEventCustomerLink.php index d41d33c..8e0d50c 100644 --- a/src/Models/Components/LeadEventCustomerLink.php +++ b/src/Models/Components/LeadEventCustomerLink.php @@ -57,6 +57,7 @@ class LeadEventCustomerLink * @param string $key * @param string $shortLink * @param ?string $programId + * @phpstan-pure */ public function __construct(string $id, string $domain, string $key, string $shortLink, ?string $programId = null) { diff --git a/src/Models/Components/LeadEventGeo.php b/src/Models/Components/LeadEventGeo.php index 5e80bff..61641d4 100644 --- a/src/Models/Components/LeadEventGeo.php +++ b/src/Models/Components/LeadEventGeo.php @@ -2263,6 +2263,7 @@ class LeadEventGeo * @param ?string $sx * @param ?string $ss * @param ?string $xk + * @phpstan-pure */ public function __construct(?string $af = null, ?string $al = null, ?string $dz = null, ?string $as = null, ?string $ad = null, ?string $ao = null, ?string $ai = null, ?string $aq = null, ?string $ag = null, ?string $ar = null, ?string $am = null, ?string $aw = null, ?string $au = null, ?string $at = null, ?string $az = null, ?string $bs = null, ?string $bh = null, ?string $bd = null, ?string $bb = null, ?string $by = null, ?string $be = null, ?string $bz = null, ?string $bj = null, ?string $bm = null, ?string $bt = null, ?string $bo = null, ?string $ba = null, ?string $bw = null, ?string $bv = null, ?string $br = null, ?string $io = null, ?string $bn = null, ?string $bg = null, ?string $bf = null, ?string $bi = null, ?string $kh = null, ?string $cm = null, ?string $ca = null, ?string $cv = null, ?string $ky = null, ?string $cf = null, ?string $td = null, ?string $cl = null, ?string $cn = null, ?string $cx = null, ?string $cc = null, ?string $co = null, ?string $km = null, ?string $cg = null, ?string $cd = null, ?string $ck = null, ?string $cr = null, ?string $ci = null, ?string $hr = null, ?string $cu = null, ?string $cy = null, ?string $cz = null, ?string $dk = null, ?string $dj = null, ?string $dm = null, ?string $do = null, ?string $ec = null, ?string $eg = null, ?string $sv = null, ?string $gq = null, ?string $er = null, ?string $ee = null, ?string $et = null, ?string $fk = null, ?string $fo = null, ?string $fj = null, ?string $fi = null, ?string $fr = null, ?string $gf = null, ?string $pf = null, ?string $tf = null, ?string $ga = null, ?string $gm = null, ?string $ge = null, ?string $de = null, ?string $gh = null, ?string $gi = null, ?string $gr = null, ?string $gl = null, ?string $gd = null, ?string $gp = null, ?string $gu = null, ?string $gt = null, ?string $gn = null, ?string $gw = null, ?string $gy = null, ?string $ht = null, ?string $hm = null, ?string $va = null, ?string $hn = null, ?string $hk = null, ?string $hu = null, ?string $is = null, ?string $in = null, ?string $id = null, ?string $ir = null, ?string $iq = null, ?string $ie = null, ?string $il = null, ?string $it = null, ?string $jm = null, ?string $jp = null, ?string $jo = null, ?string $kz = null, ?string $ke = null, ?string $ki = null, ?string $kp = null, ?string $kr = null, ?string $kw = null, ?string $kg = null, ?string $la = null, ?string $lv = null, ?string $lb = null, ?string $ls = null, ?string $lr = null, ?string $ly = null, ?string $li = null, ?string $lt = null, ?string $lu = null, ?string $mo = null, ?string $mg = null, ?string $mw = null, ?string $my = null, ?string $mv = null, ?string $ml = null, ?string $mt = null, ?string $mh = null, ?string $mq = null, ?string $mr = null, ?string $mu = null, ?string $yt = null, ?string $mx = null, ?string $fm = null, ?string $md = null, ?string $mc = null, ?string $mn = null, ?string $ms = null, ?string $ma = null, ?string $mz = null, ?string $mm = null, ?string $na = null, ?string $nr = null, ?string $np = null, ?string $nl = null, ?string $nc = null, ?string $nz = null, ?string $ni = null, ?string $ne = null, ?string $ng = null, ?string $nu = null, ?string $nf = null, ?string $mk = null, ?string $mp = null, ?string $no = null, ?string $om = null, ?string $pk = null, ?string $pw = null, ?string $ps = null, ?string $pa = null, ?string $pg = null, ?string $py = null, ?string $pe = null, ?string $ph = null, ?string $pn = null, ?string $pl = null, ?string $pt = null, ?string $pr = null, ?string $qa = null, ?string $re = null, ?string $ro = null, ?string $ru = null, ?string $rw = null, ?string $sh = null, ?string $kn = null, ?string $lc = null, ?string $pm = null, ?string $vc = null, ?string $ws = null, ?string $sm = null, ?string $st = null, ?string $sa = null, ?string $sn = null, ?string $sc = null, ?string $sl = null, ?string $sg = null, ?string $sk = null, ?string $si = null, ?string $sb = null, ?string $so = null, ?string $za = null, ?string $gs = null, ?string $es = null, ?string $lk = null, ?string $sd = null, ?string $sr = null, ?string $sj = null, ?string $sz = null, ?string $se = null, ?string $ch = null, ?string $sy = null, ?string $tw = null, ?string $tj = null, ?string $tz = null, ?string $th = null, ?string $tl = null, ?string $tg = null, ?string $tk = null, ?string $to = null, ?string $tt = null, ?string $tn = null, ?string $tr = null, ?string $tm = null, ?string $tc = null, ?string $tv = null, ?string $ug = null, ?string $ua = null, ?string $ae = null, ?string $gb = null, ?string $us = null, ?string $um = null, ?string $uy = null, ?string $uz = null, ?string $vu = null, ?string $ve = null, ?string $vn = null, ?string $vg = null, ?string $vi = null, ?string $wf = null, ?string $eh = null, ?string $ye = null, ?string $zm = null, ?string $zw = null, ?string $ax = null, ?string $bq = null, ?string $cw = null, ?string $gg = null, ?string $im = null, ?string $je = null, ?string $me = null, ?string $bl = null, ?string $mf = null, ?string $rs = null, ?string $sx = null, ?string $ss = null, ?string $xk = null) { diff --git a/src/Models/Components/LeadEventLink.php b/src/Models/Components/LeadEventLink.php index 5f4ef00..5c67101 100644 --- a/src/Models/Components/LeadEventLink.php +++ b/src/Models/Components/LeadEventLink.php @@ -419,6 +419,7 @@ class LeadEventLink * @param ?float $leads * @param ?float $sales * @param ?float $saleAmount + * @phpstan-pure */ public function __construct(string $id, string $domain, string $key, string $url, string $expiresAt, array $webhookIds, string $shortLink, string $qrCode, string $workspaceId, string $lastClicked, string $createdAt, string $updatedAt, string $projectId, ?bool $trackConversion = null, ?string $externalId = null, ?string $tenantId = null, ?string $programId = null, ?string $partnerId = null, ?bool $archived = null, ?string $expiredUrl = null, ?string $password = null, ?bool $proxy = null, ?string $title = null, ?string $description = null, ?string $image = null, ?string $video = null, ?bool $rewrite = null, ?bool $doIndex = null, ?string $ios = null, ?string $android = null, ?LeadEventGeo $geo = null, ?bool $publicStats = null, ?string $tagId = null, ?array $tags = null, ?string $comments = null, ?string $utmSource = null, ?string $utmMedium = null, ?string $utmCampaign = null, ?string $utmTerm = null, ?string $utmContent = null, ?string $userId = null, ?float $clicks = 0, ?float $leads = 0, ?float $sales = 0, ?float $saleAmount = 0) { diff --git a/src/Models/Components/Link.php b/src/Models/Components/Link.php index afa1c82..7b6e5ea 100644 --- a/src/Models/Components/Link.php +++ b/src/Models/Components/Link.php @@ -419,6 +419,7 @@ class Link * @param ?float $leads * @param ?float $sales * @param ?float $saleAmount + * @phpstan-pure */ public function __construct(string $id, string $domain, string $key, string $url, string $expiresAt, array $webhookIds, string $shortLink, string $qrCode, string $workspaceId, string $lastClicked, string $createdAt, string $updatedAt, string $projectId, ?bool $trackConversion = null, ?string $externalId = null, ?string $tenantId = null, ?string $programId = null, ?string $partnerId = null, ?bool $archived = null, ?string $expiredUrl = null, ?string $password = null, ?bool $proxy = null, ?string $title = null, ?string $description = null, ?string $image = null, ?string $video = null, ?bool $rewrite = null, ?bool $doIndex = null, ?string $ios = null, ?string $android = null, ?ClickEventGeo $geo = null, ?bool $publicStats = null, ?string $tagId = null, ?array $tags = null, ?string $comments = null, ?string $utmSource = null, ?string $utmMedium = null, ?string $utmCampaign = null, ?string $utmTerm = null, ?string $utmContent = null, ?string $userId = null, ?float $clicks = 0, ?float $leads = 0, ?float $sales = 0, ?float $saleAmount = 0) { diff --git a/src/Models/Components/LinkClickedEvent.php b/src/Models/Components/LinkClickedEvent.php index cdadc7b..52f6827 100644 --- a/src/Models/Components/LinkClickedEvent.php +++ b/src/Models/Components/LinkClickedEvent.php @@ -47,6 +47,7 @@ class LinkClickedEvent * @param LinkClickedEventEvent $event * @param string $createdAt * @param LinkClickedEventData $data + * @phpstan-pure */ public function __construct(string $id, LinkClickedEventEvent $event, string $createdAt, LinkClickedEventData $data) { diff --git a/src/Models/Components/LinkClickedEventClick.php b/src/Models/Components/LinkClickedEventClick.php index 6b30728..e4aa2d8 100644 --- a/src/Models/Components/LinkClickedEventClick.php +++ b/src/Models/Components/LinkClickedEventClick.php @@ -18,6 +18,13 @@ class LinkClickedEventClick #[\Speakeasy\Serializer\Annotation\SerializedName('id')] public string $id; + /** + * + * @var string $timestamp + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('timestamp')] + public string $timestamp; + /** * * @var string $url @@ -105,6 +112,7 @@ class LinkClickedEventClick /** * @param string $id + * @param string $timestamp * @param string $url * @param string $country * @param string $city @@ -117,10 +125,12 @@ class LinkClickedEventClick * @param string $refererUrl * @param string $ip * @param ?bool $qr + * @phpstan-pure */ - public function __construct(string $id, string $url, string $country, string $city, string $region, string $continent, string $device, string $browser, string $os, string $referer, string $refererUrl, string $ip, ?bool $qr = null) + public function __construct(string $id, string $timestamp, string $url, string $country, string $city, string $region, string $continent, string $device, string $browser, string $os, string $referer, string $refererUrl, string $ip, ?bool $qr = null) { $this->id = $id; + $this->timestamp = $timestamp; $this->url = $url; $this->country = $country; $this->city = $city; diff --git a/src/Models/Components/LinkClickedEventData.php b/src/Models/Components/LinkClickedEventData.php index 5055f5a..1af840b 100644 --- a/src/Models/Components/LinkClickedEventData.php +++ b/src/Models/Components/LinkClickedEventData.php @@ -30,6 +30,7 @@ class LinkClickedEventData /** * @param LinkClickedEventClick $click * @param LinkClickedEventLink $link + * @phpstan-pure */ public function __construct(LinkClickedEventClick $click, LinkClickedEventLink $link) { diff --git a/src/Models/Components/LinkClickedEventGeo.php b/src/Models/Components/LinkClickedEventGeo.php index 3442fc4..bd2c9e9 100644 --- a/src/Models/Components/LinkClickedEventGeo.php +++ b/src/Models/Components/LinkClickedEventGeo.php @@ -2263,6 +2263,7 @@ class LinkClickedEventGeo * @param ?string $sx * @param ?string $ss * @param ?string $xk + * @phpstan-pure */ public function __construct(?string $af = null, ?string $al = null, ?string $dz = null, ?string $as = null, ?string $ad = null, ?string $ao = null, ?string $ai = null, ?string $aq = null, ?string $ag = null, ?string $ar = null, ?string $am = null, ?string $aw = null, ?string $au = null, ?string $at = null, ?string $az = null, ?string $bs = null, ?string $bh = null, ?string $bd = null, ?string $bb = null, ?string $by = null, ?string $be = null, ?string $bz = null, ?string $bj = null, ?string $bm = null, ?string $bt = null, ?string $bo = null, ?string $ba = null, ?string $bw = null, ?string $bv = null, ?string $br = null, ?string $io = null, ?string $bn = null, ?string $bg = null, ?string $bf = null, ?string $bi = null, ?string $kh = null, ?string $cm = null, ?string $ca = null, ?string $cv = null, ?string $ky = null, ?string $cf = null, ?string $td = null, ?string $cl = null, ?string $cn = null, ?string $cx = null, ?string $cc = null, ?string $co = null, ?string $km = null, ?string $cg = null, ?string $cd = null, ?string $ck = null, ?string $cr = null, ?string $ci = null, ?string $hr = null, ?string $cu = null, ?string $cy = null, ?string $cz = null, ?string $dk = null, ?string $dj = null, ?string $dm = null, ?string $do = null, ?string $ec = null, ?string $eg = null, ?string $sv = null, ?string $gq = null, ?string $er = null, ?string $ee = null, ?string $et = null, ?string $fk = null, ?string $fo = null, ?string $fj = null, ?string $fi = null, ?string $fr = null, ?string $gf = null, ?string $pf = null, ?string $tf = null, ?string $ga = null, ?string $gm = null, ?string $ge = null, ?string $de = null, ?string $gh = null, ?string $gi = null, ?string $gr = null, ?string $gl = null, ?string $gd = null, ?string $gp = null, ?string $gu = null, ?string $gt = null, ?string $gn = null, ?string $gw = null, ?string $gy = null, ?string $ht = null, ?string $hm = null, ?string $va = null, ?string $hn = null, ?string $hk = null, ?string $hu = null, ?string $is = null, ?string $in = null, ?string $id = null, ?string $ir = null, ?string $iq = null, ?string $ie = null, ?string $il = null, ?string $it = null, ?string $jm = null, ?string $jp = null, ?string $jo = null, ?string $kz = null, ?string $ke = null, ?string $ki = null, ?string $kp = null, ?string $kr = null, ?string $kw = null, ?string $kg = null, ?string $la = null, ?string $lv = null, ?string $lb = null, ?string $ls = null, ?string $lr = null, ?string $ly = null, ?string $li = null, ?string $lt = null, ?string $lu = null, ?string $mo = null, ?string $mg = null, ?string $mw = null, ?string $my = null, ?string $mv = null, ?string $ml = null, ?string $mt = null, ?string $mh = null, ?string $mq = null, ?string $mr = null, ?string $mu = null, ?string $yt = null, ?string $mx = null, ?string $fm = null, ?string $md = null, ?string $mc = null, ?string $mn = null, ?string $ms = null, ?string $ma = null, ?string $mz = null, ?string $mm = null, ?string $na = null, ?string $nr = null, ?string $np = null, ?string $nl = null, ?string $nc = null, ?string $nz = null, ?string $ni = null, ?string $ne = null, ?string $ng = null, ?string $nu = null, ?string $nf = null, ?string $mk = null, ?string $mp = null, ?string $no = null, ?string $om = null, ?string $pk = null, ?string $pw = null, ?string $ps = null, ?string $pa = null, ?string $pg = null, ?string $py = null, ?string $pe = null, ?string $ph = null, ?string $pn = null, ?string $pl = null, ?string $pt = null, ?string $pr = null, ?string $qa = null, ?string $re = null, ?string $ro = null, ?string $ru = null, ?string $rw = null, ?string $sh = null, ?string $kn = null, ?string $lc = null, ?string $pm = null, ?string $vc = null, ?string $ws = null, ?string $sm = null, ?string $st = null, ?string $sa = null, ?string $sn = null, ?string $sc = null, ?string $sl = null, ?string $sg = null, ?string $sk = null, ?string $si = null, ?string $sb = null, ?string $so = null, ?string $za = null, ?string $gs = null, ?string $es = null, ?string $lk = null, ?string $sd = null, ?string $sr = null, ?string $sj = null, ?string $sz = null, ?string $se = null, ?string $ch = null, ?string $sy = null, ?string $tw = null, ?string $tj = null, ?string $tz = null, ?string $th = null, ?string $tl = null, ?string $tg = null, ?string $tk = null, ?string $to = null, ?string $tt = null, ?string $tn = null, ?string $tr = null, ?string $tm = null, ?string $tc = null, ?string $tv = null, ?string $ug = null, ?string $ua = null, ?string $ae = null, ?string $gb = null, ?string $us = null, ?string $um = null, ?string $uy = null, ?string $uz = null, ?string $vu = null, ?string $ve = null, ?string $vn = null, ?string $vg = null, ?string $vi = null, ?string $wf = null, ?string $eh = null, ?string $ye = null, ?string $zm = null, ?string $zw = null, ?string $ax = null, ?string $bq = null, ?string $cw = null, ?string $gg = null, ?string $im = null, ?string $je = null, ?string $me = null, ?string $bl = null, ?string $mf = null, ?string $rs = null, ?string $sx = null, ?string $ss = null, ?string $xk = null) { diff --git a/src/Models/Components/LinkClickedEventLink.php b/src/Models/Components/LinkClickedEventLink.php index 4e2bb39..e5a9c25 100644 --- a/src/Models/Components/LinkClickedEventLink.php +++ b/src/Models/Components/LinkClickedEventLink.php @@ -419,6 +419,7 @@ class LinkClickedEventLink * @param ?float $leads * @param ?float $sales * @param ?float $saleAmount + * @phpstan-pure */ public function __construct(string $id, string $domain, string $key, string $url, string $expiresAt, array $webhookIds, string $shortLink, string $qrCode, string $workspaceId, string $lastClicked, string $createdAt, string $updatedAt, string $projectId, ?bool $trackConversion = null, ?string $externalId = null, ?string $tenantId = null, ?string $programId = null, ?string $partnerId = null, ?bool $archived = null, ?string $expiredUrl = null, ?string $password = null, ?bool $proxy = null, ?string $title = null, ?string $description = null, ?string $image = null, ?string $video = null, ?bool $rewrite = null, ?bool $doIndex = null, ?string $ios = null, ?string $android = null, ?LinkClickedEventGeo $geo = null, ?bool $publicStats = null, ?string $tagId = null, ?array $tags = null, ?string $comments = null, ?string $utmSource = null, ?string $utmMedium = null, ?string $utmCampaign = null, ?string $utmTerm = null, ?string $utmContent = null, ?string $userId = null, ?float $clicks = 0, ?float $leads = 0, ?float $sales = 0, ?float $saleAmount = 0) { diff --git a/src/Models/Components/LinkErrorSchema.php b/src/Models/Components/LinkErrorSchema.php index 4489866..9f832b7 100644 --- a/src/Models/Components/LinkErrorSchema.php +++ b/src/Models/Components/LinkErrorSchema.php @@ -42,6 +42,7 @@ class LinkErrorSchema * @param string $error * @param Code $code * @param mixed $link + * @phpstan-pure */ public function __construct(string $error, Code $code, mixed $link = null) { diff --git a/src/Models/Components/LinkGeoTargeting.php b/src/Models/Components/LinkGeoTargeting.php index 3f9bc4a..be1e9a4 100644 --- a/src/Models/Components/LinkGeoTargeting.php +++ b/src/Models/Components/LinkGeoTargeting.php @@ -2263,6 +2263,7 @@ class LinkGeoTargeting * @param ?string $sx * @param ?string $ss * @param ?string $xk + * @phpstan-pure */ public function __construct(?string $af = null, ?string $al = null, ?string $dz = null, ?string $as = null, ?string $ad = null, ?string $ao = null, ?string $ai = null, ?string $aq = null, ?string $ag = null, ?string $ar = null, ?string $am = null, ?string $aw = null, ?string $au = null, ?string $at = null, ?string $az = null, ?string $bs = null, ?string $bh = null, ?string $bd = null, ?string $bb = null, ?string $by = null, ?string $be = null, ?string $bz = null, ?string $bj = null, ?string $bm = null, ?string $bt = null, ?string $bo = null, ?string $ba = null, ?string $bw = null, ?string $bv = null, ?string $br = null, ?string $io = null, ?string $bn = null, ?string $bg = null, ?string $bf = null, ?string $bi = null, ?string $kh = null, ?string $cm = null, ?string $ca = null, ?string $cv = null, ?string $ky = null, ?string $cf = null, ?string $td = null, ?string $cl = null, ?string $cn = null, ?string $cx = null, ?string $cc = null, ?string $co = null, ?string $km = null, ?string $cg = null, ?string $cd = null, ?string $ck = null, ?string $cr = null, ?string $ci = null, ?string $hr = null, ?string $cu = null, ?string $cy = null, ?string $cz = null, ?string $dk = null, ?string $dj = null, ?string $dm = null, ?string $do = null, ?string $ec = null, ?string $eg = null, ?string $sv = null, ?string $gq = null, ?string $er = null, ?string $ee = null, ?string $et = null, ?string $fk = null, ?string $fo = null, ?string $fj = null, ?string $fi = null, ?string $fr = null, ?string $gf = null, ?string $pf = null, ?string $tf = null, ?string $ga = null, ?string $gm = null, ?string $ge = null, ?string $de = null, ?string $gh = null, ?string $gi = null, ?string $gr = null, ?string $gl = null, ?string $gd = null, ?string $gp = null, ?string $gu = null, ?string $gt = null, ?string $gn = null, ?string $gw = null, ?string $gy = null, ?string $ht = null, ?string $hm = null, ?string $va = null, ?string $hn = null, ?string $hk = null, ?string $hu = null, ?string $is = null, ?string $in = null, ?string $id = null, ?string $ir = null, ?string $iq = null, ?string $ie = null, ?string $il = null, ?string $it = null, ?string $jm = null, ?string $jp = null, ?string $jo = null, ?string $kz = null, ?string $ke = null, ?string $ki = null, ?string $kp = null, ?string $kr = null, ?string $kw = null, ?string $kg = null, ?string $la = null, ?string $lv = null, ?string $lb = null, ?string $ls = null, ?string $lr = null, ?string $ly = null, ?string $li = null, ?string $lt = null, ?string $lu = null, ?string $mo = null, ?string $mg = null, ?string $mw = null, ?string $my = null, ?string $mv = null, ?string $ml = null, ?string $mt = null, ?string $mh = null, ?string $mq = null, ?string $mr = null, ?string $mu = null, ?string $yt = null, ?string $mx = null, ?string $fm = null, ?string $md = null, ?string $mc = null, ?string $mn = null, ?string $ms = null, ?string $ma = null, ?string $mz = null, ?string $mm = null, ?string $na = null, ?string $nr = null, ?string $np = null, ?string $nl = null, ?string $nc = null, ?string $nz = null, ?string $ni = null, ?string $ne = null, ?string $ng = null, ?string $nu = null, ?string $nf = null, ?string $mk = null, ?string $mp = null, ?string $no = null, ?string $om = null, ?string $pk = null, ?string $pw = null, ?string $ps = null, ?string $pa = null, ?string $pg = null, ?string $py = null, ?string $pe = null, ?string $ph = null, ?string $pn = null, ?string $pl = null, ?string $pt = null, ?string $pr = null, ?string $qa = null, ?string $re = null, ?string $ro = null, ?string $ru = null, ?string $rw = null, ?string $sh = null, ?string $kn = null, ?string $lc = null, ?string $pm = null, ?string $vc = null, ?string $ws = null, ?string $sm = null, ?string $st = null, ?string $sa = null, ?string $sn = null, ?string $sc = null, ?string $sl = null, ?string $sg = null, ?string $sk = null, ?string $si = null, ?string $sb = null, ?string $so = null, ?string $za = null, ?string $gs = null, ?string $es = null, ?string $lk = null, ?string $sd = null, ?string $sr = null, ?string $sj = null, ?string $sz = null, ?string $se = null, ?string $ch = null, ?string $sy = null, ?string $tw = null, ?string $tj = null, ?string $tz = null, ?string $th = null, ?string $tl = null, ?string $tg = null, ?string $tk = null, ?string $to = null, ?string $tt = null, ?string $tn = null, ?string $tr = null, ?string $tm = null, ?string $tc = null, ?string $tv = null, ?string $ug = null, ?string $ua = null, ?string $ae = null, ?string $gb = null, ?string $us = null, ?string $um = null, ?string $uy = null, ?string $uz = null, ?string $vu = null, ?string $ve = null, ?string $vn = null, ?string $vg = null, ?string $vi = null, ?string $wf = null, ?string $eh = null, ?string $ye = null, ?string $zm = null, ?string $zw = null, ?string $ax = null, ?string $bq = null, ?string $cw = null, ?string $gg = null, ?string $im = null, ?string $je = null, ?string $me = null, ?string $bl = null, ?string $mf = null, ?string $rs = null, ?string $sx = null, ?string $ss = null, ?string $xk = null) { diff --git a/src/Models/Components/LinkSchema.php b/src/Models/Components/LinkSchema.php index 253e877..455bcc1 100644 --- a/src/Models/Components/LinkSchema.php +++ b/src/Models/Components/LinkSchema.php @@ -432,6 +432,7 @@ class LinkSchema * @param ?float $leads * @param ?float $sales * @param ?float $saleAmount + * @phpstan-pure */ public function __construct(string $id, string $domain, string $key, string $url, array $webhookIds, string $shortLink, string $qrCode, string $workspaceId, string $createdAt, string $updatedAt, string $projectId, ?string $externalId = null, ?string $tenantId = null, ?string $programId = null, ?string $partnerId = null, ?string $expiresAt = null, ?string $expiredUrl = null, ?string $password = null, ?string $title = null, ?string $description = null, ?string $image = null, ?string $video = null, ?string $ios = null, ?string $android = null, ?Geo $geo = null, ?string $tagId = null, ?array $tags = null, ?string $comments = null, ?string $utmSource = null, ?string $utmMedium = null, ?string $utmCampaign = null, ?string $utmTerm = null, ?string $utmContent = null, ?string $userId = null, ?string $lastClicked = null, ?bool $trackConversion = false, ?bool $archived = false, ?bool $proxy = false, ?bool $rewrite = false, ?bool $doIndex = false, ?bool $publicStats = false, ?float $clicks = 0, ?float $leads = 0, ?float $sales = 0, ?float $saleAmount = 0) { diff --git a/src/Models/Components/LinkWebhookEvent.php b/src/Models/Components/LinkWebhookEvent.php index 7bead81..352f36d 100644 --- a/src/Models/Components/LinkWebhookEvent.php +++ b/src/Models/Components/LinkWebhookEvent.php @@ -47,6 +47,7 @@ class LinkWebhookEvent * @param One|Two|Three $event * @param string $createdAt * @param Data $data + * @phpstan-pure */ public function __construct(string $id, One|Two|Three $event, string $createdAt, Data $data) { diff --git a/src/Models/Components/LinkWebhookEventGeo.php b/src/Models/Components/LinkWebhookEventGeo.php index ddf4359..ef2bc4e 100644 --- a/src/Models/Components/LinkWebhookEventGeo.php +++ b/src/Models/Components/LinkWebhookEventGeo.php @@ -2263,6 +2263,7 @@ class LinkWebhookEventGeo * @param ?string $sx * @param ?string $ss * @param ?string $xk + * @phpstan-pure */ public function __construct(?string $af = null, ?string $al = null, ?string $dz = null, ?string $as = null, ?string $ad = null, ?string $ao = null, ?string $ai = null, ?string $aq = null, ?string $ag = null, ?string $ar = null, ?string $am = null, ?string $aw = null, ?string $au = null, ?string $at = null, ?string $az = null, ?string $bs = null, ?string $bh = null, ?string $bd = null, ?string $bb = null, ?string $by = null, ?string $be = null, ?string $bz = null, ?string $bj = null, ?string $bm = null, ?string $bt = null, ?string $bo = null, ?string $ba = null, ?string $bw = null, ?string $bv = null, ?string $br = null, ?string $io = null, ?string $bn = null, ?string $bg = null, ?string $bf = null, ?string $bi = null, ?string $kh = null, ?string $cm = null, ?string $ca = null, ?string $cv = null, ?string $ky = null, ?string $cf = null, ?string $td = null, ?string $cl = null, ?string $cn = null, ?string $cx = null, ?string $cc = null, ?string $co = null, ?string $km = null, ?string $cg = null, ?string $cd = null, ?string $ck = null, ?string $cr = null, ?string $ci = null, ?string $hr = null, ?string $cu = null, ?string $cy = null, ?string $cz = null, ?string $dk = null, ?string $dj = null, ?string $dm = null, ?string $do = null, ?string $ec = null, ?string $eg = null, ?string $sv = null, ?string $gq = null, ?string $er = null, ?string $ee = null, ?string $et = null, ?string $fk = null, ?string $fo = null, ?string $fj = null, ?string $fi = null, ?string $fr = null, ?string $gf = null, ?string $pf = null, ?string $tf = null, ?string $ga = null, ?string $gm = null, ?string $ge = null, ?string $de = null, ?string $gh = null, ?string $gi = null, ?string $gr = null, ?string $gl = null, ?string $gd = null, ?string $gp = null, ?string $gu = null, ?string $gt = null, ?string $gn = null, ?string $gw = null, ?string $gy = null, ?string $ht = null, ?string $hm = null, ?string $va = null, ?string $hn = null, ?string $hk = null, ?string $hu = null, ?string $is = null, ?string $in = null, ?string $id = null, ?string $ir = null, ?string $iq = null, ?string $ie = null, ?string $il = null, ?string $it = null, ?string $jm = null, ?string $jp = null, ?string $jo = null, ?string $kz = null, ?string $ke = null, ?string $ki = null, ?string $kp = null, ?string $kr = null, ?string $kw = null, ?string $kg = null, ?string $la = null, ?string $lv = null, ?string $lb = null, ?string $ls = null, ?string $lr = null, ?string $ly = null, ?string $li = null, ?string $lt = null, ?string $lu = null, ?string $mo = null, ?string $mg = null, ?string $mw = null, ?string $my = null, ?string $mv = null, ?string $ml = null, ?string $mt = null, ?string $mh = null, ?string $mq = null, ?string $mr = null, ?string $mu = null, ?string $yt = null, ?string $mx = null, ?string $fm = null, ?string $md = null, ?string $mc = null, ?string $mn = null, ?string $ms = null, ?string $ma = null, ?string $mz = null, ?string $mm = null, ?string $na = null, ?string $nr = null, ?string $np = null, ?string $nl = null, ?string $nc = null, ?string $nz = null, ?string $ni = null, ?string $ne = null, ?string $ng = null, ?string $nu = null, ?string $nf = null, ?string $mk = null, ?string $mp = null, ?string $no = null, ?string $om = null, ?string $pk = null, ?string $pw = null, ?string $ps = null, ?string $pa = null, ?string $pg = null, ?string $py = null, ?string $pe = null, ?string $ph = null, ?string $pn = null, ?string $pl = null, ?string $pt = null, ?string $pr = null, ?string $qa = null, ?string $re = null, ?string $ro = null, ?string $ru = null, ?string $rw = null, ?string $sh = null, ?string $kn = null, ?string $lc = null, ?string $pm = null, ?string $vc = null, ?string $ws = null, ?string $sm = null, ?string $st = null, ?string $sa = null, ?string $sn = null, ?string $sc = null, ?string $sl = null, ?string $sg = null, ?string $sk = null, ?string $si = null, ?string $sb = null, ?string $so = null, ?string $za = null, ?string $gs = null, ?string $es = null, ?string $lk = null, ?string $sd = null, ?string $sr = null, ?string $sj = null, ?string $sz = null, ?string $se = null, ?string $ch = null, ?string $sy = null, ?string $tw = null, ?string $tj = null, ?string $tz = null, ?string $th = null, ?string $tl = null, ?string $tg = null, ?string $tk = null, ?string $to = null, ?string $tt = null, ?string $tn = null, ?string $tr = null, ?string $tm = null, ?string $tc = null, ?string $tv = null, ?string $ug = null, ?string $ua = null, ?string $ae = null, ?string $gb = null, ?string $us = null, ?string $um = null, ?string $uy = null, ?string $uz = null, ?string $vu = null, ?string $ve = null, ?string $vn = null, ?string $vg = null, ?string $vi = null, ?string $wf = null, ?string $eh = null, ?string $ye = null, ?string $zm = null, ?string $zw = null, ?string $ax = null, ?string $bq = null, ?string $cw = null, ?string $gg = null, ?string $im = null, ?string $je = null, ?string $me = null, ?string $bl = null, ?string $mf = null, ?string $rs = null, ?string $sx = null, ?string $ss = null, ?string $xk = null) { diff --git a/src/Models/Components/Partner.php b/src/Models/Components/Partner.php index 163dc38..05e83a2 100644 --- a/src/Models/Components/Partner.php +++ b/src/Models/Components/Partner.php @@ -45,6 +45,7 @@ class Partner * @param string $name * @param string $email * @param ?string $image + * @phpstan-pure */ public function __construct(string $id, string $name, string $email, ?string $image = null) { diff --git a/src/Models/Components/RegisteredDomain.php b/src/Models/Components/RegisteredDomain.php index 2b61dfb..e900bf9 100644 --- a/src/Models/Components/RegisteredDomain.php +++ b/src/Models/Components/RegisteredDomain.php @@ -40,6 +40,7 @@ class RegisteredDomain * @param string $id * @param string $createdAt * @param string $expiresAt + * @phpstan-pure */ public function __construct(string $id, string $createdAt, string $expiresAt) { diff --git a/src/Models/Components/Sale.php b/src/Models/Components/Sale.php index 20e2587..b8b69b8 100644 --- a/src/Models/Components/Sale.php +++ b/src/Models/Components/Sale.php @@ -41,6 +41,7 @@ class Sale * @param int $amount * @param PaymentProcessor $paymentProcessor * @param ?string $invoiceId + * @phpstan-pure */ public function __construct(int $amount, PaymentProcessor $paymentProcessor, ?string $invoiceId = null) { diff --git a/src/Models/Components/SaleCreatedEvent.php b/src/Models/Components/SaleCreatedEvent.php index d7c3406..d4416c4 100644 --- a/src/Models/Components/SaleCreatedEvent.php +++ b/src/Models/Components/SaleCreatedEvent.php @@ -47,6 +47,7 @@ class SaleCreatedEvent * @param SaleCreatedEventEvent $event * @param string $createdAt * @param SaleCreatedEventData $data + * @phpstan-pure */ public function __construct(string $id, SaleCreatedEventEvent $event, string $createdAt, SaleCreatedEventData $data) { diff --git a/src/Models/Components/SaleCreatedEventClick.php b/src/Models/Components/SaleCreatedEventClick.php index 29daf7e..b6a12d2 100644 --- a/src/Models/Components/SaleCreatedEventClick.php +++ b/src/Models/Components/SaleCreatedEventClick.php @@ -18,6 +18,13 @@ class SaleCreatedEventClick #[\Speakeasy\Serializer\Annotation\SerializedName('id')] public string $id; + /** + * + * @var string $timestamp + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('timestamp')] + public string $timestamp; + /** * * @var string $url @@ -105,6 +112,7 @@ class SaleCreatedEventClick /** * @param string $id + * @param string $timestamp * @param string $url * @param string $country * @param string $city @@ -117,10 +125,12 @@ class SaleCreatedEventClick * @param string $refererUrl * @param string $ip * @param ?bool $qr + * @phpstan-pure */ - public function __construct(string $id, string $url, string $country, string $city, string $region, string $continent, string $device, string $browser, string $os, string $referer, string $refererUrl, string $ip, ?bool $qr = null) + public function __construct(string $id, string $timestamp, string $url, string $country, string $city, string $region, string $continent, string $device, string $browser, string $os, string $referer, string $refererUrl, string $ip, ?bool $qr = null) { $this->id = $id; + $this->timestamp = $timestamp; $this->url = $url; $this->country = $country; $this->city = $city; diff --git a/src/Models/Components/SaleCreatedEventCustomer.php b/src/Models/Components/SaleCreatedEventCustomer.php index 29d2d60..10a513a 100644 --- a/src/Models/Components/SaleCreatedEventCustomer.php +++ b/src/Models/Components/SaleCreatedEventCustomer.php @@ -108,6 +108,7 @@ class SaleCreatedEventCustomer * @param ?SaleCreatedEventDataLink $link * @param ?SaleCreatedEventPartner $partner * @param ?SaleCreatedEventDiscount $discount + * @phpstan-pure */ public function __construct(string $id, string $externalId, string $name, string $createdAt, ?string $email = null, ?string $avatar = null, ?string $country = null, ?SaleCreatedEventDataLink $link = null, ?SaleCreatedEventPartner $partner = null, ?SaleCreatedEventDiscount $discount = null) { diff --git a/src/Models/Components/SaleCreatedEventData.php b/src/Models/Components/SaleCreatedEventData.php index a4e4896..d2ae777 100644 --- a/src/Models/Components/SaleCreatedEventData.php +++ b/src/Models/Components/SaleCreatedEventData.php @@ -56,6 +56,7 @@ class SaleCreatedEventData * @param SaleCreatedEventClick $click * @param SaleCreatedEventLink $link * @param SaleCreatedEventSale $sale + * @phpstan-pure */ public function __construct(string $eventName, SaleCreatedEventCustomer $customer, SaleCreatedEventClick $click, SaleCreatedEventLink $link, SaleCreatedEventSale $sale) { diff --git a/src/Models/Components/SaleCreatedEventDataLink.php b/src/Models/Components/SaleCreatedEventDataLink.php index 7ae6112..da9afc2 100644 --- a/src/Models/Components/SaleCreatedEventDataLink.php +++ b/src/Models/Components/SaleCreatedEventDataLink.php @@ -57,6 +57,7 @@ class SaleCreatedEventDataLink * @param string $key * @param string $shortLink * @param ?string $programId + * @phpstan-pure */ public function __construct(string $id, string $domain, string $key, string $shortLink, ?string $programId = null) { diff --git a/src/Models/Components/SaleCreatedEventDiscount.php b/src/Models/Components/SaleCreatedEventDiscount.php index c36740e..3cb7024 100644 --- a/src/Models/Components/SaleCreatedEventDiscount.php +++ b/src/Models/Components/SaleCreatedEventDiscount.php @@ -70,6 +70,7 @@ class SaleCreatedEventDiscount * @param ?string $couponTestId * @param ?float $duration * @param ?SaleCreatedEventInterval $interval + * @phpstan-pure */ public function __construct(string $id, float $amount, SaleCreatedEventType $type, ?string $couponId = null, ?string $couponTestId = null, ?float $duration = null, ?SaleCreatedEventInterval $interval = null) { diff --git a/src/Models/Components/SaleCreatedEventGeo.php b/src/Models/Components/SaleCreatedEventGeo.php index 30eeaa1..fd0e773 100644 --- a/src/Models/Components/SaleCreatedEventGeo.php +++ b/src/Models/Components/SaleCreatedEventGeo.php @@ -2263,6 +2263,7 @@ class SaleCreatedEventGeo * @param ?string $sx * @param ?string $ss * @param ?string $xk + * @phpstan-pure */ public function __construct(?string $af = null, ?string $al = null, ?string $dz = null, ?string $as = null, ?string $ad = null, ?string $ao = null, ?string $ai = null, ?string $aq = null, ?string $ag = null, ?string $ar = null, ?string $am = null, ?string $aw = null, ?string $au = null, ?string $at = null, ?string $az = null, ?string $bs = null, ?string $bh = null, ?string $bd = null, ?string $bb = null, ?string $by = null, ?string $be = null, ?string $bz = null, ?string $bj = null, ?string $bm = null, ?string $bt = null, ?string $bo = null, ?string $ba = null, ?string $bw = null, ?string $bv = null, ?string $br = null, ?string $io = null, ?string $bn = null, ?string $bg = null, ?string $bf = null, ?string $bi = null, ?string $kh = null, ?string $cm = null, ?string $ca = null, ?string $cv = null, ?string $ky = null, ?string $cf = null, ?string $td = null, ?string $cl = null, ?string $cn = null, ?string $cx = null, ?string $cc = null, ?string $co = null, ?string $km = null, ?string $cg = null, ?string $cd = null, ?string $ck = null, ?string $cr = null, ?string $ci = null, ?string $hr = null, ?string $cu = null, ?string $cy = null, ?string $cz = null, ?string $dk = null, ?string $dj = null, ?string $dm = null, ?string $do = null, ?string $ec = null, ?string $eg = null, ?string $sv = null, ?string $gq = null, ?string $er = null, ?string $ee = null, ?string $et = null, ?string $fk = null, ?string $fo = null, ?string $fj = null, ?string $fi = null, ?string $fr = null, ?string $gf = null, ?string $pf = null, ?string $tf = null, ?string $ga = null, ?string $gm = null, ?string $ge = null, ?string $de = null, ?string $gh = null, ?string $gi = null, ?string $gr = null, ?string $gl = null, ?string $gd = null, ?string $gp = null, ?string $gu = null, ?string $gt = null, ?string $gn = null, ?string $gw = null, ?string $gy = null, ?string $ht = null, ?string $hm = null, ?string $va = null, ?string $hn = null, ?string $hk = null, ?string $hu = null, ?string $is = null, ?string $in = null, ?string $id = null, ?string $ir = null, ?string $iq = null, ?string $ie = null, ?string $il = null, ?string $it = null, ?string $jm = null, ?string $jp = null, ?string $jo = null, ?string $kz = null, ?string $ke = null, ?string $ki = null, ?string $kp = null, ?string $kr = null, ?string $kw = null, ?string $kg = null, ?string $la = null, ?string $lv = null, ?string $lb = null, ?string $ls = null, ?string $lr = null, ?string $ly = null, ?string $li = null, ?string $lt = null, ?string $lu = null, ?string $mo = null, ?string $mg = null, ?string $mw = null, ?string $my = null, ?string $mv = null, ?string $ml = null, ?string $mt = null, ?string $mh = null, ?string $mq = null, ?string $mr = null, ?string $mu = null, ?string $yt = null, ?string $mx = null, ?string $fm = null, ?string $md = null, ?string $mc = null, ?string $mn = null, ?string $ms = null, ?string $ma = null, ?string $mz = null, ?string $mm = null, ?string $na = null, ?string $nr = null, ?string $np = null, ?string $nl = null, ?string $nc = null, ?string $nz = null, ?string $ni = null, ?string $ne = null, ?string $ng = null, ?string $nu = null, ?string $nf = null, ?string $mk = null, ?string $mp = null, ?string $no = null, ?string $om = null, ?string $pk = null, ?string $pw = null, ?string $ps = null, ?string $pa = null, ?string $pg = null, ?string $py = null, ?string $pe = null, ?string $ph = null, ?string $pn = null, ?string $pl = null, ?string $pt = null, ?string $pr = null, ?string $qa = null, ?string $re = null, ?string $ro = null, ?string $ru = null, ?string $rw = null, ?string $sh = null, ?string $kn = null, ?string $lc = null, ?string $pm = null, ?string $vc = null, ?string $ws = null, ?string $sm = null, ?string $st = null, ?string $sa = null, ?string $sn = null, ?string $sc = null, ?string $sl = null, ?string $sg = null, ?string $sk = null, ?string $si = null, ?string $sb = null, ?string $so = null, ?string $za = null, ?string $gs = null, ?string $es = null, ?string $lk = null, ?string $sd = null, ?string $sr = null, ?string $sj = null, ?string $sz = null, ?string $se = null, ?string $ch = null, ?string $sy = null, ?string $tw = null, ?string $tj = null, ?string $tz = null, ?string $th = null, ?string $tl = null, ?string $tg = null, ?string $tk = null, ?string $to = null, ?string $tt = null, ?string $tn = null, ?string $tr = null, ?string $tm = null, ?string $tc = null, ?string $tv = null, ?string $ug = null, ?string $ua = null, ?string $ae = null, ?string $gb = null, ?string $us = null, ?string $um = null, ?string $uy = null, ?string $uz = null, ?string $vu = null, ?string $ve = null, ?string $vn = null, ?string $vg = null, ?string $vi = null, ?string $wf = null, ?string $eh = null, ?string $ye = null, ?string $zm = null, ?string $zw = null, ?string $ax = null, ?string $bq = null, ?string $cw = null, ?string $gg = null, ?string $im = null, ?string $je = null, ?string $me = null, ?string $bl = null, ?string $mf = null, ?string $rs = null, ?string $sx = null, ?string $ss = null, ?string $xk = null) { diff --git a/src/Models/Components/SaleCreatedEventLink.php b/src/Models/Components/SaleCreatedEventLink.php index b63a958..8b8eac4 100644 --- a/src/Models/Components/SaleCreatedEventLink.php +++ b/src/Models/Components/SaleCreatedEventLink.php @@ -419,6 +419,7 @@ class SaleCreatedEventLink * @param ?float $leads * @param ?float $sales * @param ?float $saleAmount + * @phpstan-pure */ public function __construct(string $id, string $domain, string $key, string $url, string $expiresAt, array $webhookIds, string $shortLink, string $qrCode, string $workspaceId, string $lastClicked, string $createdAt, string $updatedAt, string $projectId, ?bool $trackConversion = null, ?string $externalId = null, ?string $tenantId = null, ?string $programId = null, ?string $partnerId = null, ?bool $archived = null, ?string $expiredUrl = null, ?string $password = null, ?bool $proxy = null, ?string $title = null, ?string $description = null, ?string $image = null, ?string $video = null, ?bool $rewrite = null, ?bool $doIndex = null, ?string $ios = null, ?string $android = null, ?SaleCreatedEventGeo $geo = null, ?bool $publicStats = null, ?string $tagId = null, ?array $tags = null, ?string $comments = null, ?string $utmSource = null, ?string $utmMedium = null, ?string $utmCampaign = null, ?string $utmTerm = null, ?string $utmContent = null, ?string $userId = null, ?float $clicks = 0, ?float $leads = 0, ?float $sales = 0, ?float $saleAmount = 0) { diff --git a/src/Models/Components/SaleCreatedEventPartner.php b/src/Models/Components/SaleCreatedEventPartner.php index 9df0d5c..f54d90f 100644 --- a/src/Models/Components/SaleCreatedEventPartner.php +++ b/src/Models/Components/SaleCreatedEventPartner.php @@ -45,6 +45,7 @@ class SaleCreatedEventPartner * @param string $name * @param string $email * @param ?string $image + * @phpstan-pure */ public function __construct(string $id, string $name, string $email, ?string $image = null) { diff --git a/src/Models/Components/SaleCreatedEventSale.php b/src/Models/Components/SaleCreatedEventSale.php index 067b581..5fe095c 100644 --- a/src/Models/Components/SaleCreatedEventSale.php +++ b/src/Models/Components/SaleCreatedEventSale.php @@ -44,6 +44,7 @@ class SaleCreatedEventSale * @param string $currency * @param string $paymentProcessor * @param ?string $invoiceId + * @phpstan-pure */ public function __construct(float $amount, string $currency, string $paymentProcessor, ?string $invoiceId = null) { diff --git a/src/Models/Components/SaleEvent.php b/src/Models/Components/SaleEvent.php index 271404f..c673aed 100644 --- a/src/Models/Components/SaleEvent.php +++ b/src/Models/Components/SaleEvent.php @@ -241,6 +241,7 @@ class SaleEvent * @param float $qr * @param string $ip * @param ?string $timestamp + * @phpstan-pure */ public function __construct(SaleEventEvent $event, string $eventId, string $eventName, SaleEventLink $link, SaleEventClick $click, SaleEventCustomer $customer, Sale $sale, float $saleAmount, string $invoiceId, string $paymentProcessor, string $clickId, string $linkId, string $domain, string $key, string $url, string $continent, string $country, string $city, string $device, string $browser, string $os, float $qr, string $ip, ?string $timestamp = null) { diff --git a/src/Models/Components/SaleEventClick.php b/src/Models/Components/SaleEventClick.php index d54e6fc..99e8dcf 100644 --- a/src/Models/Components/SaleEventClick.php +++ b/src/Models/Components/SaleEventClick.php @@ -18,6 +18,13 @@ class SaleEventClick #[\Speakeasy\Serializer\Annotation\SerializedName('id')] public string $id; + /** + * + * @var string $timestamp + */ + #[\Speakeasy\Serializer\Annotation\SerializedName('timestamp')] + public string $timestamp; + /** * * @var string $url @@ -105,6 +112,7 @@ class SaleEventClick /** * @param string $id + * @param string $timestamp * @param string $url * @param string $country * @param string $city @@ -117,10 +125,12 @@ class SaleEventClick * @param string $refererUrl * @param string $ip * @param ?bool $qr + * @phpstan-pure */ - public function __construct(string $id, string $url, string $country, string $city, string $region, string $continent, string $device, string $browser, string $os, string $referer, string $refererUrl, string $ip, ?bool $qr = null) + public function __construct(string $id, string $timestamp, string $url, string $country, string $city, string $region, string $continent, string $device, string $browser, string $os, string $referer, string $refererUrl, string $ip, ?bool $qr = null) { $this->id = $id; + $this->timestamp = $timestamp; $this->url = $url; $this->country = $country; $this->city = $city; diff --git a/src/Models/Components/SaleEventCustomer.php b/src/Models/Components/SaleEventCustomer.php index ef66a41..c137499 100644 --- a/src/Models/Components/SaleEventCustomer.php +++ b/src/Models/Components/SaleEventCustomer.php @@ -108,6 +108,7 @@ class SaleEventCustomer * @param ?SaleEventCustomerLink $link * @param ?SaleEventPartner $partner * @param ?SaleEventDiscount $discount + * @phpstan-pure */ public function __construct(string $id, string $externalId, string $name, string $createdAt, ?string $email = null, ?string $avatar = null, ?string $country = null, ?SaleEventCustomerLink $link = null, ?SaleEventPartner $partner = null, ?SaleEventDiscount $discount = null) { diff --git a/src/Models/Components/SaleEventCustomerLink.php b/src/Models/Components/SaleEventCustomerLink.php index 44b6497..644ad56 100644 --- a/src/Models/Components/SaleEventCustomerLink.php +++ b/src/Models/Components/SaleEventCustomerLink.php @@ -57,6 +57,7 @@ class SaleEventCustomerLink * @param string $key * @param string $shortLink * @param ?string $programId + * @phpstan-pure */ public function __construct(string $id, string $domain, string $key, string $shortLink, ?string $programId = null) { diff --git a/src/Models/Components/SaleEventDiscount.php b/src/Models/Components/SaleEventDiscount.php index c97d090..1eb645e 100644 --- a/src/Models/Components/SaleEventDiscount.php +++ b/src/Models/Components/SaleEventDiscount.php @@ -70,6 +70,7 @@ class SaleEventDiscount * @param ?string $couponTestId * @param ?float $duration * @param ?SaleEventInterval $interval + * @phpstan-pure */ public function __construct(string $id, float $amount, SaleEventType $type, ?string $couponId = null, ?string $couponTestId = null, ?float $duration = null, ?SaleEventInterval $interval = null) { diff --git a/src/Models/Components/SaleEventGeo.php b/src/Models/Components/SaleEventGeo.php index a392165..971386f 100644 --- a/src/Models/Components/SaleEventGeo.php +++ b/src/Models/Components/SaleEventGeo.php @@ -2263,6 +2263,7 @@ class SaleEventGeo * @param ?string $sx * @param ?string $ss * @param ?string $xk + * @phpstan-pure */ public function __construct(?string $af = null, ?string $al = null, ?string $dz = null, ?string $as = null, ?string $ad = null, ?string $ao = null, ?string $ai = null, ?string $aq = null, ?string $ag = null, ?string $ar = null, ?string $am = null, ?string $aw = null, ?string $au = null, ?string $at = null, ?string $az = null, ?string $bs = null, ?string $bh = null, ?string $bd = null, ?string $bb = null, ?string $by = null, ?string $be = null, ?string $bz = null, ?string $bj = null, ?string $bm = null, ?string $bt = null, ?string $bo = null, ?string $ba = null, ?string $bw = null, ?string $bv = null, ?string $br = null, ?string $io = null, ?string $bn = null, ?string $bg = null, ?string $bf = null, ?string $bi = null, ?string $kh = null, ?string $cm = null, ?string $ca = null, ?string $cv = null, ?string $ky = null, ?string $cf = null, ?string $td = null, ?string $cl = null, ?string $cn = null, ?string $cx = null, ?string $cc = null, ?string $co = null, ?string $km = null, ?string $cg = null, ?string $cd = null, ?string $ck = null, ?string $cr = null, ?string $ci = null, ?string $hr = null, ?string $cu = null, ?string $cy = null, ?string $cz = null, ?string $dk = null, ?string $dj = null, ?string $dm = null, ?string $do = null, ?string $ec = null, ?string $eg = null, ?string $sv = null, ?string $gq = null, ?string $er = null, ?string $ee = null, ?string $et = null, ?string $fk = null, ?string $fo = null, ?string $fj = null, ?string $fi = null, ?string $fr = null, ?string $gf = null, ?string $pf = null, ?string $tf = null, ?string $ga = null, ?string $gm = null, ?string $ge = null, ?string $de = null, ?string $gh = null, ?string $gi = null, ?string $gr = null, ?string $gl = null, ?string $gd = null, ?string $gp = null, ?string $gu = null, ?string $gt = null, ?string $gn = null, ?string $gw = null, ?string $gy = null, ?string $ht = null, ?string $hm = null, ?string $va = null, ?string $hn = null, ?string $hk = null, ?string $hu = null, ?string $is = null, ?string $in = null, ?string $id = null, ?string $ir = null, ?string $iq = null, ?string $ie = null, ?string $il = null, ?string $it = null, ?string $jm = null, ?string $jp = null, ?string $jo = null, ?string $kz = null, ?string $ke = null, ?string $ki = null, ?string $kp = null, ?string $kr = null, ?string $kw = null, ?string $kg = null, ?string $la = null, ?string $lv = null, ?string $lb = null, ?string $ls = null, ?string $lr = null, ?string $ly = null, ?string $li = null, ?string $lt = null, ?string $lu = null, ?string $mo = null, ?string $mg = null, ?string $mw = null, ?string $my = null, ?string $mv = null, ?string $ml = null, ?string $mt = null, ?string $mh = null, ?string $mq = null, ?string $mr = null, ?string $mu = null, ?string $yt = null, ?string $mx = null, ?string $fm = null, ?string $md = null, ?string $mc = null, ?string $mn = null, ?string $ms = null, ?string $ma = null, ?string $mz = null, ?string $mm = null, ?string $na = null, ?string $nr = null, ?string $np = null, ?string $nl = null, ?string $nc = null, ?string $nz = null, ?string $ni = null, ?string $ne = null, ?string $ng = null, ?string $nu = null, ?string $nf = null, ?string $mk = null, ?string $mp = null, ?string $no = null, ?string $om = null, ?string $pk = null, ?string $pw = null, ?string $ps = null, ?string $pa = null, ?string $pg = null, ?string $py = null, ?string $pe = null, ?string $ph = null, ?string $pn = null, ?string $pl = null, ?string $pt = null, ?string $pr = null, ?string $qa = null, ?string $re = null, ?string $ro = null, ?string $ru = null, ?string $rw = null, ?string $sh = null, ?string $kn = null, ?string $lc = null, ?string $pm = null, ?string $vc = null, ?string $ws = null, ?string $sm = null, ?string $st = null, ?string $sa = null, ?string $sn = null, ?string $sc = null, ?string $sl = null, ?string $sg = null, ?string $sk = null, ?string $si = null, ?string $sb = null, ?string $so = null, ?string $za = null, ?string $gs = null, ?string $es = null, ?string $lk = null, ?string $sd = null, ?string $sr = null, ?string $sj = null, ?string $sz = null, ?string $se = null, ?string $ch = null, ?string $sy = null, ?string $tw = null, ?string $tj = null, ?string $tz = null, ?string $th = null, ?string $tl = null, ?string $tg = null, ?string $tk = null, ?string $to = null, ?string $tt = null, ?string $tn = null, ?string $tr = null, ?string $tm = null, ?string $tc = null, ?string $tv = null, ?string $ug = null, ?string $ua = null, ?string $ae = null, ?string $gb = null, ?string $us = null, ?string $um = null, ?string $uy = null, ?string $uz = null, ?string $vu = null, ?string $ve = null, ?string $vn = null, ?string $vg = null, ?string $vi = null, ?string $wf = null, ?string $eh = null, ?string $ye = null, ?string $zm = null, ?string $zw = null, ?string $ax = null, ?string $bq = null, ?string $cw = null, ?string $gg = null, ?string $im = null, ?string $je = null, ?string $me = null, ?string $bl = null, ?string $mf = null, ?string $rs = null, ?string $sx = null, ?string $ss = null, ?string $xk = null) { diff --git a/src/Models/Components/SaleEventLink.php b/src/Models/Components/SaleEventLink.php index 3ba9cae..e0c10c5 100644 --- a/src/Models/Components/SaleEventLink.php +++ b/src/Models/Components/SaleEventLink.php @@ -419,6 +419,7 @@ class SaleEventLink * @param ?float $leads * @param ?float $sales * @param ?float $saleAmount + * @phpstan-pure */ public function __construct(string $id, string $domain, string $key, string $url, string $expiresAt, array $webhookIds, string $shortLink, string $qrCode, string $workspaceId, string $lastClicked, string $createdAt, string $updatedAt, string $projectId, ?bool $trackConversion = null, ?string $externalId = null, ?string $tenantId = null, ?string $programId = null, ?string $partnerId = null, ?bool $archived = null, ?string $expiredUrl = null, ?string $password = null, ?bool $proxy = null, ?string $title = null, ?string $description = null, ?string $image = null, ?string $video = null, ?bool $rewrite = null, ?bool $doIndex = null, ?string $ios = null, ?string $android = null, ?SaleEventGeo $geo = null, ?bool $publicStats = null, ?string $tagId = null, ?array $tags = null, ?string $comments = null, ?string $utmSource = null, ?string $utmMedium = null, ?string $utmCampaign = null, ?string $utmTerm = null, ?string $utmContent = null, ?string $userId = null, ?float $clicks = 0, ?float $leads = 0, ?float $sales = 0, ?float $saleAmount = 0) { diff --git a/src/Models/Components/SaleEventPartner.php b/src/Models/Components/SaleEventPartner.php index 106d0e4..701f3ad 100644 --- a/src/Models/Components/SaleEventPartner.php +++ b/src/Models/Components/SaleEventPartner.php @@ -45,6 +45,7 @@ class SaleEventPartner * @param string $name * @param string $email * @param ?string $image + * @phpstan-pure */ public function __construct(string $id, string $name, string $email, ?string $image = null) { diff --git a/src/Models/Components/Security.php b/src/Models/Components/Security.php index 58ca2a0..a61c9d2 100644 --- a/src/Models/Components/Security.php +++ b/src/Models/Components/Security.php @@ -20,6 +20,7 @@ class Security /** * @param string $token + * @phpstan-pure */ public function __construct(string $token) { diff --git a/src/Models/Components/TagSchema.php b/src/Models/Components/TagSchema.php index 5492fbd..e58a6cc 100644 --- a/src/Models/Components/TagSchema.php +++ b/src/Models/Components/TagSchema.php @@ -40,6 +40,7 @@ class TagSchema * @param string $id * @param string $name * @param Color $color + * @phpstan-pure */ public function __construct(string $id, string $name, Color $color) { diff --git a/src/Models/Components/Users.php b/src/Models/Components/Users.php index ec98425..1f34006 100644 --- a/src/Models/Components/Users.php +++ b/src/Models/Components/Users.php @@ -22,6 +22,7 @@ class Users /** * @param Role $role + * @phpstan-pure */ public function __construct(Role $role) { diff --git a/src/Models/Components/WorkspaceSchema.php b/src/Models/Components/WorkspaceSchema.php index 8a305cc..dd155b7 100644 --- a/src/Models/Components/WorkspaceSchema.php +++ b/src/Models/Components/WorkspaceSchema.php @@ -290,6 +290,7 @@ class WorkspaceSchema * @param ?array $store * @param ?array $allowedHostnames * @param ?string $logo + * @phpstan-pure */ public function __construct(string $id, string $name, string $slug, Plan $plan, float $billingCycleStart, float $usage, float $usageLimit, float $linksUsage, float $linksLimit, float $salesUsage, float $salesLimit, float $domainsLimit, float $tagsLimit, float $usersLimit, float $aiUsage, float $aiLimit, bool $conversionEnabled, bool $dotLinkClaimed, bool $partnersEnabled, string $createdAt, array $users, array $domains, ?string $inviteCode = null, ?string $stripeId = null, ?string $paymentFailedAt = null, ?string $stripeConnectId = null, ?array $flags = null, ?array $store = null, ?array $allowedHostnames = null, ?string $logo = null) { diff --git a/src/Models/Errors/BadRequest.php b/src/Models/Errors/BadRequest.php index cbb5f49..aba0436 100644 --- a/src/Models/Errors/BadRequest.php +++ b/src/Models/Errors/BadRequest.php @@ -22,6 +22,7 @@ class BadRequest /** * @param Error $error + * @phpstan-pure */ public function __construct(Error $error) { diff --git a/src/Models/Errors/Conflict.php b/src/Models/Errors/Conflict.php index eeab923..b2ed784 100644 --- a/src/Models/Errors/Conflict.php +++ b/src/Models/Errors/Conflict.php @@ -22,6 +22,7 @@ class Conflict /** * @param ConflictError $error + * @phpstan-pure */ public function __construct(ConflictError $error) { diff --git a/src/Models/Errors/ConflictError.php b/src/Models/Errors/ConflictError.php index 9059256..d6b9c0c 100644 --- a/src/Models/Errors/ConflictError.php +++ b/src/Models/Errors/ConflictError.php @@ -41,6 +41,7 @@ class ConflictError * @param ConflictCode $code * @param string $message * @param ?string $docUrl + * @phpstan-pure */ public function __construct(ConflictCode $code, string $message, ?string $docUrl = null) { diff --git a/src/Models/Errors/Error.php b/src/Models/Errors/Error.php index adf7ecc..a241519 100644 --- a/src/Models/Errors/Error.php +++ b/src/Models/Errors/Error.php @@ -41,6 +41,7 @@ class Error * @param Code $code * @param string $message * @param ?string $docUrl + * @phpstan-pure */ public function __construct(Code $code, string $message, ?string $docUrl = null) { diff --git a/src/Models/Errors/Forbidden.php b/src/Models/Errors/Forbidden.php index 46d5f8a..44a8058 100644 --- a/src/Models/Errors/Forbidden.php +++ b/src/Models/Errors/Forbidden.php @@ -22,6 +22,7 @@ class Forbidden /** * @param ForbiddenError $error + * @phpstan-pure */ public function __construct(ForbiddenError $error) { diff --git a/src/Models/Errors/ForbiddenError.php b/src/Models/Errors/ForbiddenError.php index 82e4306..9aa0b4b 100644 --- a/src/Models/Errors/ForbiddenError.php +++ b/src/Models/Errors/ForbiddenError.php @@ -41,6 +41,7 @@ class ForbiddenError * @param ForbiddenCode $code * @param string $message * @param ?string $docUrl + * @phpstan-pure */ public function __construct(ForbiddenCode $code, string $message, ?string $docUrl = null) { diff --git a/src/Models/Errors/InternalServerError.php b/src/Models/Errors/InternalServerError.php index 0d53c9f..bad965f 100644 --- a/src/Models/Errors/InternalServerError.php +++ b/src/Models/Errors/InternalServerError.php @@ -22,6 +22,7 @@ class InternalServerError /** * @param InternalServerErrorError $error + * @phpstan-pure */ public function __construct(InternalServerErrorError $error) { diff --git a/src/Models/Errors/InternalServerErrorError.php b/src/Models/Errors/InternalServerErrorError.php index 400a3ca..7035f81 100644 --- a/src/Models/Errors/InternalServerErrorError.php +++ b/src/Models/Errors/InternalServerErrorError.php @@ -41,6 +41,7 @@ class InternalServerErrorError * @param InternalServerErrorCode $code * @param string $message * @param ?string $docUrl + * @phpstan-pure */ public function __construct(InternalServerErrorCode $code, string $message, ?string $docUrl = null) { diff --git a/src/Models/Errors/InviteExpired.php b/src/Models/Errors/InviteExpired.php index 04c87ab..43a4356 100644 --- a/src/Models/Errors/InviteExpired.php +++ b/src/Models/Errors/InviteExpired.php @@ -22,6 +22,7 @@ class InviteExpired /** * @param InviteExpiredError $error + * @phpstan-pure */ public function __construct(InviteExpiredError $error) { diff --git a/src/Models/Errors/InviteExpiredError.php b/src/Models/Errors/InviteExpiredError.php index 6002bef..3919356 100644 --- a/src/Models/Errors/InviteExpiredError.php +++ b/src/Models/Errors/InviteExpiredError.php @@ -41,6 +41,7 @@ class InviteExpiredError * @param InviteExpiredCode $code * @param string $message * @param ?string $docUrl + * @phpstan-pure */ public function __construct(InviteExpiredCode $code, string $message, ?string $docUrl = null) { diff --git a/src/Models/Errors/NotFound.php b/src/Models/Errors/NotFound.php index 8dc3a9f..08d075a 100644 --- a/src/Models/Errors/NotFound.php +++ b/src/Models/Errors/NotFound.php @@ -22,6 +22,7 @@ class NotFound /** * @param NotFoundError $error + * @phpstan-pure */ public function __construct(NotFoundError $error) { diff --git a/src/Models/Errors/NotFoundError.php b/src/Models/Errors/NotFoundError.php index 1d9fee1..01c99d7 100644 --- a/src/Models/Errors/NotFoundError.php +++ b/src/Models/Errors/NotFoundError.php @@ -41,6 +41,7 @@ class NotFoundError * @param NotFoundCode $code * @param string $message * @param ?string $docUrl + * @phpstan-pure */ public function __construct(NotFoundCode $code, string $message, ?string $docUrl = null) { diff --git a/src/Models/Errors/RateLimitExceeded.php b/src/Models/Errors/RateLimitExceeded.php index cf0c8d6..2641a71 100644 --- a/src/Models/Errors/RateLimitExceeded.php +++ b/src/Models/Errors/RateLimitExceeded.php @@ -22,6 +22,7 @@ class RateLimitExceeded /** * @param RateLimitExceededError $error + * @phpstan-pure */ public function __construct(RateLimitExceededError $error) { diff --git a/src/Models/Errors/RateLimitExceededError.php b/src/Models/Errors/RateLimitExceededError.php index 06f3dfa..32b57eb 100644 --- a/src/Models/Errors/RateLimitExceededError.php +++ b/src/Models/Errors/RateLimitExceededError.php @@ -41,6 +41,7 @@ class RateLimitExceededError * @param RateLimitExceededCode $code * @param string $message * @param ?string $docUrl + * @phpstan-pure */ public function __construct(RateLimitExceededCode $code, string $message, ?string $docUrl = null) { diff --git a/src/Models/Errors/Unauthorized.php b/src/Models/Errors/Unauthorized.php index 6fb81e7..13310c4 100644 --- a/src/Models/Errors/Unauthorized.php +++ b/src/Models/Errors/Unauthorized.php @@ -22,6 +22,7 @@ class Unauthorized /** * @param UnauthorizedError $error + * @phpstan-pure */ public function __construct(UnauthorizedError $error) { diff --git a/src/Models/Errors/UnauthorizedError.php b/src/Models/Errors/UnauthorizedError.php index bb4a398..531e595 100644 --- a/src/Models/Errors/UnauthorizedError.php +++ b/src/Models/Errors/UnauthorizedError.php @@ -41,6 +41,7 @@ class UnauthorizedError * @param UnauthorizedCode $code * @param string $message * @param ?string $docUrl + * @phpstan-pure */ public function __construct(UnauthorizedCode $code, string $message, ?string $docUrl = null) { diff --git a/src/Models/Errors/UnprocessableEntity.php b/src/Models/Errors/UnprocessableEntity.php index 2585dba..adccbfc 100644 --- a/src/Models/Errors/UnprocessableEntity.php +++ b/src/Models/Errors/UnprocessableEntity.php @@ -22,6 +22,7 @@ class UnprocessableEntity /** * @param UnprocessableEntityError $error + * @phpstan-pure */ public function __construct(UnprocessableEntityError $error) { diff --git a/src/Models/Errors/UnprocessableEntityError.php b/src/Models/Errors/UnprocessableEntityError.php index 91d47b9..2b50931 100644 --- a/src/Models/Errors/UnprocessableEntityError.php +++ b/src/Models/Errors/UnprocessableEntityError.php @@ -41,6 +41,7 @@ class UnprocessableEntityError * @param UnprocessableEntityCode $code * @param string $message * @param ?string $docUrl + * @phpstan-pure */ public function __construct(UnprocessableEntityCode $code, string $message, ?string $docUrl = null) { diff --git a/src/Models/Operations/BulkCreateLinksResponse.php b/src/Models/Operations/BulkCreateLinksResponse.php index c0707dc..7733193 100644 --- a/src/Models/Operations/BulkCreateLinksResponse.php +++ b/src/Models/Operations/BulkCreateLinksResponse.php @@ -44,6 +44,7 @@ class BulkCreateLinksResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?array $responseBodies + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $responseBodies = null) { diff --git a/src/Models/Operations/BulkDeleteLinksRequest.php b/src/Models/Operations/BulkDeleteLinksRequest.php index 5f87899..82b5a74 100644 --- a/src/Models/Operations/BulkDeleteLinksRequest.php +++ b/src/Models/Operations/BulkDeleteLinksRequest.php @@ -21,6 +21,7 @@ class BulkDeleteLinksRequest /** * @param array $linkIds + * @phpstan-pure */ public function __construct(array $linkIds) { diff --git a/src/Models/Operations/BulkDeleteLinksResponse.php b/src/Models/Operations/BulkDeleteLinksResponse.php index 5f44766..754890e 100644 --- a/src/Models/Operations/BulkDeleteLinksResponse.php +++ b/src/Models/Operations/BulkDeleteLinksResponse.php @@ -44,6 +44,7 @@ class BulkDeleteLinksResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?BulkDeleteLinksResponseBody $object + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?BulkDeleteLinksResponseBody $object = null) { diff --git a/src/Models/Operations/BulkDeleteLinksResponseBody.php b/src/Models/Operations/BulkDeleteLinksResponseBody.php index 19e19bb..433f96f 100644 --- a/src/Models/Operations/BulkDeleteLinksResponseBody.php +++ b/src/Models/Operations/BulkDeleteLinksResponseBody.php @@ -22,6 +22,7 @@ class BulkDeleteLinksResponseBody /** * @param float $deletedCount + * @phpstan-pure */ public function __construct(float $deletedCount) { diff --git a/src/Models/Operations/BulkUpdateLinksRequestBody.php b/src/Models/Operations/BulkUpdateLinksRequestBody.php index da31cdd..0f3a3a6 100644 --- a/src/Models/Operations/BulkUpdateLinksRequestBody.php +++ b/src/Models/Operations/BulkUpdateLinksRequestBody.php @@ -43,6 +43,7 @@ class BulkUpdateLinksRequestBody * @param Data $data * @param ?array $linkIds * @param ?array $externalIds + * @phpstan-pure */ public function __construct(Data $data, ?array $linkIds = null, ?array $externalIds = null) { diff --git a/src/Models/Operations/BulkUpdateLinksResponse.php b/src/Models/Operations/BulkUpdateLinksResponse.php index 08b99da..2f09cad 100644 --- a/src/Models/Operations/BulkUpdateLinksResponse.php +++ b/src/Models/Operations/BulkUpdateLinksResponse.php @@ -44,6 +44,7 @@ class BulkUpdateLinksResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?array $linkSchemas + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $linkSchemas = null) { diff --git a/src/Models/Operations/Click.php b/src/Models/Operations/Click.php index 0ce0c0d..73b2278 100644 --- a/src/Models/Operations/Click.php +++ b/src/Models/Operations/Click.php @@ -20,6 +20,7 @@ class Click /** * @param string $id + * @phpstan-pure */ public function __construct(string $id) { diff --git a/src/Models/Operations/CreateCustomerDiscount.php b/src/Models/Operations/CreateCustomerDiscount.php index 8c46866..e956508 100644 --- a/src/Models/Operations/CreateCustomerDiscount.php +++ b/src/Models/Operations/CreateCustomerDiscount.php @@ -70,6 +70,7 @@ class CreateCustomerDiscount * @param ?string $couponTestId * @param ?float $duration * @param ?CreateCustomerInterval $interval + * @phpstan-pure */ public function __construct(string $id, float $amount, CreateCustomerType $type, ?string $couponId = null, ?string $couponTestId = null, ?float $duration = null, ?CreateCustomerInterval $interval = null) { diff --git a/src/Models/Operations/CreateCustomerLink.php b/src/Models/Operations/CreateCustomerLink.php index 98bd403..6293a32 100644 --- a/src/Models/Operations/CreateCustomerLink.php +++ b/src/Models/Operations/CreateCustomerLink.php @@ -57,6 +57,7 @@ class CreateCustomerLink * @param string $key * @param string $shortLink * @param ?string $programId + * @phpstan-pure */ public function __construct(string $id, string $domain, string $key, string $shortLink, ?string $programId = null) { diff --git a/src/Models/Operations/CreateCustomerPartner.php b/src/Models/Operations/CreateCustomerPartner.php index cc23c48..0a1595a 100644 --- a/src/Models/Operations/CreateCustomerPartner.php +++ b/src/Models/Operations/CreateCustomerPartner.php @@ -45,6 +45,7 @@ class CreateCustomerPartner * @param string $name * @param string $email * @param ?string $image + * @phpstan-pure */ public function __construct(string $id, string $name, string $email, ?string $image = null) { diff --git a/src/Models/Operations/CreateCustomerRequestBody.php b/src/Models/Operations/CreateCustomerRequestBody.php index 775d08c..fcdd2c4 100644 --- a/src/Models/Operations/CreateCustomerRequestBody.php +++ b/src/Models/Operations/CreateCustomerRequestBody.php @@ -51,6 +51,7 @@ class CreateCustomerRequestBody * @param ?string $email * @param ?string $name * @param ?string $avatar + * @phpstan-pure */ public function __construct(string $externalId, ?string $email = null, ?string $name = null, ?string $avatar = null) { diff --git a/src/Models/Operations/CreateCustomerResponse.php b/src/Models/Operations/CreateCustomerResponse.php index c9db19e..afc94f1 100644 --- a/src/Models/Operations/CreateCustomerResponse.php +++ b/src/Models/Operations/CreateCustomerResponse.php @@ -44,6 +44,7 @@ class CreateCustomerResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?CreateCustomerResponseBody $object + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?CreateCustomerResponseBody $object = null) { diff --git a/src/Models/Operations/CreateCustomerResponseBody.php b/src/Models/Operations/CreateCustomerResponseBody.php index d4cd25d..e5cc32d 100644 --- a/src/Models/Operations/CreateCustomerResponseBody.php +++ b/src/Models/Operations/CreateCustomerResponseBody.php @@ -109,6 +109,7 @@ class CreateCustomerResponseBody * @param ?CreateCustomerLink $link * @param ?CreateCustomerPartner $partner * @param ?CreateCustomerDiscount $discount + * @phpstan-pure */ public function __construct(string $id, string $externalId, string $name, string $createdAt, ?string $email = null, ?string $avatar = null, ?string $country = null, ?CreateCustomerLink $link = null, ?CreateCustomerPartner $partner = null, ?CreateCustomerDiscount $discount = null) { diff --git a/src/Models/Operations/CreateDomainRequestBody.php b/src/Models/Operations/CreateDomainRequestBody.php index 024418c..6ecf776 100644 --- a/src/Models/Operations/CreateDomainRequestBody.php +++ b/src/Models/Operations/CreateDomainRequestBody.php @@ -71,6 +71,7 @@ class CreateDomainRequestBody * @param ?string $notFoundUrl * @param ?string $placeholder * @param ?string $logo + * @phpstan-pure */ public function __construct(string $slug, ?string $expiredUrl = null, ?string $notFoundUrl = null, ?string $placeholder = null, ?string $logo = null, ?bool $archived = false) { diff --git a/src/Models/Operations/CreateDomainResponse.php b/src/Models/Operations/CreateDomainResponse.php index 5c228db..d859f23 100644 --- a/src/Models/Operations/CreateDomainResponse.php +++ b/src/Models/Operations/CreateDomainResponse.php @@ -44,6 +44,7 @@ class CreateDomainResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\DomainSchema $domainSchema + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\DomainSchema $domainSchema = null) { diff --git a/src/Models/Operations/CreateEmbedTokenRequestBody.php b/src/Models/Operations/CreateEmbedTokenRequestBody.php index 1e3e320..e6509a2 100644 --- a/src/Models/Operations/CreateEmbedTokenRequestBody.php +++ b/src/Models/Operations/CreateEmbedTokenRequestBody.php @@ -38,6 +38,7 @@ class CreateEmbedTokenRequestBody * @param string $programId * @param ?string $partnerId * @param ?string $tenantId + * @phpstan-pure */ public function __construct(string $programId, ?string $partnerId = null, ?string $tenantId = null) { diff --git a/src/Models/Operations/CreateEmbedTokenResponse.php b/src/Models/Operations/CreateEmbedTokenResponse.php index 06ac027..92ae937 100644 --- a/src/Models/Operations/CreateEmbedTokenResponse.php +++ b/src/Models/Operations/CreateEmbedTokenResponse.php @@ -44,6 +44,7 @@ class CreateEmbedTokenResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?CreateEmbedTokenResponseBody $object + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?CreateEmbedTokenResponseBody $object = null) { diff --git a/src/Models/Operations/CreateEmbedTokenResponseBody.php b/src/Models/Operations/CreateEmbedTokenResponseBody.php index 9596e03..18021e6 100644 --- a/src/Models/Operations/CreateEmbedTokenResponseBody.php +++ b/src/Models/Operations/CreateEmbedTokenResponseBody.php @@ -29,6 +29,7 @@ class CreateEmbedTokenResponseBody /** * @param string $publicToken * @param string $expires + * @phpstan-pure */ public function __construct(string $publicToken, string $expires) { diff --git a/src/Models/Operations/CreateLinkRequestBody.php b/src/Models/Operations/CreateLinkRequestBody.php index 808d4e9..fedb395 100644 --- a/src/Models/Operations/CreateLinkRequestBody.php +++ b/src/Models/Operations/CreateLinkRequestBody.php @@ -367,6 +367,7 @@ class CreateLinkRequestBody * @param ?string $utmContent * @param ?string $ref * @param ?array $webhookIds + * @phpstan-pure */ public function __construct(string $url, ?string $domain = null, ?string $key = null, ?string $prefix = null, ?bool $trackConversion = null, ?bool $archived = null, ?bool $publicStats = null, string|array|null $tagIds = null, string|array|null $tagNames = null, ?bool $proxy = null, ?bool $rewrite = null, ?bool $doIndex = null, ?string $externalId = null, ?string $tenantId = null, ?string $programId = null, ?string $partnerId = null, ?string $tagId = null, ?string $comments = null, ?string $expiresAt = null, ?string $expiredUrl = null, ?string $password = null, ?string $title = null, ?string $description = null, ?string $image = null, ?string $video = null, ?string $ios = null, ?string $android = null, ?Components\LinkGeoTargeting $geo = null, ?string $utmSource = null, ?string $utmMedium = null, ?string $utmCampaign = null, ?string $utmTerm = null, ?string $utmContent = null, ?string $ref = null, ?array $webhookIds = null) { diff --git a/src/Models/Operations/CreateLinkResponse.php b/src/Models/Operations/CreateLinkResponse.php index 68435d9..6f047a2 100644 --- a/src/Models/Operations/CreateLinkResponse.php +++ b/src/Models/Operations/CreateLinkResponse.php @@ -44,6 +44,7 @@ class CreateLinkResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\LinkSchema $linkSchema + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\LinkSchema $linkSchema = null) { diff --git a/src/Models/Operations/CreatePartnerDiscount.php b/src/Models/Operations/CreatePartnerDiscount.php index 8fd6024..0c77f46 100644 --- a/src/Models/Operations/CreatePartnerDiscount.php +++ b/src/Models/Operations/CreatePartnerDiscount.php @@ -70,6 +70,7 @@ class CreatePartnerDiscount * @param ?string $couponTestId * @param ?float $duration * @param ?CreatePartnerInterval $interval + * @phpstan-pure */ public function __construct(string $id, float $amount, CreatePartnerType $type, ?string $couponId = null, ?string $couponTestId = null, ?float $duration = null, ?CreatePartnerInterval $interval = null) { diff --git a/src/Models/Operations/CreatePartnerLinkLinkProps.php b/src/Models/Operations/CreatePartnerLinkLinkProps.php index 395296f..1add3d8 100644 --- a/src/Models/Operations/CreatePartnerLinkLinkProps.php +++ b/src/Models/Operations/CreatePartnerLinkLinkProps.php @@ -275,6 +275,7 @@ class CreatePartnerLinkLinkProps * @param ?string $utmTerm * @param ?string $utmContent * @param ?string $ref + * @phpstan-pure */ public function __construct(?string $prefix = null, ?bool $archived = null, string|array|null $tagIds = null, string|array|null $tagNames = null, ?bool $proxy = null, ?bool $rewrite = null, ?bool $doIndex = null, ?string $externalId = null, ?string $tenantId = null, ?string $partnerId = null, ?string $comments = null, ?string $expiresAt = null, ?string $expiredUrl = null, ?string $password = null, ?string $title = null, ?string $description = null, ?string $image = null, ?string $video = null, ?string $ios = null, ?string $android = null, ?string $utmSource = null, ?string $utmMedium = null, ?string $utmCampaign = null, ?string $utmTerm = null, ?string $utmContent = null, ?string $ref = null) { diff --git a/src/Models/Operations/CreatePartnerLinkRequestBody.php b/src/Models/Operations/CreatePartnerLinkRequestBody.php index 992d61f..15a3b76 100644 --- a/src/Models/Operations/CreatePartnerLinkRequestBody.php +++ b/src/Models/Operations/CreatePartnerLinkRequestBody.php @@ -71,6 +71,7 @@ class CreatePartnerLinkRequestBody * @param ?CreatePartnerLinkLinkProps $linkProps * @param ?string $partnerId * @param ?string $tenantId + * @phpstan-pure */ public function __construct(string $programId, string $url, ?string $key = null, ?CreatePartnerLinkLinkProps $linkProps = null, ?string $partnerId = null, ?string $tenantId = null) { diff --git a/src/Models/Operations/CreatePartnerLinkResponse.php b/src/Models/Operations/CreatePartnerLinkResponse.php index 849d717..be86e7e 100644 --- a/src/Models/Operations/CreatePartnerLinkResponse.php +++ b/src/Models/Operations/CreatePartnerLinkResponse.php @@ -44,6 +44,7 @@ class CreatePartnerLinkResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\LinkSchema $linkSchema + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\LinkSchema $linkSchema = null) { diff --git a/src/Models/Operations/CreatePartnerRequestBody.php b/src/Models/Operations/CreatePartnerRequestBody.php index 928b47e..3e13186 100644 --- a/src/Models/Operations/CreatePartnerRequestBody.php +++ b/src/Models/Operations/CreatePartnerRequestBody.php @@ -100,6 +100,7 @@ class CreatePartnerRequestBody * @param ?string $image * @param ?Country $country * @param ?string $description + * @phpstan-pure */ public function __construct(string $programId, string $name, string $email, string $username, ?string $tenantId = null, ?LinkProps $linkProps = null, ?string $image = null, ?Country $country = null, ?string $description = null) { diff --git a/src/Models/Operations/CreatePartnerResponse.php b/src/Models/Operations/CreatePartnerResponse.php index dd22cf4..9dd3cfa 100644 --- a/src/Models/Operations/CreatePartnerResponse.php +++ b/src/Models/Operations/CreatePartnerResponse.php @@ -44,6 +44,7 @@ class CreatePartnerResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?CreatePartnerResponseBody $object + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?CreatePartnerResponseBody $object = null) { diff --git a/src/Models/Operations/CreatePartnerResponseBody.php b/src/Models/Operations/CreatePartnerResponseBody.php index 0e044dc..55bded7 100644 --- a/src/Models/Operations/CreatePartnerResponseBody.php +++ b/src/Models/Operations/CreatePartnerResponseBody.php @@ -184,6 +184,7 @@ class CreatePartnerResponseBody * @param ?float $salesAmount * @param ?string $couponId * @param ?CreatePartnerDiscount $discount + * @phpstan-pure */ public function __construct(string $id, string $name, string $country, bool $payoutsEnabled, string $createdAt, string $updatedAt, Status $status, ?string $email = null, ?string $image = null, ?string $bio = null, ?string $stripeConnectId = null, ?array $links = null, ?float $commissionAmount = null, ?string $couponId = null, ?CreatePartnerDiscount $discount = null, ?float $earnings = 0, ?float $clicks = 0, ?float $leads = 0, ?float $sales = 0, ?float $salesAmount = 0) { diff --git a/src/Models/Operations/CreateTagRequestBody.php b/src/Models/Operations/CreateTagRequestBody.php index 8bdf319..0d7fa93 100644 --- a/src/Models/Operations/CreateTagRequestBody.php +++ b/src/Models/Operations/CreateTagRequestBody.php @@ -44,6 +44,7 @@ class CreateTagRequestBody * @param ?string $name * @param ?Color $color * @param ?string $tag + * @phpstan-pure */ public function __construct(?string $name = null, ?Color $color = null, ?string $tag = null) { diff --git a/src/Models/Operations/CreateTagResponse.php b/src/Models/Operations/CreateTagResponse.php index 436d11d..4fed237 100644 --- a/src/Models/Operations/CreateTagResponse.php +++ b/src/Models/Operations/CreateTagResponse.php @@ -44,6 +44,7 @@ class CreateTagResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\TagSchema $tagSchema + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\TagSchema $tagSchema = null) { diff --git a/src/Models/Operations/Customer.php b/src/Models/Operations/Customer.php index f7a5c41..edb82da 100644 --- a/src/Models/Operations/Customer.php +++ b/src/Models/Operations/Customer.php @@ -44,6 +44,7 @@ class Customer * @param ?string $email * @param ?string $avatar * @param ?string $externalId + * @phpstan-pure */ public function __construct(?string $name = null, ?string $email = null, ?string $avatar = null, ?string $externalId = null) { diff --git a/src/Models/Operations/Data.php b/src/Models/Operations/Data.php index 6553ee0..435bdba 100644 --- a/src/Models/Operations/Data.php +++ b/src/Models/Operations/Data.php @@ -328,6 +328,7 @@ class Data * @param ?string $utmContent * @param ?string $ref * @param ?array $webhookIds + * @phpstan-pure */ public function __construct(?string $url = null, ?bool $trackConversion = null, ?bool $archived = null, ?bool $publicStats = null, string|array|null $tagIds = null, string|array|null $tagNames = null, ?bool $proxy = null, ?bool $rewrite = null, ?bool $doIndex = null, ?string $tenantId = null, ?string $programId = null, ?string $partnerId = null, ?string $tagId = null, ?string $comments = null, ?string $expiresAt = null, ?string $expiredUrl = null, ?string $password = null, ?string $title = null, ?string $description = null, ?string $image = null, ?string $video = null, ?string $ios = null, ?string $android = null, ?Components\LinkGeoTargeting $geo = null, ?string $utmSource = null, ?string $utmMedium = null, ?string $utmCampaign = null, ?string $utmTerm = null, ?string $utmContent = null, ?string $ref = null, ?array $webhookIds = null) { diff --git a/src/Models/Operations/DeleteCustomerRequest.php b/src/Models/Operations/DeleteCustomerRequest.php index ab4d9bf..8179615 100644 --- a/src/Models/Operations/DeleteCustomerRequest.php +++ b/src/Models/Operations/DeleteCustomerRequest.php @@ -21,6 +21,7 @@ class DeleteCustomerRequest /** * @param string $id + * @phpstan-pure */ public function __construct(string $id) { diff --git a/src/Models/Operations/DeleteCustomerResponse.php b/src/Models/Operations/DeleteCustomerResponse.php index 81a5347..a9a0e99 100644 --- a/src/Models/Operations/DeleteCustomerResponse.php +++ b/src/Models/Operations/DeleteCustomerResponse.php @@ -44,6 +44,7 @@ class DeleteCustomerResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?DeleteCustomerResponseBody $object + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?DeleteCustomerResponseBody $object = null) { diff --git a/src/Models/Operations/DeleteCustomerResponseBody.php b/src/Models/Operations/DeleteCustomerResponseBody.php index 3906fe1..d7aef7e 100644 --- a/src/Models/Operations/DeleteCustomerResponseBody.php +++ b/src/Models/Operations/DeleteCustomerResponseBody.php @@ -22,6 +22,7 @@ class DeleteCustomerResponseBody /** * @param string $id + * @phpstan-pure */ public function __construct(string $id) { diff --git a/src/Models/Operations/DeleteDomainRequest.php b/src/Models/Operations/DeleteDomainRequest.php index 0649073..5296978 100644 --- a/src/Models/Operations/DeleteDomainRequest.php +++ b/src/Models/Operations/DeleteDomainRequest.php @@ -21,6 +21,7 @@ class DeleteDomainRequest /** * @param string $slug + * @phpstan-pure */ public function __construct(string $slug) { diff --git a/src/Models/Operations/DeleteDomainResponse.php b/src/Models/Operations/DeleteDomainResponse.php index 686f230..0b6ac0e 100644 --- a/src/Models/Operations/DeleteDomainResponse.php +++ b/src/Models/Operations/DeleteDomainResponse.php @@ -44,6 +44,7 @@ class DeleteDomainResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?DeleteDomainResponseBody $object + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?DeleteDomainResponseBody $object = null) { diff --git a/src/Models/Operations/DeleteDomainResponseBody.php b/src/Models/Operations/DeleteDomainResponseBody.php index 4c08cfd..d00f9c6 100644 --- a/src/Models/Operations/DeleteDomainResponseBody.php +++ b/src/Models/Operations/DeleteDomainResponseBody.php @@ -22,6 +22,7 @@ class DeleteDomainResponseBody /** * @param string $slug + * @phpstan-pure */ public function __construct(string $slug) { diff --git a/src/Models/Operations/DeleteLinkRequest.php b/src/Models/Operations/DeleteLinkRequest.php index 6e30eb6..034880e 100644 --- a/src/Models/Operations/DeleteLinkRequest.php +++ b/src/Models/Operations/DeleteLinkRequest.php @@ -21,6 +21,7 @@ class DeleteLinkRequest /** * @param string $linkId + * @phpstan-pure */ public function __construct(string $linkId) { diff --git a/src/Models/Operations/DeleteLinkResponse.php b/src/Models/Operations/DeleteLinkResponse.php index b08c23d..7b6e8cf 100644 --- a/src/Models/Operations/DeleteLinkResponse.php +++ b/src/Models/Operations/DeleteLinkResponse.php @@ -44,6 +44,7 @@ class DeleteLinkResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?DeleteLinkResponseBody $object + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?DeleteLinkResponseBody $object = null) { diff --git a/src/Models/Operations/DeleteLinkResponseBody.php b/src/Models/Operations/DeleteLinkResponseBody.php index 41c8160..46a72a3 100644 --- a/src/Models/Operations/DeleteLinkResponseBody.php +++ b/src/Models/Operations/DeleteLinkResponseBody.php @@ -22,6 +22,7 @@ class DeleteLinkResponseBody /** * @param string $id + * @phpstan-pure */ public function __construct(string $id) { diff --git a/src/Models/Operations/DeleteTagRequest.php b/src/Models/Operations/DeleteTagRequest.php index 7533199..e3b8728 100644 --- a/src/Models/Operations/DeleteTagRequest.php +++ b/src/Models/Operations/DeleteTagRequest.php @@ -21,6 +21,7 @@ class DeleteTagRequest /** * @param string $id + * @phpstan-pure */ public function __construct(string $id) { diff --git a/src/Models/Operations/DeleteTagResponse.php b/src/Models/Operations/DeleteTagResponse.php index 76e8af8..a1be777 100644 --- a/src/Models/Operations/DeleteTagResponse.php +++ b/src/Models/Operations/DeleteTagResponse.php @@ -44,6 +44,7 @@ class DeleteTagResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?DeleteTagResponseBody $object + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?DeleteTagResponseBody $object = null) { diff --git a/src/Models/Operations/DeleteTagResponseBody.php b/src/Models/Operations/DeleteTagResponseBody.php index 4b13039..08f733b 100644 --- a/src/Models/Operations/DeleteTagResponseBody.php +++ b/src/Models/Operations/DeleteTagResponseBody.php @@ -22,6 +22,7 @@ class DeleteTagResponseBody /** * @param string $id + * @phpstan-pure */ public function __construct(string $id) { diff --git a/src/Models/Operations/Discount.php b/src/Models/Operations/Discount.php index 0934d49..1c2fa8d 100644 --- a/src/Models/Operations/Discount.php +++ b/src/Models/Operations/Discount.php @@ -70,6 +70,7 @@ class Discount * @param ?string $couponTestId * @param ?float $duration * @param ?GetCustomersInterval $interval + * @phpstan-pure */ public function __construct(string $id, float $amount, Type $type, ?string $couponId = null, ?string $couponTestId = null, ?float $duration = null, ?GetCustomersInterval $interval = null) { diff --git a/src/Models/Operations/GetCustomerDiscount.php b/src/Models/Operations/GetCustomerDiscount.php index 054e9fa..220b9f1 100644 --- a/src/Models/Operations/GetCustomerDiscount.php +++ b/src/Models/Operations/GetCustomerDiscount.php @@ -70,6 +70,7 @@ class GetCustomerDiscount * @param ?string $couponTestId * @param ?float $duration * @param ?GetCustomerInterval $interval + * @phpstan-pure */ public function __construct(string $id, float $amount, GetCustomerType $type, ?string $couponId = null, ?string $couponTestId = null, ?float $duration = null, ?GetCustomerInterval $interval = null) { diff --git a/src/Models/Operations/GetCustomerLink.php b/src/Models/Operations/GetCustomerLink.php index 77851fe..4558017 100644 --- a/src/Models/Operations/GetCustomerLink.php +++ b/src/Models/Operations/GetCustomerLink.php @@ -57,6 +57,7 @@ class GetCustomerLink * @param string $key * @param string $shortLink * @param ?string $programId + * @phpstan-pure */ public function __construct(string $id, string $domain, string $key, string $shortLink, ?string $programId = null) { diff --git a/src/Models/Operations/GetCustomerPartner.php b/src/Models/Operations/GetCustomerPartner.php index c1e2fe0..86bb485 100644 --- a/src/Models/Operations/GetCustomerPartner.php +++ b/src/Models/Operations/GetCustomerPartner.php @@ -45,6 +45,7 @@ class GetCustomerPartner * @param string $name * @param string $email * @param ?string $image + * @phpstan-pure */ public function __construct(string $id, string $name, string $email, ?string $image = null) { diff --git a/src/Models/Operations/GetCustomerRequest.php b/src/Models/Operations/GetCustomerRequest.php index 6a4e07e..959f5cb 100644 --- a/src/Models/Operations/GetCustomerRequest.php +++ b/src/Models/Operations/GetCustomerRequest.php @@ -30,6 +30,7 @@ class GetCustomerRequest /** * @param string $id * @param ?bool $includeExpandedFields + * @phpstan-pure */ public function __construct(string $id, ?bool $includeExpandedFields = null) { diff --git a/src/Models/Operations/GetCustomerResponse.php b/src/Models/Operations/GetCustomerResponse.php index 7110e88..e91c56f 100644 --- a/src/Models/Operations/GetCustomerResponse.php +++ b/src/Models/Operations/GetCustomerResponse.php @@ -44,6 +44,7 @@ class GetCustomerResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?GetCustomerResponseBody $object + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?GetCustomerResponseBody $object = null) { diff --git a/src/Models/Operations/GetCustomerResponseBody.php b/src/Models/Operations/GetCustomerResponseBody.php index adb953a..daa7ee6 100644 --- a/src/Models/Operations/GetCustomerResponseBody.php +++ b/src/Models/Operations/GetCustomerResponseBody.php @@ -109,6 +109,7 @@ class GetCustomerResponseBody * @param ?GetCustomerLink $link * @param ?GetCustomerPartner $partner * @param ?GetCustomerDiscount $discount + * @phpstan-pure */ public function __construct(string $id, string $externalId, string $name, string $createdAt, ?string $email = null, ?string $avatar = null, ?string $country = null, ?GetCustomerLink $link = null, ?GetCustomerPartner $partner = null, ?GetCustomerDiscount $discount = null) { diff --git a/src/Models/Operations/GetCustomersRequest.php b/src/Models/Operations/GetCustomersRequest.php index f9f18bf..411ea36 100644 --- a/src/Models/Operations/GetCustomersRequest.php +++ b/src/Models/Operations/GetCustomersRequest.php @@ -39,6 +39,7 @@ class GetCustomersRequest * @param ?string $email * @param ?string $externalId * @param ?bool $includeExpandedFields + * @phpstan-pure */ public function __construct(?string $email = null, ?string $externalId = null, ?bool $includeExpandedFields = null) { diff --git a/src/Models/Operations/GetCustomersResponse.php b/src/Models/Operations/GetCustomersResponse.php index 23cfcc6..1bc3d56 100644 --- a/src/Models/Operations/GetCustomersResponse.php +++ b/src/Models/Operations/GetCustomersResponse.php @@ -44,6 +44,7 @@ class GetCustomersResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?array $responseBodies + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $responseBodies = null) { diff --git a/src/Models/Operations/GetCustomersResponseBody.php b/src/Models/Operations/GetCustomersResponseBody.php index 09d34a3..e110ac9 100644 --- a/src/Models/Operations/GetCustomersResponseBody.php +++ b/src/Models/Operations/GetCustomersResponseBody.php @@ -108,6 +108,7 @@ class GetCustomersResponseBody * @param ?Link $link * @param ?Partner $partner * @param ?Discount $discount + * @phpstan-pure */ public function __construct(string $id, string $externalId, string $name, string $createdAt, ?string $email = null, ?string $avatar = null, ?string $country = null, ?Link $link = null, ?Partner $partner = null, ?Discount $discount = null) { diff --git a/src/Models/Operations/GetLinkInfoRequest.php b/src/Models/Operations/GetLinkInfoRequest.php index 2ab32c8..dd96e99 100644 --- a/src/Models/Operations/GetLinkInfoRequest.php +++ b/src/Models/Operations/GetLinkInfoRequest.php @@ -47,6 +47,7 @@ class GetLinkInfoRequest * @param ?string $key * @param ?string $linkId * @param ?string $externalId + * @phpstan-pure */ public function __construct(?string $domain = null, ?string $key = null, ?string $linkId = null, ?string $externalId = null) { diff --git a/src/Models/Operations/GetLinkInfoResponse.php b/src/Models/Operations/GetLinkInfoResponse.php index 0bd022e..11e91c4 100644 --- a/src/Models/Operations/GetLinkInfoResponse.php +++ b/src/Models/Operations/GetLinkInfoResponse.php @@ -44,6 +44,7 @@ class GetLinkInfoResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\LinkSchema $linkSchema + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\LinkSchema $linkSchema = null) { diff --git a/src/Models/Operations/GetLinksCountRequest.php b/src/Models/Operations/GetLinksCountRequest.php index 5a42eb7..0e3363b 100644 --- a/src/Models/Operations/GetLinksCountRequest.php +++ b/src/Models/Operations/GetLinksCountRequest.php @@ -102,6 +102,7 @@ class GetLinksCountRequest * @param ?bool $showArchived * @param ?bool $withTags * @param One|Two|Three|null $groupBy + * @phpstan-pure */ public function __construct(?string $domain = null, ?string $tagId = null, string|array|null $tagIds = null, string|array|null $tagNames = null, ?string $search = null, ?string $userId = null, ?string $tenantId = null, One|Two|Three|null $groupBy = null, ?bool $showArchived = true, ?bool $withTags = true) { diff --git a/src/Models/Operations/GetLinksCountResponse.php b/src/Models/Operations/GetLinksCountResponse.php index 4e69b05..16c196d 100644 --- a/src/Models/Operations/GetLinksCountResponse.php +++ b/src/Models/Operations/GetLinksCountResponse.php @@ -44,6 +44,7 @@ class GetLinksCountResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?float $number + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?float $number = null) { diff --git a/src/Models/Operations/GetLinksRequest.php b/src/Models/Operations/GetLinksRequest.php index b626664..24813a9 100644 --- a/src/Models/Operations/GetLinksRequest.php +++ b/src/Models/Operations/GetLinksRequest.php @@ -138,6 +138,7 @@ class GetLinksRequest * @param ?Sort $sort * @param ?float $page * @param ?float $pageSize + * @phpstan-pure */ public function __construct(?string $domain = null, ?string $tagId = null, string|array|null $tagIds = null, string|array|null $tagNames = null, ?string $search = null, ?string $userId = null, ?string $tenantId = null, ?bool $showArchived = true, ?bool $withTags = true, ?SortBy $sortBy = SortBy::CreatedAt, ?SortOrder $sortOrder = SortOrder::Desc, ?Sort $sort = Sort::CreatedAt, ?float $page = 1, ?float $pageSize = 100) { diff --git a/src/Models/Operations/GetLinksResponse.php b/src/Models/Operations/GetLinksResponse.php index b09843c..b08d75d 100644 --- a/src/Models/Operations/GetLinksResponse.php +++ b/src/Models/Operations/GetLinksResponse.php @@ -48,6 +48,7 @@ class GetLinksResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?array $linkSchemas + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $linkSchemas = null) { diff --git a/src/Models/Operations/GetMetatagsRequest.php b/src/Models/Operations/GetMetatagsRequest.php index 0689c2b..d6abf92 100644 --- a/src/Models/Operations/GetMetatagsRequest.php +++ b/src/Models/Operations/GetMetatagsRequest.php @@ -21,6 +21,7 @@ class GetMetatagsRequest /** * @param string $url + * @phpstan-pure */ public function __construct(string $url) { diff --git a/src/Models/Operations/GetMetatagsResponse.php b/src/Models/Operations/GetMetatagsResponse.php index 8a47ea7..1ccf083 100644 --- a/src/Models/Operations/GetMetatagsResponse.php +++ b/src/Models/Operations/GetMetatagsResponse.php @@ -44,6 +44,7 @@ class GetMetatagsResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?GetMetatagsResponseBody $object + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?GetMetatagsResponseBody $object = null) { diff --git a/src/Models/Operations/GetMetatagsResponseBody.php b/src/Models/Operations/GetMetatagsResponseBody.php index d46462e..cbdad5e 100644 --- a/src/Models/Operations/GetMetatagsResponseBody.php +++ b/src/Models/Operations/GetMetatagsResponseBody.php @@ -40,6 +40,7 @@ class GetMetatagsResponseBody * @param ?string $title * @param ?string $description * @param ?string $image + * @phpstan-pure */ public function __construct(?string $title = null, ?string $description = null, ?string $image = null) { diff --git a/src/Models/Operations/GetQRCodeRequest.php b/src/Models/Operations/GetQRCodeRequest.php index 9f8d794..7fe0212 100644 --- a/src/Models/Operations/GetQRCodeRequest.php +++ b/src/Models/Operations/GetQRCodeRequest.php @@ -93,6 +93,7 @@ class GetQRCodeRequest * @param ?bool $hideLogo * @param ?float $margin * @param ?bool $includeMargin + * @phpstan-pure */ public function __construct(string $url, ?string $logo = null, ?float $size = 600, ?Level $level = Level::L, ?string $fgColor = '#000000', ?string $bgColor = '#FFFFFF', ?bool $hideLogo = true, ?float $margin = 2, ?bool $includeMargin = true) { diff --git a/src/Models/Operations/GetQRCodeResponse.php b/src/Models/Operations/GetQRCodeResponse.php index a71abc4..9187200 100644 --- a/src/Models/Operations/GetQRCodeResponse.php +++ b/src/Models/Operations/GetQRCodeResponse.php @@ -44,6 +44,7 @@ class GetQRCodeResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?string $res + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?string $res = null) { diff --git a/src/Models/Operations/GetTagsRequest.php b/src/Models/Operations/GetTagsRequest.php index 4f8c0fc..d33e5e8 100644 --- a/src/Models/Operations/GetTagsRequest.php +++ b/src/Models/Operations/GetTagsRequest.php @@ -66,6 +66,7 @@ class GetTagsRequest * @param string|array|null $ids * @param ?float $page * @param ?float $pageSize + * @phpstan-pure */ public function __construct(?string $search = null, string|array|null $ids = null, ?GetTagsQueryParamSortBy $sortBy = GetTagsQueryParamSortBy::Name, ?GetTagsQueryParamSortOrder $sortOrder = GetTagsQueryParamSortOrder::Asc, ?float $page = 1, ?float $pageSize = 100) { diff --git a/src/Models/Operations/GetTagsResponse.php b/src/Models/Operations/GetTagsResponse.php index 464b013..2184e23 100644 --- a/src/Models/Operations/GetTagsResponse.php +++ b/src/Models/Operations/GetTagsResponse.php @@ -44,6 +44,7 @@ class GetTagsResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?array $tagSchemas + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $tagSchemas = null) { diff --git a/src/Models/Operations/GetWorkspaceRequest.php b/src/Models/Operations/GetWorkspaceRequest.php index 0cc9abf..0e8049c 100644 --- a/src/Models/Operations/GetWorkspaceRequest.php +++ b/src/Models/Operations/GetWorkspaceRequest.php @@ -21,6 +21,7 @@ class GetWorkspaceRequest /** * @param string $idOrSlug + * @phpstan-pure */ public function __construct(string $idOrSlug) { diff --git a/src/Models/Operations/GetWorkspaceResponse.php b/src/Models/Operations/GetWorkspaceResponse.php index 290fa2f..fd0264c 100644 --- a/src/Models/Operations/GetWorkspaceResponse.php +++ b/src/Models/Operations/GetWorkspaceResponse.php @@ -44,6 +44,7 @@ class GetWorkspaceResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\WorkspaceSchema $workspaceSchema + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\WorkspaceSchema $workspaceSchema = null) { diff --git a/src/Models/Operations/Link.php b/src/Models/Operations/Link.php index f336790..2c7da38 100644 --- a/src/Models/Operations/Link.php +++ b/src/Models/Operations/Link.php @@ -57,6 +57,7 @@ class Link * @param string $key * @param string $shortLink * @param ?string $programId + * @phpstan-pure */ public function __construct(string $id, string $domain, string $key, string $shortLink, ?string $programId = null) { diff --git a/src/Models/Operations/LinkProps.php b/src/Models/Operations/LinkProps.php index c601b01..bf7fb3d 100644 --- a/src/Models/Operations/LinkProps.php +++ b/src/Models/Operations/LinkProps.php @@ -275,6 +275,7 @@ class LinkProps * @param ?string $utmTerm * @param ?string $utmContent * @param ?string $ref + * @phpstan-pure */ public function __construct(?string $prefix = null, ?bool $archived = null, string|array|null $tagIds = null, string|array|null $tagNames = null, ?bool $proxy = null, ?bool $rewrite = null, ?bool $doIndex = null, ?string $externalId = null, ?string $tenantId = null, ?string $partnerId = null, ?string $comments = null, ?string $expiresAt = null, ?string $expiredUrl = null, ?string $password = null, ?string $title = null, ?string $description = null, ?string $image = null, ?string $video = null, ?string $ios = null, ?string $android = null, ?string $utmSource = null, ?string $utmMedium = null, ?string $utmCampaign = null, ?string $utmTerm = null, ?string $utmContent = null, ?string $ref = null) { diff --git a/src/Models/Operations/Links.php b/src/Models/Operations/Links.php index 2c18b48..e530ead 100644 --- a/src/Models/Operations/Links.php +++ b/src/Models/Operations/Links.php @@ -97,6 +97,7 @@ class Links * @param ?float $leads * @param ?float $sales * @param ?float $saleAmount + * @phpstan-pure */ public function __construct(string $id, string $domain, string $key, string $shortLink, string $url, ?float $clicks = 0, ?float $leads = 0, ?float $sales = 0, ?float $saleAmount = 0) { diff --git a/src/Models/Operations/ListDomainsRequest.php b/src/Models/Operations/ListDomainsRequest.php index 49ad686..d7df973 100644 --- a/src/Models/Operations/ListDomainsRequest.php +++ b/src/Models/Operations/ListDomainsRequest.php @@ -48,6 +48,7 @@ class ListDomainsRequest * @param ?string $search * @param ?float $page * @param ?float $pageSize + * @phpstan-pure */ public function __construct(?string $search = null, ?bool $archived = true, ?float $page = 1, ?float $pageSize = 50) { diff --git a/src/Models/Operations/ListDomainsResponse.php b/src/Models/Operations/ListDomainsResponse.php index 83e3ad4..01ecd0b 100644 --- a/src/Models/Operations/ListDomainsResponse.php +++ b/src/Models/Operations/ListDomainsResponse.php @@ -48,6 +48,7 @@ class ListDomainsResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?array $domainSchemas + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $domainSchemas = null) { diff --git a/src/Models/Operations/ListEventsRequest.php b/src/Models/Operations/ListEventsRequest.php index ef30712..f12022d 100644 --- a/src/Models/Operations/ListEventsRequest.php +++ b/src/Models/Operations/ListEventsRequest.php @@ -344,6 +344,7 @@ class ListEventsRequest * @param ?string $utmCampaign * @param ?string $utmTerm * @param ?string $utmContent + * @phpstan-pure */ public function __construct(?string $domain = null, ?string $key = null, ?string $linkId = null, ?string $externalId = null, ?string $tenantId = null, ?string $programId = null, ?string $partnerId = null, ?string $start = null, ?string $end = null, ?Components\CountryCode $country = null, ?string $city = null, ?string $region = null, ?Components\ContinentCode $continent = null, ?string $device = null, ?string $browser = null, ?string $os = null, ?QueryParamTrigger $trigger = null, ?string $referer = null, ?string $refererUrl = null, ?string $url = null, ?string $tagId = null, string|array|null $tagIds = null, ?bool $qr = null, ?bool $root = null, ?string $utmSource = null, ?string $utmMedium = null, ?string $utmCampaign = null, ?string $utmTerm = null, ?string $utmContent = null, ?QueryParamEvent $event = QueryParamEvent::Clicks, ?QueryParamInterval $interval = QueryParamInterval::TwentyFourh, ?string $timezone = 'UTC', ?float $page = 1, ?float $limit = 100, ?QueryParamSortOrder $sortOrder = QueryParamSortOrder::Desc, ?QueryParamSortBy $sortBy = QueryParamSortBy::Timestamp, ?Order $order = Order::Desc) { diff --git a/src/Models/Operations/ListEventsResponse.php b/src/Models/Operations/ListEventsResponse.php index d296743..1da6231 100644 --- a/src/Models/Operations/ListEventsResponse.php +++ b/src/Models/Operations/ListEventsResponse.php @@ -44,6 +44,7 @@ class ListEventsResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param array|array|array|null $oneOf + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?array $oneOf = null) { diff --git a/src/Models/Operations/Partner.php b/src/Models/Operations/Partner.php index 9c28a20..1f9e58c 100644 --- a/src/Models/Operations/Partner.php +++ b/src/Models/Operations/Partner.php @@ -45,6 +45,7 @@ class Partner * @param string $name * @param string $email * @param ?string $image + * @phpstan-pure */ public function __construct(string $id, string $name, string $email, ?string $image = null) { diff --git a/src/Models/Operations/RequestBody.php b/src/Models/Operations/RequestBody.php index eece51e..6ee5b00 100644 --- a/src/Models/Operations/RequestBody.php +++ b/src/Models/Operations/RequestBody.php @@ -367,6 +367,7 @@ class RequestBody * @param ?string $utmContent * @param ?string $ref * @param ?array $webhookIds + * @phpstan-pure */ public function __construct(string $url, ?string $domain = null, ?string $key = null, ?string $prefix = null, ?bool $trackConversion = null, ?bool $archived = null, ?bool $publicStats = null, string|array|null $tagIds = null, string|array|null $tagNames = null, ?bool $proxy = null, ?bool $rewrite = null, ?bool $doIndex = null, ?string $externalId = null, ?string $tenantId = null, ?string $programId = null, ?string $partnerId = null, ?string $tagId = null, ?string $comments = null, ?string $expiresAt = null, ?string $expiredUrl = null, ?string $password = null, ?string $title = null, ?string $description = null, ?string $image = null, ?string $video = null, ?string $ios = null, ?string $android = null, ?Components\LinkGeoTargeting $geo = null, ?string $utmSource = null, ?string $utmMedium = null, ?string $utmCampaign = null, ?string $utmTerm = null, ?string $utmContent = null, ?string $ref = null, ?array $webhookIds = null) { diff --git a/src/Models/Operations/RetrieveAnalyticsRequest.php b/src/Models/Operations/RetrieveAnalyticsRequest.php index b88107b..1e1028a 100644 --- a/src/Models/Operations/RetrieveAnalyticsRequest.php +++ b/src/Models/Operations/RetrieveAnalyticsRequest.php @@ -310,6 +310,7 @@ class RetrieveAnalyticsRequest * @param ?string $utmCampaign * @param ?string $utmTerm * @param ?string $utmContent + * @phpstan-pure */ public function __construct(?string $domain = null, ?string $key = null, ?string $linkId = null, ?string $externalId = null, ?string $tenantId = null, ?string $programId = null, ?string $partnerId = null, ?Interval $interval = null, ?string $start = null, ?string $end = null, ?Components\CountryCode $country = null, ?string $city = null, ?string $region = null, ?Components\ContinentCode $continent = null, ?string $device = null, ?string $browser = null, ?string $os = null, ?Trigger $trigger = null, ?string $referer = null, ?string $refererUrl = null, ?string $url = null, ?string $tagId = null, string|array|null $tagIds = null, ?bool $qr = null, ?bool $root = null, ?string $utmSource = null, ?string $utmMedium = null, ?string $utmCampaign = null, ?string $utmTerm = null, ?string $utmContent = null, ?Event $event = Event::Clicks, ?QueryParamGroupBy $groupBy = QueryParamGroupBy::Count, ?string $timezone = 'UTC') { diff --git a/src/Models/Operations/RetrieveAnalyticsResponse.php b/src/Models/Operations/RetrieveAnalyticsResponse.php index 19e7ac1..33c9454 100644 --- a/src/Models/Operations/RetrieveAnalyticsResponse.php +++ b/src/Models/Operations/RetrieveAnalyticsResponse.php @@ -44,6 +44,7 @@ class RetrieveAnalyticsResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param Components\AnalyticsCount|array|array|array|array|array|array|array|array|array|array|array|array|null $oneOf + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, Components\AnalyticsCount|array|null $oneOf = null) { diff --git a/src/Models/Operations/Sale.php b/src/Models/Operations/Sale.php index 600a23c..65ee10e 100644 --- a/src/Models/Operations/Sale.php +++ b/src/Models/Operations/Sale.php @@ -54,6 +54,7 @@ class Sale * @param string $paymentProcessor * @param ?string $invoiceId * @param ?array $metadata + * @phpstan-pure */ public function __construct(float $amount, string $currency, string $paymentProcessor, ?string $invoiceId = null, ?array $metadata = null) { diff --git a/src/Models/Operations/TrackLeadRequestBody.php b/src/Models/Operations/TrackLeadRequestBody.php index 6a093bb..b167109 100644 --- a/src/Models/Operations/TrackLeadRequestBody.php +++ b/src/Models/Operations/TrackLeadRequestBody.php @@ -92,6 +92,7 @@ class TrackLeadRequestBody * @param ?string $customerEmail * @param ?string $customerAvatar * @param ?array $metadata + * @phpstan-pure */ public function __construct(string $clickId, string $eventName, ?array $metadata = null, ?string $externalId = '', ?string $customerId = null, ?string $customerName = null, ?string $customerEmail = null, ?string $customerAvatar = null) { diff --git a/src/Models/Operations/TrackLeadResponse.php b/src/Models/Operations/TrackLeadResponse.php index acfba14..93eaf96 100644 --- a/src/Models/Operations/TrackLeadResponse.php +++ b/src/Models/Operations/TrackLeadResponse.php @@ -44,6 +44,7 @@ class TrackLeadResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?TrackLeadResponseBody $object + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?TrackLeadResponseBody $object = null) { diff --git a/src/Models/Operations/TrackLeadResponseBody.php b/src/Models/Operations/TrackLeadResponseBody.php index b4c6e2a..f02464c 100644 --- a/src/Models/Operations/TrackLeadResponseBody.php +++ b/src/Models/Operations/TrackLeadResponseBody.php @@ -31,6 +31,7 @@ class TrackLeadResponseBody /** * @param Click $click * @param Customer $customer + * @phpstan-pure */ public function __construct(Click $click, Customer $customer) { diff --git a/src/Models/Operations/TrackSaleCustomer.php b/src/Models/Operations/TrackSaleCustomer.php index 9529078..702a400 100644 --- a/src/Models/Operations/TrackSaleCustomer.php +++ b/src/Models/Operations/TrackSaleCustomer.php @@ -52,6 +52,7 @@ class TrackSaleCustomer * @param ?string $email * @param ?string $avatar * @param ?string $externalId + * @phpstan-pure */ public function __construct(string $id, ?string $name = null, ?string $email = null, ?string $avatar = null, ?string $externalId = null) { diff --git a/src/Models/Operations/TrackSaleRequestBody.php b/src/Models/Operations/TrackSaleRequestBody.php index 1a7cadb..d84ddd0 100644 --- a/src/Models/Operations/TrackSaleRequestBody.php +++ b/src/Models/Operations/TrackSaleRequestBody.php @@ -93,6 +93,7 @@ class TrackSaleRequestBody * @param ?string $customerId * @param ?string $invoiceId * @param ?array $metadata + * @phpstan-pure */ public function __construct(int $amount, PaymentProcessor $paymentProcessor, ?array $metadata = null, ?string $externalId = '', ?string $eventName = 'Purchase', ?string $currency = 'usd', ?string $customerId = null, ?string $invoiceId = null) { diff --git a/src/Models/Operations/TrackSaleResponse.php b/src/Models/Operations/TrackSaleResponse.php index 0eae487..3737977 100644 --- a/src/Models/Operations/TrackSaleResponse.php +++ b/src/Models/Operations/TrackSaleResponse.php @@ -44,6 +44,7 @@ class TrackSaleResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?TrackSaleResponseBody $object + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?TrackSaleResponseBody $object = null) { diff --git a/src/Models/Operations/TrackSaleResponseBody.php b/src/Models/Operations/TrackSaleResponseBody.php index bc26dd3..af5c212 100644 --- a/src/Models/Operations/TrackSaleResponseBody.php +++ b/src/Models/Operations/TrackSaleResponseBody.php @@ -39,6 +39,7 @@ class TrackSaleResponseBody * @param string $eventName * @param ?TrackSaleCustomer $customer * @param ?Sale $sale + * @phpstan-pure */ public function __construct(string $eventName, ?TrackSaleCustomer $customer = null, ?Sale $sale = null) { diff --git a/src/Models/Operations/UpdateCustomerDiscount.php b/src/Models/Operations/UpdateCustomerDiscount.php index da9f8bd..761618d 100644 --- a/src/Models/Operations/UpdateCustomerDiscount.php +++ b/src/Models/Operations/UpdateCustomerDiscount.php @@ -70,6 +70,7 @@ class UpdateCustomerDiscount * @param ?string $couponTestId * @param ?float $duration * @param ?UpdateCustomerInterval $interval + * @phpstan-pure */ public function __construct(string $id, float $amount, UpdateCustomerType $type, ?string $couponId = null, ?string $couponTestId = null, ?float $duration = null, ?UpdateCustomerInterval $interval = null) { diff --git a/src/Models/Operations/UpdateCustomerLink.php b/src/Models/Operations/UpdateCustomerLink.php index ebe43f1..59db6b1 100644 --- a/src/Models/Operations/UpdateCustomerLink.php +++ b/src/Models/Operations/UpdateCustomerLink.php @@ -57,6 +57,7 @@ class UpdateCustomerLink * @param string $key * @param string $shortLink * @param ?string $programId + * @phpstan-pure */ public function __construct(string $id, string $domain, string $key, string $shortLink, ?string $programId = null) { diff --git a/src/Models/Operations/UpdateCustomerPartner.php b/src/Models/Operations/UpdateCustomerPartner.php index 0069d68..522f030 100644 --- a/src/Models/Operations/UpdateCustomerPartner.php +++ b/src/Models/Operations/UpdateCustomerPartner.php @@ -45,6 +45,7 @@ class UpdateCustomerPartner * @param string $name * @param string $email * @param ?string $image + * @phpstan-pure */ public function __construct(string $id, string $name, string $email, ?string $image = null) { diff --git a/src/Models/Operations/UpdateCustomerRequest.php b/src/Models/Operations/UpdateCustomerRequest.php index 14baeb7..0c2751e 100644 --- a/src/Models/Operations/UpdateCustomerRequest.php +++ b/src/Models/Operations/UpdateCustomerRequest.php @@ -38,6 +38,7 @@ class UpdateCustomerRequest * @param string $id * @param ?bool $includeExpandedFields * @param ?UpdateCustomerRequestBody $requestBody + * @phpstan-pure */ public function __construct(string $id, ?bool $includeExpandedFields = null, ?UpdateCustomerRequestBody $requestBody = null) { diff --git a/src/Models/Operations/UpdateCustomerRequestBody.php b/src/Models/Operations/UpdateCustomerRequestBody.php index a7cc4e6..ab822b1 100644 --- a/src/Models/Operations/UpdateCustomerRequestBody.php +++ b/src/Models/Operations/UpdateCustomerRequestBody.php @@ -52,6 +52,7 @@ class UpdateCustomerRequestBody * @param ?string $email * @param ?string $name * @param ?string $avatar + * @phpstan-pure */ public function __construct(?string $externalId = null, ?string $email = null, ?string $name = null, ?string $avatar = null) { diff --git a/src/Models/Operations/UpdateCustomerResponse.php b/src/Models/Operations/UpdateCustomerResponse.php index e3b7a9e..4bc34e6 100644 --- a/src/Models/Operations/UpdateCustomerResponse.php +++ b/src/Models/Operations/UpdateCustomerResponse.php @@ -44,6 +44,7 @@ class UpdateCustomerResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?UpdateCustomerResponseBody $object + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?UpdateCustomerResponseBody $object = null) { diff --git a/src/Models/Operations/UpdateCustomerResponseBody.php b/src/Models/Operations/UpdateCustomerResponseBody.php index 1d13a4a..cf37335 100644 --- a/src/Models/Operations/UpdateCustomerResponseBody.php +++ b/src/Models/Operations/UpdateCustomerResponseBody.php @@ -109,6 +109,7 @@ class UpdateCustomerResponseBody * @param ?UpdateCustomerLink $link * @param ?UpdateCustomerPartner $partner * @param ?UpdateCustomerDiscount $discount + * @phpstan-pure */ public function __construct(string $id, string $externalId, string $name, string $createdAt, ?string $email = null, ?string $avatar = null, ?string $country = null, ?UpdateCustomerLink $link = null, ?UpdateCustomerPartner $partner = null, ?UpdateCustomerDiscount $discount = null) { diff --git a/src/Models/Operations/UpdateDomainRequest.php b/src/Models/Operations/UpdateDomainRequest.php index 0099f15..d13bfc9 100644 --- a/src/Models/Operations/UpdateDomainRequest.php +++ b/src/Models/Operations/UpdateDomainRequest.php @@ -29,6 +29,7 @@ class UpdateDomainRequest /** * @param string $slug * @param ?UpdateDomainRequestBody $requestBody + * @phpstan-pure */ public function __construct(string $slug, ?UpdateDomainRequestBody $requestBody = null) { diff --git a/src/Models/Operations/UpdateDomainRequestBody.php b/src/Models/Operations/UpdateDomainRequestBody.php index d9bda27..2030d08 100644 --- a/src/Models/Operations/UpdateDomainRequestBody.php +++ b/src/Models/Operations/UpdateDomainRequestBody.php @@ -72,6 +72,7 @@ class UpdateDomainRequestBody * @param ?string $notFoundUrl * @param ?string $placeholder * @param ?string $logo + * @phpstan-pure */ public function __construct(?string $slug = null, ?string $expiredUrl = null, ?string $notFoundUrl = null, ?string $placeholder = null, ?string $logo = null, ?bool $archived = false) { diff --git a/src/Models/Operations/UpdateDomainResponse.php b/src/Models/Operations/UpdateDomainResponse.php index 242aee1..c516aa8 100644 --- a/src/Models/Operations/UpdateDomainResponse.php +++ b/src/Models/Operations/UpdateDomainResponse.php @@ -44,6 +44,7 @@ class UpdateDomainResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\DomainSchema $domainSchema + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\DomainSchema $domainSchema = null) { diff --git a/src/Models/Operations/UpdateLinkRequest.php b/src/Models/Operations/UpdateLinkRequest.php index e46f241..0c177d9 100644 --- a/src/Models/Operations/UpdateLinkRequest.php +++ b/src/Models/Operations/UpdateLinkRequest.php @@ -29,6 +29,7 @@ class UpdateLinkRequest /** * @param string $linkId * @param ?UpdateLinkRequestBody $requestBody + * @phpstan-pure */ public function __construct(string $linkId, ?UpdateLinkRequestBody $requestBody = null) { diff --git a/src/Models/Operations/UpdateLinkRequestBody.php b/src/Models/Operations/UpdateLinkRequestBody.php index 393d9eb..5c37e6d 100644 --- a/src/Models/Operations/UpdateLinkRequestBody.php +++ b/src/Models/Operations/UpdateLinkRequestBody.php @@ -368,6 +368,7 @@ class UpdateLinkRequestBody * @param ?string $utmContent * @param ?string $ref * @param ?array $webhookIds + * @phpstan-pure */ public function __construct(?string $url = null, ?string $domain = null, ?string $key = null, ?string $prefix = null, ?bool $trackConversion = null, ?bool $archived = null, ?bool $publicStats = null, string|array|null $tagIds = null, string|array|null $tagNames = null, ?bool $proxy = null, ?bool $rewrite = null, ?bool $doIndex = null, ?string $externalId = null, ?string $tenantId = null, ?string $programId = null, ?string $partnerId = null, ?string $tagId = null, ?string $comments = null, ?string $expiresAt = null, ?string $expiredUrl = null, ?string $password = null, ?string $title = null, ?string $description = null, ?string $image = null, ?string $video = null, ?string $ios = null, ?string $android = null, ?Components\LinkGeoTargeting $geo = null, ?string $utmSource = null, ?string $utmMedium = null, ?string $utmCampaign = null, ?string $utmTerm = null, ?string $utmContent = null, ?string $ref = null, ?array $webhookIds = null) { diff --git a/src/Models/Operations/UpdateLinkResponse.php b/src/Models/Operations/UpdateLinkResponse.php index e1da8e4..ffc01e2 100644 --- a/src/Models/Operations/UpdateLinkResponse.php +++ b/src/Models/Operations/UpdateLinkResponse.php @@ -44,6 +44,7 @@ class UpdateLinkResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\LinkSchema $linkSchema + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\LinkSchema $linkSchema = null) { diff --git a/src/Models/Operations/UpdateTagRequest.php b/src/Models/Operations/UpdateTagRequest.php index df82872..b648661 100644 --- a/src/Models/Operations/UpdateTagRequest.php +++ b/src/Models/Operations/UpdateTagRequest.php @@ -29,6 +29,7 @@ class UpdateTagRequest /** * @param string $id * @param ?UpdateTagRequestBody $requestBody + * @phpstan-pure */ public function __construct(string $id, ?UpdateTagRequestBody $requestBody = null) { diff --git a/src/Models/Operations/UpdateTagRequestBody.php b/src/Models/Operations/UpdateTagRequestBody.php index 7ce058d..a73b7dd 100644 --- a/src/Models/Operations/UpdateTagRequestBody.php +++ b/src/Models/Operations/UpdateTagRequestBody.php @@ -44,6 +44,7 @@ class UpdateTagRequestBody * @param ?string $name * @param ?UpdateTagColor $color * @param ?string $tag + * @phpstan-pure */ public function __construct(?string $name = null, ?UpdateTagColor $color = null, ?string $tag = null) { diff --git a/src/Models/Operations/UpdateTagResponse.php b/src/Models/Operations/UpdateTagResponse.php index a4d8a56..83c73f5 100644 --- a/src/Models/Operations/UpdateTagResponse.php +++ b/src/Models/Operations/UpdateTagResponse.php @@ -44,6 +44,7 @@ class UpdateTagResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\TagSchema $tagSchema + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\TagSchema $tagSchema = null) { diff --git a/src/Models/Operations/UpdateWorkspaceRequest.php b/src/Models/Operations/UpdateWorkspaceRequest.php index 475b03f..6d6a850 100644 --- a/src/Models/Operations/UpdateWorkspaceRequest.php +++ b/src/Models/Operations/UpdateWorkspaceRequest.php @@ -29,6 +29,7 @@ class UpdateWorkspaceRequest /** * @param string $idOrSlug * @param ?UpdateWorkspaceRequestBody $requestBody + * @phpstan-pure */ public function __construct(string $idOrSlug, ?UpdateWorkspaceRequestBody $requestBody = null) { diff --git a/src/Models/Operations/UpdateWorkspaceRequestBody.php b/src/Models/Operations/UpdateWorkspaceRequestBody.php index 04e530c..b863537 100644 --- a/src/Models/Operations/UpdateWorkspaceRequestBody.php +++ b/src/Models/Operations/UpdateWorkspaceRequestBody.php @@ -59,6 +59,7 @@ class UpdateWorkspaceRequestBody * @param ?string $logo * @param ?bool $conversionEnabled * @param ?array $allowedHostnames + * @phpstan-pure */ public function __construct(?string $name = null, ?string $slug = null, ?string $logo = null, ?bool $conversionEnabled = null, ?array $allowedHostnames = null) { diff --git a/src/Models/Operations/UpdateWorkspaceResponse.php b/src/Models/Operations/UpdateWorkspaceResponse.php index acc93a6..35cfc4a 100644 --- a/src/Models/Operations/UpdateWorkspaceResponse.php +++ b/src/Models/Operations/UpdateWorkspaceResponse.php @@ -44,6 +44,7 @@ class UpdateWorkspaceResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\WorkspaceSchema $workspaceSchema + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\WorkspaceSchema $workspaceSchema = null) { diff --git a/src/Models/Operations/UpsertLinkRequestBody.php b/src/Models/Operations/UpsertLinkRequestBody.php index 8cfed9a..145600e 100644 --- a/src/Models/Operations/UpsertLinkRequestBody.php +++ b/src/Models/Operations/UpsertLinkRequestBody.php @@ -367,6 +367,7 @@ class UpsertLinkRequestBody * @param ?string $utmContent * @param ?string $ref * @param ?array $webhookIds + * @phpstan-pure */ public function __construct(string $url, ?string $domain = null, ?string $key = null, ?string $prefix = null, ?bool $trackConversion = null, ?bool $archived = null, ?bool $publicStats = null, string|array|null $tagIds = null, string|array|null $tagNames = null, ?bool $proxy = null, ?bool $rewrite = null, ?bool $doIndex = null, ?string $externalId = null, ?string $tenantId = null, ?string $programId = null, ?string $partnerId = null, ?string $tagId = null, ?string $comments = null, ?string $expiresAt = null, ?string $expiredUrl = null, ?string $password = null, ?string $title = null, ?string $description = null, ?string $image = null, ?string $video = null, ?string $ios = null, ?string $android = null, ?Components\LinkGeoTargeting $geo = null, ?string $utmSource = null, ?string $utmMedium = null, ?string $utmCampaign = null, ?string $utmTerm = null, ?string $utmContent = null, ?string $ref = null, ?array $webhookIds = null) { diff --git a/src/Models/Operations/UpsertLinkResponse.php b/src/Models/Operations/UpsertLinkResponse.php index 3f9a7c5..5ee086f 100644 --- a/src/Models/Operations/UpsertLinkResponse.php +++ b/src/Models/Operations/UpsertLinkResponse.php @@ -44,6 +44,7 @@ class UpsertLinkResponse * @param int $statusCode * @param \Psr\Http\Message\ResponseInterface $rawResponse * @param ?Components\LinkSchema $linkSchema + * @phpstan-pure */ public function __construct(string $contentType, int $statusCode, \Psr\Http\Message\ResponseInterface $rawResponse, ?Components\LinkSchema $linkSchema = null) { diff --git a/src/SDKConfiguration.php b/src/SDKConfiguration.php index 690bebf..9c81df8 100644 --- a/src/SDKConfiguration.php +++ b/src/SDKConfiguration.php @@ -14,9 +14,7 @@ class SDKConfiguration public ?\GuzzleHttp\ClientInterface $client = null; public Hooks\SDKHooks $hooks; - public ?Models\Components\Security $security = null; - - /** @var pure-Closure(): string */ + /** @var ?pure-Closure(): Models\Components\Security */ public ?\Closure $securitySource = null; public string $serverUrl = ''; @@ -26,11 +24,11 @@ class SDKConfiguration public string $openapiDocVersion = '0.0.1'; - public string $sdkVersion = '0.11.22'; + public string $sdkVersion = '0.11.23'; - public string $genVersion = '2.502.0'; + public string $genVersion = '2.503.2'; - public string $userAgent = 'speakeasy-sdk/php 0.11.22 2.502.0 0.0.1 dub/dub-php'; + public string $userAgent = 'speakeasy-sdk/php 0.11.23 2.503.2 0.0.1 dub/dub-php'; public ?RetryConfig $retryConfig = null; @@ -54,20 +52,12 @@ public function getServerUrl(): string } public function hasSecurity(): bool { - return $this->security !== null || $this->securitySource !== null; + return $this->securitySource !== null; } public function getSecurity(): ?Models\Components\Security { - if ($this->securitySource !== null) { - $security = new Models\Components\Security( - token: $this->securitySource->call($this) - ); - - return $security; - } else { - return $this->security; - } + return $this->securitySource->call($this); } /** diff --git a/src/Utils/UnionHandler.php b/src/Utils/UnionHandler.php index ff3b7b2..2dd052b 100644 --- a/src/Utils/UnionHandler.php +++ b/src/Utils/UnionHandler.php @@ -72,26 +72,11 @@ public function serializeUnion( if ($this->isPrimitiveType(gettype($data))) { return $this->matchSimpleType($data, $type, $context); } else { - if (is_array($data)) { - if (array_is_list($data) && ! empty($data)) { - $innerType = gettype($data[0]); - if ($innerType === 'object') { - $innerType = get_class($data[0]); - } - $resolvedType = [ - 'name' => 'array', - 'params' => ['name' => $innerType, 'params' => []], - ]; + if (is_array($data) && ! empty($data)) { + if (array_is_list($data)) { + return $this->matchArrayType($data, $type, $context); } else { - $keyType = gettype(array_key_first($data)); - $valueType = gettype($data[array_key_first($data)]); - $resolvedType = [ - 'name' => 'array', - 'params' => [ - ['name' => $keyType, 'params' => []], - ['name' => $valueType, 'params' => []], - ], - ]; + return $this->matchAssociativeArrayType($data, $type, $context); } } else { $resolvedType = null; @@ -112,7 +97,6 @@ public function serializeUnion( return $context->getNavigator()->accept($data, $resolvedType); } } - /** * @param DeserializationVisitorInterface $visitor * @param mixed $data @@ -234,6 +218,85 @@ private function matchSimpleType(mixed $data, array $type, Context $context): mi return null; } + /** + * @param mixed $data + * @param array $type + * @param Context $context + */ + private function matchArrayType(mixed $data, array $type, Context $context): mixed + { + $dataType = gettype($data[0]); + if ($dataType === 'object') { + $dataType = get_class($data[0]); + } + + foreach ($type['params'] as $possibleType) { + $isNotArray = $possibleType['name'] != 'array'; + $isNotListArray = $possibleType['name'] == 'array' && count($possibleType['params']) > 1 && $possibleType['params'][0]['name'] != 'integer'; + + if ($isNotArray || $isNotListArray) { + continue; + } else { + if (count($possibleType['params']) == 2) { + $possibleValueType = $possibleType['params'][1]['name']; + } else { + $possibleValueType = $possibleType['params'][0]['name']; + } + + if ($possibleValueType == 'mixed' || $possibleValueType == $dataType) { + return $context->getNavigator()->accept($data, $possibleType); + } + } + } + + $resolvedType = [ + 'name' => 'array', + 'params' => ['name' => $dataType, 'params' => []], + ]; + + return $context->getNavigator()->accept($data, $resolvedType); + } + + /** + * @param mixed $data + * @param array $type + * @param Context $context + */ + private function matchAssociativeArrayType(mixed $data, array $type, Context $context): mixed + { + $keyType = gettype(array_key_first($data)); + $value = $data[array_key_first($data)]; + $valueType = gettype($value); + foreach ($type['params'] as $possibleType) { + $isNotArray = $possibleType['name'] != 'array'; + $isNotAssociativeArray = $possibleType['name'] == 'array' && (count($possibleType['params']) < 2 || $possibleType['params'][0]['name'] != 'string'); + + if ($isNotArray || $isNotAssociativeArray) { + continue; + } else { + $possibleValueType = $possibleType['params'][1]['name']; + + if ($valueType == 'object') { + $valueType = get_class($value); + } + + if ($possibleValueType == 'mixed' || $possibleValueType == $valueType) { + return $context->getNavigator()->accept($data, $possibleType); + } + } + } + + $resolvedType = [ + 'name' => 'array', + 'params' => [ + ['name' => $keyType, 'params' => []], + ['name' => $valueType, 'params' => []], + ], + ]; + + return $context->getNavigator()->accept($data, $resolvedType); + } + /** * @param string $type * @return bool