Skip to content

Commit

Permalink
feat(netsuite-taxes): Add new tax attributes to GraphQL types and inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
ivannovosad committed Sep 25, 2024
1 parent 26f3306 commit 5112ddc
Show file tree
Hide file tree
Showing 8 changed files with 141 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ class CreateInput < Types::BaseInputObject
argument :external_name, String, required: false
argument :integration_id, ID, required: true
argument :mapping_type, Types::IntegrationCollectionMappings::MappingTypeEnum, required: true
argument :tax_code, String, required: false
argument :tax_nexus, String, required: false
argument :tax_type, String, required: false
end
end
end
3 changes: 3 additions & 0 deletions app/graphql/types/integration_collection_mappings/object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ class Object < Types::BaseObject
field :id, ID, null: false
field :integration_id, ID, null: false
field :mapping_type, Types::IntegrationCollectionMappings::MappingTypeEnum, null: false
field :tax_code, String, null: true
field :tax_nexus, String, null: true
field :tax_type, String, null: true
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ class UpdateInput < Types::BaseInputObject
argument :external_name, String, required: false
argument :integration_id, ID, required: false
argument :mapping_type, Types::IntegrationCollectionMappings::MappingTypeEnum, required: false
argument :tax_code, String, required: false
argument :tax_nexus, String, required: false
argument :tax_type, String, required: false
end
end
end
9 changes: 9 additions & 0 deletions schema.graphql

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

114 changes: 114 additions & 0 deletions schema.json

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

Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@
it { is_expected.to accept_argument(:external_account_code).of_type('String') }
it { is_expected.to accept_argument(:external_id).of_type('String!') }
it { is_expected.to accept_argument(:external_name).of_type('String') }
it { is_expected.to accept_argument(:tax_code).of_type('String') }
it { is_expected.to accept_argument(:tax_nexus).of_type('String') }
it { is_expected.to accept_argument(:tax_type).of_type('String') }
end
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@
it { is_expected.to have_field(:external_account_code).of_type('String') }
it { is_expected.to have_field(:external_id).of_type('String!') }
it { is_expected.to have_field(:external_name).of_type('String') }
it { is_expected.to have_field(:tax_code).of_type('String') }
it { is_expected.to have_field(:tax_nexus).of_type('String') }
it { is_expected.to have_field(:tax_type).of_type('String') }
end
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@
it { is_expected.to accept_argument(:external_account_code).of_type('String') }
it { is_expected.to accept_argument(:external_id).of_type('String') }
it { is_expected.to accept_argument(:external_name).of_type('String') }
it { is_expected.to accept_argument(:tax_code).of_type('String') }
it { is_expected.to accept_argument(:tax_nexus).of_type('String') }
it { is_expected.to accept_argument(:tax_type).of_type('String') }
end

0 comments on commit 5112ddc

Please sign in to comment.