@faiber/faiber-payment 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 +35 -11
- package/dist/.tsbuildinfo +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/operations.d.ts +41 -0
- package/dist/operations.d.ts.map +1 -0
- package/dist/operations.js +76 -0
- package/dist/operations.js.map +1 -0
- package/dist/operations.types.d.ts +204 -0
- package/dist/operations.types.d.ts.map +1 -0
- package/dist/operations.types.js +2 -0
- package/dist/operations.types.js.map +1 -0
- package/package.json +20 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @faiber/faiber-payment
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Gateway administration, payment creation, transaction lookup, daily income, browser callbacks, and payment status pages.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -8,7 +8,7 @@ Typed, framework-neutral TypeScript client for Faiber payment gateways, payment
|
|
|
8
8
|
npm install @faiber/faiber-payment
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
##
|
|
11
|
+
## Configure
|
|
12
12
|
|
|
13
13
|
```ts
|
|
14
14
|
import { FaiberClient, MemoryTokenProvider } from "@faiber/sdk-core";
|
|
@@ -23,22 +23,46 @@ const client = new FaiberClient("payment", {
|
|
|
23
23
|
const api = new PaymentApi(client);
|
|
24
24
|
|
|
25
25
|
const gateways = await api.gateways.list();
|
|
26
|
+
const payment = await api.createPayment({
|
|
27
|
+
amount: 4900,
|
|
28
|
+
gateway_id: gatewayId,
|
|
29
|
+
});
|
|
26
30
|
```
|
|
27
31
|
|
|
28
|
-
|
|
32
|
+
## Complete capability
|
|
29
33
|
|
|
30
|
-
|
|
34
|
+
This package exposes 18 registered operations from the payments service. Common workflows have concise methods on `api`; every registered backend route is also available as a named function on `api.operations`. Generated operation input, query, response, path, verb, and permission contracts are exported from `operations.types`.
|
|
31
35
|
|
|
32
|
-
|
|
36
|
+
| Area | Operations | HTTP methods |
|
|
37
|
+
|---|---:|---|
|
|
38
|
+
| `gateway` | 6 | `DELETE`, `GET`, `PATCH`, `POST` |
|
|
39
|
+
| `integration` | 2 | `GET` |
|
|
40
|
+
| `payment` | 1 | `POST` |
|
|
41
|
+
| `payment-web` | 3 | `GET`, `POST` |
|
|
42
|
+
| `router` | 3 | `GET` |
|
|
43
|
+
| `session` | 1 | `GET` |
|
|
44
|
+
| `transaction` | 2 | `GET` |
|
|
33
45
|
|
|
34
|
-
|
|
46
|
+
Browser callback and verification routes are exposed in `api.operations`; callers should preserve the provider query parameters returned by the payment service.
|
|
47
|
+
|
|
48
|
+
## Authentication and authorization
|
|
49
|
+
|
|
50
|
+
Use a `TokenProvider` to forward the signed-in user's Bearer token, or enable `withCredentials` for secure HttpOnly cookie sessions. Permission requirements copied from service route guards are included in each operation's JSDoc. The SDK does not embed API keys, credentials, localhost URLs, sandbox hosts, or production hosts.
|
|
51
|
+
|
|
52
|
+
## Inputs, queries, responses, and transport
|
|
35
53
|
|
|
36
|
-
Axios
|
|
54
|
+
All methods return the complete Axios response, including status, headers, and request IDs. Request bodies and query objects are named exported interfaces. Nested pagination uses keys such as `page[number]` and `page[size]` where required by the service. Standard Axios request options, headers, timeouts, adapters, interceptors, and `AbortSignal` cancellation are supported as the final argument.
|
|
55
|
+
|
|
56
|
+
Generic REST resources are capability-guarded. Calling a legacy method that the service does not register throws `UnsupportedOperationError` before sending a request instead of producing a backend `405`.
|
|
57
|
+
|
|
58
|
+
## Errors and cancellation
|
|
37
59
|
|
|
38
60
|
```ts
|
|
39
|
-
|
|
61
|
+
try {
|
|
62
|
+
await api.client.get("/health", undefined, { signal: AbortSignal.timeout(5_000) });
|
|
63
|
+
} catch (error) {
|
|
64
|
+
// Axios errors retain response.status and the service error body.
|
|
65
|
+
}
|
|
40
66
|
```
|
|
41
67
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
Install `@faiber/faiber-ts-sdk` when an application uses multiple Faiber services. The complete package provides shared configuration, authentication, uploads, and error handling across services.
|
|
68
|
+
Use `@faiber/faiber-ts-sdk` when one application needs multiple Faiber services with one configuration.
|
package/dist/.tsbuildinfo
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/axios/index.d.ts","../../core/dist/types.d.ts","../../core/dist/env.d.ts","../../core/dist/auth.d.ts","../../core/dist/client.d.ts","../../core/dist/resource.d.ts","../../core/dist/openapi.d.ts","../../core/dist/index.d.ts","../src/types.ts","../src/index.ts"],"fileIdsList":[[61],[60,61],[60,61,62,63,64,65,66],[60,61,64],[60],[67,68],[67]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2e80ee7a49e8ac312cc11b77f1475804bee36b3b2bc896bead8b6e1266befb43","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"2343ec253c90c370449755739733f5f429f58cffdb51a50977bb4a042012fa8f","impliedFormat":99},{"version":"8cb9e8d47cc3a150fe2b7eabc95375a7e69a50774be9b8e4107d1d436af9b593","impliedFormat":99},{"version":"82065c5512d8d6f81b26cf13ea9ecd3e558be9560f7b5c62260858219ecd87f7","impliedFormat":99},{"version":"ed17ed1b2bcf384c88bc6cec6b427989b98db99fc7ad35a50605501a463bbc53","impliedFormat":99},{"version":"82bf4efcca8ab8764a91ac126c0af605ab6717ee94b2316461b5fa388b27e165","impliedFormat":99},{"version":"b060635c1b555ff21aa5bab5b038e15d67700d6bec6738323a443715931589f1","impliedFormat":99},{"version":"98cf7f2f15a4c87fca87c49b72e140b49ad079ff077d157ee81a9466173854ba","impliedFormat":99},{"version":"66a0cb4d019dd780c2fb5c2942778929ec55715bb5a0f3b80aac4c0b92e35d16","impliedFormat":99},{"version":"046a2d1ebcdf69954c1f1d3437f2a56ea6f9266c0cac215884573fac88b7bb67","impliedFormat":99},{"version":"2526dff15d8b2d35344cd991657af4159507c751d4c8e9a4ba2178cb730d30c7","signature":"99c28e536db3d682a54a775923343baf9776544b85dba7734f7a0938161db85b","impliedFormat":99}],"root":[68,69],"options":{"composite":true,"declaration":true,"declarationMap":true,"exactOptionalPropertyTypes":true,"module":199,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[63,1],[64,2],[62,1],[67,3],[66,4],[65,4],[61,5],[69,6],[68,7]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
|
|
1
|
+
{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/axios/index.d.ts","../../core/dist/types.d.ts","../../core/dist/env.d.ts","../../core/dist/auth.d.ts","../../core/dist/client.d.ts","../../core/dist/resource.d.ts","../../core/dist/openapi.d.ts","../../core/dist/index.d.ts","../src/types.ts","../src/operations.types.ts","../src/operations.ts","../src/index.ts"],"fileIdsList":[[61],[60,61],[60,61,62,63,64,65,66],[60,61,64],[60],[67,68,69,70],[67,69],[67]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2e80ee7a49e8ac312cc11b77f1475804bee36b3b2bc896bead8b6e1266befb43","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"2343ec253c90c370449755739733f5f429f58cffdb51a50977bb4a042012fa8f","impliedFormat":99},{"version":"138724776c2b7fdf331300e22dfdfb8890d0400164f4996c02062e4e5d117927","impliedFormat":99},{"version":"82065c5512d8d6f81b26cf13ea9ecd3e558be9560f7b5c62260858219ecd87f7","impliedFormat":99},{"version":"ed17ed1b2bcf384c88bc6cec6b427989b98db99fc7ad35a50605501a463bbc53","impliedFormat":99},{"version":"82bf4efcca8ab8764a91ac126c0af605ab6717ee94b2316461b5fa388b27e165","impliedFormat":99},{"version":"82ffc9a1d95766c8f6f6bb4316b1d83e9d6a1d4ec41057d1a897cca70176bfc1","impliedFormat":99},{"version":"3f5eeb0a84713ccf640b9a6af4629e006f59d7629abc3fc95af2efb062fd0b83","impliedFormat":99},{"version":"66a0cb4d019dd780c2fb5c2942778929ec55715bb5a0f3b80aac4c0b92e35d16","impliedFormat":99},{"version":"046a2d1ebcdf69954c1f1d3437f2a56ea6f9266c0cac215884573fac88b7bb67","impliedFormat":99},{"version":"e4cd2017cbf2cf8db3216753e9351fae16ca9feeeb1b6de6e828199839150469","signature":"f88bc543863b777789067e489d862932ca5b5d166774a1f24a099b7752b92667","impliedFormat":99},{"version":"1a1f651dc636052f357bc6d10e917c564a15697b7c7a8730bec6b3a2020d459e","signature":"f16472b131d6fc9e5709181dd36fbb7d70d1e246441eec5eedf597092fd67a3c","impliedFormat":99},{"version":"ddb0564957be384adbd745a3f4513a0f967707d8d7c427f321982ecec66f4092","signature":"1766531736a06805d568da59f7640b1e8b0ba62db8c73361bfbb7e99f1d2a6cf","impliedFormat":99}],"root":[[68,71]],"options":{"composite":true,"declaration":true,"declarationMap":true,"exactOptionalPropertyTypes":true,"module":199,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":9,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[63,1],[64,2],[62,1],[67,3],[66,4],[65,4],[61,5],[71,6],[70,7],[69,8],[68,8]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { RestResource, ServiceApi, type RequestOptions } from "@faiber/sdk-core";
|
|
2
2
|
import type { CreateGatewayInput, CreatePaymentInput, CreatePaymentResponse, DailyIncomeResponse, Gateway, GatewayListResponse, GatewayOptionsResponse, GatewayResponse, Transaction, TransactionListResponse, TransactionResponse, UpdateGatewayInput } from "./types.js";
|
|
3
|
+
import { PaymentOperations } from "./operations.js";
|
|
3
4
|
export declare class PaymentApi extends ServiceApi {
|
|
5
|
+
readonly operations: PaymentOperations;
|
|
4
6
|
readonly gateways: RestResource<Gateway, CreateGatewayInput, UpdateGatewayInput, GatewayListResponse, GatewayResponse>;
|
|
5
7
|
readonly transactions: RestResource<Transaction, never, never, TransactionListResponse, TransactionResponse>;
|
|
6
8
|
createPayment(data: CreatePaymentInput, options?: RequestOptions<CreatePaymentInput>): Promise<import("axios").AxiosResponse<CreatePaymentResponse, CreatePaymentInput, {}>>;
|
|
@@ -9,4 +11,6 @@ export declare class PaymentApi extends ServiceApi {
|
|
|
9
11
|
}
|
|
10
12
|
export * from "./types.js";
|
|
11
13
|
export * from "@faiber/sdk-core";
|
|
14
|
+
export * from "./operations.js";
|
|
15
|
+
export * from "./operations.types.js";
|
|
12
16
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACjF,OAAO,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,eAAe,EAAE,WAAW,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAC3Q,qBAAa,UAAW,SAAQ,UAAU;IACtC,QAAQ,CAAC,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACjF,OAAO,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,eAAe,EAAE,WAAW,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAC3Q,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,qBAAa,UAAW,SAAQ,UAAU;IACtC,QAAQ,CAAC,UAAU,oBAAsC;IACzD,QAAQ,CAAC,QAAQ,sGAA2M;IAC5N,QAAQ,CAAC,YAAY,wFAAmK;IACxL,aAAa,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,CAAC,kBAAkB,CAAC;IACpF,cAAc,CAAC,OAAO,CAAC,EAAE,cAAc;IACvC,WAAW,CAAC,OAAO,CAAC,EAAE,cAAc;CACvC;AACD,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { RestResource, ServiceApi } from "@faiber/sdk-core";
|
|
2
|
+
import { PaymentOperations } from "./operations.js";
|
|
2
3
|
export class PaymentApi extends ServiceApi {
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
operations = new PaymentOperations(this.client);
|
|
5
|
+
gateways = new RestResource(this.client, "/api/v1/gateways", { supported: ["list", "show", "create", "update", "delete"] });
|
|
6
|
+
transactions = new RestResource(this.client, "/api/v1/transactions", { supported: ["list", "show"] });
|
|
5
7
|
createPayment(data, options) { return this.client.post("/api/v1/payment", data, options); }
|
|
6
8
|
gatewayOptions(options) { return this.client.get("/api/v1/gateways/options", undefined, options); }
|
|
7
9
|
dailyIncome(options) { return this.client.get("/api/v1/transactions/daily-income", undefined, options); }
|
|
8
10
|
}
|
|
9
11
|
export * from "./types.js";
|
|
10
12
|
export * from "@faiber/sdk-core";
|
|
13
|
+
export * from "./operations.js";
|
|
14
|
+
export * from "./operations.types.js";
|
|
11
15
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAuB,MAAM,kBAAkB,CAAC;AAEjF,MAAM,OAAO,UAAW,SAAQ,UAAU;IAC7B,QAAQ,GAAG,IAAI,YAAY,CAAwF,IAAI,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAuB,MAAM,kBAAkB,CAAC;AAEjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,MAAM,OAAO,UAAW,SAAQ,UAAU;IAC7B,UAAU,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAChD,QAAQ,GAAG,IAAI,YAAY,CAAwF,IAAI,CAAC,MAAM,EAAE,kBAAkB,EAAE,EAAE,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC;IACnN,YAAY,GAAG,IAAI,YAAY,CAA0E,IAAI,CAAC,MAAM,EAAE,sBAAsB,EAAE,EAAE,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC;IACxL,aAAa,CAAC,IAAwB,EAAE,OAA4C,IAAI,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAA4C,iBAAiB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IAC/L,cAAc,CAAC,OAAwB,IAAI,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAyB,0BAA0B,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IAC5I,WAAW,CAAC,OAAwB,IAAI,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAsB,mCAAmC,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;CAClJ;AACD,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ServiceApi, type Identifier, type RequestOptions } from "@faiber/sdk-core";
|
|
2
|
+
import type * as T from "./operations.types.js";
|
|
3
|
+
export declare class PaymentOperations extends ServiceApi {
|
|
4
|
+
/** GET /api/openapi.json; permission: public/session-derived. */
|
|
5
|
+
routerOpenapiJsonGet(options?: RequestOptions): Promise<import("axios").AxiosResponse<T.RouterOpenapiJsonGetResponse, unknown, {}>>;
|
|
6
|
+
/** GET /api/v1/auth/self; permission: public/session-derived. */
|
|
7
|
+
sessionGetSelfGet(options?: RequestOptions): Promise<import("axios").AxiosResponse<T.SessionGetSelfGetResponse, unknown, {}>>;
|
|
8
|
+
/** GET /api/v1/gateways; permission: admin:gateway:read. */
|
|
9
|
+
gatewayIndexGet(params?: T.GatewayIndexGetQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.GatewayIndexGetResponse, unknown, {}>>;
|
|
10
|
+
/** POST /api/v1/gateways; permission: admin:gateway:create. */
|
|
11
|
+
gatewayStorePost(data: T.GatewayStorePostInput, options?: RequestOptions<T.GatewayStorePostInput>): Promise<import("axios").AxiosResponse<T.GatewayStorePostResponse, T.GatewayStorePostInput, {}>>;
|
|
12
|
+
/** DELETE /api/v1/gateways/{id}; permission: admin:gateway:delete. */
|
|
13
|
+
gatewayDestroyDelete(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.GatewayDestroyDeleteResponse, unknown, {}>>;
|
|
14
|
+
/** GET /api/v1/gateways/{id}; permission: admin:gateway:read. */
|
|
15
|
+
gatewayShowGet(id: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.GatewayShowGetResponse, unknown, {}>>;
|
|
16
|
+
/** PATCH /api/v1/gateways/{id}; permission: admin:gateway:update. */
|
|
17
|
+
gatewayUpdatePatch(id: Identifier, data: T.GatewayUpdatePatchInput, options?: RequestOptions<T.GatewayUpdatePatchInput>): Promise<import("axios").AxiosResponse<T.GatewayUpdatePatchResponse, T.GatewayUpdatePatchInput, {}>>;
|
|
18
|
+
/** GET /api/v1/gateways/options; permission: admin:gateway:read. */
|
|
19
|
+
gatewayOptionsGet(options?: RequestOptions): Promise<import("axios").AxiosResponse<T.GatewayOptionsGetResponse, unknown, {}>>;
|
|
20
|
+
/** GET /api/v1/integration/docs; permission: admin:integration:read. */
|
|
21
|
+
integrationIntegrationDocsShowGet(options?: RequestOptions): Promise<import("axios").AxiosResponse<T.IntegrationIntegrationDocsShowGetResponse, unknown, {}>>;
|
|
22
|
+
/** GET /api/v1/integration/flow; permission: public/session-derived. */
|
|
23
|
+
integrationFlowIntegrationShowGet(options?: RequestOptions): Promise<import("axios").AxiosResponse<T.IntegrationFlowIntegrationShowGetResponse, unknown, {}>>;
|
|
24
|
+
/** POST /api/v1/payment; permission: public/session-derived. */
|
|
25
|
+
paymentCreatePaymentPost(data: T.PaymentCreatePaymentPostInput, options?: RequestOptions<T.PaymentCreatePaymentPostInput>): Promise<import("axios").AxiosResponse<T.PaymentCreatePaymentPostResponse, T.PaymentCreatePaymentPostInput, {}>>;
|
|
26
|
+
/** GET /api/v1/transactions; permission: admin:transaction:read. */
|
|
27
|
+
transactionIndexGet(params?: T.TransactionIndexGetQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.TransactionIndexGetResponse, unknown, {}>>;
|
|
28
|
+
/** GET /api/v1/transactions/{uuid}; permission: public/session-derived. */
|
|
29
|
+
routerShowStatusGet(uuid: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.RouterShowStatusGetResponse, unknown, {}>>;
|
|
30
|
+
/** GET /api/v1/transactions/daily-income; permission: admin:transaction:read. */
|
|
31
|
+
transactionDailyIncomeGet(params?: T.TransactionDailyIncomeGetQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.TransactionDailyIncomeGetResponse, unknown, {}>>;
|
|
32
|
+
/** GET /health; permission: public/session-derived. */
|
|
33
|
+
routerStatusRouteGet(options?: RequestOptions): Promise<import("axios").AxiosResponse<T.RouterStatusRouteGetResponse, unknown, {}>>;
|
|
34
|
+
/** GET /payments/{uuid}/redirect; permission: public/session-derived. */
|
|
35
|
+
paymentWebRedirectGet(uuid: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.PaymentWebRedirectGetResponse, unknown, {}>>;
|
|
36
|
+
/** GET /payments/callbacks/{provider}; permission: public/session-derived. */
|
|
37
|
+
paymentWebCallbackGet(provider: Identifier, params?: T.PaymentWebCallbackGetQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.PaymentWebCallbackGetResponse, unknown, {}>>;
|
|
38
|
+
/** POST /payments/callbacks/{provider}; permission: public/session-derived. */
|
|
39
|
+
paymentWebCallbackPost(provider: Identifier, params?: T.PaymentWebCallbackPostQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<T.PaymentWebCallbackPostResponse, unknown, {}>>;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAc,KAAK,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAChG,OAAO,KAAK,KAAK,CAAC,MAAM,uBAAuB,CAAC;AAEhD,qBAAa,iBAAkB,SAAQ,UAAU;IAC/C,iEAAiE;IACjE,oBAAoB,CAAC,OAAO,CAAC,EAAE,cAAc;IAG7C,iEAAiE;IACjE,iBAAiB,CAAC,OAAO,CAAC,EAAE,cA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C,yEAAyE;IACzE,qBAAqB,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,cAAc;IAGhE,8EAA8E;IAC9E,qBAAqB,CAAC,QAAQ,EAAE,UAAU,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC,0BAA0B,EAAE,OAAO,CAAC,EAAE,cAAc;IAG3G,+EAA+E;IAC/E,sBAAsB,CAAC,QAAQ,EAAE,UAAU,EAAE,MAAM,CAAC,EAAE,CAAC,CAAC,2BAA2B,EAAE,OAAO,CAAC,EAAE,cAAc;CAG9G"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { ServiceApi, urlEncoded } from "@faiber/sdk-core";
|
|
2
|
+
export class PaymentOperations extends ServiceApi {
|
|
3
|
+
/** GET /api/openapi.json; permission: public/session-derived. */
|
|
4
|
+
routerOpenapiJsonGet(options) {
|
|
5
|
+
return this.client.request({ ...options, method: "GET", url: `/api/openapi.json` });
|
|
6
|
+
}
|
|
7
|
+
/** GET /api/v1/auth/self; permission: public/session-derived. */
|
|
8
|
+
sessionGetSelfGet(options) {
|
|
9
|
+
return this.client.request({ ...options, method: "GET", url: `/api/v1/auth/self` });
|
|
10
|
+
}
|
|
11
|
+
/** GET /api/v1/gateways; permission: admin:gateway:read. */
|
|
12
|
+
gatewayIndexGet(params, options) {
|
|
13
|
+
return this.client.request({ ...options, method: "GET", url: `/api/v1/gateways`, params });
|
|
14
|
+
}
|
|
15
|
+
/** POST /api/v1/gateways; permission: admin:gateway:create. */
|
|
16
|
+
gatewayStorePost(data, options) {
|
|
17
|
+
return this.client.request({ ...options, method: "POST", url: `/api/v1/gateways`, data: data });
|
|
18
|
+
}
|
|
19
|
+
/** DELETE /api/v1/gateways/{id}; permission: admin:gateway:delete. */
|
|
20
|
+
gatewayDestroyDelete(id, options) {
|
|
21
|
+
return this.client.request({ ...options, method: "DELETE", url: `/api/v1/gateways/${encodeURIComponent(id)}` });
|
|
22
|
+
}
|
|
23
|
+
/** GET /api/v1/gateways/{id}; permission: admin:gateway:read. */
|
|
24
|
+
gatewayShowGet(id, options) {
|
|
25
|
+
return this.client.request({ ...options, method: "GET", url: `/api/v1/gateways/${encodeURIComponent(id)}` });
|
|
26
|
+
}
|
|
27
|
+
/** PATCH /api/v1/gateways/{id}; permission: admin:gateway:update. */
|
|
28
|
+
gatewayUpdatePatch(id, data, options) {
|
|
29
|
+
return this.client.request({ ...options, method: "PATCH", url: `/api/v1/gateways/${encodeURIComponent(id)}`, data: data });
|
|
30
|
+
}
|
|
31
|
+
/** GET /api/v1/gateways/options; permission: admin:gateway:read. */
|
|
32
|
+
gatewayOptionsGet(options) {
|
|
33
|
+
return this.client.request({ ...options, method: "GET", url: `/api/v1/gateways/options` });
|
|
34
|
+
}
|
|
35
|
+
/** GET /api/v1/integration/docs; permission: admin:integration:read. */
|
|
36
|
+
integrationIntegrationDocsShowGet(options) {
|
|
37
|
+
return this.client.request({ ...options, method: "GET", url: `/api/v1/integration/docs` });
|
|
38
|
+
}
|
|
39
|
+
/** GET /api/v1/integration/flow; permission: public/session-derived. */
|
|
40
|
+
integrationFlowIntegrationShowGet(options) {
|
|
41
|
+
return this.client.request({ ...options, method: "GET", url: `/api/v1/integration/flow` });
|
|
42
|
+
}
|
|
43
|
+
/** POST /api/v1/payment; permission: public/session-derived. */
|
|
44
|
+
paymentCreatePaymentPost(data, options) {
|
|
45
|
+
return this.client.request({ ...options, method: "POST", url: `/api/v1/payment`, data: data });
|
|
46
|
+
}
|
|
47
|
+
/** GET /api/v1/transactions; permission: admin:transaction:read. */
|
|
48
|
+
transactionIndexGet(params, options) {
|
|
49
|
+
return this.client.request({ ...options, method: "GET", url: `/api/v1/transactions`, params });
|
|
50
|
+
}
|
|
51
|
+
/** GET /api/v1/transactions/{uuid}; permission: public/session-derived. */
|
|
52
|
+
routerShowStatusGet(uuid, options) {
|
|
53
|
+
return this.client.request({ ...options, method: "GET", url: `/api/v1/transactions/${encodeURIComponent(uuid)}` });
|
|
54
|
+
}
|
|
55
|
+
/** GET /api/v1/transactions/daily-income; permission: admin:transaction:read. */
|
|
56
|
+
transactionDailyIncomeGet(params, options) {
|
|
57
|
+
return this.client.request({ ...options, method: "GET", url: `/api/v1/transactions/daily-income`, params });
|
|
58
|
+
}
|
|
59
|
+
/** GET /health; permission: public/session-derived. */
|
|
60
|
+
routerStatusRouteGet(options) {
|
|
61
|
+
return this.client.request({ ...options, method: "GET", url: `/health` });
|
|
62
|
+
}
|
|
63
|
+
/** GET /payments/{uuid}/redirect; permission: public/session-derived. */
|
|
64
|
+
paymentWebRedirectGet(uuid, options) {
|
|
65
|
+
return this.client.request({ ...options, method: "GET", url: `/payments/${encodeURIComponent(uuid)}/redirect` });
|
|
66
|
+
}
|
|
67
|
+
/** GET /payments/callbacks/{provider}; permission: public/session-derived. */
|
|
68
|
+
paymentWebCallbackGet(provider, params, options) {
|
|
69
|
+
return this.client.request({ ...options, method: "GET", url: `/payments/callbacks/${encodeURIComponent(provider)}`, params });
|
|
70
|
+
}
|
|
71
|
+
/** POST /payments/callbacks/{provider}; permission: public/session-derived. */
|
|
72
|
+
paymentWebCallbackPost(provider, params, options) {
|
|
73
|
+
return this.client.request({ ...options, method: "POST", url: `/payments/callbacks/${encodeURIComponent(provider)}`, params });
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAwC,MAAM,kBAAkB,CAAC;AAGhG,MAAM,OAAO,iBAAkB,SAAQ,UAAU;IAC/C,iEAAiE;IACjE,oBAAoB,CAAC,OAAwB;QAC3C,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAiC,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,CAAC,CAAC;IACtH,CAAC;IAC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AE,uBAAuB,kBAAkB,CAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACnK,CAAC;CACF"}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import type { ApiEnvelope, JsonObject, JsonValue, QueryParams } from "@faiber/sdk-core";
|
|
2
|
+
/** Generated route contracts. Dynamic payload members remain JSON-safe and are documented with their Rust source type. */
|
|
3
|
+
/** Backend response type: response without a declared JSON model. */
|
|
4
|
+
export interface RouterOpenapiJsonGetResponse extends ApiEnvelope<JsonValue> {
|
|
5
|
+
}
|
|
6
|
+
/** Backend response type: SessionResponse. */
|
|
7
|
+
export interface SessionGetSelfGetResponseData extends JsonObject {
|
|
8
|
+
"user_id": string;
|
|
9
|
+
"roles": string[];
|
|
10
|
+
"permissions": string[];
|
|
11
|
+
}
|
|
12
|
+
export interface SessionGetSelfGetResponse extends ApiEnvelope<SessionGetSelfGetResponseData> {
|
|
13
|
+
}
|
|
14
|
+
/** Backend query type: GatewayListQuery. */
|
|
15
|
+
export interface GatewayIndexGetQuery extends QueryParams {
|
|
16
|
+
"status"?: string;
|
|
17
|
+
"page[number]"?: number;
|
|
18
|
+
"page[size]"?: number;
|
|
19
|
+
}
|
|
20
|
+
/** Backend response type: crate::models::PagedResult<models::GatewayResponse>. */
|
|
21
|
+
export interface GatewayIndexGetResponseItem extends JsonObject {
|
|
22
|
+
"id": number;
|
|
23
|
+
"name": string;
|
|
24
|
+
"provider": string;
|
|
25
|
+
"options"?: JsonValue;
|
|
26
|
+
"priority": number;
|
|
27
|
+
"status"?: string;
|
|
28
|
+
"created_at": string;
|
|
29
|
+
"updated_at": string;
|
|
30
|
+
}
|
|
31
|
+
export interface GatewayIndexGetResponsePageMeta extends JsonObject {
|
|
32
|
+
"page": number;
|
|
33
|
+
"page_size": number;
|
|
34
|
+
"total_items": number;
|
|
35
|
+
"total_pages": number;
|
|
36
|
+
}
|
|
37
|
+
export interface GatewayIndexGetResponseData extends JsonObject {
|
|
38
|
+
"data": GatewayIndexGetResponseItem[];
|
|
39
|
+
"meta": GatewayIndexGetResponsePageMeta;
|
|
40
|
+
}
|
|
41
|
+
export interface GatewayIndexGetResponse extends ApiEnvelope<GatewayIndexGetResponseData> {
|
|
42
|
+
}
|
|
43
|
+
/** Backend request type: models::CreateGatewayRequest. */
|
|
44
|
+
export interface GatewayStorePostInput extends JsonObject {
|
|
45
|
+
"name": string;
|
|
46
|
+
"provider": string;
|
|
47
|
+
"priority"?: number;
|
|
48
|
+
"status"?: string;
|
|
49
|
+
"options"?: JsonValue;
|
|
50
|
+
}
|
|
51
|
+
/** Backend response type: models::GatewayResponse. */
|
|
52
|
+
export interface GatewayStorePostResponseData extends JsonObject {
|
|
53
|
+
"id": number;
|
|
54
|
+
"name": string;
|
|
55
|
+
"provider": string;
|
|
56
|
+
"options"?: JsonValue;
|
|
57
|
+
"priority": number;
|
|
58
|
+
"status"?: string;
|
|
59
|
+
"created_at": string;
|
|
60
|
+
"updated_at": string;
|
|
61
|
+
}
|
|
62
|
+
export interface GatewayStorePostResponse extends ApiEnvelope<GatewayStorePostResponseData> {
|
|
63
|
+
}
|
|
64
|
+
/** Backend response type: models::GatewayResponse. */
|
|
65
|
+
export interface GatewayDestroyDeleteResponseData extends JsonObject {
|
|
66
|
+
"id": number;
|
|
67
|
+
"name": string;
|
|
68
|
+
"provider": string;
|
|
69
|
+
"options"?: JsonValue;
|
|
70
|
+
"priority": number;
|
|
71
|
+
"status"?: string;
|
|
72
|
+
"created_at": string;
|
|
73
|
+
"updated_at": string;
|
|
74
|
+
}
|
|
75
|
+
export interface GatewayDestroyDeleteResponse extends ApiEnvelope<GatewayDestroyDeleteResponseData> {
|
|
76
|
+
}
|
|
77
|
+
/** Backend response type: models::GatewayResponse. */
|
|
78
|
+
export interface GatewayShowGetResponseData extends JsonObject {
|
|
79
|
+
"id": number;
|
|
80
|
+
"name": string;
|
|
81
|
+
"provider": string;
|
|
82
|
+
"options"?: JsonValue;
|
|
83
|
+
"priority": number;
|
|
84
|
+
"status"?: string;
|
|
85
|
+
"created_at": string;
|
|
86
|
+
"updated_at": string;
|
|
87
|
+
}
|
|
88
|
+
export interface GatewayShowGetResponse extends ApiEnvelope<GatewayShowGetResponseData> {
|
|
89
|
+
}
|
|
90
|
+
/** Backend request type: models::UpdateGatewayRequest. */
|
|
91
|
+
export interface GatewayUpdatePatchInput extends JsonObject {
|
|
92
|
+
"name"?: string;
|
|
93
|
+
"provider"?: string;
|
|
94
|
+
"priority"?: number;
|
|
95
|
+
"status"?: string;
|
|
96
|
+
"options"?: JsonValue;
|
|
97
|
+
}
|
|
98
|
+
/** Backend response type: models::GatewayResponse. */
|
|
99
|
+
export interface GatewayUpdatePatchResponseData extends JsonObject {
|
|
100
|
+
"id": number;
|
|
101
|
+
"name": string;
|
|
102
|
+
"provider": string;
|
|
103
|
+
"options"?: JsonValue;
|
|
104
|
+
"priority": number;
|
|
105
|
+
"status"?: string;
|
|
106
|
+
"created_at": string;
|
|
107
|
+
"updated_at": string;
|
|
108
|
+
}
|
|
109
|
+
export interface GatewayUpdatePatchResponse extends ApiEnvelope<GatewayUpdatePatchResponseData> {
|
|
110
|
+
}
|
|
111
|
+
/** Backend response type: models::GatewayOptionsResponse. */
|
|
112
|
+
export interface GatewayOptionsGetResponseData extends JsonObject {
|
|
113
|
+
"providers": JsonValue[];
|
|
114
|
+
"statuses": JsonValue[];
|
|
115
|
+
}
|
|
116
|
+
export interface GatewayOptionsGetResponse extends ApiEnvelope<GatewayOptionsGetResponseData> {
|
|
117
|
+
}
|
|
118
|
+
/** Backend response type: crate::integration::models::IntegrationDocsResponse. */
|
|
119
|
+
export interface IntegrationIntegrationDocsShowGetResponseData extends JsonObject {
|
|
120
|
+
"direct": JsonValue;
|
|
121
|
+
"sdk": JsonValue[];
|
|
122
|
+
}
|
|
123
|
+
export interface IntegrationIntegrationDocsShowGetResponse extends ApiEnvelope<IntegrationIntegrationDocsShowGetResponseData> {
|
|
124
|
+
}
|
|
125
|
+
/** Backend response type: infera_flow_sdk::FlowIntegrationResponse. */
|
|
126
|
+
export interface IntegrationFlowIntegrationShowGetResponse extends ApiEnvelope<JsonValue> {
|
|
127
|
+
}
|
|
128
|
+
/** Backend request type: models::CreatePaymentRequest. */
|
|
129
|
+
export interface PaymentCreatePaymentPostInput extends JsonObject {
|
|
130
|
+
"amount": number;
|
|
131
|
+
"service_name": string;
|
|
132
|
+
"description"?: string;
|
|
133
|
+
"callback_url"?: string;
|
|
134
|
+
"service_model": string;
|
|
135
|
+
"service_id": string;
|
|
136
|
+
"queue_name": string;
|
|
137
|
+
}
|
|
138
|
+
/** Backend response type: models::CreatePaymentResponse. */
|
|
139
|
+
export interface PaymentCreatePaymentPostResponseData extends JsonObject {
|
|
140
|
+
"transaction": JsonValue;
|
|
141
|
+
"redirect_url": string;
|
|
142
|
+
}
|
|
143
|
+
export interface PaymentCreatePaymentPostResponse extends ApiEnvelope<PaymentCreatePaymentPostResponseData> {
|
|
144
|
+
}
|
|
145
|
+
/** Backend query type: models::TransactionListQuery. */
|
|
146
|
+
export interface TransactionIndexGetQuery extends QueryParams {
|
|
147
|
+
"status"?: string;
|
|
148
|
+
"service_name"?: string;
|
|
149
|
+
"gateway_id"?: number;
|
|
150
|
+
"tracking_code"?: string;
|
|
151
|
+
"masked_card_number"?: string;
|
|
152
|
+
"from_date"?: string;
|
|
153
|
+
"to_date"?: string;
|
|
154
|
+
"page[number]"?: number;
|
|
155
|
+
"page[size]"?: number;
|
|
156
|
+
}
|
|
157
|
+
/** Backend response type: models::TransactionListData. */
|
|
158
|
+
export interface TransactionIndexGetResponseData extends JsonObject {
|
|
159
|
+
"transactions": JsonValue;
|
|
160
|
+
"summaries": JsonValue;
|
|
161
|
+
"service_names": string[];
|
|
162
|
+
"gateways": JsonValue[];
|
|
163
|
+
}
|
|
164
|
+
export interface TransactionIndexGetResponse extends ApiEnvelope<TransactionIndexGetResponseData> {
|
|
165
|
+
}
|
|
166
|
+
/** Backend response type: response without a declared JSON model. */
|
|
167
|
+
export interface RouterShowStatusGetResponse extends ApiEnvelope<JsonValue> {
|
|
168
|
+
}
|
|
169
|
+
/** Backend query type: models::DailyIncomeQuery. */
|
|
170
|
+
export interface TransactionDailyIncomeGetQuery extends QueryParams {
|
|
171
|
+
"days"?: number;
|
|
172
|
+
}
|
|
173
|
+
/** Backend response type: Vec<models::DailyIncomePoint>. */
|
|
174
|
+
export interface TransactionDailyIncomeGetResponseItem extends JsonObject {
|
|
175
|
+
"date": string;
|
|
176
|
+
"amount": number;
|
|
177
|
+
}
|
|
178
|
+
export interface TransactionDailyIncomeGetResponse extends ApiEnvelope<TransactionDailyIncomeGetResponseItem[]> {
|
|
179
|
+
}
|
|
180
|
+
/** Backend response type: response without a declared JSON model. */
|
|
181
|
+
export interface RouterStatusRouteGetResponse extends ApiEnvelope<JsonValue> {
|
|
182
|
+
}
|
|
183
|
+
/** Backend response type: response without a declared JSON model. */
|
|
184
|
+
export interface PaymentWebRedirectGetResponse extends ApiEnvelope<JsonValue> {
|
|
185
|
+
}
|
|
186
|
+
/** Backend query type: CallbackQuery. */
|
|
187
|
+
export interface PaymentWebCallbackGetQuery extends QueryParams {
|
|
188
|
+
"Authority"?: string;
|
|
189
|
+
"transid"?: string;
|
|
190
|
+
"paymentNumber"?: string;
|
|
191
|
+
}
|
|
192
|
+
/** Backend response type: response without a declared JSON model. */
|
|
193
|
+
export interface PaymentWebCallbackGetResponse extends ApiEnvelope<JsonValue> {
|
|
194
|
+
}
|
|
195
|
+
/** Backend query type: CallbackQuery. */
|
|
196
|
+
export interface PaymentWebCallbackPostQuery extends QueryParams {
|
|
197
|
+
"Authority"?: string;
|
|
198
|
+
"transid"?: string;
|
|
199
|
+
"paymentNumber"?: string;
|
|
200
|
+
}
|
|
201
|
+
/** Backend response type: response without a declared JSON model. */
|
|
202
|
+
export interface PaymentWebCallbackPostResponse extends ApiEnvelope<JsonValue> {
|
|
203
|
+
}
|
|
204
|
+
//# sourceMappingURL=operations.types.d.ts.map
|
|
@@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,MAAM,WAAW,2BAA4B,SAAQ,WAAW,CAAC,SAAS,CAAC;CAC1E;AAED,oDAAoD;AACpD,MAAM,WAAW,8BAA+B,SAAQ,WAAW;IACjE,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AACD,4DAA4D;AAC5D,MAAM,WAAW,qCAAsC,SAAQ,UAAU;IACvE,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AACD,MAAM,WAAW,iCAAkC,SAAQ,WAAW,CAAC,qCAAqC,EAAE,CAAC;CAC9G;AAED,qEAAqE;AACrE,MAAM,WAAW,4BAA6B,SAAQ,WAAW,CAAC,SAAS,CAAC;CAC3E;AAED,qEAAqE;AACrE,MAAM,WAAW,6BAA8B,SAAQ,WAAW,CAAC,SAAS,CAAC;CAC5E;AAED,yCAAyC;AACzC,MAAM,WAAW,0BAA2B,SAAQ,WAAW;IAC7D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AACD,qEAAqE;AACrE,MAAM,WAAW,6BAA8B,SAAQ,WAAW,CAAC,SAAS,CAAC;CAC5E;AAED,yCAAyC;AACzC,MAAM,WAAW,2BAA4B,SAAQ,WAAW;IAC9D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AACD,qEAAqE;AACrE,MAAM,WAAW,8BAA+B,SAAQ,WAAW,CAAC,SAAS,CAAC;CAC7E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.types.js","sourceRoot":"","sources":["../src/operations.types.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1 +1,20 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"name": "@faiber/faiber-payment",
|
|
3
|
+
"version": "0.2.2",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"sideEffects": false,
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@faiber/sdk-core": "0.2.2"
|
|
19
|
+
}
|
|
20
|
+
}
|