@postpaybr/protos 1.1.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/package.json +28 -0
- package/src/account-entry.proto +86 -0
- package/src/address.proto +64 -0
- package/src/admin-card-verification.proto +90 -0
- package/src/administrator.proto +192 -0
- package/src/anticipation.proto +86 -0
- package/src/asset.proto +44 -0
- package/src/auth.proto +29 -0
- package/src/bank-account.proto +62 -0
- package/src/card-vault.proto +36 -0
- package/src/card-verification.proto +30 -0
- package/src/card.proto +138 -0
- package/src/charge-schedule.proto +22 -0
- package/src/charge.proto +610 -0
- package/src/context.proto +174 -0
- package/src/customer.proto +234 -0
- package/src/daily-balance.proto +32 -0
- package/src/document-verification.proto +111 -0
- package/src/email.proto +76 -0
- package/src/expo-push.proto +27 -0
- package/src/fee.proto +65 -0
- package/src/location.proto +40 -0
- package/src/notification.proto +207 -0
- package/src/order.proto +189 -0
- package/src/payable.proto +246 -0
- package/src/payer.proto +24 -0
- package/src/payment-calculator.proto +165 -0
- package/src/payment-card.proto +217 -0
- package/src/payment-gateway.proto +94 -0
- package/src/payment-pix.proto +115 -0
- package/src/receipt.proto +212 -0
- package/src/recipient-payment-gateway.proto +101 -0
- package/src/recipient.proto +237 -0
- package/src/role.proto +57 -0
- package/src/sms.proto +36 -0
- package/src/tax.proto +323 -0
- package/src/transfer.proto +206 -0
- package/src/two-factor.proto +67 -0
- package/src/typescript/account-entry.ts +177 -0
- package/src/typescript/address.ts +133 -0
- package/src/typescript/admin-card-verification.ts +181 -0
- package/src/typescript/administrator.ts +375 -0
- package/src/typescript/anticipation.ts +187 -0
- package/src/typescript/asset.ts +123 -0
- package/src/typescript/auth.ts +84 -0
- package/src/typescript/bank-account.ts +157 -0
- package/src/typescript/card-vault.ts +92 -0
- package/src/typescript/card-verification.ts +93 -0
- package/src/typescript/card.ts +283 -0
- package/src/typescript/charge-schedule.ts +86 -0
- package/src/typescript/charge.ts +930 -0
- package/src/typescript/context.ts +296 -0
- package/src/typescript/customer.ts +425 -0
- package/src/typescript/daily-balance.ts +94 -0
- package/src/typescript/document-verification.ts +219 -0
- package/src/typescript/email.ts +183 -0
- package/src/typescript/expo-push.ts +75 -0
- package/src/typescript/fee.ts +131 -0
- package/src/typescript/location.ts +96 -0
- package/src/typescript/notification.ts +372 -0
- package/src/typescript/order.ts +311 -0
- package/src/typescript/payable.ts +414 -0
- package/src/typescript/payer.ts +68 -0
- package/src/typescript/payment-calculator.ts +252 -0
- package/src/typescript/payment-card.ts +290 -0
- package/src/typescript/payment-gateway.ts +209 -0
- package/src/typescript/payment-pix.ts +170 -0
- package/src/typescript/receipt.ts +344 -0
- package/src/typescript/recipient-payment-gateway.ts +209 -0
- package/src/typescript/recipient.ts +413 -0
- package/src/typescript/role.ts +144 -0
- package/src/typescript/sms.ts +96 -0
- package/src/typescript/tax.ts +463 -0
- package/src/typescript/transfer.ts +260 -0
- package/src/typescript/two-factor.ts +177 -0
- package/src/typescript/user.ts +413 -0
- package/src/typescript/wallet.ts +63 -0
- package/src/user.proto +214 -0
- package/src/wallet.proto +18 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package cardVault;
|
|
4
|
+
|
|
5
|
+
service CardVaultService {
|
|
6
|
+
rpc getCardDetails(CardDetailsPayload) returns (CardDetailsResponse);
|
|
7
|
+
|
|
8
|
+
rpc deleteCard (DeleteCardPayload) returns (DeleteCardResponse);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
message CardDetailsPayload {
|
|
12
|
+
string token = 1;
|
|
13
|
+
string tokenCvv = 2;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
message CardDetailsResponse {
|
|
17
|
+
string cvv = 1;
|
|
18
|
+
string firstSix = 2;
|
|
19
|
+
string lastFour = 3;
|
|
20
|
+
optional string ccn = 4;
|
|
21
|
+
int32 expMonth = 5;
|
|
22
|
+
int32 expYear = 6;
|
|
23
|
+
string fullName = 7;
|
|
24
|
+
string cardType = 8;
|
|
25
|
+
string token = 9;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
message DeleteCardPayload {
|
|
30
|
+
string cardToken = 1;
|
|
31
|
+
string cvvToken = 2;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
message DeleteCardResponse {
|
|
35
|
+
bool success = 1;
|
|
36
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package cardVerification;
|
|
4
|
+
|
|
5
|
+
service CardVerificationService {
|
|
6
|
+
|
|
7
|
+
rpc CreateCardVerification (CreateCardVerificationRequest) returns (CreateCardVerificationResponse);
|
|
8
|
+
rpc CheckVerifyCardCode (CheckVerifyCardCodeRequest) returns (CheckVerifyCardCodeResponse);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
message CreateCardVerificationRequest {
|
|
13
|
+
string customerId = 1;
|
|
14
|
+
string cardId = 2;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
message CreateCardVerificationResponse {
|
|
18
|
+
string id = 1;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
message CheckVerifyCardCodeRequest {
|
|
22
|
+
string verificationId = 1;
|
|
23
|
+
double value = 2;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
message CheckVerifyCardCodeResponse {
|
|
27
|
+
int32 remainingAttempts = 1;
|
|
28
|
+
bool isSuccessfullyVerified = 2;
|
|
29
|
+
string cardId = 3;
|
|
30
|
+
}
|
package/src/card.proto
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package card;
|
|
4
|
+
|
|
5
|
+
service CardService {
|
|
6
|
+
rpc CreateCard(CreateCardRequest) returns (CreateCardResponse);
|
|
7
|
+
rpc UpdateCardNickname(UpdateCardNicknameRequest) returns (UpdateCardNicknameResponse);
|
|
8
|
+
rpc DeleteCard(DeleteCardRequest) returns (CardDetails);
|
|
9
|
+
rpc GetCardsByType(GetCardsByTypeRequest) returns (GetCardsByTypeResponse);
|
|
10
|
+
rpc GetVaultCardDetails(GetVaultCardDetailsRequest) returns (GetVaultCardDetailsResponse);
|
|
11
|
+
rpc GetAllCardsByCustomerId(GetAllCardsByCustomerIdRequest) returns (GetAllCardsByCustomerIdResponse);
|
|
12
|
+
rpc GetCardById(GetCardByIdRequest) returns (CardDetails);
|
|
13
|
+
rpc ValidateCardNumber(ValidateCardNumberRequest) returns (ValidateCardNumberResponse);
|
|
14
|
+
rpc ValidateCVV(ValidateCVVRequest) returns (ValidateCVVResponse);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
message CreateCardRequest {
|
|
18
|
+
string customerId = 1;
|
|
19
|
+
CardData cardData = 2;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
message CreateCardResponse {
|
|
23
|
+
string id = 1;
|
|
24
|
+
string shadowNumber = 2;
|
|
25
|
+
string brand = 3;
|
|
26
|
+
string expiration = 4;
|
|
27
|
+
bool isCredit = 5;
|
|
28
|
+
bool isDebit = 6;
|
|
29
|
+
optional string issuer = 7;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
message CardData {
|
|
33
|
+
string holderName = 1;
|
|
34
|
+
optional string nickname = 2;
|
|
35
|
+
string number = 3;
|
|
36
|
+
string expiration = 4;
|
|
37
|
+
string cvv = 5;
|
|
38
|
+
bool isCreditCard = 6;
|
|
39
|
+
bool isDebitCard = 7;
|
|
40
|
+
string associatedAddressId = 8;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
message UpdateCardNicknameRequest {
|
|
44
|
+
string customerId = 1;
|
|
45
|
+
string cardId = 2;
|
|
46
|
+
string nickname = 3;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
message UpdateCardNicknameResponse {
|
|
50
|
+
string id = 1;
|
|
51
|
+
optional string nickname = 2;
|
|
52
|
+
string brand = 3;
|
|
53
|
+
string shadowNumber = 4;
|
|
54
|
+
string vaultToken = 5;
|
|
55
|
+
string vaultTokenCvv = 6;
|
|
56
|
+
string expiration = 7;
|
|
57
|
+
bool isCredit = 8;
|
|
58
|
+
bool isDebit = 9;
|
|
59
|
+
bool isDisabled = 10;
|
|
60
|
+
bool isVerified = 11;
|
|
61
|
+
string customerId = 12;
|
|
62
|
+
string addressId = 13;
|
|
63
|
+
optional string issuer = 14;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
message DeleteCardRequest {
|
|
67
|
+
string cardId = 1;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
message GetCardsByTypeRequest {
|
|
71
|
+
string customerId = 1;
|
|
72
|
+
string type = 2;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
message GetCardsByTypeResponse {
|
|
76
|
+
repeated CardDetails cards = 1;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
message CardDetails {
|
|
80
|
+
string id = 1;
|
|
81
|
+
optional string nickname = 2;
|
|
82
|
+
string brand = 3;
|
|
83
|
+
string shadowNumber = 4;
|
|
84
|
+
string vaultToken = 5;
|
|
85
|
+
string vaultTokenCvv = 6;
|
|
86
|
+
string expiration = 7;
|
|
87
|
+
bool isCredit = 8;
|
|
88
|
+
bool isDebit = 9;
|
|
89
|
+
bool isDisabled = 10;
|
|
90
|
+
bool isVerified = 11;
|
|
91
|
+
string customerId = 12;
|
|
92
|
+
string addressId = 13;
|
|
93
|
+
optional string issuer = 14;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
message GetVaultCardDetailsRequest {
|
|
97
|
+
string customerId = 1;
|
|
98
|
+
string cardId = 2;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
message GetVaultCardDetailsResponse {
|
|
102
|
+
string token = 1;
|
|
103
|
+
string cvv = 2;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
message GetAllCardsByCustomerIdRequest {
|
|
107
|
+
string customerId = 1;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
message GetAllCardsByCustomerIdResponse {
|
|
111
|
+
repeated CardDetails cards = 1;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
message GetCardByIdRequest {
|
|
115
|
+
string id = 1;
|
|
116
|
+
optional bool includeVaultTokens = 2;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
message ValidateCardNumberRequest {
|
|
120
|
+
string cardNumber = 1;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
message ValidateCardNumberResponse {
|
|
124
|
+
bool isValid = 1;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
message ValidateCVVRequest {
|
|
128
|
+
string cardId = 1;
|
|
129
|
+
string cvv = 2;
|
|
130
|
+
string customerId = 3;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
message ValidateCVVResponse {
|
|
134
|
+
bool isValid = 1;
|
|
135
|
+
int32 remainingAttempts = 2;
|
|
136
|
+
bool isBlocked = 3;
|
|
137
|
+
optional string blockedUntil = 4;
|
|
138
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package chargeSchedule;
|
|
4
|
+
|
|
5
|
+
service ChargeScheduleService {
|
|
6
|
+
rpc CreateChargeSchedule(CreateChargeScheduleRequest) returns (CreateChargeScheduleResponse);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
message CreateChargeScheduleRequest {
|
|
10
|
+
string chargeId = 1;
|
|
11
|
+
string executionDate = 2;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
message CreateChargeScheduleResponse {
|
|
15
|
+
ChargeSchedule chargeSchedule = 1;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
message ChargeSchedule {
|
|
19
|
+
string id = 1;
|
|
20
|
+
string executionDate = 2;
|
|
21
|
+
bool isExecuted = 3;
|
|
22
|
+
}
|