1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
syntax = "proto3";
package types.v1;
import "google/protobuf/timestamp.proto";
option go_package = "types/v1;typesv1";
message Address {
string city = 1;
string country = 2;
string line1 = 3;
string line2 = 4;
string postal_code = 5;
string state = 6;
}
message PaymentMethod {
message Card {
enum Brand {
unknown = 0;
amex = 1;
diners = 2;
discover = 3;
jcb = 4;
mastercard = 5;
unionpay = 6;
visa = 7;
}
Brand brand = 1;
string country = 2;
string display_brandh = 3;
int64 exp_month = 4;
int64 exp_year = 5;
string last4 = 6;
}
message BillingDetails {
Address address = 1;
string email = 2;
string name = 3;
string phone = 4;
}
google.protobuf.Timestamp created_at = 100;
string stripe_id = 1;
oneof type {
Card card = 200;
}
BillingDetails billing_details = 3;
}
|