-
-
Notifications
You must be signed in to change notification settings - Fork 324
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
978 additions
and
453 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,4 +22,3 @@ | |
[libs] | ||
|
||
[options] | ||
unsafe.enable_getters_and_setters=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,41 @@ | ||
type UserSubscription { | ||
active: Boolean! | ||
errors: [FieldError!] | ||
active: Boolean! | ||
errors: [FieldError!] | ||
} | ||
|
||
type UserSubscriptionCardInfo { | ||
expiryMonth: Int | ||
expiryYear: Int | ||
last4: String | ||
brand: String | ||
expiryMonth: Int | ||
expiryYear: Int | ||
last4: String | ||
brand: String | ||
} | ||
|
||
type SubscriberNumber { | ||
number: Int | ||
number: Int | ||
} | ||
|
||
extend type Query { | ||
# Get current user's subscription | ||
subscription: UserSubscription | ||
# Get magic number only available to subscribers | ||
subscribersOnlyNumber: SubscriberNumber | ||
# Get payment information for current user's subscription | ||
subscriptionCardInfo: UserSubscriptionCardInfo | ||
# Get current user's subscription | ||
subscription: UserSubscription | ||
# Get magic number only available to subscribers | ||
subscribersOnlyNumber: SubscriberNumber | ||
# Get payment information for current user's subscription | ||
subscriptionCardInfo: UserSubscriptionCardInfo | ||
} | ||
|
||
extend type Mutation { | ||
# Subscribe a user | ||
subscribe(input: SubscribeInput!): UserSubscription! | ||
# Cancel a user's subscription | ||
cancel: UserSubscription! | ||
# Update a user's card information | ||
updateCard(input: SubscribeInput!): Boolean! | ||
# Subscribe a user | ||
subscribe(input: SubscribeInput!): UserSubscription! | ||
# Cancel a user's subscription | ||
cancel: UserSubscription! | ||
# Update a user's card information | ||
updateCard(input: SubscribeInput!): Boolean! | ||
} | ||
|
||
input SubscribeInput { | ||
token: String! | ||
expiryMonth: Int! | ||
expiryYear: Int! | ||
last4: String! | ||
brand: String! | ||
} | ||
|
||
extend type Subscription { | ||
token: String! | ||
expiryMonth: Int! | ||
expiryYear: Int! | ||
last4: String! | ||
brand: String! | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -161,6 +161,3 @@ input ResetPasswordInput { | |
password: String! | ||
passwordConfirmation: String! | ||
} | ||
|
||
extend type Subscription { | ||
} |
Oops, something went wrong.