Skip to content

Commit 9aa84d8

Browse files
committed
refactor: improve save method logic in Resource class and enhance file handling in CreateFileRequest
- Updated the save method in the Resource class to check for the existence of the id using isset() and ensure it is not null before deciding to update or create a resource. - Enhanced the CreateFileRequest class to handle file naming and content type more robustly, including a fallback mechanism for text/plain files to convert them to PDF format. - Improved the createDtoFromResponse method to handle various response payload structures more effectively.
1 parent bcacbbe commit 9aa84d8

File tree

91 files changed

+202
-9
lines changed

Some content is hidden

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

91 files changed

+202
-9
lines changed

src/Resources/Banking/BankAccounts/BankAccount.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,4 @@ public function __construct(
3737
}
3838

3939

40+

src/Resources/Banking/BankAccounts/Requests/GetBankAccountRequest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ public function createDtoFromResponse(Response $response): BankAccount
2828
}
2929

3030

31+

src/Resources/Banking/BankAccounts/Requests/GetBankAccountsRequest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,4 @@ public function createDtoFromResponse(Response $response): array
4747
}
4848

4949

50+

src/Resources/Banking/IbanPayments/IbanPayment.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,4 @@ public function refresh(): static
6868
}
6969

7070

71+

src/Resources/Banking/IbanPayments/Requests/CreateIbanPaymentRequest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@ public function createDtoFromResponse(Response $response): IbanPayment
4141
}
4242

4343

44+

src/Resources/Banking/IbanPayments/Requests/GetIbanPaymentRequest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ public function createDtoFromResponse(Response $response): IbanPayment
3131
}
3232

3333

34+

src/Resources/Banking/IbanPayments/Requests/UpdateIbanPaymentRequest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,4 @@ public function createDtoFromResponse(Response $response): IbanPayment
4545
}
4646

4747

48+

src/Resources/Banking/Payments/PaymentAccount.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ public function __construct(
1616
}
1717

1818

19+

src/Resources/Banking/Payments/PaymentQueryBuilder.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ public function perPage(int $perPage): static
2727
}
2828

2929

30+

src/Resources/Banking/Payments/PaymentRecipient.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ public function __construct(
1616
}
1717

1818

19+

0 commit comments

Comments
 (0)