Skip to content

Commit

Permalink
feat(hubspot): Add hubspot_customer to GraphQL customer type
Browse files Browse the repository at this point in the history
  • Loading branch information
ivannovosad committed Oct 11, 2024
1 parent f6cba9e commit 0cc26e8
Show file tree
Hide file tree
Showing 4 changed files with 142 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/graphql/types/customers/object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class Object < Types::BaseObject
field :subscriptions, [Types::Subscriptions::Object], resolver: Resolvers::Customers::SubscriptionsResolver

field :anrok_customer, Types::IntegrationCustomers::Anrok, null: true
field :hubspot_customer, Types::IntegrationCustomers::Hubspot, null: true
field :netsuite_customer, Types::IntegrationCustomers::Netsuite, null: true
field :xero_customer, Types::IntegrationCustomers::Xero, null: true

Expand Down
11 changes: 11 additions & 0 deletions schema.graphql

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

129 changes: 129 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/customers/object_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
it { is_expected.to have_field(:shipping_address).of_type('CustomerAddress') }

it { is_expected.to have_field(:anrok_customer).of_type('AnrokCustomer') }
it { is_expected.to have_field(:hubspot_customer).of_type('HubspotCustomer') }
it { is_expected.to have_field(:netsuite_customer).of_type('NetsuiteCustomer') }
it { is_expected.to have_field(:provider_customer).of_type('ProviderCustomer') }
it { is_expected.to have_field(:subscriptions).of_type('[Subscription!]!') }
Expand Down

0 comments on commit 0cc26e8

Please sign in to comment.