@mojaloop/api-snippets 18.3.2 → 18.4.0

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.
Files changed (213) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/audit-ci.jsonc +5 -1
  3. package/docs/fspiop-rest-v2.0-ISO20022-openapi3-snippets.yaml +0 -2
  4. package/docs/sdk-scheme-adapter-outbound-v2_1_0-openapi3-snippets.yaml +1 -1
  5. package/docs/thirdparty-admin-v2.0-openapi3-snippets.yaml +3705 -0
  6. package/docs/thirdparty-v1.0-openapi3-snippets.yaml +3802 -0
  7. package/docs/thirdparty-v2.0-openapi3-snippets.yaml +1825 -0
  8. package/eslint.config.mjs +70 -0
  9. package/fspiop/v2_0_ISO20022/openapi3/components/schemas/FinancialInstitutionIdentification18.yaml +0 -1
  10. package/fspiop/v2_0_ISO20022/openapi3/components/schemas/FinancialInstitutionIdentification23.yaml +0 -1
  11. package/lib/fspiop/v2_0/index.js +0 -1
  12. package/lib/fspiop/v2_0/index.js.map +1 -1
  13. package/lib/fspiop/v2_0_ISO20022/index.js +0 -1
  14. package/lib/fspiop/v2_0_ISO20022/index.js.map +1 -1
  15. package/lib/fspiop/v2_0_ISO20022/json-schemas.json +0 -71
  16. package/lib/fspiop/v2_0_ISO20022/schemas.d.ts +0 -140
  17. package/lib/index.js +0 -1
  18. package/lib/index.js.map +1 -1
  19. package/lib/sdk-scheme-adapter/v2_0_0/backend/index.js +0 -1
  20. package/lib/sdk-scheme-adapter/v2_0_0/backend/index.js.map +1 -1
  21. package/lib/sdk-scheme-adapter/v2_0_0/outbound/index.js +0 -1
  22. package/lib/sdk-scheme-adapter/v2_0_0/outbound/index.js.map +1 -1
  23. package/lib/sdk-scheme-adapter/v2_1_0/backend/index.js +0 -1
  24. package/lib/sdk-scheme-adapter/v2_1_0/backend/index.js.map +1 -1
  25. package/lib/sdk-scheme-adapter/v2_1_0/outbound/index.js +0 -1
  26. package/lib/sdk-scheme-adapter/v2_1_0/outbound/index.js.map +1 -1
  27. package/lib/sdk-scheme-adapter/v2_1_0/outbound/json-schemas.json +1 -1
  28. package/lib/sdk-scheme-adapter/v2_1_0/outbound/schemas.d.ts +1 -1
  29. package/lib/thirdparty/v2_0/openapi.d.ts +1726 -0
  30. package/lib/thirdparty/v2_0/openapi.js +7 -0
  31. package/lib/thirdparty/v2_0/openapi.js.map +1 -0
  32. package/package.json +48 -45
  33. package/sdk-scheme-adapter/v2_1_0/components/schemas/transferRequest.yaml +1 -1
  34. package/test/dto/{thirdparty.test.ts → thirdparty_v1_0.test.ts} +1 -1
  35. package/thirdparty/v1_0/openapi3/thirdparty-dfsp-api.yaml +68 -61
  36. package/thirdparty/v1_0/openapi3/thirdparty-pisp-api.yaml +82 -75
  37. package/thirdparty/v2_0/openapi3/components/headers/Content-Length.yaml +1 -0
  38. package/thirdparty/v2_0/openapi3/components/headers/Content-Type.yaml +1 -0
  39. package/thirdparty/v2_0/openapi3/components/parameters/Accept.yaml +1 -0
  40. package/thirdparty/v2_0/openapi3/components/parameters/Content-Length.yaml +1 -0
  41. package/thirdparty/v2_0/openapi3/components/parameters/Content-Type.yaml +1 -0
  42. package/thirdparty/v2_0/openapi3/components/parameters/Date.yaml +1 -0
  43. package/thirdparty/v2_0/openapi3/components/parameters/FSPIOP-Destination.yaml +1 -0
  44. package/thirdparty/v2_0/openapi3/components/parameters/FSPIOP-Encryption.yaml +1 -0
  45. package/thirdparty/v2_0/openapi3/components/parameters/FSPIOP-HTTP-Method.yaml +1 -0
  46. package/thirdparty/v2_0/openapi3/components/parameters/FSPIOP-Signature.yaml +1 -0
  47. package/thirdparty/v2_0/openapi3/components/parameters/FSPIOP-Source.yaml +1 -0
  48. package/thirdparty/v2_0/openapi3/components/parameters/FSPIOP-URI.yaml +1 -0
  49. package/thirdparty/v2_0/openapi3/components/parameters/ID.yaml +1 -0
  50. package/thirdparty/v2_0/openapi3/components/parameters/ServiceType.yaml +6 -0
  51. package/thirdparty/v2_0/openapi3/components/parameters/SubId.yaml +1 -0
  52. package/thirdparty/v2_0/openapi3/components/parameters/Type.yaml +1 -0
  53. package/thirdparty/v2_0/openapi3/components/parameters/X-Forwarded-For.yaml +1 -0
  54. package/thirdparty/v2_0/openapi3/components/responses/200.yaml +1 -0
  55. package/thirdparty/v2_0/openapi3/components/responses/202.yaml +1 -0
  56. package/thirdparty/v2_0/openapi3/components/responses/400.yaml +1 -0
  57. package/thirdparty/v2_0/openapi3/components/responses/401.yaml +1 -0
  58. package/thirdparty/v2_0/openapi3/components/responses/403.yaml +1 -0
  59. package/thirdparty/v2_0/openapi3/components/responses/404.yaml +1 -0
  60. package/thirdparty/v2_0/openapi3/components/responses/405.yaml +1 -0
  61. package/thirdparty/v2_0/openapi3/components/responses/406.yaml +1 -0
  62. package/thirdparty/v2_0/openapi3/components/responses/501.yaml +1 -0
  63. package/thirdparty/v2_0/openapi3/components/responses/503.yaml +1 -0
  64. package/thirdparty/v2_0/openapi3/components/schemas/Account.yaml +17 -0
  65. package/thirdparty/v2_0/openapi3/components/schemas/AccountAddress.yaml +25 -0
  66. package/thirdparty/v2_0/openapi3/components/schemas/AccountList.yaml +11 -0
  67. package/thirdparty/v2_0/openapi3/components/schemas/Amount.yaml +1 -0
  68. package/thirdparty/v2_0/openapi3/components/schemas/AmountType.yaml +1 -0
  69. package/thirdparty/v2_0/openapi3/components/schemas/AuthenticationResponse.yaml +10 -0
  70. package/thirdparty/v2_0/openapi3/components/schemas/AuthenticatorAssertionResponse.yaml +32 -0
  71. package/thirdparty/v2_0/openapi3/components/schemas/AuthenticatorAttestationResponse.yaml +23 -0
  72. package/thirdparty/v2_0/openapi3/components/schemas/AuthorizationResponseType.yaml +8 -0
  73. package/thirdparty/v2_0/openapi3/components/schemas/AuthorizationResponseTypeAccepted.yaml +6 -0
  74. package/thirdparty/v2_0/openapi3/components/schemas/AuthorizationResponseTypeRejected.yaml +6 -0
  75. package/thirdparty/v2_0/openapi3/components/schemas/BinaryString.yaml +1 -0
  76. package/thirdparty/v2_0/openapi3/components/schemas/ConsentRequestChannelType.yaml +9 -0
  77. package/thirdparty/v2_0/openapi3/components/schemas/ConsentRequestChannelTypeOTP.yaml +6 -0
  78. package/thirdparty/v2_0/openapi3/components/schemas/ConsentRequestChannelTypeWeb.yaml +6 -0
  79. package/thirdparty/v2_0/openapi3/components/schemas/ConsentRequestsIDPatchRequest.yaml +16 -0
  80. package/thirdparty/v2_0/openapi3/components/schemas/ConsentRequestsIDPutResponseOTP.yaml +30 -0
  81. package/thirdparty/v2_0/openapi3/components/schemas/ConsentRequestsIDPutResponseWeb.yaml +39 -0
  82. package/thirdparty/v2_0/openapi3/components/schemas/ConsentRequestsPostRequest.yaml +44 -0
  83. package/thirdparty/v2_0/openapi3/components/schemas/ConsentStatus.yaml +9 -0
  84. package/thirdparty/v2_0/openapi3/components/schemas/ConsentStatusIssued.yaml +7 -0
  85. package/thirdparty/v2_0/openapi3/components/schemas/ConsentStatusRevoked.yaml +7 -0
  86. package/thirdparty/v2_0/openapi3/components/schemas/ConsentsIDPatchResponseRevoked.yaml +17 -0
  87. package/thirdparty/v2_0/openapi3/components/schemas/ConsentsIDPatchResponseVerified.yaml +19 -0
  88. package/thirdparty/v2_0/openapi3/components/schemas/ConsentsIDPutResponseSigned.yaml +23 -0
  89. package/thirdparty/v2_0/openapi3/components/schemas/ConsentsIDPutResponseVerified.yaml +23 -0
  90. package/thirdparty/v2_0/openapi3/components/schemas/ConsentsPostRequestAUTH.yaml +33 -0
  91. package/thirdparty/v2_0/openapi3/components/schemas/ConsentsPostRequestPISP.yaml +32 -0
  92. package/thirdparty/v2_0/openapi3/components/schemas/CorrelationId.yaml +1 -0
  93. package/thirdparty/v2_0/openapi3/components/schemas/CredentialStatusPending.yaml +7 -0
  94. package/thirdparty/v2_0/openapi3/components/schemas/CredentialStatusVerified.yaml +7 -0
  95. package/thirdparty/v2_0/openapi3/components/schemas/CredentialType.yaml +11 -0
  96. package/thirdparty/v2_0/openapi3/components/schemas/Currency.yaml +1 -0
  97. package/thirdparty/v2_0/openapi3/components/schemas/DateOfBirth.yaml +1 -0
  98. package/thirdparty/v2_0/openapi3/components/schemas/DateTime.yaml +1 -0
  99. package/thirdparty/v2_0/openapi3/components/schemas/ErrorCode.yaml +1 -0
  100. package/thirdparty/v2_0/openapi3/components/schemas/ErrorDescription.yaml +1 -0
  101. package/thirdparty/v2_0/openapi3/components/schemas/ErrorInformation.yaml +1 -0
  102. package/thirdparty/v2_0/openapi3/components/schemas/Extension.yaml +1 -0
  103. package/thirdparty/v2_0/openapi3/components/schemas/ExtensionKey.yaml +1 -0
  104. package/thirdparty/v2_0/openapi3/components/schemas/ExtensionList.yaml +1 -0
  105. package/thirdparty/v2_0/openapi3/components/schemas/ExtensionValue.yaml +1 -0
  106. package/thirdparty/v2_0/openapi3/components/schemas/FIDOPublicKeyCredentialAssertion.yaml +71 -0
  107. package/thirdparty/v2_0/openapi3/components/schemas/FIDOPublicKeyCredentialAttestation.yaml +54 -0
  108. package/thirdparty/v2_0/openapi3/components/schemas/FirstName.yaml +1 -0
  109. package/thirdparty/v2_0/openapi3/components/schemas/FspId.yaml +1 -0
  110. package/thirdparty/v2_0/openapi3/components/schemas/GenericCredential.yaml +13 -0
  111. package/thirdparty/v2_0/openapi3/components/schemas/GeoCode.yaml +1 -0
  112. package/thirdparty/v2_0/openapi3/components/schemas/IlpCondition.yaml +1 -0
  113. package/thirdparty/v2_0/openapi3/components/schemas/IlpFulfilment.yaml +1 -0
  114. package/thirdparty/v2_0/openapi3/components/schemas/IlpPacket.yaml +1 -0
  115. package/thirdparty/v2_0/openapi3/components/schemas/Integer.yaml +1 -0
  116. package/thirdparty/v2_0/openapi3/components/schemas/LastName.yaml +1 -0
  117. package/thirdparty/v2_0/openapi3/components/schemas/Latitude.yaml +1 -0
  118. package/thirdparty/v2_0/openapi3/components/schemas/Longitude.yaml +1 -0
  119. package/thirdparty/v2_0/openapi3/components/schemas/MerchantClassificationCode.yaml +1 -0
  120. package/thirdparty/v2_0/openapi3/components/schemas/MiddleName.yaml +1 -0
  121. package/thirdparty/v2_0/openapi3/components/schemas/Money.yaml +1 -0
  122. package/thirdparty/v2_0/openapi3/components/schemas/Name.yaml +2 -0
  123. package/thirdparty/v2_0/openapi3/components/schemas/Note.yaml +1 -0
  124. package/thirdparty/v2_0/openapi3/components/schemas/ParticipantsIDPutResponse.yaml +17 -0
  125. package/thirdparty/v2_0/openapi3/components/schemas/ParticipantsPostRequest.yaml +20 -0
  126. package/thirdparty/v2_0/openapi3/components/schemas/ParticipantsTypeIDPutResponse.yaml +8 -0
  127. package/thirdparty/v2_0/openapi3/components/schemas/ParticipantsTypeIDSubIDPostRequest.yaml +15 -0
  128. package/thirdparty/v2_0/openapi3/components/schemas/PartiesTypeIDPutResponse.yaml +13 -0
  129. package/thirdparty/v2_0/openapi3/components/schemas/Party.yaml +15 -0
  130. package/thirdparty/v2_0/openapi3/components/schemas/PartyComplexName.yaml +1 -0
  131. package/thirdparty/v2_0/openapi3/components/schemas/PartyIdInfo.yaml +17 -0
  132. package/thirdparty/v2_0/openapi3/components/schemas/PartyIdInfoTPLink.yaml +17 -0
  133. package/thirdparty/v2_0/openapi3/components/schemas/PartyIdType.yaml +58 -0
  134. package/thirdparty/v2_0/openapi3/components/schemas/PartyIdTypeTPLink.yaml +7 -0
  135. package/thirdparty/v2_0/openapi3/components/schemas/PartyIdentifier.yaml +1 -0
  136. package/thirdparty/v2_0/openapi3/components/schemas/PartyName.yaml +1 -0
  137. package/thirdparty/v2_0/openapi3/components/schemas/PartyPersonalInfo.yaml +1 -0
  138. package/thirdparty/v2_0/openapi3/components/schemas/PartyResult.yaml +10 -0
  139. package/thirdparty/v2_0/openapi3/components/schemas/PartySubIdOrType.yaml +1 -0
  140. package/thirdparty/v2_0/openapi3/components/schemas/PartyTPLink.yaml +14 -0
  141. package/thirdparty/v2_0/openapi3/components/schemas/QuotesIDPutResponse.yaml +1 -0
  142. package/thirdparty/v2_0/openapi3/components/schemas/QuotesPostRequest.yaml +79 -0
  143. package/thirdparty/v2_0/openapi3/components/schemas/Scope.yaml +20 -0
  144. package/thirdparty/v2_0/openapi3/components/schemas/ScopeAction.yaml +14 -0
  145. package/thirdparty/v2_0/openapi3/components/schemas/ServiceType.yaml +15 -0
  146. package/thirdparty/v2_0/openapi3/components/schemas/ServicesServiceTypePutResponse.yaml +26 -0
  147. package/thirdparty/v2_0/openapi3/components/schemas/SignedCredential.yaml +23 -0
  148. package/thirdparty/v2_0/openapi3/components/schemas/SignedPayloadFIDO.yaml +11 -0
  149. package/thirdparty/v2_0/openapi3/components/schemas/SignedPayloadGeneric.yaml +11 -0
  150. package/thirdparty/v2_0/openapi3/components/schemas/SignedPayloadType.yaml +9 -0
  151. package/thirdparty/v2_0/openapi3/components/schemas/SignedPayloadTypeFIDO.yaml +5 -0
  152. package/thirdparty/v2_0/openapi3/components/schemas/SignedPayloadTypeGeneric.yaml +5 -0
  153. package/thirdparty/v2_0/openapi3/components/schemas/Transaction.yaml +43 -0
  154. package/thirdparty/v2_0/openapi3/components/schemas/TransactionRequestState.yaml +1 -0
  155. package/thirdparty/v2_0/openapi3/components/schemas/TransactionState.yaml +1 -0
  156. package/thirdparty/v2_0/openapi3/components/schemas/TransactionType.yaml +1 -0
  157. package/thirdparty/v2_0/openapi3/components/schemas/TransfersPostRequestFIDO.yaml +15 -0
  158. package/thirdparty/v2_0/openapi3/components/schemas/TransfersPostRequestGeneric.yaml +15 -0
  159. package/thirdparty/v2_0/openapi3/components/schemas/Uri.yaml +8 -0
  160. package/thirdparty/v2_0/openapi3/components/schemas/VerifiedCredential.yaml +23 -0
  161. package/thirdparty/v2_0/openapi3/components/schemas/tppAccountRequestPostRequest.yaml +35 -0
  162. package/thirdparty/v2_0/openapi3/components/schemas/tppAccountRequestPutResponse.yaml +30 -0
  163. package/thirdparty/v2_0/openapi3/components/schemas/tppAccountsIDPutResponse.yaml +21 -0
  164. package/thirdparty/v2_0/openapi3/components/schemas/tppAuthorizationsIDPutResponseFIDO.yaml +15 -0
  165. package/thirdparty/v2_0/openapi3/components/schemas/tppAuthorizationsIDPutResponseGeneric.yaml +15 -0
  166. package/thirdparty/v2_0/openapi3/components/schemas/tppAuthorizationsIDPutResponseRejected.yaml +10 -0
  167. package/thirdparty/v2_0/openapi3/components/schemas/tppAuthorizationsPostRequest.yaml +67 -0
  168. package/thirdparty/v2_0/openapi3/components/schemas/tppTransactionRequestPostRequest.yaml +60 -0
  169. package/thirdparty/v2_0/openapi3/components/schemas/tppTransactionRequestPutResponse.yaml +67 -0
  170. package/thirdparty/v2_0/openapi3/components/schemas/tppTransfersPostRequest.yaml +19 -0
  171. package/thirdparty/v2_0/openapi3/components/schemas/tppTransfersPutResponse.yaml +25 -0
  172. package/thirdparty/v2_0/openapi3/components/schemas/tppVerificationsIDPutResponse.yaml +19 -0
  173. package/thirdparty/v2_0/openapi3/components/schemas/tppVerificationsPostRequestFIDO.yaml +28 -0
  174. package/thirdparty/v2_0/openapi3/components/schemas/tppVerificationsPostRequestGeneric.yaml +28 -0
  175. package/thirdparty/v2_0/openapi3/openapi-admin.yaml +99 -0
  176. package/thirdparty/v2_0/openapi3/openapi.yaml +64 -0
  177. package/thirdparty/v2_0/openapi3/paths/health.yaml +25 -0
  178. package/thirdparty/v2_0/openapi3/paths/metrics.yaml +25 -0
  179. package/thirdparty/v2_0/openapi3/paths/participants.yaml +50 -0
  180. package/thirdparty/v2_0/openapi3/paths/participants_ID.yaml +49 -0
  181. package/thirdparty/v2_0/openapi3/paths/participants_ID_error.yaml +51 -0
  182. package/thirdparty/v2_0/openapi3/paths/participants_Type_ID.yaml +169 -0
  183. package/thirdparty/v2_0/openapi3/paths/participants_Type_ID_error.yaml +52 -0
  184. package/thirdparty/v2_0/openapi3/paths/services_ServiceType.yaml +77 -0
  185. package/thirdparty/v2_0/openapi3/paths/services_ServiceType_error.yaml +49 -0
  186. package/thirdparty/v2_0/openapi3/paths/tppAccountRequest.yaml +49 -0
  187. package/thirdparty/v2_0/openapi3/paths/tppAccountRequest_ID.yaml +86 -0
  188. package/thirdparty/v2_0/openapi3/paths/tppAccountRequest_ID_error.yaml +48 -0
  189. package/thirdparty/v2_0/openapi3/paths/tppAccounts_ID.yaml +88 -0
  190. package/thirdparty/v2_0/openapi3/paths/tppAccounts_ID_error.yaml +48 -0
  191. package/thirdparty/v2_0/openapi3/paths/tppAuthorizations.yaml +51 -0
  192. package/thirdparty/v2_0/openapi3/paths/tppAuthorizations_ID.yaml +86 -0
  193. package/thirdparty/v2_0/openapi3/paths/tppAuthorizations_ID_error.yaml +55 -0
  194. package/thirdparty/v2_0/openapi3/paths/tppConsentRequests.yaml +48 -0
  195. package/thirdparty/v2_0/openapi3/paths/tppConsentRequests_ID.yaml +123 -0
  196. package/thirdparty/v2_0/openapi3/paths/tppConsentRequests_ID_error.yaml +48 -0
  197. package/thirdparty/v2_0/openapi3/paths/tppConsents.yaml +49 -0
  198. package/thirdparty/v2_0/openapi3/paths/tppConsents_ID.yaml +165 -0
  199. package/thirdparty/v2_0/openapi3/paths/tppConsents_ID_error.yaml +48 -0
  200. package/thirdparty/v2_0/openapi3/paths/tppTransactionRequests.yaml +48 -0
  201. package/thirdparty/v2_0/openapi3/paths/tppTransactionRequests_ID.yaml +83 -0
  202. package/thirdparty/v2_0/openapi3/paths/tppTransactionRequests_ID_error.yaml +52 -0
  203. package/thirdparty/v2_0/openapi3/paths/tppTransfers.yaml +47 -0
  204. package/thirdparty/v2_0/openapi3/paths/tppTransfers_ID.yaml +86 -0
  205. package/thirdparty/v2_0/openapi3/paths/tppTransfers_ID_error.yaml +52 -0
  206. package/thirdparty/v2_0/openapi3/paths/tppVerifications.yaml +49 -0
  207. package/thirdparty/v2_0/openapi3/paths/tppVerifications_ID.yaml +87 -0
  208. package/thirdparty/v2_0/openapi3/paths/tppVerifications_ID_error.yaml +49 -0
  209. package/thirdparty/v2_0/openapi3/thirdparty-dfsp-admin-api.template.yaml +53 -0
  210. package/thirdparty/v2_0/openapi3/thirdparty-dfsp-admin-api.yaml +2633 -0
  211. package/thirdparty/v2_0/openapi3/thirdparty-pisp-admin-api.template.yaml +57 -0
  212. package/thirdparty/v2_0/openapi3/thirdparty-pisp-admin-api.yaml +3103 -0
  213. package/tsconfig.build.json +4 -3
