Skip to content

Commit c063d47

Browse files
speakeasybotfrankie567
authored andcommitted
## Php SDK Changes Detected:
* `polar->_endpointcheckout_created_post()`: * `request->data` **Changed** **Breaking** ⚠️ * `polar->_endpointcheckout_updated_post()`: * `request->data` **Changed** **Breaking** ⚠️ * `polar->_endpointorder_created_post()`: * `request->data` **Changed** **Breaking** ⚠️ * `polar->_endpointorder_updated_post()`: * `request->data` **Changed** **Breaking** ⚠️ * `polar->_endpointorder_paid_post()`: * `request->data` **Changed** **Breaking** ⚠️ * `polar->events->get()`: `response` **Changed** **Breaking** ⚠️ * `polar->events->list()`: * `request` **Changed** * `response.items->[]` **Changed** **Breaking** ⚠️ * `polar->customer_portal->subscriptions->list()`: * `request->organizationId` **Removed** **Breaking** ⚠️ * `response.items->[]` **Changed** * `polar->customer_portal->orders->generateInvoice()`: `error.status[409]` **Removed** **Breaking** ⚠️ * `polar->customer_portal->orders->update()`: `response` **Changed** **Breaking** ⚠️ * `polar->customer_portal->orders->get()`: `response` **Changed** **Breaking** ⚠️ * `polar->customer_portal->orders->list()`: * `request->organizationId` **Removed** **Breaking** ⚠️ * `response.items->[]` **Changed** **Breaking** ⚠️ * `polar->customer_portal->licenseKeys->list()`: `request.organizationId` **Removed** **Breaking** ⚠️ * `polar->customer_portal->downloadables->list()`: `request.organizationId` **Removed** **Breaking** ⚠️ * `polar->customer_portal->seats->resendInvitation()`: `response` **Changed** **Breaking** ⚠️ * `polar->customer_portal->seats->revokeSeat()`: `response` **Changed** **Breaking** ⚠️ * `polar->_endpointorder_refunded_post()`: * `request->data` **Changed** **Breaking** ⚠️ * `polar->_endpointsubscription_created_post()`: * `request->data` **Changed** **Breaking** ⚠️ * `polar->_endpointsubscription_updated_post()`: * `request->data` **Changed** **Breaking** ⚠️ * `polar->_endpointsubscription_active_post()`: * `request->data` **Changed** **Breaking** ⚠️ * `polar->_endpointsubscription_canceled_post()`: * `request->data` **Changed** **Breaking** ⚠️ * `polar->_endpointsubscription_uncanceled_post()`: * `request->data` **Changed** **Breaking** ⚠️ * `polar->_endpointsubscription_revoked_post()`: * `request->data` **Changed** **Breaking** ⚠️ * `polar->_endpointproduct_created_post()`: * `request->data->recurringIntervalCount` **Added** **Breaking** ⚠️ * `polar->_endpointproduct_updated_post()`: * `request->data->recurringIntervalCount` **Added** **Breaking** ⚠️ * `polar->_endpointorganization_updated_post()`: * `request->data` **Changed** **Breaking** ⚠️ * `polar->customer_portal->seats->assignSeat()`: * `request` **Changed** * `response` **Changed** **Breaking** ⚠️ * `polar->customer_portal->seats->listSeats()`: * `request` **Changed** * `response.seats->[]` **Changed** **Breaking** ⚠️ * `polar->customer_portal->benefit-grants->list()`: * `request->organizationId` **Removed** **Breaking** ⚠️ * `response.items->[]->[customerBenefitGrantDiscord]->benefit->organization` **Changed** * `polar->checkouts->clientConfirm()`: `response` **Changed** **Breaking** ⚠️ * `polar->checkouts->clientUpdate()`: `response` **Changed** **Breaking** ⚠️ * `polar->checkouts->clientGet()`: `response` **Changed** **Breaking** ⚠️ * `polar->organizations->create()`: * `request` **Changed** **Breaking** ⚠️ * `response` **Changed** * `polar->checkouts->update()`: `response` **Changed** **Breaking** ⚠️ * `polar->organizations->update()`: * `request.organizationUpdate` **Changed** **Breaking** ⚠️ * `response` **Changed** * `polar->checkouts->get()`: `response` **Changed** **Breaking** ⚠️ * `polar->checkouts->create()`: `response` **Changed** **Breaking** ⚠️ * `polar->checkouts->list()`: `response.items->[]` **Changed** **Breaking** ⚠️ * `polar->orders->generateInvoice()`: `error.status[409]` **Removed** **Breaking** ⚠️ * `polar->orders->update()`: `response` **Changed** **Breaking** ⚠️ * `polar->orders->get()`: `response` **Changed** **Breaking** ⚠️ * `polar->orders->list()`: `response.items->[]` **Changed** **Breaking** ⚠️ * `polar->products->list()`: `response.items->[]->recurringIntervalCount` **Added** * `polar->discounts->get()`: `response.[discountFixedOnceForeverDuration]->products->[]->recurringIntervalCount` **Added** * `polar->webhooks->updateWebhookEndpoint()`: * `request.webhookEndpointUpdate->enabled` **Added** * `response.enabled` **Added** * `polar->products->create()`: * `request` **Changed** * `response.recurringIntervalCount` **Added** * `polar->products->get()`: `response.recurringIntervalCount` **Added** * `polar->products->update()`: * `request.productUpdate->recurringIntervalCount` **Added** * `response.recurringIntervalCount` **Added** * `polar->products->updateBenefits()`: `response.recurringIntervalCount` **Added** * `polar->webhooks->getWebhookEndpoint()`: `response.enabled` **Added** * `polar->webhooks->createWebhookEndpoint()`: `response.enabled` **Added** * `polar->webhooks->listWebhookEndpoints()`: `response.items->[]->enabled` **Added** * `polar->subscriptions->update()`: * `request.subscriptionUpdate->[subscriptionUpdateSeats]` **Added** * `response` **Changed** * `polar->subscriptions->revoke()`: `response` **Changed** * `polar->subscriptions->get()`: `response` **Changed** * `polar->subscriptions->list()`: `response.items->[]` **Changed** * `polar->organizations->get()`: `response` **Changed** * `polar->organizations->list()`: `response.items->[]` **Changed** * `polar->wallets->topUp()`: **Added** * `polar->wallets->get()`: **Added** * `polar->metrics->get()`: `response` **Changed** * `polar->checkout-links->list()`: `response.items->[]->products->[]->recurringIntervalCount` **Added** * `polar->checkout-links->create()`: `response.products->[]->recurringIntervalCount` **Added** * `polar->checkout-links->get()`: `response.products->[]->recurringIntervalCount` **Added** * `polar->checkout-links->update()`: `response.products->[]->recurringIntervalCount` **Added** * `polar->discounts->list()`: `response.items->[]->[discountFixedRepeatDuration]->products->[]->recurringIntervalCount` **Added** * `polar->discounts->create()`: `response.[discountFixedOnceForeverDuration]->products->[]->recurringIntervalCount` **Added** * `polar->webhooks->resetWebhookEndpointSecret()`: `response.enabled` **Added** * `polar->discounts->update()`: `response.[discountFixedOnceForeverDuration]->products->[]->recurringIntervalCount` **Added** * `polar->wallets->list()`: **Added** * `polar->customer_portal->benefit-grants->get()`: `response.[customerBenefitGrantMeterCredit]->benefit->organization` **Changed** * `polar->customer_portal->benefit-grants->update()`: `response.[customerBenefitGrantDiscord]->benefit->organization` **Changed** * `polar->customer-seats->claimSeat()`: **Added** * `polar->customer-seats->getClaimInfo()`: **Added** * `polar->customer-seats->resendInvitation()`: **Added** * `polar->customer-seats->revokeSeat()`: **Added** * `polar->customer_portal->seats->listClaimedSubscriptions()`: `response.[]` **Changed** * `polar->customer-seats->listSeats()`: **Added** * `polar->customer-seats->assignSeat()`: **Added** * `polar->customer_portal->wallets->get()`: **Added** * `polar->customer_portal->wallets->list()`: **Added** * `polar->orders->export()`: **Added** * `polar->subscriptions->create()`: **Added** * `polar->customer_portal->organizations->get()`: `response` **Changed** * `polar->_endpointcustomer_seat_revoked_post()`: **Added** * `polar->customer_portal->subscriptions->get()`: `response` **Changed** * `polar->customer_portal->subscriptions->cancel()`: `response` **Changed** * `polar->customer_portal->subscriptions->update()`: * `request.customerSubscriptionUpdate->[customerSubscriptionUpdateSeats]` **Added** * `response` **Changed** * `polar->_endpointcustomer_seat_claimed_post()`: **Added** * `polar->_endpointcustomer_seat_assigned_post()`: **Added** * `polar->events->ingest()`: * `request->events->[]` **Changed** * `response.duplicates` **Added**
1 parent 38b106c commit c063d47

