@mojaloop/api-snippets 17.8.0 → 18.0.0-snapshot.1

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.
@@ -48,6 +48,43 @@ paths:
48
48
  $ref: '#/components/responses/accountsCreationError'
49
49
  '504':
50
50
  $ref: '#/components/responses/accountsCreationTimeout'
51
+ /accounts/{Type}/{ID}:
52
+ delete:
53
+ summary: Delete account on the Account Lookup Service
54
+ description: The HTTP request `DELETE /accounts/{Type}/{ID}/{SubId}` is used to account account information on the Account Lookup Service (ALS) by Type and ID (and optionally SubId).
55
+ tags:
56
+ - Accounts
57
+ parameters:
58
+ - $ref: '#/components/parameters/Type'
59
+ - $ref: '#/components/parameters/ID'
60
+ responses:
61
+ '200':
62
+ $ref: '#/components/responses/accountDeletionCompleted'
63
+ '400':
64
+ $ref: '#/components/responses/accountDeletionError'
65
+ '500':
66
+ $ref: '#/components/responses/accountDeletionError'
67
+ '504':
68
+ $ref: '#/components/responses/accountDeletionTimeout'
69
+ /accounts/{Type}/{ID}/{SubId}:
70
+ delete:
71
+ summary: Delete account on the Account Lookup Service
72
+ description: The HTTP request `DELETE /accounts/{Type}/{ID}/{SubId}` is used to account account information on the Account Lookup Service (ALS) by Type and ID (and optionally SubId).
73
+ tags:
74
+ - Accounts
75
+ parameters:
76
+ - $ref: '#/components/parameters/Type'
77
+ - $ref: '#/components/parameters/ID'
78
+ - $ref: '#/components/parameters/SubId'
79
+ responses:
80
+ '200':
81
+ $ref: '#/components/responses/accountDeletionCompleted'
82
+ '400':
83
+ $ref: '#/components/responses/accountDeletionError'
84
+ '500':
85
+ $ref: '#/components/responses/accountDeletionError'
86
+ '504':
87
+ $ref: '#/components/responses/accountDeletionTimeout'
51
88
  /bulkQuotes:
52
89
  post:
53
90
  summary: Request bulk quotes for the provided financial transactions
@@ -2834,6 +2871,24 @@ components:
2834
2871
  application/json:
2835
2872
  schema:
2836
2873
  $ref: '#/components/schemas/errorAccountsResponse'
2874
+ accountDeletionCompleted:
2875
+ description: Account deletion completed
2876
+ content:
2877
+ application/json:
2878
+ schema:
2879
+ $ref: '#/components/schemas/accountsResponse'
2880
+ accountDeletionError:
2881
+ description: An error occurred while deleting an account
2882
+ content:
2883
+ application/json:
2884
+ schema:
2885
+ $ref: '#/components/schemas/errorAccountsResponse'
2886
+ accountDeletionTimeout:
2887
+ description: Timeout occurred while deleting an account
2888
+ content:
2889
+ application/json:
2890
+ schema:
2891
+ $ref: '#/components/schemas/errorAccountsResponse'
2837
2892
  bulkQuoteSuccess:
2838
2893
  description: Bulk quote completed successfully
2839
2894
  content:
@@ -2974,27 +3029,6 @@ components:
2974
3029
  schema:
2975
3030
  $ref: '#/components/schemas/ServicesFXPPutResponse'
2976
3031
  parameters:
2977
- bulkQuoteId:
2978
- name: bulkQuoteId
2979
- in: path
2980
- required: true
2981
- schema:
2982
- $ref: '#/components/schemas/CorrelationId'
2983
- description: Identifier of the bulk transfer to continue as returned in the response to a `POST /bulkTransfers` request.
2984
- bulkTransactionId:
2985
- name: bulkTransactionId
2986
- in: path
2987
- required: true
2988
- schema:
2989
- $ref: '#/components/schemas/CorrelationId'
2990
- description: Identifier of the bulk transaction to continue as returned in the response to a `POST /bulkTransaction` request.
2991
- bulkTransferId:
2992
- name: bulkTransferId
2993
- in: path
2994
- required: true
2995
- schema:
2996
- $ref: '#/components/schemas/CorrelationId'
2997
- description: Identifier of the bulk transfer to continue as returned in the response to a `POST /bulkTransfers` request.
2998
3032
  Type:
2999
3033
  name: Type
3000
3034
  in: path
@@ -3016,6 +3050,27 @@ components:
3016
3050
  schema:
3017
3051
  type: string
3018
3052
  description: A sub-identifier of the party identifier, or a sub-type of the party identifier's type. For example, `PASSPORT`, `DRIVING_LICENSE`.
