-
Notifications
You must be signed in to change notification settings - Fork 3
Updated changelog.md + update ContactAdditionalAddress #49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -710,7 +710,6 @@ We provide DTOs for the following: | |
| | BusinessYearDTO | | ||
| | CalendarYearDTO | | ||
| | CompanyProfileDTO | | ||
| | ContactAdditionalAddressDTO | | ||
| | ContactGroupDTO | | ||
| | ContactRelationDTO | | ||
| | ContactDTO | | ||
|
|
@@ -751,7 +750,6 @@ In addition to the above, we also provide DTOs to be used for create and edit re | |
| |---------------------------------------| | ||
| | CreateCalendarYearDTO | | ||
| | CreateEditAdditionalAddressDTO | | ||
| | CreateEditContactAdditionalAddressDTO | | ||
| | CreateEditContactGroupDTO | | ||
| | CreateEditContactRelationDTO | | ||
| | CreateEditContactDTO | | ||
|
|
@@ -858,7 +856,7 @@ $addresses = $connector->send(new SearchAddressesRequest( | |
| * Create Address | ||
| */ | ||
| $address = $connector->send(new CreateAnAdditionalAddressRequest( | ||
| id: 1, | ||
| contactId: 1, | ||
| data: new CreateEditAdditionalAddressDTO( | ||
| name: 'Test', | ||
| subject: 'Test Subject', | ||
|
|
@@ -974,28 +972,28 @@ $companyProfile = $connector->send(new FetchACompanyProfileRequest( | |
| ### Additional Addresses | ||
| ```php | ||
| /** | ||
| * Fetch A List Of Contact Additional Addresses | ||
| * Fetch A List Of Additional Addresses | ||
| */ | ||
| $contactAdditionalAddresses = $connector->send(new FetchAListOfContactAdditionalAddressesRequest( | ||
| $additionalAddresses = $connector->send(new FetchAListOfAdditionalAddressesRequest( | ||
| contactId: 1 | ||
| ))->dto(); | ||
| ``` | ||
|
|
||
| ```php | ||
| /** | ||
| * Fetch A Contact Additional Address | ||
| * Fetch An Additional Address | ||
| */ | ||
| $contactAdditionalAddress = $connector->send(new FetchAContactAdditionalAddressRequest( | ||
| $additionalAddress = $connector->send(new FetchAnAdditionalAddressRequest( | ||
| contactId: 1, | ||
| id: 1 | ||
| ))->dto(); | ||
| ``` | ||
|
|
||
| ```php | ||
| /** | ||
| * Search Contact Additional Address | ||
| * Search Additional Addresses | ||
| */ | ||
| $contactAdditionalAddresses = $connector->send(new SearchContactAdditionalAddressesRequest( | ||
| $additionalAddresses = $connector->send(new SearchAdditionalAddressesRequest( | ||
| contactId: 1, | ||
| searchField: 'Name', | ||
| searchTerm: 'Something' | ||
|
|
@@ -1004,44 +1002,48 @@ $contactAdditionalAddresses = $connector->send(new SearchContactAdditionalAddres | |
|
|
||
| ```php | ||
| /** | ||
| * Create Contact Additional Address | ||
| * Create Additional Address | ||
| */ | ||
| $contactAdditionalAddress = $connector->send(new CreateContactAdditionalAddressRequest( | ||
| $additionalAddress = $connector->send(new CreateAnAdditionalAddressRequest( | ||
| contactId: 1, | ||
| data: new CreateEditContactAdditionalAddressDTO( | ||
| data: new CreateEditAdditionalAddressDTO( | ||
| name: 'Test', | ||
| subject: 'Test Subject', | ||
| description: 'This is a test', | ||
| address: 'Test Address', | ||
| postcode: '1234', | ||
| street_name: 'Main Street', | ||
| house_number: '123', | ||
| address_addition: 'Apt 4B', | ||
| postcode: 1234, | ||
| city: 'Test City', | ||
| ) | ||
| )); | ||
| ``` | ||
|
|
||
| ```php | ||
| /** | ||
| * Edit Contact Additional Address | ||
| * Edit Additional Address | ||
| */ | ||
| $contactAdditionalAddress = $connector->send(new EditAContactAdditionalAddressRequest( | ||
| $additionalAddress = $connector->send(new EditAnAdditionalAddressRequest( | ||
| contactId: 1, | ||
| id: 9, | ||
| data: new CreateEditContactAdditionalAddressDTO( | ||
| data: new CreateEditAdditionalAddressDTO( | ||
| name: 'Test Edit', | ||
| subject: 'Test Subject Edit', | ||
| description: 'This is a test edit', | ||
| address: 'Test Address Edit', | ||
| postcode: '4567', | ||
| street_name: 'Main Street', | ||
| house_number: '456', | ||
| address_addition: 'Suite 2', | ||
| postcode: 4567, | ||
| city: 'Test City Edit', | ||
| ) | ||
| )); | ||
|
Comment on lines
+1026
to
1039
|
||
| ``` | ||
|
|
||
| ```php | ||
| /** | ||
| * Delete Contact Additional Address | ||
| * Delete Additional Address | ||
| */ | ||
| $contactAdditionalAddress = $connector->send(new DeleteAContactAdditionalAddressRequest( | ||
| $additionalAddress = $connector->send(new DeleteAnAdditionalAddressRequest( | ||
| contactId: 1, | ||
| id: 9, | ||
| )); | ||
|
|
||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The example is missing the required
name_additionparameter forCreateEditAdditionalAddressDTO. According to the DTO definition,name_additionis a required parameter (not nullable). Addname_addition: null,or provide a value after thenameparameter to match the DTO constructor signature.