From 0be0b27fded5be04aea7dad0bc196f298b72f2f0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 10 Apr 2026 18:08:51 +0000 Subject: [PATCH 1/3] docs: improve examples --- subscription_test.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/subscription_test.go b/subscription_test.go index 490d7cf9..58eeca21 100644 --- a/subscription_test.go +++ b/subscription_test.go @@ -509,7 +509,7 @@ func TestSubscriptionPriceIntervalsWithOptionalParams(t *testing.T) { "subscription_id", orb.SubscriptionPriceIntervalsParams{ Add: orb.F([]orb.SubscriptionPriceIntervalsParamsAdd{{ - StartDate: orb.F[orb.SubscriptionPriceIntervalsParamsAddStartDateUnion](shared.UnionTime(time.Now())), + StartDate: orb.F[orb.SubscriptionPriceIntervalsParamsAddStartDateUnion](shared.BillingCycleRelativeDate(shared.BillingCycleRelativeDateStartOfTerm)), AllocationPrice: orb.F(shared.NewAllocationPriceParam{ Amount: orb.F("10.00"), Cadence: orb.F(shared.NewAllocationPriceCadenceMonthly), @@ -533,7 +533,7 @@ func TestSubscriptionPriceIntervalsWithOptionalParams(t *testing.T) { AmountDiscount: orb.F(0.000000), DiscountType: orb.F(orb.SubscriptionPriceIntervalsParamsAddDiscountsAmountDiscountCreationParamsDiscountTypeAmount), }}), - EndDate: orb.F[orb.SubscriptionPriceIntervalsParamsAddEndDateUnion](shared.UnionTime(time.Now())), + EndDate: orb.F[orb.SubscriptionPriceIntervalsParamsAddEndDateUnion](shared.BillingCycleRelativeDate(shared.BillingCycleRelativeDateStartOfTerm)), ExternalPriceID: orb.F("external_price_id"), Filter: orb.F("my_property > 100 AND my_other_property = 'bar'"), FixedFeeQuantityTransitions: orb.F([]orb.SubscriptionPriceIntervalsParamsAddFixedFeeQuantityTransition{{ @@ -589,7 +589,7 @@ func TestSubscriptionPriceIntervalsWithOptionalParams(t *testing.T) { UsageCustomerIDs: orb.F([]string{"string"}), }}), AddAdjustments: orb.F([]orb.SubscriptionPriceIntervalsParamsAddAdjustment{{ - StartDate: orb.F[orb.SubscriptionPriceIntervalsParamsAddAdjustmentsStartDateUnion](shared.UnionTime(time.Now())), + StartDate: orb.F[orb.SubscriptionPriceIntervalsParamsAddAdjustmentsStartDateUnion](shared.BillingCycleRelativeDate(shared.BillingCycleRelativeDateStartOfTerm)), Adjustment: orb.F[orb.SubscriptionPriceIntervalsParamsAddAdjustmentsAdjustmentUnion](shared.NewPercentageDiscountParam{ AdjustmentType: orb.F(shared.NewPercentageDiscountAdjustmentTypePercentageDiscount), PercentageDiscount: orb.F(0.000000), @@ -606,7 +606,7 @@ func TestSubscriptionPriceIntervalsWithOptionalParams(t *testing.T) { PriceType: orb.F(shared.NewPercentageDiscountPriceTypeUsage), }), AdjustmentID: orb.F("h74gfhdjvn7ujokd"), - EndDate: orb.F[orb.SubscriptionPriceIntervalsParamsAddAdjustmentsEndDateUnion](shared.UnionTime(time.Now())), + EndDate: orb.F[orb.SubscriptionPriceIntervalsParamsAddAdjustmentsEndDateUnion](shared.BillingCycleRelativeDate(shared.BillingCycleRelativeDateStartOfTerm)), }}), AllowInvoiceCreditOrVoid: orb.F(true), CanDeferBilling: orb.F(true), @@ -614,7 +614,7 @@ func TestSubscriptionPriceIntervalsWithOptionalParams(t *testing.T) { PriceIntervalID: orb.F("sdfs6wdjvn7ujokd"), BillingCycleDay: orb.F(int64(0)), CanDeferBilling: orb.F(true), - EndDate: orb.F[orb.SubscriptionPriceIntervalsParamsEditEndDateUnion](shared.UnionTime(time.Now())), + EndDate: orb.F[orb.SubscriptionPriceIntervalsParamsEditEndDateUnion](shared.BillingCycleRelativeDate(shared.BillingCycleRelativeDateStartOfTerm)), Filter: orb.F("my_property > 100 AND my_other_property = 'bar'"), FixedFeeQuantityTransitions: orb.F([]orb.SubscriptionPriceIntervalsParamsEditFixedFeeQuantityTransition{{ EffectiveDate: orb.F(time.Now()), @@ -623,13 +623,13 @@ func TestSubscriptionPriceIntervalsWithOptionalParams(t *testing.T) { MetricParameterOverrides: orb.F(map[string]interface{}{ "foo": "bar", }), - StartDate: orb.F[orb.SubscriptionPriceIntervalsParamsEditStartDateUnion](shared.UnionTime(time.Now())), + StartDate: orb.F[orb.SubscriptionPriceIntervalsParamsEditStartDateUnion](shared.BillingCycleRelativeDate(shared.BillingCycleRelativeDateStartOfTerm)), UsageCustomerIDs: orb.F([]string{"string"}), }}), EditAdjustments: orb.F([]orb.SubscriptionPriceIntervalsParamsEditAdjustment{{ AdjustmentIntervalID: orb.F("sdfs6wdjvn7ujokd"), - EndDate: orb.F[orb.SubscriptionPriceIntervalsParamsEditAdjustmentsEndDateUnion](shared.UnionTime(time.Now())), - StartDate: orb.F[orb.SubscriptionPriceIntervalsParamsEditAdjustmentsStartDateUnion](shared.UnionTime(time.Now())), + EndDate: orb.F[orb.SubscriptionPriceIntervalsParamsEditAdjustmentsEndDateUnion](shared.BillingCycleRelativeDate(shared.BillingCycleRelativeDateStartOfTerm)), + StartDate: orb.F[orb.SubscriptionPriceIntervalsParamsEditAdjustmentsStartDateUnion](shared.BillingCycleRelativeDate(shared.BillingCycleRelativeDateStartOfTerm)), }}), }, ) From 16d7ed97c254d0b845083a04362fe30b8daf59e8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 11 Apr 2026 00:14:49 +0000 Subject: [PATCH 2/3] feat(api): api update --- .stats.yml | 4 +-- creditblock.go | 17 +++++++------ shared/shared.go | 64 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 76 insertions(+), 9 deletions(-) diff --git a/.stats.yml b/.stats.yml index e1694adf..87a29a7d 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 139 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-1ca41c4b1d872cf2a198c8cf5edeeeddac012259a7cf211b102bf137c05b8240.yml -openapi_spec_hash: 955066d4865fc42440cd81e40f5f79cd +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-2b77f13a159cf689a3bba6ac5ff03b6c0df62b772e2da04aff52be86710ca4d4.yml +openapi_spec_hash: 28a3f685403d98ddd68b427d92ed28fb config_hash: c01c1191b1cd696c7ca855ff6d28a8df diff --git a/creditblock.go b/creditblock.go index da9d4026..bc10db30 100644 --- a/creditblock.go +++ b/creditblock.go @@ -79,14 +79,17 @@ func (r *CreditBlockService) Delete(ctx context.Context, blockID string, opts .. // This endpoint returns the credit block and its associated purchasing invoices. // -// If a credit block was purchased (as opposed to being manually added or allocated -// from a subscription), this endpoint returns the invoices that were created to -// charge the customer for the credit block. For credit blocks with payment -// schedules spanning multiple periods (e.g., monthly payments over 12 months), -// multiple invoices will be returned. +// If a credit block was purchased (as opposed to being manually added), this +// endpoint returns the invoices that were created to charge the customer for the +// credit block. For credit blocks with payment schedules spanning multiple periods +// (e.g., monthly payments over 12 months), multiple invoices will be returned. // -// If the credit block was not purchased (e.g., manual increment, allocation), an -// empty invoices list is returned. +// For credit blocks created by subscription allocation prices, this endpoint +// returns the subscription invoice containing the allocation line item that +// created the block. +// +// If the credit block was not purchased (e.g., manual increment), an empty +// invoices list is returned. // // **Note: This endpoint is currently experimental and its interface may change in // future releases. Please contact support before building production integrations diff --git a/shared/shared.go b/shared/shared.go index d4dc9a4f..9c91272b 100644 --- a/shared/shared.go +++ b/shared/shared.go @@ -15062,6 +15062,7 @@ type Price struct { Discount Discount `json:"discount" api:"required,nullable"` ExternalPriceID string `json:"external_price_id" api:"required,nullable"` FixedPriceQuantity float64 `json:"fixed_price_quantity" api:"required,nullable"` + InvoiceGroupingKey string `json:"invoice_grouping_key" api:"required,nullable"` InvoicingCycleConfiguration BillingCycleConfiguration `json:"invoicing_cycle_configuration" api:"required,nullable"` // A minimal representation of an Item containing only the essential identifying // information. @@ -15219,6 +15220,7 @@ type priceJSON struct { Discount apijson.Field ExternalPriceID apijson.Field FixedPriceQuantity apijson.Field + InvoiceGroupingKey apijson.Field InvoicingCycleConfiguration apijson.Field Item apijson.Field Maximum apijson.Field @@ -15511,6 +15513,7 @@ type PriceUnitPrice struct { Discount Discount `json:"discount" api:"required,nullable"` ExternalPriceID string `json:"external_price_id" api:"required,nullable"` FixedPriceQuantity float64 `json:"fixed_price_quantity" api:"required,nullable"` + InvoiceGroupingKey string `json:"invoice_grouping_key" api:"required,nullable"` InvoicingCycleConfiguration BillingCycleConfiguration `json:"invoicing_cycle_configuration" api:"required,nullable"` // A minimal representation of an Item containing only the essential identifying // information. @@ -15562,6 +15565,7 @@ type priceUnitPriceJSON struct { Discount apijson.Field ExternalPriceID apijson.Field FixedPriceQuantity apijson.Field + InvoiceGroupingKey apijson.Field InvoicingCycleConfiguration apijson.Field Item apijson.Field Maximum apijson.Field @@ -15844,6 +15848,7 @@ type PriceTieredPrice struct { Discount Discount `json:"discount" api:"required,nullable"` ExternalPriceID string `json:"external_price_id" api:"required,nullable"` FixedPriceQuantity float64 `json:"fixed_price_quantity" api:"required,nullable"` + InvoiceGroupingKey string `json:"invoice_grouping_key" api:"required,nullable"` InvoicingCycleConfiguration BillingCycleConfiguration `json:"invoicing_cycle_configuration" api:"required,nullable"` // A minimal representation of an Item containing only the essential identifying // information. @@ -15896,6 +15901,7 @@ type priceTieredPriceJSON struct { Discount apijson.Field ExternalPriceID apijson.Field FixedPriceQuantity apijson.Field + InvoiceGroupingKey apijson.Field InvoicingCycleConfiguration apijson.Field Item apijson.Field Maximum apijson.Field @@ -16180,6 +16186,7 @@ type PriceBulkPrice struct { Discount Discount `json:"discount" api:"required,nullable"` ExternalPriceID string `json:"external_price_id" api:"required,nullable"` FixedPriceQuantity float64 `json:"fixed_price_quantity" api:"required,nullable"` + InvoiceGroupingKey string `json:"invoice_grouping_key" api:"required,nullable"` InvoicingCycleConfiguration BillingCycleConfiguration `json:"invoicing_cycle_configuration" api:"required,nullable"` // A minimal representation of an Item containing only the essential identifying // information. @@ -16230,6 +16237,7 @@ type priceBulkPriceJSON struct { Discount apijson.Field ExternalPriceID apijson.Field FixedPriceQuantity apijson.Field + InvoiceGroupingKey apijson.Field InvoicingCycleConfiguration apijson.Field Item apijson.Field Maximum apijson.Field @@ -16513,6 +16521,7 @@ type PriceBulkWithFiltersPrice struct { Discount Discount `json:"discount" api:"required,nullable"` ExternalPriceID string `json:"external_price_id" api:"required,nullable"` FixedPriceQuantity float64 `json:"fixed_price_quantity" api:"required,nullable"` + InvoiceGroupingKey string `json:"invoice_grouping_key" api:"required,nullable"` InvoicingCycleConfiguration BillingCycleConfiguration `json:"invoicing_cycle_configuration" api:"required,nullable"` // A minimal representation of an Item containing only the essential identifying // information. @@ -16564,6 +16573,7 @@ type priceBulkWithFiltersPriceJSON struct { Discount apijson.Field ExternalPriceID apijson.Field FixedPriceQuantity apijson.Field + InvoiceGroupingKey apijson.Field InvoicingCycleConfiguration apijson.Field Item apijson.Field Maximum apijson.Field @@ -16923,6 +16933,7 @@ type PricePackagePrice struct { Discount Discount `json:"discount" api:"required,nullable"` ExternalPriceID string `json:"external_price_id" api:"required,nullable"` FixedPriceQuantity float64 `json:"fixed_price_quantity" api:"required,nullable"` + InvoiceGroupingKey string `json:"invoice_grouping_key" api:"required,nullable"` InvoicingCycleConfiguration BillingCycleConfiguration `json:"invoicing_cycle_configuration" api:"required,nullable"` // A minimal representation of an Item containing only the essential identifying // information. @@ -16975,6 +16986,7 @@ type pricePackagePriceJSON struct { Discount apijson.Field ExternalPriceID apijson.Field FixedPriceQuantity apijson.Field + InvoiceGroupingKey apijson.Field InvoicingCycleConfiguration apijson.Field Item apijson.Field Maximum apijson.Field @@ -17257,6 +17269,7 @@ type PriceMatrixPrice struct { Discount Discount `json:"discount" api:"required,nullable"` ExternalPriceID string `json:"external_price_id" api:"required,nullable"` FixedPriceQuantity float64 `json:"fixed_price_quantity" api:"required,nullable"` + InvoiceGroupingKey string `json:"invoice_grouping_key" api:"required,nullable"` InvoicingCycleConfiguration BillingCycleConfiguration `json:"invoicing_cycle_configuration" api:"required,nullable"` // A minimal representation of an Item containing only the essential identifying // information. @@ -17309,6 +17322,7 @@ type priceMatrixPriceJSON struct { Discount apijson.Field ExternalPriceID apijson.Field FixedPriceQuantity apijson.Field + InvoiceGroupingKey apijson.Field InvoicingCycleConfiguration apijson.Field Item apijson.Field MatrixConfig apijson.Field @@ -17591,6 +17605,7 @@ type PriceThresholdTotalAmountPrice struct { Discount Discount `json:"discount" api:"required,nullable"` ExternalPriceID string `json:"external_price_id" api:"required,nullable"` FixedPriceQuantity float64 `json:"fixed_price_quantity" api:"required,nullable"` + InvoiceGroupingKey string `json:"invoice_grouping_key" api:"required,nullable"` InvoicingCycleConfiguration BillingCycleConfiguration `json:"invoicing_cycle_configuration" api:"required,nullable"` // A minimal representation of an Item containing only the essential identifying // information. @@ -17643,6 +17658,7 @@ type priceThresholdTotalAmountPriceJSON struct { Discount apijson.Field ExternalPriceID apijson.Field FixedPriceQuantity apijson.Field + InvoiceGroupingKey apijson.Field InvoicingCycleConfiguration apijson.Field Item apijson.Field Maximum apijson.Field @@ -17979,6 +17995,7 @@ type PriceTieredPackagePrice struct { Discount Discount `json:"discount" api:"required,nullable"` ExternalPriceID string `json:"external_price_id" api:"required,nullable"` FixedPriceQuantity float64 `json:"fixed_price_quantity" api:"required,nullable"` + InvoiceGroupingKey string `json:"invoice_grouping_key" api:"required,nullable"` InvoicingCycleConfiguration BillingCycleConfiguration `json:"invoicing_cycle_configuration" api:"required,nullable"` // A minimal representation of an Item containing only the essential identifying // information. @@ -18031,6 +18048,7 @@ type priceTieredPackagePriceJSON struct { Discount apijson.Field ExternalPriceID apijson.Field FixedPriceQuantity apijson.Field + InvoiceGroupingKey apijson.Field InvoicingCycleConfiguration apijson.Field Item apijson.Field Maximum apijson.Field @@ -18366,6 +18384,7 @@ type PriceTieredWithMinimumPrice struct { Discount Discount `json:"discount" api:"required,nullable"` ExternalPriceID string `json:"external_price_id" api:"required,nullable"` FixedPriceQuantity float64 `json:"fixed_price_quantity" api:"required,nullable"` + InvoiceGroupingKey string `json:"invoice_grouping_key" api:"required,nullable"` InvoicingCycleConfiguration BillingCycleConfiguration `json:"invoicing_cycle_configuration" api:"required,nullable"` // A minimal representation of an Item containing only the essential identifying // information. @@ -18418,6 +18437,7 @@ type priceTieredWithMinimumPriceJSON struct { Discount apijson.Field ExternalPriceID apijson.Field FixedPriceQuantity apijson.Field + InvoiceGroupingKey apijson.Field InvoicingCycleConfiguration apijson.Field Item apijson.Field Maximum apijson.Field @@ -18759,6 +18779,7 @@ type PriceGroupedTieredPrice struct { FixedPriceQuantity float64 `json:"fixed_price_quantity" api:"required,nullable"` // Configuration for grouped_tiered pricing GroupedTieredConfig PriceGroupedTieredPriceGroupedTieredConfig `json:"grouped_tiered_config" api:"required"` + InvoiceGroupingKey string `json:"invoice_grouping_key" api:"required,nullable"` InvoicingCycleConfiguration BillingCycleConfiguration `json:"invoicing_cycle_configuration" api:"required,nullable"` // A minimal representation of an Item containing only the essential identifying // information. @@ -18810,6 +18831,7 @@ type priceGroupedTieredPriceJSON struct { ExternalPriceID apijson.Field FixedPriceQuantity apijson.Field GroupedTieredConfig apijson.Field + InvoiceGroupingKey apijson.Field InvoicingCycleConfiguration apijson.Field Item apijson.Field Maximum apijson.Field @@ -19143,6 +19165,7 @@ type PriceTieredPackageWithMinimumPrice struct { Discount Discount `json:"discount" api:"required,nullable"` ExternalPriceID string `json:"external_price_id" api:"required,nullable"` FixedPriceQuantity float64 `json:"fixed_price_quantity" api:"required,nullable"` + InvoiceGroupingKey string `json:"invoice_grouping_key" api:"required,nullable"` InvoicingCycleConfiguration BillingCycleConfiguration `json:"invoicing_cycle_configuration" api:"required,nullable"` // A minimal representation of an Item containing only the essential identifying // information. @@ -19195,6 +19218,7 @@ type priceTieredPackageWithMinimumPriceJSON struct { Discount apijson.Field ExternalPriceID apijson.Field FixedPriceQuantity apijson.Field + InvoiceGroupingKey apijson.Field InvoicingCycleConfiguration apijson.Field Item apijson.Field Maximum apijson.Field @@ -19531,6 +19555,7 @@ type PricePackageWithAllocationPrice struct { Discount Discount `json:"discount" api:"required,nullable"` ExternalPriceID string `json:"external_price_id" api:"required,nullable"` FixedPriceQuantity float64 `json:"fixed_price_quantity" api:"required,nullable"` + InvoiceGroupingKey string `json:"invoice_grouping_key" api:"required,nullable"` InvoicingCycleConfiguration BillingCycleConfiguration `json:"invoicing_cycle_configuration" api:"required,nullable"` // A minimal representation of an Item containing only the essential identifying // information. @@ -19583,6 +19608,7 @@ type pricePackageWithAllocationPriceJSON struct { Discount apijson.Field ExternalPriceID apijson.Field FixedPriceQuantity apijson.Field + InvoiceGroupingKey apijson.Field InvoicingCycleConfiguration apijson.Field Item apijson.Field Maximum apijson.Field @@ -19892,6 +19918,7 @@ type PriceUnitWithPercentPrice struct { Discount Discount `json:"discount" api:"required,nullable"` ExternalPriceID string `json:"external_price_id" api:"required,nullable"` FixedPriceQuantity float64 `json:"fixed_price_quantity" api:"required,nullable"` + InvoiceGroupingKey string `json:"invoice_grouping_key" api:"required,nullable"` InvoicingCycleConfiguration BillingCycleConfiguration `json:"invoicing_cycle_configuration" api:"required,nullable"` // A minimal representation of an Item containing only the essential identifying // information. @@ -19944,6 +19971,7 @@ type priceUnitWithPercentPriceJSON struct { Discount apijson.Field ExternalPriceID apijson.Field FixedPriceQuantity apijson.Field + InvoiceGroupingKey apijson.Field InvoicingCycleConfiguration apijson.Field Item apijson.Field Maximum apijson.Field @@ -20252,6 +20280,7 @@ type PriceMatrixWithAllocationPrice struct { Discount Discount `json:"discount" api:"required,nullable"` ExternalPriceID string `json:"external_price_id" api:"required,nullable"` FixedPriceQuantity float64 `json:"fixed_price_quantity" api:"required,nullable"` + InvoiceGroupingKey string `json:"invoice_grouping_key" api:"required,nullable"` InvoicingCycleConfiguration BillingCycleConfiguration `json:"invoicing_cycle_configuration" api:"required,nullable"` // A minimal representation of an Item containing only the essential identifying // information. @@ -20304,6 +20333,7 @@ type priceMatrixWithAllocationPriceJSON struct { Discount apijson.Field ExternalPriceID apijson.Field FixedPriceQuantity apijson.Field + InvoiceGroupingKey apijson.Field InvoicingCycleConfiguration apijson.Field Item apijson.Field MatrixWithAllocationConfig apijson.Field @@ -20586,6 +20616,7 @@ type PriceTieredWithProrationPrice struct { Discount Discount `json:"discount" api:"required,nullable"` ExternalPriceID string `json:"external_price_id" api:"required,nullable"` FixedPriceQuantity float64 `json:"fixed_price_quantity" api:"required,nullable"` + InvoiceGroupingKey string `json:"invoice_grouping_key" api:"required,nullable"` InvoicingCycleConfiguration BillingCycleConfiguration `json:"invoicing_cycle_configuration" api:"required,nullable"` // A minimal representation of an Item containing only the essential identifying // information. @@ -20638,6 +20669,7 @@ type priceTieredWithProrationPriceJSON struct { Discount apijson.Field ExternalPriceID apijson.Field FixedPriceQuantity apijson.Field + InvoiceGroupingKey apijson.Field InvoicingCycleConfiguration apijson.Field Item apijson.Field Maximum apijson.Field @@ -20971,6 +21003,7 @@ type PriceUnitWithProrationPrice struct { Discount Discount `json:"discount" api:"required,nullable"` ExternalPriceID string `json:"external_price_id" api:"required,nullable"` FixedPriceQuantity float64 `json:"fixed_price_quantity" api:"required,nullable"` + InvoiceGroupingKey string `json:"invoice_grouping_key" api:"required,nullable"` InvoicingCycleConfiguration BillingCycleConfiguration `json:"invoicing_cycle_configuration" api:"required,nullable"` // A minimal representation of an Item containing only the essential identifying // information. @@ -21023,6 +21056,7 @@ type priceUnitWithProrationPriceJSON struct { Discount apijson.Field ExternalPriceID apijson.Field FixedPriceQuantity apijson.Field + InvoiceGroupingKey apijson.Field InvoicingCycleConfiguration apijson.Field Item apijson.Field Maximum apijson.Field @@ -21330,6 +21364,7 @@ type PriceGroupedAllocationPrice struct { FixedPriceQuantity float64 `json:"fixed_price_quantity" api:"required,nullable"` // Configuration for grouped_allocation pricing GroupedAllocationConfig PriceGroupedAllocationPriceGroupedAllocationConfig `json:"grouped_allocation_config" api:"required"` + InvoiceGroupingKey string `json:"invoice_grouping_key" api:"required,nullable"` InvoicingCycleConfiguration BillingCycleConfiguration `json:"invoicing_cycle_configuration" api:"required,nullable"` // A minimal representation of an Item containing only the essential identifying // information. @@ -21381,6 +21416,7 @@ type priceGroupedAllocationPriceJSON struct { ExternalPriceID apijson.Field FixedPriceQuantity apijson.Field GroupedAllocationConfig apijson.Field + InvoiceGroupingKey apijson.Field InvoicingCycleConfiguration apijson.Field Item apijson.Field Maximum apijson.Field @@ -21693,6 +21729,7 @@ type PriceBulkWithProrationPrice struct { Discount Discount `json:"discount" api:"required,nullable"` ExternalPriceID string `json:"external_price_id" api:"required,nullable"` FixedPriceQuantity float64 `json:"fixed_price_quantity" api:"required,nullable"` + InvoiceGroupingKey string `json:"invoice_grouping_key" api:"required,nullable"` InvoicingCycleConfiguration BillingCycleConfiguration `json:"invoicing_cycle_configuration" api:"required,nullable"` // A minimal representation of an Item containing only the essential identifying // information. @@ -21744,6 +21781,7 @@ type priceBulkWithProrationPriceJSON struct { Discount apijson.Field ExternalPriceID apijson.Field FixedPriceQuantity apijson.Field + InvoiceGroupingKey apijson.Field InvoicingCycleConfiguration apijson.Field Item apijson.Field Maximum apijson.Field @@ -22076,6 +22114,7 @@ type PriceGroupedWithProratedMinimumPrice struct { FixedPriceQuantity float64 `json:"fixed_price_quantity" api:"required,nullable"` // Configuration for grouped_with_prorated_minimum pricing GroupedWithProratedMinimumConfig PriceGroupedWithProratedMinimumPriceGroupedWithProratedMinimumConfig `json:"grouped_with_prorated_minimum_config" api:"required"` + InvoiceGroupingKey string `json:"invoice_grouping_key" api:"required,nullable"` InvoicingCycleConfiguration BillingCycleConfiguration `json:"invoicing_cycle_configuration" api:"required,nullable"` // A minimal representation of an Item containing only the essential identifying // information. @@ -22127,6 +22166,7 @@ type priceGroupedWithProratedMinimumPriceJSON struct { ExternalPriceID apijson.Field FixedPriceQuantity apijson.Field GroupedWithProratedMinimumConfig apijson.Field + InvoiceGroupingKey apijson.Field InvoicingCycleConfiguration apijson.Field Item apijson.Field Maximum apijson.Field @@ -22443,6 +22483,7 @@ type PriceGroupedWithMeteredMinimumPrice struct { FixedPriceQuantity float64 `json:"fixed_price_quantity" api:"required,nullable"` // Configuration for grouped_with_metered_minimum pricing GroupedWithMeteredMinimumConfig PriceGroupedWithMeteredMinimumPriceGroupedWithMeteredMinimumConfig `json:"grouped_with_metered_minimum_config" api:"required"` + InvoiceGroupingKey string `json:"invoice_grouping_key" api:"required,nullable"` InvoicingCycleConfiguration BillingCycleConfiguration `json:"invoicing_cycle_configuration" api:"required,nullable"` // A minimal representation of an Item containing only the essential identifying // information. @@ -22494,6 +22535,7 @@ type priceGroupedWithMeteredMinimumPriceJSON struct { ExternalPriceID apijson.Field FixedPriceQuantity apijson.Field GroupedWithMeteredMinimumConfig apijson.Field + InvoiceGroupingKey apijson.Field InvoicingCycleConfiguration apijson.Field Item apijson.Field Maximum apijson.Field @@ -22871,6 +22913,7 @@ type PriceGroupedWithMinMaxThresholdsPrice struct { FixedPriceQuantity float64 `json:"fixed_price_quantity" api:"required,nullable"` // Configuration for grouped_with_min_max_thresholds pricing GroupedWithMinMaxThresholdsConfig PriceGroupedWithMinMaxThresholdsPriceGroupedWithMinMaxThresholdsConfig `json:"grouped_with_min_max_thresholds_config" api:"required"` + InvoiceGroupingKey string `json:"invoice_grouping_key" api:"required,nullable"` InvoicingCycleConfiguration BillingCycleConfiguration `json:"invoicing_cycle_configuration" api:"required,nullable"` // A minimal representation of an Item containing only the essential identifying // information. @@ -22922,6 +22965,7 @@ type priceGroupedWithMinMaxThresholdsPriceJSON struct { ExternalPriceID apijson.Field FixedPriceQuantity apijson.Field GroupedWithMinMaxThresholdsConfig apijson.Field + InvoiceGroupingKey apijson.Field InvoicingCycleConfiguration apijson.Field Item apijson.Field Maximum apijson.Field @@ -23239,6 +23283,7 @@ type PriceMatrixWithDisplayNamePrice struct { Discount Discount `json:"discount" api:"required,nullable"` ExternalPriceID string `json:"external_price_id" api:"required,nullable"` FixedPriceQuantity float64 `json:"fixed_price_quantity" api:"required,nullable"` + InvoiceGroupingKey string `json:"invoice_grouping_key" api:"required,nullable"` InvoicingCycleConfiguration BillingCycleConfiguration `json:"invoicing_cycle_configuration" api:"required,nullable"` // A minimal representation of an Item containing only the essential identifying // information. @@ -23291,6 +23336,7 @@ type priceMatrixWithDisplayNamePriceJSON struct { Discount apijson.Field ExternalPriceID apijson.Field FixedPriceQuantity apijson.Field + InvoiceGroupingKey apijson.Field InvoicingCycleConfiguration apijson.Field Item apijson.Field MatrixWithDisplayNameConfig apijson.Field @@ -23632,6 +23678,7 @@ type PriceGroupedTieredPackagePrice struct { FixedPriceQuantity float64 `json:"fixed_price_quantity" api:"required,nullable"` // Configuration for grouped_tiered_package pricing GroupedTieredPackageConfig PriceGroupedTieredPackagePriceGroupedTieredPackageConfig `json:"grouped_tiered_package_config" api:"required"` + InvoiceGroupingKey string `json:"invoice_grouping_key" api:"required,nullable"` InvoicingCycleConfiguration BillingCycleConfiguration `json:"invoicing_cycle_configuration" api:"required,nullable"` // A minimal representation of an Item containing only the essential identifying // information. @@ -23683,6 +23730,7 @@ type priceGroupedTieredPackagePriceJSON struct { ExternalPriceID apijson.Field FixedPriceQuantity apijson.Field GroupedTieredPackageConfig apijson.Field + InvoiceGroupingKey apijson.Field InvoicingCycleConfiguration apijson.Field Item apijson.Field Maximum apijson.Field @@ -24020,6 +24068,7 @@ type PriceMaxGroupTieredPackagePrice struct { Discount Discount `json:"discount" api:"required,nullable"` ExternalPriceID string `json:"external_price_id" api:"required,nullable"` FixedPriceQuantity float64 `json:"fixed_price_quantity" api:"required,nullable"` + InvoiceGroupingKey string `json:"invoice_grouping_key" api:"required,nullable"` InvoicingCycleConfiguration BillingCycleConfiguration `json:"invoicing_cycle_configuration" api:"required,nullable"` // A minimal representation of an Item containing only the essential identifying // information. @@ -24072,6 +24121,7 @@ type priceMaxGroupTieredPackagePriceJSON struct { Discount apijson.Field ExternalPriceID apijson.Field FixedPriceQuantity apijson.Field + InvoiceGroupingKey apijson.Field InvoicingCycleConfiguration apijson.Field Item apijson.Field MaxGroupTieredPackageConfig apijson.Field @@ -24409,6 +24459,7 @@ type PriceScalableMatrixWithUnitPricingPrice struct { Discount Discount `json:"discount" api:"required,nullable"` ExternalPriceID string `json:"external_price_id" api:"required,nullable"` FixedPriceQuantity float64 `json:"fixed_price_quantity" api:"required,nullable"` + InvoiceGroupingKey string `json:"invoice_grouping_key" api:"required,nullable"` InvoicingCycleConfiguration BillingCycleConfiguration `json:"invoicing_cycle_configuration" api:"required,nullable"` // A minimal representation of an Item containing only the essential identifying // information. @@ -24461,6 +24512,7 @@ type priceScalableMatrixWithUnitPricingPriceJSON struct { Discount apijson.Field ExternalPriceID apijson.Field FixedPriceQuantity apijson.Field + InvoiceGroupingKey apijson.Field InvoicingCycleConfiguration apijson.Field Item apijson.Field Maximum apijson.Field @@ -24812,6 +24864,7 @@ type PriceScalableMatrixWithTieredPricingPrice struct { Discount Discount `json:"discount" api:"required,nullable"` ExternalPriceID string `json:"external_price_id" api:"required,nullable"` FixedPriceQuantity float64 `json:"fixed_price_quantity" api:"required,nullable"` + InvoiceGroupingKey string `json:"invoice_grouping_key" api:"required,nullable"` InvoicingCycleConfiguration BillingCycleConfiguration `json:"invoicing_cycle_configuration" api:"required,nullable"` // A minimal representation of an Item containing only the essential identifying // information. @@ -24864,6 +24917,7 @@ type priceScalableMatrixWithTieredPricingPriceJSON struct { Discount apijson.Field ExternalPriceID apijson.Field FixedPriceQuantity apijson.Field + InvoiceGroupingKey apijson.Field InvoicingCycleConfiguration apijson.Field Item apijson.Field Maximum apijson.Field @@ -25235,6 +25289,7 @@ type PriceCumulativeGroupedBulkPrice struct { Discount Discount `json:"discount" api:"required,nullable"` ExternalPriceID string `json:"external_price_id" api:"required,nullable"` FixedPriceQuantity float64 `json:"fixed_price_quantity" api:"required,nullable"` + InvoiceGroupingKey string `json:"invoice_grouping_key" api:"required,nullable"` InvoicingCycleConfiguration BillingCycleConfiguration `json:"invoicing_cycle_configuration" api:"required,nullable"` // A minimal representation of an Item containing only the essential identifying // information. @@ -25286,6 +25341,7 @@ type priceCumulativeGroupedBulkPriceJSON struct { Discount apijson.Field ExternalPriceID apijson.Field FixedPriceQuantity apijson.Field + InvoiceGroupingKey apijson.Field InvoicingCycleConfiguration apijson.Field Item apijson.Field Maximum apijson.Field @@ -25625,6 +25681,7 @@ type PriceCumulativeGroupedAllocationPrice struct { Discount Discount `json:"discount" api:"required,nullable"` ExternalPriceID string `json:"external_price_id" api:"required,nullable"` FixedPriceQuantity float64 `json:"fixed_price_quantity" api:"required,nullable"` + InvoiceGroupingKey string `json:"invoice_grouping_key" api:"required,nullable"` InvoicingCycleConfiguration BillingCycleConfiguration `json:"invoicing_cycle_configuration" api:"required,nullable"` // A minimal representation of an Item containing only the essential identifying // information. @@ -25676,6 +25733,7 @@ type priceCumulativeGroupedAllocationPriceJSON struct { Discount apijson.Field ExternalPriceID apijson.Field FixedPriceQuantity apijson.Field + InvoiceGroupingKey apijson.Field InvoicingCycleConfiguration apijson.Field Item apijson.Field Maximum apijson.Field @@ -25993,6 +26051,7 @@ type PriceMinimumCompositePrice struct { Discount Discount `json:"discount" api:"required,nullable"` ExternalPriceID string `json:"external_price_id" api:"required,nullable"` FixedPriceQuantity float64 `json:"fixed_price_quantity" api:"required,nullable"` + InvoiceGroupingKey string `json:"invoice_grouping_key" api:"required,nullable"` InvoicingCycleConfiguration BillingCycleConfiguration `json:"invoicing_cycle_configuration" api:"required,nullable"` // A minimal representation of an Item containing only the essential identifying // information. @@ -26045,6 +26104,7 @@ type priceMinimumCompositePriceJSON struct { Discount apijson.Field ExternalPriceID apijson.Field FixedPriceQuantity apijson.Field + InvoiceGroupingKey apijson.Field InvoicingCycleConfiguration apijson.Field Item apijson.Field Maximum apijson.Field @@ -26353,6 +26413,7 @@ type PricePercentCompositePrice struct { Discount Discount `json:"discount" api:"required,nullable"` ExternalPriceID string `json:"external_price_id" api:"required,nullable"` FixedPriceQuantity float64 `json:"fixed_price_quantity" api:"required,nullable"` + InvoiceGroupingKey string `json:"invoice_grouping_key" api:"required,nullable"` InvoicingCycleConfiguration BillingCycleConfiguration `json:"invoicing_cycle_configuration" api:"required,nullable"` // A minimal representation of an Item containing only the essential identifying // information. @@ -26405,6 +26466,7 @@ type pricePercentCompositePriceJSON struct { Discount apijson.Field ExternalPriceID apijson.Field FixedPriceQuantity apijson.Field + InvoiceGroupingKey apijson.Field InvoicingCycleConfiguration apijson.Field Item apijson.Field Maximum apijson.Field @@ -26712,6 +26774,7 @@ type PriceEventOutputPrice struct { EventOutputConfig PriceEventOutputPriceEventOutputConfig `json:"event_output_config" api:"required"` ExternalPriceID string `json:"external_price_id" api:"required,nullable"` FixedPriceQuantity float64 `json:"fixed_price_quantity" api:"required,nullable"` + InvoiceGroupingKey string `json:"invoice_grouping_key" api:"required,nullable"` InvoicingCycleConfiguration BillingCycleConfiguration `json:"invoicing_cycle_configuration" api:"required,nullable"` // A minimal representation of an Item containing only the essential identifying // information. @@ -26763,6 +26826,7 @@ type priceEventOutputPriceJSON struct { EventOutputConfig apijson.Field ExternalPriceID apijson.Field FixedPriceQuantity apijson.Field + InvoiceGroupingKey apijson.Field InvoicingCycleConfiguration apijson.Field Item apijson.Field Maximum apijson.Field From 106dd571003312c4384ae83d7f6203887ddc71e0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 11 Apr 2026 00:15:10 +0000 Subject: [PATCH 3/3] release: 1.69.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 13 +++++++++++++ README.md | 2 +- internal/version.go | 2 +- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 42bc7e25..5df3c649 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.68.0" + ".": "1.69.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 09530ef0..1847a176 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 1.69.0 (2026-04-11) + +Full Changelog: [v1.68.0...v1.69.0](https://github.com/orbcorp/orb-go/compare/v1.68.0...v1.69.0) + +### Features + +* **api:** api update ([16d7ed9](https://github.com/orbcorp/orb-go/commit/16d7ed97c254d0b845083a04362fe30b8daf59e8)) + + +### Documentation + +* improve examples ([0be0b27](https://github.com/orbcorp/orb-go/commit/0be0b27fded5be04aea7dad0bc196f298b72f2f0)) + ## 1.68.0 (2026-04-03) Full Changelog: [v1.67.0...v1.68.0](https://github.com/orbcorp/orb-go/compare/v1.67.0...v1.68.0) diff --git a/README.md b/README.md index 29810ba5..ff357746 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.68.0' +go get -u 'github.com/orbcorp/orb-go@v1.69.0' ``` diff --git a/internal/version.go b/internal/version.go index 35c7f93b..0653655f 100644 --- a/internal/version.go +++ b/internal/version.go @@ -2,4 +2,4 @@ package internal -const PackageVersion = "1.68.0" // x-release-please-version +const PackageVersion = "1.69.0" // x-release-please-version