Skip to content

Commit

Permalink
feat(api): api update (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Feb 7, 2025
1 parent caa1afc commit 49136e0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 91
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/metronome%2Fmetronome-1fa0ae727bc625797b5aa5e32e426a24513647901b7ead2f67eb14bf0abf3c33.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/metronome%2Fmetronome-b72a02c62483cb264bcf60bb973078212a6a74c8dd93d05ac622ab521528cc89.yml
10 changes: 6 additions & 4 deletions contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -1786,7 +1786,7 @@ type ContractNewParamsRecurringCommit struct {
ApplicableProductTags param.Field[[]string] `json:"applicable_product_tags"`
// Will be passed down to the individual commits
Description param.Field[string] `json:"description"`
// determines when the contract will stop creating recurring commits. optional
// Determines when the contract will stop creating recurring commits. optional
EndingBefore param.Field[time.Time] `json:"ending_before" format:"date-time"`
// The amount the customer should be billed for the commit. Not required.
InvoiceAmount param.Field[ContractNewParamsRecurringCommitsInvoiceAmount] `json:"invoice_amount"`
Expand All @@ -1797,7 +1797,8 @@ type ContractNewParamsRecurringCommit struct {
// Whether the created commits will use the commit rate or list rate
RateType param.Field[ContractNewParamsRecurringCommitsRateType] `json:"rate_type"`
// Will be passed down to the individual commits. This controls how much of an
// individual unexpired commit will roll over upon contract transition
// individual unexpired commit will roll over upon contract transition. Must be
// between 0 and 1.
RolloverFraction param.Field[float64] `json:"rollover_fraction"`
// A temporary ID that can be used to reference the recurring commit for commit
// specific overrides.
Expand Down Expand Up @@ -1886,7 +1887,7 @@ type ContractNewParamsRecurringCredit struct {
ApplicableProductTags param.Field[[]string] `json:"applicable_product_tags"`
// Will be passed down to the individual commits
Description param.Field[string] `json:"description"`
// determines when the contract will stop creating recurring commits. optional
// Determines when the contract will stop creating recurring commits. optional
EndingBefore param.Field[time.Time] `json:"ending_before" format:"date-time"`
// The amount the customer should be billed for the commit. Not required.
InvoiceAmount param.Field[ContractNewParamsRecurringCreditsInvoiceAmount] `json:"invoice_amount"`
Expand All @@ -1897,7 +1898,8 @@ type ContractNewParamsRecurringCredit struct {
// Whether the created commits will use the commit rate or list rate
RateType param.Field[ContractNewParamsRecurringCreditsRateType] `json:"rate_type"`
// Will be passed down to the individual commits. This controls how much of an
// individual unexpired commit will roll over upon contract transition
// individual unexpired commit will roll over upon contract transition. Must be
// between 0 and 1.
RolloverFraction param.Field[float64] `json:"rollover_fraction"`
// A temporary ID that can be used to reference the recurring commit for commit
// specific overrides.
Expand Down
6 changes: 4 additions & 2 deletions shared/shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -1166,7 +1166,8 @@ type ContractWithoutAmendmentsRecurringCommit struct {
// Will be passed down to the individual commits
NetsuiteSalesOrderID string `json:"netsuite_sales_order_id"`
// Will be passed down to the individual commits. This controls how much of an
// individual unexpired commit will roll over upon contract transition
// individual unexpired commit will roll over upon contract transition. Must be
// between 0 and 1.
RolloverFraction float64 `json:"rollover_fraction"`
JSON contractWithoutAmendmentsRecurringCommitJSON `json:"-"`
}
Expand Down Expand Up @@ -1382,7 +1383,8 @@ type ContractWithoutAmendmentsRecurringCredit struct {
// Will be passed down to the individual commits
NetsuiteSalesOrderID string `json:"netsuite_sales_order_id"`
// Will be passed down to the individual commits. This controls how much of an
// individual unexpired commit will roll over upon contract transition
// individual unexpired commit will roll over upon contract transition. Must be
// between 0 and 1.
RolloverFraction float64 `json:"rollover_fraction"`
JSON contractWithoutAmendmentsRecurringCreditJSON `json:"-"`
}
Expand Down

0 comments on commit 49136e0

Please sign in to comment.