Skip to content

Commit fdba1c8

Browse files
authored
Merge pull request #28 from apideck-libraries/speakeasy-sdk-regen-1744101303
chore: 🐝 Update SDK - Generate 0.8.0
2 parents e35b067 + e7637c6 commit fdba1c8

Some content is hidden

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

88 files changed

+1494
-313
lines changed

.speakeasy/gen.lock

Lines changed: 33 additions & 31 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ generation:
1515
oAuth2ClientCredentialsEnabled: true
1616
oAuth2PasswordEnabled: true
1717
php:
18-
version: 0.7.0
18+
version: 0.8.0
1919
additionalDependencies:
2020
autoload: {}
2121
autoload-dev: {}

.speakeasy/workflow.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.529.1
1+
speakeasyVersion: 1.531.3
22
sources:
33
Apideck:
44
sourceNamespace: apideck
5-
sourceRevisionDigest: sha256:3b43518e5535a14ae8edb79cd8bdbf3d3bcbc26b97b50a4459eecfa974488b89
6-
sourceBlobDigest: sha256:129f9bc0d8b29efd7db3b87ac4fe87de06d8bc3060a12340799861913382fe05
5+
sourceRevisionDigest: sha256:323c8d6bdf464e0eb5a6cf8048725e7daf2cbef8781c014931049515884e634a
6+
sourceBlobDigest: sha256:f9c5f9f9bcd74daced54528fe07e4457ed5260d78d8dcd991035592dac57bb90
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1743420870
10-
- 10.14.1
9+
- speakeasy-sdk-regen-1744101303
10+
- 10.15.2
1111
targets:
1212
apideck:
1313
source: Apideck
1414
sourceNamespace: apideck
15-
sourceRevisionDigest: sha256:3b43518e5535a14ae8edb79cd8bdbf3d3bcbc26b97b50a4459eecfa974488b89
16-
sourceBlobDigest: sha256:129f9bc0d8b29efd7db3b87ac4fe87de06d8bc3060a12340799861913382fe05
15+
sourceRevisionDigest: sha256:323c8d6bdf464e0eb5a6cf8048725e7daf2cbef8781c014931049515884e634a
16+
sourceBlobDigest: sha256:f9c5f9f9bcd74daced54528fe07e4457ed5260d78d8dcd991035592dac57bb90
1717
codeSamplesNamespace: apideck-php-code-samples
18-
codeSamplesRevisionDigest: sha256:7a2e05ab63fe2217d0f55b9004c8e3e58bc68c19447189ab72b2aeaf30bd09c9
18+
codeSamplesRevisionDigest: sha256:335807d5313d379b27f1206c107269ebfcd1f5573811d306986c42e72ca3c587
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,4 +188,14 @@ Based on:
188188
### Generated
189189
- [php v0.7.0] .
190190
### Releases
191-
- [Composer v0.7.0] https://packagist.org/packages/apideck-libraries/sdk-php#v0.7.0 - .
191+
- [Composer v0.7.0] https://packagist.org/packages/apideck-libraries/sdk-php#v0.7.0 - .
192+
193+
## 2025-04-11 14:35:28
194+
### Changes
195+
Based on:
196+
- OpenAPI Doc
197+
- Speakeasy CLI 1.531.3 (2.570.3) https://github.com/speakeasy-api/speakeasy
198+
### Generated
199+
- [php v0.8.0] .
200+
### Releases
201+
- [Composer v0.8.0] https://packagist.org/packages/apideck-libraries/sdk-php#v0.8.0 - .

docs/Models/Components/Invoice.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
| `shippingAddress` | [?Components\Address](../../Models/Components/Address.md) | :heavy_minus_sign: | N/A | |
3838
| `templateId` | *?string* | :heavy_minus_sign: | Optional invoice template | 123456 |
3939
| `sourceDocumentUrl` | *?string* | :heavy_minus_sign: | URL link to a source document - shown as 'Go to [appName]' in the downstream app. Currently only supported for Xero. | https://www.invoicesolution.com/invoice/123456 |
40+
| `paymentAllocations` | array<[Components\PaymentAllocations](../../Models/Components/PaymentAllocations.md)> | :heavy_minus_sign: | IDs of payments made on the invoice | |
4041
| `paymentMethod` | *?string* | :heavy_minus_sign: | Payment method used for the transaction, such as cash, credit card, bank transfer, or check | cash |
4142
| `channel` | *?string* | :heavy_minus_sign: | The channel through which the transaction is processed. | email |
4243
| `language` | *?string* | :heavy_minus_sign: | language code according to ISO 639-1. For the United States - EN | EN |

