Skip to content

Create getter and setter for MarketplaceService.Stubbed #2

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

Conversation

migueleliasweb
Copy link

@migueleliasweb migueleliasweb commented Apr 3, 2021

  • Regenerated interfaces
  • New MarketplaceService.GetStubbed and MarketplaceService.SetStubbed

@migueleliasweb migueleliasweb force-pushed the workarond-marketplace-interface-stubbed branch from 8f1d144 to bacddd1 Compare April 3, 2021 23:49
@@ -75,6 +75,14 @@ type MarketplacePlanAccount struct {
MarketplacePendingChange *MarketplacePendingChange `json:"marketplace_pending_change,omitempty"`
}

func (s *MarketplaceService) SetStubbed(stubbed bool) {
Copy link
Owner

Choose a reason for hiding this comment

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

These two new methods need standard godoc-style comment strings.

Copy link
Author

Choose a reason for hiding this comment

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

I don't know how I managed to miss this 😔

Copy link
Author

Choose a reason for hiding this comment

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

Done, added the doc strings

Copy link
Owner

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

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

Thank you, @migueleliasweb .
Sorry to be a pain, but please make the comments complete sentences per idiomatic Go style for the auto-generated godocs.

@@ -75,6 +75,20 @@ type MarketplacePlanAccount struct {
MarketplacePendingChange *MarketplacePendingChange `json:"marketplace_pending_change,omitempty"`
}

// SetStubbed configures MarketplaceService Stubbed property
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
// SetStubbed configures MarketplaceService Stubbed property
// SetStubbed configures the MarketplaceService Stubbed property.

Copy link
Author

Choose a reason for hiding this comment

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

Added :)

Copy link
Owner

Choose a reason for hiding this comment

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

Sorry again to be a pain, but can you please add the ending periods in both cases as shown in the suggested changes?

Copy link
Author

Choose a reason for hiding this comment

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

Sure, no problem!

Copy link
Author

Choose a reason for hiding this comment

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

Done!

s.Stubbed = stubbed
}

// GetStubbed returns MarketplaceService Stubbed property
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
// GetStubbed returns MarketplaceService Stubbed property
// GetStubbed returns the MarketplaceService Stubbed property.

Copy link
Author

Choose a reason for hiding this comment

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

Added :)

@migueleliasweb migueleliasweb force-pushed the workarond-marketplace-interface-stubbed branch 2 times, most recently from 5bc6f47 to ce74d52 Compare April 4, 2021 15:15
@migueleliasweb migueleliasweb force-pushed the workarond-marketplace-interface-stubbed branch from ce74d52 to b201be0 Compare April 4, 2021 15:16
Copy link
Owner

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

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

LGTM, thank you, @migueleliasweb .
Merging.

@gmlewis gmlewis merged commit aa4437d into gmlewis:add-interfaces-to-embed Apr 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants