@mojaloop/api-snippets 17.0.4-snapshot.0 → 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.
@@ -2078,7 +2078,7 @@ components:
2078
2078
  amount:
2079
2079
  $ref: '#/components/schemas/Amount'
2080
2080
  transactionType:
2081
- $ref: '#/components/schemas/transferTransactionType'
2081
+ $ref: '#/components/schemas/TransactionScenario'
2082
2082
  subScenario:
2083
2083
  $ref: '#/components/schemas/TransactionSubScenario'
2084
2084
  AuthenticationType:
@@ -2134,7 +2134,7 @@ components:
2134
2134
  amount:
2135
2135
  $ref: '#/components/schemas/Amount'
2136
2136
  transactionType:
2137
- $ref: '#/components/schemas/transferTransactionType'
2137
+ $ref: '#/components/schemas/TransactionScenario'
2138
2138
  subScenario:
2139
2139
  $ref: '#/components/schemas/TransactionSubScenario'
2140
2140
  authenticationType:
@@ -15335,12 +15335,17 @@
15335
15335
  "example": "123.45"
15336
15336
  },
15337
15337
  "transactionType": {
15338
- "title": "transferTransactionType",
15338
+ "title": "TransactionScenario",
15339
15339
  "type": "string",
15340
15340
  "enum": [
15341
- "TRANSFER"
15341
+ "DEPOSIT",
15342
+ "WITHDRAWAL",
15343
+ "TRANSFER",
15344
+ "PAYMENT",
15345
+ "REFUND"
15342
15346
  ],
15343
- "description": "Type of transaction."
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"
15344
15349
  },
15345
15350
  "subScenario": {
15346
15351
  "title": "TransactionSubScenario",
@@ -15853,12 +15858,17 @@
15853
15858
  "example": "123.45"
15854
15859
  },
15855
15860
  "transactionType": {
15856
- "title": "transferTransactionType",
15861
+ "title": "TransactionScenario",
15857
15862
  "type": "string",
15858
15863
  "enum": [
15859
- "TRANSFER"
15864
+ "DEPOSIT",
15865
+ "WITHDRAWAL",
15866
+ "TRANSFER",
15867
+ "PAYMENT",
15868
+ "REFUND"
15860
15869
  ],
15861
- "description": "Type of transaction."
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"
15862
15872
  },
15863
15873
  "subScenario": {
15864
15874
  "title": "TransactionSubScenario",
@@ -1050,7 +1050,7 @@ export interface components {
1050
1050
  amountType: components["schemas"]["AmountType"];
1051
1051
  currency: components["schemas"]["Currency"];
1052
1052
  amount: components["schemas"]["Amount"];
1053
- transactionType: components["schemas"]["transferTransactionType"];
1053
+ transactionType: components["schemas"]["TransactionScenario"];
1054
1054
  subScenario?: components["schemas"]["TransactionSubScenario"];
1055
1055
  };
1056
1056
  /**
@@ -1081,7 +1081,7 @@ export interface components {
1081
1081
  amountType: components["schemas"]["AmountType"];
1082
1082
  currency: components["schemas"]["Currency"];
1083
1083
  amount: components["schemas"]["Amount"];
1084
- transactionType: components["schemas"]["transferTransactionType"];
1084
+ transactionType: components["schemas"]["TransactionScenario"];
1085
1085
  subScenario?: components["schemas"]["TransactionSubScenario"];
1086
1086
  authenticationType?: components["schemas"]["AuthenticationType"];
1087
1087
  requestToPayState: components["schemas"]["TransactionRequestState"];
@@ -7938,6 +7938,7 @@ export declare namespace Schemas {
7938
7938
  type: string;
7939
7939
  enum: string[];
7940
7940
  description: string;
7941
+ example: string;
7941
7942
  };
7942
7943
  subScenario: {
7943
7944
  title: string;
@@ -8228,6 +8229,7 @@ export declare namespace Schemas {
8228
8229
  type: string;
8229
8230
  enum: string[];
8230
8231
  description: string;
8232
+ example: string;
8231
8233
  };
8232
8234
  subScenario: {
8233
8235
  title: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mojaloop/api-snippets",
3
- "version": "17.0.4-snapshot.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",
@@ -24,7 +24,7 @@ properties:
24
24
  amount:
25
25
  $ref: ./Amount.yaml
26
26
  transactionType:
27
- $ref: ./transferTransactionType.yaml
27
+ $ref: ./TransactionScenario.yaml
28
28
  subScenario:
29
29
  $ref: ./TransactionSubScenario.yaml
30
30
 
@@ -22,7 +22,7 @@ properties:
22
22
  amount:
23
23
  $ref: ./Amount.yaml
24
24
  transactionType:
25
- $ref: ./transferTransactionType.yaml
25
+ $ref: ./TransactionScenario.yaml
26
26
  subScenario:
27
27
  $ref: ./TransactionSubScenario.yaml
28
28
  authenticationType: