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

Update generated code for beta #1882

Merged
merged 10 commits into from
Jul 5, 2024
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1104
v1116
8 changes: 4 additions & 4 deletions billing_metereventsummary.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ type BillingMeterEventSummaryListParams struct {
ID *string `form:"-"` // Included in URL
// The customer for which to fetch event summaries.
Customer *string `form:"customer"`
// The timestamp from when to stop aggregating meter events (exclusive).
// The timestamp from when to stop aggregating meter events (exclusive). Must be aligned with minute boundaries.
EndTime *int64 `form:"end_time"`
// Specifies which fields in the response should be expanded.
Expand []*string `form:"expand"`
// The timestamp from when to start aggregating meter events (inclusive).
// The timestamp from when to start aggregating meter events (inclusive). Must be aligned with minute boundaries.
StartTime *int64 `form:"start_time"`
// Specifies what granularity to use when generating event summaries. If not specified, a single event summary would be returned for the specified time range. For hourly granularity, start and end times must align with hour boundaries (e.g., 00:00, 01:00, ..., 23:00). For daily granularity, start and end times must align with UTC day boundaries (00:00 UTC).
ValueGroupingWindow *string `form:"value_grouping_window"`
Expand All @@ -32,7 +32,7 @@ func (p *BillingMeterEventSummaryListParams) AddExpand(f string) {
type BillingMeterEventSummary struct {
// Aggregated value of all the events within `start_time` (inclusive) and `end_time` (inclusive). The aggregation strategy is defined on meter via `default_aggregation`.
AggregatedValue float64 `json:"aggregated_value"`
// End timestamp for this event summary (inclusive).
// End timestamp for this event summary (exclusive). Must be aligned with minute boundaries.
EndTime int64 `json:"end_time"`
// Unique identifier for the object.
ID string `json:"id"`
Expand All @@ -42,7 +42,7 @@ type BillingMeterEventSummary struct {
Meter string `json:"meter"`
// String representing the object's type. Objects of the same type share the same value.
Object string `json:"object"`
// Start timestamp for this event summary (inclusive).
// Start timestamp for this event summary (inclusive). Must be aligned with minute boundaries.
StartTime int64 `json:"start_time"`
}

Expand Down
2 changes: 2 additions & 0 deletions checkout_session.go
Original file line number Diff line number Diff line change
Expand Up @@ -2710,6 +2710,8 @@ type CheckoutSessionPaymentMethodOptionsSwish struct {
type CheckoutSessionPaymentMethodOptionsUSBankAccountFinancialConnectionsFilters struct {
// The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
AccountSubcategories []CheckoutSessionPaymentMethodOptionsUSBankAccountFinancialConnectionsFiltersAccountSubcategory `json:"account_subcategories"`
// The institution to use to filter for possible accounts to link.
Institution string `json:"institution"`
}
type CheckoutSessionPaymentMethodOptionsUSBankAccountFinancialConnectionsManualEntry struct {
// Settings for configuring manual entry of account details.
Expand Down
4 changes: 4 additions & 0 deletions client/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ import (
"github.com/stripe/stripe-go/v79/filelink"
financialconnectionsaccount "github.com/stripe/stripe-go/v79/financialconnections/account"
financialconnectionsaccountinferredbalance "github.com/stripe/stripe-go/v79/financialconnections/accountinferredbalance"
financialconnectionsinstitution "github.com/stripe/stripe-go/v79/financialconnections/institution"
financialconnectionssession "github.com/stripe/stripe-go/v79/financialconnections/session"
financialconnectionstransaction "github.com/stripe/stripe-go/v79/financialconnections/transaction"
forwardingrequest "github.com/stripe/stripe-go/v79/forwarding/request"
Expand Down Expand Up @@ -249,6 +250,8 @@ type API struct {
FinancialConnectionsAccountInferredBalances *financialconnectionsaccountinferredbalance.Client
// FinancialConnectionsAccounts is the client used to invoke /financial_connections/accounts APIs.
FinancialConnectionsAccounts *financialconnectionsaccount.Client
// FinancialConnectionsInstitutions is the client used to invoke /financial_connections/institutions APIs.
FinancialConnectionsInstitutions *financialconnectionsinstitution.Client
// FinancialConnectionsSessions is the client used to invoke /financial_connections/sessions APIs.
FinancialConnectionsSessions *financialconnectionssession.Client
// FinancialConnectionsTransactions is the client used to invoke /financial_connections/transactions APIs.
Expand Down Expand Up @@ -508,6 +511,7 @@ func (a *API) Init(key string, backends *stripe.Backends) {
a.Files = &file.Client{B: backends.API, BUploads: backends.Uploads, Key: key}
a.FinancialConnectionsAccountInferredBalances = &financialconnectionsaccountinferredbalance.Client{B: backends.API, Key: key}
a.FinancialConnectionsAccounts = &financialconnectionsaccount.Client{B: backends.API, Key: key}
a.FinancialConnectionsInstitutions = &financialconnectionsinstitution.Client{B: backends.API, Key: key}
a.FinancialConnectionsSessions = &financialconnectionssession.Client{B: backends.API, Key: key}
a.FinancialConnectionsTransactions = &financialconnectionstransaction.Client{B: backends.API, Key: key}
a.ForwardingRequests = &forwardingrequest.Client{B: backends.API, Key: key}
Expand Down
2 changes: 1 addition & 1 deletion customer.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ type Customer struct {
Metadata map[string]string `json:"metadata"`
// The customer's full name or business name.
Name string `json:"name"`
// The suffix of the customer's next invoice number (for example, 0001).
// The suffix of the customer's next invoice number (for example, 0001). When the account uses account level sequencing, this parameter is ignored in API requests and the field omitted in API responses.
NextInvoiceSequence int64 `json:"next_invoice_sequence"`
// String representing the object's type. Objects of the same type share the same value.
Object string `json:"object"`
Expand Down
Loading
Loading