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.23.0"
".": "1.24.0"
}
4 changes: 2 additions & 2 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-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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
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.23.0'
go get -u 'github.com/orbcorp/orb-go@v1.24.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.23.0" // x-release-please-version
const PackageVersion = "1.24.0" // x-release-please-version
21 changes: 12 additions & 9 deletions invoice.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:"-"`
Expand All @@ -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 {
Expand Down
21 changes: 12 additions & 9 deletions invoicelineitem.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:"-"`
Expand All @@ -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 {
Expand Down
63 changes: 36 additions & 27 deletions shared/shared.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:"-"`
Expand All @@ -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 {
Expand Down Expand Up @@ -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:"-"`
Expand All @@ -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 {
Expand Down Expand Up @@ -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) {
Expand Down