Skip to content

Commit ee28013

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.590.0
1 parent 3a6b924 commit ee28013

File tree

837 files changed

+24429
-15039
lines changed

Some content is hidden

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

837 files changed

+24429
-15039
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
**/.speakeasy/temp/
2+
**/.speakeasy/logs/
13
composer.lock
24
vendor
35
.DS_Store

.speakeasy/gen.lock

Lines changed: 1432 additions & 582 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,22 @@ generation:
44
maintainOpenAPIOrder: true
55
usageSnippets:
66
optionalPropertyRendering: withExample
7+
sdkInitStyle: constructor
78
useClassNamesForArrayFields: true
89
fixes:
910
nameResolutionDec2023: true
11+
nameResolutionFeb2025: false
1012
parameterOrderingFeb2024: true
1113
requestResponseComponentNamesFeb2024: true
14+
securityFeb2025: false
15+
sharedErrorComponentsApr2025: false
1216
auth:
1317
oAuth2ClientCredentialsEnabled: true
1418
oAuth2PasswordEnabled: false
19+
tests:
20+
generateTests: true
21+
generateNewTests: false
22+
skipResponseBodyAssertions: false
1523
externalDocs:
1624
version: ""
1725
url: https://github.com/goshippo/shippo-php-sdk
@@ -20,7 +28,13 @@ info:
2028
description: Packagist library which integrates with Shippo Multi Carrier Shipping API. This library provides access to Shippo (goshippo.com) API capabilities. Including label generation, rating, tracking and more.
2129
php:
2230
version: 3.0.0-alpha
31+
additionalDependencies:
32+
autoload: {}
33+
autoload-dev: {}
34+
require: {}
35+
require-dev: {}
2336
author: Shippo
37+
baseErrorName: ShippoError
2438
clientServerStatusCodesAsErrors: true
2539
defaultErrorName: SDKError
2640
description: Shipping API Python library (USPS, FedEx, UPS and more)
@@ -39,6 +53,7 @@ php:
3953
svcName: openapi
4054
license: MIT License
4155
maxMethodParams: 3
56+
methodArguments: infer-optional-args
4257
namespace: Shippo\API
4358
outputModelSuffix: output
4459
packageName: shippo/shippo-php

.speakeasy/workflow.lock

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,26 @@
1-
speakeasyVersion: 1.310.0
1+
speakeasyVersion: 1.590.0
22
sources:
33
openapi:
44
sourceNamespace: openapi
5-
sourceRevisionDigest: sha256:3099fc4c926ab05099ea5c4cbb918e6423a03874cea38c8791efa7efbe6c5706
6-
sourceBlobDigest: sha256:234f83b39101f22af624857db75abc2440fbe9c279d457ab0a7c8a393245cab1
5+
sourceRevisionDigest: sha256:c7975b03b0e922bd14ceb9f47b00751e5ab098fca449707d2e20845cf7cc50f5
6+
sourceBlobDigest: sha256:38d48412b95b3b5c0ed071f4887b46472950b923b239a773d7830c0ee92c6c14
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:c7975b03b0e922bd14ceb9f47b00751e5ab098fca449707d2e20845cf7cc50f5
21+
sourceBlobDigest: sha256:38d48412b95b3b5c0ed071f4887b46472950b923b239a773d7830c0ee92c6c14
22+
codeSamplesNamespace: openapi-php-code-samples
23+
codeSamplesRevisionDigest: sha256:6b6c9a532885cce09a438edbd29c601ccadd9a40c2a1fcee6024eecfad19e4d2
1624
workflow:
1725
workflowVersion: 1.0.0
1826
speakeasyVersion: latest
@@ -23,6 +31,16 @@ 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-php-code-samples
44+
labelOverride:
45+
fixedValue: Php (SDK)
46+
blocking: false

.speakeasy/workflow.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,9 @@ targets:
1414
packagist:
1515
1616
token: $packagist_token
17+
codeSamples:
18+
registry:
19+
location: registry.speakeasyapi.dev/shippo/shippo/openapi-php-code-samples
20+
labelOverride:
21+
fixedValue: Php (SDK)
22+
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: 66 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -21,39 +21,29 @@ Shippo external API.: Use this API to integrate with the Shippo service
2121

