Skip to content

Commit faf0ea2

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.460.3
1 parent 0cdd086 commit faf0ea2

File tree

837 files changed

+24343
-14948
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

+24343
-14948
lines changed

.speakeasy/gen.lock

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

.speakeasy/gen.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ info:
2020
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.
2121
php:
2222
version: 3.0.0-alpha
23+
additionalDependencies:
24+
autoload: {}
25+
autoload-dev: {}
26+
require: {}
27+
require-dev: {}
2328
author: Shippo
2429
clientServerStatusCodesAsErrors: true
2530
defaultErrorName: SDKError
@@ -39,6 +44,7 @@ php:
3944
svcName: openapi
4045
license: MIT License
4146
maxMethodParams: 3
47+
methodArguments: infer-optional-args
4248
namespace: Shippo\API
4349
outputModelSuffix: output
4450
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.460.3
22
sources:
33
openapi:
44
sourceNamespace: openapi
5-
sourceRevisionDigest: sha256:3099fc4c926ab05099ea5c4cbb918e6423a03874cea38c8791efa7efbe6c5706
6-
sourceBlobDigest: sha256:234f83b39101f22af624857db75abc2440fbe9c279d457ab0a7c8a393245cab1
5+
sourceRevisionDigest: sha256:13a6da00818ef62bb5df63b33d43bdb8d6ffb464edfc59b8afa3f7f69589b63f
6+
sourceBlobDigest: sha256:cd9da3407a166b3f3649622b362cd9710086eee23be01fef701736f0c030f6ed
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:13a6da00818ef62bb5df63b33d43bdb8d6ffb464edfc59b8afa3f7f69589b63f
21+
sourceBlobDigest: sha256:cd9da3407a166b3f3649622b362cd9710086eee23be01fef701736f0c030f6ed
22+
codeSamplesNamespace: openapi-php-code-samples
23+
codeSamplesRevisionDigest: sha256:85ca8c1084b98e02a59690fc93fab9084831d8f39d5ac230ba38421ec640c1b7
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-php-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-php-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: 61 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -21,39 +21,28 @@ 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+
* [Available Resources and Operations](#available-resources-and-operations)
29+
* [Error Handling](#error-handling)
30+
* [Server Selection](#server-selection)
31+
* [Development](#development)
32+
* [Maturity](#maturity)
33+
* [Contributions](#contributions)
34+
* [About Shippo](#about-shippo)
2435

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)
3036
<!-- End Table of Contents [toc] -->
3137

3238
<!-- Start SDK Installation [installation] -->
3339
## SDK Installation
3440

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

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-
43+
To install the SDK and add it as a dependency to an existing `composer.json` file:
5544
```bash
56-
composer update
45+
composer require "shippo/shippo-php"
5746
```
5847
<!-- End SDK Installation [installation] -->
5948

@@ -68,23 +57,19 @@ declare(strict_types=1);
6857
require 'vendor/autoload.php';
6958

7059
use Shippo\API;
71-
72-
$security = '<YOUR_API_KEY_HERE>';
60+
use Shippo\API\Models\Components;
7361

7462
$sdk = API\Shippo::builder()
7563
->setShippoApiVersion('2018-02-08')
76-
->setSecurity($security)->build();
77-
64+
->build();
7865

66+
$request = new Components\WebhookPayloadBatch();
7967

80-
$response = $sdk->addresses->list(
81-
page: 1,
82-
results: 5,
83-
shippoApiVersion: '2018-02-08'
84-
68+
$response = $sdk->batch(
69+
request: $request
8570
);
8671

87-
if ($response->addressPaginatedList !== null) {
72+
if ($response->statusCode === 200) {
8873
// handle response
8974
}
9075
```
@@ -98,63 +83,63 @@ if ($response->addressPaginatedList !== null) {
9883

9984
### [addresses](docs/sdks/addresses/README.md)
10085

101-
* [list](docs/sdks/addresses/README.md#list) - List all addresses
10286
* [create](docs/sdks/addresses/README.md#create) - Create a new address
10387
* [get](docs/sdks/addresses/README.md#get) - Retrieve an address
88+
* [list](docs/sdks/addresses/README.md#list) - List all addresses
10489
* [validate](docs/sdks/addresses/README.md#validate) - Validate an address
10590

10691
### [batches](docs/sdks/batches/README.md)
10792

93+
* [addShipments](docs/sdks/batches/README.md#addshipments) - Add shipments to a batch
10894
* [create](docs/sdks/batches/README.md#create) - Create a batch
10995
* [get](docs/sdks/batches/README.md#get) - Retrieve a batch
110-
* [addShipments](docs/sdks/batches/README.md#addshipments) - Add shipments to a batch
11196
* [purchase](docs/sdks/batches/README.md#purchase) - Purchase a batch
11297
* [removeShipments](docs/sdks/batches/README.md#removeshipments) - Remove shipments from a batch
11398

11499
### [carrierAccounts](docs/sdks/carrieraccounts/README.md)
115100

116-
* [list](docs/sdks/carrieraccounts/README.md#list) - List all carrier accounts
117101
* [create](docs/sdks/carrieraccounts/README.md#create) - Create a new carrier account
118102
* [get](docs/sdks/carrieraccounts/README.md#get) - Retrieve a carrier account
119-
* [update](docs/sdks/carrieraccounts/README.md#update) - Update a carrier account
103+
* [getRegistrationStatus](docs/sdks/carrieraccounts/README.md#getregistrationstatus) - Get Carrier Registration status
120104
* [initiateOauth2Signin](docs/sdks/carrieraccounts/README.md#initiateoauth2signin) - Connect an existing carrier account using OAuth 2.0
105+
* [list](docs/sdks/carrieraccounts/README.md#list) - List all carrier accounts
121106
* [register](docs/sdks/carrieraccounts/README.md#register) - Add a Shippo carrier account
122-
* [getRegistrationStatus](docs/sdks/carrieraccounts/README.md#getregistrationstatus) - Get Carrier Registration status
107+
* [update](docs/sdks/carrieraccounts/README.md#update) - Update a carrier account
123108

124109
### [carrierParcelTemplates](docs/sdks/carrierparceltemplates/README.md)
125110

126-
* [list](docs/sdks/carrierparceltemplates/README.md#list) - List all carrier parcel templates
127111
* [get](docs/sdks/carrierparceltemplates/README.md#get) - Retrieve a carrier parcel templates
112+
* [list](docs/sdks/carrierparceltemplates/README.md#list) - List all carrier parcel templates
128113

129114
### [customsDeclarations](docs/sdks/customsdeclarations/README.md)
130115

131-
* [list](docs/sdks/customsdeclarations/README.md#list) - List all customs declarations
132116
* [create](docs/sdks/customsdeclarations/README.md#create) - Create a new customs declaration
133117
* [get](docs/sdks/customsdeclarations/README.md#get) - Retrieve a customs declaration
118+
* [list](docs/sdks/customsdeclarations/README.md#list) - List all customs declarations
134119

135120
### [customsItems](docs/sdks/customsitems/README.md)
136121

137-
* [list](docs/sdks/customsitems/README.md#list) - List all customs items
138122
* [create](docs/sdks/customsitems/README.md#create) - Create a new customs item
139123
* [get](docs/sdks/customsitems/README.md#get) - Retrieve a customs item
124+
* [list](docs/sdks/customsitems/README.md#list) - List all customs items
140125

141126
### [manifests](docs/sdks/manifests/README.md)
142127

143-
* [list](docs/sdks/manifests/README.md#list) - List all manifests
144128
* [create](docs/sdks/manifests/README.md#create) - Create a new manifest
145129
* [get](docs/sdks/manifests/README.md#get) - Retrieve a manifest
130+
* [list](docs/sdks/manifests/README.md#list) - List all manifests
146131

147132
### [orders](docs/sdks/orders/README.md)
148133

149-
* [list](docs/sdks/orders/README.md#list) - List all orders
150134
* [create](docs/sdks/orders/README.md#create) - Create a new order
151135
* [get](docs/sdks/orders/README.md#get) - Retrieve an order
136+
* [list](docs/sdks/orders/README.md#list) - List all orders
152137

153138
### [parcels](docs/sdks/parcels/README.md)
154139

155-
* [list](docs/sdks/parcels/README.md#list) - List all parcels
156140
* [create](docs/sdks/parcels/README.md#create) - Create a new parcel
157141
* [get](docs/sdks/parcels/README.md#get) - Retrieve an existing parcel
142+
* [list](docs/sdks/parcels/README.md#list) - List all parcels
158143

159144
### [pickups](docs/sdks/pickups/README.md)
160145

@@ -169,35 +154,35 @@ if ($response->addressPaginatedList !== null) {
169154
### [ratesAtCheckout](docs/sdks/ratesatcheckout/README.md)
170155

171156
* [create](docs/sdks/ratesatcheckout/README.md#create) - Generate a live rates request
157+
* [deleteDefaultParcelTemplate](docs/sdks/ratesatcheckout/README.md#deletedefaultparceltemplate) - Clear current default parcel template
172158
* [getDefaultParcelTemplate](docs/sdks/ratesatcheckout/README.md#getdefaultparceltemplate) - Show current default parcel template
173159
* [updateDefaultParcelTemplate](docs/sdks/ratesatcheckout/README.md#updatedefaultparceltemplate) - Update default parcel template
174-
* [deleteDefaultParcelTemplate](docs/sdks/ratesatcheckout/README.md#deletedefaultparceltemplate) - Clear current default parcel template
175160

176161
### [refunds](docs/sdks/refunds/README.md)
177162

178163
* [create](docs/sdks/refunds/README.md#create) - Create a refund
179-
* [list](docs/sdks/refunds/README.md#list) - List all refunds
180164
* [get](docs/sdks/refunds/README.md#get) - Retrieve a refund
165+
* [list](docs/sdks/refunds/README.md#list) - List all refunds
181166

182167
### [serviceGroups](docs/sdks/servicegroups/README.md)
183168

184-
* [list](docs/sdks/servicegroups/README.md#list) - List all service groups
185169
* [create](docs/sdks/servicegroups/README.md#create) - Create a new service group
186-
* [update](docs/sdks/servicegroups/README.md#update) - Update an existing service group
187170
* [delete](docs/sdks/servicegroups/README.md#delete) - Delete a service group
171+
* [list](docs/sdks/servicegroups/README.md#list) - List all service groups
172+
* [update](docs/sdks/servicegroups/README.md#update) - Update an existing service group
188173

189174
### [shipments](docs/sdks/shipments/README.md)
190175

191-
* [list](docs/sdks/shipments/README.md#list) - List all shipments
192176
* [create](docs/sdks/shipments/README.md#create) - Create a new shipment
193177
* [get](docs/sdks/shipments/README.md#get) - Retrieve a shipment
178+
* [list](docs/sdks/shipments/README.md#list) - List all shipments
194179

195180

196181
### [shippoAccounts](docs/sdks/shippoaccounts/README.md)
197182

198-
* [list](docs/sdks/shippoaccounts/README.md#list) - List all Shippo Accounts
199183
* [create](docs/sdks/shippoaccounts/README.md#create) - Create a Shippo Account
200184
* [get](docs/sdks/shippoaccounts/README.md#get) - Retrieve a Shippo Account
185+
* [list](docs/sdks/shippoaccounts/README.md#list) - List all Shippo Accounts
201186
* [update](docs/sdks/shippoaccounts/README.md#update) - Update a Shippo Account
202187

203188
### [trackingStatus](docs/sdks/trackingstatus/README.md)
@@ -207,25 +192,25 @@ if ($response->addressPaginatedList !== null) {
207192

208193
### [transactions](docs/sdks/transactions/README.md)
209194

210-
* [list](docs/sdks/transactions/README.md#list) - List all shipping labels
211195
* [create](docs/sdks/transactions/README.md#create) - Create a shipping label
212196
* [get](docs/sdks/transactions/README.md#get) - Retrieve a shipping label
197+
* [list](docs/sdks/transactions/README.md#list) - List all shipping labels
213198

214199
### [userParcelTemplates](docs/sdks/userparceltemplates/README.md)
215200

216-
* [list](docs/sdks/userparceltemplates/README.md#list) - List all user parcel templates
217201
* [create](docs/sdks/userparceltemplates/README.md#create) - Create a new user parcel template
218202
* [delete](docs/sdks/userparceltemplates/README.md#delete) - Delete a user parcel template
219203
* [get](docs/sdks/userparceltemplates/README.md#get) - Retrieves a user parcel template
204+
* [list](docs/sdks/userparceltemplates/README.md#list) - List all user parcel templates
220205
* [update](docs/sdks/userparceltemplates/README.md#update) - Update an existing user parcel template
221206

222207
### [webhooks](docs/sdks/webhooks/README.md)
223208

224209
* [createWebhook](docs/sdks/webhooks/README.md#createwebhook) - Create a new webhook
225-
* [listWebhooks](docs/sdks/webhooks/README.md#listwebhooks) - List all webhooks
210+
* [deleteWebhook](docs/sdks/webhooks/README.md#deletewebhook) - Delete a specific webhook
226211
* [getWebhook](docs/sdks/webhooks/README.md#getwebhook) - Retrieve a specific webhook
212+
* [listWebhooks](docs/sdks/webhooks/README.md#listwebhooks) - List all webhooks
227213
* [updateWebhook](docs/sdks/webhooks/README.md#updatewebhook) - Update an existing webhook
228-
* [deleteWebhook](docs/sdks/webhooks/README.md#deletewebhook) - Delete a specific webhook
229214

230215
</details>
231216
<!-- End Available Resources and Operations [operations] -->
@@ -310,24 +295,39 @@ declare(strict_types=1);
310295
require 'vendor/autoload.php';
311296

312297
use Shippo\API;
298+
use Shippo\API\Models\Components;
313299

314300
$security = '<YOUR_API_KEY_HERE>';
315301

316302
$sdk = API\Shippo::builder()
317-
->setServerURL("https://api.goshippo.com")
303+
->setServerURL('https://api.goshippo.com')
318304
->setShippoApiVersion('2018-02-08')
319305
->setSecurity($security)->build();
320306

307+
$addressCreateRequest = new Components\AddressCreateRequest(
308+
country: 'US',
309+
name: 'Shwan Ippotle',
310+
company: 'Shippo',
311+
street1: '215 Clayton St.',
312+
street3: '',
313+
streetNo: '',
314+
city: 'San Francisco',
315+
state: 'CA',
316+
zip: '94117',
317+
phone: '+1 555 341 9393',
318+
319+
isResidential: true,
320+
metadata: 'Customer ID 123456',
321+
validate: true,
322+
);
321323

322-
323-
$response = $sdk->addresses->list(
324-
page: 1,
325-
results: 5,
324+
$response = $sdk->addresses->create(
325+
addressCreateRequest: $addressCreateRequest,
326326
shippoApiVersion: '2018-02-08'
327327

328328
);
329329

330-
if ($response->addressPaginatedList !== null) {
330+
if ($response->address !== null) {
331331
// handle response
332332
}
333333
```

RELEASES.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
3+
## 2024-12-30 00:29:20
4+
### Changes
5+
Based on:
6+
- OpenAPI Doc
7+
- Speakeasy CLI 1.460.3 (2.484.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 - .

0 commit comments

Comments
 (0)