22 lines
480 B
Protocol Buffer
22 lines
480 B
Protocol Buffer
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;
|
|
} |