@mojaloop/api-snippets 12.7.0 → 12.8.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
|
+
## [12.8.0](https://github.com/mojaloop/api-snippets/compare/v12.7.0...v12.8.0) (2021-09-23)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **thirdparty:** update the PATCH /tpr/transactions body to line up with latest API draft ([#111](https://github.com/mojaloop/api-snippets/issues/111)) ([2659520](https://github.com/mojaloop/api-snippets/commit/2659520df25f9320a2772b5d13ef1b8e08317142))
|
|
8
|
+
|
|
2
9
|
## [12.7.0](https://github.com/mojaloop/api-snippets/compare/v12.6.7...v12.7.0) (2021-09-23)
|
|
3
10
|
|
|
4
11
|
|
|
@@ -913,21 +913,24 @@ paths:
|
|
|
913
913
|
The object sent in the PATCH
|
|
914
914
|
/thirdpartyRequests/transactions/{ID} callback.
|
|
915
915
|
properties: &ref_70
|
|
916
|
-
|
|
917
|
-
title:
|
|
916
|
+
completedTimestamp:
|
|
917
|
+
title: DateTime
|
|
918
918
|
type: string
|
|
919
919
|
pattern: >-
|
|
920
|
-
^[
|
|
920
|
+
^(?:[1-9]\d{3}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1\d|2[0-8])|(?:0[13-9]|1[0-2])-(?:29|30)|(?:0[13578]|1[02])-31)|(?:[1-9]\d(?:0[48]|[2468][048]|[13579][26])|(?:[2468][048]|[13579][26])00)-02-29)T(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:(\.\d{3}))(?:Z|[+-][01]\d:[0-5]\d)$
|
|
921
921
|
description: >-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
922
|
+
The API data type DateTime is a JSON String in a lexical
|
|
923
|
+
format that is restricted by a regular expression for
|
|
924
|
+
interoperability reasons. The format is according to
|
|
925
|
+
[ISO
|
|
926
|
+
8601](https://www.iso.org/iso-8601-date-and-time-format.html),
|
|
927
|
+
expressed in a combined date, time and time zone format.
|
|
928
|
+
A more readable version of the format is
|
|
929
|
+
yyyy-MM-ddTHH:mm:ss.SSS[-HH:MM]. Examples are
|
|
930
|
+
"2016-05-24T08:38:08.699-04:00",
|
|
931
|
+
"2016-05-24T08:38:08.699Z" (where Z indicates Zulu time
|
|
932
|
+
zone, same as UTC).
|
|
933
|
+
example: '2016-05-24T08:38:08.699-04:00'
|
|
931
934
|
transactionRequestState:
|
|
932
935
|
title: TransactionRequestState
|
|
933
936
|
type: string
|
|
@@ -972,7 +975,6 @@ paths:
|
|
|
972
975
|
transaction.
|
|
973
976
|
example: RECEIVED
|
|
974
977
|
required: &ref_71
|
|
975
|
-
- transactionId
|
|
976
978
|
- transactionRequestState
|
|
977
979
|
- transactionState
|
|
978
980
|
- title: TransactionRequestsPostRequest
|
|
@@ -1884,9 +1884,9 @@ export interface operations {
|
|
|
1884
1884
|
};
|
|
1885
1885
|
} | "THIRD_PARTY_DFSP" | {
|
|
1886
1886
|
/**
|
|
1887
|
-
*
|
|
1887
|
+
* The API data type DateTime is a JSON String in a lexical format that is restricted by a regular expression for interoperability reasons. The format is according to [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html), expressed in a combined date, time and time zone format. A more readable version of the format is yyyy-MM-ddTHH:mm:ss.SSS[-HH:MM]. Examples are "2016-05-24T08:38:08.699-04:00", "2016-05-24T08:38:08.699Z" (where Z indicates Zulu time zone, same as UTC).
|
|
1888
1888
|
*/
|
|
1889
|
-
|
|
1889
|
+
completedTimestamp?: string;
|
|
1890
1890
|
/**
|
|
1891
1891
|
* Below are the allowed values for the enumeration.
|
|
1892
1892
|
* - RECEIVED - Payer FSP has received the transaction from the Payee FSP.
|
|
@@ -14233,9 +14233,9 @@ export interface operations {
|
|
|
14233
14233
|
requestBody: {
|
|
14234
14234
|
"application/json": {
|
|
14235
14235
|
/**
|
|
14236
|
-
*
|
|
14236
|
+
* The API data type DateTime is a JSON String in a lexical format that is restricted by a regular expression for interoperability reasons. The format is according to [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html), expressed in a combined date, time and time zone format. A more readable version of the format is yyyy-MM-ddTHH:mm:ss.SSS[-HH:MM]. Examples are "2016-05-24T08:38:08.699-04:00", "2016-05-24T08:38:08.699Z" (where Z indicates Zulu time zone, same as UTC).
|
|
14237
14237
|
*/
|
|
14238
|
-
|
|
14238
|
+
completedTimestamp?: string;
|
|
14239
14239
|
/**
|
|
14240
14240
|
* Below are the allowed values for the enumeration.
|
|
14241
14241
|
* - RECEIVED - Payer FSP has received the transaction from the Payee FSP.
|
|
@@ -18768,9 +18768,9 @@ export interface components {
|
|
|
18768
18768
|
*/
|
|
18769
18769
|
ThirdpartyRequestsTransactionsIDPatchResponse: {
|
|
18770
18770
|
/**
|
|
18771
|
-
*
|
|
18771
|
+
* The API data type DateTime is a JSON String in a lexical format that is restricted by a regular expression for interoperability reasons. The format is according to [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html), expressed in a combined date, time and time zone format. A more readable version of the format is yyyy-MM-ddTHH:mm:ss.SSS[-HH:MM]. Examples are "2016-05-24T08:38:08.699-04:00", "2016-05-24T08:38:08.699Z" (where Z indicates Zulu time zone, same as UTC).
|
|
18772
18772
|
*/
|
|
18773
|
-
|
|
18773
|
+
completedTimestamp?: string;
|
|
18774
18774
|
/**
|
|
18775
18775
|
* Below are the allowed values for the enumeration.
|
|
18776
18776
|
* - RECEIVED - Payer FSP has received the transaction from the Payee FSP.
|
package/package.json
CHANGED
|
@@ -502,7 +502,6 @@ describe('thirdparty', () => {
|
|
|
502
502
|
|
|
503
503
|
test('ThirdpartyRequestsTransactionsIDPatchResponse', () => {
|
|
504
504
|
const thirdpartyRequestsTransactionsIDPatchResponse: Schemas.ThirdpartyRequestsTransactionsIDPatchResponse = {
|
|
505
|
-
transactionId: correlationId,
|
|
506
505
|
transactionRequestState: 'ACCEPTED',
|
|
507
506
|
transactionState: 'COMPLETED'
|
|
508
507
|
}
|
package/thirdparty/openapi3/components/schemas/ThirdpartyRequestsTransactionsIDPatchResponse.yaml
CHANGED
|
@@ -2,13 +2,12 @@ title: ThirdpartyRequestsTransactionsIDPatchResponse
|
|
|
2
2
|
type: object
|
|
3
3
|
description: 'The object sent in the PATCH /thirdpartyRequests/transactions/{ID} callback.'
|
|
4
4
|
properties:
|
|
5
|
-
|
|
6
|
-
$ref: ./
|
|
5
|
+
completedTimestamp:
|
|
6
|
+
$ref: ./DateTime.yaml
|
|
7
7
|
transactionRequestState:
|
|
8
8
|
$ref: ./TransactionRequestState.yaml
|
|
9
9
|
transactionState:
|
|
10
10
|
$ref: ./TransactionState.yaml
|
|
11
11
|
required:
|
|
12
|
-
- transactionId
|
|
13
12
|
- transactionRequestState
|
|
14
13
|
- transactionState
|