docs/Models/Components/InvoiceInput.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
| `shippingAddress` | [?Components\Address](../../Models/Components/Address.md) | :heavy_minus_sign: | N/A | |
3636
| `templateId` | *?string* | :heavy_minus_sign: | Optional invoice template | 123456 |
3737
| `sourceDocumentUrl` | *?string* | :heavy_minus_sign: | URL link to a source document - shown as 'Go to [appName]' in the downstream app. Currently only supported for Xero. | https://www.invoicesolution.com/invoice/123456 |
38+
| `paymentAllocations` | array<[Components\PaymentAllocations](../../Models/Components/PaymentAllocations.md)> | :heavy_minus_sign: | IDs of payments made on the invoice | |
3839
| `paymentMethod` | *?string* | :heavy_minus_sign: | Payment method used for the transaction, such as cash, credit card, bank transfer, or check | cash |
3940
| `channel` | *?string* | :heavy_minus_sign: | The channel through which the transaction is processed. | email |
4041
| `language` | *?string* | :heavy_minus_sign: | language code according to ISO 639-1. For the United States - EN | EN |
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# PaymentAllocations
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description | Example |
7+
| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- |
8+
| `id` | *?string* | :heavy_minus_sign: | ID of the payment | 123456 |
9+
| `allocatedAmount` | *?float* | :heavy_minus_sign: | Amount of the payment allocated to the invoice | 1000 |
10+
| `date` | [\DateTime](https://www.php.net/manual/en/class.datetime.php) | :heavy_minus_sign: | Date of the payment | 2020-09-30T07:43:32.000Z |

docs/sdks/invoices/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ require 'vendor/autoload.php';
9898
use Apideck\Unify;
9999
use Apideck\Unify\Models\Components;
100100
use Apideck\Unify\Models\Operations;
101+
use Apideck\Unify\Utils;
101102
use Brick\DateTime\LocalDate;
102103

103104
$sdk = Unify\Apideck::builder()
@@ -246,6 +247,13 @@ $request = new Operations\AccountingInvoicesAddRequest(
246247
),
247248
templateId: '123456',
248249
sourceDocumentUrl: 'https://www.invoicesolution.com/invoice/123456',
250+
paymentAllocations: [
251+
new Components\PaymentAllocations(
252+
id: '123456',
253+
allocatedAmount: 1000,
254+
date: Utils\Utils::parseDateTime('2020-09-30T07:43:32.000Z'),
255+
),
256+
],
249257
paymentMethod: 'cash',
250258
channel: 'email',
251259
language: 'EN',
@@ -397,6 +405,7 @@ require 'vendor/autoload.php';
397405
use Apideck\Unify;
398406
use Apideck\Unify\Models\Components;
399407
use Apideck\Unify\Models\Operations;
408+
use Apideck\Unify\Utils;
400409
use Brick\DateTime\LocalDate;
401410

402411
$sdk = Unify\Apideck::builder()
@@ -548,6 +557,13 @@ $request = new Operations\AccountingInvoicesUpdateRequest(
548557
),
549558
templateId: '123456',
550559
sourceDocumentUrl: 'https://www.invoicesolution.com/invoice/123456',
560+
paymentAllocations: [
561+
new Components\PaymentAllocations(
562+
id: '123456',
563+
allocatedAmount: 1000,
564+
date: Utils\Utils::parseDateTime('2020-09-30T07:43:32.000Z'),
565+
),
566+
],
551567
paymentMethod: 'cash',
552568
channel: 'email',
553569
language: 'EN',

src/Activities.php

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@ public function create(Operations\CrmActivitiesAddRequest $request, ?Options $op
7979
}
8080
if ($retryCodes === null) {
8181
$retryCodes = [
82-
'5XX',
82+
'408',
83+
'500',
84+
'502',
85+
'503',
86+
'504',
8387
];
8488
}
8589
$baseUrl = $this->sdkConfiguration->getServerUrl();
@@ -250,7 +254,11 @@ private function listIndividual(?Operations\CrmActivitiesAllRequest $request = n
250254
}
251255
if ($retryCodes === null) {
252256
$retryCodes = [
253-
'5XX',
257+
'408',
258+
'500',
259+
'502',
260+
'503',
261+
'504',
254262
];
255263
}
256264
$baseUrl = $this->sdkConfiguration->getServerUrl();
@@ -493,7 +501,11 @@ public function delete(Operations\CrmActivitiesDeleteRequest $request, ?Options
493501
}
494502
if ($retryCodes === null) {
495503
$retryCodes = [
496-
'5XX',
504+
'408',
505+
'500',
506+
'502',
507+
'503',
508+
'504',
497509
];
498510
}
499511
$baseUrl = $this->sdkConfiguration->getServerUrl();
@@ -659,7 +671,11 @@ public function get(Operations\CrmActivitiesOneRequest $request, ?Options $optio
659671
}
660672
if ($retryCodes === null) {
661673
$retryCodes = [
662-
'5XX',
674+
'408',
675+
'500',
676+
'502',
677+
'503',
678+
'504',
663679
];
664680
}
665681
$baseUrl = $this->sdkConfiguration->getServerUrl();
@@ -825,7 +841,11 @@ public function update(Operations\CrmActivitiesUpdateRequest $request, ?Options
825841
}
826842
if ($retryCodes === null) {
827843
$retryCodes = [
828-
'5XX',
844+
'408',
845+
'500',
846+
'502',
847+
'503',
848+
'504',
829849
];
830850
}
831851
$baseUrl = $this->sdkConfiguration->getServerUrl();

src/AgedCreditors.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@ public function get(?Operations\AccountingAgedCreditorsOneRequest $request = nul
7979
}
8080
if ($retryCodes === null) {
8181
$retryCodes = [
82-
'5XX',
82+
'408',
83+
'500',
84+
'502',
85+
'503',
86+
'504',
8387
];
8488
}
8589
$baseUrl = $this->sdkConfiguration->getServerUrl();

src/AgedDebtors.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@ public function get(?Operations\AccountingAgedDebtorsOneRequest $request = null,
7979
}
8080
if ($retryCodes === null) {
8181
$retryCodes = [
82-
'5XX',
82+
'408',
83+
'500',
84+
'502',
85+
'503',
86+
'504',
8387
];
8488
}
8589
$baseUrl = $this->sdkConfiguration->getServerUrl();

src/ApiResourceCoverage.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,11 @@ public function get(string $id, string $resourceId, ?string $appId = null, ?Opti
8181
}
8282
if ($retryCodes === null) {
8383
$retryCodes = [
84-
'5XX',
84+
'408',
85+
'500',
86+
'502',
87+
'503',
88+
'504',
8589
];
8690
}
8791
$request = new Operations\ConnectorApiResourceCoverageOneRequest(

0 commit comments

Comments
 (0)