initial
This commit is contained in:
7
paymentapis/buf.lock
Normal file
7
paymentapis/buf.lock
Normal 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
10
paymentapis/buf.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
version: v1
|
||||
name: buf.build/acme/paymentapis
|
||||
deps:
|
||||
- buf.build/googleapis/googleapis
|
||||
lint:
|
||||
use:
|
||||
- DEFAULT
|
||||
breaking:
|
||||
use:
|
||||
- FILE
|
||||
22
paymentapis/payment/v1/payment.proto
Normal file
22
paymentapis/payment/v1/payment.proto
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user