@mojaloop/api-snippets 17.2.0-snapshot.2 → 17.2.3

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,25 @@
1
1
  # Changelog: [mojaloop/api-snippets](https://github.com/mojaloop/api-snippets)
2
+ ### [17.2.3](https://github.com/mojaloop/api-snippets/compare/v17.2.2...v17.2.3) (2023-08-17)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * ci config.yml for missing jq dependency ([#165](https://github.com/mojaloop/api-snippets/issues/165)) ([2b950da](https://github.com/mojaloop/api-snippets/commit/2b950da02a4ef91ae4fbba9618a9e0b9619c6426))
8
+
9
+ ### [17.2.2](https://github.com/mojaloop/api-snippets/compare/v17.2.0...v17.2.2) (2023-08-17)
10
+
11
+
12
+ ### Maintenance
13
+
14
+ * **mojaloop/#3475:** NodeJS version upgrade ([d42f85a](https://github.com/mojaloop/api-snippets/commit/d42f85a29efe24764f70d50e05141d256a605e1a)), closes [mojaloop/#3475](https://github.com/mojaloop/api-snippets/issues/3475) [mojaloop/#3475](https://github.com/mojaloop/api-snippets/issues/3475)
15
+
16
+ ## [17.2.0](https://github.com/mojaloop/api-snippets/compare/v17.1.0...v17.2.0) (2023-06-05)
17
+
18
+
19
+ ### Features
20
+
21
+ * **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))
22
+
2
23
  ## [17.1.0](https://github.com/mojaloop/api-snippets/compare/v17.0.4...v17.1.0) (2023-05-19)
3
24
 
4
25
 
@@ -2410,6 +2410,86 @@ components:
2410
2410
  $ref: '#/components/schemas/Note'
2411
2411
  authenticationType:
2412
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
2413
2493
  requestToPayTransferResponse:
2414
2494
  type: object
2415
2495
  required:
@@ -2449,7 +2529,14 @@ components:
2449
2529
  quoteId:
2450
2530
  $ref: '#/components/schemas/CorrelationId'
2451
2531
  quoteResponse:
2452
- $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
2453
2540
  quoteResponseSource:
2454
2541
  type: string
2455
2542
  description: >
@@ -2457,8 +2544,24 @@ components:
2457
2544
  be the same as the FSPID of the entity which owns the end user
2458
2545
  account in the case of a FOREX transfer. i.e. it may be a FOREX
2459
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
2460
2556
  fulfil:
2461
- $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
2462
2565
  lastError:
2463
2566
  description: >
2464
2567
  Object representing the last error to occur during a transfer
package/jest.config.js CHANGED
@@ -16,10 +16,8 @@ module.exports = {
16
16
  },
17
17
  globals: {
18
18
  'ts-jest': {
19
- compiler: 'ttypescript'
19
+ compiler: 'ts-patch/compiler'
20
20
  }
21
21
  },
22
- setupFiles: [
23
- '<rootDir>config.ts'
24
- ]
22
+ setupFiles: ['<rootDir>config.ts']
25
23
  }