neq quotation definition + priced_at field
This commit is contained in:
@@ -4,18 +4,17 @@ package payments.methods.v1;
|
||||
|
||||
option go_package = "github.com/tech/sendico/pkg/proto/payments/methods/v1;methodsv1";
|
||||
|
||||
import "google/protobuf/wrappers.proto";
|
||||
|
||||
import "common/pagination/v2/cursor.proto";
|
||||
import "api/proto/common/pagination/v2/cursor.proto";
|
||||
import "api/proto/payments/endpoint/v1/endpoint.proto";
|
||||
|
||||
message CreatePaymentMethodRequest {
|
||||
string account_ref = 1;
|
||||
string organization_ref = 2;
|
||||
bytes payment_method_json = 3;
|
||||
payments.endpoint.v1.PaymentMethod payment_method = 3;
|
||||
}
|
||||
|
||||
message CreatePaymentMethodResponse {
|
||||
bytes payment_method_json = 1;
|
||||
payments.endpoint.v1.PaymentMethodRecord payment_method_record = 1;
|
||||
}
|
||||
|
||||
message GetPaymentMethodRequest {
|
||||
@@ -24,16 +23,16 @@ message GetPaymentMethodRequest {
|
||||
}
|
||||
|
||||
message GetPaymentMethodResponse {
|
||||
bytes payment_method_json = 1;
|
||||
payments.endpoint.v1.PaymentMethodRecord payment_method_record = 1;
|
||||
}
|
||||
|
||||
message UpdatePaymentMethodRequest {
|
||||
string account_ref = 1;
|
||||
bytes payment_method_json = 2;
|
||||
payments.endpoint.v1.PaymentMethodRecord payment_method_record = 2;
|
||||
}
|
||||
|
||||
message UpdatePaymentMethodResponse {
|
||||
bytes payment_method_json = 1;
|
||||
payments.endpoint.v1.PaymentMethodRecord payment_method_record = 1;
|
||||
}
|
||||
|
||||
message DeletePaymentMethodRequest {
|
||||
@@ -62,14 +61,21 @@ message ListPaymentMethodsRequest {
|
||||
}
|
||||
|
||||
message ListPaymentMethodsResponse {
|
||||
repeated bytes payment_methods_json = 1;
|
||||
repeated payments.endpoint.v1.PaymentMethodRecord payment_methods = 1;
|
||||
}
|
||||
|
||||
// PaymentMethodsService provides operations for managing payment methods.
|
||||
service PaymentMethodsService {
|
||||
// CreatePaymentMethod creates a new payment method.
|
||||
rpc CreatePaymentMethod(CreatePaymentMethodRequest) returns (CreatePaymentMethodResponse);
|
||||
// GetPaymentMethod retrieves a payment method by reference.
|
||||
rpc GetPaymentMethod(GetPaymentMethodRequest) returns (GetPaymentMethodResponse);
|
||||
// UpdatePaymentMethod updates an existing payment method.
|
||||
rpc UpdatePaymentMethod(UpdatePaymentMethodRequest) returns (UpdatePaymentMethodResponse);
|
||||
// Delete exising payment method
|
||||
rpc DeletePaymentMethod(DeletePaymentMethodRequest) returns (DeletePaymentMethodResponse);
|
||||
// SetPaymentMethodArchived sets the archived status of a payment method.
|
||||
rpc SetPaymentMethodArchived(SetPaymentMethodArchivedRequest) returns (SetPaymentMethodArchivedResponse);
|
||||
// ListPaymentMethods retrieves a list of payment methods.
|
||||
rpc ListPaymentMethods(ListPaymentMethodsRequest) returns (ListPaymentMethodsResponse);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user