@devizovaburza/payments-api-sdk 1.1.0 → 1.2.1
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 +2 -2
- package/dist/v1/index.d.mts +722 -2441
- package/dist/v1/index.d.ts +722 -2441
- package/dist/v1/index.mjs +12 -365
- package/package.json +11 -6
- package/dist/v1/index.cjs +0 -376
- package/dist/v1/index.d.cts +0 -3394
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ The SDK exports a type-safe client generated from the Payments API schema:
|
|
|
19
19
|
```typescript
|
|
20
20
|
import { createPartnerApiClient } from '@devizovaburza/payments-api-sdk/v1';
|
|
21
21
|
|
|
22
|
-
const client = createPartnerApiClient('https://api.payments.
|
|
22
|
+
const client = createPartnerApiClient('https://api.payments.devizovaburza.cz');
|
|
23
23
|
|
|
24
24
|
// Authenticate
|
|
25
25
|
const { accessToken } = await client.v1.auth.token.$post({
|
|
@@ -42,7 +42,7 @@ You can infer request and response types from any endpoint using Hono's built-in
|
|
|
42
42
|
import type { InferRequestType, InferResponseType } from 'hono/client';
|
|
43
43
|
import { createPartnerApiClient } from '@devizovaburza/payments-api-sdk/v1';
|
|
44
44
|
|
|
45
|
-
const client = createPartnerApiClient('https://api.payments.
|
|
45
|
+
const client = createPartnerApiClient('https://api.payments.devizovaburza.cz');
|
|
46
46
|
|
|
47
47
|
// Infer types from a specific endpoint
|
|
48
48
|
type SendPaymentRequest = InferRequestType<typeof client.v1.organizations[':id'].payments.$post>;
|