@ogcio/building-blocks-sdk 0.1.5 → 0.1.6
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/.azure/pipeline.yaml +16 -0
- package/.azure/templates/pnpm-install.yaml +1 -1
- package/README.md +1 -1
- package/biome.jsonc +2 -1
- package/dist/__tests__/client/utils/client-utils.test.js +6 -6
- package/dist/__tests__/client/utils/client-utils.test.js.map +1 -1
- package/dist/client/base-client.d.ts +4 -2
- package/dist/client/base-client.d.ts.map +1 -1
- package/dist/client/base-client.js +7 -1
- package/dist/client/base-client.js.map +1 -1
- package/dist/client/clients/featureFlags/index.d.ts.map +1 -1
- package/dist/client/clients/featureFlags/index.js +2 -2
- package/dist/client/clients/featureFlags/index.js.map +1 -1
- package/dist/client/clients/journey/index.d.ts +2 -2
- package/dist/client/clients/journey/index.d.ts.map +1 -1
- package/dist/client/clients/journey/index.js +21 -21
- package/dist/client/clients/journey/index.js.map +1 -1
- package/dist/client/clients/journey/schema.d.ts +1 -1
- package/dist/client/clients/journey/schema.d.ts.map +1 -1
- package/dist/client/clients/messaging/index.d.ts.map +1 -1
- package/dist/client/clients/messaging/index.js +29 -29
- package/dist/client/clients/messaging/index.js.map +1 -1
- package/dist/client/clients/payments/index.d.ts +64 -35
- package/dist/client/clients/payments/index.d.ts.map +1 -1
- package/dist/client/clients/payments/index.js +34 -25
- package/dist/client/clients/payments/index.js.map +1 -1
- package/dist/client/clients/payments/schema.d.ts +81 -18
- package/dist/client/clients/payments/schema.d.ts.map +1 -1
- package/dist/client/clients/profile/index.d.ts.map +1 -1
- package/dist/client/clients/profile/index.js +13 -13
- package/dist/client/clients/profile/index.js.map +1 -1
- package/dist/client/clients/scheduler/index.js +1 -1
- package/dist/client/clients/scheduler/index.js.map +1 -1
- package/dist/client/clients/upload/index.d.ts.map +1 -1
- package/dist/client/clients/upload/index.js +7 -7
- package/dist/client/clients/upload/index.js.map +1 -1
- package/dist/client/utils/client-utils.d.ts +3 -2
- package/dist/client/utils/client-utils.d.ts.map +1 -1
- package/dist/client/utils/client-utils.js +10 -3
- package/dist/client/utils/client-utils.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +16 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/client/utils/client-utils.test.ts +6 -6
- package/src/client/base-client.ts +14 -2
- package/src/client/clients/featureFlags/index.ts +5 -2
- package/src/client/clients/journey/index.ts +42 -42
- package/src/client/clients/journey/open-api-definition.json +41 -6
- package/src/client/clients/journey/schema.ts +1 -1
- package/src/client/clients/messaging/index.ts +58 -58
- package/src/client/clients/payments/index.ts +65 -50
- package/src/client/clients/payments/open-api-definition.json +176 -101
- package/src/client/clients/payments/schema.ts +81 -18
- package/src/client/clients/profile/index.ts +26 -26
- package/src/client/clients/scheduler/index.ts +2 -2
- package/src/client/clients/upload/index.ts +14 -14
- package/src/client/utils/client-utils.ts +20 -2
- package/src/index.ts +17 -12
- package/src/types/index.ts +18 -1
|
@@ -13,8 +13,8 @@ export class Payments extends BaseClient<paths> {
|
|
|
13
13
|
*/
|
|
14
14
|
async getProviders() {
|
|
15
15
|
return this.client.GET("/api/v1/providers/").then(
|
|
16
|
-
(response) => formatResponse(response),
|
|
17
|
-
(reason) => formatError(reason),
|
|
16
|
+
(response) => formatResponse(response, this.serviceName, this.logger),
|
|
17
|
+
(reason) => formatError(reason, this.serviceName, this.logger),
|
|
18
18
|
);
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -30,8 +30,8 @@ export class Payments extends BaseClient<paths> {
|
|
|
30
30
|
},
|
|
31
31
|
})
|
|
32
32
|
.then(
|
|
33
|
-
(response) => formatResponse(response),
|
|
34
|
-
(reason) => formatError(reason),
|
|
33
|
+
(response) => formatResponse(response, this.serviceName, this.logger),
|
|
34
|
+
(reason) => formatError(reason, this.serviceName, this.logger),
|
|
35
35
|
);
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -43,8 +43,8 @@ export class Payments extends BaseClient<paths> {
|
|
|
43
43
|
body: data,
|
|
44
44
|
})
|
|
45
45
|
.then(
|
|
46
|
-
(response) => formatResponse(response),
|
|
47
|
-
(reason) => formatError(reason),
|
|
46
|
+
(response) => formatResponse(response, this.serviceName, this.logger),
|
|
47
|
+
(reason) => formatError(reason, this.serviceName, this.logger),
|
|
48
48
|
);
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -62,8 +62,8 @@ export class Payments extends BaseClient<paths> {
|
|
|
62
62
|
body: data,
|
|
63
63
|
})
|
|
64
64
|
.then(
|
|
65
|
-
(response) => formatResponse(response),
|
|
66
|
-
(reason) => formatError(reason),
|
|
65
|
+
(response) => formatResponse(response, this.serviceName, this.logger),
|
|
66
|
+
(reason) => formatError(reason, this.serviceName, this.logger),
|
|
67
67
|
);
|
|
68
68
|
}
|
|
69
69
|
|
|
@@ -81,8 +81,23 @@ export class Payments extends BaseClient<paths> {
|
|
|
81
81
|
},
|
|
82
82
|
})
|
|
83
83
|
.then(
|
|
84
|
-
(response) => formatResponse(response),
|
|
85
|
-
(reason) => formatError(reason),
|
|
84
|
+
(response) => formatResponse(response, this.serviceName, this.logger),
|
|
85
|
+
(reason) => formatError(reason, this.serviceName, this.logger),
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
async getPaymentRequestsExternalInfo(
|
|
90
|
+
query: paths["/api/v1/requests/external-info"]["get"]["parameters"]["query"],
|
|
91
|
+
) {
|
|
92
|
+
return this.client
|
|
93
|
+
.GET("/api/v1/requests/external-info", {
|
|
94
|
+
params: {
|
|
95
|
+
query,
|
|
96
|
+
},
|
|
97
|
+
})
|
|
98
|
+
.then(
|
|
99
|
+
(response) => formatResponse(response, this.serviceName, this.logger),
|
|
100
|
+
(reason) => formatError(reason, this.serviceName, this.logger),
|
|
86
101
|
);
|
|
87
102
|
}
|
|
88
103
|
|
|
@@ -98,8 +113,8 @@ export class Payments extends BaseClient<paths> {
|
|
|
98
113
|
},
|
|
99
114
|
})
|
|
100
115
|
.then(
|
|
101
|
-
(response) => formatResponse(response),
|
|
102
|
-
(reason) => formatError(reason),
|
|
116
|
+
(response) => formatResponse(response, this.serviceName, this.logger),
|
|
117
|
+
(reason) => formatError(reason, this.serviceName, this.logger),
|
|
103
118
|
);
|
|
104
119
|
}
|
|
105
120
|
|
|
@@ -117,8 +132,8 @@ export class Payments extends BaseClient<paths> {
|
|
|
117
132
|
},
|
|
118
133
|
})
|
|
119
134
|
.then(
|
|
120
|
-
(response) => formatResponse(response),
|
|
121
|
-
(reason) => formatError(reason),
|
|
135
|
+
(response) => formatResponse(response, this.serviceName, this.logger),
|
|
136
|
+
(reason) => formatError(reason, this.serviceName, this.logger),
|
|
122
137
|
);
|
|
123
138
|
}
|
|
124
139
|
|
|
@@ -130,8 +145,8 @@ export class Payments extends BaseClient<paths> {
|
|
|
130
145
|
body: data,
|
|
131
146
|
})
|
|
132
147
|
.then(
|
|
133
|
-
(response) => formatResponse(response),
|
|
134
|
-
(reason) => formatError(reason),
|
|
148
|
+
(response) => formatResponse(response, this.serviceName, this.logger),
|
|
149
|
+
(reason) => formatError(reason, this.serviceName, this.logger),
|
|
135
150
|
);
|
|
136
151
|
}
|
|
137
152
|
|
|
@@ -147,8 +162,8 @@ export class Payments extends BaseClient<paths> {
|
|
|
147
162
|
},
|
|
148
163
|
})
|
|
149
164
|
.then(
|
|
150
|
-
(response) => formatResponse(response),
|
|
151
|
-
(reason) => formatError(reason),
|
|
165
|
+
(response) => formatResponse(response, this.serviceName, this.logger),
|
|
166
|
+
(reason) => formatError(reason, this.serviceName, this.logger),
|
|
152
167
|
);
|
|
153
168
|
}
|
|
154
169
|
|
|
@@ -160,8 +175,8 @@ export class Payments extends BaseClient<paths> {
|
|
|
160
175
|
body: data,
|
|
161
176
|
})
|
|
162
177
|
.then(
|
|
163
|
-
(response) => formatResponse(response),
|
|
164
|
-
(reason) => formatError(reason),
|
|
178
|
+
(response) => formatResponse(response, this.serviceName, this.logger),
|
|
179
|
+
(reason) => formatError(reason, this.serviceName, this.logger),
|
|
165
180
|
);
|
|
166
181
|
}
|
|
167
182
|
|
|
@@ -177,8 +192,8 @@ export class Payments extends BaseClient<paths> {
|
|
|
177
192
|
},
|
|
178
193
|
})
|
|
179
194
|
.then(
|
|
180
|
-
(response) => formatResponse(response),
|
|
181
|
-
(reason) => formatError(reason),
|
|
195
|
+
(response) => formatResponse(response, this.serviceName, this.logger),
|
|
196
|
+
(reason) => formatError(reason, this.serviceName, this.logger),
|
|
182
197
|
);
|
|
183
198
|
}
|
|
184
199
|
|
|
@@ -196,8 +211,8 @@ export class Payments extends BaseClient<paths> {
|
|
|
196
211
|
},
|
|
197
212
|
})
|
|
198
213
|
.then(
|
|
199
|
-
(response) => formatResponse(response),
|
|
200
|
-
(reason) => formatError(reason),
|
|
214
|
+
(response) => formatResponse(response, this.serviceName, this.logger),
|
|
215
|
+
(reason) => formatError(reason, this.serviceName, this.logger),
|
|
201
216
|
);
|
|
202
217
|
}
|
|
203
218
|
|
|
@@ -211,8 +226,8 @@ export class Payments extends BaseClient<paths> {
|
|
|
211
226
|
},
|
|
212
227
|
})
|
|
213
228
|
.then(
|
|
214
|
-
(response) => formatResponse(response),
|
|
215
|
-
(reason) => formatError(reason),
|
|
229
|
+
(response) => formatResponse(response, this.serviceName, this.logger),
|
|
230
|
+
(reason) => formatError(reason, this.serviceName, this.logger),
|
|
216
231
|
);
|
|
217
232
|
}
|
|
218
233
|
|
|
@@ -226,8 +241,8 @@ export class Payments extends BaseClient<paths> {
|
|
|
226
241
|
},
|
|
227
242
|
})
|
|
228
243
|
.then(
|
|
229
|
-
(response) => formatResponse(response),
|
|
230
|
-
(reason) => formatError(reason),
|
|
244
|
+
(response) => formatResponse(response, this.serviceName, this.logger),
|
|
245
|
+
(reason) => formatError(reason, this.serviceName, this.logger),
|
|
231
246
|
);
|
|
232
247
|
}
|
|
233
248
|
|
|
@@ -245,8 +260,8 @@ export class Payments extends BaseClient<paths> {
|
|
|
245
260
|
body: data,
|
|
246
261
|
})
|
|
247
262
|
.then(
|
|
248
|
-
(response) => formatResponse(response),
|
|
249
|
-
(reason) => formatError(reason),
|
|
263
|
+
(response) => formatResponse(response, this.serviceName, this.logger),
|
|
264
|
+
(reason) => formatError(reason, this.serviceName, this.logger),
|
|
250
265
|
);
|
|
251
266
|
}
|
|
252
267
|
|
|
@@ -258,15 +273,15 @@ export class Payments extends BaseClient<paths> {
|
|
|
258
273
|
body: data,
|
|
259
274
|
})
|
|
260
275
|
.then(
|
|
261
|
-
(response) => formatResponse(response),
|
|
262
|
-
(reason) => formatError(reason),
|
|
276
|
+
(response) => formatResponse(response, this.serviceName, this.logger),
|
|
277
|
+
(reason) => formatError(reason, this.serviceName, this.logger),
|
|
263
278
|
);
|
|
264
279
|
}
|
|
265
280
|
|
|
266
281
|
async generatePaymentIntentId() {
|
|
267
282
|
return this.client.GET("/api/v1/transactions/generatePaymentIntentId").then(
|
|
268
|
-
(response) => formatResponse(response),
|
|
269
|
-
(reason) => formatError(reason),
|
|
283
|
+
(response) => formatResponse(response, this.serviceName, this.logger),
|
|
284
|
+
(reason) => formatError(reason, this.serviceName, this.logger),
|
|
270
285
|
);
|
|
271
286
|
}
|
|
272
287
|
|
|
@@ -280,8 +295,8 @@ export class Payments extends BaseClient<paths> {
|
|
|
280
295
|
},
|
|
281
296
|
})
|
|
282
297
|
.then(
|
|
283
|
-
(response) => formatResponse(response),
|
|
284
|
-
(reason) => formatError(reason),
|
|
298
|
+
(response) => formatResponse(response, this.serviceName, this.logger),
|
|
299
|
+
(reason) => formatError(reason, this.serviceName, this.logger),
|
|
285
300
|
);
|
|
286
301
|
}
|
|
287
302
|
/**
|
|
@@ -298,8 +313,8 @@ export class Payments extends BaseClient<paths> {
|
|
|
298
313
|
},
|
|
299
314
|
})
|
|
300
315
|
.then(
|
|
301
|
-
(response) => formatResponse(response),
|
|
302
|
-
(reason) => formatError(reason),
|
|
316
|
+
(response) => formatResponse(response, this.serviceName, this.logger),
|
|
317
|
+
(reason) => formatError(reason, this.serviceName, this.logger),
|
|
303
318
|
);
|
|
304
319
|
}
|
|
305
320
|
|
|
@@ -313,8 +328,8 @@ export class Payments extends BaseClient<paths> {
|
|
|
313
328
|
},
|
|
314
329
|
})
|
|
315
330
|
.then(
|
|
316
|
-
(response) => formatResponse(response),
|
|
317
|
-
(reason) => formatError(reason),
|
|
331
|
+
(response) => formatResponse(response, this.serviceName, this.logger),
|
|
332
|
+
(reason) => formatError(reason, this.serviceName, this.logger),
|
|
318
333
|
);
|
|
319
334
|
}
|
|
320
335
|
|
|
@@ -332,8 +347,8 @@ export class Payments extends BaseClient<paths> {
|
|
|
332
347
|
},
|
|
333
348
|
})
|
|
334
349
|
.then(
|
|
335
|
-
(response) => formatResponse(response),
|
|
336
|
-
(reason) => formatError(reason),
|
|
350
|
+
(response) => formatResponse(response, this.serviceName, this.logger),
|
|
351
|
+
(reason) => formatError(reason, this.serviceName, this.logger),
|
|
337
352
|
);
|
|
338
353
|
}
|
|
339
354
|
|
|
@@ -349,15 +364,15 @@ export class Payments extends BaseClient<paths> {
|
|
|
349
364
|
},
|
|
350
365
|
})
|
|
351
366
|
.then(
|
|
352
|
-
(response) => formatResponse(response),
|
|
353
|
-
(reason) => formatError(reason),
|
|
367
|
+
(response) => formatResponse(response, this.serviceName, this.logger),
|
|
368
|
+
(reason) => formatError(reason, this.serviceName, this.logger),
|
|
354
369
|
);
|
|
355
370
|
}
|
|
356
371
|
|
|
357
372
|
async getAuditLogEventTypes() {
|
|
358
373
|
return this.client.GET("/api/v1/auditLogs/event-types").then(
|
|
359
|
-
(response) => formatResponse(response),
|
|
360
|
-
(reason) => formatError(reason),
|
|
374
|
+
(response) => formatResponse(response, this.serviceName, this.logger),
|
|
375
|
+
(reason) => formatError(reason, this.serviceName, this.logger),
|
|
361
376
|
);
|
|
362
377
|
}
|
|
363
378
|
|
|
@@ -373,8 +388,8 @@ export class Payments extends BaseClient<paths> {
|
|
|
373
388
|
},
|
|
374
389
|
})
|
|
375
390
|
.then(
|
|
376
|
-
(response) => formatResponse(response),
|
|
377
|
-
(reason) => formatError(reason),
|
|
391
|
+
(response) => formatResponse(response, this.serviceName, this.logger),
|
|
392
|
+
(reason) => formatError(reason, this.serviceName, this.logger),
|
|
378
393
|
);
|
|
379
394
|
}
|
|
380
395
|
|
|
@@ -386,8 +401,8 @@ export class Payments extends BaseClient<paths> {
|
|
|
386
401
|
body: data,
|
|
387
402
|
})
|
|
388
403
|
.then(
|
|
389
|
-
(response) => formatResponse(response),
|
|
390
|
-
(reason) => formatError(reason),
|
|
404
|
+
(response) => formatResponse(response, this.serviceName, this.logger),
|
|
405
|
+
(reason) => formatError(reason, this.serviceName, this.logger),
|
|
391
406
|
);
|
|
392
407
|
}
|
|
393
408
|
}
|
|
@@ -369,88 +369,6 @@
|
|
|
369
369
|
}
|
|
370
370
|
]
|
|
371
371
|
},
|
|
372
|
-
"data": {
|
|
373
|
-
"anyOf": [
|
|
374
|
-
{
|
|
375
|
-
"type": "object",
|
|
376
|
-
"properties": {
|
|
377
|
-
"iban": {
|
|
378
|
-
"type": "string"
|
|
379
|
-
},
|
|
380
|
-
"accountHolderName": {
|
|
381
|
-
"type": "string"
|
|
382
|
-
}
|
|
383
|
-
},
|
|
384
|
-
"required": [
|
|
385
|
-
"iban",
|
|
386
|
-
"accountHolderName"
|
|
387
|
-
]
|
|
388
|
-
},
|
|
389
|
-
{
|
|
390
|
-
"type": "object",
|
|
391
|
-
"properties": {
|
|
392
|
-
"iban": {
|
|
393
|
-
"type": "string"
|
|
394
|
-
},
|
|
395
|
-
"accountHolderName": {
|
|
396
|
-
"type": "string"
|
|
397
|
-
}
|
|
398
|
-
},
|
|
399
|
-
"required": [
|
|
400
|
-
"iban",
|
|
401
|
-
"accountHolderName"
|
|
402
|
-
]
|
|
403
|
-
},
|
|
404
|
-
{
|
|
405
|
-
"type": "object",
|
|
406
|
-
"properties": {
|
|
407
|
-
"livePublishableKey": {
|
|
408
|
-
"type": "string"
|
|
409
|
-
},
|
|
410
|
-
"liveSecretKey": {
|
|
411
|
-
"type": "string"
|
|
412
|
-
},
|
|
413
|
-
"webhookSigningKey": {
|
|
414
|
-
"type": "string"
|
|
415
|
-
}
|
|
416
|
-
},
|
|
417
|
-
"required": [
|
|
418
|
-
"livePublishableKey",
|
|
419
|
-
"liveSecretKey"
|
|
420
|
-
]
|
|
421
|
-
},
|
|
422
|
-
{
|
|
423
|
-
"type": "object",
|
|
424
|
-
"properties": {
|
|
425
|
-
"merchantCode": {
|
|
426
|
-
"type": "string"
|
|
427
|
-
},
|
|
428
|
-
"installationId": {
|
|
429
|
-
"type": "string"
|
|
430
|
-
}
|
|
431
|
-
},
|
|
432
|
-
"required": [
|
|
433
|
-
"merchantCode",
|
|
434
|
-
"installationId"
|
|
435
|
-
]
|
|
436
|
-
},
|
|
437
|
-
{
|
|
438
|
-
"type": "object",
|
|
439
|
-
"properties": {
|
|
440
|
-
"merchantId": {
|
|
441
|
-
"type": "string"
|
|
442
|
-
},
|
|
443
|
-
"sharedSecret": {
|
|
444
|
-
"type": "string"
|
|
445
|
-
}
|
|
446
|
-
},
|
|
447
|
-
"required": [
|
|
448
|
-
"merchantId",
|
|
449
|
-
"sharedSecret"
|
|
450
|
-
]
|
|
451
|
-
}
|
|
452
|
-
]
|
|
453
|
-
},
|
|
454
372
|
"status": {
|
|
455
373
|
"anyOf": [
|
|
456
374
|
{
|
|
@@ -472,7 +390,6 @@
|
|
|
472
390
|
"id",
|
|
473
391
|
"name",
|
|
474
392
|
"type",
|
|
475
|
-
"data",
|
|
476
393
|
"status"
|
|
477
394
|
]
|
|
478
395
|
}
|
|
@@ -666,6 +583,22 @@
|
|
|
666
583
|
}
|
|
667
584
|
]
|
|
668
585
|
},
|
|
586
|
+
"status": {
|
|
587
|
+
"anyOf": [
|
|
588
|
+
{
|
|
589
|
+
"type": "string",
|
|
590
|
+
"enum": [
|
|
591
|
+
"connected"
|
|
592
|
+
]
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
"type": "string",
|
|
596
|
+
"enum": [
|
|
597
|
+
"disconnected"
|
|
598
|
+
]
|
|
599
|
+
}
|
|
600
|
+
]
|
|
601
|
+
},
|
|
669
602
|
"data": {
|
|
670
603
|
"anyOf": [
|
|
671
604
|
{
|
|
@@ -747,30 +680,14 @@
|
|
|
747
680
|
]
|
|
748
681
|
}
|
|
749
682
|
]
|
|
750
|
-
},
|
|
751
|
-
"status": {
|
|
752
|
-
"anyOf": [
|
|
753
|
-
{
|
|
754
|
-
"type": "string",
|
|
755
|
-
"enum": [
|
|
756
|
-
"connected"
|
|
757
|
-
]
|
|
758
|
-
},
|
|
759
|
-
{
|
|
760
|
-
"type": "string",
|
|
761
|
-
"enum": [
|
|
762
|
-
"disconnected"
|
|
763
|
-
]
|
|
764
|
-
}
|
|
765
|
-
]
|
|
766
683
|
}
|
|
767
684
|
},
|
|
768
685
|
"required": [
|
|
769
686
|
"id",
|
|
770
687
|
"name",
|
|
771
688
|
"type",
|
|
772
|
-
"
|
|
773
|
-
"
|
|
689
|
+
"status",
|
|
690
|
+
"data"
|
|
774
691
|
]
|
|
775
692
|
},
|
|
776
693
|
"metadata": {
|
|
@@ -2226,6 +2143,164 @@
|
|
|
2226
2143
|
}
|
|
2227
2144
|
}
|
|
2228
2145
|
},
|
|
2146
|
+
"/api/v1/requests/external-info": {
|
|
2147
|
+
"get": {
|
|
2148
|
+
"tags": [
|
|
2149
|
+
"PaymentRequests"
|
|
2150
|
+
],
|
|
2151
|
+
"parameters": [
|
|
2152
|
+
{
|
|
2153
|
+
"schema": {
|
|
2154
|
+
"default": 0,
|
|
2155
|
+
"minimum": 0,
|
|
2156
|
+
"type": "number"
|
|
2157
|
+
},
|
|
2158
|
+
"in": "query",
|
|
2159
|
+
"name": "offset",
|
|
2160
|
+
"required": false
|
|
2161
|
+
},
|
|
2162
|
+
{
|
|
2163
|
+
"schema": {
|
|
2164
|
+
"default": 10,
|
|
2165
|
+
"minimum": 5,
|
|
2166
|
+
"maximum": 50,
|
|
2167
|
+
"multipleOf": 5,
|
|
2168
|
+
"type": "number"
|
|
2169
|
+
},
|
|
2170
|
+
"in": "query",
|
|
2171
|
+
"name": "limit",
|
|
2172
|
+
"required": false
|
|
2173
|
+
}
|
|
2174
|
+
],
|
|
2175
|
+
"responses": {
|
|
2176
|
+
"200": {
|
|
2177
|
+
"description": "Default Response",
|
|
2178
|
+
"content": {
|
|
2179
|
+
"application/json": {
|
|
2180
|
+
"schema": {
|
|
2181
|
+
"type": "object",
|
|
2182
|
+
"properties": {
|
|
2183
|
+
"data": {
|
|
2184
|
+
"type": "array",
|
|
2185
|
+
"items": {
|
|
2186
|
+
"type": "object",
|
|
2187
|
+
"properties": {
|
|
2188
|
+
"paymentRequestId": {
|
|
2189
|
+
"type": "string"
|
|
2190
|
+
},
|
|
2191
|
+
"title": {
|
|
2192
|
+
"type": "string"
|
|
2193
|
+
},
|
|
2194
|
+
"description": {
|
|
2195
|
+
"type": "string"
|
|
2196
|
+
},
|
|
2197
|
+
"amount": {
|
|
2198
|
+
"type": "number"
|
|
2199
|
+
},
|
|
2200
|
+
"allowAmountOverride": {
|
|
2201
|
+
"type": "boolean"
|
|
2202
|
+
},
|
|
2203
|
+
"createdAt": {
|
|
2204
|
+
"type": "string"
|
|
2205
|
+
}
|
|
2206
|
+
},
|
|
2207
|
+
"required": [
|
|
2208
|
+
"paymentRequestId",
|
|
2209
|
+
"title",
|
|
2210
|
+
"allowAmountOverride",
|
|
2211
|
+
"createdAt"
|
|
2212
|
+
]
|
|
2213
|
+
}
|
|
2214
|
+
},
|
|
2215
|
+
"metadata": {
|
|
2216
|
+
"type": "object",
|
|
2217
|
+
"properties": {
|
|
2218
|
+
"links": {
|
|
2219
|
+
"description": "Object containing the links to the related endpoints",
|
|
2220
|
+
"type": "object",
|
|
2221
|
+
"properties": {
|
|
2222
|
+
"self": {
|
|
2223
|
+
"type": "object",
|
|
2224
|
+
"properties": {
|
|
2225
|
+
"href": {
|
|
2226
|
+
"description": "URL pointing to the request itself",
|
|
2227
|
+
"type": "string"
|
|
2228
|
+
}
|
|
2229
|
+
}
|
|
2230
|
+
},
|
|
2231
|
+
"next": {
|
|
2232
|
+
"type": "object",
|
|
2233
|
+
"properties": {
|
|
2234
|
+
"href": {
|
|
2235
|
+
"description": "URL pointing to the next page of results in a paginated response. If there are no more results, this field may be omitted",
|
|
2236
|
+
"type": "string"
|
|
2237
|
+
}
|
|
2238
|
+
}
|
|
2239
|
+
},
|
|
2240
|
+
"prev": {
|
|
2241
|
+
"type": "object",
|
|
2242
|
+
"properties": {
|
|
2243
|
+
"href": {
|
|
2244
|
+
"description": "URL pointing to the previous page of results in a paginated response. If there are no more results, this field may be omitted",
|
|
2245
|
+
"type": "string"
|
|
2246
|
+
}
|
|
2247
|
+
}
|
|
2248
|
+
},
|
|
2249
|
+
"first": {
|
|
2250
|
+
"type": "object",
|
|
2251
|
+
"properties": {
|
|
2252
|
+
"href": {
|
|
2253
|
+
"description": "URL pointing to the first page of results in a paginated response",
|
|
2254
|
+
"type": "string"
|
|
2255
|
+
}
|
|
2256
|
+
}
|
|
2257
|
+
},
|
|
2258
|
+
"last": {
|
|
2259
|
+
"type": "object",
|
|
2260
|
+
"properties": {
|
|
2261
|
+
"href": {
|
|
2262
|
+
"description": "URL pointing to the first page of results in a paginated response",
|
|
2263
|
+
"type": "string"
|
|
2264
|
+
}
|
|
2265
|
+
}
|
|
2266
|
+
},
|
|
2267
|
+
"pages": {
|
|
2268
|
+
"description": "It may contain a list of other useful URLs, e.g. one entry for page:'page 1', 'page 2'",
|
|
2269
|
+
"type": "object",
|
|
2270
|
+
"additionalProperties": {
|
|
2271
|
+
"type": "object",
|
|
2272
|
+
"properties": {
|
|
2273
|
+
"href": {
|
|
2274
|
+
"type": "string"
|
|
2275
|
+
}
|
|
2276
|
+
}
|
|
2277
|
+
}
|
|
2278
|
+
}
|
|
2279
|
+
},
|
|
2280
|
+
"required": [
|
|
2281
|
+
"self",
|
|
2282
|
+
"first",
|
|
2283
|
+
"last",
|
|
2284
|
+
"pages"
|
|
2285
|
+
]
|
|
2286
|
+
},
|
|
2287
|
+
"totalCount": {
|
|
2288
|
+
"description": "Number representing the total number of available items",
|
|
2289
|
+
"type": "number"
|
|
2290
|
+
}
|
|
2291
|
+
}
|
|
2292
|
+
}
|
|
2293
|
+
},
|
|
2294
|
+
"required": [
|
|
2295
|
+
"data"
|
|
2296
|
+
]
|
|
2297
|
+
}
|
|
2298
|
+
}
|
|
2299
|
+
}
|
|
2300
|
+
}
|
|
2301
|
+
}
|
|
2302
|
+
}
|
|
2303
|
+
},
|
|
2229
2304
|
"/api/v1/requests/{requestId}": {
|
|
2230
2305
|
"get": {
|
|
2231
2306
|
"tags": [
|