Debian Codegraph @

proto/types/v1/subscription.proto

raw
1 syntax = "proto3";
2
3 package types.v1;
4
5 import "google/protobuf/timestamp.proto";
6 import "types/v1/payment_method.proto";
7
8 option go_package = "types/v1;typesv1";
9
10 message Subscription {
11 enum Status {
12 Unknown = 0;
13 Active = 1;
14 Canceled = 2;
15 Incomplete = 3;
16 IncompleteExpired = 4;
17 PastDue = 5;
18 Paused = 6;
19 Trialing = 7;
20 Unpaid = 8;
21 }
22
23 google.protobuf.Timestamp created_at = 100;
24
25 string stripe_id = 1;
26 types.v1.PaymentMethod default_payment_method = 2;
27 Status status = 3;
28
29 google.protobuf.Timestamp current_period_start_at = 201;
30 google.protobuf.Timestamp current_period_end_at = 202;
31
32 google.protobuf.Timestamp cancel_at = 301;
33 google.protobuf.Timestamp canceled_at = 302;
34
35 google.protobuf.Timestamp ended_at = 401;
36 }