-
Notifications
You must be signed in to change notification settings - Fork 10
Add new /enquiry endpoint to channel api, also add new inbound flag for /summary #36
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
Open
johnjoey
wants to merge
7
commits into
sturents:master
Choose a base branch
from
johnjoey:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
7fdc0cd
add enquiry endpoint
0a1ea03
add inbound flag
ea0a18b
update endpoint description
4d7daa3
version query param is not required
1de8bdc
add body to auth for channel
460d143
channel_id query param
a4a9a76
change enquiry flag name
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 hidden or 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 hidden or 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,292 @@ | ||
| <?php | ||
| namespace SturentsLib\Api\Models; | ||
|
|
||
| /** | ||
| * ** This file was generated automatically, you might want to avoid editing it ** | ||
| */ | ||
| class EnquiryCreation extends SwaggerModel | ||
| { | ||
| /** | ||
| * Plain (non-hashed) house id | ||
| * @var int | ||
| * @required | ||
| */ | ||
| protected $property_id; | ||
|
|
||
| /** | ||
| * Hashed availability id | ||
| * @var string | ||
| * @required | ||
| */ | ||
| protected $contract_id; | ||
|
|
||
| /** | ||
| * @var string | ||
| * @required | ||
| */ | ||
| protected $first_name; | ||
|
|
||
| /** | ||
| * @var string | ||
| * @required | ||
| */ | ||
| protected $last_name; | ||
|
|
||
| /** | ||
| * @var string | ||
| * @required | ||
| */ | ||
| protected $email; | ||
|
|
||
| /** | ||
| * @var string | ||
| * @required | ||
| */ | ||
| protected $phone; | ||
|
|
||
| /** | ||
| * @var string | ||
| * @required | ||
| */ | ||
| protected $tenant_type; | ||
|
|
||
| /** | ||
| * @var string | ||
| * @required | ||
| */ | ||
| protected $enquiry_method; | ||
|
|
||
| /** | ||
| * @var string | ||
| * @required | ||
| */ | ||
| protected $enquiry_type; | ||
|
|
||
| /** | ||
| * Optional free-text message; used as the enquiry subject if provided, | ||
| * otherwise a label derived from enquiry_type is used | ||
| * | ||
| * @var string | ||
| */ | ||
| protected $message = ''; | ||
|
|
||
|
|
||
| /** | ||
| * @return int | ||
| */ | ||
| public function getPropertyId() | ||
| { | ||
| return $this->property_id; | ||
| } | ||
|
|
||
|
|
||
| /** | ||
| * @param int $property_id | ||
| * | ||
| * @return $this | ||
| */ | ||
| public function setPropertyId($property_id) | ||
| { | ||
| $this->property_id = $property_id; | ||
|
|
||
| return $this; | ||
| } | ||
|
|
||
|
|
||
| /** | ||
| * @return string | ||
| */ | ||
| public function getContractId() | ||
| { | ||
| return $this->contract_id; | ||
| } | ||
|
|
||
|
|
||
| /** | ||
| * @param string $contract_id | ||
| * | ||
| * @return $this | ||
| */ | ||
| public function setContractId($contract_id) | ||
| { | ||
| $this->contract_id = $contract_id; | ||
|
|
||
| return $this; | ||
| } | ||
|
|
||
|
|
||
| /** | ||
| * @return string | ||
| */ | ||
| public function getFirstName() | ||
| { | ||
| return $this->first_name; | ||
| } | ||
|
|
||
|
|
||
| /** | ||
| * @param string $first_name | ||
| * | ||
| * @return $this | ||
| */ | ||
| public function setFirstName($first_name) | ||
| { | ||
| $this->first_name = $first_name; | ||
|
|
||
| return $this; | ||
| } | ||
|
|
||
|
|
||
| /** | ||
| * @return string | ||
| */ | ||
| public function getLastName() | ||
| { | ||
| return $this->last_name; | ||
| } | ||
|
|
||
|
|
||
| /** | ||
| * @param string $last_name | ||
| * | ||
| * @return $this | ||
| */ | ||
| public function setLastName($last_name) | ||
| { | ||
| $this->last_name = $last_name; | ||
|
|
||
| return $this; | ||
| } | ||
|
|
||
|
|
||
| /** | ||
| * @return string | ||
| */ | ||
| public function getEmail() | ||
| { | ||
| return $this->email; | ||
| } | ||
|
|
||
|
|
||
| /** | ||
| * @param string $email | ||
| * | ||
| * @return $this | ||
| */ | ||
| public function setEmail($email) | ||
| { | ||
| $this->email = $email; | ||
|
|
||
| return $this; | ||
| } | ||
|
|
||
|
|
||
| /** | ||
| * @return string | ||
| */ | ||
| public function getPhone() | ||
| { | ||
| return $this->phone; | ||
| } | ||
|
|
||
|
|
||
| /** | ||
| * @param string $phone | ||
| * | ||
| * @return $this | ||
| */ | ||
| public function setPhone($phone) | ||
| { | ||
| $this->phone = $phone; | ||
|
|
||
| return $this; | ||
| } | ||
|
|
||
|
|
||
| /** | ||
| * @return string | ||
| */ | ||
| public function getTenantType() | ||
| { | ||
| return $this->tenant_type; | ||
| } | ||
|
|
||
|
|
||
| /** | ||
| * @param string $tenant_type | ||
| * | ||
| * @return $this | ||
| */ | ||
| public function setTenantType($tenant_type) | ||
| { | ||
| $this->tenant_type = $tenant_type; | ||
|
|
||
| return $this; | ||
| } | ||
|
|
||
|
|
||
| /** | ||
| * @return string | ||
| */ | ||
| public function getEnquiryMethod() | ||
| { | ||
| return $this->enquiry_method; | ||
| } | ||
|
|
||
|
|
||
| /** | ||
| * @param string $enquiry_method | ||
| * | ||
| * @return $this | ||
| */ | ||
| public function setEnquiryMethod($enquiry_method) | ||
| { | ||
| $this->enquiry_method = $enquiry_method; | ||
|
|
||
| return $this; | ||
| } | ||
|
|
||
|
|
||
| /** | ||
| * @return string | ||
| */ | ||
| public function getEnquiryType() | ||
| { | ||
| return $this->enquiry_type; | ||
| } | ||
|
|
||
|
|
||
| /** | ||
| * @param string $enquiry_type | ||
| * | ||
| * @return $this | ||
| */ | ||
| public function setEnquiryType($enquiry_type) | ||
| { | ||
| $this->enquiry_type = $enquiry_type; | ||
|
|
||
| return $this; | ||
| } | ||
|
|
||
|
|
||
| /** | ||
| * @return string | ||
| */ | ||
| public function getMessage() | ||
| { | ||
| return $this->message; | ||
| } | ||
|
|
||
|
|
||
| /** | ||
| * @param string $message | ||
| * | ||
| * @return $this | ||
| */ | ||
| public function setMessage($message) | ||
| { | ||
| $this->message = $message; | ||
|
|
||
| return $this; | ||
| } | ||
| } |
This file contains hidden or 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,36 @@ | ||
| <?php | ||
| namespace SturentsLib\Api\Models; | ||
|
|
||
| /** | ||
| * ** This file was generated automatically, you might want to avoid editing it ** | ||
| */ | ||
| class EnquirySaved extends SwaggerModel | ||
| { | ||
| /** | ||
| * Hashed id of the created enquiry | ||
| * @var string | ||
| */ | ||
| protected $enquiry_id = ''; | ||
|
|
||
|
|
||
| /** | ||
| * @return string | ||
| */ | ||
| public function getEnquiryId() | ||
| { | ||
| return $this->enquiry_id; | ||
| } | ||
|
|
||
|
|
||
| /** | ||
| * @param string $enquiry_id | ||
| * | ||
| * @return $this | ||
| */ | ||
| public function setEnquiryId($enquiry_id) | ||
| { | ||
| $this->enquiry_id = $enquiry_id; | ||
|
|
||
| return $this; | ||
| } | ||
| } |
This file contains hidden or 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.
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.
Now channel has an inbound endpoint, need to include body in auth hash