From 386bafe7534dc191a464e234a1d918786e35732c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 6 Jan 2025 20:17:51 +0000 Subject: [PATCH] feat(api): api update (#381) --- .stats.yml | 2 +- invoice.go | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.stats.yml b/.stats.yml index c432613..7dd05a0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 101 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-b6d60f8edbdc94e65f06b0b002cc8e1f27aceccc67917bea849425701ba82fb8.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-52bd3046e73f201c4d08edfa92756791c015be907691a7893f8e7782cc2aea6f.yml diff --git a/invoice.go b/invoice.go index f39b065..db573f7 100644 --- a/invoice.go +++ b/invoice.go @@ -326,9 +326,8 @@ type Invoice struct { // `None` will be returned. Discount interface{} `json:"discount,required"` Discounts []shared.InvoiceLevelDiscount `json:"discounts,required"` - // When the invoice payment is due. The due date is null if the invoice is not yet - // finalized. - DueDate time.Time `json:"due_date,required,nullable" format:"date-time"` + // When the invoice payment is due. + DueDate time.Time `json:"due_date,required" format:"date-time"` // If the invoice has a status of `draft`, this will be the time that the invoice // will be eligible to be issued, otherwise it will be `null`. If `auto-issue` is // true, the invoice will automatically begin issuing at this time. @@ -2085,9 +2084,8 @@ type InvoiceFetchUpcomingResponse struct { // `None` will be returned. Discount interface{} `json:"discount,required"` Discounts []shared.InvoiceLevelDiscount `json:"discounts,required"` - // When the invoice payment is due. The due date is null if the invoice is not yet - // finalized. - DueDate time.Time `json:"due_date,required,nullable" format:"date-time"` + // When the invoice payment is due. + DueDate time.Time `json:"due_date,required" format:"date-time"` // If the invoice has a status of `draft`, this will be the time that the invoice // will be eligible to be issued, otherwise it will be `null`. If `auto-issue` is // true, the invoice will automatically begin issuing at this time.