2222
<!-- Start Table of Contents [toc] -->
2323
## Table of Contents
24+
<!-- $toc-max-depth=2 -->
25+
* [<img src="https://docs.goshippo.com/images/Logo.png" width="30" alt="Shippo logo"> Shippo PHP SDK](#img-srchttpsdocsgoshippocomimageslogopng-width30-altshippo-logo-shippo-php-sdk)
26+
* [SDK Installation](#sdk-installation)
27+
* [SDK Example Usage](#sdk-example-usage)
28+
* [Authentication](#authentication)
29+
* [Available Resources and Operations](#available-resources-and-operations)
30+
* [Error Handling](#error-handling)
31+
* [Server Selection](#server-selection)
32+
* [Development](#development)
33+
* [Maturity](#maturity)
34+
* [Contributions](#contributions)
35+
* [About Shippo](#about-shippo)
2436

25-
* [SDK Installation](#sdk-installation)
26-
* [SDK Example Usage](#sdk-example-usage)
27-
* [Available Resources and Operations](#available-resources-and-operations)
28-
* [Error Handling](#error-handling)
29-
* [Server Selection](#server-selection)
3037
<!-- End Table of Contents [toc] -->
3138

3239
<!-- Start SDK Installation [installation] -->
3340
## SDK Installation
3441

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

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-
44+
To install the SDK and add it as a dependency to an existing `composer.json` file:
5545
```bash
56-
composer update
46+
composer require "shippo/shippo-php"
5747
```
5848
<!-- End SDK Installation [installation] -->
5949

@@ -68,27 +58,61 @@ declare(strict_types=1);
6858
require 'vendor/autoload.php';
6959

7060
use Shippo\API;
61+
use Shippo\API\Models\Components;
62+
63+
$sdk = API\Shippo::builder()->build();
64+
65+
$request = new Components\WebhookPayloadBatch();
66+
67+
$response = $sdk->batch(
68+
request: $request
69+
);
70+
71+
if ($response->statusCode === 200) {
72+
// handle response
73+
}
74+
```
75+
<!-- End SDK Example Usage [usage] -->
7176

72-
$security = '<YOUR_API_KEY_HERE>';
77+
<!-- Start Authentication [security] -->
78+
## Authentication
79+
80+
### Per-Client Security Schemes
81+
82+
This SDK supports the following security scheme globally:
83+
84+
| Name | Type | Scheme |
85+
| -------------- | ------ | ------- |
86+
| `apiKeyHeader` | apiKey | API key |
87+
88+
To authenticate with the API the `apiKeyHeader` parameter must be set when initializing the SDK. For example:
89+
```php
90+
declare(strict_types=1);
91+
92+
require 'vendor/autoload.php';
93+
94+
use Shippo\API;
7395

7496
$sdk = API\Shippo::builder()
97+
->setSecurity(
98+
'<YOUR_API_KEY_HERE>'
99+
)
75100
->setShippoApiVersion('2018-02-08')
76-
->setSecurity($security)->build();
101+
->build();
77102

78103

79104

80105
$response = $sdk->addresses->list(
81106
page: 1,
82-
results: 5,
83-
shippoApiVersion: '2018-02-08'
107+
results: 5
84108

85109
);
86110

87111
if ($response->addressPaginatedList !== null) {
88112
// handle response
89113
}
90114
```
91-
<!-- End SDK Example Usage [usage] -->
115+
<!-- End Authentication [security] -->
92116

93117
<!-- Start Available Resources and Operations [operations] -->
94118
## Available Resources and Operations
@@ -261,18 +285,20 @@ declare(strict_types=1);
261285
require 'vendor/autoload.php';
262286

263287
use Shippo\API;
288+
use Shippo\API\Models\Errors;
264289
use Shippo\API\Models\Operations;
265290

266-
$security = '<YOUR_API_KEY_HERE>';
267-
268291
$sdk = API\Shippo::builder()
269292
->setShippoApiVersion('2018-02-08')
270-
->setSecurity($security)->build();
293+
->setSecurity(
294+
'<YOUR_API_KEY_HERE>'
295+
)
296+
->build();
271297

272298
try {
273299
$request = new Operations\InitiateOauth2SigninRequest(
274300
carrierAccountObjectId: '<id>',
275-
redirectUri: 'https://enlightened-mortise.com/',
301+
redirectUri: 'https://ashamed-reporter.biz',
276302
);
277303

278304
$response = $sdk->carrierAccounts->initiateOauth2Signin(
@@ -303,27 +329,27 @@ try {
303329

304330
### Override Server URL Per-Client
305331

306-
The default server can also be overridden globally using the `setServerUrl(string $serverUrl)` builder method when initializing the SDK client instance. For example:
332+
The default server can be overridden globally using the `setServerUrl(string $serverUrl)` builder method when initializing the SDK client instance. For example:
307333
```php
308334
declare(strict_types=1);
309335

310336
require 'vendor/autoload.php';
311337

312338
use Shippo\API;
313339

314-
$security = '<YOUR_API_KEY_HERE>';
315-
316340
$sdk = API\Shippo::builder()
317-
->setServerURL("https://api.goshippo.com")
341+
->setServerURL('https://api.goshippo.com')
318342
->setShippoApiVersion('2018-02-08')
319-
->setSecurity($security)->build();
343+
->setSecurity(
344+
'<YOUR_API_KEY_HERE>'
345+
)
346+
->build();
320347

321348

322349

323350
$response = $sdk->addresses->list(
324351
page: 1,
325-
results: 5,
326-
shippoApiVersion: '2018-02-08'
352+
results: 5
327353

328354
);
329355

RELEASES.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
3+
## 2025-07-28 00:37:48
4+
### Changes
5+
Based on:
6+
- OpenAPI Doc
7+
- Speakeasy CLI 1.590.0 (2.666.0) 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;
12-
13-
$security = new Components\Security();
14-
$security->apiKeyHeader = '<YOUR_API_KEY_HERE>';
158

16-
$sdk = API\ShippoSDK::builder()
9+
$sdk = API\Shippo::builder()
1710
->setShippoApiVersion('2018-02-08')
18-
->setSecurity($security)
11+
->setSecurity(
12+
'<YOUR_API_KEY_HERE>'
13+
)
1914
->build();
2015

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

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

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

0 commit comments

Comments
 (0)