@mojaloop/api-snippets 17.0.3 → 17.0.4-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.
- package/docs/sdk-scheme-adapter-outbound-v2_0_0-openapi3-snippets.yaml +9 -15
- package/lib/sdk-scheme-adapter/v2_0_0/outbound/json-schemas.json +29 -207
- package/lib/sdk-scheme-adapter/v2_0_0/outbound/openapi.d.ts +4 -8
- package/lib/sdk-scheme-adapter/v2_0_0/outbound/schemas.d.ts +6 -138
- package/package.json +20 -20
- package/sdk-scheme-adapter/v2_0_0/components/schemas/requestToPayRequest.yaml +6 -9
- package/sdk-scheme-adapter/v2_0_0/components/schemas/requestToPayResponse.yaml +4 -6
- package/tsconfig.build.json +1 -0
@@ -2060,9 +2060,7 @@ components:
|
|
2060
2060
|
- amountType
|
2061
2061
|
- currency
|
2062
2062
|
- amount
|
2063
|
-
-
|
2064
|
-
- initiator
|
2065
|
-
- initiatorType
|
2063
|
+
- transactionType
|
2066
2064
|
properties:
|
2067
2065
|
homeTransactionId:
|
2068
2066
|
type: string
|
@@ -2079,12 +2077,10 @@ components:
|
|
2079
2077
|
$ref: '#/components/schemas/Currency'
|
2080
2078
|
amount:
|
2081
2079
|
$ref: '#/components/schemas/Amount'
|
2082
|
-
|
2083
|
-
$ref: '#/components/schemas/
|
2084
|
-
|
2085
|
-
$ref: '#/components/schemas/
|
2086
|
-
initiatorType:
|
2087
|
-
$ref: '#/components/schemas/TransactionInitiatorType'
|
2080
|
+
transactionType:
|
2081
|
+
$ref: '#/components/schemas/TransactionScenario'
|
2082
|
+
subScenario:
|
2083
|
+
$ref: '#/components/schemas/TransactionSubScenario'
|
2088
2084
|
AuthenticationType:
|
2089
2085
|
title: AuthenticationType
|
2090
2086
|
type: string
|
@@ -2137,12 +2133,10 @@ components:
|
|
2137
2133
|
$ref: '#/components/schemas/Currency'
|
2138
2134
|
amount:
|
2139
2135
|
$ref: '#/components/schemas/Amount'
|
2140
|
-
|
2141
|
-
$ref: '#/components/schemas/
|
2142
|
-
|
2143
|
-
$ref: '#/components/schemas/
|
2144
|
-
initiatorType:
|
2145
|
-
$ref: '#/components/schemas/TransactionInitiatorType'
|
2136
|
+
transactionType:
|
2137
|
+
$ref: '#/components/schemas/TransactionScenario'
|
2138
|
+
subScenario:
|
2139
|
+
$ref: '#/components/schemas/TransactionSubScenario'
|
2146
2140
|
authenticationType:
|
2147
2141
|
$ref: '#/components/schemas/AuthenticationType'
|
2148
2142
|
requestToPayState:
|
@@ -14869,9 +14869,7 @@
|
|
14869
14869
|
"amountType",
|
14870
14870
|
"currency",
|
14871
14871
|
"amount",
|
14872
|
-
"
|
14873
|
-
"initiator",
|
14874
|
-
"initiatorType"
|
14872
|
+
"transactionType"
|
14875
14873
|
],
|
14876
14874
|
"properties": {
|
14877
14875
|
"homeTransactionId": {
|
@@ -15336,113 +15334,25 @@
|
|
15336
15334
|
"description": "The API data type Amount is a JSON String in a canonical format that is restricted by a regular expression for interoperability reasons. This pattern does not allow any trailing zeroes at all, but allows an amount without a minor currency unit. It also only allows four digits in the minor currency unit; a negative value is not allowed. Using more than 18 digits in the major currency unit is not allowed.",
|
15337
15335
|
"example": "123.45"
|
15338
15336
|
},
|
15339
|
-
"
|
15340
|
-
"title": "
|
15341
|
-
"type": "object",
|
15342
|
-
"description": "Data model for the complex type TransactionType.",
|
15343
|
-
"properties": {
|
15344
|
-
"scenario": {
|
15345
|
-
"title": "TransactionScenario",
|
15346
|
-
"type": "string",
|
15347
|
-
"enum": [
|
15348
|
-
"DEPOSIT",
|
15349
|
-
"WITHDRAWAL",
|
15350
|
-
"TRANSFER",
|
15351
|
-
"PAYMENT",
|
15352
|
-
"REFUND"
|
15353
|
-
],
|
15354
|
-
"description": "Below are the allowed values for the enumeration.\n- DEPOSIT - Used for performing a Cash-In (deposit) transaction. In a normal scenario, electronic funds are transferred from a Business account to a Consumer account, and physical cash is given from the Consumer to the Business User.\n- WITHDRAWAL - Used for performing a Cash-Out (withdrawal) transaction. In a normal scenario, electronic funds are transferred from a Consumer’s account to a Business account, and physical cash is given from the Business User to the Consumer.\n- TRANSFER - Used for performing a P2P (Peer to Peer, or Consumer to Consumer) transaction.\n- PAYMENT - Usually used for performing a transaction from a Consumer to a Merchant or Organization, but could also be for a B2B (Business to Business) payment. The transaction could be online for a purchase in an Internet store, in a physical store where both the Consumer and Business User are present, a bill payment, a donation, and so on.\n- REFUND - Used for performing a refund of transaction.",
|
15355
|
-
"example": "DEPOSIT"
|
15356
|
-
},
|
15357
|
-
"subScenario": {
|
15358
|
-
"title": "TransactionSubScenario",
|
15359
|
-
"type": "string",
|
15360
|
-
"pattern": "^[A-Z_]{1,32}$",
|
15361
|
-
"description": "Possible sub-scenario, defined locally within the scheme (UndefinedEnum Type).",
|
15362
|
-
"example": "LOCALLY_DEFINED_SUBSCENARIO"
|
15363
|
-
},
|
15364
|
-
"initiator": {
|
15365
|
-
"title": "TransactionInitiator",
|
15366
|
-
"type": "string",
|
15367
|
-
"enum": [
|
15368
|
-
"PAYER",
|
15369
|
-
"PAYEE"
|
15370
|
-
],
|
15371
|
-
"description": "Below are the allowed values for the enumeration.\n- PAYER - Sender of funds is initiating the transaction. The account to send from is either owned by the Payer or is connected to the Payer in some way.\n- PAYEE - Recipient of the funds is initiating the transaction by sending a transaction request. The Payer must approve the transaction, either automatically by a pre-generated OTP or by pre-approval of the Payee, or by manually approving in his or her own Device.",
|
15372
|
-
"example": "PAYEE"
|
15373
|
-
},
|
15374
|
-
"initiatorType": {
|
15375
|
-
"title": "TransactionInitiatorType",
|
15376
|
-
"type": "string",
|
15377
|
-
"enum": [
|
15378
|
-
"CONSUMER",
|
15379
|
-
"AGENT",
|
15380
|
-
"BUSINESS",
|
15381
|
-
"DEVICE"
|
15382
|
-
],
|
15383
|
-
"description": "Below are the allowed values for the enumeration.\n- CONSUMER - Consumer is the initiator of the transaction.\n- AGENT - Agent is the initiator of the transaction.\n- BUSINESS - Business is the initiator of the transaction.\n- DEVICE - Device is the initiator of the transaction.",
|
15384
|
-
"example": "CONSUMER"
|
15385
|
-
},
|
15386
|
-
"refundInfo": {
|
15387
|
-
"title": "Refund",
|
15388
|
-
"type": "object",
|
15389
|
-
"description": "Data model for the complex type Refund.",
|
15390
|
-
"properties": {
|
15391
|
-
"originalTransactionId": {
|
15392
|
-
"title": "CorrelationId",
|
15393
|
-
"type": "string",
|
15394
|
-
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
|
15395
|
-
"description": "Identifier that correlates all messages of the same sequence. The API data type UUID (Universally Unique Identifier) is a JSON String in canonical format, conforming to [RFC 4122](https://tools.ietf.org/html/rfc4122), that is restricted by a regular expression for interoperability reasons. A UUID is always 36 characters long, 32 hexadecimal symbols and 4 dashes (‘-‘).",
|
15396
|
-
"example": "b51ec534-ee48-4575-b6a9-ead2955b8069"
|
15397
|
-
},
|
15398
|
-
"refundReason": {
|
15399
|
-
"title": "RefundReason",
|
15400
|
-
"type": "string",
|
15401
|
-
"minLength": 1,
|
15402
|
-
"maxLength": 128,
|
15403
|
-
"description": "Reason for the refund.",
|
15404
|
-
"example": "Free text indicating reason for the refund."
|
15405
|
-
}
|
15406
|
-
},
|
15407
|
-
"required": [
|
15408
|
-
"originalTransactionId"
|
15409
|
-
]
|
15410
|
-
},
|
15411
|
-
"balanceOfPayments": {
|
15412
|
-
"title": "BalanceOfPayments",
|
15413
|
-
"type": "string",
|
15414
|
-
"pattern": "^[1-9]\\d{2}$",
|
15415
|
-
"description": "(BopCode) The API data type [BopCode](https://www.imf.org/external/np/sta/bopcode/) is a JSON String of 3 characters, consisting of digits only. Negative numbers are not allowed. A leading zero is not allowed.",
|
15416
|
-
"example": "123"
|
15417
|
-
}
|
15418
|
-
},
|
15419
|
-
"required": [
|
15420
|
-
"scenario",
|
15421
|
-
"initiator",
|
15422
|
-
"initiatorType"
|
15423
|
-
]
|
15424
|
-
},
|
15425
|
-
"initiator": {
|
15426
|
-
"title": "TransactionInitiator",
|
15337
|
+
"transactionType": {
|
15338
|
+
"title": "TransactionScenario",
|
15427
15339
|
"type": "string",
|
15428
15340
|
"enum": [
|
15429
|
-
"
|
15430
|
-
"
|
15341
|
+
"DEPOSIT",
|
15342
|
+
"WITHDRAWAL",
|
15343
|
+
"TRANSFER",
|
15344
|
+
"PAYMENT",
|
15345
|
+
"REFUND"
|
15431
15346
|
],
|
15432
|
-
"description": "Below are the allowed values for the enumeration.\n-
|
15433
|
-
"example": "
|
15347
|
+
"description": "Below are the allowed values for the enumeration.\n- DEPOSIT - Used for performing a Cash-In (deposit) transaction. In a normal scenario, electronic funds are transferred from a Business account to a Consumer account, and physical cash is given from the Consumer to the Business User.\n- WITHDRAWAL - Used for performing a Cash-Out (withdrawal) transaction. In a normal scenario, electronic funds are transferred from a Consumer’s account to a Business account, and physical cash is given from the Business User to the Consumer.\n- TRANSFER - Used for performing a P2P (Peer to Peer, or Consumer to Consumer) transaction.\n- PAYMENT - Usually used for performing a transaction from a Consumer to a Merchant or Organization, but could also be for a B2B (Business to Business) payment. The transaction could be online for a purchase in an Internet store, in a physical store where both the Consumer and Business User are present, a bill payment, a donation, and so on.\n- REFUND - Used for performing a refund of transaction.",
|
15348
|
+
"example": "DEPOSIT"
|
15434
15349
|
},
|
15435
|
-
"
|
15436
|
-
"title": "
|
15350
|
+
"subScenario": {
|
15351
|
+
"title": "TransactionSubScenario",
|
15437
15352
|
"type": "string",
|
15438
|
-
"
|
15439
|
-
|
15440
|
-
|
15441
|
-
"BUSINESS",
|
15442
|
-
"DEVICE"
|
15443
|
-
],
|
15444
|
-
"description": "Below are the allowed values for the enumeration.\n- CONSUMER - Consumer is the initiator of the transaction.\n- AGENT - Agent is the initiator of the transaction.\n- BUSINESS - Business is the initiator of the transaction.\n- DEVICE - Device is the initiator of the transaction.",
|
15445
|
-
"example": "CONSUMER"
|
15353
|
+
"pattern": "^[A-Z_]{1,32}$",
|
15354
|
+
"description": "Possible sub-scenario, defined locally within the scheme (UndefinedEnum Type).",
|
15355
|
+
"example": "LOCALLY_DEFINED_SUBSCENARIO"
|
15446
15356
|
}
|
15447
15357
|
}
|
15448
15358
|
},
|
@@ -15947,113 +15857,25 @@
|
|
15947
15857
|
"description": "The API data type Amount is a JSON String in a canonical format that is restricted by a regular expression for interoperability reasons. This pattern does not allow any trailing zeroes at all, but allows an amount without a minor currency unit. It also only allows four digits in the minor currency unit; a negative value is not allowed. Using more than 18 digits in the major currency unit is not allowed.",
|
15948
15858
|
"example": "123.45"
|
15949
15859
|
},
|
15950
|
-
"
|
15951
|
-
"title": "
|
15952
|
-
"type": "object",
|
15953
|
-
"description": "Data model for the complex type TransactionType.",
|
15954
|
-
"properties": {
|
15955
|
-
"scenario": {
|
15956
|
-
"title": "TransactionScenario",
|
15957
|
-
"type": "string",
|
15958
|
-
"enum": [
|
15959
|
-
"DEPOSIT",
|
15960
|
-
"WITHDRAWAL",
|
15961
|
-
"TRANSFER",
|
15962
|
-
"PAYMENT",
|
15963
|
-
"REFUND"
|
15964
|
-
],
|
15965
|
-
"description": "Below are the allowed values for the enumeration.\n- DEPOSIT - Used for performing a Cash-In (deposit) transaction. In a normal scenario, electronic funds are transferred from a Business account to a Consumer account, and physical cash is given from the Consumer to the Business User.\n- WITHDRAWAL - Used for performing a Cash-Out (withdrawal) transaction. In a normal scenario, electronic funds are transferred from a Consumer’s account to a Business account, and physical cash is given from the Business User to the Consumer.\n- TRANSFER - Used for performing a P2P (Peer to Peer, or Consumer to Consumer) transaction.\n- PAYMENT - Usually used for performing a transaction from a Consumer to a Merchant or Organization, but could also be for a B2B (Business to Business) payment. The transaction could be online for a purchase in an Internet store, in a physical store where both the Consumer and Business User are present, a bill payment, a donation, and so on.\n- REFUND - Used for performing a refund of transaction.",
|
15966
|
-
"example": "DEPOSIT"
|
15967
|
-
},
|
15968
|
-
"subScenario": {
|
15969
|
-
"title": "TransactionSubScenario",
|
15970
|
-
"type": "string",
|
15971
|
-
"pattern": "^[A-Z_]{1,32}$",
|
15972
|
-
"description": "Possible sub-scenario, defined locally within the scheme (UndefinedEnum Type).",
|
15973
|
-
"example": "LOCALLY_DEFINED_SUBSCENARIO"
|
15974
|
-
},
|
15975
|
-
"initiator": {
|
15976
|
-
"title": "TransactionInitiator",
|
15977
|
-
"type": "string",
|
15978
|
-
"enum": [
|
15979
|
-
"PAYER",
|
15980
|
-
"PAYEE"
|
15981
|
-
],
|
15982
|
-
"description": "Below are the allowed values for the enumeration.\n- PAYER - Sender of funds is initiating the transaction. The account to send from is either owned by the Payer or is connected to the Payer in some way.\n- PAYEE - Recipient of the funds is initiating the transaction by sending a transaction request. The Payer must approve the transaction, either automatically by a pre-generated OTP or by pre-approval of the Payee, or by manually approving in his or her own Device.",
|
15983
|
-
"example": "PAYEE"
|
15984
|
-
},
|
15985
|
-
"initiatorType": {
|
15986
|
-
"title": "TransactionInitiatorType",
|
15987
|
-
"type": "string",
|
15988
|
-
"enum": [
|
15989
|
-
"CONSUMER",
|
15990
|
-
"AGENT",
|
15991
|
-
"BUSINESS",
|
15992
|
-
"DEVICE"
|
15993
|
-
],
|
15994
|
-
"description": "Below are the allowed values for the enumeration.\n- CONSUMER - Consumer is the initiator of the transaction.\n- AGENT - Agent is the initiator of the transaction.\n- BUSINESS - Business is the initiator of the transaction.\n- DEVICE - Device is the initiator of the transaction.",
|
15995
|
-
"example": "CONSUMER"
|
15996
|
-
},
|
15997
|
-
"refundInfo": {
|
15998
|
-
"title": "Refund",
|
15999
|
-
"type": "object",
|
16000
|
-
"description": "Data model for the complex type Refund.",
|
16001
|
-
"properties": {
|
16002
|
-
"originalTransactionId": {
|
16003
|
-
"title": "CorrelationId",
|
16004
|
-
"type": "string",
|
16005
|
-
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",
|
16006
|
-
"description": "Identifier that correlates all messages of the same sequence. The API data type UUID (Universally Unique Identifier) is a JSON String in canonical format, conforming to [RFC 4122](https://tools.ietf.org/html/rfc4122), that is restricted by a regular expression for interoperability reasons. A UUID is always 36 characters long, 32 hexadecimal symbols and 4 dashes (‘-‘).",
|
16007
|
-
"example": "b51ec534-ee48-4575-b6a9-ead2955b8069"
|
16008
|
-
},
|
16009
|
-
"refundReason": {
|
16010
|
-
"title": "RefundReason",
|
16011
|
-
"type": "string",
|
16012
|
-
"minLength": 1,
|
16013
|
-
"maxLength": 128,
|
16014
|
-
"description": "Reason for the refund.",
|
16015
|
-
"example": "Free text indicating reason for the refund."
|
16016
|
-
}
|
16017
|
-
},
|
16018
|
-
"required": [
|
16019
|
-
"originalTransactionId"
|
16020
|
-
]
|
16021
|
-
},
|
16022
|
-
"balanceOfPayments": {
|
16023
|
-
"title": "BalanceOfPayments",
|
16024
|
-
"type": "string",
|
16025
|
-
"pattern": "^[1-9]\\d{2}$",
|
16026
|
-
"description": "(BopCode) The API data type [BopCode](https://www.imf.org/external/np/sta/bopcode/) is a JSON String of 3 characters, consisting of digits only. Negative numbers are not allowed. A leading zero is not allowed.",
|
16027
|
-
"example": "123"
|
16028
|
-
}
|
16029
|
-
},
|
16030
|
-
"required": [
|
16031
|
-
"scenario",
|
16032
|
-
"initiator",
|
16033
|
-
"initiatorType"
|
16034
|
-
]
|
16035
|
-
},
|
16036
|
-
"initiator": {
|
16037
|
-
"title": "TransactionInitiator",
|
15860
|
+
"transactionType": {
|
15861
|
+
"title": "TransactionScenario",
|
16038
15862
|
"type": "string",
|
16039
15863
|
"enum": [
|
16040
|
-
"
|
16041
|
-
"
|
15864
|
+
"DEPOSIT",
|
15865
|
+
"WITHDRAWAL",
|
15866
|
+
"TRANSFER",
|
15867
|
+
"PAYMENT",
|
15868
|
+
"REFUND"
|
16042
15869
|
],
|
16043
|
-
"description": "Below are the allowed values for the enumeration.\n-
|
16044
|
-
"example": "
|
15870
|
+
"description": "Below are the allowed values for the enumeration.\n- DEPOSIT - Used for performing a Cash-In (deposit) transaction. In a normal scenario, electronic funds are transferred from a Business account to a Consumer account, and physical cash is given from the Consumer to the Business User.\n- WITHDRAWAL - Used for performing a Cash-Out (withdrawal) transaction. In a normal scenario, electronic funds are transferred from a Consumer’s account to a Business account, and physical cash is given from the Business User to the Consumer.\n- TRANSFER - Used for performing a P2P (Peer to Peer, or Consumer to Consumer) transaction.\n- PAYMENT - Usually used for performing a transaction from a Consumer to a Merchant or Organization, but could also be for a B2B (Business to Business) payment. The transaction could be online for a purchase in an Internet store, in a physical store where both the Consumer and Business User are present, a bill payment, a donation, and so on.\n- REFUND - Used for performing a refund of transaction.",
|
15871
|
+
"example": "DEPOSIT"
|
16045
15872
|
},
|
16046
|
-
"
|
16047
|
-
"title": "
|
15873
|
+
"subScenario": {
|
15874
|
+
"title": "TransactionSubScenario",
|
16048
15875
|
"type": "string",
|
16049
|
-
"
|
16050
|
-
|
16051
|
-
|
16052
|
-
"BUSINESS",
|
16053
|
-
"DEVICE"
|
16054
|
-
],
|
16055
|
-
"description": "Below are the allowed values for the enumeration.\n- CONSUMER - Consumer is the initiator of the transaction.\n- AGENT - Agent is the initiator of the transaction.\n- BUSINESS - Business is the initiator of the transaction.\n- DEVICE - Device is the initiator of the transaction.",
|
16056
|
-
"example": "CONSUMER"
|
15876
|
+
"pattern": "^[A-Z_]{1,32}$",
|
15877
|
+
"description": "Possible sub-scenario, defined locally within the scheme (UndefinedEnum Type).",
|
15878
|
+
"example": "LOCALLY_DEFINED_SUBSCENARIO"
|
16057
15879
|
},
|
16058
15880
|
"authenticationType": {
|
16059
15881
|
"title": "AuthenticationType",
|
@@ -1050,9 +1050,8 @@ export interface components {
|
|
1050
1050
|
amountType: components["schemas"]["AmountType"];
|
1051
1051
|
currency: components["schemas"]["Currency"];
|
1052
1052
|
amount: components["schemas"]["Amount"];
|
1053
|
-
|
1054
|
-
|
1055
|
-
initiatorType: components["schemas"]["TransactionInitiatorType"];
|
1053
|
+
transactionType: components["schemas"]["TransactionScenario"];
|
1054
|
+
subScenario?: components["schemas"]["TransactionSubScenario"];
|
1056
1055
|
};
|
1057
1056
|
/**
|
1058
1057
|
* AuthenticationType
|
@@ -1082,13 +1081,10 @@ export interface components {
|
|
1082
1081
|
amountType: components["schemas"]["AmountType"];
|
1083
1082
|
currency: components["schemas"]["Currency"];
|
1084
1083
|
amount: components["schemas"]["Amount"];
|
1085
|
-
|
1086
|
-
|
1087
|
-
initiatorType?: components["schemas"]["TransactionInitiatorType"];
|
1084
|
+
transactionType: components["schemas"]["TransactionScenario"];
|
1085
|
+
subScenario?: components["schemas"]["TransactionSubScenario"];
|
1088
1086
|
authenticationType?: components["schemas"]["AuthenticationType"];
|
1089
1087
|
requestToPayState: components["schemas"]["TransactionRequestState"];
|
1090
|
-
} & {
|
1091
|
-
transactionType: unknown;
|
1092
1088
|
};
|
1093
1089
|
requestToPayTransferRequest: {
|
1094
1090
|
/** @description Transaction ID from the DFSP backend, used to reconcile transactions between the Switch and DFSP backend systems. */
|
@@ -7933,83 +7933,17 @@ export declare namespace Schemas {
|
|
7933
7933
|
description: string;
|
7934
7934
|
example: string;
|
7935
7935
|
};
|
7936
|
-
|
7937
|
-
title: string;
|
7938
|
-
type: string;
|
7939
|
-
description: string;
|
7940
|
-
properties: {
|
7941
|
-
scenario: {
|
7942
|
-
title: string;
|
7943
|
-
type: string;
|
7944
|
-
enum: string[];
|
7945
|
-
description: string;
|
7946
|
-
example: string;
|
7947
|
-
};
|
7948
|
-
subScenario: {
|
7949
|
-
title: string;
|
7950
|
-
type: string;
|
7951
|
-
pattern: string;
|
7952
|
-
description: string;
|
7953
|
-
example: string;
|
7954
|
-
};
|
7955
|
-
initiator: {
|
7956
|
-
title: string;
|
7957
|
-
type: string;
|
7958
|
-
enum: string[];
|
7959
|
-
description: string;
|
7960
|
-
example: string;
|
7961
|
-
};
|
7962
|
-
initiatorType: {
|
7963
|
-
title: string;
|
7964
|
-
type: string;
|
7965
|
-
enum: string[];
|
7966
|
-
description: string;
|
7967
|
-
example: string;
|
7968
|
-
};
|
7969
|
-
refundInfo: {
|
7970
|
-
title: string;
|
7971
|
-
type: string;
|
7972
|
-
description: string;
|
7973
|
-
properties: {
|
7974
|
-
originalTransactionId: {
|
7975
|
-
title: string;
|
7976
|
-
type: string;
|
7977
|
-
pattern: string;
|
7978
|
-
description: string;
|
7979
|
-
example: string;
|
7980
|
-
};
|
7981
|
-
refundReason: {
|
7982
|
-
title: string;
|
7983
|
-
type: string;
|
7984
|
-
minLength: number;
|
7985
|
-
maxLength: number;
|
7986
|
-
description: string;
|
7987
|
-
example: string;
|
7988
|
-
};
|
7989
|
-
};
|
7990
|
-
required: string[];
|
7991
|
-
};
|
7992
|
-
balanceOfPayments: {
|
7993
|
-
title: string;
|
7994
|
-
type: string;
|
7995
|
-
pattern: string;
|
7996
|
-
description: string;
|
7997
|
-
example: string;
|
7998
|
-
};
|
7999
|
-
};
|
8000
|
-
required: string[];
|
8001
|
-
};
|
8002
|
-
initiator: {
|
7936
|
+
transactionType: {
|
8003
7937
|
title: string;
|
8004
7938
|
type: string;
|
8005
7939
|
enum: string[];
|
8006
7940
|
description: string;
|
8007
7941
|
example: string;
|
8008
7942
|
};
|
8009
|
-
|
7943
|
+
subScenario: {
|
8010
7944
|
title: string;
|
8011
7945
|
type: string;
|
8012
|
-
|
7946
|
+
pattern: string;
|
8013
7947
|
description: string;
|
8014
7948
|
example: string;
|
8015
7949
|
};
|
@@ -8290,83 +8224,17 @@ export declare namespace Schemas {
|
|
8290
8224
|
description: string;
|
8291
8225
|
example: string;
|
8292
8226
|
};
|
8293
|
-
|
8294
|
-
title: string;
|
8295
|
-
type: string;
|
8296
|
-
description: string;
|
8297
|
-
properties: {
|
8298
|
-
scenario: {
|
8299
|
-
title: string;
|
8300
|
-
type: string;
|
8301
|
-
enum: string[];
|
8302
|
-
description: string;
|
8303
|
-
example: string;
|
8304
|
-
};
|
8305
|
-
subScenario: {
|
8306
|
-
title: string;
|
8307
|
-
type: string;
|
8308
|
-
pattern: string;
|
8309
|
-
description: string;
|
8310
|
-
example: string;
|
8311
|
-
};
|
8312
|
-
initiator: {
|
8313
|
-
title: string;
|
8314
|
-
type: string;
|
8315
|
-
enum: string[];
|
8316
|
-
description: string;
|
8317
|
-
example: string;
|
8318
|
-
};
|
8319
|
-
initiatorType: {
|
8320
|
-
title: string;
|
8321
|
-
type: string;
|
8322
|
-
enum: string[];
|
8323
|
-
description: string;
|
8324
|
-
example: string;
|
8325
|
-
};
|
8326
|
-
refundInfo: {
|
8327
|
-
title: string;
|
8328
|
-
type: string;
|
8329
|
-
description: string;
|
8330
|
-
properties: {
|
8331
|
-
originalTransactionId: {
|
8332
|
-
title: string;
|
8333
|
-
type: string;
|
8334
|
-
pattern: string;
|
8335
|
-
description: string;
|
8336
|
-
example: string;
|
8337
|
-
};
|
8338
|
-
refundReason: {
|
8339
|
-
title: string;
|
8340
|
-
type: string;
|
8341
|
-
minLength: number;
|
8342
|
-
maxLength: number;
|
8343
|
-
description: string;
|
8344
|
-
example: string;
|
8345
|
-
};
|
8346
|
-
};
|
8347
|
-
required: string[];
|
8348
|
-
};
|
8349
|
-
balanceOfPayments: {
|
8350
|
-
title: string;
|
8351
|
-
type: string;
|
8352
|
-
pattern: string;
|
8353
|
-
description: string;
|
8354
|
-
example: string;
|
8355
|
-
};
|
8356
|
-
};
|
8357
|
-
required: string[];
|
8358
|
-
};
|
8359
|
-
initiator: {
|
8227
|
+
transactionType: {
|
8360
8228
|
title: string;
|
8361
8229
|
type: string;
|
8362
8230
|
enum: string[];
|
8363
8231
|
description: string;
|
8364
8232
|
example: string;
|
8365
8233
|
};
|
8366
|
-
|
8234
|
+
subScenario: {
|
8367
8235
|
title: string;
|
8368
8236
|
type: string;
|
8369
|
-
|
8237
|
+
pattern: string;
|
8370
8238
|
description: string;
|
8371
8239
|
example: string;
|
8372
8240
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@mojaloop/api-snippets",
|
3
|
-
"version": "17.0.
|
3
|
+
"version": "17.0.4-snapshot.1",
|
4
4
|
"description": "Mojaloop API specification reusable snippets",
|
5
5
|
"main": "lib/index.js",
|
6
6
|
"types": "lib/index.d.ts",
|
@@ -67,8 +67,8 @@
|
|
67
67
|
],
|
68
68
|
"license": "Apache-2.0",
|
69
69
|
"dependencies": {
|
70
|
-
"@apidevtools/json-schema-ref-parser": "^9.1.
|
71
|
-
"commander": "^
|
70
|
+
"@apidevtools/json-schema-ref-parser": "^9.1.2",
|
71
|
+
"commander": "^10.0.1",
|
72
72
|
"jest-ts-auto-mock": "^2.1.0",
|
73
73
|
"js-yaml": "^4.1.0",
|
74
74
|
"json-refs": "^3.0.15",
|
@@ -82,35 +82,35 @@
|
|
82
82
|
"@types/responselike": "^1.0.0"
|
83
83
|
},
|
84
84
|
"devDependencies": {
|
85
|
-
"@commitlint/cli": "^17.
|
86
|
-
"@commitlint/config-conventional": "^17.
|
85
|
+
"@commitlint/cli": "^17.6.1",
|
86
|
+
"@commitlint/config-conventional": "^17.6.1",
|
87
87
|
"@redocly/openapi-cli": "^1.0.0-beta.94",
|
88
|
-
"@types/jest": "^29.
|
89
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
90
|
-
"@typescript-eslint/parser": "^5.
|
88
|
+
"@types/jest": "^29.5.1",
|
89
|
+
"@typescript-eslint/eslint-plugin": "^5.59.0",
|
90
|
+
"@typescript-eslint/parser": "^5.59.0",
|
91
91
|
"diff": "^5.1.0",
|
92
|
-
"eslint": "^8.
|
93
|
-
"eslint-config-prettier": "^8.
|
92
|
+
"eslint": "^8.38.0",
|
93
|
+
"eslint-config-prettier": "^8.8.0",
|
94
94
|
"eslint-config-standard": "^17.0.0",
|
95
|
-
"eslint-import-resolver-typescript": "^3.5.
|
95
|
+
"eslint-import-resolver-typescript": "^3.5.5",
|
96
96
|
"eslint-plugin-cucumber": "^2.0.0",
|
97
|
-
"eslint-plugin-import": "^2.
|
97
|
+
"eslint-plugin-import": "^2.27.5",
|
98
98
|
"eslint-plugin-node": "^11.1.0",
|
99
99
|
"eslint-plugin-prettier": "^4.2.1",
|
100
100
|
"eslint-plugin-promise": "^6.1.1",
|
101
101
|
"eslint-plugin-standard": "^5.0.0",
|
102
102
|
"husky": "4.3.8",
|
103
|
-
"jest": "^29.
|
104
|
-
"jest-junit": "^
|
105
|
-
"lint-staged": "^13.1
|
106
|
-
"npm-audit-resolver": "^3.0.0-
|
107
|
-
"npm-check-updates": "^16.
|
108
|
-
"prettier": "^2.8.
|
103
|
+
"jest": "^29.5.0",
|
104
|
+
"jest-junit": "^16.0.0",
|
105
|
+
"lint-staged": "^13.2.1",
|
106
|
+
"npm-audit-resolver": "^3.0.0-RC.0",
|
107
|
+
"npm-check-updates": "^16.10.8",
|
108
|
+
"prettier": "^2.8.7",
|
109
109
|
"standard-version": "^9.5.0",
|
110
110
|
"swagger-cli": "^4.0.4",
|
111
|
-
"ts-jest": "^29.0
|
111
|
+
"ts-jest": "^29.1.0",
|
112
112
|
"ts-node": "^10.9.1",
|
113
|
-
"tslib": "^2.
|
113
|
+
"tslib": "^2.5.0",
|
114
114
|
"typescript": "^4.9.4"
|
115
115
|
},
|
116
116
|
"publishConfig": {
|
@@ -6,9 +6,7 @@ required:
|
|
6
6
|
- amountType
|
7
7
|
- currency
|
8
8
|
- amount
|
9
|
-
-
|
10
|
-
- initiator
|
11
|
-
- initiatorType
|
9
|
+
- transactionType
|
12
10
|
properties:
|
13
11
|
homeTransactionId:
|
14
12
|
type: string
|
@@ -25,9 +23,8 @@ properties:
|
|
25
23
|
$ref: ./Currency.yaml
|
26
24
|
amount:
|
27
25
|
$ref: ./Amount.yaml
|
28
|
-
|
29
|
-
$ref: ./
|
30
|
-
|
31
|
-
$ref: ./
|
32
|
-
|
33
|
-
$ref: ./TransactionInitiatorType.yaml
|
26
|
+
transactionType:
|
27
|
+
$ref: ./TransactionScenario.yaml
|
28
|
+
subScenario:
|
29
|
+
$ref: ./TransactionSubScenario.yaml
|
30
|
+
|
@@ -21,12 +21,10 @@ properties:
|
|
21
21
|
$ref: ./Currency.yaml
|
22
22
|
amount:
|
23
23
|
$ref: ./Amount.yaml
|
24
|
-
|
25
|
-
$ref: ./
|
26
|
-
|
27
|
-
$ref: ./
|
28
|
-
initiatorType:
|
29
|
-
$ref: ./TransactionInitiatorType.yaml
|
24
|
+
transactionType:
|
25
|
+
$ref: ./TransactionScenario.yaml
|
26
|
+
subScenario:
|
27
|
+
$ref: ./TransactionSubScenario.yaml
|
30
28
|
authenticationType:
|
31
29
|
$ref: ./AuthenticationType.yaml
|
32
30
|
requestToPayState:
|