This commit is contained in:
2022-05-22 21:15:26 +02:00
parent 9ffdabdda5
commit b7ffb014ea
13 changed files with 1412 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
syntax = "proto3";
package payment.v1;
import "google/type/money.proto";
// PaymentProvider represents the supported set
// of payment providers.
enum PaymentProvider {
PAYMENT_PROVIDER_UNSPECIFIED = 0;
PAYMENT_PROVIDER_STRIPE = 1;
PAYMENT_PROVIDER_PAYPAL = 2;
PAYMENT_PROVIDER_APPLE = 3;
}
// Order represents a monetary order.
message Order {
string order_id = 1;
string recipient_id = 2;
google.type.Money amount = 3;
PaymentProvider payment_provider = 4;
}