diff --git a/.release-please-manifest.json b/.release-please-manifest.json index cdcf20eb..bfaab56f 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.23.0" + ".": "1.24.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 05461dff..fd40002f 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-b330498c2bfb80605f4c406e8b228c0a4ece85247b21f62f93273a00abb53d35.yml -openapi_spec_hash: 16a82d0eb23b68218d584e385bee43da +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-26020bd285825dac04bf642a414ea07c786fc6e42ee6bbcf795e11f8db426519.yml +openapi_spec_hash: 897fedec83f0960539b3aa4ec0e3308d config_hash: 1f73a949b649ecfe6ec68ba1bb459dc2 diff --git a/CHANGELOG.md b/CHANGELOG.md index 5ec1a1d5..d8033a2f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.24.0 (2025-10-03) + +Full Changelog: [v1.23.0...v1.24.0](https://github.com/orbcorp/orb-go/compare/v1.23.0...v1.24.0) + +### Features + +* **api:** api update ([467d891](https://github.com/orbcorp/orb-go/commit/467d891fdde7236a0b2763bff3c0978a60d6928c)) + ## 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) diff --git a/README.md b/README.md index 6edd0c26..ca009be3 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.23.0' +go get -u 'github.com/orbcorp/orb-go@v1.24.0' ``` diff --git a/internal/version.go b/internal/version.go index bcfb69e1..d255624b 100644 --- a/internal/version.go +++ b/internal/version.go @@ -2,4 +2,4 @@ package internal -const PackageVersion = "1.23.0" // x-release-please-version +const PackageVersion = "1.24.0" // x-release-please-version diff --git a/invoice.go b/invoice.go index cc9d7ae9..47aad41b 100644 --- a/invoice.go +++ b/invoice.go @@ -934,6 +934,8 @@ type InvoiceFetchUpcomingResponseLineItemsSubLineItem struct { Quantity float64 `json:"quantity,required"` Type InvoiceFetchUpcomingResponseLineItemsSubLineItemsType `json:"type,required"` MatrixConfig shared.SubLineItemMatrixConfig `json:"matrix_config"` + // The scaled quantity for this line item for specific pricing structures + ScaledQuantity float64 `json:"scaled_quantity,nullable"` // This field can have the runtime type of [shared.TierSubLineItemTierConfig]. TierConfig interface{} `json:"tier_config"` JSON invoiceFetchUpcomingResponseLineItemsSubLineItemJSON `json:"-"` @@ -943,15 +945,16 @@ type InvoiceFetchUpcomingResponseLineItemsSubLineItem struct { // invoiceFetchUpcomingResponseLineItemsSubLineItemJSON contains the JSON metadata // for the struct [InvoiceFetchUpcomingResponseLineItemsSubLineItem] type invoiceFetchUpcomingResponseLineItemsSubLineItemJSON struct { - Amount apijson.Field - Grouping apijson.Field - Name apijson.Field - Quantity apijson.Field - Type apijson.Field - MatrixConfig apijson.Field - TierConfig apijson.Field - raw string - ExtraFields map[string]apijson.Field + Amount apijson.Field + Grouping apijson.Field + Name apijson.Field + Quantity apijson.Field + Type apijson.Field + MatrixConfig apijson.Field + ScaledQuantity apijson.Field + TierConfig apijson.Field + raw string + ExtraFields map[string]apijson.Field } func (r invoiceFetchUpcomingResponseLineItemsSubLineItemJSON) RawJSON() string { diff --git a/invoicelineitem.go b/invoicelineitem.go index a6388e03..45e35f58 100644 --- a/invoicelineitem.go +++ b/invoicelineitem.go @@ -307,6 +307,8 @@ type InvoiceLineItemNewResponseSubLineItem struct { Quantity float64 `json:"quantity,required"` Type InvoiceLineItemNewResponseSubLineItemsType `json:"type,required"` MatrixConfig shared.SubLineItemMatrixConfig `json:"matrix_config"` + // The scaled quantity for this line item for specific pricing structures + ScaledQuantity float64 `json:"scaled_quantity,nullable"` // This field can have the runtime type of [shared.TierSubLineItemTierConfig]. TierConfig interface{} `json:"tier_config"` JSON invoiceLineItemNewResponseSubLineItemJSON `json:"-"` @@ -316,15 +318,16 @@ type InvoiceLineItemNewResponseSubLineItem struct { // invoiceLineItemNewResponseSubLineItemJSON contains the JSON metadata for the // struct [InvoiceLineItemNewResponseSubLineItem] type invoiceLineItemNewResponseSubLineItemJSON struct { - Amount apijson.Field - Grouping apijson.Field - Name apijson.Field - Quantity apijson.Field - Type apijson.Field - MatrixConfig apijson.Field - TierConfig apijson.Field - raw string - ExtraFields map[string]apijson.Field + Amount apijson.Field + Grouping apijson.Field + Name apijson.Field + Quantity apijson.Field + Type apijson.Field + MatrixConfig apijson.Field + ScaledQuantity apijson.Field + TierConfig apijson.Field + raw string + ExtraFields map[string]apijson.Field } func (r invoiceLineItemNewResponseSubLineItemJSON) RawJSON() string { diff --git a/shared/shared.go b/shared/shared.go index 3f05f3c6..a16babc6 100644 --- a/shared/shared.go +++ b/shared/shared.go @@ -1374,6 +1374,8 @@ type ChangedSubscriptionResourcesCreatedInvoicesLineItemsSubLineItem struct { Quantity float64 `json:"quantity,required"` Type ChangedSubscriptionResourcesCreatedInvoicesLineItemsSubLineItemsType `json:"type,required"` MatrixConfig SubLineItemMatrixConfig `json:"matrix_config"` + // The scaled quantity for this line item for specific pricing structures + ScaledQuantity float64 `json:"scaled_quantity,nullable"` // This field can have the runtime type of [TierSubLineItemTierConfig]. TierConfig interface{} `json:"tier_config"` JSON changedSubscriptionResourcesCreatedInvoicesLineItemsSubLineItemJSON `json:"-"` @@ -1384,15 +1386,16 @@ type ChangedSubscriptionResourcesCreatedInvoicesLineItemsSubLineItem struct { // JSON metadata for the struct // [ChangedSubscriptionResourcesCreatedInvoicesLineItemsSubLineItem] type changedSubscriptionResourcesCreatedInvoicesLineItemsSubLineItemJSON struct { - Amount apijson.Field - Grouping apijson.Field - Name apijson.Field - Quantity apijson.Field - Type apijson.Field - MatrixConfig apijson.Field - TierConfig apijson.Field - raw string - ExtraFields map[string]apijson.Field + Amount apijson.Field + Grouping apijson.Field + Name apijson.Field + Quantity apijson.Field + Type apijson.Field + MatrixConfig apijson.Field + ScaledQuantity apijson.Field + TierConfig apijson.Field + raw string + ExtraFields map[string]apijson.Field } func (r changedSubscriptionResourcesCreatedInvoicesLineItemsSubLineItemJSON) RawJSON() string { @@ -3601,6 +3604,8 @@ type InvoiceLineItemsSubLineItem struct { Quantity float64 `json:"quantity,required"` Type InvoiceLineItemsSubLineItemsType `json:"type,required"` MatrixConfig SubLineItemMatrixConfig `json:"matrix_config"` + // The scaled quantity for this line item for specific pricing structures + ScaledQuantity float64 `json:"scaled_quantity,nullable"` // This field can have the runtime type of [TierSubLineItemTierConfig]. TierConfig interface{} `json:"tier_config"` JSON invoiceLineItemsSubLineItemJSON `json:"-"` @@ -3610,15 +3615,16 @@ type InvoiceLineItemsSubLineItem struct { // invoiceLineItemsSubLineItemJSON contains the JSON metadata for the struct // [InvoiceLineItemsSubLineItem] type invoiceLineItemsSubLineItemJSON struct { - Amount apijson.Field - Grouping apijson.Field - Name apijson.Field - Quantity apijson.Field - Type apijson.Field - MatrixConfig apijson.Field - TierConfig apijson.Field - raw string - ExtraFields map[string]apijson.Field + Amount apijson.Field + Grouping apijson.Field + Name apijson.Field + Quantity apijson.Field + Type apijson.Field + MatrixConfig apijson.Field + ScaledQuantity apijson.Field + TierConfig apijson.Field + raw string + ExtraFields map[string]apijson.Field } func (r invoiceLineItemsSubLineItemJSON) RawJSON() string { @@ -3953,20 +3959,23 @@ type MatrixSubLineItem struct { Name string `json:"name,required"` Quantity float64 `json:"quantity,required"` Type MatrixSubLineItemType `json:"type,required"` - JSON matrixSubLineItemJSON `json:"-"` + // The scaled quantity for this line item for specific pricing structures + ScaledQuantity float64 `json:"scaled_quantity,nullable"` + JSON matrixSubLineItemJSON `json:"-"` } // matrixSubLineItemJSON contains the JSON metadata for the struct // [MatrixSubLineItem] type matrixSubLineItemJSON struct { - Amount apijson.Field - Grouping apijson.Field - MatrixConfig apijson.Field - Name apijson.Field - Quantity apijson.Field - Type apijson.Field - raw string - ExtraFields map[string]apijson.Field + Amount apijson.Field + Grouping apijson.Field + MatrixConfig apijson.Field + Name apijson.Field + Quantity apijson.Field + Type apijson.Field + ScaledQuantity apijson.Field + raw string + ExtraFields map[string]apijson.Field } func (r *MatrixSubLineItem) UnmarshalJSON(data []byte) (err error) {