proto/types/v1/price.proto
raw| 1 | syntax = "proto3"; |
| 2 | |
| 3 | package types.v1; |
| 4 | |
| 5 | import "google/protobuf/timestamp.proto"; |
| 6 | |
| 7 | option go_package = "types/v1;typesv1"; |
| 8 | |
| 9 | message Price { |
| 10 | google.protobuf.Timestamp created_at = 100; |
| 11 | message Recurring { |
| 12 | string interval = 1; |
| 13 | int64 interval_count = 2; |
| 14 | int64 trial_period_days = 3; |
| 15 | } |
| 16 | |
| 17 | string stripe_id = 1; |
| 18 | string currency = 2; |
| 19 | int64 unit_amount = 3; |
| 20 | Recurring recurring = 4; |
| 21 | string lookup_key = 5; |
| 22 | } |