Skip to content

Commit

Permalink
Updated Auto Generated Code
Browse files Browse the repository at this point in the history
  • Loading branch information
bajb committed Jan 12, 2023
1 parent 4a2e6c9 commit f4c0ac5
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Definitions/FortifiApiDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class FortifiApiDefinition extends ApiDefinition
public function __construct()
{
$this->setTitle('Fortifi API');
$this->setVersion('3.119.0');
$this->setVersion('3.120.0');
$this->setDescription(<<<DESCRIPTION
The second version of the Fortifi API is an exciting step forward towards
making it easier for businesses to have open access to their data. We created it
Expand Down
29 changes: 29 additions & 0 deletions src/Payloads/CreateInteractionInvitationPayload.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class CreateInteractionInvitationPayload
protected $_journeyTrackingFid;
protected $_verificationFid;
protected $_initialMessage;
protected $_language;

public function hydrate($data)
{
Expand Down Expand Up @@ -41,6 +42,10 @@ public function hydrate($data)
{
$this->_initialMessage = (string)$data["initialMessage"];
}
if(isset($data["language"]))
{
$this->_language = (string)$data["language"];
}
return $this;
}

Expand All @@ -56,6 +61,7 @@ public function jsonSerialize()
"journeyTrackingFid" => $this->_journeyTrackingFid,
"verificationFid" => $this->_verificationFid,
"initialMessage" => $this->_initialMessage,
"language" => $this->_language,
]
);
}
Expand Down Expand Up @@ -197,4 +203,27 @@ public function getInitialMessage($default = null, $trim = true)
$value = $this->_initialMessage ?: $default;
return $trim ? Strings::ntrim($value) : $value;
}

/**
* @param string $value
*
* @return $this
*/
public function setLanguage(?string $value)
{
$this->_language = $value;
return $this;
}

/**
* @param mixed $default
* @param bool $trim Trim Value
*
* @return string
*/
public function getLanguage($default = null, $trim = true)
{
$value = $this->_language ?: $default;
return $trim ? Strings::ntrim($value) : $value;
}
}
4 changes: 3 additions & 1 deletion swagger.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
swagger: '2.0'
info:
title: Fortifi API
version: '3.119.0'
version: '3.120.0'
termsOfService: 'https://fortifi.io/legal/terms/api'
description: >
The second version of the Fortifi API is an exciting step forward towards
Expand Down Expand Up @@ -12516,6 +12516,8 @@ definitions:
type: string
initialMessage:
type: string
language:
type: string

InteractionInviteStatusResponse:
properties:
Expand Down

0 comments on commit f4c0ac5

Please sign in to comment.