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

Feature: Add default properties for tickets #25

Merged
merged 2 commits into from
Nov 13, 2024

Conversation

Trosss
Copy link

@Trosss Trosss commented Nov 12, 2024

Add default properties for ticket that will be returned in the response for a GET.

@Trosss Trosss added the enhancement New feature or request label Nov 12, 2024
@Trosss Trosss requested review from fonji and Paul-Yves November 12, 2024 16:05
@Trosss Trosss self-assigned this Nov 12, 2024
def find(ticket_id)
response = Hubspot::Connection.get_json(TICKET_PATH, { ticket_id: ticket_id })
def find(ticket_id, properties = DEFAULT_TICKET_FIELDS)
response = Hubspot::Connection.get_json(TICKET_PATH, { ticket_id: ticket_id, properties: })
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
response = Hubspot::Connection.get_json(TICKET_PATH, { ticket_id: ticket_id, properties: })
response = Hubspot::Connection.get_json(TICKET_PATH, ticket_id:, properties:)

hubspot-api-ruby.gemspec Show resolved Hide resolved
@Trosss Trosss requested a review from fonji November 12, 2024 16:21
@Trosss Trosss merged commit 820b9ac into master Nov 13, 2024
2 checks passed
@Trosss Trosss deleted the feature/add_default_properties_for_tickets branch November 13, 2024 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants