Commit 9aa84d8
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- src/Resources
- Banking
- BankAccounts
- Requests
- IbanPayments
- Requests
- Payments
- Requests
- QrPayments
- Requests
- Files
- Requests
- Items
- Items
- Requests
- StockAreas
- Requests
- StockLocations
- Requests
- Projects
- BusinessActivities
- Requests
- CommunicationTypes
- Requests
- Projects
- Requests
- Timesheets
- Requests
- tests/Resources
- Banking
- Items
- StockAreas
- StockLocations
- Projects
- BusinessActivities
- CommunicationTypes
- Projects
- Timesheets
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| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
0 commit comments