github.com/pluralsh/plural-cli@v0.9.5/pkg/ui/web/src/graphql/payments.graphql (about)

     1  fragment Limit on Limit {
     2    dimension
     3    quantity
     4  }
     5  
     6  fragment LineItem on LineItem {
     7    name
     8    dimension
     9    cost
    10    period
    11    type
    12  }
    13  
    14  fragment ServiceLevel on ServiceLevel {
    15    minSeverity
    16    maxSeverity
    17    responseTime
    18  }
    19  
    20  fragment Plan on Plan {
    21    id
    22    name
    23    cost
    24    period
    25    serviceLevels { ...ServiceLevel }
    26    lineItems {
    27      included { ...Limit }
    28      items { ...LineItem }
    29    }
    30    metadata { features { name description } }
    31  }
    32  
    33  fragment Subscription on RepositorySubscription {
    34    id
    35    plan { ...Plan }
    36    lineItems { items { ...Limit } }
    37  }
    38  
    39  
    40  fragment InvoiceItem on InvoiceItem {
    41    amount
    42    currency
    43    description
    44  }
    45  
    46  
    47  fragment Invoice on Invoice {
    48    number
    49    amountDue
    50    amountPaid
    51    currency
    52    status
    53    createdAt
    54    hostedInvoiceUrl
    55    lines { ...InvoiceItem }
    56  }
    57  
    58  fragment Card on Card {
    59    id
    60    last4
    61    expMonth
    62    expYear
    63    name
    64    brand
    65  }
    66  
    67  query Subscription {
    68    account {
    69      billingCustomerId
    70      grandfatheredUntil
    71      delinquentAt
    72      userCount
    73      clusterCount
    74      availableFeatures {
    75        userManagement
    76        audit
    77      }
    78      subscription {
    79        id
    80        plan {
    81          id
    82          period
    83          lineItems {
    84            dimension
    85            cost
    86          }
    87        }
    88      }
    89      billingAddress {
    90        name
    91        line1
    92        line2
    93        zip
    94        state
    95        city
    96        country
    97      }
    98    }
    99  }
   100  
   101  mutation UpdateAccountBilling($attributes: AccountAttributes!) {
   102    updateAccount(attributes: $attributes) {
   103      id
   104    }
   105  }
   106  
   107  mutation UpgradeToProfessionalPlan($planId: ID!) {
   108    createPlatformSubscription(planId: $planId) {
   109      id
   110    }
   111  }
   112  
   113  mutation DowngradeToFreePlanMutation {
   114    deletePlatformSubscription {
   115      id
   116    }
   117  }
   118  
   119  query Cards {
   120    me {
   121      id
   122      cards(first: 100) {
   123        edges {
   124          node {
   125            ...Card
   126          }
   127        }
   128      }
   129    }
   130  }
   131  
   132  mutation CreateCard($source: String!, $address: AddressAttributes) {
   133    createCard(source: $source, address: $address) {
   134      id
   135    }
   136  }
   137  
   138  mutation DeleteCard($id: ID!) {
   139    deleteCard(id: $id) {
   140      id
   141    }
   142  }