Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update limits for outgoing payment access #499

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update AS Spec
raducristianpopa committed Aug 23, 2024
commit 90fbdf3c30e471b0a9f95e447480dcae9be2b32f
43 changes: 26 additions & 17 deletions openapi/auth-server.yaml
Original file line number Diff line number Diff line change
@@ -512,25 +512,34 @@ components:
limits-outgoing:
title: limits-outgoing
description: Open Payments specific property that defines the limits under which outgoing payments can be created.
type: object
properties:
receiver:
$ref: ./schemas.yaml#/components/schemas/receiver
debitAmount:
description: 'All amounts are maxima, i.e. multiple payments can be created under a grant as long as the total amounts of these payments do not exceed the maximum amount per interval as specified in the grant.'
$ref: ./schemas.yaml#/components/schemas/amount
receiveAmount:
description: 'All amounts are maxima, i.e. multiple payments can be created under a grant as long as the total amounts of these payments do not exceed the maximum amount per interval as specified in the grant.'
$ref: ./schemas.yaml#/components/schemas/amount
interval:
$ref: '#/components/schemas/interval'
anyOf:
- not:
required:
- interval
- required:
- type: object
properties:
receiver:
$ref: ./schemas.yaml#/components/schemas/receiver
interval:
$ref: '#/components/schemas/interval'
- type: object
properties:
receiver:
$ref: ./schemas.yaml#/components/schemas/receiver
interval:
$ref: '#/components/schemas/interval'
debitAmount:
description: 'All amounts are maxima, i.e. multiple payments can be created under a grant as long as the total amounts of these payments do not exceed the maximum amount per interval as specified in the grant.'
$ref: ./schemas.yaml#/components/schemas/amount
required:
- debitAmount
- required:
- type: object
properties:
receiver:
$ref: ./schemas.yaml#/components/schemas/receiver
interval:
$ref: '#/components/schemas/interval'
receiveAmount:
description: 'All amounts are maxima, i.e. multiple payments can be created under a grant as long as the total amounts of these payments do not exceed the maximum amount per interval as specified in the grant.'
$ref: ./schemas.yaml#/components/schemas/amount
required:
- receiveAmount
securitySchemes:
GNAP: