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.32.0"
".": "1.33.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-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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
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.32.0'
go get -u 'github.com/orbcorp/orb-go@v1.33.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.32.0" // x-release-please-version
const PackageVersion = "1.33.0" // x-release-please-version
13 changes: 8 additions & 5 deletions invoice.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 == "" {
Expand Down Expand Up @@ -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`.
Expand Down
3 changes: 2 additions & 1 deletion invoice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}),
Expand Down