Skip to content

Commit

Permalink
Merge pull request #54 from firefinancialservices/SmallFixes
Browse files Browse the repository at this point in the history
Small fixes
  • Loading branch information
owenobyrne authored Jan 21, 2025
2 parents fc4cf60 + 09d5648 commit c7bf3f9
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 7 deletions.
5 changes: 5 additions & 0 deletions src/fire-business-api-v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ paths:
/v2/webhooks:
$ref: ./v2/paths/apps/webhook-events.yaml


/v2/batches/{batchUuid}/newpayees:
$ref: ./v2/paths/batches/newpayees-batch.yaml

Expand Down Expand Up @@ -372,6 +373,10 @@ components:
$ref: 'v1/schemas/bank-pay-refund-request.yaml'
BankPayRefundResponse:
$ref: 'v1/schemas/bank-pay-refund-response.yaml'
Events:
$ref: 'v2/schemas/events.yaml'
WebhookEvents:
$ref: 'v2/schemas/webhookEvents.yaml'

security:
- bearerAuth: []
Expand Down
4 changes: 2 additions & 2 deletions src/v2/paths/apps/webhook-events.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ get:
operationId: getWebhookEvents
responses:
'200':
description: An array of webhook objects
description: An object of information about your webhooks
content:
application/json:
schema:
$ref: '../../schemas/webhookEvents.yaml'
$ref: '../../schemas/listAllWebhooks.yaml'
'401':
$ref: '../../responses/unauthorised-error.yaml'
17 changes: 17 additions & 0 deletions src/v2/schemas/events.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
title: events
type: array
items:
type: string
enum:
- LODGEMENT_RECEIVED
- PAYMENT_RECEIVED
- PAYMENT_REQUEST_PAYMENT_RECEIVED
- ACCOUNT_CREATED
- CARD_CREATED
- CARD_AUTHORISATION
- CARD_SETTLEMENT
- PAYMENT_REQUEST_PAYMENT_AUTHORISED
- PIS_LODGEMENT_RECEIVE
example: CARD_AUTHORISATION


5 changes: 5 additions & 0 deletions src/v2/schemas/listAllWebhooks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
title: listAllWebhooks
type: object
properties:
webhookEvents:
$ref: '#/components/schemas/WebhookEvents'
5 changes: 1 addition & 4 deletions src/v2/schemas/webhookEvent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ properties:
webhook:
$ref: '#/components/schemas/Webhook'
events:
type: array
items:
type: string
example: "LODGEMENT_RECIEVED"
$ref: '#/components/schemas/Events'



2 changes: 1 addition & 1 deletion src/v2/schemas/webhookEvents.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Title: webhookEvents
Type: array
items:
- $ref: '#/components/schemas/WebhookEvent'
$ref: '#/components/schemas/WebhookEvent'
1 change: 1 addition & 0 deletions src/webhooks/Webhooks.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
post:
title: Sample webhook response
description: Webhooks allow you to be notified of events as they happen on your Fire accounts. The below sample response shows how a webhook from Fire will arrive at your server. See our 'API and webhooks' guide for more detailed information.
requestBody:
required: true
Expand Down

0 comments on commit c7bf3f9

Please sign in to comment.