@first-iraqi-bank/sdk 0.1.1 → 0.1.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 +3 -22
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -42,30 +42,10 @@ pnpm add @first-iraqi-bank/sdk
|
|
|
42
42
|
|
|
43
43
|
### deno
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
```ts
|
|
48
|
-
import { PaymentSDK } from "npm:@first-iraqi-bank/sdk@pre/payment"
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
Or after adding the package to the import maps of your `deno.json` file:
|
|
52
|
-
|
|
53
|
-
```json
|
|
54
|
-
{
|
|
55
|
-
"imports": {
|
|
56
|
-
"@first-iraqi-bank/sdk": "npm:@first-iraqi-bank/sdk@pre"
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
import using the name of the package only:
|
|
62
|
-
|
|
63
|
-
```ts
|
|
64
|
-
import { PaymentSDK } from "@first-iraqi-bank/sdk/payment"
|
|
45
|
+
```sh
|
|
46
|
+
deno add npm:@first-iraqi-bank/sdk
|
|
65
47
|
```
|
|
66
48
|
|
|
67
|
-
in `deno.json`:
|
|
68
|
-
|
|
69
49
|
### bun
|
|
70
50
|
|
|
71
51
|
```sh
|
|
@@ -249,6 +229,7 @@ const res = await FIB.refundPayment(paymentId, accessToken)
|
|
|
249
229
|
type PaymentInput = {
|
|
250
230
|
amount: number
|
|
251
231
|
description?: string
|
|
232
|
+
redirectUri?: URL
|
|
252
233
|
statusCallbackUrl?: URL
|
|
253
234
|
expiresIn?: Duration
|
|
254
235
|
refundableFor?: Duration
|