@@ -0,0 +1,9 @@
1
+ title: SignedPayloadType
2
+ type: string
3
+ enum:
4
+ - FIDO
5
+ - GENERIC
6
+ description: |-
7
+ Allowed values for the enumeration SignedPayloadType
8
+ - FIDO - describes a challenge that has been signed with FIDO Attestation flows
9
+ - GENERIC - describes a challenge that has been signed with a private key
@@ -0,0 +1,5 @@
1
+ title: SignedPayloadTypeFIDO
2
+ type: string
3
+ enum:
4
+ - FIDO
5
+ description: Describes a challenge that has been signed with FIDO Attestation flows
@@ -0,0 +1,5 @@
1
+ title: SignedPayloadTypeGeneric
2
+ type: string
3
+ enum:
4
+ - GENERIC
5
+ description: Describes a challenge that has been signed with a private key
@@ -0,0 +1,43 @@
1
+ title: Transaction
2
+ type: object
3
+ description: >-
4
+ Data model for the complex type Transaction. The Transaction type is used to
5
+ carry end-to-end data between the Payer FSP and the Payee FSP in the ILP
6
+ Packet. Both the transactionId and the quoteId in the data model are decided
7
+ by the Payer FSP in the POST /quotes request.
8
+ properties:
9
+ transactionId:
10
+ $ref: ./CorrelationId.yaml
11
+ description: >-
12
+ ID of the transaction, the ID is decided by the Payer FSP during the
13
+ creation of the quote.
14
+ quoteId:
15
+ $ref: ./CorrelationId.yaml
16
+ description: >-
17
+ ID of the quote, the ID is decided by the Payer FSP during the creation of
18
+ the quote.
19
+ payee:
20
+ $ref: ./Party.yaml
21
+ description: Information about the Payee in the proposed financial transaction.
22
+ payer:
23
+ $ref: ./Party.yaml
24
+ description: Information about the Payer in the proposed financial transaction.
25
+ amount:
26
+ $ref: ./Money.yaml
27
+ description: Transaction amount to be sent.
28
+ transactionType:
29
+ $ref: ./TransactionType.yaml
30
+ description: Type of the transaction.
31
+ note:
32
+ $ref: ./Note.yaml
33
+ description: 'Memo associated to the transaction, intended to the Payee.'
34
+ extensionList:
35
+ $ref: ./ExtensionList.yaml
36
+ description: 'Optional extension, specific to deployment.'
37
+ required:
38
+ - transactionId
39
+ - quoteId
40
+ - payee
41
+ - payer
42
+ - amount
43
+ - transactionType
@@ -0,0 +1 @@
1
+ $ref: '../../../../../fspiop/v2_0/openapi3/components/schemas/TransactionRequestState.yaml'
@@ -0,0 +1 @@
1
+ $ref: '../../../../../fspiop/v2_0/openapi3/components/schemas/TransactionState.yaml'
@@ -0,0 +1 @@
1
+ $ref: '../../../../../fspiop/v2_0/openapi3/components/schemas/TransactionType.yaml'
@@ -0,0 +1,15 @@
1
+ title: TransfersPostRequestFIDO
2
+ type: object
3
+ description: 'The object sent in the PUT /tppAuthorizations/{ID} callback.'
4
+ properties:
5
+ responseType:
6
+ $ref: ./AuthorizationResponseTypeAccepted.yaml
7
+ signedPayload:
8
+ $ref: ./SignedPayloadFIDO.yaml
9
+ extensionList:
10
+ $ref: ./ExtensionList.yaml
11
+ required:
12
+ - responseType
13
+ - signedPayload
14
+ additionalProperties: false
15
+
@@ -0,0 +1,15 @@
1
+ title: TransfersPostRequestGeneric
2
+ type: object
3
+ description: 'The object sent in the PUT /tppAuthorizations/{ID} callback.'
4
+ properties:
5
+ responseType:
6
+ $ref: ./AuthorizationResponseTypeAccepted.yaml
7
+ signedPayload:
8
+ $ref: ./SignedPayloadGeneric.yaml
9
+ extensionList:
10
+ $ref: ./ExtensionList.yaml
11
+ required:
12
+ - responseType
13
+ - signedPayload
14
+ additionalProperties: false
15
+
@@ -0,0 +1,8 @@
1
+ title: Uri
2
+ type: string
3
+ pattern: '^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?'
4
+ minLength: 1
5
+ maxLength: 512
6
+ description: >
7
+ The API data type Uri is a JSON string in a canonical format that is restricted by a
8
+ regular expression for interoperability reasons.
@@ -0,0 +1,23 @@
1
+ title: VerifiedCredential
2
+ type: object
3
+ description: |
4
+ A credential used to allow a user to prove their identity and access
5
+ to an account with a DFSP.
6
+
7
+ VerifiedCredential is a special formatting of Credential to allow us to be
8
+ more explicit about the `status` field - it should only ever be VERIFIED when
9
+ updating a credential.
10
+ properties:
11
+ credentialType:
12
+ $ref: ./CredentialType.yaml
13
+ status:
14
+ $ref: ./CredentialStatusVerified.yaml
15
+ genericPayload:
16
+ $ref: ./GenericCredential.yaml
17
+ fidoPayload:
18
+ $ref: ./FIDOPublicKeyCredentialAttestation.yaml
19
+ required:
20
+ - credentialType
21
+ - status
22
+ additionalProperties: false
23
+
@@ -0,0 +1,35 @@
1
+ title: AccountRequestPostRequest
2
+ type: object
3
+ description: >-
4
+ Used by: PISP
5
+
6
+ The /tppAccountsRequest resource is used to request consent from a user for access to their accounts information. This resource must be called before the /tppAccounts resource can be queried which provides the account information.
7
+
8
+ Callback and data model for POST /tppAccountRequest:
9
+
10
+ Callback: PUT /tppAccountRequests/{ID}
11
+ Error callback: PUT /tppAccountRequests/{ID}/error
12
+ Data model - see below url
13
+
14
+ https://github.com/mojaloop/documentation/blob/main/website/versioned_docs/v2.0.0/api/thirdparty/data-models.md#31212-post-accountrequest
15
+ properties:
16
+ accountRequestId:
17
+ $ref: ./CorrelationId.yaml
18
+ partyItentifier:
19
+ $ref: '../../../../../fspiop/v2_0/openapi3/components/schemas/PartyIdentifier.yaml'
20
+ authChannels:
21
+ type: array
22
+ minLength: 1
23
+ maxLength: 256
24
+ items:
25
+ $ref: ./ConsentRequestChannelType.yaml
26
+ # The callback uri that the user will be redirected to after completing the
27
+ # out of band WEB authentication with the DFSP. Used to allow the DFSP to
28
+ # whitelist the PISP's url ahead of time.
29
+ callbackUri:
30
+ $ref: ./Uri.yaml
31
+ required:
32
+ - accountRequestId
33
+ - partyIdInfo
34
+ - authChannels
35
+ - callbackUri
@@ -0,0 +1,30 @@
1
+ title: AccountRequestPutResponse
2
+ type: object
3
+ description: >-
4
+ Used by: PISP
5
+
6
+ This is the message that the DFSP sends to the PISP to inform the PISP that
7
+ the accountRequest has been accepted, and to communicate to the PISP which
8
+ `authChannel` it should use to authenticate their user with. I.e. it is a response to a
9
+ POST /tppAccountsRequest request, or a GET /tppAccountsRequest/{ID} request.
10
+
11
+ When a PISP requests a series of permissions from a DFSP on behalf of a DFSP's customer,
12
+ not all the permissions requested may be granted by the DFSP. Conversely,
13
+ the out-of-loop authorization process may result in additional privileges
14
+ being granted by the account holder to the PISP. The `PUT /tppAccountsRequest/<ID>`
15
+ resource returns the current state of the permissions relating to a particular authorization request.
16
+
17
+ properties:
18
+ authChannel:
19
+ $ref: ./ConsentRequestChannelType.yaml
20
+ callbackUri:
21
+ $ref: ./Uri.yaml
22
+ authUri:
23
+ $ref: ./Uri.yaml
24
+ authToken:
25
+ $ref: ./BinaryString.yaml
26
+ # The callback uri that the user will be redirected to after completing the
27
+ # out of band WEB authentication with the DFSP. Used to allow the DFSP to
28
+ # whitelist the PISP's url ahead of time.
29
+ required:
30
+ - authChannels
@@ -0,0 +1,21 @@
1
+ title: AccountsIDPutResponse
2
+ type: object
3
+ description: >-
4
+ Callback and data model information for GET /accounts/{ID}:
5
+
6
+ Callback - PUT /tppAccounts/{ID}
7
+ Error Callback - PUT /tppAccounts/{ID}/error
8
+ Data Model - Empty body
9
+
10
+ The PUT /accounts/{ID} response is used to inform the requester of the result
11
+ of a request for accounts information. The identifier ID given in the call
12
+ are the values given in the original request.
13
+
14
+ https://github.com/mojaloop/documentation/blob/main/website/versioned_docs/v2.0.0/api/thirdparty/data-models.md#31121--put-accountsid
15
+ properties:
16
+ accounts:
17
+ $ref: ./AccountList.yaml
18
+ extensionList:
19
+ $ref: ./ExtensionList.yaml
20
+ required:
21
+ - accounts
@@ -0,0 +1,15 @@
1
+ title: tppAuthorizationsIDPutResponseFIDO
2
+ type: object
3
+ description: 'The object sent in the PUT /tppAuthorizations/{ID} callback.'
4
+ properties:
5
+ responseType:
6
+ $ref: ./AuthorizationResponseTypeAccepted.yaml
7
+ signedPayload:
8
+ $ref: ./SignedPayloadFIDO.yaml
9
+ extensionList:
10
+ $ref: ./ExtensionList.yaml
11
+ required:
12
+ - responseType
13
+ - signedPayload
14
+ additionalProperties: false
15
+
@@ -0,0 +1,15 @@
1
+ title: tppAuthorizationsIDPutResponseGeneric
2
+ type: object
3
+ description: 'The object sent in the PUT /tppAuthorizations/{ID} callback.'
4
+ properties:
5
+ responseType:
6
+ $ref: ./AuthorizationResponseTypeAccepted.yaml
7
+ signedPayload:
8
+ $ref: ./SignedPayloadGeneric.yaml
9
+ extensionList:
10
+ $ref: ./ExtensionList.yaml
11
+ required:
12
+ - responseType
13
+ - signedPayload
14
+ additionalProperties: false
15
+
@@ -0,0 +1,10 @@
1
+ title: tppAuthorizationsIDPutResponseRejected
2
+ type: object
3
+ description: 'The object sent in the PUT /tppAuthorizations/{ID} callback.'
4
+ properties:
5
+ responseType:
6
+ $ref: ./AuthorizationResponseTypeRejected.yaml
7
+ extensionList:
8
+ $ref: ./ExtensionList.yaml
9
+ required:
10
+ - responseType
@@ -0,0 +1,67 @@
1
+ title: tppAuthorizationsPostRequest
2
+ description: >-
3
+ Used by: DFSP
4
+
5
+ The HTTP request POST /tppAuthorizations is used to request
6
+ the validation by a customer for the transfer described in the request.
7
+
8
+ Callback and data model information for POST /tppAuthorizations:
9
+
10
+ Callback - PUT /tppAuthorizations/{ID}
11
+ Error Callback - PUT /tppAuthorizations/{ID}/error
12
+
13
+ type: object
14
+ properties:
15
+ authorizationRequestId:
16
+ $ref: ./CorrelationId.yaml
17
+ transactionRequestId:
18
+ $ref: ./CorrelationId.yaml
19
+ challenge:
20
+ type: string
21
+ description: The challenge that the PISP's client is to sign
22
+ transferAmount:
23
+ allOf:
24
+ - $ref: ./Money.yaml
25
+ description: >-
26
+ The amount that will be debited from the sending customer's
27
+ account as a consequence of the transaction.
28
+ payeeReceiveAmount:
29
+ allOf:
30
+ - $ref: ./Money.yaml
31
+ description: >-
32
+ The amount that will be credited to the receiving customer's
33
+ account as a consequence of the transaction.
34
+ fees:
35
+ allOf:
36
+ - $ref: ./Money.yaml
37
+ description: >-
38
+ The amount of fees that the paying customer will be charged
39
+ as part of the transaction.
40
+ payer:
41
+ allOf:
42
+ - $ref: ./PartyIdInfo.yaml
43
+ description: Information about the Payer type, id, sub-type/id, FSP Id in the proposed financial transaction.
44
+ payee:
45
+ allOf:
46
+ - $ref: ./Party.yaml
47
+ description: Information about the Payee in the proposed financial transaction.
48
+ transactionType:
49
+ $ref: '../../../../../fspiop/v2_0/openapi3/components/schemas/TransactionType.yaml'
50
+ expiration:
51
+ allOf:
52
+ - $ref: ./DateTime.yaml
53
+ description: The time by which the transfer must be completed, set by the payee DFSP.
54
+ extensionList:
55
+ $ref: ./ExtensionList.yaml
56
+ required:
57
+ - authorizationRequestId
58
+ - transactionRequestId
59
+ - challenge
60
+ - transferAmount
61
+ - payeeReceiveAmount
62
+ - fees
63
+ - payer
64
+ - payee
65
+ - transactionType
66
+ - expiration
67
+ additionalProperties: false
@@ -0,0 +1,60 @@
1
+ title: tppTransactionRequestPostRequest
2
+ type: object
3
+ description: >-
4
+ Used by: PISP
5
+
6
+ The HTTP request POST /tppTransationRequest is used to request the creation of a transaction request on the server for the transfer described in the request.
7
+
8
+ Callback and data model information for POST /tppTransationRequest:
9
+
10
+ Callback - PUT /tppTransationRequest/{ID}
11
+ Error Callback - PUT /tppTransationRequest/{ID}/error
12
+ properties:
13
+ transactionRequestId:
14
+ allOf:
15
+ - $ref: ./CorrelationId.yaml
16
+ description: >
17
+ Common ID between the PISP and the Payer DFSP for the transaction request object.
18
+ The ID should be reused for resends of the same transaction request.
19
+ A new ID should be generated for each new transaction request.
20
+ payee:
21
+ allOf:
22
+ - $ref: ./Party.yaml
23
+ description: Information about the Payee in the proposed financial transaction.
24
+ payer:
25
+ allOf:
26
+ - $ref: ./PartyIdInfo.yaml
27
+ description: Information about the Payer in the proposed financial transaction.
28
+ amountType:
29
+ allOf:
30
+ - $ref: ./AmountType.yaml
31
+ description: 'SEND for sendAmount, RECEIVE for receiveAmount.'
32
+ amount:
33
+ allOf:
34
+ - $ref: ./Money.yaml
35
+ description: Requested amount to be transferred from the Payer to Payee.
36
+ transactionType:
37
+ allOf:
38
+ - $ref: ./TransactionType.yaml
39
+ description: Type of transaction.
40
+ note:
41
+ type: string
42
+ minLength: 1
43
+ maxLength: 256
44
+ description: A memo that will be attached to the transaction.
45
+ expiration:
46
+ type: string
47
+ description: >
48
+ Date and time until when the transaction request is valid. It can be set
49
+ to get a quick failure in case the peer FSP takes too long to respond.
50
+ example: '2016-05-24T08:38:08.699-04:00'
51
+ extensionList:
52
+ $ref: ./ExtensionList.yaml
53
+ required:
54
+ - transactionRequestId
55
+ - payee
56
+ - payer
57
+ - amountType
58
+ - amount
59
+ - transactionType
60
+ - expiration
@@ -0,0 +1,67 @@
1
+ title: tppAuthorizationsPostRequest
2
+ description: >-
3
+ Used by: DFSP
4
+
5
+ The HTTP request PUT /tppTransactionRequests/<ID> resource will have the following content. The <ID> in the request should match the transactionRequestId which was given when the transaction request was created.
6
+
7
+ It is used to return the:
8
+ 1. status of the customer information for validation.
9
+ 2. the status of that agreement of terms for the transfer
10
+ 3. a challenge that the PISP's client is to sign if the terms are agreed to and the transaction is to be authorized.
11
+
12
+ type: object
13
+ properties:
14
+ transactionRequestId:
15
+ $ref: ./CorrelationId.yaml
16
+ challenge:
17
+ type: string
18
+ description: The challenge that the PISP's client is to sign
19
+ transactionId:
20
+ $ref: ./CorrelationId.yaml
21
+ description: The unique identifier for the proposed transaction. It is set by the payer DFSP and signed by the payee DFSP as part of the terms of the transfer
22
+ transferAmount:
23
+ allOf:
24
+ - $ref: ./Money.yaml
25
+ description: >-
26
+ The amount that will be debited from the sending customer's
27
+ account as a consequence of the transaction.
28
+ payeeReceiveAmount:
29
+ allOf:
30
+ - $ref: ./Money.yaml
31
+ description: >-
32
+ The amount that will be credited to the receiving customer's
33
+ account as a consequence of the transaction.
34
+ fees:
35
+ allOf:
36
+ - $ref: ./Money.yaml
37
+ description: >-
38
+ The amount of fees that the paying customer will be charged
39
+ as part of the transaction.
40
+ payer:
41
+ allOf:
42
+ - $ref: ./PartyIdInfo.yaml
43
+ description: Information about the Payer type, id, sub-type/id, FSP Id in the proposed financial transaction.
44
+ payee:
45
+ allOf:
46
+ - $ref: ./Party.yaml
47
+ description: Information about the Payee in the proposed financial transaction.
48
+ transactionType:
49
+ $ref: '../../../../../fspiop/v2_0/openapi3/components/schemas/TransactionType.yaml'
50
+ expiration:
51
+ allOf:
52
+ - $ref: ./DateTime.yaml
53
+ description: The time by which the transfer must be completed, set by the payee DFSP.
54
+ extensionList:
55
+ $ref: ./ExtensionList.yaml
56
+ required:
57
+ - transactionRequestId
58
+ - transactionId
59
+ - challenge
60
+ - transferAmount
61
+ - payeeReceiveAmount
62
+ - fees
63
+ - payer
64
+ - payee
65
+ - transactionType
66
+ - expiration
67
+ additionalProperties: false
@@ -0,0 +1,19 @@
1
+ title: tppTransfersPostRequest
2
+ type: object
3
+ description: 'The object sent in the PUT /tppAuthorizations/{ID} callback.'
4
+ properties:
5
+ executionRequestId:
6
+ $ref: ./CorrelationId.yaml
7
+ transactionRequestId:
8
+ $ref: ./CorrelationId.yaml
9
+ authenticationInfo:
10
+ oneOf:
11
+ - $ref: './TransfersPostRequestGeneric.yaml'
12
+ - $ref: './TransfersPostRequestFIDO.yaml'
13
+ extensionList:
14
+ $ref: ./ExtensionList.yaml
15
+ required:
16
+ - executionRequestId
17
+ - transactionRequestId
18
+ - authenticationInfo
19
+ additionalProperties: false
@@ -0,0 +1,25 @@
1
+ title: tppTransfersPutResponse
2
+ type: object
3
+ description: >-
4
+ Used by: DFSP
5
+
6
+ The issuing PISP will expect a response to their request for a transfer
7
+ which describes the finalized state of the requested transfer.
8
+
9
+ This response will be given by a PUT callback call on the
10
+ /tppTransfers/{ID} resource.
11
+
12
+ The {ID} given in the query string should be the executionRequestId which
13
+ was originally used by the PISP to initiate the transaction.
14
+
15
+ https://github.com/mojaloop/documentation/blob/main/website/versioned_docs/v2.0.0/api/thirdparty/data-models.md#31612-post-thirdpartyrequestsauthorizations
16
+ properties:
17
+ completedTimestamp:
18
+ $ref: ./DateTime.yaml
19
+ transactionState:
20
+ $ref: ./TransactionState.yaml
21
+ extensionList:
22
+ $ref: ./ExtensionList.yaml
23
+ required:
24
+ - transactionRequestState
25
+ - transactionState
@@ -0,0 +1,19 @@
1
+ title: tppVerificationsIDPutResponse
2
+ type: object
3
+ description: >-
4
+ Used by: Auth Service
5
+
6
+ The callback PUT /tppVerifications/{ID} is used to inform the
7
+ client of the result of an authorization check.
8
+ The {ID} in the URI should contain the authorizationRequestId
9
+ which was used to request the check, or the {ID} that was used in the
10
+ GET /tppVerifications/{ID}.
11
+
12
+ https://github.com/mojaloop/documentation/blob/main/website/versioned_docs/v2.0.0/api/thirdparty/data-models.md#31821-put-thirdpartyrequestsverificationsid
13
+ properties:
14
+ authenticationResponse:
15
+ $ref: ./AuthenticationResponse.yaml
16
+ extensionList:
17
+ $ref: ./ExtensionList.yaml
18
+ required:
19
+ - authenticationResponse
@@ -0,0 +1,28 @@
1
+ title: tppVerificationsPostRequestFIDO
2
+ type: object
3
+ description: The object sent in the POST /tppVerifications request.
4
+ properties:
5
+ verificationRequestId:
6
+ allOf:
7
+ - $ref: ./CorrelationId.yaml
8
+ challenge:
9
+ type: string
10
+ description: Base64 encoded bytes - The challenge generated by the DFSP.
11
+ consentId:
12
+ allOf:
13
+ - $ref: ./CorrelationId.yaml
14
+ description: |
15
+ The id of the stored consent object that contains the credential with which to verify
16
+ the signed challenge against.
17
+ signedPayloadType:
18
+ $ref: ./SignedPayloadTypeFIDO.yaml
19
+ fidoSignedPayload:
20
+ $ref: ./FIDOPublicKeyCredentialAssertion.yaml
21
+ extensionList:
22
+ $ref: ./ExtensionList.yaml
23
+ required:
24
+ - verificationRequestId
25
+ - challenge
26
+ - consentId
27
+ - signedPayloadType
28
+ - fidoSignedPayload
@@ -0,0 +1,28 @@
1
+ title: tppVerificationsPostRequestGeneric
2
+ type: object
3
+ description: The object sent in the POST /tppVerifications request.
4
+ properties:
5
+ verificationRequestId:
6
+ allOf:
7
+ - $ref: ./CorrelationId.yaml
8
+ challenge:
9
+ type: string
10
+ description: Base64 encoded bytes - The challenge generated by the DFSP.
11
+ consentId:
12
+ allOf:
13
+ - $ref: ./CorrelationId.yaml
14
+ description: |
15
+ The id of the stored consent object that contains the credential with which to verify
16
+ the signed challenge against.
17
+ signedPayloadType:
18
+ $ref: ./SignedPayloadTypeGeneric.yaml
19
+ genericSignedPayload:
20
+ $ref: ./BinaryString.yaml
21
+ extensionList:
22
+ $ref: ./ExtensionList.yaml
23
+ required:
24
+ - verificationRequestId
25
+ - challenge
26
+ - consentId
27
+ - signedPayloadType
28
+ - genericSignedPayload