Skip to content

Commit

Permalink
feat(mojaloop/3345): enhance payee requesttopay apis (#162)
Browse files Browse the repository at this point in the history
### ⚠ BREAKING CHANGES
- Refactored sdk outbound and inbound r2p apis
  • Loading branch information
vijayg10 authored May 19, 2023
1 parent 3097675 commit 49b31e0
Show file tree
Hide file tree
Showing 22 changed files with 3,690 additions and 2,788 deletions.
4 changes: 3 additions & 1 deletion .ncurc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ module.exports = {
// Upgrading typescript to 5.0.4 causing unit test failures due to breaking changes related to `ttypescript` for 'custom transformers'
'typescript',
// TODO: The new version of npm-check-updates uses new Glob v9.x and it is introducing a dependency Package "[email protected]" which is licensed under "BlueOak-1.0.0" which is not permitted by the Mojaloop License Policy
'npm-check-updates'
'npm-check-updates',
// TODO: Upgrading ts-auto-mock is breaking the npm install
'ts-auto-mock'
]
}
34 changes: 26 additions & 8 deletions docs/sdk-scheme-adapter-backend-v2_0_0-openapi3-snippets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@ paths:
specified identifier value.
tags:
- BulkTransfers
/otp/{requestToPayId}:
/otp/{transactionRequestId}:
get:
operationId: BackendOtpGet
parameters:
- $ref: '#/components/parameters/requestToPayId'
- $ref: '#/components/parameters/transactionRequestId'
responses:
'200':
content:
Expand Down Expand Up @@ -430,14 +430,12 @@ components:
required: true
schema:
type: string
requestToPayId:
transactionRequestId:
in: path
name: requestToPayId
name: transactionRequestId
required: true
schema:
maxLength: 128
minLength: 1
type: string
$ref: '#/components/schemas/transactionRequestId'
transferId:
in: path
name: transferId
Expand Down Expand Up @@ -1328,6 +1326,8 @@ components:
$ref: '#/components/schemas/transactionType'
subScenario:
$ref: '#/components/schemas/TransactionSubScenario'
authenticationType:
$ref: '#/components/schemas/AuthenticationType'
required:
- transactionRequestId
- to
Expand All @@ -1346,9 +1346,14 @@ components:
transactionRequestResponse:
description: A response to a request for a quote.
properties:
homeR2PTransactionId:
type: string
description: >-
Transaction ID from the DFSP backend, used to reconcile transactions
between the Switch and DFSP backend systems.
transactionId:
$ref: '#/components/schemas/transactionId'
transferAmount:
transactionRequestState:
$ref: '#/components/schemas/transactionRequestState'
required:
- transactionId
Expand Down Expand Up @@ -2311,3 +2316,16 @@ components:
$ref: '#/components/schemas/bulkTransactionIndividualTransferResult'
extensions:
$ref: '#/components/schemas/ExtensionList'
AuthenticationType:
title: AuthenticationType
type: string
enum:
- OTP
- QRCODE
- U2F
description: |-
Below are the allowed values for the enumeration AuthenticationType.
- OTP - One-time password generated by the Payer FSP.
- QRCODE - QR code used as One Time Password.
- U2F - U2F is a new addition isolated to Thirdparty stream.
example: OTP
Loading

0 comments on commit 49b31e0

Please sign in to comment.