File tree

331 files changed

+9018
-868
lines changed

Some content is hidden

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

331 files changed

+9018
-868
lines changed

.speakeasy/gen.lock

Lines changed: 409 additions & 92 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
@@ -24,7 +24,7 @@ generation:
2424
generateNewTests: false
2525
skipResponseBodyAssertions: false
2626
php:
27-
version: 0.6.1
27+
version: 0.7.0
2828
additionalDependencies:
2929
autoload: {}
3030
autoload-dev: {}

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.637.3
1+
speakeasyVersion: 1.648.0
22
sources:
33
Polar-OAS:
44
sourceNamespace: polar-oas
5-
sourceRevisionDigest: sha256:98dd88f089435a1af194015ca729983c7e2888b24ddc04e77194e8f913bce865
6-
sourceBlobDigest: sha256:81a64948141fbdaebf65485efe43f3942459a2da5f4c44dc6519392b117ec5e7
5+
sourceRevisionDigest: sha256:c0187c3b97b30297429930c9b97513e82a6fb748fa42bb6ef632b447899f4063
6+
sourceBlobDigest: sha256:64e17fc520f1c7b5bf6663aa5279d8655e70ee7240fa77085f5486aa632e0275
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1761052484
9+
- speakeasy-sdk-regen-1761092353
1010
- 0.1.0
1111
targets:
1212
polar:
1313
source: Polar-OAS
1414
sourceNamespace: polar-oas
15-
sourceRevisionDigest: sha256:98dd88f089435a1af194015ca729983c7e2888b24ddc04e77194e8f913bce865
16-
sourceBlobDigest: sha256:81a64948141fbdaebf65485efe43f3942459a2da5f4c44dc6519392b117ec5e7
15+
sourceRevisionDigest: sha256:c0187c3b97b30297429930c9b97513e82a6fb748fa42bb6ef632b447899f4063
16+
sourceBlobDigest: sha256:64e17fc520f1c7b5bf6663aa5279d8655e70ee7240fa77085f5486aa632e0275
1717
codeSamplesNamespace: polar-api-php-code-samples
18-
codeSamplesRevisionDigest: sha256:c85bf7c6a0533d66bac3bd71881fc1e7fefa556decd2430cd8ca373ffbb8ba2d
18+
codeSamplesRevisionDigest: sha256:04aecb4b5c428435e3ef2889dde87529ea6b17b44db4fe251657f934e4f9ce67
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,7 @@ use Polar\Models\Operations;
139139

