OBJECT

Subscription

One of a user's subscriptions

link GraphQL Schema definition

  • type Subscription {
  • # Vydia uses braintree as payment gateway for user purchases, and this is the ID
  • # for this user
  • braintree_id: String! @deprecated( reason: "WARNING: this field is not currently used in any application" )
  • created_at: DateTime!
  • credit_card_id: Int @deprecated( reason: "WARNING: this field is not currently used in any application" )
  • downgrade_requested_at: DateTime
  • downgrade_to_storage_tier: StorageTier
  • # When the user downgrades to a storage tier, It is downgraded at the end of the
  • # subscription. The storage it should downgrade to, is stored at this field
  • downgrade_to_storage_tier_id: ID @deprecated( reason: "WARNING: foreign id fields are deprecated use `Subscription.downgrade_to_storage_tier.id` instead" )
  • id: ID!
  • paypal_account_id: Int @deprecated( reason: "WARNING: this field is not currently used in any application" )
  • pretty_created_at: String! @deprecated( reason: "WARNING: this field is not currently used in any application" )
  • pretty_payment_method: String! @deprecated( reason: "WARNING: this field is only used in legacy applications" )
  • pretty_price: String!
  • # Price of this subscription
  • price: Float!
  • # Time when this subscription renews at
  • renew_at: DateTime!
  • # Status of the subscription like Pending | Past Due | Active | Cancelled
  • status: String!
  • storage_tier: StorageTier
  • # Storage Tier ID the user is currently subscribed with
  • storage_tier_id: ID @deprecated( reason: "WARNING: foreign id fields are deprecated use `Subscription.storage_tier.id` instead" )
  • # List of transactions made by the user
  • transactions: [Transaction!]!
  • }