Skip to content

Commit

Permalink
feat(dunning): Add customerId to invoices graphql resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
rsempe committed Aug 30, 2024
1 parent 28f3b46 commit c3650c9
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
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.

0 comments on commit c3650c9

Please sign in to comment.