Skip to content

Commit

Permalink
Changes (#111)
Browse files Browse the repository at this point in the history
* use `PresentationDefinition` as value of `kycRequirements`
* change `paymentPresentationDefinitionJwt` to `requiredPaymentDetails`
* change `paymentVerifiablePresentationJwt` to `paymentDetails`
* Add granular status enums, make payment method kind a string enum

---------

Co-authored-by: Phoebe Lew <[email protected]>
  • Loading branch information
mistermoe and phoebe-lew authored Jul 8, 2023
1 parent 82b61d8 commit fcc3dd4
Show file tree
Hide file tree
Showing 11 changed files with 272 additions and 268 deletions.
185 changes: 70 additions & 115 deletions js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tbd54566975/tbdex",
"version": "0.0.11",
"version": "0.0.12",
"type": "module",
"description": "Library that includes type definitions for tbdex messages",
"license": "Apache-2.0",
Expand Down Expand Up @@ -46,8 +46,8 @@
},
"dependencies": {
"ajv": "8.12.0",
"ajv-formats": "2.1.1",
"ulidx": "2.0.0"
"ulidx": "2.0.0",
"@sphereon/pex-models": "2.0.2"
},
"devDependencies": {
"@playwright/test": "1.34.3",
Expand Down
12 changes: 6 additions & 6 deletions js/src/protocol-definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ export const aliceProtocolDefinition = {
}
],
// Alice _or_ the PFI can Close/End the thread here.
Close: CloseRules,
Close : CloseRules,
// OrderStatus can be written to Alice's DWN by someone who wrote RFQ/QuoteResponse (i.e. PFI)
OrderStatus: {
OrderStatus : {
$actions: [
{
who : 'author',
Expand Down Expand Up @@ -112,13 +112,13 @@ export const pfiProtocolDefinition = {
}
],
// Alice _or_ the PFI can Close/End the thread here.
Close: CloseRules,
Close : CloseRules,
// PFI is sending OUT quote responses. no one should be writing QuoteResponse to PFIs.
Quote: {
Quote : {
// PFI is sending OUT OrderStatus. no one should be writing OrderStatus to PFIs.
OrderStatus: { },
OrderStatus : { },
// Alice _or_ the PFI can Close/End the thread here.
Close: CloseRules
Close : CloseRules
}
}
}
Expand Down
Loading

0 comments on commit fcc3dd4

Please sign in to comment.