Skip to content

Commit d9f28be

Browse files
speakeasybotfrankie567
authored andcommitted
## Php SDK Changes:
* `polar->customers->list()`: `response.items[]` **Changed** (Breaking ⚠️) * `polar->benefit-grants->list()`: `response.items[]->customer` **Changed** (Breaking ⚠️) * `polar->customer_meters->get()`: `response.customer` **Changed** (Breaking ⚠️) * `polar->customer_meters->list()`: `response.items[]->customer` **Changed** (Breaking ⚠️) * `polar->organization_access_tokens->update()`: * `request.organizationAccessTokenUpdate->scopes[]->enum(metrics:write)` **Added** * `response.scopes[]->enum(metrics:write)` **Added** (Breaking ⚠️) * `polar->subscriptions->list()`: * `request` **Changed** * `response.items[]->customer` **Changed** (Breaking ⚠️) * `polar->subscriptions->create()`: `response.customer` **Changed** (Breaking ⚠️) * `polar->subscriptions->get()`: `response.customer` **Changed** (Breaking ⚠️) * `polar->subscriptions->revoke()`: `response.customer` **Changed** (Breaking ⚠️) * `polar->subscriptions->update()`: `response.customer` **Changed** (Breaking ⚠️) * `polar->oauth2->authorize()`: `response.union(user)->scopes[]->enum(metrics:write)` **Added** (Breaking ⚠️) * `polar->benefits->grants()`: `response.items[]->customer` **Changed** (Breaking ⚠️) * `polar->customers->create()`: * `request` **Changed** (Breaking ⚠️) * `response` **Changed** (Breaking ⚠️) * `polar->orders->list()`: `response.items[]->customer` **Changed** (Breaking ⚠️) * `polar->orders->get()`: `response.customer` **Changed** (Breaking ⚠️) * `polar->orders->update()`: `response.customer` **Changed** (Breaking ⚠️) * `polar->license_keys->list()`: `response.items[]->customer` **Changed** (Breaking ⚠️) * `polar->license_keys->get()`: `response.customer` **Changed** (Breaking ⚠️) * `polar->license_keys->update()`: `response.customer` **Changed** (Breaking ⚠️) * `polar->license_keys->getActivation()`: `response.licenseKey->customer` **Changed** (Breaking ⚠️) * `polar->license_keys->validate()`: `response.customer` **Changed** (Breaking ⚠️) * `polar->license_keys->activate()`: `response.licenseKey->customer` **Changed** (Breaking ⚠️) * `polar->organization_access_tokens->create()`: * `request->scopes[]->enum(metrics:write)` **Added** * `response.organizationAccessToken->scopes[]->enum(metrics:write)` **Added** (Breaking ⚠️) * `polar->organization_access_tokens->list()`: `response.items[]->scopes[]->enum(metrics:write)` **Added** (Breaking ⚠️) * `polar->customer_portal->benefitGrants->get()`: `response.union(CustomerBenefitGrantMeterCredit)->customer->email` **Changed** (Breaking ⚠️) * `polar->customers->update()`: `response` **Changed** (Breaking ⚠️) * `polar->customers->getExternal()`: `response` **Changed** (Breaking ⚠️) * `polar->customers->updateExternal()`: `response` **Changed** (Breaking ⚠️) * `polar->customers->getState()`: `response` **Changed** (Breaking ⚠️) * `polar->customers->getStateExternal()`: `response` **Changed** (Breaking ⚠️) * `polar->customer_portal->benefitGrants->list()`: `response.items[]->union(CustomerBenefitGrantCustom)->customer->email` **Changed** (Breaking ⚠️) * `polar->customers->get()`: `response` **Changed** (Breaking ⚠️) * `polar->customer_portal->benefitGrants->update()`: `response.union(CustomerBenefitGrantFeatureFlag)->customer->email` **Changed** (Breaking ⚠️) * `polar->customer_portal->customers->get()`: `response.email` **Changed** (Breaking ⚠️) * `polar->customer_portal->customers->update()`: `response.email` **Changed** (Breaking ⚠️) * `polar->customer_portal->licenseKeys->list()`: `response.items[]->customer` **Changed** (Breaking ⚠️) * `polar->customer_portal->licenseKeys->get()`: `response.customer` **Changed** (Breaking ⚠️) * `polar->customer_portal->licenseKeys->validate()`: `response.customer` **Changed** (Breaking ⚠️) * `polar->customer_portal->licenseKeys->activate()`: `response.licenseKey->customer` **Changed** (Breaking ⚠️) * `polar->customer-sessions->create()`: `response.customer` **Changed** (Breaking ⚠️) * `polar->events->list()`: `response.union(ListResource_Event_)->items[]->union(SystemEvent)` **Changed** (Breaking ⚠️) * `polar->events->get()`: `response.union(SystemEvent)` **Changed** (Breaking ⚠️) * `polar->metrics->listDashboards()`: **Added** * `polar->metrics->createDashboard()`: **Added** * `polar->metrics->updateDashboard()`: **Added** * `polar->metrics->deleteDashboard()`: **Added** * `polar->metrics->getDashboard()`: **Added**
1 parent 2cdab6a commit d9f28be

