@ogcio/building-blocks-sdk 0.1.17 → 0.2.0
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/.gitleaksignore +2 -0
- package/.release-please-manifest.json +1 -1
- package/CHANGELOG.md +18 -0
- package/dist/client/clients/featureFlags/schema.d.ts +205 -63
- package/dist/client/clients/featureFlags/schema.d.ts.map +1 -1
- package/dist/client/clients/messaging/index.d.ts +2 -1835
- package/dist/client/clients/messaging/index.d.ts.map +1 -1
- package/dist/client/clients/messaging/index.js +3 -179
- package/dist/client/clients/messaging/index.js.map +1 -1
- package/dist/client/clients/messaging/schema.d.ts +2763 -2750
- package/dist/client/clients/messaging/schema.d.ts.map +1 -1
- 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/dist/client/clients/profile/index.d.ts +852 -440
- package/dist/client/clients/profile/index.d.ts.map +1 -1
- package/dist/client/clients/profile/index.js +88 -54
- package/dist/client/clients/profile/index.js.map +1 -1
- package/dist/client/clients/profile/schema.d.ts +1237 -1114
- package/dist/client/clients/profile/schema.d.ts.map +1 -1
- package/dist/clients-configurations/clients-configuration.json +5 -4
- package/package.json +1 -1
- package/src/client/clients/featureFlags/open-api-definition.json +184 -95
- package/src/client/clients/featureFlags/schema.ts +205 -63
- package/src/client/clients/messaging/index.ts +2 -278
- package/src/client/clients/messaging/open-api-definition.json +30 -18
- package/src/client/clients/messaging/schema.ts +2763 -2750
- 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
- package/src/client/clients/profile/index.ts +140 -84
- package/src/client/clients/profile/open-api-definition.json +1825 -1323
- package/src/client/clients/profile/schema.ts +1237 -1114
- package/src/clients-configurations/clients-configuration.json +5 -4
|
@@ -312,6 +312,43 @@ export class Payments extends BaseClient<paths> {
|
|
|
312
312
|
(reason) => formatError(reason, this.serviceName, this.logger),
|
|
313
313
|
);
|
|
314
314
|
}
|
|
315
|
+
|
|
316
|
+
async createRefund(
|
|
317
|
+
transactionId: paths["/api/v1/transactions/{transactionId}/refund"]["post"]["parameters"]["path"]["transactionId"],
|
|
318
|
+
data: paths["/api/v1/transactions/{transactionId}/refund"]["post"]["requestBody"]["content"]["application/json"],
|
|
319
|
+
) {
|
|
320
|
+
return this.client
|
|
321
|
+
.POST("/api/v1/transactions/{transactionId}/refund", {
|
|
322
|
+
params: {
|
|
323
|
+
path: {
|
|
324
|
+
transactionId,
|
|
325
|
+
},
|
|
326
|
+
},
|
|
327
|
+
body: data,
|
|
328
|
+
})
|
|
329
|
+
.then(
|
|
330
|
+
(response) => formatResponse(response, this.serviceName, this.logger),
|
|
331
|
+
(reason) => formatError(reason, this.serviceName, this.logger),
|
|
332
|
+
);
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
async getRefoundByTransactionId(
|
|
336
|
+
transactionId: paths["/api/v1/transactions/{transactionId}/refund"]["post"]["parameters"]["path"]["transactionId"],
|
|
337
|
+
) {
|
|
338
|
+
return this.client
|
|
339
|
+
.GET("/api/v1/transactions/{transactionId}/refund", {
|
|
340
|
+
params: {
|
|
341
|
+
path: {
|
|
342
|
+
transactionId,
|
|
343
|
+
},
|
|
344
|
+
},
|
|
345
|
+
})
|
|
346
|
+
.then(
|
|
347
|
+
(response) => formatResponse(response, this.serviceName, this.logger),
|
|
348
|
+
(reason) => formatError(reason, this.serviceName, this.logger),
|
|
349
|
+
);
|
|
350
|
+
}
|
|
351
|
+
|
|
315
352
|
/**
|
|
316
353
|
* Citizen
|
|
317
354
|
*/
|