Skip to content

Commit 8f1f070

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.438.1
1 parent 5f88a6d commit 8f1f070

File tree

813 files changed

+19601
-13460
lines changed

Some content is hidden

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

813 files changed

+19601
-13460
lines changed

.speakeasy/gen.lock

Lines changed: 1359 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: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
1-
speakeasyVersion: 1.310.0
1+
speakeasyVersion: 1.438.1
22
sources:
33
openapi:
44
sourceNamespace: openapi
5-
sourceRevisionDigest: sha256:3099fc4c926ab05099ea5c4cbb918e6423a03874cea38c8791efa7efbe6c5706
6-
sourceBlobDigest: sha256:234f83b39101f22af624857db75abc2440fbe9c279d457ab0a7c8a393245cab1
5+
sourceRevisionDigest: sha256:89bcc5d5255afdba9e8193d2907d4a25de4522fd881f67475fcc3268341cc65b
6+
sourceBlobDigest: sha256:c8aca24ac7d30cd9ae966f86974c94b867610d4cae90d300d41e20d689223ec0
77
tags:
88
- latest
9+
- main
910
targets:
1011
my-first-target:
1112
source: openapi
1213
sourceNamespace: openapi
1314
sourceRevisionDigest: sha256:3099fc4c926ab05099ea5c4cbb918e6423a03874cea38c8791efa7efbe6c5706
1415
sourceBlobDigest: sha256:234f83b39101f22af624857db75abc2440fbe9c279d457ab0a7c8a393245cab1
15-
outLocation: /Users/mike.lueders/dev/shippo-php-sdk
16+
php:
17+
source: openapi
18+
sourceNamespace: openapi
19+
sourceRevisionDigest: sha256:89bcc5d5255afdba9e8193d2907d4a25de4522fd881f67475fcc3268341cc65b
20+
sourceBlobDigest: sha256:c8aca24ac7d30cd9ae966f86974c94b867610d4cae90d300d41e20d689223ec0
21+
codeSamplesNamespace: openapi-code-samples
22+
codeSamplesRevisionDigest: sha256:6b272353c4c1546594adca7984d04eee6ae541f1ee926253693053a56ca61131
1623
workflow:
1724
workflowVersion: 1.0.0
1825
speakeasyVersion: latest
@@ -23,6 +30,14 @@ workflow:
2330
registry:
2431
location: registry.speakeasyapi.dev/shippo/shippo/openapi
2532
targets:
26-
my-first-target:
33+
php:
2734
target: php
2835
source: openapi
36+
publish:
37+
packagist:
38+
39+
token: $packagist_token
40+
codeSamples:
41+
registry:
42+
location: registry.speakeasyapi.dev/shippo/shippo/openapi-code-samples
43+
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-12 18:14:52
4+
### Changes
5+
Based on:
6+
- OpenAPI Doc
7+
- Speakeasy CLI 1.438.1 (2.457.2) 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: 10 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": {
@@ -8,15 +8,18 @@
88
},
99
"license": "MIT",
1010
"require": {
11-
"php": "^8.1",
11+
"php": "^8.2",
1212
"guzzlehttp/guzzle": "^7.0",
13-
"jms/serializer": "^3.22"
13+
"speakeasy/serializer": "^4.0.0",
14+
"brick/date-time": "^0.7.0",
15+
"phpdocumentor/type-resolver": "^1.8",
16+
"brick/math": "^0.12.1"
1417
},
1518
"require-dev": {
16-
"laravel/pint": "^1.15",
17-
"phpstan/phpstan": "^1.9",
19+
"laravel/pint": "^1.18.1",
20+
"phpstan/phpstan": "^1.12",
1821
"phpunit/phpunit": "^10",
19-
"rector/rector": "^0.18.13",
22+
"rector/rector": "^0.19",
2023
"roave/security-advisories": "dev-latest"
2124
},
2225
"minimum-stability": "stable",
@@ -28,7 +31,7 @@
2831
},
2932
"scripts": {
3033
"test": [
31-
"./vendor/bin/phpunit --testdox"
34+
"./vendor/bin/phpunit --testdox --display-warnings --colors=always"
3235
],
3336
"stan": [
3437
"./vendor/bin/phpstan analyse --memory-limit=2g"

0 commit comments

Comments
 (0)