@mojaloop/api-snippets 17.2.0-snapshot.1 → 17.2.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.
package/CHANGELOG.md CHANGED
@@ -1,4 +1,11 @@
1
1
  # Changelog: [mojaloop/api-snippets](https://github.com/mojaloop/api-snippets)
2
+ ## [17.2.0](https://github.com/mojaloop/api-snippets/compare/v17.1.0...v17.2.0) (2023-06-05)
3
+
4
+
5
+ ### Features
6
+
7
+ * **mojaloop/3347:** enhance the request to pay transfer api process for payer acceptance flow ([#163](https://github.com/mojaloop/api-snippets/issues/163)) ([d24c889](https://github.com/mojaloop/api-snippets/commit/d24c889367132fc0f8ebf35f36726c0cbe9679ed))
8
+
2
9
  ## [17.1.0](https://github.com/mojaloop/api-snippets/compare/v17.0.4...v17.1.0) (2023-05-19)
3
10
 
4
11
 
@@ -2399,7 +2399,9 @@ components:
2399
2399
  amount:
2400
2400
  $ref: '#/components/schemas/Amount'
2401
2401
  scenario:
2402
- $ref: '#/components/schemas/TransactionType'
2402
+ $ref: '#/components/schemas/TransactionScenario'
2403
+ subScenario:
2404
+ $ref: '#/components/schemas/TransactionSubScenario'
2403
2405
  initiator:
2404
2406
  $ref: '#/components/schemas/TransactionInitiator'
2405
2407
  initiatorType:
@@ -2408,6 +2410,86 @@ components:
2408
2410
  $ref: '#/components/schemas/Note'
2409
2411
  authenticationType:
2410
2412
  $ref: '#/components/schemas/AuthenticationType'
2413
+ AuthenticationValue:
2414
+ title: AuthenticationValue
2415
+ anyOf:
2416
+ - title: OtpValue
2417
+ type: string
2418
+ pattern: ^\d{3,10}$
2419
+ description: >-
2420
+ The API data type OtpValue is a JSON String of 3 to 10 characters,
2421
+ consisting of digits only. Negative numbers are not allowed. One or
2422
+ more leading zeros are allowed.
2423
+ - title: QRCODE
2424
+ type: string
2425
+ minLength: 1
2426
+ maxLength: 64
2427
+ description: QR code used as a One Time Password.
2428
+ - title: U2FPinValue
2429
+ type: object
2430
+ description: >
2431
+ U2F challenge-response, where payer FSP verifies if the response
2432
+ provided by end-user device matches the previously registered key.
2433
+ properties:
2434
+ pinValue:
2435
+ type: string
2436
+ pattern: ^\S{1,64}$
2437
+ minLength: 1
2438
+ maxLength: 64
2439
+ description: >
2440
+ U2F challenge-response, where payer FSP verifies if the response
2441
+ provided by end-user device matches the previously registered
2442
+ key.
2443
+ counter:
2444
+ title: Integer
2445
+ type: string
2446
+ pattern: ^[1-9]\d*$
2447
+ description: >-
2448
+ Sequential counter used for cloning detection. Present only for
2449
+ U2F authentication.
2450
+ required:
2451
+ - pinValue
2452
+ - counter
2453
+ pattern: ^\d{3,10}$|^\S{1,64}$
2454
+ description: >-
2455
+ Contains the authentication value. The format depends on the
2456
+ authentication type used in the AuthenticationInfo complex type.
2457
+ AuthenticationInfo:
2458
+ title: AuthenticationInfo
2459
+ type: object
2460
+ description: Data model for the complex type AuthenticationInfo.
2461
+ properties:
2462
+ authentication:
2463
+ $ref: '#/components/schemas/AuthenticationType'
2464
+ authenticationValue:
2465
+ $ref: '#/components/schemas/AuthenticationValue'
2466
+ required:
2467
+ - authentication
2468
+ - authenticationValue
2469
+ AuthorizationResponseType:
2470
+ title: AuthorizationResponseType
2471
+ type: string
2472
+ enum:
2473
+ - ENTERED
2474
+ - REJECTED
2475
+ - RESEND
2476
+ description: |-
2477
+ Below are the allowed values for the enumeration.
2478
+ - ENTERED - Consumer entered the authentication value.
2479
+ - REJECTED - Consumer rejected the transaction.
2480
+ - RESEND - Consumer requested to resend the authentication value.
2481
+ example: ENTERED
2482
+ AuthorizationIDPutResponse:
2483
+ title: AuthorizationIDPutResponse
2484
+ type: object
2485
+ description: The object sent in the PUT /authorizations/{ID} callback.
2486
+ properties:
2487
+ authenticationInfo:
2488
+ $ref: '#/components/schemas/AuthenticationInfo'
2489
+ responseType:
2490
+ $ref: '#/components/schemas/AuthorizationResponseType'
2491
+ required:
2492
+ - responseType
2411
2493
  requestToPayTransferResponse:
2412
2494
  type: object
2413
2495
  required:
@@ -2447,7 +2529,14 @@ components:
2447
2529
  quoteId:
2448
2530
  $ref: '#/components/schemas/CorrelationId'
2449
2531
  quoteResponse:
2450
- $ref: '#/components/schemas/QuotesIDPutResponse'
2532
+ type: object
2533
+ required:
2534
+ - body
2535
+ properties:
2536
+ body:
2537
+ $ref: '#/components/schemas/QuotesIDPutResponse'
2538
+ headers:
2539
+ type: object
2451
2540
  quoteResponseSource:
2452
2541
  type: string
2453
2542
  description: >
@@ -2455,8 +2544,24 @@ components:
2455
2544
  be the same as the FSPID of the entity which owns the end user
2456
2545
  account in the case of a FOREX transfer. i.e. it may be a FOREX
2457
2546
  gateway.
2547
+ authorizationResponse:
2548
+ type: object
2549
+ required:
2550
+ - body
2551
+ properties:
2552
+ body:
2553
+ $ref: '#/components/schemas/AuthorizationIDPutResponse'
2554
+ headers:
2555
+ type: object
2458
2556
  fulfil:
2459
- $ref: '#/components/schemas/TransfersIDPutResponse'
2557
+ type: object
2558
+ required:
2559
+ - body
2560
+ properties:
2561
+ body:
2562
+ $ref: '#/components/schemas/TransfersIDPutResponse'
2563
+ headers:
2564
+ type: object
2460
2565
  lastError:
2461
2566
  description: >
2462
2567
  Object representing the last error to occur during a transfer