Skip to content

Commit b95d22a

Browse files
committed
tweaks
1 parent 47eef05 commit b95d22a

File tree

2 files changed

+10
-13
lines changed

2 files changed

+10
-13
lines changed

docs/sdks/languages/php/methodology-php.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ Since the release of PHP 8 in 2020, the language has introduced additional type
2626

2727
```php
2828
private int|float $age;
29+
```
30+
2931
- Enums
3032

3133
```php

docs/sdks/languages/php/oss-comparison-php.mdx

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -826,30 +826,25 @@ require 'vendor/autoload.php';
826826
use Speakeasy\TrainTravelSdk;
827827
use Speakeasy\TrainTravelSdk\Models\Components;
828828

829-
$sdk = TrainTravelSdk\TrainTravelSDK::builder()
829+
$sdk = TrainTravel\TrainTravelSDK::builder()
830830
->setSecurity(
831831
'<YOUR_O_AUTH2_HERE>'
832832
)
833833
->build();
834834

835835
$body = new Components\BookingPayment(
836-
amount: 49.99,
837836
currency: Components\Currency::Gbp,
838-
source: new Components\Card(
837+
source: new Components\BankAccount(
839838
name: 'J. Doe',
840-
number: '4242424242424242',
841-
cvc: '123',
842-
expMonth: 12,
843-
expYear: 2025,
844-
addressLine1: '123 Fake Street',
845-
addressLine2: '4th Floor',
846-
addressCity: 'London',
847-
addressCountry: 'gb',
848-
addressPostCode: 'N12 9XX',
839+
number: '00012345',
840+
sortCode: '000123',
841+
accountType: Components\AccountType::Individual,
842+
bankName: 'Starling Bank',
843+
country: 'gb',
849844
),
850845
);
851846

852-
$response = $sdk->bookings->payments->create(
847+
$response = $sdk->payments->createForBooking(
853848
bookingId: '1725ff48-ab45-4bb5-9d02-88745177dedb',
854849
body: $body
855850

0 commit comments

Comments
 (0)