@soledgic/sdk 0.2.0 → 0.2.2
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.
- package/README.md +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,15 +22,15 @@ It does not wrap the dashboard/operator control-plane routes such as `/api/ident
|
|
|
22
22
|
## Installation
|
|
23
23
|
|
|
24
24
|
```bash
|
|
25
|
-
npm install @soledgic/sdk
|
|
25
|
+
npm install @soledgic/sdk@0.2.0
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
## Quick Start
|
|
29
29
|
|
|
30
30
|
```ts
|
|
31
|
-
import
|
|
31
|
+
import SoledgicClient from '@soledgic/sdk'
|
|
32
32
|
|
|
33
|
-
const soledgic = new
|
|
33
|
+
const soledgic = new SoledgicClient({
|
|
34
34
|
apiKey: process.env.SOLEDGIC_API_KEY!,
|
|
35
35
|
apiVersion: '2026-03-01',
|
|
36
36
|
})
|
|
@@ -175,7 +175,7 @@ If your integration retries requests or replays processor events, treat `referen
|
|
|
175
175
|
## Error Handling
|
|
176
176
|
|
|
177
177
|
```ts
|
|
178
|
-
import
|
|
178
|
+
import { SoledgicError } from '@soledgic/sdk'
|
|
179
179
|
|
|
180
180
|
try {
|
|
181
181
|
await soledgic.createPayout({
|
package/package.json
CHANGED