Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.438.1
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Nov 12, 2024
1 parent 9dd2860 commit 3f11432
Show file tree
Hide file tree
Showing 813 changed files with 19,601 additions and 13,460 deletions.
1,940 changes: 1,359 additions & 581 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ php:
svcName: openapi
license: MIT License
maxMethodParams: 3
methodArguments: infer-optional-args
namespace: Shippo\API
outputModelSuffix: output
packageName: shippo/shippo-php
Expand Down
25 changes: 20 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
speakeasyVersion: 1.310.0
speakeasyVersion: 1.438.1
sources:
openapi:
sourceNamespace: openapi
sourceRevisionDigest: sha256:3099fc4c926ab05099ea5c4cbb918e6423a03874cea38c8791efa7efbe6c5706
sourceBlobDigest: sha256:234f83b39101f22af624857db75abc2440fbe9c279d457ab0a7c8a393245cab1
sourceRevisionDigest: sha256:ee784282e8dee07d5843d05de2273c490ea8103ded819a2b3876e40aba9cc6a5
sourceBlobDigest: sha256:c8aca24ac7d30cd9ae966f86974c94b867610d4cae90d300d41e20d689223ec0
tags:
- latest
- CET-343-php-update-and-publish-sdk-once-the-generator-is-ga
targets:
my-first-target:
source: openapi
sourceNamespace: openapi
sourceRevisionDigest: sha256:3099fc4c926ab05099ea5c4cbb918e6423a03874cea38c8791efa7efbe6c5706
sourceBlobDigest: sha256:234f83b39101f22af624857db75abc2440fbe9c279d457ab0a7c8a393245cab1
outLocation: /Users/mike.lueders/dev/shippo-php-sdk
php:
source: openapi
sourceNamespace: openapi
sourceRevisionDigest: sha256:ee784282e8dee07d5843d05de2273c490ea8103ded819a2b3876e40aba9cc6a5
sourceBlobDigest: sha256:c8aca24ac7d30cd9ae966f86974c94b867610d4cae90d300d41e20d689223ec0
codeSamplesNamespace: openapi-code-samples
codeSamplesRevisionDigest: sha256:b6b1fd498b0ee764853d155e828a808085d8d1508e25a5e2b12bffb92ab1a2a4
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand All @@ -23,6 +30,14 @@ workflow:
registry:
location: registry.speakeasyapi.dev/shippo/shippo/openapi
targets:
my-first-target:
php:
target: php
source: openapi
publish:
packagist:
username: [email protected]
token: $packagist_token
codeSamples:
registry:
location: registry.speakeasyapi.dev/shippo/shippo/openapi-code-samples
blocking: false
4 changes: 4 additions & 0 deletions .speakeasy/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ targets:
packagist:
username: [email protected]
token: $packagist_token
codeSamples:
registry:
location: registry.speakeasyapi.dev/shippo/shippo/openapi-code-samples
blocking: false
26 changes: 26 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Contributing to This Repository

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.

## How to Report Issues

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:

- A clear and descriptive title
- Steps to reproduce the issue
- Expected and actual behavior
- Any relevant logs, screenshots, or error messages
- Information about your environment (e.g., operating system, software versions)
- For example can be collected using the `npx envinfo` command from your terminal if you have Node.js installed

## Issue Triage and Upstream Fixes

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.

## Contact

If you have any questions or need further assistance, please feel free to reach out by opening an issue.

Thank you for your understanding and cooperation!

The Maintainers
21 changes: 2 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,26 +34,9 @@ Shippo external API.: Use this API to integrate with the Shippo service

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

To install the SDK first add the below to your `composer.json` file:

```json
{
"repositories": [
{
"type": "github",
"url": "<UNSET>.git"
}
],
"require": {
"Shippo": "*"
}
}
```

Then run the following command:

To install the SDK and add it as a dependency to an existing `composer.json` file:
```bash
composer update
composer require "shippo/shippo-php"
```
<!-- End SDK Installation [installation] -->

Expand Down
11 changes: 11 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@


## 2024-11-12 18:07:18
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.438.1 (2.457.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [php v3.0.0-alpha] .
### Releases
- [Composer v3.0.0-alpha] https://packagist.org/packages/shippo/shippo-php#v3.0.0-alpha - .
30 changes: 13 additions & 17 deletions USAGE.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,28 @@
<!-- Start SDK Example Usage [usage] -->
```php
<?php

declare(strict_types=1);

require 'vendor/autoload.php';

use Shippo\API;
use Shippo\API\Models\Components;
use Shippo\API\Models\Operations;

$security = new Components\Security();
$security->apiKeyHeader = '<YOUR_API_KEY_HERE>';
$security = '<YOUR_API_KEY_HERE>';

$sdk = API\ShippoSDK::builder()
$sdk = API\Shippo::builder()
->setShippoApiVersion('2018-02-08')
->setSecurity($security)
->build();
->setSecurity($security)->build();

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

if ($response->addressPaginatedList !== null) {
// handle response
}
} catch (Throwable $e) {
// handle exception
}

$response = $sdk->addresses->list(
page: 1,
results: 5,
shippoApiVersion: '2018-02-08'

);

if ($response->addressPaginatedList !== null) {
// handle response
}
```
<!-- End SDK Example Usage [usage] -->
17 changes: 10 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "shippo/api",
"name": "shippo/shippo-php",
"type": "library",
"autoload": {
"psr-4": {
Expand All @@ -8,15 +8,18 @@
},
"license": "MIT",
"require": {
"php": "^8.1",
"php": "^8.2",
"guzzlehttp/guzzle": "^7.0",
"jms/serializer": "^3.22"
"speakeasy/serializer": "^4.0.0",
"brick/date-time": "^0.7.0",
"phpdocumentor/type-resolver": "^1.8",
"brick/math": "^0.12.1"
},
"require-dev": {
"laravel/pint": "^1.15",
"phpstan/phpstan": "^1.9",
"laravel/pint": "^1.18.1",
"phpstan/phpstan": "^1.12",
"phpunit/phpunit": "^10",
"rector/rector": "^0.18.13",
"rector/rector": "^0.19",
"roave/security-advisories": "dev-latest"
},
"minimum-stability": "stable",
Expand All @@ -28,7 +31,7 @@
},
"scripts": {
"test": [
"./vendor/bin/phpunit --testdox"
"./vendor/bin/phpunit --testdox --display-warnings --colors=always"
],
"stan": [
"./vendor/bin/phpstan analyse --memory-limit=2g"
Expand Down
Loading

0 comments on commit 3f11432

Please sign in to comment.