140140
$sdk = Polar\Polar::builder()->build();
141141

142-
$request = new Operations\CustomerPortalBenefitGrantsListRequest(
143-
organizationId: '1dbfc517-0bbf-4301-9ba8-555ca42b9737',
144-
);
142+
$request = new Operations\CustomerPortalBenefitGrantsListRequest();
145143
$requestSecurity = new Operations\CustomerPortalBenefitGrantsListSecurity(
146144
customerSession: '<YOUR_BEARER_TOKEN_HERE>',
147145
);
@@ -267,6 +265,11 @@ foreach ($responses as $response) {
267265
* [update](docs/sdks/polarsubscriptions/README.md#update) - Update Subscription
268266
* [cancel](docs/sdks/polarsubscriptions/README.md#cancel) - Cancel Subscription
269267

268+
#### [customerPortal->wallets](docs/sdks/polarwallets/README.md)
269+
270+
* [list](docs/sdks/polarwallets/README.md#list) - List Wallets
271+
* [get](docs/sdks/polarwallets/README.md#get) - Get Wallet
272+
270273
### [customers](docs/sdks/customers/README.md)
271274

272275
* [list](docs/sdks/customers/README.md#list) - List Customers
@@ -282,6 +285,15 @@ foreach ($responses as $response) {
282285
* [getStateExternal](docs/sdks/customers/README.md#getstateexternal) - Get Customer State by External ID
283286
* [getBalance](docs/sdks/customers/README.md#getbalance) - Get Customer Balance
284287

288+
### [customerSeats](docs/sdks/customerseats/README.md)
289+
290+
* [assignSeat](docs/sdks/customerseats/README.md#assignseat) - Assign Seat
291+
* [listSeats](docs/sdks/customerseats/README.md#listseats) - List Seats
292+
* [revokeSeat](docs/sdks/customerseats/README.md#revokeseat) - Revoke Seat
293+
* [resendInvitation](docs/sdks/customerseats/README.md#resendinvitation) - Resend Invitation
294+
* [getClaimInfo](docs/sdks/customerseats/README.md#getclaiminfo) - Get Claim Info
295+
* [claimSeat](docs/sdks/customerseats/README.md#claimseat) - Claim Seat
296+
285297
### [customerSessions](docs/sdks/customersessions/README.md)
286298

287299
* [create](docs/sdks/customersessions/README.md#create) - Create Customer Session
@@ -358,6 +370,7 @@ foreach ($responses as $response) {
358370
### [orders](docs/sdks/orders/README.md)
359371

360372
* [list](docs/sdks/orders/README.md#list) - List Orders
373+
* [export](docs/sdks/orders/README.md#export) - Export Subscriptions
361374
* [get](docs/sdks/orders/README.md#get) - Get Order
362375
* [update](docs/sdks/orders/README.md#update) - Update Order
363376
* [generateInvoice](docs/sdks/orders/README.md#generateinvoice) - Generate Order Invoice
@@ -391,11 +404,18 @@ foreach ($responses as $response) {
391404
### [subscriptions](docs/sdks/subscriptions/README.md)
392405

393406
* [list](docs/sdks/subscriptions/README.md#list) - List Subscriptions
407+
* [create](docs/sdks/subscriptions/README.md#create) - Create Subscription
394408
* [export](docs/sdks/subscriptions/README.md#export) - Export Subscriptions
395409
* [get](docs/sdks/subscriptions/README.md#get) - Get Subscription
396410
* [update](docs/sdks/subscriptions/README.md#update) - Update Subscription
397411
* [revoke](docs/sdks/subscriptions/README.md#revoke) - Revoke Subscription
398412

413+
### [wallets](docs/sdks/wallets/README.md)
414+
415+
* [list](docs/sdks/wallets/README.md#list) - List Wallets
416+
* [get](docs/sdks/wallets/README.md#get) - Get Wallet
417+
* [topUp](docs/sdks/wallets/README.md#topup) - Top-Up Wallet
418+
399419
### [webhooks](docs/sdks/webhooks/README.md)
400420

401421
* [listWebhookEndpoints](docs/sdks/webhooks/README.md#listwebhookendpoints) - List Webhook Endpoints
@@ -528,7 +548,7 @@ require 'vendor/autoload.php';
528548
use Polar;
529549

530550
$sdk = Polar\Polar::builder()
531-
->setServer('sandbox')
551+
->setServer('production')
532552
->setSecurity(
533553
'<YOUR_BEARER_TOKEN_HERE>'
534554
)

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,4 +378,14 @@ Based on:
378378
### Generated
379379
- [php v0.6.1] .
380380
### Releases
381-
- [Composer v0.6.1] https://packagist.org/packages/polar-sh/sdk#v0.6.1 - .
381+
- [Composer v0.6.1] https://packagist.org/packages/polar-sh/sdk#v0.6.1 - .
382+
383+
## 2025-11-04 00:18:54
384+
### Changes
385+
Based on:
386+
- OpenAPI Doc
387+
- Speakeasy CLI 1.648.0 (2.737.0) https://github.com/speakeasy-api/speakeasy
388+
### Generated
389+
- [php v0.7.0] .
390+
### Releases
391+
- [Composer v0.7.0] https://packagist.org/packages/polar-sh/sdk#v0.7.0 - .
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# ActiveUserByEvent
2+
3+
4+
## Supported Types
5+
6+
### `int`
7+
8+
```php
9+
/**
10+
* @var int
11+
*/
12+
int $value = /* values here */
13+
```
14+
15+
### `float`
16+
17+
```php
18+
/**
19+
* @var float
20+
*/
21+
float $value = /* values here */
22+
```
23+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# AddressDict
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------ | ------------------ | ------------------ | ------------------ |
8+
| `line1` | *?string* | :heavy_minus_sign: | N/A |
9+
| `line2` | *?string* | :heavy_minus_sign: | N/A |
10+
| `postalCode` | *?string* | :heavy_minus_sign: | N/A |
11+
| `city` | *?string* | :heavy_minus_sign: | N/A |
12+
| `state` | *?string* | :heavy_minus_sign: | N/A |
13+
| `country` | *string* | :heavy_check_mark: | N/A |

docs/Models/Components/Amount.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Amount
2+
3+
The amount in cents.
4+
5+
6+
## Supported Types
7+
8+
### `float`
9+
10+
```php
11+
/**
12+
* @var float
13+
*/
14+
float $value = /* values here */
15+
```
16+
17+
### `string`
18+
19+
```php
20+
/**
21+
* @var string
22+
*/
23+
string $value = /* values here */
24+
```
25+
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# AverageRevenuePerUser
2+
3+
4+
## Supported Types
5+
6+
### `int`
7+
8+
```php
9+
/**
10+
* @var int
11+
*/
12+
int $value = /* values here */
13+
```
14+
15+
### `float`
16+
17+
```php
18+
/**
19+
* @var float
20+
*/
21+
float $value = /* values here */
22+
```
23+

docs/Models/Components/BenefitCycledEvent.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ An event created by Polar when a benefit is cycled.
1313
| `customerId` | *string* | :heavy_check_mark: | ID of the customer in your Polar organization associated with the event. | |
1414
| `customer` | [Components\Customer](../../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. | |
16+
| `childCount` | *?int* | :heavy_minus_sign: | Number of direct child events linked to this event. | |
1617
| `source` | *string* | :heavy_check_mark: | The source of the event. `system` events are created by Polar. `user` events are the one you create through our ingestion API. | |
1718
| `name` | *string* | :heavy_check_mark: | The name of the event. | |
1819
| `metadata` | [Components\BenefitGrantMetadata](../../Models/Components/BenefitGrantMetadata.md) | :heavy_check_mark: | N/A | |

0 commit comments

Comments
 (0)