@peac/mappings-ucp 0.12.0-preview.2 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +16 -1
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -51,7 +51,22 @@ const claims = mapUcpOrderToReceipt({
51
51
  });
52
52
 
53
53
  // Sign with @peac/protocol
54
- const receipt = await issue(claims, privateKey, kid);
54
+ const { jws } = await issue({
55
+ iss: 'https://platform.example.com',
56
+ kind: 'evidence',
57
+ type: 'org.peacprotocol/payment',
58
+ pillars: ['commerce'],
59
+ extensions: {
60
+ 'org.peacprotocol/commerce': {
61
+ payment_rail: 'ucp',
62
+ amount_minor: String(claims.amount),
63
+ currency: claims.currency,
64
+ reference: claims.reference,
65
+ },
66
+ },
67
+ privateKey,
68
+ kid,
69
+ });
55
70
  ```
56
71
 
57
72
  ### Create Dispute Evidence
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peac/mappings-ucp",
3
- "version": "0.12.0-preview.2",
3
+ "version": "0.12.1",
4
4
  "description": "Google Universal Commerce Protocol (UCP) mapping to PEAC receipts and dispute evidence",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -38,8 +38,8 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "jose": "^5.2.0",
41
- "@peac/kernel": "0.12.0-preview.2",
42
- "@peac/schema": "0.12.0-preview.2"
41
+ "@peac/kernel": "0.12.1",
42
+ "@peac/schema": "0.12.1"
43
43
  },
44
44
  "devDependencies": {
45
45
  "typescript": "^5.3.0",