-
Notifications
You must be signed in to change notification settings - Fork 19
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
Release 3.0.0 #137
Release 3.0.0 #137
Conversation
Merge Release 2.5.0 -> development
Co-Authored-By: Ed Harrod <echarrod@users.noreply.github.com>
Merge development_v3 -> development
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.
Would be good if we can add a link to https://semver.org/ at the top of the release notes 👍
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.
Looks good to me! 👍
Kudos, SonarCloud Quality Gate passed! 0 Bugs |
Removed
Yoti\Aml\Address
::setCountry()
::setPostcode()
Yoti\Aml\Country::setCode()
Yoti\Aml\Profile
::setGivenNames()
::setFamilyName()
::setSsn()
::setAmlAddress()
YotiClient::getActivityDetails()
- a token must always be provided to this method. Removed fallback on$_GET['token']
Yoti\Util\Age
namespaceYoti\Http\Request
methods replaced by::getMessage()
::getMethod()
::getUrl()
::getHeaders()
::getPayload()
Yoti\Http\RequestBuilder
- removed methods:::withHandler()
replaced by::withClient()
::withSdkIdentifier()
now set as config::withSdkVersion()
now set as configYoti\Profile\BaseProfile::getAttributes()
that previously returned map ofarray<string, Attribute>
is removed. Replaced by::getAttributesList()
, which returnsAttribute[]
to allow multiple attributes with the same nameAttributeListConverter::convertToYotiAttributesMap()
is removed - replaced by::convertToYotiAttributesList()
AttributeListConverter::convertToProtobufAttributeList()
is removedYoti\Util\Profile\AttributeConverter::convertTimestampToDate()
- replaced byYoti\Util\DateTime::stringToDateTime()
Yoti\YotiClient
constants removed:OUTCOME_SUCCESS
,DEFAULT_CONNECT_API
,CONNECT_BASE_URL
,DASHBOARD_URL
,AML_CHECK_ENDPOINT
,PROFILE_REQUEST_ENDPOINT
,SHARE_URL_ENDPOINT
,YOTI_AUTH_HEADER_KEY
Yoti\YotiClient
setters for optional settings, replaced by__construct()
$options
:::setSdkIdentifier()
- now set with$options['sdk.identifier']
::setSdkVersion()
- now set with$options['sdk.version']
::setRequestHandler()
- HTTP client now set with$options['http.client']
Yoti\YotiClient::__construct()
argument$connectApi
is removed, and now set with$options['api.url']
Added
guzzlehttp/guzzle
- replaces the custom cURL request handler.psr/http-client
- to allow for a custom PSR-18 HTTP client.psr/http-message
- PSR-7 messages to allow for a custom PSR-18 HTTP client.Yoti\Http\Request::getMessage(): \Psr\Http\Message\RequestInterface
Changed
Yoti\Entity
namespace into their corresponding namespaces.Yoti\Entity\Country
=>Yoti\Aml\Country
Yoti\Entity\AmlAddress
=>Yoti\Aml\Address
Yoti\Entity\AmlProfile
=>Yoti\Aml\Profile
instanceof
)Yoti\ActivityDetails
=>Yoti\Profile\ActivityDetails
Yoti\Entity\Profile
=>Yoti\Profile\UserProfile
Yoti\Entity\AgeVerification
=>Yoti\Profile\Attribute\AgeVerification
Yoti\Entity\Anchor
=>Yoti\Profile\Attribute\Anchor
Yoti\Entity\ApplicationProfile
=>Yoti\Profile\ApplicationProfile
Yoti\Entity\Attribute
=>Yoti\Profile\Attribute
Yoti\Entity\DocumentDetails
=>Yoti\Profile\Attribute\DocumentDetails
Yoti\Entity\Image
=>Yoti\Media\Image
Yoti\Entity\SignedTimeStamp
=>Yoti\Profile\Attribute\SignedTimeStamp
Yoti\Http\AmlResult
=>Yoti\Aml\Result
Yoti\Http\ShareUrlResult
=>Yoti\ShareUrl\Result
Yoti\Entity\AttributeDefinition
=>Yoti\Profile\ExtraData\AttributeDefinition
Yoti\Entity\AttributeIssuanceDetails
=>Yoti\Profile\ExtraData\AttributeIssuanceDetails
Yoti\Entity\BaseProfile
=>Yoti\Profile\BaseProfile
Yoti\Entity\ExtraData
=>Yoti\Profile\ExtraData
Yoti\Entity\MultiValue
=>Yoti\Profile\Attribute\MultiValue
Yoti\Entity\Receipt
=>Yoti\Profile\Receipt
Yoti\Media\Image
is now abstract and is replaced by:Yoti\Media\Image\Jpeg
Yoti\Media\Image\Png
Attrpubapi
=>Yoti\Protobuf\Attrpubapi
Compubapi
=>Yoti\Protobuf\Compubapi
Sharepubapi
=>Yoti\Protobuf\Sharepubapi
composer.json
phpseclib/phpseclib
google/protobuf
Profile::AGE_OVER_FORMAT
- replaced byUserProfile::AGE_OVER
Profile::AGE_UNDER_FORMAT
- replaced byUserProfile::AGE_UNDER
Yoti\Profile\Util\Attribute\AnchorConverter::convert()
now returnsYoti\Profile\Attribute\Anchor
Yoti\Profile\Util\Attribute\AnchorListConverter::convert()
now returnsYoti\Profile\Attribute\Anchor[]
(array)Yoti\Profile\Attribute
now expects an array of anchors, instead ofarray<string, Yoti\Profile\Attribute\Anchor[]>
SOURCE
/VERIFIER
Yoti\Http\Request::execute()
now returnsPsr\Http\Message\ResponseInterface
instead ofYoti\Http\Response
Yoti\Http\Payload::__construct()
now expectsPsr\Http\Message\StreamInterface
. Use the following methods to create payloads::fromJsonData()
::fromString()
::fromStream()
Fixed
\DateTime
instance with zero timestamp