# ai.newnal.mydata.resourcesSubscriptions

> The fee, billing cycle, period and status of subscription services.

- Kind: record
- Record key: tid
- Authority: mydata.newnal.ai
- Lexicon: 1
- Published by [newnal-platform.newnal.id](https://lexicon.garden/identity/did:plc:vciktevzoffubdvdaajz2yp3), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:vciktevzoffubdvdaajz2yp3/ai.newnal.mydata.resourcesSubscriptions)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:vciktevzoffubdvdaajz2yp3/ai.newnal.mydata.resourcesSubscriptions/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:vciktevzoffubdvdaajz2yp3/ai.newnal.mydata.resourcesSubscriptions/analytics)

## Record (`ai.newnal.mydata.resourcesSubscriptions`)

Type: record · key tid

### Properties

- `_meta` (ref, required)
  - Reference: `ai.newnal.mydata.defs#recordMeta`
- `data` (union, required)
  - One of (closed): `#entry`

## #entry (`ai.newnal.mydata.resourcesSubscriptions#entry`)

Type: object

One subscription service.

### Properties

- `amount` (ref): The subscription fee per billing cycle.
  - Reference: `ai.newnal.mydata.defs#money`
- `billingFrequency` (string): The billing cycle of the subscription fee.
  - Constraints: maxLength: 640, maxGraphemes: 64, knownValues: monthly | yearly | weekly | quarterly | one_time | usage_based
- `service` (string): The name of the service subscribed to.
  - Constraints: maxLength: 2560, maxGraphemes: 256
- `status` (string): The usage status of the subscription service.
  - Constraints: maxLength: 640, maxGraphemes: 64, knownValues: active | paused | ended | trial | expired
- `time` (union): The period of the subscription, or the point in time it started.
  - One of (closed): `ai.newnal.mydata.defs#instantTime`, `ai.newnal.mydata.defs#intervalTime`

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "entry": {
      "description": "One subscription service.",
      "properties": {
        "amount": {
          "description": "The subscription fee per billing cycle.",
          "ref": "ai.newnal.mydata.defs#money",
          "type": "ref"
        },
        "billingFrequency": {
          "description": "The billing cycle of the subscription fee.",
          "knownValues": [
            "monthly",
            "yearly",
            "weekly",
            "quarterly",
            "one_time",
            "usage_based"
          ],
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        },
        "service": {
          "description": "The name of the service subscribed to.",
          "maxGraphemes": 256,
          "maxLength": 2560,
          "type": "string"
        },
        "status": {
          "description": "The usage status of the subscription service.",
          "knownValues": [
            "active",
            "paused",
            "ended",
            "trial",
            "expired"
          ],
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        },
        "time": {
          "closed": true,
          "description": "The period of the subscription, or the point in time it started.",
          "refs": [
            "ai.newnal.mydata.defs#instantTime",
            "ai.newnal.mydata.defs#intervalTime"
          ],
          "type": "union"
        }
      },
      "type": "object"
    },
    "main": {
      "description": "The fee, billing cycle, period and status of subscription services.",
      "key": "tid",
      "record": {
        "properties": {
          "_meta": {
            "ref": "ai.newnal.mydata.defs#recordMeta",
            "type": "ref"
          },
          "data": {
            "closed": true,
            "refs": [
              "#entry"
            ],
            "type": "union"
          }
        },
        "required": [
          "data",
          "_meta"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "ai.newnal.mydata.resourcesSubscriptions",
  "lexicon": 1
}
```
