@fiado/api-invoker 4.37.0 → 4.38.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/bin/index.d.ts +1 -0
- package/bin/index.js +1 -0
- package/bin/transactionProcessor/api/TransactionProcessorApi.d.ts +0 -2
- package/bin/transactionProcessor/api/TransactionProcessorApi.js +0 -4
- package/bin/transactionProcessor/api/interfaces/ITransactionProcessorApi.d.ts +0 -18
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/transactionProcessor/api/TransactionProcessorApi.ts +0 -8
- package/src/transactionProcessor/api/interfaces/ITransactionProcessorApi.ts +0 -21
package/bin/index.d.ts
CHANGED
package/bin/index.js
CHANGED
|
@@ -4,7 +4,6 @@ import { AuthorizeCollectorOrderRequest, AuthorizeCollectorOrderResponse, Author
|
|
|
4
4
|
import { ApiGatewayResponse } from "@fiado/gateway-adapter";
|
|
5
5
|
import { ValidateWalletFundingRequest, ValidateWalletFundingResponse, CreditWalletFundingRequest, CreditWalletFundingResponse, ReverseWalletFundingRequest, ReverseWalletFundingResponse, GetWalletFundingLimitRequest, GetWalletFundingLimitResponse } from "@fiado/type-kit/bin/walletFunding/index.js";
|
|
6
6
|
import { RemittanceCreditBackRequest, RemittanceCreditBackResponse } from "@fiado/type-kit/bin/remittance/index.js";
|
|
7
|
-
import { PublishFiadoTxRequest, PublishFiadoTxResponse } from "@fiado/type-kit/bin/transactionProcessor/index.js";
|
|
8
7
|
type ProcessUpdateLevelRequest = import("@fiado/type-kit/bin/transactionProcessor/dtos/ProcessUpdateLevelRequest.js").default;
|
|
9
8
|
type FiadoApiResponse<T> = import("@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse.js").default<T>;
|
|
10
9
|
export default class TransactionProcessorApi implements ITransactionProcessorApi {
|
|
@@ -23,6 +22,5 @@ export default class TransactionProcessorApi implements ITransactionProcessorApi
|
|
|
23
22
|
walletFundingReverse(request: ReverseWalletFundingRequest): Promise<ApiGatewayResponse<ReverseWalletFundingResponse>>;
|
|
24
23
|
walletFundingGetLimit(request: GetWalletFundingLimitRequest): Promise<ApiGatewayResponse<GetWalletFundingLimitResponse>>;
|
|
25
24
|
creditBack(request: RemittanceCreditBackRequest): Promise<FiadoApiResponse<RemittanceCreditBackResponse>>;
|
|
26
|
-
publishFiadoTx(request: PublishFiadoTxRequest): Promise<ApiGatewayResponse<PublishFiadoTxResponse>>;
|
|
27
25
|
}
|
|
28
26
|
export {};
|
|
@@ -65,10 +65,6 @@ let TransactionProcessorApi = class TransactionProcessorApi {
|
|
|
65
65
|
const url = `${this.baseUrl}remittance/credit-back`;
|
|
66
66
|
return await this.httpRequest.post(url, request);
|
|
67
67
|
}
|
|
68
|
-
async publishFiadoTx(request) {
|
|
69
|
-
const url = `${this.baseUrl}wallet-funding/publish`;
|
|
70
|
-
return await this.httpRequest.post(url, request);
|
|
71
|
-
}
|
|
72
68
|
};
|
|
73
69
|
TransactionProcessorApi = __decorate([
|
|
74
70
|
injectable(),
|
|
@@ -3,7 +3,6 @@ import { AuthorizeCollectorOrderRequest, AuthorizeCollectorOrderResponse, Author
|
|
|
3
3
|
import { ApiGatewayResponse } from "@fiado/gateway-adapter";
|
|
4
4
|
import { ValidateWalletFundingRequest, ValidateWalletFundingResponse, CreditWalletFundingRequest, CreditWalletFundingResponse, ReverseWalletFundingRequest, ReverseWalletFundingResponse, GetWalletFundingLimitRequest, GetWalletFundingLimitResponse } from "@fiado/type-kit/bin/walletFunding/index.js";
|
|
5
5
|
import { RemittanceCreditBackRequest, RemittanceCreditBackResponse } from "@fiado/type-kit/bin/remittance/index.js";
|
|
6
|
-
import { PublishFiadoTxRequest, PublishFiadoTxResponse } from "@fiado/type-kit/bin/transactionProcessor/index.js";
|
|
7
6
|
type ProcessUpdateLevelRequest = import("@fiado/type-kit/bin/transactionProcessor/dtos/ProcessUpdateLevelRequest.js").default;
|
|
8
7
|
export interface ITransactionProcessorApi {
|
|
9
8
|
authorizeTransaction(request: AuthorizeCreditCardPurchaseRequest): Promise<any>;
|
|
@@ -44,22 +43,5 @@ export interface ITransactionProcessorApi {
|
|
|
44
43
|
* Backend: POST /transaction-processor/remittance/credit-back (privado VPC).
|
|
45
44
|
*/
|
|
46
45
|
creditBack(request: RemittanceCreditBackRequest): Promise<FiadoApiResponse<RemittanceCreditBackResponse>>;
|
|
47
|
-
/**
|
|
48
|
-
* Publica el evento FiadoTx del wallet-funding cash-in al SQS
|
|
49
|
-
* TRANSACTION_QUEUE para que transaction-business persista la
|
|
50
|
-
* tupla EQ_CASH_SA en FiadoTx_GT.
|
|
51
|
-
*
|
|
52
|
-
* Ownership del SQS sigue en el processor (el settlement NO publica,
|
|
53
|
-
* solo ejecuta el TransactWriteItems atómico). Best-effort: status
|
|
54
|
-
* FAILED indica que sqs.sendMessage falló — el caller debe loggear
|
|
55
|
-
* y continuar; el reconciler T+0 del connector recupera gaps.
|
|
56
|
-
*
|
|
57
|
-
* Backend: POST /transaction-processor/wallet-funding/publish (privado VPC).
|
|
58
|
-
* Consumido por equality-connector (post-settlement OK) y por su
|
|
59
|
-
* FiadoTxGapReconcilerCron.
|
|
60
|
-
*
|
|
61
|
-
* Ver spec 15 §6.2.
|
|
62
|
-
*/
|
|
63
|
-
publishFiadoTx(request: PublishFiadoTxRequest): Promise<ApiGatewayResponse<PublishFiadoTxResponse>>;
|
|
64
46
|
}
|
|
65
47
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.38.0",
|
|
4
4
|
"description": "Sirve como un puente entre diferentes funciones lambda, facilitando la comunicación entre ellas a través de invocaciones http",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "bin/index.js",
|
package/src/index.ts
CHANGED
|
@@ -22,7 +22,6 @@ import {
|
|
|
22
22
|
GetWalletFundingLimitResponse,
|
|
23
23
|
} from "@fiado/type-kit/bin/walletFunding/index.js";
|
|
24
24
|
import { RemittanceCreditBackRequest, RemittanceCreditBackResponse } from "@fiado/type-kit/bin/remittance/index.js";
|
|
25
|
-
import { PublishFiadoTxRequest, PublishFiadoTxResponse } from "@fiado/type-kit/bin/transactionProcessor/index.js";
|
|
26
25
|
type ProcessUpdateLevelRequest = import("@fiado/type-kit/bin/transactionProcessor/dtos/ProcessUpdateLevelRequest.js").default;
|
|
27
26
|
type FiadoApiResponse<T> = import("@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse.js").default<T>;
|
|
28
27
|
|
|
@@ -103,11 +102,4 @@ export default class TransactionProcessorApi implements ITransactionProcessorApi
|
|
|
103
102
|
const url = `${this.baseUrl}remittance/credit-back`;
|
|
104
103
|
return await this.httpRequest.post(url, request);
|
|
105
104
|
}
|
|
106
|
-
|
|
107
|
-
async publishFiadoTx(
|
|
108
|
-
request: PublishFiadoTxRequest,
|
|
109
|
-
): Promise<ApiGatewayResponse<PublishFiadoTxResponse>> {
|
|
110
|
-
const url = `${this.baseUrl}wallet-funding/publish`;
|
|
111
|
-
return await this.httpRequest.post(url, request);
|
|
112
|
-
}
|
|
113
105
|
}
|
|
@@ -21,7 +21,6 @@ import {
|
|
|
21
21
|
GetWalletFundingLimitResponse,
|
|
22
22
|
} from "@fiado/type-kit/bin/walletFunding/index.js";
|
|
23
23
|
import { RemittanceCreditBackRequest, RemittanceCreditBackResponse } from "@fiado/type-kit/bin/remittance/index.js";
|
|
24
|
-
import { PublishFiadoTxRequest, PublishFiadoTxResponse } from "@fiado/type-kit/bin/transactionProcessor/index.js";
|
|
25
24
|
type ProcessUpdateLevelRequest = import("@fiado/type-kit/bin/transactionProcessor/dtos/ProcessUpdateLevelRequest.js").default;
|
|
26
25
|
|
|
27
26
|
export interface ITransactionProcessorApi {
|
|
@@ -85,24 +84,4 @@ export interface ITransactionProcessorApi {
|
|
|
85
84
|
creditBack(
|
|
86
85
|
request: RemittanceCreditBackRequest,
|
|
87
86
|
): Promise<FiadoApiResponse<RemittanceCreditBackResponse>>;
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Publica el evento FiadoTx del wallet-funding cash-in al SQS
|
|
91
|
-
* TRANSACTION_QUEUE para que transaction-business persista la
|
|
92
|
-
* tupla EQ_CASH_SA en FiadoTx_GT.
|
|
93
|
-
*
|
|
94
|
-
* Ownership del SQS sigue en el processor (el settlement NO publica,
|
|
95
|
-
* solo ejecuta el TransactWriteItems atómico). Best-effort: status
|
|
96
|
-
* FAILED indica que sqs.sendMessage falló — el caller debe loggear
|
|
97
|
-
* y continuar; el reconciler T+0 del connector recupera gaps.
|
|
98
|
-
*
|
|
99
|
-
* Backend: POST /transaction-processor/wallet-funding/publish (privado VPC).
|
|
100
|
-
* Consumido por equality-connector (post-settlement OK) y por su
|
|
101
|
-
* FiadoTxGapReconcilerCron.
|
|
102
|
-
*
|
|
103
|
-
* Ver spec 15 §6.2.
|
|
104
|
-
*/
|
|
105
|
-
publishFiadoTx(
|
|
106
|
-
request: PublishFiadoTxRequest,
|
|
107
|
-
): Promise<ApiGatewayResponse<PublishFiadoTxResponse>>;
|
|
108
87
|
}
|