Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.48.0"
".": "1.49.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 118
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-03af7f658aed245cf7e230055de59fe92a78880f3719bf254ed9352bf89bad5e.yml
openapi_spec_hash: c4703d217c25e8c02c248caed9e2d3be
config_hash: 895e36fb2d717958770fd4cf883f4b74
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-a5a28a58483355d3cc3da7ac5c452d548ee17183324318198052968121ca7dba.yml
openapi_spec_hash: a317931a99e6d4a122919135a0363e40
config_hash: 05c94c0e6dbeab2c9b554c2e0d6371a0
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 1.49.0 (2026-01-06)

Full Changelog: [v1.48.0...v1.49.0](https://github.com/orbcorp/orb-go/compare/v1.48.0...v1.49.0)

### Features

* **api:** api update ([06d696c](https://github.com/orbcorp/orb-go/commit/06d696cdaad0be47bf7b17a7ac1a11859769be76))


### Chores

* **internal:** codegen related update ([6cd0a88](https://github.com/orbcorp/orb-go/commit/6cd0a882e833af6a58f7ffb0963c04f8b207ce53))

## 1.48.0 (2025-12-06)

Full Changelog: [v1.47.2...v1.48.0](https://github.com/orbcorp/orb-go/compare/v1.47.2...v1.48.0)
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2025 Orb
Copyright 2026 Orb

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Or to pin the version:
<!-- x-release-please-start-version -->

```sh
go get -u 'github.com/orbcorp/orb-go@v1.48.0'
go get -u 'github.com/orbcorp/orb-go@v1.49.0'
```

<!-- x-release-please-end -->
Expand Down
2 changes: 1 addition & 1 deletion internal/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

package internal

const PackageVersion = "1.48.0" // x-release-please-version
const PackageVersion = "1.49.0" // x-release-please-version
62 changes: 16 additions & 46 deletions price.go
Original file line number Diff line number Diff line change
Expand Up @@ -1300,7 +1300,6 @@ func (r PriceNewParamsNewFloatingThresholdTotalAmountPriceThresholdTotalAmountCo

// Configuration for a single threshold
type PriceNewParamsNewFloatingThresholdTotalAmountPriceThresholdTotalAmountConfigConsumptionTable struct {
// Quantity threshold
Threshold param.Field[string] `json:"threshold,required"`
// Total amount for this threshold
TotalAmount param.Field[string] `json:"total_amount,required"`
Expand Down Expand Up @@ -1434,7 +1433,6 @@ func (r PriceNewParamsNewFloatingTieredPackagePriceModelType) IsKnown() bool {

// Configuration for tiered_package pricing
type PriceNewParamsNewFloatingTieredPackagePriceTieredPackageConfig struct {
// Package size
PackageSize param.Field[string] `json:"package_size,required"`
// Apply tiered pricing after rounding up the quantity to the package size. Tiers
// are defined using exclusive lower bounds. The tier bounds are defined based on
Expand All @@ -1450,8 +1448,7 @@ func (r PriceNewParamsNewFloatingTieredPackagePriceTieredPackageConfig) MarshalJ
// Configuration for a single tier with business logic
type PriceNewParamsNewFloatingTieredPackagePriceTieredPackageConfigTier struct {
// Price per package
PerUnit param.Field[string] `json:"per_unit,required"`
// Tier lower bound
PerUnit param.Field[string] `json:"per_unit,required"`
TierLowerBound param.Field[string] `json:"tier_lower_bound,required"`
}

Expand Down Expand Up @@ -1598,9 +1595,7 @@ func (r PriceNewParamsNewFloatingTieredWithMinimumPriceTieredWithMinimumConfig)

// Configuration for a single tier
type PriceNewParamsNewFloatingTieredWithMinimumPriceTieredWithMinimumConfigTier struct {
// Minimum amount
MinimumAmount param.Field[string] `json:"minimum_amount,required"`
// Tier lower bound
MinimumAmount param.Field[string] `json:"minimum_amount,required"`
TierLowerBound param.Field[string] `json:"tier_lower_bound,required"`
// Per unit amount
UnitAmount param.Field[string] `json:"unit_amount,required"`
Expand Down Expand Up @@ -1732,7 +1727,6 @@ func (r PriceNewParamsNewFloatingGroupedTieredPriceGroupedTieredConfig) MarshalJ

// Configuration for a single tier
type PriceNewParamsNewFloatingGroupedTieredPriceGroupedTieredConfigTier struct {
// Tier lower bound
TierLowerBound param.Field[string] `json:"tier_lower_bound,required"`
// Per unit amount
UnitAmount param.Field[string] `json:"unit_amount,required"`
Expand Down Expand Up @@ -1881,7 +1875,6 @@ func (r PriceNewParamsNewFloatingTieredPackageWithMinimumPriceModelType) IsKnown

// Configuration for tiered_package_with_minimum pricing
type PriceNewParamsNewFloatingTieredPackageWithMinimumPriceTieredPackageWithMinimumConfig struct {
// Package size
PackageSize param.Field[float64] `json:"package_size,required"`
// Apply tiered pricing after rounding up the quantity to the package size. Tiers
// are defined using exclusive lower bounds.
Expand All @@ -1894,11 +1887,8 @@ func (r PriceNewParamsNewFloatingTieredPackageWithMinimumPriceTieredPackageWithM

// Configuration for a single tier
type PriceNewParamsNewFloatingTieredPackageWithMinimumPriceTieredPackageWithMinimumConfigTier struct {
// Minimum amount
MinimumAmount param.Field[string] `json:"minimum_amount,required"`
// Price per package
PerUnit param.Field[string] `json:"per_unit,required"`
// Tier lower bound
MinimumAmount param.Field[string] `json:"minimum_amount,required"`
PerUnit param.Field[string] `json:"per_unit,required"`
TierLowerBound param.Field[string] `json:"tier_lower_bound,required"`
}

Expand Down Expand Up @@ -2030,12 +2020,9 @@ func (r PriceNewParamsNewFloatingPackageWithAllocationPriceModelType) IsKnown()

// Configuration for package_with_allocation pricing
type PriceNewParamsNewFloatingPackageWithAllocationPricePackageWithAllocationConfig struct {
// Usage allocation
Allocation param.Field[string] `json:"allocation,required"`
// Price per package
Allocation param.Field[string] `json:"allocation,required"`
PackageAmount param.Field[string] `json:"package_amount,required"`
// Package size
PackageSize param.Field[string] `json:"package_size,required"`
PackageSize param.Field[string] `json:"package_size,required"`
}

func (r PriceNewParamsNewFloatingPackageWithAllocationPricePackageWithAllocationConfig) MarshalJSON() (data []byte, err error) {
Expand Down Expand Up @@ -3122,10 +3109,8 @@ func (r PriceNewParamsNewFloatingGroupedWithMeteredMinimumPriceGroupedWithMetere

// Configuration for a scaling factor
type PriceNewParamsNewFloatingGroupedWithMeteredMinimumPriceGroupedWithMeteredMinimumConfigScalingFactor struct {
// Scaling factor
ScalingFactor param.Field[string] `json:"scaling_factor,required"`
// Scaling value
ScalingValue param.Field[string] `json:"scaling_value,required"`
ScalingValue param.Field[string] `json:"scaling_value,required"`
}

func (r PriceNewParamsNewFloatingGroupedWithMeteredMinimumPriceGroupedWithMeteredMinimumConfigScalingFactor) MarshalJSON() (data []byte, err error) {
Expand All @@ -3134,7 +3119,6 @@ func (r PriceNewParamsNewFloatingGroupedWithMeteredMinimumPriceGroupedWithMetere

// Configuration for a unit amount
type PriceNewParamsNewFloatingGroupedWithMeteredMinimumPriceGroupedWithMeteredMinimumConfigUnitAmount struct {
// Pricing value
PricingValue param.Field[string] `json:"pricing_value,required"`
// Per unit amount
UnitAmount param.Field[string] `json:"unit_amount,required"`
Expand Down Expand Up @@ -3556,7 +3540,6 @@ func (r PriceNewParamsNewFloatingGroupedTieredPackagePriceCadence) IsKnown() boo
type PriceNewParamsNewFloatingGroupedTieredPackagePriceGroupedTieredPackageConfig struct {
// The event property used to group before tiering
GroupingKey param.Field[string] `json:"grouping_key,required"`
// Package size
PackageSize param.Field[string] `json:"package_size,required"`
// Apply tiered pricing after rounding up the quantity to the package size. Tiers
// are defined using exclusive lower bounds.
Expand All @@ -3569,9 +3552,8 @@ func (r PriceNewParamsNewFloatingGroupedTieredPackagePriceGroupedTieredPackageCo

// Configuration for a single tier
type PriceNewParamsNewFloatingGroupedTieredPackagePriceGroupedTieredPackageConfigTier struct {
// Price per package
PerUnit param.Field[string] `json:"per_unit,required"`
// Tier lower bound
// Per package
PerUnit param.Field[string] `json:"per_unit,required"`
TierLowerBound param.Field[string] `json:"tier_lower_bound,required"`
}

Expand Down Expand Up @@ -3705,7 +3687,6 @@ func (r PriceNewParamsNewFloatingMaxGroupTieredPackagePriceCadence) IsKnown() bo
type PriceNewParamsNewFloatingMaxGroupTieredPackagePriceMaxGroupTieredPackageConfig struct {
// The event property used to group before tiering the group with the highest value
GroupingKey param.Field[string] `json:"grouping_key,required"`
// Package size
PackageSize param.Field[string] `json:"package_size,required"`
// Apply tiered pricing to the largest group after grouping with the provided key.
Tiers param.Field[[]PriceNewParamsNewFloatingMaxGroupTieredPackagePriceMaxGroupTieredPackageConfigTier] `json:"tiers,required"`
Expand All @@ -3717,7 +3698,6 @@ func (r PriceNewParamsNewFloatingMaxGroupTieredPackagePriceMaxGroupTieredPackage

// Configuration for a single tier
type PriceNewParamsNewFloatingMaxGroupTieredPackagePriceMaxGroupTieredPackageConfigTier struct {
// Tier lower bound
TierLowerBound param.Field[string] `json:"tier_lower_bound,required"`
// Per unit amount
UnitAmount param.Field[string] `json:"unit_amount,required"`
Expand Down Expand Up @@ -3884,11 +3864,8 @@ func (r PriceNewParamsNewFloatingScalableMatrixWithUnitPricingPriceScalableMatri

// Configuration for a single matrix scaling factor
type PriceNewParamsNewFloatingScalableMatrixWithUnitPricingPriceScalableMatrixWithUnitPricingConfigMatrixScalingFactor struct {
// First dimension value
FirstDimensionValue param.Field[string] `json:"first_dimension_value,required"`
// Scaling factor
ScalingFactor param.Field[string] `json:"scaling_factor,required"`
// Second dimension value (optional)
FirstDimensionValue param.Field[string] `json:"first_dimension_value,required"`
ScalingFactor param.Field[string] `json:"scaling_factor,required"`
SecondDimensionValue param.Field[string] `json:"second_dimension_value"`
}

Expand Down Expand Up @@ -4024,8 +4001,7 @@ type PriceNewParamsNewFloatingScalableMatrixWithTieredPricingPriceScalableMatrix
FirstDimension param.Field[string] `json:"first_dimension,required"`
// Apply a scaling factor to each dimension
MatrixScalingFactors param.Field[[]PriceNewParamsNewFloatingScalableMatrixWithTieredPricingPriceScalableMatrixWithTieredPricingConfigMatrixScalingFactor] `json:"matrix_scaling_factors,required"`
// Tier pricing structure
Tiers param.Field[[]PriceNewParamsNewFloatingScalableMatrixWithTieredPricingPriceScalableMatrixWithTieredPricingConfigTier] `json:"tiers,required"`
Tiers param.Field[[]PriceNewParamsNewFloatingScalableMatrixWithTieredPricingPriceScalableMatrixWithTieredPricingConfigTier] `json:"tiers,required"`
// Used for the scalable matrix second dimension (optional)
SecondDimension param.Field[string] `json:"second_dimension"`
}
Expand All @@ -4036,11 +4012,8 @@ func (r PriceNewParamsNewFloatingScalableMatrixWithTieredPricingPriceScalableMat

// Configuration for a single matrix scaling factor
type PriceNewParamsNewFloatingScalableMatrixWithTieredPricingPriceScalableMatrixWithTieredPricingConfigMatrixScalingFactor struct {
// First dimension value
FirstDimensionValue param.Field[string] `json:"first_dimension_value,required"`
// Scaling factor
ScalingFactor param.Field[string] `json:"scaling_factor,required"`
// Second dimension value (optional)
FirstDimensionValue param.Field[string] `json:"first_dimension_value,required"`
ScalingFactor param.Field[string] `json:"scaling_factor,required"`
SecondDimensionValue param.Field[string] `json:"second_dimension_value"`
}

Expand All @@ -4050,10 +4023,8 @@ func (r PriceNewParamsNewFloatingScalableMatrixWithTieredPricingPriceScalableMat

// Configuration for a single tier entry with business logic
type PriceNewParamsNewFloatingScalableMatrixWithTieredPricingPriceScalableMatrixWithTieredPricingConfigTier struct {
// Tier lower bound
TierLowerBound param.Field[string] `json:"tier_lower_bound,required"`
// Per unit amount
UnitAmount param.Field[string] `json:"unit_amount,required"`
UnitAmount param.Field[string] `json:"unit_amount,required"`
}

func (r PriceNewParamsNewFloatingScalableMatrixWithTieredPricingPriceScalableMatrixWithTieredPricingConfigTier) MarshalJSON() (data []byte, err error) {
Expand Down Expand Up @@ -4171,8 +4142,7 @@ func (r PriceNewParamsNewFloatingCumulativeGroupedBulkPriceCadence) IsKnown() bo
type PriceNewParamsNewFloatingCumulativeGroupedBulkPriceCumulativeGroupedBulkConfig struct {
// Each tier lower bound must have the same group of values.
DimensionValues param.Field[[]PriceNewParamsNewFloatingCumulativeGroupedBulkPriceCumulativeGroupedBulkConfigDimensionValue] `json:"dimension_values,required"`
// Grouping key name
Group param.Field[string] `json:"group,required"`
Group param.Field[string] `json:"group,required"`
}

func (r PriceNewParamsNewFloatingCumulativeGroupedBulkPriceCumulativeGroupedBulkConfig) MarshalJSON() (data []byte, err error) {
Expand Down
Loading