From 8dab84bf4ccd9b855fa9bebaf89d2216e5bd81bf Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 17 Jul 2024 00:21:43 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc 1.0, Speakeasy CLI 1.337.1 --- .speakeasy/gen.lock | 13 ++++++------ CONTRIBUTING.md | 26 +++++++++++++++++++++++ RELEASES.md | 12 ++++++++++- docs/Models/Shared/PaymentLink.md | 1 + docs/Models/Shared/PaymentLinkLineitem.md | 2 +- docs/sdks/link/README.md | 3 +++ docs/sdks/payment/README.md | 3 +++ gen.yaml | 2 +- src/Models/Shared/PaymentLink.php | 6 ++++++ src/Models/Shared/PaymentLinkLineitem.php | 5 +++-- src/SDKConfiguration.php | 6 +++--- 11 files changed, 65 insertions(+), 14 deletions(-) create mode 100644 CONTRIBUTING.md diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index eae43b6a..eba3e9b9 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,19 +1,19 @@ lockVersion: 2.0.0 id: 2b560ec4-b84f-4215-b917-90b5f7369715 management: - docChecksum: 0ffd229fc984e79a989b59bc7e76be0d + docChecksum: 6d51b60c29950dfc2984759824e2e857 docVersion: "1.0" - speakeasyVersion: 1.335.2 - generationVersion: 2.372.3 - releaseVersion: 0.15.35 - configChecksum: 1e31a6e968c4a901c92d33f83c87d4a2 + speakeasyVersion: 1.337.1 + generationVersion: 2.373.2 + releaseVersion: 0.15.36 + configChecksum: bbdc4d481dd2254cb791c844bb935d11 repoURL: https://github.com/unified-to/unified-php-sdk.git repoSubDirectory: . installationURL: https://github.com/unified-to/unified-php-sdk published: true features: php: - core: 3.3.7 + core: 3.3.8 globalSecurity: 2.81.6 globalSecurityFlattening: 0.1.0 globalServerURLs: 2.82.1 @@ -1784,3 +1784,4 @@ generatedFiles: - docs/sdks/webhook/README.md - USAGE.md - .gitattributes + - CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..d585717f --- /dev/null +++ b/CONTRIBUTING.md @@ -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 diff --git a/RELEASES.md b/RELEASES.md index adbbcfb8..4f09b2b9 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1386,4 +1386,14 @@ Based on: ### Generated - [php v0.15.35] . ### Releases -- [Composer v0.15.35] https://packagist.org/packages/unified/unified-to#v0.15.35 - . \ No newline at end of file +- [Composer v0.15.35] https://packagist.org/packages/unified/unified-to#v0.15.35 - . + +## 2024-07-17 00:20:59 +### Changes +Based on: +- OpenAPI Doc 1.0 +- Speakeasy CLI 1.337.1 (2.373.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [php v0.15.36] . +### Releases +- [Composer v0.15.36] https://packagist.org/packages/unified/unified-to#v0.15.36 - . \ No newline at end of file diff --git a/docs/Models/Shared/PaymentLink.md b/docs/Models/Shared/PaymentLink.md index 94baf884..eba34591 100644 --- a/docs/Models/Shared/PaymentLink.md +++ b/docs/Models/Shared/PaymentLink.md @@ -11,6 +11,7 @@ | `currency` | *?string* | :heavy_minus_sign: | N/A | | `id` | *?string* | :heavy_minus_sign: | N/A | | `isActive` | *?bool* | :heavy_minus_sign: | N/A | +| `isChargeableNow` | *?bool* | :heavy_minus_sign: | N/A | | `lineitems` | array<[\Unified\Unified_to\Models\Shared\PaymentLinkLineitem](../../Models/Shared/PaymentLinkLineitem.md)> | :heavy_minus_sign: | N/A | | `paymentId` | *?string* | :heavy_minus_sign: | N/A | | `raw` | array | :heavy_minus_sign: | N/A | diff --git a/docs/Models/Shared/PaymentLinkLineitem.md b/docs/Models/Shared/PaymentLinkLineitem.md index 2650e32a..bb5e3fe1 100644 --- a/docs/Models/Shared/PaymentLinkLineitem.md +++ b/docs/Models/Shared/PaymentLinkLineitem.md @@ -18,7 +18,7 @@ | `refundedAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_minus_sign: | N/A | | `taxAmount` | *?float* | :heavy_minus_sign: | N/A | | `taxrateId` | *?string* | :heavy_minus_sign: | N/A | -| `totalAmount` | *float* | :heavy_check_mark: | N/A | +| `totalAmount` | *?float* | :heavy_minus_sign: | N/A | | `unitAmount` | *?float* | :heavy_minus_sign: | N/A | | `unitQuantity` | *?float* | :heavy_minus_sign: | N/A | | `updatedAt` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdks/link/README.md b/docs/sdks/link/README.md index 64b12a23..61e6c61d 100644 --- a/docs/sdks/link/README.md +++ b/docs/sdks/link/README.md @@ -41,6 +41,7 @@ try { $request->paymentLink->currency = 'Aruban Guilder'; $request->paymentLink->id = ''; $request->paymentLink->isActive = false; + $request->paymentLink->isChargeableNow = false; $request->paymentLink->lineitems = [ new Shared\PaymentLinkLineitem(), ]; @@ -214,6 +215,7 @@ try { $request->paymentLink->currency = 'UIC-Franc'; $request->paymentLink->id = ''; $request->paymentLink->isActive = false; + $request->paymentLink->isChargeableNow = false; $request->paymentLink->lineitems = [ new Shared\PaymentLinkLineitem(), ]; @@ -328,6 +330,7 @@ try { $request->paymentLink->currency = 'Gibraltar Pound'; $request->paymentLink->id = ''; $request->paymentLink->isActive = false; + $request->paymentLink->isChargeableNow = false; $request->paymentLink->lineitems = [ new Shared\PaymentLinkLineitem(), ]; diff --git a/docs/sdks/payment/README.md b/docs/sdks/payment/README.md index 42e04f13..c411457e 100644 --- a/docs/sdks/payment/README.md +++ b/docs/sdks/payment/README.md @@ -51,6 +51,7 @@ try { $request->paymentLink->currency = 'Aruban Guilder'; $request->paymentLink->id = ''; $request->paymentLink->isActive = false; + $request->paymentLink->isChargeableNow = false; $request->paymentLink->lineitems = [ new Shared\PaymentLinkLineitem(), ]; @@ -611,6 +612,7 @@ try { $request->paymentLink->currency = 'UIC-Franc'; $request->paymentLink->id = ''; $request->paymentLink->isActive = false; + $request->paymentLink->isChargeableNow = false; $request->paymentLink->lineitems = [ new Shared\PaymentLinkLineitem(), ]; @@ -838,6 +840,7 @@ try { $request->paymentLink->currency = 'Gibraltar Pound'; $request->paymentLink->id = ''; $request->paymentLink->isActive = false; + $request->paymentLink->isChargeableNow = false; $request->paymentLink->lineitems = [ new Shared\PaymentLinkLineitem(), ]; diff --git a/gen.yaml b/gen.yaml index 13568cc6..cfc149f4 100644 --- a/gen.yaml +++ b/gen.yaml @@ -13,7 +13,7 @@ generation: baseServerURL: "" flattenGlobalSecurity: true php: - version: 0.15.35 + version: 0.15.36 flattenGlobalSecurity: true imports: option: openapi diff --git a/src/Models/Shared/PaymentLink.php b/src/Models/Shared/PaymentLink.php index 79db6da6..6ea1ee06 100644 --- a/src/Models/Shared/PaymentLink.php +++ b/src/Models/Shared/PaymentLink.php @@ -41,6 +41,11 @@ class PaymentLink #[\JMS\Serializer\Annotation\SkipWhenEmpty] public ?bool $isActive = null; + #[\JMS\Serializer\Annotation\SerializedName('is_chargeable_now')] + #[\JMS\Serializer\Annotation\Type('bool')] + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?bool $isChargeableNow = null; + /** * $lineitems * @@ -84,6 +89,7 @@ public function __construct() $this->currency = null; $this->id = null; $this->isActive = null; + $this->isChargeableNow = null; $this->lineitems = null; $this->paymentId = null; $this->raw = null; diff --git a/src/Models/Shared/PaymentLinkLineitem.php b/src/Models/Shared/PaymentLinkLineitem.php index 3090b590..3e153d90 100644 --- a/src/Models/Shared/PaymentLinkLineitem.php +++ b/src/Models/Shared/PaymentLinkLineitem.php @@ -78,7 +78,8 @@ class PaymentLinkLineitem #[\JMS\Serializer\Annotation\SerializedName('total_amount')] #[\JMS\Serializer\Annotation\Type('float')] - public float $totalAmount; + #[\JMS\Serializer\Annotation\SkipWhenEmpty] + public ?float $totalAmount = null; #[\JMS\Serializer\Annotation\SerializedName('unit_amount')] #[\JMS\Serializer\Annotation\Type('float')] @@ -110,7 +111,7 @@ public function __construct() $this->refundedAt = null; $this->taxAmount = null; $this->taxrateId = null; - $this->totalAmount = 0; + $this->totalAmount = null; $this->unitAmount = null; $this->unitQuantity = null; $this->updatedAt = null; diff --git a/src/SDKConfiguration.php b/src/SDKConfiguration.php index 5d97eed7..81f8ee38 100644 --- a/src/SDKConfiguration.php +++ b/src/SDKConfiguration.php @@ -26,11 +26,11 @@ class SDKConfiguration public string $openapiDocVersion = '1.0'; - public string $sdkVersion = '0.15.35'; + public string $sdkVersion = '0.15.36'; - public string $genVersion = '2.372.3'; + public string $genVersion = '2.373.2'; - public string $userAgent = 'speakeasy-sdk/php 0.15.35 2.372.3 1.0 unified/unified-to'; + public string $userAgent = 'speakeasy-sdk/php 0.15.36 2.373.2 1.0 unified/unified-to'; public function getServerUrl(): string {