Skip to content

Commit daf1282

Browse files
make from/to fields required in payments (#302)
1 parent 048b079 commit daf1282

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@0xpolygonid/js-sdk",
3-
"version": "1.27.0",
3+
"version": "1.27.1",
44
"description": "SDK to work with Polygon ID",
55
"main": "dist/node/cjs/index.js",
66
"module": "dist/node/esm/index.js",

src/iden3comm/types/protocol/payment.ts

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ import { PROTOCOL_MESSAGE_TYPE } from '../../constants';
1010
/** @beta PaymentRequestMessage is struct the represents payment-request message */
1111
export type PaymentRequestMessage = BasicMessage & {
1212
body: PaymentRequestMessageBody;
13+
from: string;
14+
to: string;
1315
type: typeof PROTOCOL_MESSAGE_TYPE.PAYMENT_REQUEST_MESSAGE_TYPE;
1416
};
1517

@@ -85,6 +87,8 @@ export type EthereumEip712Signature2021 = {
8587
/** @beta PaymentMessage is struct the represents payment message */
8688
export type PaymentMessage = BasicMessage & {
8789
body: PaymentMessageBody;
90+
from: string;
91+
to: string;
8892
type: typeof PROTOCOL_MESSAGE_TYPE.PAYMENT_MESSAGE_TYPE;
8993
};
9094

0 commit comments

Comments
 (0)