opf-validator 0.0.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/README.md +143 -0
- package/dist/consent/index.d.ts +9 -0
- package/dist/consent/index.d.ts.map +1 -0
- package/dist/consent/index.js +12 -0
- package/dist/consent/index.js.map +1 -0
- package/dist/consent/successResponses/index.d.ts +89 -0
- package/dist/consent/successResponses/index.d.ts.map +1 -0
- package/dist/consent/successResponses/index.js +6 -0
- package/dist/consent/successResponses/index.js.map +1 -0
- package/dist/consent/validators/createConsent.d.ts +31 -0
- package/dist/consent/validators/createConsent.d.ts.map +1 -0
- package/dist/consent/validators/createConsent.js +205 -0
- package/dist/consent/validators/createConsent.js.map +1 -0
- package/dist/consent/validators/createConsentExtensions.d.ts +33 -0
- package/dist/consent/validators/createConsentExtensions.d.ts.map +1 -0
- package/dist/consent/validators/createConsentExtensions.js +193 -0
- package/dist/consent/validators/createConsentExtensions.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +60 -0
- package/dist/index.js.map +1 -0
- package/dist/payments/index.d.ts +11 -0
- package/dist/payments/index.d.ts.map +1 -0
- package/dist/payments/index.js +18 -0
- package/dist/payments/index.js.map +1 -0
- package/dist/payments/successResponses/index.d.ts +129 -0
- package/dist/payments/successResponses/index.d.ts.map +1 -0
- package/dist/payments/successResponses/index.js +6 -0
- package/dist/payments/successResponses/index.js.map +1 -0
- package/dist/payments/validators/createPaymentConsent.d.ts +66 -0
- package/dist/payments/validators/createPaymentConsent.d.ts.map +1 -0
- package/dist/payments/validators/createPaymentConsent.js +508 -0
- package/dist/payments/validators/createPaymentConsent.js.map +1 -0
- package/dist/payments/validators/createPixPayment.d.ts +35 -0
- package/dist/payments/validators/createPixPayment.d.ts.map +1 -0
- package/dist/payments/validators/createPixPayment.js +342 -0
- package/dist/payments/validators/createPixPayment.js.map +1 -0
- package/dist/payments/validators/patchPixPayment.d.ts +40 -0
- package/dist/payments/validators/patchPixPayment.d.ts.map +1 -0
- package/dist/payments/validators/patchPixPayment.js +191 -0
- package/dist/payments/validators/patchPixPayment.js.map +1 -0
- package/dist/recurring-payments/index.d.ts +13 -0
- package/dist/recurring-payments/index.d.ts.map +1 -0
- package/dist/recurring-payments/index.js +17 -0
- package/dist/recurring-payments/index.js.map +1 -0
- package/dist/recurring-payments/successResponses/index.d.ts +175 -0
- package/dist/recurring-payments/successResponses/index.d.ts.map +1 -0
- package/dist/recurring-payments/successResponses/index.js +6 -0
- package/dist/recurring-payments/successResponses/index.js.map +1 -0
- package/dist/recurring-payments/validators/createRecurringConsent.d.ts +96 -0
- package/dist/recurring-payments/validators/createRecurringConsent.d.ts.map +1 -0
- package/dist/recurring-payments/validators/createRecurringConsent.js +663 -0
- package/dist/recurring-payments/validators/createRecurringConsent.js.map +1 -0
- package/dist/recurring-payments/validators/createRecurringRetryPixPayment.d.ts +19 -0
- package/dist/recurring-payments/validators/createRecurringRetryPixPayment.d.ts.map +1 -0
- package/dist/recurring-payments/validators/createRecurringRetryPixPayment.js +41 -0
- package/dist/recurring-payments/validators/createRecurringRetryPixPayment.js.map +1 -0
- package/dist/recurring-payments/validators/patchPixPayment.d.ts +38 -0
- package/dist/recurring-payments/validators/patchPixPayment.d.ts.map +1 -0
- package/dist/recurring-payments/validators/patchPixPayment.js +123 -0
- package/dist/recurring-payments/validators/patchPixPayment.js.map +1 -0
- package/dist/recurring-payments/validators/patchRecurringConsent.d.ts +87 -0
- package/dist/recurring-payments/validators/patchRecurringConsent.d.ts.map +1 -0
- package/dist/recurring-payments/validators/patchRecurringConsent.js +555 -0
- package/dist/recurring-payments/validators/patchRecurringConsent.js.map +1 -0
- package/dist/utils/openFinanceErrors.d.ts +84 -0
- package/dist/utils/openFinanceErrors.d.ts.map +1 -0
- package/dist/utils/openFinanceErrors.js +85 -0
- package/dist/utils/openFinanceErrors.js.map +1 -0
- package/dist/utils/paymentErrors.d.ts +9 -0
- package/dist/utils/paymentErrors.d.ts.map +1 -0
- package/dist/utils/paymentErrors.js +13 -0
- package/dist/utils/paymentErrors.js.map +1 -0
- package/dist/utils/successResponses.d.ts +52 -0
- package/dist/utils/successResponses.d.ts.map +1 -0
- package/dist/utils/successResponses.js +6 -0
- package/dist/utils/successResponses.js.map +1 -0
- package/dist/utils/validateHeaderParameters.d.ts +51 -0
- package/dist/utils/validateHeaderParameters.d.ts.map +1 -0
- package/dist/utils/validateHeaderParameters.js +142 -0
- package/dist/utils/validateHeaderParameters.js.map +1 -0
- package/dist/utils/validationHelpers.d.ts +89 -0
- package/dist/utils/validationHelpers.d.ts.map +1 -0
- package/dist/utils/validationHelpers.js +376 -0
- package/dist/utils/validationHelpers.js.map +1 -0
- package/package.json +20 -0
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interfaces de Sucesso para Respostas de Recurring Payments
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Resposta de sucesso para POST /recurring-consents (CreateRecurringConsent)
|
|
6
|
+
*/
|
|
7
|
+
export interface CreateRecurringConsentSuccessResponse {
|
|
8
|
+
data: {
|
|
9
|
+
recurringConsentId: string;
|
|
10
|
+
creationDateTime: string;
|
|
11
|
+
status: string;
|
|
12
|
+
statusUpdateDateTime: string;
|
|
13
|
+
permissions: string[];
|
|
14
|
+
recurringConfiguration: {
|
|
15
|
+
frequency: string;
|
|
16
|
+
frequencyAdditionalInfo?: string;
|
|
17
|
+
startDateTime?: string;
|
|
18
|
+
endDateTime?: string;
|
|
19
|
+
};
|
|
20
|
+
loggedUser?: {
|
|
21
|
+
document: {
|
|
22
|
+
identification: string;
|
|
23
|
+
rel: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
links?: {
|
|
28
|
+
self: string;
|
|
29
|
+
};
|
|
30
|
+
meta?: {
|
|
31
|
+
requestDateTime: string;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Resposta de sucesso para GET /recurring-consents/:recurringConsentId (GetRecurringConsent)
|
|
36
|
+
*/
|
|
37
|
+
export interface GetRecurringConsentSuccessResponse {
|
|
38
|
+
data: {
|
|
39
|
+
recurringConsentId: string;
|
|
40
|
+
creationDateTime: string;
|
|
41
|
+
status: string;
|
|
42
|
+
statusUpdateDateTime: string;
|
|
43
|
+
permissions: string[];
|
|
44
|
+
recurringConfiguration: {
|
|
45
|
+
frequency: string;
|
|
46
|
+
frequencyAdditionalInfo?: string;
|
|
47
|
+
startDateTime?: string;
|
|
48
|
+
endDateTime?: string;
|
|
49
|
+
};
|
|
50
|
+
loggedUser?: {
|
|
51
|
+
document: {
|
|
52
|
+
identification: string;
|
|
53
|
+
rel: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
links?: {
|
|
58
|
+
self: string;
|
|
59
|
+
};
|
|
60
|
+
meta?: {
|
|
61
|
+
requestDateTime: string;
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Resposta de sucesso para PATCH /recurring-consents/:recurringConsentId (PatchRecurringConsent)
|
|
66
|
+
*/
|
|
67
|
+
export interface PatchRecurringConsentSuccessResponse {
|
|
68
|
+
data: {
|
|
69
|
+
recurringConsentId: string;
|
|
70
|
+
status: string;
|
|
71
|
+
statusUpdateDateTime: string;
|
|
72
|
+
permissions?: string[];
|
|
73
|
+
};
|
|
74
|
+
links?: {
|
|
75
|
+
self: string;
|
|
76
|
+
};
|
|
77
|
+
meta?: {
|
|
78
|
+
requestDateTime: string;
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Resposta de sucesso para POST /recurring-pix-payments (CreateRecurringPixPayment)
|
|
83
|
+
*/
|
|
84
|
+
export interface CreateRecurringPixPaymentSuccessResponse {
|
|
85
|
+
data: {
|
|
86
|
+
paymentId: string;
|
|
87
|
+
endToEndId: string;
|
|
88
|
+
consentId: string;
|
|
89
|
+
creationDateTime: string;
|
|
90
|
+
status: string;
|
|
91
|
+
statusUpdateDateTime: string;
|
|
92
|
+
amount: string;
|
|
93
|
+
currency: string;
|
|
94
|
+
};
|
|
95
|
+
links?: {
|
|
96
|
+
self: string;
|
|
97
|
+
};
|
|
98
|
+
meta?: {
|
|
99
|
+
requestDateTime: string;
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Resposta de sucesso para GET /recurring-pix-payments/:paymentId (GetRecurringPixPayment)
|
|
104
|
+
*/
|
|
105
|
+
export interface GetRecurringPixPaymentSuccessResponse {
|
|
106
|
+
data: {
|
|
107
|
+
paymentId: string;
|
|
108
|
+
endToEndId: string;
|
|
109
|
+
consentId: string;
|
|
110
|
+
creationDateTime: string;
|
|
111
|
+
status: string;
|
|
112
|
+
statusUpdateDateTime: string;
|
|
113
|
+
amount: string;
|
|
114
|
+
currency: string;
|
|
115
|
+
creditorAccount?: {
|
|
116
|
+
ispb: string;
|
|
117
|
+
issuer?: string;
|
|
118
|
+
number: string;
|
|
119
|
+
accountType: string;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
links?: {
|
|
123
|
+
self: string;
|
|
124
|
+
};
|
|
125
|
+
meta?: {
|
|
126
|
+
requestDateTime: string;
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Resposta de sucesso para POST /recurring-pix-payments/:paymentId/retry (CreateRecurringRetryPixPayment)
|
|
131
|
+
*/
|
|
132
|
+
export interface CreateRecurringRetryPixPaymentSuccessResponse {
|
|
133
|
+
data: {
|
|
134
|
+
paymentId: string;
|
|
135
|
+
endToEndId: string;
|
|
136
|
+
consentId: string;
|
|
137
|
+
creationDateTime: string;
|
|
138
|
+
status: string;
|
|
139
|
+
statusUpdateDateTime: string;
|
|
140
|
+
};
|
|
141
|
+
links?: {
|
|
142
|
+
self: string;
|
|
143
|
+
};
|
|
144
|
+
meta?: {
|
|
145
|
+
requestDateTime: string;
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Resposta de sucesso para PATCH /recurring-pix-payments/:paymentId (PatchRecurringPixPayment)
|
|
150
|
+
*/
|
|
151
|
+
export interface PatchRecurringPixPaymentSuccessResponse {
|
|
152
|
+
data: {
|
|
153
|
+
paymentId: string;
|
|
154
|
+
status: string;
|
|
155
|
+
statusUpdateDateTime: string;
|
|
156
|
+
cancellation?: {
|
|
157
|
+
cancelledAt: string;
|
|
158
|
+
cancelledBy: {
|
|
159
|
+
document: {
|
|
160
|
+
identification: string;
|
|
161
|
+
rel: string;
|
|
162
|
+
};
|
|
163
|
+
};
|
|
164
|
+
reason: string;
|
|
165
|
+
cancelledFrom: string;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
links?: {
|
|
169
|
+
self: string;
|
|
170
|
+
};
|
|
171
|
+
meta?: {
|
|
172
|
+
requestDateTime: string;
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/recurring-payments/successResponses/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,WAAW,qCAAqC;IACpD,IAAI,EAAE;QACJ,kBAAkB,EAAE,MAAM,CAAC;QAC3B,gBAAgB,EAAE,MAAM,CAAC;QACzB,MAAM,EAAE,MAAM,CAAC;QACf,oBAAoB,EAAE,MAAM,CAAC;QAC7B,WAAW,EAAE,MAAM,EAAE,CAAC;QACtB,sBAAsB,EAAE;YACtB,SAAS,EAAE,MAAM,CAAC;YAClB,uBAAuB,CAAC,EAAE,MAAM,CAAC;YACjC,aAAa,CAAC,EAAE,MAAM,CAAC;YACvB,WAAW,CAAC,EAAE,MAAM,CAAC;SACtB,CAAC;QACF,UAAU,CAAC,EAAE;YACX,QAAQ,EAAE;gBACR,cAAc,EAAE,MAAM,CAAC;gBAC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AAM,CAAC;KAC9B,CAAC;IACF,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,IAAI,CAAC,EAAE;QACL,eAAe,EAAE,MAAM,CAAC;KACzB,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,uCAAuC;IACtD,IAAI,EAAE;QACJ,SAAS,EAAE,MAAM,CAAC;QAClB,MAAM,EAAE,MAAM,CAAC;QACf,oBAAoB,EAAE,MAAM,CAAC;QAC7B,YAAY,CAAC,EAAE;YACb,WAAW,EAAE,MAAM,CAAC;YACpB,WAAW,EAAE;gBACX,QAAQ,EAAE;oBACR,cAAc,EAAE,MAAM,CAAC;oBACvB,GAAG,EAAE,MAAM,CAAC;iBACb,CAAC;aACH,CAAC;YACF,MAAM,EAAE,MAAM,CAAC;YACf,aAAa,EAAE,MAAM,CAAC;SACvB,CAAC;KACH,CAAC;IACF,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,IAAI,CAAC,EAAE;QACL,eAAe,EAAE,MAAM,CAAC;KACzB,CAAC;CACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/recurring-payments/successResponses/index.ts"],"names":[],"mappings":";AAAA;;GAEG"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Validações para CreateRecurringConsent
|
|
3
|
+
* Segue as regras especificadas no Open Finance Brasil - API de Pagamentos Automáticos
|
|
4
|
+
*/
|
|
5
|
+
import { ValidationResult } from "../../utils/openFinanceErrors";
|
|
6
|
+
/**
|
|
7
|
+
* Interface para LoggedUser
|
|
8
|
+
*/
|
|
9
|
+
interface LoggedUser {
|
|
10
|
+
document: {
|
|
11
|
+
identification: string;
|
|
12
|
+
rel: string;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Interface para BusinessEntity
|
|
17
|
+
*/
|
|
18
|
+
interface BusinessEntity {
|
|
19
|
+
document: {
|
|
20
|
+
identification: string;
|
|
21
|
+
rel: string;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Interface para conta de débito
|
|
26
|
+
*/
|
|
27
|
+
interface DebtorAccount {
|
|
28
|
+
ispb: string;
|
|
29
|
+
issuer?: string;
|
|
30
|
+
number: string;
|
|
31
|
+
accountType: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Interface para recebedor (creditor)
|
|
35
|
+
*/
|
|
36
|
+
interface Creditor {
|
|
37
|
+
personType: string;
|
|
38
|
+
cpfCnpj: string;
|
|
39
|
+
name: string;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Interface para configuração de Pix Automático
|
|
43
|
+
*/
|
|
44
|
+
interface AutomaticRecurringConfig {
|
|
45
|
+
automatic: {
|
|
46
|
+
contractId: string;
|
|
47
|
+
interval: string;
|
|
48
|
+
contractDebtor: {
|
|
49
|
+
name: string;
|
|
50
|
+
document: {
|
|
51
|
+
identification: string;
|
|
52
|
+
rel: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
isRetryAccepted: boolean;
|
|
56
|
+
referenceStartDate: string;
|
|
57
|
+
fixedAmount?: string;
|
|
58
|
+
maximumVariableAmount?: string;
|
|
59
|
+
minimumVariableAmount?: string;
|
|
60
|
+
firstPayment?: {
|
|
61
|
+
type: string;
|
|
62
|
+
date: string;
|
|
63
|
+
currency: string;
|
|
64
|
+
amount: string;
|
|
65
|
+
creditorAccount: {
|
|
66
|
+
ispb: string;
|
|
67
|
+
number: string;
|
|
68
|
+
accountType: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Interface para CreateRecurringConsent
|
|
75
|
+
*/
|
|
76
|
+
interface CreateRecurringConsentPayload {
|
|
77
|
+
data: {
|
|
78
|
+
loggedUser: LoggedUser;
|
|
79
|
+
businessEntity?: BusinessEntity;
|
|
80
|
+
creditors: Creditor[];
|
|
81
|
+
expirationDateTime?: string;
|
|
82
|
+
additionalInformation?: string;
|
|
83
|
+
debtorAccount?: DebtorAccount;
|
|
84
|
+
recurringConfiguration: AutomaticRecurringConfig | any;
|
|
85
|
+
journey?: {
|
|
86
|
+
isLinked: boolean;
|
|
87
|
+
linkId: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Valida o payload de criação de consentimento de pagamento recorrente
|
|
93
|
+
*/
|
|
94
|
+
declare function validateCreateRecurringConsent(payload: any): ValidationResult;
|
|
95
|
+
export { validateCreateRecurringConsent, CreateRecurringConsentPayload, };
|
|
96
|
+
//# sourceMappingURL=createRecurringConsent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createRecurringConsent.d.ts","sourceRoot":"","sources":["../../../src/recurring-payments/validators/createRecurringConsent.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAEL,gBAAgB,EAGjB,MAAM,+BAA+B,CAAC;AAsBvC;;GAEG;AACH,UAAU,UAAU;IAClB,QAAQ,EAAE;QACR,cAAc,EAAE,MAAM,CAAC;QACvB,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;CACH;AAED;;GAEG;AACH,UAAU,cAAc;IACtB,QAAQ,EAAE;QACR,cAAc,EAAE,MAAM,CAAC;QACvB,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;CACH;AAED;;GAEG;AACH,UAAU,aAAa;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,UAAU,QAAQ;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC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