@fiado/api-invoker 5.36.0 → 5.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/retailCustomer/api/interfaces/IRetailCustomerBusinessApi.d.ts +1 -1
- package/bin/transactionProcessor/api/TransactionProcessorApi.d.ts +2 -1
- package/bin/transactionProcessor/api/TransactionProcessorApi.js +4 -0
- package/bin/transactionProcessor/api/interfaces/ITransactionProcessorApi.d.ts +7 -1
- package/package.json +1 -1
- package/src/retailCustomer/api/interfaces/IRetailCustomerBusinessApi.ts +1 -1
- package/src/transactionProcessor/api/TransactionProcessorApi.ts +10 -1
- package/src/transactionProcessor/api/interfaces/ITransactionProcessorApi.ts +12 -1
|
@@ -54,7 +54,7 @@ export interface IRetailCustomerBusinessApi {
|
|
|
54
54
|
/**
|
|
55
55
|
* PUT /private/customers/{customerId}/account-result?tenantId= — aterriza el resultado terminal de
|
|
56
56
|
* la apertura de cuenta async (D35). Solo acepta OPEN/FAILED (nunca el intermedio OPENING). OPEN
|
|
57
|
-
* llega con `
|
|
57
|
+
* llega con `pcfAccountLevel`; FAILED con `failReason`.
|
|
58
58
|
*
|
|
59
59
|
* @throws si el cliente no existe (`404 CUSTOMER_NOT_FOUND`).
|
|
60
60
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ITransactionProcessorApi } from "./interfaces/ITransactionProcessorApi.js";
|
|
2
2
|
import type { IHttpRequest } from "@fiado/http-client";
|
|
3
|
-
import { AuthorizeCollectorOrderRequest, AuthorizeCollectorOrderResponse, AuthorizeCollectorTransactionRequest, AuthorizeCreditCardPurchaseRequest, AuthorizeSpeiBankTransferNcRequest, AuthorizeSpeiMexBankTransferInRequest, AuthorizeRenewalPreAuthRequest, AuthorizeRenewalPreAuthResponse } from "@fiado/type-kit/bin/transactionProcessor/index.js";
|
|
3
|
+
import { AuthorizeCollectorOrderRequest, AuthorizeCollectorOrderResponse, AuthorizeCollectorTransactionRequest, AuthorizeCreditCardPurchaseRequest, AuthorizeSpeiBankTransferNcRequest, AuthorizeSpeiMexBankTransferInRequest, AuthorizeRenewalPreAuthRequest, AuthorizeRenewalPreAuthResponse, AuthorizeWelcomeBonusRequest, TransactionProcessorResponse } from "@fiado/type-kit/bin/transactionProcessor/index.js";
|
|
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";
|
|
@@ -24,5 +24,6 @@ export default class TransactionProcessorApi implements ITransactionProcessorApi
|
|
|
24
24
|
walletFundingGetLimit(request: GetWalletFundingLimitRequest): Promise<ApiGatewayResponse<GetWalletFundingLimitResponse>>;
|
|
25
25
|
creditBack(request: RemittanceCreditBackRequest): Promise<FiadoApiResponse<RemittanceCreditBackResponse>>;
|
|
26
26
|
authorizeCollectionMovement(request: AuthorizeCollectionMovementRequest): Promise<FiadoApiResponse<AuthorizeCollectionMovementResponse>>;
|
|
27
|
+
authorizeWelcomeBonus(request: AuthorizeWelcomeBonusRequest): Promise<FiadoApiResponse<TransactionProcessorResponse>>;
|
|
27
28
|
}
|
|
28
29
|
export {};
|
|
@@ -69,6 +69,10 @@ let TransactionProcessorApi = class TransactionProcessorApi {
|
|
|
69
69
|
const url = `${this.baseUrl}collection/authorize`;
|
|
70
70
|
return await this.httpRequest.post(url, request);
|
|
71
71
|
}
|
|
72
|
+
async authorizeWelcomeBonus(request) {
|
|
73
|
+
const url = `${this.baseUrl}bonus/authorize`;
|
|
74
|
+
return await this.httpRequest.post(url, request);
|
|
75
|
+
}
|
|
72
76
|
};
|
|
73
77
|
TransactionProcessorApi = __decorate([
|
|
74
78
|
injectable(),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
type FiadoApiResponse<T> = import("@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse.js").default<T>;
|
|
2
|
-
import { AuthorizeCollectorOrderRequest, AuthorizeCollectorOrderResponse, AuthorizeCollectorTransactionRequest, AuthorizeCreditCardPurchaseRequest, AuthorizeSpeiBankTransferNcRequest, AuthorizeSpeiMexBankTransferInRequest, AuthorizeRenewalPreAuthRequest, AuthorizeRenewalPreAuthResponse } from "@fiado/type-kit/bin/transactionProcessor/index.js";
|
|
2
|
+
import { AuthorizeCollectorOrderRequest, AuthorizeCollectorOrderResponse, AuthorizeCollectorTransactionRequest, AuthorizeCreditCardPurchaseRequest, AuthorizeSpeiBankTransferNcRequest, AuthorizeSpeiMexBankTransferInRequest, AuthorizeRenewalPreAuthRequest, AuthorizeRenewalPreAuthResponse, AuthorizeWelcomeBonusRequest, TransactionProcessorResponse } from "@fiado/type-kit/bin/transactionProcessor/index.js";
|
|
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";
|
|
@@ -54,5 +54,11 @@ export interface ITransactionProcessorApi {
|
|
|
54
54
|
* Idempotente por `executionId` (@IdempotencyController).
|
|
55
55
|
*/
|
|
56
56
|
authorizeCollectionMovement(request: AuthorizeCollectionMovementRequest): Promise<FiadoApiResponse<AuthorizeCollectionMovementResponse>>;
|
|
57
|
+
/**
|
|
58
|
+
* Acredita el bono de bienvenida de SureKeep en la wallet PagoConfiado del comprador.
|
|
59
|
+
* Backend: POST /transaction-processor/bonus/authorize (privado VPC).
|
|
60
|
+
* Idempotente por `idempotencyKey` (el `bonusId` del asiento).
|
|
61
|
+
*/
|
|
62
|
+
authorizeWelcomeBonus(request: AuthorizeWelcomeBonusRequest): Promise<FiadoApiResponse<TransactionProcessorResponse>>;
|
|
57
63
|
}
|
|
58
64
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
|
|
3
|
+
"version": "5.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",
|
|
@@ -67,7 +67,7 @@ export interface IRetailCustomerBusinessApi {
|
|
|
67
67
|
/**
|
|
68
68
|
* PUT /private/customers/{customerId}/account-result?tenantId= — aterriza el resultado terminal de
|
|
69
69
|
* la apertura de cuenta async (D35). Solo acepta OPEN/FAILED (nunca el intermedio OPENING). OPEN
|
|
70
|
-
* llega con `
|
|
70
|
+
* llega con `pcfAccountLevel`; FAILED con `failReason`.
|
|
71
71
|
*
|
|
72
72
|
* @throws si el cliente no existe (`404 CUSTOMER_NOT_FOUND`).
|
|
73
73
|
*/
|
|
@@ -8,7 +8,9 @@ import {
|
|
|
8
8
|
AuthorizeCreditCardPurchaseRequest, AuthorizeSpeiBankTransferNcRequest,
|
|
9
9
|
AuthorizeSpeiMexBankTransferInRequest,
|
|
10
10
|
AuthorizeRenewalPreAuthRequest,
|
|
11
|
-
AuthorizeRenewalPreAuthResponse
|
|
11
|
+
AuthorizeRenewalPreAuthResponse,
|
|
12
|
+
AuthorizeWelcomeBonusRequest,
|
|
13
|
+
TransactionProcessorResponse
|
|
12
14
|
} from "@fiado/type-kit/bin/transactionProcessor/index.js";
|
|
13
15
|
import { ApiGatewayResponse } from "@fiado/gateway-adapter";
|
|
14
16
|
import {
|
|
@@ -113,4 +115,11 @@ export default class TransactionProcessorApi implements ITransactionProcessorApi
|
|
|
113
115
|
const url = `${this.baseUrl}collection/authorize`;
|
|
114
116
|
return await this.httpRequest.post(url, request);
|
|
115
117
|
}
|
|
118
|
+
|
|
119
|
+
async authorizeWelcomeBonus(
|
|
120
|
+
request: AuthorizeWelcomeBonusRequest,
|
|
121
|
+
): Promise<FiadoApiResponse<TransactionProcessorResponse>> {
|
|
122
|
+
const url = `${this.baseUrl}bonus/authorize`;
|
|
123
|
+
return await this.httpRequest.post(url, request);
|
|
124
|
+
}
|
|
116
125
|
}
|
|
@@ -7,7 +7,9 @@ import {
|
|
|
7
7
|
AuthorizeSpeiBankTransferNcRequest,
|
|
8
8
|
AuthorizeSpeiMexBankTransferInRequest,
|
|
9
9
|
AuthorizeRenewalPreAuthRequest,
|
|
10
|
-
AuthorizeRenewalPreAuthResponse
|
|
10
|
+
AuthorizeRenewalPreAuthResponse,
|
|
11
|
+
AuthorizeWelcomeBonusRequest,
|
|
12
|
+
TransactionProcessorResponse
|
|
11
13
|
} from "@fiado/type-kit/bin/transactionProcessor/index.js";
|
|
12
14
|
import { ApiGatewayResponse } from "@fiado/gateway-adapter";
|
|
13
15
|
import {
|
|
@@ -101,4 +103,13 @@ export interface ITransactionProcessorApi {
|
|
|
101
103
|
authorizeCollectionMovement(
|
|
102
104
|
request: AuthorizeCollectionMovementRequest,
|
|
103
105
|
): Promise<FiadoApiResponse<AuthorizeCollectionMovementResponse>>;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Acredita el bono de bienvenida de SureKeep en la wallet PagoConfiado del comprador.
|
|
109
|
+
* Backend: POST /transaction-processor/bonus/authorize (privado VPC).
|
|
110
|
+
* Idempotente por `idempotencyKey` (el `bonusId` del asiento).
|
|
111
|
+
*/
|
|
112
|
+
authorizeWelcomeBonus(
|
|
113
|
+
request: AuthorizeWelcomeBonusRequest,
|
|
114
|
+
): Promise<FiadoApiResponse<TransactionProcessorResponse>>;
|
|
104
115
|
}
|