Skip to content

Commit

Permalink
feat(gql): Add regroup_paid_fees to ChargeInput (#2292)
Browse files Browse the repository at this point in the history
## Description

`regroup_paid_fees` was missing from ChargeInput. You can read the data
but not edit it. This makes it editable.
  • Loading branch information
julienbourdeau authored Jul 16, 2024
1 parent bdc6103 commit a5c66b0
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/graphql/types/charges/input.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class Input < Types::BaseInputObject
argument :min_amount_cents, GraphQL::Types::BigInt, required: false
argument :pay_in_advance, Boolean, required: false
argument :prorated, Boolean, required: false
argument :regroup_paid_fees, Types::Charges::RegroupPaidFeesEnum, required: false

argument :filters, [Types::ChargeFilters::Input], required: false
argument :properties, Types::Charges::PropertiesInput, required: false
Expand Down
1 change: 1 addition & 0 deletions 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.

1 change: 1 addition & 0 deletions spec/graphql/types/charges/input_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
it { is_expected.to accept_argument(:min_amount_cents).of_type('BigInt') }
it { is_expected.to accept_argument(:pay_in_advance).of_type('Boolean') }
it { is_expected.to accept_argument(:prorated).of_type('Boolean') }
it { is_expected.to accept_argument(:regroup_paid_fees).of_type('RegroupPaidFeesEnum') }

it { is_expected.to accept_argument(:filters).of_type('[ChargeFilterInput!]') }
it { is_expected.to accept_argument(:properties).of_type('PropertiesInput') }
Expand Down

0 comments on commit a5c66b0

Please sign in to comment.