diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 592b0e1..5334cb4 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.32.0" + ".": "1.33.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 33d3b46..49f0b44 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-ef726ad139fa29757029206ee08150434fc6c52005fec6d42c7d2bcd3aa7ab47.yml -openapi_spec_hash: e622beb7c26f9b0dd641bd5c92735a5b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-faf1f7c723d2762f09e9690ef2ceda58cb0a6ddacf1a79c3754871b90e7db0dc.yml +openapi_spec_hash: 22269f85fae1ec920bdb0b32435a7aa8 config_hash: dd4343ce95871032ef6e0735a4ca038c diff --git a/CHANGELOG.md b/CHANGELOG.md index 45bcef9..c4555cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.33.0 (2025-10-30) + +Full Changelog: [v1.32.0...v1.33.0](https://github.com/orbcorp/orb-go/compare/v1.32.0...v1.33.0) + +### Features + +* **api:** api update ([6f4242a](https://github.com/orbcorp/orb-go/commit/6f4242a9fa29367a8747086fba40e5419eefd400)) + ## 1.32.0 (2025-10-29) Full Changelog: [v1.31.0...v1.32.0](https://github.com/orbcorp/orb-go/compare/v1.31.0...v1.32.0) diff --git a/README.md b/README.md index c724d7a..469e03a 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.32.0' +go get -u 'github.com/orbcorp/orb-go@v1.33.0' ``` diff --git a/internal/version.go b/internal/version.go index d10cb00..6d1a6f9 100644 --- a/internal/version.go +++ b/internal/version.go @@ -2,4 +2,4 @@ package internal -const PackageVersion = "1.32.0" // x-release-please-version +const PackageVersion = "1.33.0" // x-release-please-version diff --git a/invoice.go b/invoice.go index 6c470b5..44d40bb 100644 --- a/invoice.go +++ b/invoice.go @@ -49,12 +49,13 @@ func (r *InvoiceService) New(ctx context.Context, body InvoiceNewParams, opts .. return } -// This endpoint allows you to update the `metadata`, `net_terms`, and `due_date` -// properties on an invoice. If you pass null for the metadata value, it will clear -// any existing metadata for that invoice. +// This endpoint allows you to update the `metadata`, `net_terms`, `due_date`, and +// `invoice_date` properties on an invoice. If you pass null for the metadata +// value, it will clear any existing metadata for that invoice. // -// `metadata` can be modified regardless of invoice state. `net_terms` and -// `due_date` can only be modified if the invoice is in a `draft` state. +// `metadata` can be modified regardless of invoice state. `net_terms`, `due_date`, +// and `invoice_date` can only be modified if the invoice is in a `draft` state. +// `invoice_date` can only be modified for non-subscription invoices. func (r *InvoiceService) Update(ctx context.Context, invoiceID string, body InvoiceUpdateParams, opts ...option.RequestOption) (res *shared.Invoice, err error) { opts = slices.Concat(r.Options, opts) if invoiceID == "" { @@ -1181,6 +1182,8 @@ type InvoiceUpdateParams struct { // An optional custom due date for the invoice. If not set, the due date will be // calculated based on the `net_terms` value. DueDate param.Field[time.Time] `json:"due_date" format:"date-time"` + // The date of the invoice. Can only be modified for one-off draft invoices. + InvoiceDate param.Field[time.Time] `json:"invoice_date" format:"date-time"` // User-specified key/value pairs for the resource. Individual keys can be removed // by setting the value to `null`, and the entire metadata mapping can be cleared // by setting `metadata` to `null`. diff --git a/invoice_test.go b/invoice_test.go index 16f0ce4..627a014 100644 --- a/invoice_test.go +++ b/invoice_test.go @@ -87,7 +87,8 @@ func TestInvoiceUpdateWithOptionalParams(t *testing.T) { context.TODO(), "invoice_id", orb.InvoiceUpdateParams{ - DueDate: orb.F(time.Now()), + DueDate: orb.F(time.Now()), + InvoiceDate: orb.F(time.Now()), Metadata: orb.F(map[string]string{ "foo": "string", }),