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

7
paymentapis/buf.lock Normal file
View File

@@ -0,0 +1,7 @@
# Generated by buf. DO NOT EDIT.
version: v1
deps:
- remote: buf.build
owner: googleapis
repository: googleapis
commit: 68946673f2d94bb2b24e6e97a208b752

10
paymentapis/buf.yaml Normal file
View File

@@ -0,0 +1,10 @@
version: v1
name: buf.build/acme/paymentapis
deps:
- buf.build/googleapis/googleapis
lint:
use:
- DEFAULT
breaking:
use:
- FILE

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;
}