# purchase.proto

## InAppPurchaseProto

| label | name | type | number |
| ----- | ---- | ---- | ------ |
| optional | receipt | bytes | 1 |


## InAppBillingSubscriptionProto

| label | name | type | number |
| ----- | ---- | ---- | ------ |
| optional | subscriptionId | string | 1 |
| optional | token | string | 2 |
| optional | orderId | string | 3 |
| optional | signature | string | 4 |
| optional | receipt | string | 5 |


## WebPurchaseProto

| label | name | type | number |
| ----- | ---- | ---- | ------ |
| optional | plan | string | 1 |
| optional | token | string | 2 |
| optional | email | string | 3 |


## SubscriptionStatusProto

| label | name | type | number |
| ----- | ---- | ---- | ------ |
| optional | status | int32 | 1 |
| optional | type | int32 | 2 |
| optional | expiresAt | int64 | 3 |
| optional | timeLeft | int32 | 4 |
| optional | isOverlapped | bool | 5 |
| optional | platform | int32 | 6 |
| optional | isTrialUsed | bool | 7 |
| optional | billingCycle | string | 8 |
| optional | startAt | int64 | 9 |
| optional | plan | SubscriptionPlanProto | 10 |


## SubscriptionPlayReportProto

| label | name | type | number |
| ----- | ---- | ---- | ------ |
| optional | playTime | int32 | 1 |


## SubscriptionNotificationsProto

| label | name | type | number |
| ----- | ---- | ---- | ------ |
| repeated | notifications | SubscriptionNotificationProto | 1 |


## SubscriptionNotificationProto

| label | name | type | number |
| ----- | ---- | ---- | ------ |
| optional | id | string | 1 |
| optional | status | string | 2 |
| optional | plan | SubscriptionPlanProto | 3 |
| optional | expiresAt | int64 | 4 |
| optional | firstTime | bool | 5 |
| optional | leftDays | int32 | 6 |
| optional | platform | int32 | 7 |
| optional | paymentSource | PaymentSourceProto | 8 |


## SubscriptionPlanProto

| label | name | type | number |
| ----- | ---- | ---- | ------ |
| optional | id | string | 1 |
| optional | billingCycle | string | 2 |
| optional | amount | int64 | 3 |


## PaymentSourceProto

| label | name | type | number |
| ----- | ---- | ---- | ------ |
| optional | type | string | 1 |
| optional | value | string | 2 |


