@fiado/type-kit 3.53.0 → 3.54.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.
|
@@ -12,15 +12,15 @@
|
|
|
12
12
|
*/
|
|
13
13
|
export declare class AuthorizeBenefitsMarketplaceTransactionRequest {
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
* (`MEX_TOPUP`, `MEX_SERVICE_PAYMENT`, …).
|
|
17
|
-
* en Fase 2 (ver doc §10).
|
|
15
|
+
* Id del producto del marketplace en `ProductCatalog_GT` del procesador
|
|
16
|
+
* (`MEX_TOPUP`, `MEX_SERVICE_PAYMENT`, `INTERNATIONAL_REMITTANCE`, …).
|
|
18
17
|
*
|
|
19
|
-
* El
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
18
|
+
* El marketplace es multi-país y multi-servicio, así que el prefijo `MEX_`
|
|
19
|
+
* NO es obligatorio (era una convención inicial sesgada a México). La regex
|
|
20
|
+
* solo exige UPPER_SNAKE para que el factory dinámico
|
|
21
|
+
* `TransactionProcessorFactory.getMarketplaceInstance` derive el token
|
|
22
|
+
* (`<X>` → `BenefitsMarketplace<X>TransactionService`, quitando `MEX_` si
|
|
23
|
+
* está) y falle con 400 en lugar de 500 ante valores fuera de convención.
|
|
24
24
|
*/
|
|
25
25
|
productCatalogId: string;
|
|
26
26
|
/**
|
|
@@ -30,8 +30,8 @@ __decorate([
|
|
|
30
30
|
(0, class_validator_1.IsString)(),
|
|
31
31
|
(0, class_validator_1.IsNotEmpty)(),
|
|
32
32
|
(0, class_validator_1.MaxLength)(64),
|
|
33
|
-
(0, class_validator_1.Matches)(/^
|
|
34
|
-
message: "productCatalogId debe
|
|
33
|
+
(0, class_validator_1.Matches)(/^[A-Z][A-Z0-9_]*$/, {
|
|
34
|
+
message: "productCatalogId debe ser UPPER_SNAKE (ej. INTERNATIONAL_REMITTANCE, MEX_TOPUP)",
|
|
35
35
|
}),
|
|
36
36
|
__metadata("design:type", String)
|
|
37
37
|
], AuthorizeBenefitsMarketplaceTransactionRequest.prototype, "productCatalogId", void 0);
|
package/package.json
CHANGED
|
@@ -26,21 +26,21 @@ import {
|
|
|
26
26
|
*/
|
|
27
27
|
export class AuthorizeBenefitsMarketplaceTransactionRequest {
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
30
|
-
* (`MEX_TOPUP`, `MEX_SERVICE_PAYMENT`, …).
|
|
31
|
-
* en Fase 2 (ver doc §10).
|
|
29
|
+
* Id del producto del marketplace en `ProductCatalog_GT` del procesador
|
|
30
|
+
* (`MEX_TOPUP`, `MEX_SERVICE_PAYMENT`, `INTERNATIONAL_REMITTANCE`, …).
|
|
32
31
|
*
|
|
33
|
-
* El
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
32
|
+
* El marketplace es multi-país y multi-servicio, así que el prefijo `MEX_`
|
|
33
|
+
* NO es obligatorio (era una convención inicial sesgada a México). La regex
|
|
34
|
+
* solo exige UPPER_SNAKE para que el factory dinámico
|
|
35
|
+
* `TransactionProcessorFactory.getMarketplaceInstance` derive el token
|
|
36
|
+
* (`<X>` → `BenefitsMarketplace<X>TransactionService`, quitando `MEX_` si
|
|
37
|
+
* está) y falle con 400 en lugar de 500 ante valores fuera de convención.
|
|
38
38
|
*/
|
|
39
39
|
@IsString()
|
|
40
40
|
@IsNotEmpty()
|
|
41
41
|
@MaxLength(64)
|
|
42
|
-
@Matches(/^
|
|
43
|
-
message: "productCatalogId debe
|
|
42
|
+
@Matches(/^[A-Z][A-Z0-9_]*$/, {
|
|
43
|
+
message: "productCatalogId debe ser UPPER_SNAKE (ej. INTERNATIONAL_REMITTANCE, MEX_TOPUP)",
|
|
44
44
|
})
|
|
45
45
|
productCatalogId!: string;
|
|
46
46
|
|