@marcohefti/request-network-api-client 0.5.8 → 0.5.9
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 -5
- package/dist/cjs/index.js +0 -9
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.d.mts +8 -13
- package/dist/esm/index.js +1 -9
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -36,20 +36,18 @@ yarn add @marcohefti/request-network-api-client
|
|
|
36
36
|
```ts
|
|
37
37
|
import {
|
|
38
38
|
createRequestClient,
|
|
39
|
-
RequestEnvironment,
|
|
40
39
|
isRequestApiError,
|
|
41
40
|
} from '@marcohefti/request-network-api-client';
|
|
42
41
|
|
|
43
42
|
const client = createRequestClient({
|
|
44
|
-
baseUrl: RequestEnvironment.production,
|
|
45
43
|
apiKey: process.env.REQUEST_API_KEY!,
|
|
46
44
|
});
|
|
47
45
|
|
|
48
46
|
// Create a request
|
|
49
47
|
const request = await client.requests.create({
|
|
50
|
-
amount: '
|
|
51
|
-
|
|
52
|
-
paymentCurrency: '
|
|
48
|
+
amount: '0.01',
|
|
49
|
+
paymentNetwork: 'erc20-sepolia',
|
|
50
|
+
paymentCurrency: 'ETH-sepolia-sepolia',
|
|
53
51
|
});
|
|
54
52
|
|
|
55
53
|
// List currencies
|
package/dist/cjs/index.js
CHANGED
|
@@ -2311,14 +2311,6 @@ function createRequestClient(options) {
|
|
|
2311
2311
|
};
|
|
2312
2312
|
}
|
|
2313
2313
|
|
|
2314
|
-
// src/core/config/request-environment.config.ts
|
|
2315
|
-
var RequestEnvironment = {
|
|
2316
|
-
production: "https://api.request.network",
|
|
2317
|
-
// Legacy placeholder for partner-managed sandboxes; Request does not operate a public staging host.
|
|
2318
|
-
staging: "https://api.stage.request.network",
|
|
2319
|
-
local: "http://127.0.0.1:8080"
|
|
2320
|
-
};
|
|
2321
|
-
|
|
2322
2314
|
// src/domains/requests/v1/index.ts
|
|
2323
2315
|
var v1_exports4 = {};
|
|
2324
2316
|
__export(v1_exports4, {
|
|
@@ -3427,7 +3419,6 @@ function assertRequestRecurringEvent(event) {
|
|
|
3427
3419
|
|
|
3428
3420
|
exports.DEFAULT_RETRY_CONFIG = DEFAULT_RETRY_CONFIG;
|
|
3429
3421
|
exports.RequestApiError = RequestApiError;
|
|
3430
|
-
exports.RequestEnvironment = RequestEnvironment;
|
|
3431
3422
|
exports.SchemaRegistry = SchemaRegistry;
|
|
3432
3423
|
exports.ValidationError = ValidationError;
|
|
3433
3424
|
exports.browserFetchAdapter = browserFetchAdapter;
|