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.
This pull request primarily updates the
ExchangesApiProvider
andPfiStructureTest
classes in thesite/testsuites/testsuite-kotlin/src/test/kotlin/docs/tbdex/pfi
directory. The changes enable thewrite
method to handle areplyTo
parameter, which is used to provide callback functionality. Thewrite
method now inserts callback data into thedataProvider
ifreplyTo
is not empty. Additionally, thePFI initializes routes
test inPfiStructureTest
has been updated to pass thereplyTo
parameter to thewrite
method.Changes to
ExchangesApiProvider
:site/testsuites/testsuite-kotlin/src/test/kotlin/docs/tbdex/pfi/ExchangesApiProvider.kt
: Thewrite
method now accepts areplyTo
parameter with a default value of an empty string.site/testsuites/testsuite-kotlin/src/test/kotlin/docs/tbdex/pfi/ExchangesApiProvider.kt
: IfreplyTo
is not empty, thewrite
method creates acallbackData
map and inserts it intodataProvider
.Changes to
PfiStructureTest
:site/testsuites/testsuite-kotlin/src/test/kotlin/docs/tbdex/pfi/PfiStructureTest.kt
: ThePFI initializes routes
test now passesreplyTo
to thewrite
method. IfreplyTo
is null, an empty string is passed instead.