Skip to content

Commit 57f5802

Browse files
committed
Add more fields to MarketplacePurchaseAccount
The docs indicate that Email, NodeID, URL fields may also be present: https://docs.github.com/en/rest/apps/marketplace?apiVersion=2022-11-28#list-subscriptions-for-the-authenticated-user-stubbed
1 parent e97a632 commit 57f5802

File tree

3 files changed

+57
-0
lines changed

3 files changed

+57
-0
lines changed

github/apps_marketplace.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,13 @@ type MarketplacePlanAccount struct {
7878

7979
// MarketplacePurchaseAccount represents a GitHub Account (user or organization) for a Purchase.
8080
type MarketplacePurchaseAccount struct {
81+
URL *string `json:"url,omitempty"`
8182
Type *string `json:"type,omitempty"`
8283
ID *int64 `json:"id,omitempty"`
8384
Login *string `json:"login,omitempty"`
8485
OrganizationBillingEmail *string `json:"organization_billing_email,omitempty"`
86+
Email *string `json:"email,omitempty"`
87+
NodeID *string `json:"node_id,omitempty"`
8588
}
8689

8790
// ListPlans lists all plans for your Marketplace listing.

github/github-accessors.go

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/github-accessors_test.go

Lines changed: 30 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)