-
Notifications
You must be signed in to change notification settings - Fork 461
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
codegen: api.go #1323
codegen: api.go #1323
Conversation
client/api.go
Outdated
@@ -83,25 +89,24 @@ import ( | |||
"github.com/stripe/stripe-go/v72/webhookendpoint" | |||
) | |||
|
|||
// API is the Stripe client. It contains all the different resources available. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
git diff HEAD~1 | grep '\.Client$' | grep [+-] | sort -k 2
+ BillingPortalSessions *billingportalsession.Client
- BillingPortalSessions *billingportalsession.Client
+ CustomerBalanceTransactions *customerbalancetransaction.Client
- CustomerBalanceTransactions *customerbalancetransaction.Client
+ FeeRefunds *feerefund.Client
- FeeRefunds *feerefund.Client
+ Files *file.Client
- Files *file.Client
+ IdentityVerificationReports *identityverificationreport.Client
- IdentityVerificationReports *verificationreport.Client
+ IdentityVerificationSessions *identityverificationsession.Client
- IdentityVerificationSessions *verificationsession.Client
+ Invoices *invoice.Client
- Invoices *invoice.Client
- IssuingAuthorizations *authorization.Client
+ IssuingAuthorizations *issuingauthorization.Client
- IssuingCardholders *cardholder.Client
+ IssuingCardholders *issuingcardholder.Client
+ IssuingTransactions *issuingtransaction.Client
- IssuingTransactions *transaction.Client
+ Orders *order.Client
- Orders *order.Client
- RadarEarlyFraudWarnings *earlyfraudwarning.Client
+ RadarEarlyFraudWarnings *radarearlyfraudwarning.Client
+ RadarValueListItems *radarvaluelistitem.Client
- RadarValueListItems *valuelistitem.Client
+ RadarValueLists *radarvaluelist.Client
- RadarValueLists *valuelist.Client
+ ReportRuns *reportingreportrun.Client
- ReportRuns *reportrun.Client
+ ReportTypes *reportingreporttype.Client
- ReportTypes *reporttype.Client
- SigmaScheduledQueryRuns *scheduledqueryrun.Client
+ SigmaScheduledQueryRuns *sigmascheduledqueryrun.Client
+ SubscriptionItems *subitem.Client
- SubscriptionItems *subitem.Client
+ TaxIDs *taxid.Client
- TaxIDs *taxid.Client
@@ -255,42 +259,42 @@ func (a *API) Init(key string, backends *stripe.Backends) { | |||
} | |||
|
|||
a.Account = &account.Client{B: backends.API, Key: key} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$ git diff HEAD~1 | grep '\.Client{' | grep [+-] | sort -k 2
+ a.ApplePayDomains = &applepaydomain.Client{B: backends.API, Key: key}
- a.ApplePayDomains = &applepaydomain.Client{B: backends.API, Key: key}
+ a.BillingPortalSessions = &billingportalsession.Client{B: backends.API, Key: key}
- a.BillingPortalSessions = &billingportalsession.Client{B: backends.API, Key: key}
+ a.Customers = &customer.Client{B: backends.API, Key: key}
- a.Customers = &customer.Client{B: backends.API, Key: key}
+ a.Fees = &fee.Client{B: backends.API, Key: key}
- a.Fees = &fee.Client{B: backends.API, Key: key}
+ a.Files = &file.Client{B: backends.Uploads, Key: key}
- a.Files = &file.Client{B: backends.Uploads, Key: key}
+ a.IdentityVerificationReports = &identityverificationreport.Client{B: backends.API, Key: key}
- a.IdentityVerificationReports = &verificationreport.Client{B: backends.API, Key: key}
+ a.IdentityVerificationSessions = &identityverificationsession.Client{B: backends.API, Key: key}
- a.IdentityVerificationSessions = &verificationsession.Client{B: backends.API, Key: key}
+ a.Invoices = &invoice.Client{B: backends.API, Key: key}
- a.Invoices = &invoice.Client{B: backends.API, Key: key}
- a.IssuingAuthorizations = &authorization.Client{B: backends.API, Key: key}
+ a.IssuingAuthorizations = &issuingauthorization.Client{B: backends.API, Key: key}
- a.IssuingCardholders = &cardholder.Client{B: backends.API, Key: key}
+ a.IssuingCardholders = &issuingcardholder.Client{B: backends.API, Key: key}
+ a.IssuingTransactions = &issuingtransaction.Client{B: backends.API, Key: key}
- a.IssuingTransactions = &transaction.Client{B: backends.API, Key: key}
+ a.OAuth = &oauth.Client{B: backends.API, Key: key}
- a.OAuth = &oauth.Client{B: backends.Connect, Key: key}
- a.RadarEarlyFraudWarnings = &earlyfraudwarning.Client{B: backends.API, Key: key}
+ a.RadarEarlyFraudWarnings = &radarearlyfraudwarning.Client{B: backends.API, Key: key}
+ a.RadarValueListItems = &radarvaluelistitem.Client{B: backends.API, Key: key}
- a.RadarValueListItems = &valuelistitem.Client{B: backends.API, Key: key}
+ a.RadarValueLists = &radarvaluelist.Client{B: backends.API, Key: key}
- a.RadarValueLists = &valuelist.Client{B: backends.API, Key: key}
+ a.ReportRuns = &reportingreportrun.Client{B: backends.API, Key: key}
- a.ReportRuns = &reportrun.Client{B: backends.API, Key: key}
+ a.ReportTypes = &reportingreporttype.Client{B: backends.API, Key: key}
- a.ReportTypes = &reporttype.Client{B: backends.API, Key: key}
- a.SigmaScheduledQueryRuns = &scheduledqueryrun.Client{B: backends.API, Key: key}
+ a.SigmaScheduledQueryRuns = &sigmascheduledqueryrun.Client{B: backends.API, Key: key}
+ a.Subscriptions = &sub.Client{B: backends.API, Key: key}
- a.Subscriptions = &sub.Client{B: backends.API, Key: key}
+ a.TaxIDs = &taxid.Client{B: backends.API, Key: key}
- a.TaxIDs = &taxid.Client{B: backends.API, Key: key}
6010b5b
to
c1a7b08
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies for missing this, LGTM!
r? @stripe/api-library-reviewers
Changes
client/api.go
to be compatible with codegen.Alphebetization is now consistent, and "namespaced" resources are now consistently given qualified imports.