Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(dunning): Add customerId to invoices graphql resolver #2513

Merged
merged 1 commit into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions app/graphql/resolvers/invoices_resolver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class InvoicesResolver < Resolvers::BaseResolver

argument :currency, Types::CurrencyEnum, required: false
argument :customer_external_id, String, required: false
argument :customer_id, ID, required: false, description: 'Uniq ID of the customer'
argument :invoice_type, [Types::Invoices::InvoiceTypeEnum], required: false
argument :issuing_date_from, GraphQL::Types::ISO8601Date, required: false
argument :issuing_date_to, GraphQL::Types::ISO8601Date, required: false
Expand All @@ -27,6 +28,7 @@ class InvoicesResolver < Resolvers::BaseResolver
def resolve( # rubocop:disable Metrics/ParameterLists
currency: nil,
customer_external_id: nil,
customer_id: nil,
invoice_type: nil,
issuing_date_from: nil,
issuing_date_to: nil,
Expand All @@ -49,6 +51,7 @@ def resolve( # rubocop:disable Metrics/ParameterLists
status:,
currency:,
customer_external_id:,
customer_id:,
invoice_type:,
issuing_date_from:,
issuing_date_to:
Expand Down
20 changes: 19 additions & 1 deletion schema.graphql

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.