MemberInfo

This object contains information about the member, the plan(s) the member is on (memberships), and custom fields.

{
  "id": 115,
  "name": "John Doe",
  "firstName": "John",
  "lastName": "Doe",
  "email": "john.doe@testdomain.com",
  "profileImageUrl": "https://memberspace.s3.us-east-1.amazonaws.com/store/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.jpg",
  "memberships": [
    {
      "planId": 151,
      "name": "Super plan",
      "type": "subscription",
      "createdAt": "2021-03-24T15:31:55Z",
      "status": "active",
      "cancelsOn": null,
      "paymentFailure": true,
      "welcomeUrl": "/welcome-to-super-plan",
      "contentUrl": "/super-plan-content"
    },
    {
      "planId": 52,
      "name": "Free plan",
      "type": "free",
      "createdAt": "2020-05-26T10:11:40Z",
      "status": "active",
      "cancelsOn": null,
      "paymentFailure": false,
      "welcomeUrl": "/welcome-to-basic-plan",
      "contentUrl": "/basic-plan-content"
    }
  ],
  "customSignupFields": [
    {
      "id": 21,
      "type": "textarea",
      "required": true,
      "value": "Consectetur porro adipisci in possimus vero. Adipisci voluptas doloribus doloremque sint error id."
    },
    {
      "id": 22,
      "type": "text",
      "required": true,
      "value": "red"
    },
    {
      "id": 23,
      "type": "select",
      "required": true,
      "options": [
        {
          "label": "D1",
          "value": "D1"
        },
        {
          "label": "D2",
          "value": "D2"
        },
        {
          "label": "D3",
          "value": "D3"
        }
      ],
      "value": "D1"
    },
    {
      "id": 24,
      "type": "multiple-select",
      "required": true,
      "options": [
        {
          "label": "MO1",
          "value": "MO1"
        },
        {
          "label": "MO2",
          "value": "MO2"
        },
        {
          "label": "MO3",
          "value": "MO3"
        }
      ],
      "value": [
        "MO1",
        "MO3"
      ]
    },
    {
      "id": 25,
      "type": "checkbox",
      "required": true,
      "value": true
    },
    {
      "id": 34,
      "type": "checkbox",
      "required": true,
      "value": false
    }
  ]
}

Represents the state of the user at the moment of calling the getter function or receiving it in an event. As the data changes MemberSpace.member.info events are dispatched to publish the updated information.

Attributes

Last updated