@ogcio/building-blocks-sdk 0.1.17 → 0.1.18
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/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +7 -0
- package/dist/client/clients/payments/index.d.ts +240 -1
- package/dist/client/clients/payments/index.d.ts.map +1 -1
- package/dist/client/clients/payments/index.js +23 -0
- package/dist/client/clients/payments/index.js.map +1 -1
- package/dist/client/clients/payments/schema.d.ts +256 -1
- package/dist/client/clients/payments/schema.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/client/clients/payments/index.ts +37 -0
- package/src/client/clients/payments/open-api-definition.json +773 -185
- package/src/client/clients/payments/schema.ts +256 -1
|
@@ -1238,7 +1238,7 @@ export interface paths {
|
|
|
1238
1238
|
content: {
|
|
1239
1239
|
"application/json": {
|
|
1240
1240
|
data: {
|
|
1241
|
-
amount?:
|
|
1241
|
+
amount?: string;
|
|
1242
1242
|
runId: string;
|
|
1243
1243
|
journeyId: string;
|
|
1244
1244
|
redirectUrl: string;
|
|
@@ -1473,6 +1473,7 @@ export interface paths {
|
|
|
1473
1473
|
journeyId?: string;
|
|
1474
1474
|
journeyTitle?: string;
|
|
1475
1475
|
redirectUrl?: string;
|
|
1476
|
+
amount?: string;
|
|
1476
1477
|
};
|
|
1477
1478
|
description: string;
|
|
1478
1479
|
providerName: string;
|
|
@@ -1718,6 +1719,7 @@ export interface paths {
|
|
|
1718
1719
|
journeyId?: string;
|
|
1719
1720
|
journeyTitle?: string;
|
|
1720
1721
|
redirectUrl?: string;
|
|
1722
|
+
amount?: string;
|
|
1721
1723
|
};
|
|
1722
1724
|
description: string;
|
|
1723
1725
|
providerName: string;
|
|
@@ -1831,7 +1833,9 @@ export interface paths {
|
|
|
1831
1833
|
journeyId?: string;
|
|
1832
1834
|
journeyTitle?: string;
|
|
1833
1835
|
redirectUrl?: string;
|
|
1836
|
+
amount?: string;
|
|
1834
1837
|
};
|
|
1838
|
+
token?: string;
|
|
1835
1839
|
};
|
|
1836
1840
|
};
|
|
1837
1841
|
};
|
|
@@ -2294,6 +2298,237 @@ export interface paths {
|
|
|
2294
2298
|
patch?: never;
|
|
2295
2299
|
trace?: never;
|
|
2296
2300
|
};
|
|
2301
|
+
"/api/v1/transactions/{transactionId}/refund": {
|
|
2302
|
+
parameters: {
|
|
2303
|
+
query?: never;
|
|
2304
|
+
header?: never;
|
|
2305
|
+
path?: never;
|
|
2306
|
+
cookie?: never;
|
|
2307
|
+
};
|
|
2308
|
+
get: {
|
|
2309
|
+
parameters: {
|
|
2310
|
+
query?: never;
|
|
2311
|
+
header?: never;
|
|
2312
|
+
path: {
|
|
2313
|
+
transactionId: string;
|
|
2314
|
+
};
|
|
2315
|
+
cookie?: never;
|
|
2316
|
+
};
|
|
2317
|
+
requestBody?: never;
|
|
2318
|
+
responses: {
|
|
2319
|
+
/** @description Default Response */
|
|
2320
|
+
200: {
|
|
2321
|
+
headers: {
|
|
2322
|
+
[name: string]: unknown;
|
|
2323
|
+
};
|
|
2324
|
+
content: {
|
|
2325
|
+
"application/json": {
|
|
2326
|
+
data: {
|
|
2327
|
+
id: string;
|
|
2328
|
+
transactionId: string;
|
|
2329
|
+
amount: number;
|
|
2330
|
+
status: "pending" | "succeeded" | "failed" | "requires_action" | "canceled";
|
|
2331
|
+
type: "full" | "partial";
|
|
2332
|
+
reason: string;
|
|
2333
|
+
notes?: string;
|
|
2334
|
+
createdAt: string;
|
|
2335
|
+
updatedAt: string;
|
|
2336
|
+
username: string;
|
|
2337
|
+
email: string;
|
|
2338
|
+
organizationId: string;
|
|
2339
|
+
};
|
|
2340
|
+
metadata?: {
|
|
2341
|
+
/** @description Object containing the links to the related endpoints */
|
|
2342
|
+
links?: {
|
|
2343
|
+
self: {
|
|
2344
|
+
/** @description URL pointing to the request itself */
|
|
2345
|
+
href?: string;
|
|
2346
|
+
};
|
|
2347
|
+
next?: {
|
|
2348
|
+
/** @description URL pointing to the next page of results in a paginated response. If there are no more results, this field may be omitted */
|
|
2349
|
+
href?: string;
|
|
2350
|
+
};
|
|
2351
|
+
prev?: {
|
|
2352
|
+
/** @description URL pointing to the previous page of results in a paginated response. If there are no more results, this field may be omitted */
|
|
2353
|
+
href?: string;
|
|
2354
|
+
};
|
|
2355
|
+
first: {
|
|
2356
|
+
/** @description URL pointing to the first page of results in a paginated response */
|
|
2357
|
+
href?: string;
|
|
2358
|
+
};
|
|
2359
|
+
last: {
|
|
2360
|
+
/** @description URL pointing to the first page of results in a paginated response */
|
|
2361
|
+
href?: string;
|
|
2362
|
+
};
|
|
2363
|
+
/** @description It may contain a list of other useful URLs, e.g. one entry for page:'page 1', 'page 2' */
|
|
2364
|
+
pages: {
|
|
2365
|
+
[key: string]: {
|
|
2366
|
+
href?: string;
|
|
2367
|
+
};
|
|
2368
|
+
};
|
|
2369
|
+
};
|
|
2370
|
+
/** @description Number representing the total number of available items */
|
|
2371
|
+
totalCount?: number;
|
|
2372
|
+
};
|
|
2373
|
+
};
|
|
2374
|
+
};
|
|
2375
|
+
};
|
|
2376
|
+
/** @description Default Response */
|
|
2377
|
+
401: {
|
|
2378
|
+
headers: {
|
|
2379
|
+
[name: string]: unknown;
|
|
2380
|
+
};
|
|
2381
|
+
content: {
|
|
2382
|
+
"application/json": {
|
|
2383
|
+
code: string;
|
|
2384
|
+
detail: string;
|
|
2385
|
+
requestId: string;
|
|
2386
|
+
name: string;
|
|
2387
|
+
validation?: unknown;
|
|
2388
|
+
validationContext?: string;
|
|
2389
|
+
};
|
|
2390
|
+
};
|
|
2391
|
+
};
|
|
2392
|
+
/** @description Default Response */
|
|
2393
|
+
404: {
|
|
2394
|
+
headers: {
|
|
2395
|
+
[name: string]: unknown;
|
|
2396
|
+
};
|
|
2397
|
+
content: {
|
|
2398
|
+
"application/json": {
|
|
2399
|
+
code: string;
|
|
2400
|
+
detail: string;
|
|
2401
|
+
requestId: string;
|
|
2402
|
+
name: string;
|
|
2403
|
+
validation?: unknown;
|
|
2404
|
+
validationContext?: string;
|
|
2405
|
+
};
|
|
2406
|
+
};
|
|
2407
|
+
};
|
|
2408
|
+
/** @description Default Response */
|
|
2409
|
+
500: {
|
|
2410
|
+
headers: {
|
|
2411
|
+
[name: string]: unknown;
|
|
2412
|
+
};
|
|
2413
|
+
content: {
|
|
2414
|
+
"application/json": {
|
|
2415
|
+
code: string;
|
|
2416
|
+
detail: string;
|
|
2417
|
+
requestId: string;
|
|
2418
|
+
name: string;
|
|
2419
|
+
validation?: unknown;
|
|
2420
|
+
validationContext?: string;
|
|
2421
|
+
};
|
|
2422
|
+
};
|
|
2423
|
+
};
|
|
2424
|
+
};
|
|
2425
|
+
};
|
|
2426
|
+
put?: never;
|
|
2427
|
+
post: {
|
|
2428
|
+
parameters: {
|
|
2429
|
+
query?: never;
|
|
2430
|
+
header?: never;
|
|
2431
|
+
path: {
|
|
2432
|
+
transactionId: string;
|
|
2433
|
+
};
|
|
2434
|
+
cookie?: never;
|
|
2435
|
+
};
|
|
2436
|
+
requestBody: {
|
|
2437
|
+
content: {
|
|
2438
|
+
"application/json": {
|
|
2439
|
+
amount: number;
|
|
2440
|
+
reason: string;
|
|
2441
|
+
notes?: string;
|
|
2442
|
+
};
|
|
2443
|
+
};
|
|
2444
|
+
};
|
|
2445
|
+
responses: {
|
|
2446
|
+
/** @description Default Response */
|
|
2447
|
+
200: {
|
|
2448
|
+
headers: {
|
|
2449
|
+
[name: string]: unknown;
|
|
2450
|
+
};
|
|
2451
|
+
content: {
|
|
2452
|
+
"application/json": {
|
|
2453
|
+
data: {
|
|
2454
|
+
status: string;
|
|
2455
|
+
};
|
|
2456
|
+
metadata?: {
|
|
2457
|
+
/** @description Object containing the links to the related endpoints */
|
|
2458
|
+
links?: {
|
|
2459
|
+
self: {
|
|
2460
|
+
/** @description URL pointing to the request itself */
|
|
2461
|
+
href?: string;
|
|
2462
|
+
};
|
|
2463
|
+
next?: {
|
|
2464
|
+
/** @description URL pointing to the next page of results in a paginated response. If there are no more results, this field may be omitted */
|
|
2465
|
+
href?: string;
|
|
2466
|
+
};
|
|
2467
|
+
prev?: {
|
|
2468
|
+
/** @description URL pointing to the previous page of results in a paginated response. If there are no more results, this field may be omitted */
|
|
2469
|
+
href?: string;
|
|
2470
|
+
};
|
|
2471
|
+
first: {
|
|
2472
|
+
/** @description URL pointing to the first page of results in a paginated response */
|
|
2473
|
+
href?: string;
|
|
2474
|
+
};
|
|
2475
|
+
last: {
|
|
2476
|
+
/** @description URL pointing to the first page of results in a paginated response */
|
|
2477
|
+
href?: string;
|
|
2478
|
+
};
|
|
2479
|
+
/** @description It may contain a list of other useful URLs, e.g. one entry for page:'page 1', 'page 2' */
|
|
2480
|
+
pages: {
|
|
2481
|
+
[key: string]: {
|
|
2482
|
+
href?: string;
|
|
2483
|
+
};
|
|
2484
|
+
};
|
|
2485
|
+
};
|
|
2486
|
+
/** @description Number representing the total number of available items */
|
|
2487
|
+
totalCount?: number;
|
|
2488
|
+
};
|
|
2489
|
+
};
|
|
2490
|
+
};
|
|
2491
|
+
};
|
|
2492
|
+
/** @description Default Response */
|
|
2493
|
+
401: {
|
|
2494
|
+
headers: {
|
|
2495
|
+
[name: string]: unknown;
|
|
2496
|
+
};
|
|
2497
|
+
content: {
|
|
2498
|
+
"application/json": {
|
|
2499
|
+
code: string;
|
|
2500
|
+
detail: string;
|
|
2501
|
+
requestId: string;
|
|
2502
|
+
name: string;
|
|
2503
|
+
validation?: unknown;
|
|
2504
|
+
validationContext?: string;
|
|
2505
|
+
};
|
|
2506
|
+
};
|
|
2507
|
+
};
|
|
2508
|
+
/** @description Default Response */
|
|
2509
|
+
500: {
|
|
2510
|
+
headers: {
|
|
2511
|
+
[name: string]: unknown;
|
|
2512
|
+
};
|
|
2513
|
+
content: {
|
|
2514
|
+
"application/json": {
|
|
2515
|
+
code: string;
|
|
2516
|
+
detail: string;
|
|
2517
|
+
requestId: string;
|
|
2518
|
+
name: string;
|
|
2519
|
+
validation?: unknown;
|
|
2520
|
+
validationContext?: string;
|
|
2521
|
+
};
|
|
2522
|
+
};
|
|
2523
|
+
};
|
|
2524
|
+
};
|
|
2525
|
+
};
|
|
2526
|
+
delete?: never;
|
|
2527
|
+
options?: never;
|
|
2528
|
+
head?: never;
|
|
2529
|
+
patch?: never;
|
|
2530
|
+
trace?: never;
|
|
2531
|
+
};
|
|
2297
2532
|
"/api/v1/citizen/transactions": {
|
|
2298
2533
|
parameters: {
|
|
2299
2534
|
query?: never;
|
|
@@ -2461,6 +2696,7 @@ export interface paths {
|
|
|
2461
2696
|
journeyId?: string;
|
|
2462
2697
|
journeyTitle?: string;
|
|
2463
2698
|
redirectUrl?: string;
|
|
2699
|
+
amount?: string;
|
|
2464
2700
|
};
|
|
2465
2701
|
description: string;
|
|
2466
2702
|
providerName: string;
|
|
@@ -2542,6 +2778,8 @@ export interface paths {
|
|
|
2542
2778
|
amount: string;
|
|
2543
2779
|
intentId: string;
|
|
2544
2780
|
providerId: string;
|
|
2781
|
+
paymentRequestId: string;
|
|
2782
|
+
token?: string;
|
|
2545
2783
|
};
|
|
2546
2784
|
header?: never;
|
|
2547
2785
|
path?: never;
|
|
@@ -3125,6 +3363,7 @@ export interface paths {
|
|
|
3125
3363
|
"application/json": {
|
|
3126
3364
|
paymentRequestId: string;
|
|
3127
3365
|
amount: number;
|
|
3366
|
+
token?: string;
|
|
3128
3367
|
};
|
|
3129
3368
|
};
|
|
3130
3369
|
};
|
|
@@ -3177,6 +3416,22 @@ export interface paths {
|
|
|
3177
3416
|
};
|
|
3178
3417
|
};
|
|
3179
3418
|
/** @description Default Response */
|
|
3419
|
+
400: {
|
|
3420
|
+
headers: {
|
|
3421
|
+
[name: string]: unknown;
|
|
3422
|
+
};
|
|
3423
|
+
content: {
|
|
3424
|
+
"application/json": {
|
|
3425
|
+
code: string;
|
|
3426
|
+
detail: string;
|
|
3427
|
+
requestId: string;
|
|
3428
|
+
name: string;
|
|
3429
|
+
validation?: unknown;
|
|
3430
|
+
validationContext?: string;
|
|
3431
|
+
};
|
|
3432
|
+
};
|
|
3433
|
+
};
|
|
3434
|
+
/** @description Default Response */
|
|
3180
3435
|
401: {
|
|
3181
3436
|
headers: {
|
|
3182
3437
|
[name: string]: unknown;
|