Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

killbill-graphql-plugin

GraphQL plugin for Kill Bill.

Getting Started

To build, run mvn clean install. You can then install the plugin locally:

kpm install_java_plugin graphql --from-source-file target/graphql-*-SNAPSHOT.jar --destination /var/tmp/bundles

Play

Go to GraphiQL at http://127.0.0.1:8080/plugins/graphql-plugin/graphiql

{
    account(idFilter: "58fe781e-3e8d-4c2d-a872-842dabfbacc6") {
        externalKey
        currency
        referenceTime
        timeZone
        billCycleDayLocal
        bundles {
            id
            createdDate
            subscriptions {
                id
                billCycleDayLocal
                billingStartDate
                chargedThroughDate
                lastActivePhase {
                    phaseType
                    recurring {
                        billingPeriod
                        recurringPrice {
                            prices {
                                value
                                currency
                            }
                        }
                    }
                }
            }
            timeline {
                subscriptionEvents {
                    effectiveDate
                    serviceName
                    serviceStateName
                    nextBillingPeriod
                    nextPlan {
                        prettyName
                    }
                }
            }
        }
    }
}

Note: in the headers section (bottom), make sure to enter your tenant details:

{
  "x-killbill-apikey": "bob",
  "x-killbill-apisecret": "lazar"
}

Development

In IntelliJ, make sure to enable the Federation setting in Languages & Frameworks > GraphQL (see JetBrains/js-graphql-intellij-plugin#297).

About

Kill Bill is the leading Open-Source Subscription Billing & Payments Platform. For more information about the project, go to https://killbill.io/.

About

GraphQL plugin for Kill Bill.

Resources

Contributing

Stars

Watchers

Forks

Releases

Sponsor this project

Packages

Contributors

Languages