3053
+ bulkQuoteId:
3054
+ name: bulkQuoteId
3055
+ in: path
3056
+ required: true
3057
+ schema:
3058
+ $ref: '#/components/schemas/CorrelationId'
3059
+ description: Identifier of the bulk transfer to continue as returned in the response to a `POST /bulkTransfers` request.
3060
+ bulkTransactionId:
3061
+ name: bulkTransactionId
3062
+ in: path
3063
+ required: true
3064
+ schema:
3065
+ $ref: '#/components/schemas/CorrelationId'
3066
+ description: Identifier of the bulk transaction to continue as returned in the response to a `POST /bulkTransaction` request.
3067
+ bulkTransferId:
3068
+ name: bulkTransferId
3069
+ in: path
3070
+ required: true
3071
+ schema:
3072
+ $ref: '#/components/schemas/CorrelationId'
3073
+ description: Identifier of the bulk transfer to continue as returned in the response to a `POST /bulkTransfers` request.
3019
3074
  transactionRequestId:
3020
3075
  name: transactionRequestId
3021
3076
  in: path
@@ -81,6 +81,86 @@ export interface paths {
81
81
  patch?: never;
82
82
  trace?: never;
83
83
  };
84
+ "/accounts/{Type}/{ID}": {
85
+ parameters: {
86
+ query?: never;
87
+ header?: never;
88
+ path?: never;
89
+ cookie?: never;
90
+ };
91
+ get?: never;
92
+ put?: never;
93
+ post?: never;
94
+ /**
95
+ * Delete account on the Account Lookup Service
96
+ * @description The HTTP request `DELETE /accounts/{Type}/{ID}/{SubId}` is used to account account information on the Account Lookup Service (ALS) by Type and ID (and optionally SubId).
97
+ */
98
+ delete: {
99
+ parameters: {
100
+ query?: never;
101
+ header?: never;
102
+ path: {
103
+ /** @description The type of the party identifier. For example, `MSISDN`, `PERSONAL_ID`. */
104
+ Type: components["parameters"]["Type"];
105
+ /** @description The identifier value. */
106
+ ID: components["parameters"]["ID"];
107
+ };
108
+ cookie?: never;
109
+ };
110
+ requestBody?: never;
111
+ responses: {
112
+ 200: components["responses"]["accountDeletionCompleted"];
113
+ 400: components["responses"]["accountDeletionError"];
114
+ 500: components["responses"]["accountDeletionError"];
115
+ 504: components["responses"]["accountDeletionTimeout"];
116
+ };
117
+ };
118
+ options?: never;
119
+ head?: never;
120
+ patch?: never;
121
+ trace?: never;
122
+ };
123
+ "/accounts/{Type}/{ID}/{SubId}": {
124
+ parameters: {
125
+ query?: never;
126
+ header?: never;
127
+ path?: never;
128
+ cookie?: never;
129
+ };
130
+ get?: never;
131
+ put?: never;
132
+ post?: never;
133
+ /**
134
+ * Delete account on the Account Lookup Service
135
+ * @description The HTTP request `DELETE /accounts/{Type}/{ID}/{SubId}` is used to account account information on the Account Lookup Service (ALS) by Type and ID (and optionally SubId).
136
+ */
137
+ delete: {
138
+ parameters: {
139
+ query?: never;
140
+ header?: never;
141
+ path: {
142
+ /** @description The type of the party identifier. For example, `MSISDN`, `PERSONAL_ID`. */
143
+ Type: components["parameters"]["Type"];
144
+ /** @description The identifier value. */
145
+ ID: components["parameters"]["ID"];
146
+ /** @description A sub-identifier of the party identifier, or a sub-type of the party identifier's type. For example, `PASSPORT`, `DRIVING_LICENSE`. */
147
+ SubId: components["parameters"]["SubId"];
148
+ };
149
+ cookie?: never;
150
+ };
151
+ requestBody?: never;
152
+ responses: {
153
+ 200: components["responses"]["accountDeletionCompleted"];
154
+ 400: components["responses"]["accountDeletionError"];
155
+ 500: components["responses"]["accountDeletionError"];
156
+ 504: components["responses"]["accountDeletionTimeout"];
157
+ };
158
+ };
159
+ options?: never;
160
+ head?: never;
161
+ patch?: never;
162
+ trace?: never;
163
+ };
84
164
  "/bulkQuotes": {
85
165
  parameters: {
86
166
  query?: never;
@@ -2015,6 +2095,33 @@ export interface components {
2015
2095
  "application/json": components["schemas"]["errorAccountsResponse"];
2016
2096
  };
2017
2097
  };
2098
+ /** @description Account deletion completed */
2099
+ accountDeletionCompleted: {
2100
+ headers: {
2101
+ [name: string]: unknown;
2102
+ };
2103
+ content: {
2104
+ "application/json": components["schemas"]["accountsResponse"];
2105
+ };
2106
+ };
2107
+ /** @description An error occurred while deleting an account */
2108
+ accountDeletionError: {
2109
+ headers: {
2110
+ [name: string]: unknown;
2111
+ };
2112
+ content: {
2113
+ "application/json": components["schemas"]["errorAccountsResponse"];
2114
+ };
2115
+ };
2116
+ /** @description Timeout occurred while deleting an account */
2117
+ accountDeletionTimeout: {
2118
+ headers: {
2119
+ [name: string]: unknown;
2120
+ };
2121
+ content: {
2122
+ "application/json": components["schemas"]["errorAccountsResponse"];
2123
+ };
2124
+ };
2018
2125
  /** @description Bulk quote completed successfully */
2019
2126
  bulkQuoteSuccess: {
2020
2127
  headers: {
@@ -2224,18 +2331,18 @@ export interface components {
2224
2331
  };
2225
2332
  };
2226
2333
  parameters: {
2227
- /** @description Identifier of the bulk transfer to continue as returned in the response to a `POST /bulkTransfers` request. */
2228
- bulkQuoteId: components["schemas"]["CorrelationId"];
2229
- /** @description Identifier of the bulk transaction to continue as returned in the response to a `POST /bulkTransaction` request. */
2230
- bulkTransactionId: components["schemas"]["CorrelationId"];
2231
- /** @description Identifier of the bulk transfer to continue as returned in the response to a `POST /bulkTransfers` request. */
2232
- bulkTransferId: components["schemas"]["CorrelationId"];
2233
2334
  /** @description The type of the party identifier. For example, `MSISDN`, `PERSONAL_ID`. */
2234
2335
  Type: string;
2235
2336
  /** @description The identifier value. */
2236
2337
  ID: string;
2237
2338
  /** @description A sub-identifier of the party identifier, or a sub-type of the party identifier's type. For example, `PASSPORT`, `DRIVING_LICENSE`. */
2238
2339
  SubId: string;
2340
+ /** @description Identifier of the bulk transfer to continue as returned in the response to a `POST /bulkTransfers` request. */
2341
+ bulkQuoteId: components["schemas"]["CorrelationId"];
2342
+ /** @description Identifier of the bulk transaction to continue as returned in the response to a `POST /bulkTransaction` request. */
2343
+ bulkTransactionId: components["schemas"]["CorrelationId"];
2344
+ /** @description Identifier of the bulk transfer to continue as returned in the response to a `POST /bulkTransfers` request. */
2345
+ bulkTransferId: components["schemas"]["CorrelationId"];
2239
2346
  /** @description Identifier of the merchant request to pay to continue as returned in the response to a `POST /requestToPay` request. */
2240
2347
  transactionRequestId: components["schemas"]["CorrelationId"];
2241
2348
  /** @description Identifier of the transfer to continue as returned in the response to a `POST /transfers` request. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mojaloop/api-snippets",
3
- "version": "17.8.0",
3
+ "version": "18.0.0-snapshot.1",
4
4
  "description": "Mojaloop API specification reusable snippets",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -101,15 +101,15 @@
101
101
  "@redocly/cli": "^1.5.0",
102
102
  "@types/jest": "^29.5.14",
103
103
  "@types/js-yaml": "^4.0.9",
104
- "@typescript-eslint/eslint-plugin": "^8.24.1",
105
- "@typescript-eslint/parser": "^8.24.1",
104
+ "@typescript-eslint/eslint-plugin": "^8.26.0",
105
+ "@typescript-eslint/parser": "^8.26.0",
106
106
  "audit-ci": "^7.1.0",
107
107
  "browser-sync": "^3.0.3",
108
108
  "diff": "^7.0.0",
109
109
  "eslint": "^8.55.0",
110
- "eslint-config-prettier": "^10.0.1",
110
+ "eslint-config-prettier": "^10.0.2",
111
111
  "eslint-config-standard": "^17.1.0",
112
- "eslint-import-resolver-typescript": "^3.8.2",
112
+ "eslint-import-resolver-typescript": "^3.8.3",
113
113
  "eslint-plugin-cucumber": "^2.0.0",
114
114
  "eslint-plugin-import": "^2.31.0",
115
115
  "eslint-plugin-node": "^11.1.0",
@@ -120,15 +120,15 @@
120
120
  "jest": "^29.7.0",
121
121
  "jest-junit": "^16.0.0",
122
122
  "lint-staged": "^15.4.3",
123
- "npm-check-updates": "^17.1.14",
124
- "prettier": "^3.5.1",
123
+ "npm-check-updates": "^17.1.15",
124
+ "prettier": "^3.5.3",
125
125
  "standard-version": "^9.5.0",
126
126
  "swagger-cli": "^4.0.4",
127
- "ts-jest": "^29.2.5",
127
+ "ts-jest": "^29.2.6",
128
128
  "ts-node": "^10.9.2",
129
129
  "ts-patch": "^3.3.0",
130
130
  "tslib": "^2.8.1",
131
- "typescript": "^5.7.3"
131
+ "typescript": "^5.8.2"
132
132
  },
133
133
  "publishConfig": {
134
134
  "registry": "https://registry.npmjs.org/"
@@ -0,0 +1,5 @@
1
+ description: Account deletion completed
2
+ content:
3
+ application/json:
4
+ schema:
5
+ $ref: ../schemas/accountsResponse.yaml
@@ -0,0 +1,5 @@
1
+ description: An error occurred while deleting an account
2
+ content:
3
+ application/json:
4
+ schema:
5
+ $ref: ../schemas/errorAccountsResponse.yaml
@@ -0,0 +1,5 @@
1
+ description: Timeout occurred while deleting an account
2
+ content:
3
+ application/json:
4
+ schema:
5
+ $ref: ../schemas/errorAccountsResponse.yaml
@@ -0,0 +1,23 @@
1
+ type: object
2
+ required:
3
+ - accounts
4
+ properties:
5
+ modelId:
6
+ $ref: ./CorrelationId.yaml
7
+ fspId:
8
+ $ref: ./FspId.yaml
9
+ response:
10
+ $ref: ./accountDeletionStatus.yaml
11
+ currentState:
12
+ $ref: ./accountDeletionState.yaml
13
+ lastError:
14
+ $ref: ./transferError.yaml
15
+ postAccountsResponse:
16
+ type: object
17
+ required:
18
+ - body
19
+ properties:
20
+ body:
21
+ type: object
22
+ headers:
23
+ type: object
@@ -0,0 +1,4 @@
1
+ type: string
2
+ enum:
3
+ - ERROR_OCCURRED
4
+ - COMPLETED
@@ -0,0 +1,10 @@
1
+ type: array
2
+ items:
3
+ type: object
4
+ required:
5
+ - fspId
6
+ properties:
7
+ fspId:
8
+ $ref: ./FspId.yaml
9
+ error:
10
+ $ref: ./errorResponse.yaml
@@ -24,6 +24,10 @@ paths:
24
24
  $ref: paths.yaml
25
25
  /accounts:
26
26
  $ref: paths/accounts.yaml
27
+ /accounts/{Type}/{ID}:
28
+ $ref: paths/accounts_Type_ID.yaml
29
+ /accounts/{Type}/{ID}/{SubId}:
30
+ $ref: paths/accounts_Type_ID_SubId.yaml
27
31
  /bulkQuotes:
28
32
  $ref: paths/bulkQuotes.yaml
29
33
  /bulkQuotes/{bulkQuoteId}:
@@ -0,0 +1,19 @@
1
+ delete:
2
+ summary: Delete account on the Account Lookup Service
3
+ description: >-
4
+ The HTTP request `DELETE /accounts/{Type}/{ID}/{SubId}` is used to account account information on
5
+ the Account Lookup Service (ALS) by Type and ID (and optionally SubId).
6
+ tags:
7
+ - Accounts
8
+ parameters:
9
+ - $ref: ../../components/parameters/Type.yaml
10
+ - $ref: ../../components/parameters/ID.yaml
11
+ responses:
12
+ '200':
13
+ $ref: ../../components/responses/accountDeletionCompleted.yaml
14
+ '400':
15
+ $ref: ../../components/responses/accountDeletionError.yaml
16
+ '500':
17
+ $ref: ../../components/responses/accountDeletionError.yaml
18
+ '504':
19
+ $ref: ../../components/responses/accountDeletionTimeout.yaml
@@ -0,0 +1,20 @@
1
+ delete:
2
+ summary: Delete account on the Account Lookup Service
3
+ description: >-
4
+ The HTTP request `DELETE /accounts/{Type}/{ID}/{SubId}` is used to account account information on
5
+ the Account Lookup Service (ALS) by Type and ID (and optionally SubId).
6
+ tags:
7
+ - Accounts
8
+ parameters:
9
+ - $ref: ../../components/parameters/Type.yaml
10
+ - $ref: ../../components/parameters/ID.yaml
11
+ - $ref: ../../components/parameters/SubId.yaml
12
+ responses:
13
+ '200':
14
+ $ref: ../../components/responses/accountDeletionCompleted.yaml
15
+ '400':
16
+ $ref: ../../components/responses/accountDeletionError.yaml
17
+ '500':
18
+ $ref: ../../components/responses/accountDeletionError.yaml
19
+ '504':
20
+ $ref: ../../components/responses/accountDeletionTimeout.yaml