diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 15485d3..0d13c17 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: 27a110fd093a3c1f50fb10b9b3565413 + docChecksum: e3442b7d8a069ceffe7996dbc51acd18 docVersion: 0.0.1 - speakeasyVersion: 1.493.2 - generationVersion: 2.512.4 - releaseVersion: 0.11.28 - configChecksum: 3e8757bfe402275d78a1cd41fcc1fd66 + speakeasyVersion: 1.497.0 + generationVersion: 2.517.3 + releaseVersion: 0.11.29 + configChecksum: a145b46bd55652a9d8b9e53429adc42a repoURL: https://github.com/dubinc/dub-php.git installationURL: https://github.com/dubinc/dub-php published: true @@ -24,7 +24,7 @@ features: includes: 2.81.1 methodArguments: 0.1.0 nameOverrides: 2.81.2 - nullables: 1.0.0 + nullables: 1.0.1 pagination: 0.1.3 responseFormat: 0.1.0 unions: 0.1.4 @@ -1070,7 +1070,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": "1762490401794", "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"}], "folderId": "", "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": "1727903213367", "updatedAt": "1739776841366", "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": "1738658757840"}, "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": "1751181755436", "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"}], "folderId": "", "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": "1738397479164", "updatedAt": "1739782562628", "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": "1722758423986"}, "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": "1762663204877", "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"}], "folderId": "", "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": "1728076016431", "updatedAt": "1739949644431", "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": "1738831560890"}, "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": "1751354558472", "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"}], "folderId": "", "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": "1738570282187", "updatedAt": "1739955365652", "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": "1722931227019"}, "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": @@ -1328,7 +1328,7 @@ examples: trackSale: speakeasy-default-track-sale: requestBody: - application/json: {"externalId": "", "customerId": null, "amount": 996500, "paymentProcessor": "paddle", "eventName": "Purchase", "invoiceId": null, "currency": "usd", "leadEventName": null} + application/json: {"externalId": "", "customerId": null, "amount": 996500, "paymentProcessor": "paddle", "eventName": "Purchase", "invoiceId": null, "currency": "usd", "leadEventName": "Cloned template 1481267"} responses: "200": application/json: {"eventName": "", "customer": {"id": "", "name": "", "email": "Muhammad0@hotmail.com", "avatar": "https://loremflickr.com/2579/465?lock=3083028689214487", "externalId": ""}, "sale": {"amount": 8968.61, "currency": "Saudi Riyal", "paymentProcessor": "", "invoiceId": "", "metadata": {"key": "", "key1": ""}}} diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 4c56816..1adce13 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -7,6 +7,7 @@ generation: useClassNamesForArrayFields: true fixes: nameResolutionDec2023: true + nameResolutionFeb2025: false parameterOrderingFeb2024: true requestResponseComponentNamesFeb2024: true securityFeb2025: false @@ -14,7 +15,7 @@ generation: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: false php: - version: 0.11.28 + version: 0.11.29 additionalDependencies: autoload: {} autoload-dev: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 7f97ddd..e5dcf48 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,21 @@ -speakeasyVersion: 1.493.2 +speakeasyVersion: 1.497.0 sources: dub: sourceNamespace: dub - sourceRevisionDigest: sha256:728f444e8d85a2d97225a4f7d8c07117ef7f5822fac2d8d5154ad01a6c689103 - sourceBlobDigest: sha256:a502a4b679d3c5b8c3643e9427ce1cc328fe7307b38d35e7135860a07dbe8d1c + sourceRevisionDigest: sha256:252367b18400a4cc867a11ab1f76f9c08e3a776622f16d225816665cbf92f4b4 + sourceBlobDigest: sha256:61e87736388f904908d95b70d0dc38fc3316c2072caa2962ae41aa2ac0512bb8 tags: - latest - - speakeasy-sdk-regen-1739837980 + - speakeasy-sdk-regen-1739924392 - 0.0.1 targets: my-first-target: source: dub sourceNamespace: dub - sourceRevisionDigest: sha256:728f444e8d85a2d97225a4f7d8c07117ef7f5822fac2d8d5154ad01a6c689103 - sourceBlobDigest: sha256:a502a4b679d3c5b8c3643e9427ce1cc328fe7307b38d35e7135860a07dbe8d1c + sourceRevisionDigest: sha256:252367b18400a4cc867a11ab1f76f9c08e3a776622f16d225816665cbf92f4b4 + sourceBlobDigest: sha256:61e87736388f904908d95b70d0dc38fc3316c2072caa2962ae41aa2ac0512bb8 codeSamplesNamespace: code-samples-php-my-first-target - codeSamplesRevisionDigest: sha256:c7de89cfcade09ea9da14294a4a2fccf7b393f3e9195e4da25048b8a54aa1efb + codeSamplesRevisionDigest: sha256:f95cde947c160476ab1d9147892432ab26629bc30b5dcd177138a21f2b01009b workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 1f8956e..50fabc8 100644 --- a/README.md +++ b/README.md @@ -319,6 +319,7 @@ declare(strict_types=1); require 'vendor/autoload.php'; use Dub; +use Dub\Models\Errors; use Dub\Models\Operations; $sdk = Dub\Dub::builder() @@ -384,7 +385,7 @@ try { ### Override Server URL Per-Client -The default server can also be overridden globally using the `setServerUrl(string $serverUrl)` builder method when initializing the SDK client instance. For example: +The default server can be overridden globally using the `setServerUrl(string $serverUrl)` builder method when initializing the SDK client instance. For example: ```php declare(strict_types=1); diff --git a/RELEASES.md b/RELEASES.md index 80d84f8..ad5204f 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -730,4 +730,14 @@ Based on: ### Generated - [php v0.11.28] . ### Releases -- [Composer v0.11.28] https://packagist.org/packages/dub/dub-php#v0.11.28 - . \ No newline at end of file +- [Composer v0.11.28] https://packagist.org/packages/dub/dub-php#v0.11.28 - . + +## 2025-02-20 00:19:25 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.497.0 (2.517.3) https://github.com/speakeasy-api/speakeasy +### Generated +- [php v0.11.29] . +### Releases +- [Composer v0.11.29] https://packagist.org/packages/dub/dub-php#v0.11.29 - . \ No newline at end of file diff --git a/docs/Models/Operations/TrackSaleRequestBody.md b/docs/Models/Operations/TrackSaleRequestBody.md index 58144e8..00f48f7 100644 --- a/docs/Models/Operations/TrackSaleRequestBody.md +++ b/docs/Models/Operations/TrackSaleRequestBody.md @@ -13,4 +13,4 @@ | ~~`customerId`~~ | *?string* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

