diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 397c420..cdcf20e 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.22.0" + ".": "1.23.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 4975db4..05461df 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 118 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-b6ec9a6bf40b74575d917ab145b2413bc61dcd6989bb9d1aa41624bf3437599e.yml -openapi_spec_hash: 53cf9363c3bd9649e0af5f713abdcba7 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-b330498c2bfb80605f4c406e8b228c0a4ece85247b21f62f93273a00abb53d35.yml +openapi_spec_hash: 16a82d0eb23b68218d584e385bee43da config_hash: 1f73a949b649ecfe6ec68ba1bb459dc2 diff --git a/CHANGELOG.md b/CHANGELOG.md index 345d842..5ec1a1d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.23.0 (2025-10-03) + +Full Changelog: [v1.22.0...v1.23.0](https://github.com/orbcorp/orb-go/compare/v1.22.0...v1.23.0) + +### Features + +* **api:** api update ([911fefc](https://github.com/orbcorp/orb-go/commit/911fefcc0b70ea4d3478da4ebcfa5e94091b15e4)) + ## 1.22.0 (2025-09-30) Full Changelog: [v1.21.0...v1.22.0](https://github.com/orbcorp/orb-go/compare/v1.21.0...v1.22.0) diff --git a/README.md b/README.md index 96350c1..6edd0c2 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Or to pin the version: ```sh -go get -u 'github.com/orbcorp/orb-go@v1.22.0' +go get -u 'github.com/orbcorp/orb-go@v1.23.0' ``` diff --git a/beta_test.go b/beta_test.go index 0357cee..9de78e1 100644 --- a/beta_test.go +++ b/beta_test.go @@ -67,8 +67,7 @@ func TestBetaNewPlanVersionWithOptionalParams(t *testing.T) { ModelType: orb.F(shared.NewPlanUnitPriceModelTypeUnit), Name: orb.F("Annual fee"), UnitConfig: orb.F(shared.UnitConfigParam{ - UnitAmount: orb.F("unit_amount"), - ScalingFactor: orb.F(0.000000), + UnitAmount: orb.F("unit_amount"), }), BillableMetricID: orb.F("billable_metric_id"), BilledInAdvance: orb.F(true), @@ -148,8 +147,7 @@ func TestBetaNewPlanVersionWithOptionalParams(t *testing.T) { ModelType: orb.F(shared.NewPlanUnitPriceModelTypeUnit), Name: orb.F("Annual fee"), UnitConfig: orb.F(shared.UnitConfigParam{ - UnitAmount: orb.F("unit_amount"), - ScalingFactor: orb.F(0.000000), + UnitAmount: orb.F("unit_amount"), }), BillableMetricID: orb.F("billable_metric_id"), BilledInAdvance: orb.F(true), diff --git a/betaexternalplanid_test.go b/betaexternalplanid_test.go index 66e7c23..179f14e 100644 --- a/betaexternalplanid_test.go +++ b/betaexternalplanid_test.go @@ -67,8 +67,7 @@ func TestBetaExternalPlanIDNewPlanVersionWithOptionalParams(t *testing.T) { ModelType: orb.F(shared.NewPlanUnitPriceModelTypeUnit), Name: orb.F("Annual fee"), UnitConfig: orb.F(shared.UnitConfigParam{ - UnitAmount: orb.F("unit_amount"), - ScalingFactor: orb.F(0.000000), + UnitAmount: orb.F("unit_amount"), }), BillableMetricID: orb.F("billable_metric_id"), BilledInAdvance: orb.F(true), @@ -148,8 +147,7 @@ func TestBetaExternalPlanIDNewPlanVersionWithOptionalParams(t *testing.T) { ModelType: orb.F(shared.NewPlanUnitPriceModelTypeUnit), Name: orb.F("Annual fee"), UnitConfig: orb.F(shared.UnitConfigParam{ - UnitAmount: orb.F("unit_amount"), - ScalingFactor: orb.F(0.000000), + UnitAmount: orb.F("unit_amount"), }), BillableMetricID: orb.F("billable_metric_id"), BilledInAdvance: orb.F(true), diff --git a/internal/version.go b/internal/version.go index e0a625a..bcfb69e 100644 --- a/internal/version.go +++ b/internal/version.go @@ -2,4 +2,4 @@ package internal -const PackageVersion = "1.22.0" // x-release-please-version +const PackageVersion = "1.23.0" // x-release-please-version diff --git a/invoice_test.go b/invoice_test.go index 89b774f..f3f4408 100644 --- a/invoice_test.go +++ b/invoice_test.go @@ -38,8 +38,7 @@ func TestInvoiceNewWithOptionalParams(t *testing.T) { Quantity: orb.F(1.000000), StartDate: orb.F(time.Now()), UnitConfig: orb.F(shared.UnitConfigParam{ - UnitAmount: orb.F("unit_amount"), - ScalingFactor: orb.F(0.000000), + UnitAmount: orb.F("unit_amount"), }), }}), CustomerID: orb.F("4khy3nwzktxv7"), diff --git a/plan_test.go b/plan_test.go index b1a0209..85a2ffc 100644 --- a/plan_test.go +++ b/plan_test.go @@ -48,8 +48,7 @@ func TestPlanNewWithOptionalParams(t *testing.T) { ModelType: orb.F(shared.NewPlanUnitPriceModelTypeUnit), Name: orb.F("Annual fee"), UnitConfig: orb.F(shared.UnitConfigParam{ - UnitAmount: orb.F("unit_amount"), - ScalingFactor: orb.F(0.000000), + UnitAmount: orb.F("unit_amount"), }), BillableMetricID: orb.F("billable_metric_id"), BilledInAdvance: orb.F(true), diff --git a/price_test.go b/price_test.go index 8508d20..f6805ef 100644 --- a/price_test.go +++ b/price_test.go @@ -34,8 +34,7 @@ func TestPriceNewWithOptionalParams(t *testing.T) { ModelType: orb.F(orb.PriceNewParamsNewFloatingUnitPriceModelTypeUnit), Name: orb.F("Annual fee"), UnitConfig: orb.F(shared.UnitConfigParam{ - UnitAmount: orb.F("unit_amount"), - ScalingFactor: orb.F(0.000000), + UnitAmount: orb.F("unit_amount"), }), BillableMetricID: orb.F("billable_metric_id"), BilledInAdvance: orb.F(true), @@ -191,8 +190,7 @@ func TestPriceEvaluateMultipleWithOptionalParams(t *testing.T) { ModelType: orb.F(shared.NewFloatingUnitPriceModelTypeUnit), Name: orb.F("Annual fee"), UnitConfig: orb.F(shared.UnitConfigParam{ - UnitAmount: orb.F("unit_amount"), - ScalingFactor: orb.F(0.000000), + UnitAmount: orb.F("unit_amount"), }), BillableMetricID: orb.F("billable_metric_id"), BilledInAdvance: orb.F(true), @@ -272,8 +270,7 @@ func TestPriceEvaluatePreviewEventsWithOptionalParams(t *testing.T) { ModelType: orb.F(shared.NewFloatingUnitPriceModelTypeUnit), Name: orb.F("Annual fee"), UnitConfig: orb.F(shared.UnitConfigParam{ - UnitAmount: orb.F("unit_amount"), - ScalingFactor: orb.F(0.000000), + UnitAmount: orb.F("unit_amount"), }), BillableMetricID: orb.F("billable_metric_id"), BilledInAdvance: orb.F(true), diff --git a/shared/shared.go b/shared/shared.go index 212d79c..3f05f3c 100644 --- a/shared/shared.go +++ b/shared/shared.go @@ -22247,18 +22247,15 @@ func (r TrialDiscountParam) ImplementsDiscountUnionParam() {} // Configuration for unit pricing type UnitConfig struct { // Rate per unit of usage - UnitAmount string `json:"unit_amount,required"` - // Multiplier to scale rated quantity by - ScalingFactor float64 `json:"scaling_factor,nullable"` - JSON unitConfigJSON `json:"-"` + UnitAmount string `json:"unit_amount,required"` + JSON unitConfigJSON `json:"-"` } // unitConfigJSON contains the JSON metadata for the struct [UnitConfig] type unitConfigJSON struct { - UnitAmount apijson.Field - ScalingFactor apijson.Field - raw string - ExtraFields map[string]apijson.Field + UnitAmount apijson.Field + raw string + ExtraFields map[string]apijson.Field } func (r *UnitConfig) UnmarshalJSON(data []byte) (err error) { @@ -22273,8 +22270,6 @@ func (r unitConfigJSON) RawJSON() string { type UnitConfigParam struct { // Rate per unit of usage UnitAmount param.Field[string] `json:"unit_amount,required"` - // Multiplier to scale rated quantity by - ScalingFactor param.Field[float64] `json:"scaling_factor"` } func (r UnitConfigParam) MarshalJSON() (data []byte, err error) { diff --git a/subscription_test.go b/subscription_test.go index 3d593a7..5e07bd9 100644 --- a/subscription_test.go +++ b/subscription_test.go @@ -76,8 +76,7 @@ func TestSubscriptionNewWithOptionalParams(t *testing.T) { ModelType: orb.F(orb.NewSubscriptionUnitPriceModelTypeUnit), Name: orb.F("Annual fee"), UnitConfig: orb.F(shared.UnitConfigParam{ - UnitAmount: orb.F("unit_amount"), - ScalingFactor: orb.F(0.000000), + UnitAmount: orb.F("unit_amount"), }), BillableMetricID: orb.F("billable_metric_id"), BilledInAdvance: orb.F(true), @@ -196,8 +195,7 @@ func TestSubscriptionNewWithOptionalParams(t *testing.T) { ModelType: orb.F(orb.NewSubscriptionUnitPriceModelTypeUnit), Name: orb.F("Annual fee"), UnitConfig: orb.F(shared.UnitConfigParam{ - UnitAmount: orb.F("unit_amount"), - ScalingFactor: orb.F(0.000000), + UnitAmount: orb.F("unit_amount"), }), BillableMetricID: orb.F("billable_metric_id"), BilledInAdvance: orb.F(true), @@ -516,8 +514,7 @@ func TestSubscriptionPriceIntervalsWithOptionalParams(t *testing.T) { ModelType: orb.F(shared.NewFloatingUnitPriceModelTypeUnit), Name: orb.F("Annual fee"), UnitConfig: orb.F(shared.UnitConfigParam{ - UnitAmount: orb.F("unit_amount"), - ScalingFactor: orb.F(0.000000), + UnitAmount: orb.F("unit_amount"), }), BillableMetricID: orb.F("billable_metric_id"), BilledInAdvance: orb.F(true), @@ -697,8 +694,7 @@ func TestSubscriptionSchedulePlanChangeWithOptionalParams(t *testing.T) { ModelType: orb.F(orb.NewSubscriptionUnitPriceModelTypeUnit), Name: orb.F("Annual fee"), UnitConfig: orb.F(shared.UnitConfigParam{ - UnitAmount: orb.F("unit_amount"), - ScalingFactor: orb.F(0.000000), + UnitAmount: orb.F("unit_amount"), }), BillableMetricID: orb.F("billable_metric_id"), BilledInAdvance: orb.F(true), @@ -808,8 +804,7 @@ func TestSubscriptionSchedulePlanChangeWithOptionalParams(t *testing.T) { ModelType: orb.F(orb.NewSubscriptionUnitPriceModelTypeUnit), Name: orb.F("Annual fee"), UnitConfig: orb.F(shared.UnitConfigParam{ - UnitAmount: orb.F("unit_amount"), - ScalingFactor: orb.F(0.000000), + UnitAmount: orb.F("unit_amount"), }), BillableMetricID: orb.F("billable_metric_id"), BilledInAdvance: orb.F(true),