Skip to content

Commit 3203f2f

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.444.3
1 parent d31f4b9 commit 3203f2f

File tree

816 files changed

+20699
-13489
lines changed

Some content is hidden

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

816 files changed

+20699
-13489
lines changed

.speakeasy/gen.lock

Lines changed: 1362 additions & 581 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ php:
3939
svcName: openapi
4040
license: MIT License
4141
maxMethodParams: 3
42+
methodArguments: infer-optional-args
4243
namespace: Shippo\API
4344
outputModelSuffix: output
4445
packageName: shippo/shippo-php

.speakeasy/workflow.lock

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,26 @@
1-
speakeasyVersion: 1.310.0
1+
speakeasyVersion: 1.444.3
22
sources:
33
openapi:
44
sourceNamespace: openapi
5-
sourceRevisionDigest: sha256:3099fc4c926ab05099ea5c4cbb918e6423a03874cea38c8791efa7efbe6c5706
6-
sourceBlobDigest: sha256:234f83b39101f22af624857db75abc2440fbe9c279d457ab0a7c8a393245cab1
5+
sourceRevisionDigest: sha256:819bb859fb0fbdb43f756f228d394180f3a1f7276d97c0e264a2840bf4e1a8f8
6+
sourceBlobDigest: sha256:2a7facdf6b36e6a940382a71736542c9228c6618d819c093436e9bf92a9034a8
77
tags:
88
- latest
9+
- speakeasy-sdk-regen-1731434842
10+
- "2018-02-08"
911
targets:
1012
my-first-target:
1113
source: openapi
1214
sourceNamespace: openapi
1315
sourceRevisionDigest: sha256:3099fc4c926ab05099ea5c4cbb918e6423a03874cea38c8791efa7efbe6c5706
1416
sourceBlobDigest: sha256:234f83b39101f22af624857db75abc2440fbe9c279d457ab0a7c8a393245cab1
15-
outLocation: /Users/mike.lueders/dev/shippo-php-sdk
17+
php:
18+
source: openapi
19+
sourceNamespace: openapi
20+
sourceRevisionDigest: sha256:819bb859fb0fbdb43f756f228d394180f3a1f7276d97c0e264a2840bf4e1a8f8
21+
sourceBlobDigest: sha256:2a7facdf6b36e6a940382a71736542c9228c6618d819c093436e9bf92a9034a8
22+
codeSamplesNamespace: openapi-code-samples
23+
codeSamplesRevisionDigest: sha256:1c53bc23ba5e2fc078d79922f7c18d08ea6250473027e62edb702e0b8f4b93d9
1624
workflow:
1725
workflowVersion: 1.0.0
1826
speakeasyVersion: latest
@@ -23,6 +31,14 @@ workflow:
2331
registry:
2432
location: registry.speakeasyapi.dev/shippo/shippo/openapi
2533
targets:
26-
my-first-target:
34+
php:
2735
target: php
2836
source: openapi
37+
publish:
38+
packagist:
39+
40+
token: $packagist_token
41+
codeSamples:
42+
registry:
43+
location: registry.speakeasyapi.dev/shippo/shippo/openapi-code-samples
44+
blocking: false

.speakeasy/workflow.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,7 @@ targets:
1414
packagist:
1515
1616
token: $packagist_token
17+
codeSamples:
18+
registry:
19+
location: registry.speakeasyapi.dev/shippo/shippo/openapi-code-samples
20+
blocking: false

CONTRIBUTING.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Contributing to This Repository
2+
3+
Thank you for your interest in contributing to this repository. Please note that this repository contains generated code. As such, we do not accept direct changes or pull requests. Instead, we encourage you to follow the guidelines below to report issues and suggest improvements.
4+
5+
## How to Report Issues
6+
7+
If you encounter any bugs or have suggestions for improvements, please open an issue on GitHub. When reporting an issue, please provide as much detail as possible to help us reproduce the problem. This includes:
8+
9+
- A clear and descriptive title
10+
- Steps to reproduce the issue
11+
- Expected and actual behavior
12+
- Any relevant logs, screenshots, or error messages
13+
- Information about your environment (e.g., operating system, software versions)
14+
- For example can be collected using the `npx envinfo` command from your terminal if you have Node.js installed
15+
16+
## Issue Triage and Upstream Fixes
17+
18+
We will review and triage issues as quickly as possible. Our goal is to address bugs and incorporate improvements in the upstream source code. Fixes will be included in the next generation of the generated code.
19+
20+
## Contact
21+
22+
If you have any questions or need further assistance, please feel free to reach out by opening an issue.
23+
24+
Thank you for your understanding and cooperation!
25+
26+
The Maintainers