This is the unique identifier for the customer in the client's app. This is used to track the customer's journey. | | | `invoiceId` | *?string* | :heavy_minus_sign: | The invoice ID of the sale. | | | `metadata` | array | :heavy_minus_sign: | Additional metadata to be stored with the sale event. | | -| `leadEventName` | *?string* | :heavy_minus_sign: | The name of the lead event that occurred before the sale. | | \ No newline at end of file +| `leadEventName` | *?string* | :heavy_minus_sign: | The name of the lead event that occurred before the sale (case-sensitive). | Cloned template 1481267 | \ No newline at end of file diff --git a/src/Models/Operations/TrackSaleRequestBody.php b/src/Models/Operations/TrackSaleRequestBody.php index a648dbe..9a5b4d0 100644 --- a/src/Models/Operations/TrackSaleRequestBody.php +++ b/src/Models/Operations/TrackSaleRequestBody.php @@ -85,7 +85,7 @@ class TrackSaleRequestBody public ?string $invoiceId = null; /** - * The name of the lead event that occurred before the sale. + * The name of the lead event that occurred before the sale (case-sensitive). * * @var ?string $leadEventName */ diff --git a/src/SDKConfiguration.php b/src/SDKConfiguration.php index 080037a..8e174f2 100644 --- a/src/SDKConfiguration.php +++ b/src/SDKConfiguration.php @@ -24,11 +24,11 @@ class SDKConfiguration public string $openapiDocVersion = '0.0.1'; - public string $sdkVersion = '0.11.28'; + public string $sdkVersion = '0.11.29'; - public string $genVersion = '2.512.4'; + public string $genVersion = '2.517.3'; - public string $userAgent = 'speakeasy-sdk/php 0.11.28 2.512.4 0.0.1 dub/dub-php'; + public string $userAgent = 'speakeasy-sdk/php 0.11.29 2.517.3 0.0.1 dub/dub-php'; public ?RetryConfig $retryConfig = null;