@ogcio/building-blocks-sdk 0.1.16 → 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.
@@ -3159,7 +3159,7 @@
3159
3159
  "type": "object",
3160
3160
  "properties": {
3161
3161
  "amount": {
3162
- "type": "number"
3162
+ "type": "string"
3163
3163
  },
3164
3164
  "runId": {
3165
3165
  "type": "string"
@@ -3711,6 +3711,9 @@
3711
3711
  },
3712
3712
  "redirectUrl": {
3713
3713
  "type": "string"
3714
+ },
3715
+ "amount": {
3716
+ "type": "string"
3714
3717
  }
3715
3718
  }
3716
3719
  },
@@ -4270,6 +4273,9 @@
4270
4273
  },
4271
4274
  "redirectUrl": {
4272
4275
  "type": "string"
4276
+ },
4277
+ "amount": {
4278
+ "type": "string"
4273
4279
  }
4274
4280
  }
4275
4281
  },
@@ -4534,8 +4540,14 @@
4534
4540
  },
4535
4541
  "redirectUrl": {
4536
4542
  "type": "string"
4543
+ },
4544
+ "amount": {
4545
+ "type": "string"
4537
4546
  }
4538
4547
  }
4548
+ },
4549
+ "token": {
4550
+ "type": "string"
4539
4551
  }
4540
4552
  },
4541
4553
  "required": [
@@ -5432,33 +5444,41 @@
5432
5444
  }
5433
5445
  }
5434
5446
  },
