Skip to content

Commit

Permalink
feat (openapi): add missing schedules get endpoint to api spec (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
laouji authored Jan 29, 2025
1 parent 1326df4 commit cbe197a
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 9 deletions.
3 changes: 3 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3419,6 +3419,7 @@ components:
required:
- id
- connectorID
- provider
- reference
- createdAt
- type
Expand All @@ -3428,6 +3429,8 @@ components:
type: string
connectorID:
type: string
provider:
type: string
reference:
type: string
createdAt:
Expand Down
37 changes: 32 additions & 5 deletions openapi/v3/v3-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ paths:
description: OK
content:
application/json:
schema:
schema:
$ref: '#/components/schemas/V3ConfigInfoResponse'
default:
description: Error
content:
application/json:
schema:
schema:
$ref: '#/components/schemas/V3ErrorResponse'
security:
- Authorization:
Expand Down Expand Up @@ -393,7 +393,7 @@ paths:
security:
- Authorization:
- payments:write

/v3/connectors/{connectorID}/config:
get:
tags:
Expand Down Expand Up @@ -475,6 +475,33 @@ paths:
- Authorization:
- payments:read

/v3/connectors/{connectorID}/schedules/{scheduleID}:
get:
tags:
- payments.v3
summary: Get a connector schedule by ID
operationId: v3GetConnectorSchedule
x-speakeasy-name-override: GetConnectorSchedule
parameters:
- $ref: '#/components/parameters/V3ConnectorID'
- $ref: '#/components/parameters/V3ScheduleID'
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/V3ConnectorScheduleResponse'
default:
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/V3ErrorResponse'
security:
- Authorization:
- payments:read

/v3/connectors/{connectorID}/schedules/{scheduleID}/instances:
get:
tags:
Expand Down Expand Up @@ -726,7 +753,7 @@ paths:
security:
- Authorization:
- payments:read

/v3/payment-initiations/{paymentInitiationID}/retry:
post:
tags:
Expand Down Expand Up @@ -1091,4 +1118,4 @@ paths:
security:
- Authorization:
- payments:read

16 changes: 12 additions & 4 deletions openapi/v3/v3-schemas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ components:
properties:
data:
$ref: "#/components/schemas/V3BankAccount"

V3BankAccount:
type: object
required:
Expand Down Expand Up @@ -471,6 +471,14 @@ components:
items:
$ref: "#/components/schemas/V3Schedule"

V3ConnectorScheduleResponse:
type: object
required:
- data
properties:
data:
$ref: '#/components/schemas/V3Schedule'

V3ConnectorScheduleInstancesCursorResponse:
type: object
required:
Expand Down Expand Up @@ -613,7 +621,7 @@ components:
type: array
items:
$ref: "#/components/schemas/V3CreatePaymentAdjustmentRequest"

V3CreatePaymentAdjustmentRequest:
type: object
required:
Expand Down Expand Up @@ -1195,7 +1203,7 @@ components:
properties:
data:
$ref: "#/components/schemas/V3PoolBalances"

V3Pool:
type: object
required:
Expand Down Expand Up @@ -1307,4 +1315,4 @@ components:
- MISSING_OR_INVALID_BODY
- CONFLICT
- NOT_FOUND
example: VALIDATION
example: VALIDATION

0 comments on commit cbe197a

Please # to comment.