-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tresholds): Add GraphQL for usage tresholds
- Loading branch information
1 parent
9e5b02e
commit e764937
Showing
17 changed files
with
536 additions
and
0 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
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
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
13 changes: 13 additions & 0 deletions
13
app/graphql/types/subscriptions/usage_threshold_overrides_input.rb
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# frozen_string_literal: true | ||
|
||
module Types | ||
module Subscriptions | ||
class UsageThresholdOverridesInput < Types::BaseInputObject | ||
argument :id, ID, required: true | ||
|
||
argument :amount_cents, GraphQL::Types::BigInt, required: false | ||
argument :recurring, Boolean, required: false | ||
argument :threshold_display_name, String, required: false | ||
end | ||
end | ||
end |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# frozen_string_literal: true | ||
|
||
module Types | ||
module UsageThresholds | ||
class Input < BaseInputObject | ||
graphql_name 'UsageThresholdInput' | ||
|
||
argument :id, ID, required: false | ||
|
||
argument :amount_cents, GraphQL::Types::BigInt, required: false | ||
argument :recurring, Boolean, required: false | ||
argument :threshold_display_name, String, required: false | ||
end | ||
end | ||
end |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# frozen_string_literal: true | ||
|
||
module Types | ||
module UsageThresholds | ||
class Object < Types::BaseObject | ||
graphql_name 'UsageThreshold' | ||
|
||
field :id, ID, null: false | ||
|
||
field :amount_cents, GraphQL::Types::BigInt, null: false | ||
field :recurring, Boolean, null: false | ||
field :threshold_display_name, String, null: true | ||
|
||
field :created_at, GraphQL::Types::ISO8601DateTime, null: false | ||
field :updated_at, GraphQL::Types::ISO8601DateTime, null: false | ||
end | ||
end | ||
end |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.