README.md

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -34,26 +34,9 @@ Shippo external API.: Use this API to integrate with the Shippo service
3434

3535
The SDK relies on [Composer](https://getcomposer.org/) to manage its dependencies.
3636

37-
To install the SDK first add the below to your `composer.json` file:
38-
39-
```json
40-
{
41-
"repositories": [
42-
{
43-
"type": "github",
44-
"url": "<UNSET>.git"
45-
}
46-
],
47-
"require": {
48-
"Shippo": "*"
49-
}
50-
}
51-
```
52-
53-
Then run the following command:
54-
37+
To install the SDK and add it as a dependency to an existing `composer.json` file:
5538
```bash
56-
composer update
39+
composer require "shippo/shippo-php"
5740
```
5841
<!-- End SDK Installation [installation] -->
5942

RELEASES.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
3+
## 2024-11-25 00:30:22
4+
### Changes
5+
Based on:
6+
- OpenAPI Doc
7+
- Speakeasy CLI 1.444.3 (2.461.4) https://github.com/speakeasy-api/speakeasy
8+
### Generated
9+
- [php v3.0.0-alpha] .
10+
### Releases
11+
- [Composer v3.0.0-alpha] https://packagist.org/packages/shippo/shippo-php#v3.0.0-alpha - .

USAGE.md

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,28 @@
11
<!-- Start SDK Example Usage [usage] -->
22
```php
3-
<?php
4-
53
declare(strict_types=1);
64

75
require 'vendor/autoload.php';
86

97
use Shippo\API;
10-
use Shippo\API\Models\Components;
11-
use Shippo\API\Models\Operations;
128

13-
$security = new Components\Security();
14-
$security->apiKeyHeader = '<YOUR_API_KEY_HERE>';
9+
$security = '<YOUR_API_KEY_HERE>';
1510

16-
$sdk = API\ShippoSDK::builder()
11+
$sdk = API\Shippo::builder()
1712
->setShippoApiVersion('2018-02-08')
18-
->setSecurity($security)
19-
->build();
13+
->setSecurity($security)->build();
2014

21-
try {
22-
$response = $sdk->addresses->list(768578, 99895, '2018-02-08');
2315

24-
if ($response->addressPaginatedList !== null) {
25-
// handle response
26-
}
27-
} catch (Throwable $e) {
28-
// handle exception
29-
}
3016

17+
$response = $sdk->addresses->list(
18+
page: 1,
19+
results: 5,
20+
shippoApiVersion: '2018-02-08'
21+
22+
);
23+
24+
if ($response->addressPaginatedList !== null) {
25+
// handle response
26+
}
3127
```
3228
<!-- End SDK Example Usage [usage] -->

composer.json

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "shippo/api",
2+
"name": "shippo/shippo-php",
33
"type": "library",
44
"autoload": {
55
"psr-4": {
@@ -9,26 +9,31 @@
99
"license": "MIT",
1010
"require": {
1111
"php": "^8.2",
12+
"galbar/jsonpath": "^3.0",
1213
"guzzlehttp/guzzle": "^7.0",
13-
"jms/serializer": "^3.22"
14+
"speakeasy/serializer": "^4.0.0",
15+
"brick/date-time": "^0.7.0",
16+
"phpdocumentor/type-resolver": "^1.8",
17+
"brick/math": "^0.12.1"
1418
},
1519
"require-dev": {
16-
"laravel/pint": "^1.15",
17-
"phpstan/phpstan": "^1.9",
20+
"laravel/pint": "^1.18.1",
21+
"phpstan/phpstan": "^1.12",
1822
"phpunit/phpunit": "^10",
19-
"rector/rector": "^0.18.13",
23+
"rector/rector": "^0.19",
2024
"roave/security-advisories": "dev-latest"
2125
},
2226
"minimum-stability": "stable",
2327
"prefer-stable": true,
2428
"config": {
2529
"optimize-autoloader": true,
2630
"classmap-authoritative": true,
27-
"sort-packages": true
31+
"sort-packages": true,
32+
"process-timeout": 60
2833
},
2934
"scripts": {
3035
"test": [
31-
"./vendor/bin/phpunit --testdox"
36+
"./vendor/bin/phpunit --testdox --display-warnings --colors=always"
3237
],
3338
"stan": [
3439
"./vendor/bin/phpstan analyse --memory-limit=2g"

0 commit comments

Comments
 (0)