2023-06-22 09:36:43 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package treasurer;
|
|
|
|
|
|
|
|
import "google/protobuf/empty.proto";
|
|
|
|
import "treasurer/payment.model.proto";
|
|
|
|
|
|
|
|
option go_package = "./treasurer";
|
|
|
|
|
|
|
|
service TreasurerService {
|
|
|
|
rpc GetPaymentLinkBankCard(GetBankCardPaymentLinkRequest) returns (GetPaymentLinkResponse) {}
|
|
|
|
rpc GetPaymentLinkYooMoney(GetPaymentLinkBody) returns (GetPaymentLinkResponse) {}
|
2024-03-17 22:13:56 +00:00
|
|
|
rpc GetPaymentLinkSberPay(GetPaymentLinkBody) returns (GetPaymentLinkResponse) {}
|
2023-06-22 09:36:43 +00:00
|
|
|
rpc GetPaymentLinkTinkoff(GetPaymentLinkBody) returns (GetPaymentLinkResponse) {}
|
2024-03-17 22:13:56 +00:00
|
|
|
rpc GetPaymentLinkSberbankB2B(GetPaymentLinkBody) returns (GetPaymentLinkResponse) {}
|
2023-06-22 09:36:43 +00:00
|
|
|
rpc GetPaymentLinkSBP(GetPaymentLinkBody) returns (GetPaymentLinkResponse) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetBankCardPaymentLinkRequest {
|
|
|
|
MainPaymentSettings MainSettings = 1;
|
|
|
|
BankCardInformation BankCard = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetPaymentLinkBody {
|
|
|
|
MainPaymentSettings MainSettings = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetPhonePaymentLinkRequest {
|
|
|
|
MainPaymentSettings MainSettings = 1;
|
|
|
|
string Phone = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetLoginPaymentLinkRequest {
|
|
|
|
MainPaymentSettings MainSettings = 1;
|
|
|
|
string Login = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetB2BPaymentLinkRequest {
|
|
|
|
MainPaymentSettings MainSettings = 1;
|
|
|
|
string PaymentPurpose = 2;
|
|
|
|
google.protobuf.Empty VatData = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetPaymentLinkResponse {
|
|
|
|
string RedirectURL = 1;
|
|
|
|
}
|