@ariary/ariary 3.0.6 → 3.0.7
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 +5 -12
- package/package.json +17 -19
package/README.md
CHANGED
|
@@ -49,12 +49,14 @@ const result = await Ariari.tasks({
|
|
|
49
49
|
|
|
50
50
|
const fetchTasks = (from) => Ariari.tasks({ from, count: 20, order: -1 });
|
|
51
51
|
|
|
52
|
+
// Get next and previous pages
|
|
52
53
|
const nextResult = await fetchTasks(result.next);
|
|
53
54
|
const prevResult = await fetchTasks(result.prev);
|
|
54
55
|
```
|
|
55
56
|
|
|
56
57
|
## Payment
|
|
57
58
|
|
|
59
|
+
### Create Payment
|
|
58
60
|
|
|
59
61
|
```typescript
|
|
60
62
|
const payment = await Ariari.payment.create({
|
|
@@ -62,18 +64,6 @@ const payment = await Ariari.payment.create({
|
|
|
62
64
|
amount: 5000,
|
|
63
65
|
projectId: 'your-project-id'
|
|
64
66
|
});
|
|
65
|
-
|
|
66
|
-
// Get payment details
|
|
67
|
-
await payment.get();
|
|
68
|
-
|
|
69
|
-
// Update payment
|
|
70
|
-
await payment.updateRest('TICKET123');
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
### Get All Payments
|
|
74
|
-
|
|
75
|
-
```typescript
|
|
76
|
-
const payments = await Ariari.payment.getAll();
|
|
77
67
|
```
|
|
78
68
|
|
|
79
69
|
### Get Payment by ID
|
|
@@ -83,6 +73,9 @@ const payment = Ariari.payment.getById('payment-id-123');
|
|
|
83
73
|
await payment.get();
|
|
84
74
|
await payment.updateRest('TICKET123');
|
|
85
75
|
```
|
|
76
|
+
|
|
77
|
+
### Payment Operations
|
|
78
|
+
|
|
86
79
|
```typescript
|
|
87
80
|
const payment = await Ariari.payment.payment({
|
|
88
81
|
phone: '261345678901',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ariary/ariary",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.7",
|
|
4
4
|
"description": "SDK officiel pour l'API de paiement Ariary",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -15,24 +15,22 @@
|
|
|
15
15
|
"files": [
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
18
|
-
"tsup":
|
|
19
|
-
{
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
],
|
|
18
|
+
"tsup": {
|
|
19
|
+
"entry": {
|
|
20
|
+
"index": "src/index.ts"
|
|
21
|
+
},
|
|
22
|
+
"format": [
|
|
23
|
+
"cjs",
|
|
24
|
+
"esm"
|
|
25
|
+
],
|
|
26
|
+
"outDir": "dist",
|
|
27
|
+
"dts": true,
|
|
28
|
+
"splitting": false,
|
|
29
|
+
"sourcemap": false,
|
|
30
|
+
"clean": true,
|
|
31
|
+
"minify": false,
|
|
32
|
+
"exclude": ["README.md"]
|
|
33
|
+
},
|
|
36
34
|
"scripts": {
|
|
37
35
|
"build": "tsup",
|
|
38
36
|
"test": "echo \"Error: no test specified\" && exit 1"
|