802 files changed

Lines changed: 7514 additions & 4778 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.speakeasy/gen.lock

Lines changed: 1774 additions & 1557 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ generation:
2929
generateNewTests: false
3030
skipResponseBodyAssertions: false
3131
php:
32-
version: 0.9.0
32+
version: 0.10.0
3333
additionalDependencies:
3434
autoload: {}
3535
autoload-dev: {}

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
speakeasyVersion: 1.759.3
1+
speakeasyVersion: 1.761.1
22
sources:
33
Polar-OAS:
44
sourceNamespace: polar-oas
5-
sourceRevisionDigest: sha256:e4b67d357d1b088e103fdd07e9ba94dcd0ff645161814ee11f557d4d1cd995c1
6-
sourceBlobDigest: sha256:b2c7f1acb37d29669ce0b6a0bfe87a35786d7dc4d409f45772d1f02f149ad1d8
5+
sourceRevisionDigest: sha256:e4cf14ef1457c450131e2b13ae08708a300d8b30c87c64a913a02d02e2bf2e99
6+
sourceBlobDigest: sha256:d5e55f4c7f96616a3eb731e9d7ba473485b86b6ef897b2fd5cacff504a1b21e9
77
tags:
88
- latest
99
- 0.1.0
1010
targets:
1111
polar:
1212
source: Polar-OAS
1313
sourceNamespace: polar-oas
14-
sourceRevisionDigest: sha256:e4b67d357d1b088e103fdd07e9ba94dcd0ff645161814ee11f557d4d1cd995c1
15-
sourceBlobDigest: sha256:b2c7f1acb37d29669ce0b6a0bfe87a35786d7dc4d409f45772d1f02f149ad1d8
14+
sourceRevisionDigest: sha256:e4cf14ef1457c450131e2b13ae08708a300d8b30c87c64a913a02d02e2bf2e99
15+
sourceBlobDigest: sha256:d5e55f4c7f96616a3eb731e9d7ba473485b86b6ef897b2fd5cacff504a1b21e9
1616
codeSamplesNamespace: polar-api-php-code-samples
17-
codeSamplesRevisionDigest: sha256:6f13fa17f2aec8332337b462375274ba14e6daa0f98b17fcc406098deefbe81e
17+
codeSamplesRevisionDigest: sha256:ca15dae2fae6dadceb36cf8f956d8f2a659edd38fd656faee4cba6b4389e6ddf
1818
workflow:
1919
workflowVersion: 1.0.0
2020
speakeasyVersion: latest

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,11 @@ foreach ($responses as $response) {
376376

377377
* [get](docs/sdks/metrics/README.md#get) - Get Metrics
378378
* [limits](docs/sdks/metrics/README.md#limits) - Get Metrics Limits
379+
* [listDashboards](docs/sdks/metrics/README.md#listdashboards) - List Metric Dashboards
380+
* [createDashboard](docs/sdks/metrics/README.md#createdashboard) - Create Metric Dashboard
381+
* [getDashboard](docs/sdks/metrics/README.md#getdashboard) - Get Metric Dashboard
382+
* [deleteDashboard](docs/sdks/metrics/README.md#deletedashboard) - Delete Metric Dashboard
383+
* [updateDashboard](docs/sdks/metrics/README.md#updatedashboard) - Update Metric Dashboard
379384

380385
### [Oauth2](docs/sdks/oauth2/README.md)
381386

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,4 +418,14 @@ Based on:
418418
### Generated
419419
- [php v0.9.0] .
420420
### Releases
421-
- [Composer v0.9.0] https://packagist.org/packages/polar-sh/sdk#v0.9.0 - .
421+
- [Composer v0.9.0] https://packagist.org/packages/polar-sh/sdk#v0.9.0 - .
422+
423+
## 2026-04-03 06:29:30
424+
### Changes
425+
Based on:
426+
- OpenAPI Doc
427+
- Speakeasy CLI 1.761.1 (2.879.6) https://github.com/speakeasy-api/speakeasy
428+
### Generated
429+
- [php v0.10.0] .
430+
### Releases
431+
- [Composer v0.10.0] https://packagist.org/packages/polar-sh/sdk#v0.10.0 - .

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"brick/math": ">=0.12.1"
1818
},
1919
"require-dev": {
20-
"laravel/pint": "1.21.2",
21-
"phpstan/phpstan": ">=2.1.0",
20+
"laravel/pint": "1.29.0",
21+
"phpstan/phpstan": "2.1.44",
2222
"phpunit/phpunit": ">=10",
2323
"roave/security-advisories": "dev-latest",
2424
"orchestra/testbench": ">=9.6"

docs/Models/Components/Aggregation.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
```php
99
/**
10-
* @var Components\PropertyAggregation
10+
* @var \Polar\Models\Components\PropertyAggregation
1111
*/
1212
Components\PropertyAggregation $value = /* values here */
1313
```
@@ -16,7 +16,7 @@ Components\PropertyAggregation $value = /* values here */
1616

1717
```php
1818
/**
19-
* @var Components\CountAggregation
19+
* @var \Polar\Models\Components\CountAggregation
2020
*/
2121
Components\CountAggregation $value = /* values here */
2222
```
@@ -25,7 +25,7 @@ Components\CountAggregation $value = /* values here */
2525

2626
```php
2727
/**
28-
* @var Components\PropertyAggregation
28+
* @var \Polar\Models\Components\PropertyAggregation
2929
*/
3030
Components\PropertyAggregation $value = /* values here */
3131
```
@@ -34,7 +34,7 @@ Components\PropertyAggregation $value = /* values here */
3434

3535
```php
3636
/**
37-
* @var Components\PropertyAggregation
37+
* @var \Polar\Models\Components\PropertyAggregation
3838
*/
3939
Components\PropertyAggregation $value = /* values here */
4040
```
@@ -43,7 +43,7 @@ Components\PropertyAggregation $value = /* values here */
4343

4444
```php
4545
/**
46-
* @var Components\PropertyAggregation
46+
* @var \Polar\Models\Components\PropertyAggregation
4747
*/
4848
Components\PropertyAggregation $value = /* values here */
4949
```
@@ -52,7 +52,7 @@ Components\PropertyAggregation $value = /* values here */
5252

5353
```php
5454
/**
55-
* @var Components\UniqueAggregation
55+
* @var \Polar\Models\Components\UniqueAggregation
5656
*/
5757
Components\UniqueAggregation $value = /* values here */
5858
```

docs/Models/Components/AvailableScope.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
| `RefundsWrite` | refunds:write |
5555
| `PaymentsRead` | payments:read |
5656
| `MetricsRead` | metrics:read |
57+
| `MetricsWrite` | metrics:write |
5758
| `WebhooksRead` | webhooks:read |
5859
| `WebhooksWrite` | webhooks:write |
5960
| `LicenseKeysRead` | license_keys:read |

docs/Models/Components/BalanceCreditOrderEvent.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ An event created by Polar when an order is paid via customer balance.
1111
| `timestamp` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_check_mark: | The timestamp of the event. | |
1212
| `organizationId` | *string* | :heavy_check_mark: | The ID of the organization owning the event. | 1dbfc517-0bbf-4301-9ba8-555ca42b9737 |
1313
| `customerId` | *string* | :heavy_check_mark: | ID of the customer in your Polar organization associated with the event. | |
14-
| `customer` | [Components\Customer](../../Models/Components/Customer.md) | :heavy_check_mark: | The customer associated with the event. | |
14+
| `customer` | [Components\CustomerIndividual\|Components\CustomerTeam](../../Models/Components/Customer.md) | :heavy_check_mark: | The customer associated with the event. | |
1515
| `externalCustomerId` | *string* | :heavy_check_mark: | ID of the customer in your system associated with the event. | |
1616
| `memberId` | *?string* | :heavy_minus_sign: | ID of the member within the customer's organization who performed the action inside B2B. | |
1717
| `externalMemberId` | *?string* | :heavy_minus_sign: | ID of the member in your system within the customer's organization who performed the action inside B2B. | |

docs/Models/Components/BalanceDisputeEvent.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ An event created by Polar when an order is disputed.
1111
| `timestamp` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_check_mark: | The timestamp of the event. | |
1212
| `organizationId` | *string* | :heavy_check_mark: | The ID of the organization owning the event. | 1dbfc517-0bbf-4301-9ba8-555ca42b9737 |
1313
| `customerId` | *string* | :heavy_check_mark: | ID of the customer in your Polar organization associated with the event. | |
14-
| `customer` | [Components\Customer](../../Models/Components/Customer.md) | :heavy_check_mark: | The customer associated with the event. | |
14+
| `customer` | [Components\CustomerIndividual\|Components\CustomerTeam](../../Models/Components/Customer.md) | :heavy_check_mark: | The customer associated with the event. | |
1515
| `externalCustomerId` | *string* | :heavy_check_mark: | ID of the customer in your system associated with the event. | |
1616
| `memberId` | *?string* | :heavy_minus_sign: | ID of the member within the customer's organization who performed the action inside B2B. | |
1717
| `externalMemberId` | *?string* | :heavy_minus_sign: | ID of the member in your system within the customer's organization who performed the action inside B2B. | |

0 commit comments

Comments
 (0)