mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 04:20:46 +00:00
8.8 KiB
8.8 KiB
PastSubscription
Example Usage
import { PastSubscription, PostUsersSignInDataState } from "@lukehagar/plexjs/sdk/models/operations";
let value: PastSubscription = {
id: "<id>",
mode: "<value>",
renewsAt: 1556281940,
endsAt: 1556281940,
type: "plexpass",
transfer: "<value>",
state: PostUsersSignInDataState.Ended,
billing: {
internalPaymentMethod: {},
paymentMethodId: 602004,
},
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
id |
string | ✔️ | N/A | |
mode |
string | ✔️ | N/A | |
renewsAt |
number | ✔️ | N/A | 1556281940 |
endsAt |
number | ✔️ | N/A | 1556281940 |
canceled |
boolean | ➖ | N/A | false |
gracePeriod |
boolean | ➖ | N/A | false |
onHold |
boolean | ➖ | N/A | false |
canReactivate |
boolean | ➖ | N/A | false |
canUpgrade |
boolean | ➖ | N/A | false |
canDowngrade |
boolean | ➖ | N/A | false |
canConvert |
boolean | ➖ | N/A | false |
type |
string | ✔️ | N/A | plexpass |
transfer |
string | ✔️ | N/A | |
state |
operations.PostUsersSignInDataState | ✔️ | N/A | ended |
billing |
operations.Billing | ✔️ | N/A |