@mbanq/core-sdk-js 1.0.0-alpha.13 → 1.0.0-alpha.14
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 +10 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -44,12 +44,13 @@ Choose your preferred API pattern:
|
|
|
44
44
|
|
|
45
45
|
### Modern Fluent API
|
|
46
46
|
```javascript
|
|
47
|
-
import { CoreSDK } from '@
|
|
47
|
+
import { CoreSDK } from '@mbanq/core-sdk-js';
|
|
48
48
|
|
|
49
49
|
const coreSDK = new CoreSDK({
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
secret: 'your-jwt-secret',
|
|
51
|
+
signee: 'YOUR-SIGNEE',
|
|
52
|
+
baseUrl: 'https://api.cloud.mbanq.com',
|
|
53
|
+
tenantId: 'your-tenant-id'
|
|
53
54
|
});
|
|
54
55
|
|
|
55
56
|
// Create payment using fluent API
|
|
@@ -62,12 +63,13 @@ const payment = await coreSDK.payment.create({
|
|
|
62
63
|
|
|
63
64
|
### Command Pattern
|
|
64
65
|
```javascript
|
|
65
|
-
import { CoreSDK, GetTransfers } from '@
|
|
66
|
+
import { CoreSDK, GetTransfers } from '@mbanq/core-sdk-js';
|
|
66
67
|
|
|
67
68
|
const coreSDK = new CoreSDK({
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
secret: 'your-jwt-secret',
|
|
70
|
+
signee: 'YOUR-SIGNEE',
|
|
71
|
+
baseUrl: 'https://api.cloud.mbanq.com',
|
|
72
|
+
tenantId: 'your-tenant-id'
|
|
71
73
|
});
|
|
72
74
|
|
|
73
75
|
// Get transfers using command pattern
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mbanq/core-sdk-js",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.14",
|
|
4
4
|
"description": "A comprehensive JavaScript SDK for interacting with the Mbanq payment API. Features type-safe payment operations, multi-tenant support, and Zod validation.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"publishConfig": {
|