-
Notifications
You must be signed in to change notification settings - Fork 6
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
✨ [#2179] Display list of Qmatic appointments in profiel #1099
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
ef744ec
:sparkles: [#2179] Add app for Qmatic appointment integration
stevenbal bccc944
:clown_face: [#2179] Add mock endpoint for Qmatic appointments
stevenbal fcd6fde
:sparkles: [#2179] Add Mijn afspraken to Mijn profiel
stevenbal a4e7f8c
:white_check_mark: [#2179] Add tests for Mijn afspraken in profile
stevenbal 6d1313e
:ok_hand: [#2179] PR feedback
stevenbal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
156 changes: 156 additions & 0 deletions
156
...er/apimock/apis/qmatic/calendar-api/v1/customers/externalId/[email protected]/appointments.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
{ | ||
"notifications": [], | ||
"meta": { | ||
"start": "", | ||
"end": "", | ||
"totalResults": 1, | ||
"offset": null, | ||
"limit": null, | ||
"fields": "", | ||
"arguments": {} | ||
}, | ||
"appointmentList": [ | ||
{ | ||
"services": [ | ||
{ | ||
"additionalCustomerDuration": 0, | ||
"duration": 5, | ||
"updated": 1475589228781, | ||
"created": 1475589228595, | ||
"name": "Product 1", | ||
"publicId": "1e0c3d34acb5a4ad0133b2927959e8", | ||
"active": true, | ||
"publicEnabled": true, | ||
"custom": null | ||
} | ||
], | ||
"allDay": false, | ||
"status": 20, | ||
"resource": { | ||
"name": "Resource 1" | ||
}, | ||
"customers": [ | ||
{ | ||
"dateOfBirth": -2206357200000, | ||
"addressState": "Zuid Holland", | ||
"lastName": "Achternaam", | ||
"phone": "06-11223344", | ||
"addressCity": "Plaatsnaam", | ||
"externalId": null, | ||
"addressLine2": null, | ||
"addressLine1": "Straatnaam 1", | ||
"updated": null, | ||
"created": 1478619026558, | ||
"email": "[email protected]", | ||
"name": "Voornaam Achternaam", | ||
"publicId": "f9c6a5fa1b978b4181accd7a6434e4b9", | ||
"firstName": "Voornaam", | ||
"addressCountry": "Nederland", | ||
"custom": null, | ||
"identificationNumber": "1234567890", | ||
"addressZip": "1111AB" | ||
} | ||
], | ||
"blocking": false, | ||
"title": "Online booking", | ||
"start": "2016-11-10T12:30:00.000+00:00", | ||
"created": 1478618716117, | ||
"updated": 1478619027200, | ||
"publicId": "d50517a0ae88cdbc495f7a32e011cb", | ||
"branch": { | ||
"addressState": null, | ||
"phone": null, | ||
"addressCity": "City", | ||
"fullTimeZone": "Europe/Amsterdam", | ||
"timeZone": "Europe/Amsterdam", | ||
"addressLine2": "Street 1", | ||
"addressLine1": "Branch 1", | ||
"updated": 1475589234069, | ||
"created": 1475589234008, | ||
"email": null, | ||
"name": "Branch 1", | ||
"publicId": "f364d92b7fa07a48c4ecc862de30", | ||
"longitude": null, | ||
"branchPrefix": null, | ||
"latitude": null, | ||
"addressCountry": "Netherlands", | ||
"custom": null, | ||
"addressZip": "1111 AA" | ||
}, | ||
"notes": "Geboekt via internet", | ||
"end": "2016-11-10T12:35:00.000+00:00", | ||
"custom": null | ||
}, | ||
{ | ||
"services": [ | ||
{ | ||
"additionalCustomerDuration": 0, | ||
"duration": 5, | ||
"updated": 1475589228781, | ||
"created": 1475589228595, | ||
"name": "Aanvraag paspoort", | ||
"publicId": "f5f0b91cfa6b51c006b49b301abe67", | ||
"active": true, | ||
"publicEnabled": true, | ||
"custom": null | ||
} | ||
], | ||
"allDay": false, | ||
"status": 20, | ||
"resource": { | ||
"name": "Resource 1" | ||
}, | ||
"customers": [ | ||
{ | ||
"dateOfBirth": -2206357200000, | ||
"addressState": "Zuid Holland", | ||
"lastName": "Achternaam", | ||
"phone": "06-11223344", | ||
"addressCity": "Plaatsnaam", | ||
"externalId": null, | ||
"addressLine2": null, | ||
"addressLine1": "Straatnaam 1", | ||
"updated": null, | ||
"created": 1478619026558, | ||
"email": "[email protected]", | ||
"name": "Voornaam Achternaam", | ||
"publicId": "b0e1d5eb8931f9bfee08e81b28e112", | ||
"firstName": "Voornaam", | ||
"addressCountry": "Nederland", | ||
"custom": null, | ||
"identificationNumber": "1234567890", | ||
"addressZip": "1111AB" | ||
} | ||
], | ||
"blocking": false, | ||
"title": "Aanvraag paspoort", | ||
"start": "2018-03-05T16:30:00.000+00:00", | ||
"created": 1478618716117, | ||
"updated": 1478619027200, | ||
"publicId": "80813a4ff5b6dd496dbb4034fd5e37", | ||
"branch": { | ||
"addressState": null, | ||
"phone": null, | ||
"addressCity": "Amsterdam", | ||
"fullTimeZone": "Europe/Amsterdam", | ||
"timeZone": "Europe/Amsterdam", | ||
"addressLine2": "Dam 1", | ||
"addressLine1": "Vestigingsnaam", | ||
"updated": 1475589234069, | ||
"created": 1475589234008, | ||
"email": null, | ||
"name": "Vestigingsnaam", | ||
"publicId": "f364d92b7fa07a48c4ecc862de30", | ||
"longitude": null, | ||
"branchPrefix": null, | ||
"latitude": null, | ||
"addressCountry": "Netherlands", | ||
"custom": null, | ||
"addressZip": "1111 AA" | ||
}, | ||
"notes": "Geboekt via internet", | ||
"end": "2018-03-05T16:30:00.000+00:00", | ||
"custom": null | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,5 @@ def get_config_fields(self): | |
"questions", | ||
"ssd", | ||
"newsletters", | ||
"appointments", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Is it necessary to use PyQuery directly, since you're already using
response.pyquery
, or just more convenient?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.
It actually is necessary, it's a bit weird but for some reason I can't use
.find
and other methods on the element that I get fromcards[0]
directlyThere 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.
This looks familiar: iirc pyquery doesn't wrap recursively like some other api's do.