5435
- "/api/v1/citizen/transactions": {
5436
- "get": {
5437
- "tags": [
5438
- "Citizen"
5439
- ],
5440
- "parameters": [
5441
- {
5442
- "schema": {
5443
- "default": 0,
5444
- "minimum": 0,
5445
- "type": "number"
5446
- },
5447
- "in": "query",
5448
- "name": "offset",
5449
- "required": false
5447
+ "/api/v1/transactions/{transactionId}/refund": {
5448
+ "post": {
5449
+ "requestBody": {
5450
+ "content": {
5451
+ "application/json": {
5452
+ "schema": {
5453
+ "type": "object",
5454
+ "properties": {
5455
+ "amount": {
5456
+ "type": "number"
5457
+ },
5458
+ "reason": {
5459
+ "type": "string"
5460
+ },
5461
+ "notes": {
5462
+ "type": "string"
5463
+ }
5464
+ },
5465
+ "required": [
5466
+ "amount",
5467
+ "reason"
5468
+ ]
5469
+ }
5470
+ }
5450
5471
  },
5472
+ "required": true
5473
+ },
5474
+ "parameters": [
5451
5475
  {
5452
5476
  "schema": {
5453
- "default": 10,
5454
- "minimum": 5,
5455
- "maximum": 50,
5456
- "multipleOf": 5,
5457
- "type": "number"
5477
+ "type": "string"
5458
5478
  },
5459
- "in": "query",
5460
- "name": "limit",
5461
- "required": false
5479
+ "in": "path",
5480
+ "name": "transactionId",
5481
+ "required": true
5462
5482
  }
5463
5483
  ],
5464
5484
  "responses": {
@@ -5470,71 +5490,15 @@
5470
5490
  "type": "object",
5471
5491
  "properties": {
5472
5492
  "data": {
5473
- "type": "array",
5474
- "items": {
5475
- "type": "object",
5476
- "properties": {
5477
- "transactionId": {
5478
- "type": "string"
5479
- },
5480
- "status": {
5481
- "anyOf": [
5482
- {
5483
- "type": "string",
5484
- "enum": [
5485
- "initiated"
5486
- ]
5487
- },
5488
- {
5489
- "type": "string",
5490
- "enum": [
5491
- "pending"
5492
- ]
5493
- },
5494
- {
5495
- "type": "string",
5496
- "enum": [
5497
- "succeeded"
5498
- ]
5499
- },
5500
- {
5501
- "type": "string",
5502
- "enum": [
5503
- "cancelled"
5504
- ]
5505
- },
5506
- {
5507
- "type": "string",
5508
- "enum": [
5509
- "failed"
5510
- ]
5511
- }
5512
- ]
5513
- },
5514
- "title": {
5515
- "type": "string"
5516
- },
5517
- "updatedAt": {
5518
- "type": "string"
5519
- },
5520
- "extPaymentId": {
5521
- "type": "string"
5522
- },
5523
- "amount": {
5524
- "minimum": 1,
5525
- "maximum": 1000000,
5526
- "type": "number"
5527
- }
5528
- },
5529
- "required": [
5530
- "transactionId",
5531
- "status",
5532
- "title",
5533
- "updatedAt",
5534
- "extPaymentId",
5535
- "amount"
5536
- ]
5537
- }
5493
+ "type": "object",
5494
+ "properties": {
5495
+ "status": {
5496
+ "type": "string"
5497
+ }
5498
+ },
5499
+ "required": [
5500
+ "status"
5501
+ ]
5538
5502
  },
5539
5503
  "metadata": {
5540
5504
  "type": "object",
@@ -5656,40 +5620,6 @@
5656
5620
  }
5657
5621
  }
5658
5622
  },
5659
- "404": {
5660
- "description": "Default Response",
5661
- "content": {
5662
- "application/json": {
5663
- "schema": {
5664
- "type": "object",
5665
- "properties": {
5666
- "code": {
5667
- "type": "string"
5668
- },
5669
- "detail": {
5670
- "type": "string"
5671
- },
5672
- "requestId": {
5673
- "type": "string"
5674
- },
5675
- "name": {
5676
- "type": "string"
5677
- },
5678
- "validation": {},
5679
- "validationContext": {
5680
- "type": "string"
5681
- }
5682
- },
5683
- "required": [
5684
- "code",
5685
- "detail",
5686
- "requestId",
5687
- "name"
5688
- ]
5689
- }
5690
- }
5691
- }
5692
- },
5693
5623
  "500": {
5694
5624
  "description": "Default Response",
5695
5625
  "content": {
@@ -5725,13 +5655,8 @@
5725
5655
  }
5726
5656
  }
5727
5657
  }
5728
- }
5729
- },
5730
- "/api/v1/citizen/transactions/{transactionId}": {
5658
+ },
5731
5659
  "get": {
5732
- "tags": [
5733
- "Transactions"
5734
- ],
5735
5660
  "parameters": [
5736
5661
  {
5737
5662
  "schema": {
@@ -5753,114 +5678,99 @@
5753
5678
  "data": {
5754
5679
  "type": "object",
5755
5680
  "properties": {
5681
+ "id": {
5682
+ "type": "string"
5683
+ },
5756
5684
  "transactionId": {
5757
5685
  "type": "string"
5758
5686
  },
5687
+ "amount": {
5688
+ "type": "number"
5689
+ },
5759
5690
  "status": {
5760
5691
  "anyOf": [
5761
5692
  {
5762
5693
  "type": "string",
5763
5694
  "enum": [
5764
- "initiated"
5695
+ "pending"
5765
5696
  ]
5766
5697
  },
5767
5698
  {
5768
5699
  "type": "string",
5769
5700
  "enum": [
5770
- "pending"
5701
+ "succeeded"
5771
5702
  ]
5772
5703
  },
5773
5704
  {
5774
5705
  "type": "string",
5775
5706
  "enum": [
5776
- "succeeded"
5707
+ "failed"
5777
5708
  ]
5778
5709
  },
5779
5710
  {
5780
5711
  "type": "string",
5781
5712
  "enum": [
5782
- "cancelled"
5713
+ "requires_action"
5783
5714
  ]
5784
5715
  },
5785
5716
  {
5786
5717
  "type": "string",
5787
5718
  "enum": [
5788
- "failed"
5719
+ "canceled"
5789
5720
  ]
5790
5721
  }
5791
5722
  ]
5792
5723
  },
5793
- "amount": {
5794
- "minimum": 1,
5795
- "maximum": 1000000,
5796
- "type": "number"
5797
- },
5798
- "extPaymentId": {
5799
- "allOf": [
5724
+ "type": {
5725
+ "anyOf": [
5800
5726
  {
5801
- "type": "string"
5727
+ "type": "string",
5728
+ "enum": [
5729
+ "full"
5730
+ ]
5802
5731
  },
5803
5732
  {
5804
- "type": "string"
5733
+ "type": "string",
5734
+ "enum": [
5735
+ "partial"
5736
+ ]
5805
5737
  }
5806
5738
  ]
5807
5739
  },
5808
- "paymentProviderId": {
5809
- "type": "string"
5810
- },
5811
- "updatedAt": {
5740
+ "reason": {
5812
5741
  "type": "string"
5813
5742
  },
5814
- "title": {
5743
+ "notes": {
5815
5744
  "type": "string"
5816
5745
  },
5817
- "userId": {
5746
+ "createdAt": {
5818
5747
  "type": "string"
5819
5748
  },
5820
- "metadata": {
5821
- "type": "object",
5822
- "properties": {
5823
- "runId": {
5824
- "type": "string"
5825
- },
5826
- "journeyId": {
5827
- "type": "string"
5828
- },
5829
- "journeyTitle": {
5830
- "type": "string"
5831
- },
5832
- "redirectUrl": {
5833
- "type": "string"
5834
- }
5835
- }
5836
- },
5837
- "description": {
5749
+ "updatedAt": {
5838
5750
  "type": "string"
5839
5751
  },
5840
- "providerName": {
5752
+ "username": {
5841
5753
  "type": "string"
5842
5754
  },
5843
- "providerType": {
5755
+ "email": {
5844
5756
  "type": "string"
5845
5757
  },
5846
- "paymentRequestId": {
5758
+ "organizationId": {
5847
5759
  "type": "string"
5848
5760
  }
5849
5761
  },
5850
5762
  "required": [
5763
+ "id",
5851
5764
  "transactionId",
5852
- "status",
5853
5765
  "amount",
5854
- "extPaymentId",
5855
- "paymentProviderId",
5766
+ "status",
5767
+ "type",
5768
+ "reason",
5769
+ "createdAt",
5856
5770
  "updatedAt",
5857
- "title",
5858
- "userId",
5859
- "metadata",
5860
- "description",
5861
- "providerName",
5862
- "providerType",
5863
- "paymentRequestId"
5771
+ "username",
5772
+ "email",
5773
+ "organizationId"
5864
5774
  ]
5865
5775
  },
5866
5776
  "metadata": {
@@ -5949,7 +5859,7 @@
5949
5859
  }
5950
5860
  }
5951
5861
  },
5952
- "404": {
5862
+ "401": {
5953
5863
  "description": "Default Response",
5954
5864
  "content": {
5955
5865
  "application/json": {
@@ -5982,10 +5892,635 @@
5982
5892
  }
5983
5893
  }
5984
5894
  }
5985
- }
5986
- }
5987
- }
5988
- },
5895
+ },
5896
+ "404": {
5897
+ "description": "Default Response",
5898
+ "content": {
5899
+ "application/json": {
5900
+ "schema": {
5901
+ "type": "object",
5902
+ "properties": {
5903
+ "code": {
5904
+ "type": "string"
5905
+ },
5906
+ "detail": {
5907
+ "type": "string"
5908
+ },
5909
+ "requestId": {
5910
+ "type": "string"
5911
+ },
5912
+ "name": {
5913
+ "type": "string"
5914
+ },
5915
+ "validation": {},
5916
+ "validationContext": {
5917
+ "type": "string"
5918
+ }
5919
+ },
5920
+ "required": [
5921
+ "code",
5922
+ "detail",
5923
+ "requestId",
5924
+ "name"
5925
+ ]
5926
+ }
5927
+ }
5928
+ }
5929
+ },
5930
+ "500": {
5931
+ "description": "Default Response",
5932
+ "content": {
5933
+ "application/json": {
5934
+ "schema": {
5935
+ "type": "object",
5936
+ "properties": {
5937
+ "code": {
5938
+ "type": "string"
5939
+ },
5940
+ "detail": {
5941
+ "type": "string"
5942
+ },
5943
+ "requestId": {
5944
+ "type": "string"
5945
+ },
5946
+ "name": {
5947
+ "type": "string"
5948
+ },
5949
+ "validation": {},
5950
+ "validationContext": {
5951
+ "type": "string"
5952
+ }
5953
+ },
5954
+ "required": [
5955
+ "code",
5956
+ "detail",
5957
+ "requestId",
5958
+ "name"
5959
+ ]
5960
+ }
5961
+ }
5962
+ }
5963
+ }
5964
+ }
5965
+ }
5966
+ },
5967
+ "/api/v1/citizen/transactions": {
5968
+ "get": {
5969
+ "tags": [
5970
+ "Citizen"
5971
+ ],
5972
+ "parameters": [
5973
+ {
5974
+ "schema": {
5975
+ "default": 0,
5976
+ "minimum": 0,
5977
+ "type": "number"
5978
+ },
5979
+ "in": "query",
5980
+ "name": "offset",
5981
+ "required": false
5982
+ },
5983
+ {
5984
+ "schema": {
5985
+ "default": 10,
5986
+ "minimum": 5,
5987
+ "maximum": 50,
5988
+ "multipleOf": 5,
5989
+ "type": "number"
5990
+ },
5991
+ "in": "query",
5992
+ "name": "limit",
5993
+ "required": false
5994
+ }
5995
+ ],
5996
+ "responses": {
5997
+ "200": {
5998
+ "description": "Default Response",
5999
+ "content": {
6000
+ "application/json": {
6001
+ "schema": {
6002
+ "type": "object",
6003
+ "properties": {
6004
+ "data": {
6005
+ "type": "array",
6006
+ "items": {
6007
+ "type": "object",
6008
+ "properties": {
6009
+ "transactionId": {
6010
+ "type": "string"
6011
+ },
6012
+ "status": {
6013
+ "anyOf": [
6014
+ {
6015
+ "type": "string",
6016
+ "enum": [
6017
+ "initiated"
6018
+ ]
6019
+ },
6020
+ {
6021
+ "type": "string",
6022
+ "enum": [
6023
+ "pending"
6024
+ ]
6025
+ },
6026
+ {
6027
+ "type": "string",
6028
+ "enum": [
6029
+ "succeeded"
6030
+ ]
6031
+ },
6032
+ {
6033
+ "type": "string",
6034
+ "enum": [
6035
+ "cancelled"
6036
+ ]
6037
+ },
6038
+ {
6039
+ "type": "string",
6040
+ "enum": [
6041
+ "failed"
6042
+ ]
6043
+ }
6044
+ ]
6045
+ },
6046
+ "title": {
6047
+ "type": "string"
6048
+ },
6049
+ "updatedAt": {
6050
+ "type": "string"
6051
+ },
6052
+ "extPaymentId": {
6053
+ "type": "string"
6054
+ },
6055
+ "amount": {
6056
+ "minimum": 1,
6057
+ "maximum": 1000000,
6058
+ "type": "number"
6059
+ }
6060
+ },
6061
+ "required": [
6062
+ "transactionId",
6063
+ "status",
6064
+ "title",
6065
+ "updatedAt",
6066
+ "extPaymentId",
6067
+ "amount"
6068
+ ]
6069
+ }
6070
+ },
6071
+ "metadata": {
6072
+ "type": "object",
6073
+ "properties": {
6074
+ "links": {
6075
+ "description": "Object containing the links to the related endpoints",
6076
+ "type": "object",
6077
+ "properties": {
6078
+ "self": {
6079
+ "type": "object",
6080
+ "properties": {
6081
+ "href": {
6082
+ "description": "URL pointing to the request itself",
6083
+ "type": "string"
6084
+ }
6085
+ }
6086
+ },
6087
+ "next": {
6088
+ "type": "object",
6089
+ "properties": {
6090
+ "href": {
6091
+ "description": "URL pointing to the next page of results in a paginated response. If there are no more results, this field may be omitted",
6092
+ "type": "string"
6093
+ }
6094
+ }
6095
+ },
6096
+ "prev": {
6097
+ "type": "object",
6098
+ "properties": {
6099
+ "href": {
6100
+ "description": "URL pointing to the previous page of results in a paginated response. If there are no more results, this field may be omitted",
6101
+ "type": "string"
6102
+ }
6103
+ }
6104
+ },
6105
+ "first": {
6106
+ "type": "object",
6107
+ "properties": {
6108
+ "href": {
6109
+ "description": "URL pointing to the first page of results in a paginated response",
6110
+ "type": "string"
6111
+ }
6112
+ }
6113
+ },
6114
+ "last": {
6115
+ "type": "object",
6116
+ "properties": {
6117
+ "href": {
6118
+ "description": "URL pointing to the first page of results in a paginated response",
6119
+ "type": "string"
6120
+ }
6121
+ }
6122
+ },
6123
+ "pages": {
6124
+ "description": "It may contain a list of other useful URLs, e.g. one entry for page:'page 1', 'page 2'",
6125
+ "type": "object",
6126
+ "additionalProperties": {
6127
+ "type": "object",
6128
+ "properties": {
6129
+ "href": {
6130
+ "type": "string"
6131
+ }
6132
+ }
6133
+ }
6134
+ }
6135
+ },
6136
+ "required": [
6137
+ "self",
6138
+ "first",
6139
+ "last",
6140
+ "pages"
6141
+ ]
6142
+ },
6143
+ "totalCount": {
6144
+ "description": "Number representing the total number of available items",
6145
+ "type": "number"
6146
+ }
6147
+ }
6148
+ }
6149
+ },
6150
+ "required": [
6151
+ "data"
6152
+ ]
6153
+ }
6154
+ }
6155
+ }
6156
+ },
6157
+ "401": {
6158
+ "description": "Default Response",
6159
+ "content": {
6160
+ "application/json": {
6161
+ "schema": {
6162
+ "type": "object",
6163
+ "properties": {
6164
+ "code": {
6165
+ "type": "string"
6166
+ },
6167
+ "detail": {
6168
+ "type": "string"
6169
+ },
6170
+ "requestId": {
6171
+ "type": "string"
6172
+ },
6173
+ "name": {
6174
+ "type": "string"
6175
+ },
6176
+ "validation": {},
6177
+ "validationContext": {
6178
+ "type": "string"
6179
+ }
6180
+ },
6181
+ "required": [
6182
+ "code",
6183
+ "detail",
6184
+ "requestId",
6185
+ "name"
6186
+ ]
6187
+ }
6188
+ }
6189
+ }
6190
+ },
6191
+ "404": {
6192
+ "description": "Default Response",
6193
+ "content": {
6194
+ "application/json": {
6195
+ "schema": {
6196
+ "type": "object",
6197
+ "properties": {
6198
+ "code": {
6199
+ "type": "string"
6200
+ },
6201
+ "detail": {
6202
+ "type": "string"
6203
+ },
6204
+ "requestId": {
6205
+ "type": "string"
6206
+ },
6207
+ "name": {
6208
+ "type": "string"
6209
+ },
6210
+ "validation": {},
6211
+ "validationContext": {
6212
+ "type": "string"
6213
+ }
6214
+ },
6215
+ "required": [
6216
+ "code",
6217
+ "detail",
6218
+ "requestId",
6219
+ "name"
6220
+ ]
6221
+ }
6222
+ }
6223
+ }
6224
+ },
6225
+ "500": {
6226
+ "description": "Default Response",
6227
+ "content": {
6228
+ "application/json": {
6229
+ "schema": {
6230
+ "type": "object",
6231
+ "properties": {
6232
+ "code": {
6233
+ "type": "string"
6234
+ },
6235
+ "detail": {
6236
+ "type": "string"
6237
+ },
6238
+ "requestId": {
6239
+ "type": "string"
6240
+ },
6241
+ "name": {
6242
+ "type": "string"
6243
+ },
6244
+ "validation": {},
6245
+ "validationContext": {
6246
+ "type": "string"
6247
+ }
6248
+ },
6249
+ "required": [
6250
+ "code",
6251
+ "detail",
6252
+ "requestId",
6253
+ "name"
6254
+ ]
6255
+ }
6256
+ }
6257
+ }
6258
+ }
6259
+ }
6260
+ }
6261
+ },
6262
+ "/api/v1/citizen/transactions/{transactionId}": {
6263
+ "get": {
6264
+ "tags": [
6265
+ "Transactions"
6266
+ ],
6267
+ "parameters": [
6268
+ {
6269
+ "schema": {
6270
+ "type": "string"
6271
+ },
6272
+ "in": "path",
6273
+ "name": "transactionId",
6274
+ "required": true
6275
+ }
6276
+ ],
6277
+ "responses": {
6278
+ "200": {
6279
+ "description": "Default Response",
6280
+ "content": {
6281
+ "application/json": {
6282
+ "schema": {
6283
+ "type": "object",
6284
+ "properties": {
6285
+ "data": {
6286
+ "type": "object",
6287
+ "properties": {
6288
+ "transactionId": {
6289
+ "type": "string"
6290
+ },
6291
+ "status": {
6292
+ "anyOf": [
6293
+ {
6294
+ "type": "string",
6295
+ "enum": [
6296
+ "initiated"
6297
+ ]
6298
+ },
6299
+ {
6300
+ "type": "string",
6301
+ "enum": [
6302
+ "pending"
6303
+ ]
6304
+ },
6305
+ {
6306
+ "type": "string",
6307
+ "enum": [
6308
+ "succeeded"
6309
+ ]
6310
+ },
6311
+ {
6312
+ "type": "string",
6313
+ "enum": [
6314
+ "cancelled"
6315
+ ]
6316
+ },
6317
+ {
6318
+ "type": "string",
6319
+ "enum": [
6320
+ "failed"
6321
+ ]
6322
+ }
6323
+ ]
6324
+ },
6325
+ "amount": {
6326
+ "minimum": 1,
6327
+ "maximum": 1000000,
6328
+ "type": "number"
6329
+ },
6330
+ "extPaymentId": {
6331
+ "allOf": [
6332
+ {
6333
+ "type": "string"
6334
+ },
6335
+ {
6336
+ "type": "string"
6337
+ }
6338
+ ]
6339
+ },
6340
+ "paymentProviderId": {
6341
+ "type": "string"
6342
+ },
6343
+ "updatedAt": {
6344
+ "type": "string"
6345
+ },
6346
+ "title": {
6347
+ "type": "string"
6348
+ },
6349
+ "userId": {
6350
+ "type": "string"
6351
+ },
6352
+ "metadata": {
6353
+ "type": "object",
6354
+ "properties": {
6355
+ "runId": {
6356
+ "type": "string"
6357
+ },
6358
+ "journeyId": {
6359
+ "type": "string"
6360
+ },
6361
+ "journeyTitle": {
6362
+ "type": "string"
6363
+ },
6364
+ "redirectUrl": {
6365
+ "type": "string"
6366
+ },
6367
+ "amount": {
6368
+ "type": "string"
6369
+ }
6370
+ }
6371
+ },
6372
+ "description": {
6373
+ "type": "string"
6374
+ },
6375
+ "providerName": {
6376
+ "type": "string"
6377
+ },
6378
+ "providerType": {
6379
+ "type": "string"
6380
+ },
6381
+ "paymentRequestId": {
6382
+ "type": "string"
6383
+ }
6384
+ },
6385
+ "required": [
6386
+ "transactionId",
6387
+ "status",
6388
+ "amount",
6389
+ "extPaymentId",
6390
+ "paymentProviderId",
6391
+ "updatedAt",
6392
+ "title",
6393
+ "userId",
6394
+ "metadata",
6395
+ "description",
6396
+ "providerName",
6397
+ "providerType",
6398
+ "paymentRequestId"
6399
+ ]
6400
+ },
6401
+ "metadata": {
6402
+ "type": "object",
6403
+ "properties": {
6404
+ "links": {
6405
+ "description": "Object containing the links to the related endpoints",
6406
+ "type": "object",
6407
+ "properties": {
6408
+ "self": {
6409
+ "type": "object",
6410
+ "properties": {
6411
+ "href": {
6412
+ "description": "URL pointing to the request itself",
6413
+ "type": "string"
6414
+ }
6415
+ }
6416
+ },
6417
+ "next": {
6418
+ "type": "object",
6419
+ "properties": {
6420
+ "href": {
6421
+ "description": "URL pointing to the next page of results in a paginated response. If there are no more results, this field may be omitted",
6422
+ "type": "string"
6423
+ }
6424
+ }
6425
+ },
6426
+ "prev": {
6427
+ "type": "object",
6428
+ "properties": {
6429
+ "href": {
6430
+ "description": "URL pointing to the previous page of results in a paginated response. If there are no more results, this field may be omitted",
6431
+ "type": "string"
6432
+ }
6433
+ }
6434
+ },
6435
+ "first": {
6436
+ "type": "object",
6437
+ "properties": {
6438
+ "href": {
6439
+ "description": "URL pointing to the first page of results in a paginated response",
6440
+ "type": "string"
6441
+ }
6442
+ }
6443
+ },
6444
+ "last": {
6445
+ "type": "object",
6446
+ "properties": {
6447
+ "href": {
6448
+ "description": "URL pointing to the first page of results in a paginated response",
6449
+ "type": "string"
6450
+ }
6451
+ }
6452
+ },
6453
+ "pages": {
6454
+ "description": "It may contain a list of other useful URLs, e.g. one entry for page:'page 1', 'page 2'",
6455
+ "type": "object",
6456
+ "additionalProperties": {
6457
+ "type": "object",
6458
+ "properties": {
6459
+ "href": {
6460
+ "type": "string"
6461
+ }
6462
+ }
6463
+ }
6464
+ }
6465
+ },
6466
+ "required": [
6467
+ "self",
6468
+ "first",
6469
+ "last",
6470
+ "pages"
6471
+ ]
6472
+ },
6473
+ "totalCount": {
6474
+ "description": "Number representing the total number of available items",
6475
+ "type": "number"
6476
+ }
6477
+ }
6478
+ }
6479
+ },
6480
+ "required": [
6481
+ "data"
6482
+ ]
6483
+ }
6484
+ }
6485
+ }
6486
+ },
6487
+ "404": {
6488
+ "description": "Default Response",
6489
+ "content": {
6490
+ "application/json": {
6491
+ "schema": {
6492
+ "type": "object",
6493
+ "properties": {
6494
+ "code": {
6495
+ "type": "string"
6496
+ },
6497
+ "detail": {
6498
+ "type": "string"
6499
+ },
6500
+ "requestId": {
6501
+ "type": "string"
6502
+ },
6503
+ "name": {
6504
+ "type": "string"
6505
+ },
6506
+ "validation": {},
6507
+ "validationContext": {
6508
+ "type": "string"
6509
+ }
6510
+ },
6511
+ "required": [
6512
+ "code",
6513
+ "detail",
6514
+ "requestId",
6515
+ "name"
6516
+ ]
6517
+ }
6518
+ }
6519
+ }
6520
+ }
6521
+ }
6522
+ }
6523
+ },
5989
6524
  "/api/v1/realex/paymentObject": {
5990
6525
  "get": {
5991
6526
  "tags": [
@@ -5997,7 +6532,23 @@
5997
6532
  "type": "string"
5998
6533
  },
5999
6534
  "in": "query",
6000
- "name": "amount",
6535
+ "name": "amount",
6536
+ "required": true
6537
+ },
6538
+ {
6539
+ "schema": {
6540
+ "type": "string"
6541
+ },
6542
+ "in": "query",
6543
+ "name": "intentId",
6544
+ "required": true
6545
+ },
6546
+ {
6547
+ "schema": {
6548
+ "type": "string"
6549
+ },
6550
+ "in": "query",
6551
+ "name": "providerId",
6001
6552
  "required": true
6002
6553
  },
6003
6554
  {
@@ -6005,7 +6556,7 @@
6005
6556
  "type": "string"
6006
6557
  },
6007
6558
  "in": "query",
6008
- "name": "intentId",
6559
+ "name": "paymentRequestId",
6009
6560
  "required": true
6010
6561
  },
6011
6562
  {
@@ -6013,8 +6564,8 @@
6013
6564
  "type": "string"
6014
6565
  },
6015
6566
  "in": "query",
6016
- "name": "providerId",
6017
- "required": true
6567
+ "name": "token",
6568
+ "required": false
6018
6569
  }
6019
6570
  ],
6020
6571
  "responses": {
@@ -7143,6 +7694,257 @@
7143
7694
  }
7144
7695
  }
7145
7696
  },
7697
+ "/api/v1/stripe/paymentIntent": {
7698
+ "post": {
7699
+ "tags": [
7700
+ "Stripe"
7701
+ ],
7702
+ "requestBody": {
7703
+ "content": {
7704
+ "application/json": {
7705
+ "schema": {
7706
+ "type": "object",
7707
+ "properties": {
7708
+ "paymentRequestId": {
7709
+ "type": "string"
7710
+ },
7711
+ "amount": {
7712
+ "type": "number"
7713
+ },
7714
+ "token": {
7715
+ "type": "string"
7716
+ }
7717
+ },
7718
+ "required": [
7719
+ "paymentRequestId",
7720
+ "amount"
7721
+ ]
7722
+ }
7723
+ }
7724
+ },
7725
+ "required": true
7726
+ },
7727
+ "responses": {
7728
+ "200": {
7729
+ "description": "Default Response",
7730
+ "content": {
7731
+ "application/json": {
7732
+ "schema": {
7733
+ "type": "object",
7734
+ "properties": {
7735
+ "data": {
7736
+ "type": "object",
7737
+ "properties": {
7738
+ "id": {
7739
+ "type": "string"
7740
+ },
7741
+ "clientSecret": {
7742
+ "anyOf": [
7743
+ {
7744
+ "type": "string"
7745
+ },
7746
+ {
7747
+ "type": "null"
7748
+ }
7749
+ ]
7750
+ }
7751
+ },
7752
+ "required": [
7753
+ "id",
7754
+ "clientSecret"
7755
+ ]
7756
+ },
7757
+ "metadata": {
7758
+ "type": "object",
7759
+ "properties": {
7760
+ "links": {
7761
+ "description": "Object containing the links to the related endpoints",
7762
+ "type": "object",
7763
+ "properties": {
7764
+ "self": {
7765
+ "type": "object",
7766
+ "properties": {
7767
+ "href": {
7768
+ "description": "URL pointing to the request itself",
7769
+ "type": "string"
7770
+ }
7771
+ }
7772
+ },
7773
+ "next": {
7774
+ "type": "object",
7775
+ "properties": {
7776
+ "href": {
7777
+ "description": "URL pointing to the next page of results in a paginated response. If there are no more results, this field may be omitted",
7778
+ "type": "string"
7779
+ }
7780
+ }
7781
+ },
7782
+ "prev": {
7783
+ "type": "object",
7784
+ "properties": {
7785
+ "href": {
7786
+ "description": "URL pointing to the previous page of results in a paginated response. If there are no more results, this field may be omitted",
7787
+ "type": "string"
7788
+ }
7789
+ }
7790
+ },
7791
+ "first": {
7792
+ "type": "object",
7793
+ "properties": {
7794
+ "href": {
7795
+ "description": "URL pointing to the first page of results in a paginated response",
7796
+ "type": "string"
7797
+ }
7798
+ }
7799
+ },
7800
+ "last": {
7801
+ "type": "object",
7802
+ "properties": {
7803
+ "href": {
7804
+ "description": "URL pointing to the first page of results in a paginated response",
7805
+ "type": "string"
7806
+ }
7807
+ }
7808
+ },
7809
+ "pages": {
7810
+ "description": "It may contain a list of other useful URLs, e.g. one entry for page:'page 1', 'page 2'",
7811
+ "type": "object",
7812
+ "additionalProperties": {
7813
+ "type": "object",
7814
+ "properties": {
7815
+ "href": {
7816
+ "type": "string"
7817
+ }
7818
+ }
7819
+ }
7820
+ }
7821
+ },
7822
+ "required": [
7823
+ "self",
7824
+ "first",
7825
+ "last",
7826
+ "pages"
7827
+ ]
7828
+ },
7829
+ "totalCount": {
7830
+ "description": "Number representing the total number of available items",
7831
+ "type": "number"
7832
+ }
7833
+ }
7834
+ }
7835
+ },
7836
+ "required": [
7837
+ "data"
7838
+ ]
7839
+ }
7840
+ }
7841
+ }
7842
+ },
7843
+ "400": {
7844
+ "description": "Default Response",
7845
+ "content": {
7846
+ "application/json": {
7847
+ "schema": {
7848
+ "type": "object",
7849
+ "properties": {
7850
+ "code": {
7851
+ "type": "string"
7852
+ },
7853
+ "detail": {
7854
+ "type": "string"
7855
+ },
7856
+ "requestId": {
7857
+ "type": "string"
7858
+ },
7859
+ "name": {
7860
+ "type": "string"
7861
+ },
7862
+ "validation": {},
7863
+ "validationContext": {
7864
+ "type": "string"
7865
+ }
7866
+ },
7867
+ "required": [
7868
+ "code",
7869
+ "detail",
7870
+ "requestId",
7871
+ "name"
7872
+ ]
7873
+ }
7874
+ }
7875
+ }
7876
+ },
7877
+ "401": {
7878
+ "description": "Default Response",
7879
+ "content": {
7880
+ "application/json": {
7881
+ "schema": {
7882
+ "type": "object",
7883
+ "properties": {
7884
+ "code": {
7885
+ "type": "string"
7886
+ },
7887
+ "detail": {
7888
+ "type": "string"
7889
+ },
7890
+ "requestId": {
7891
+ "type": "string"
7892
+ },
7893
+ "name": {
7894
+ "type": "string"
7895
+ },
7896
+ "validation": {},
7897
+ "validationContext": {
7898
+ "type": "string"
7899
+ }
7900
+ },
7901
+ "required": [
7902
+ "code",
7903
+ "detail",
7904
+ "requestId",
7905
+ "name"
7906
+ ]
7907
+ }
7908
+ }
7909
+ }
7910
+ },
7911
+ "500": {
7912
+ "description": "Default Response",
7913
+ "content": {
7914
+ "application/json": {
7915
+ "schema": {
7916
+ "type": "object",
7917
+ "properties": {
7918
+ "code": {
7919
+ "type": "string"
7920
+ },
7921
+ "detail": {
7922
+ "type": "string"
7923
+ },
7924
+ "requestId": {
7925
+ "type": "string"
7926
+ },
7927
+ "name": {
7928
+ "type": "string"
7929
+ },
7930
+ "validation": {},
7931
+ "validationContext": {
7932
+ "type": "string"
7933
+ }
7934
+ },
7935
+ "required": [
7936
+ "code",
7937
+ "detail",
7938
+ "requestId",
7939
+ "name"
7940
+ ]
7941
+ }
7942
+ }
7943
+ }
7944
+ }
7945
+ }
7946
+ }
7947
+ },
7146
7948
  "/api/v1/stripe/webhook": {
7147
7949
  "post": {
7148
7950
  "tags": [