Skip to content

Commit f48f7f7

Browse files
feat(api): api update
1 parent c9a74a0 commit f48f7f7

File tree

5 files changed

+70
-67
lines changed

5 files changed

+70
-67
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 116
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-612316c13276a207f56e2e2c7bbc68f4bb73de85e3661595a23f23d9ccc80276.yml
3-
openapi_spec_hash: 6e125f05e40521ec485edf6e15beec2e
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-e79a36262fa3c577305a43717398fb70482bb2dca47cdb3e201cbb2a590c359c.yml
3+
openapi_spec_hash: 1e04880dccbcc082ba451083e421a471
44
config_hash: 3c3524be9607afb24d2139ce26ce5389

lib/orb/models/credit_note_create_params.rb

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ class CreditNoteCreateParams < Orb::Internal::Type::BaseModel
1919
required :reason, enum: -> { Orb::CreditNoteCreateParams::Reason }
2020

2121
# @!attribute end_date
22-
# A date string to specify the global credit note service period end date in the
23-
# customer's timezone. This will be applied to all line items that don't have
24-
# their own individual service periods specified. If not provided, line items will
25-
# use their original invoice line item service periods. This date is inclusive.
22+
# An optional date string to specify the global credit note service period end
23+
# date in the customer's timezone. This will be applied to all line items. If not
24+
# provided, line items will use their original invoice line item service periods.
25+
# This date is inclusive.
2626
#
2727
# @return [Date, nil]
2828
optional :end_date, Date, nil?: true
@@ -34,10 +34,10 @@ class CreditNoteCreateParams < Orb::Internal::Type::BaseModel
3434
optional :memo, String, nil?: true
3535

3636
# @!attribute start_date
37-
# A date string to specify the global credit note service period start date in the
38-
# customer's timezone. This will be applied to all line items that don't have
39-
# their own individual service periods specified. If not provided, line items will
40-
# use their original invoice line item service periods. This date is inclusive.
37+
# An optional date string to specify the global credit note service period end
38+
# date in the customer's timezone. This will be applied to all line items. If not
39+
# provided, line items will use their original invoice line item service periods.
40+
# This date is inclusive.
4141
#
4242
# @return [Date, nil]
4343
optional :start_date, Date, nil?: true
@@ -50,11 +50,11 @@ class CreditNoteCreateParams < Orb::Internal::Type::BaseModel
5050
#
5151
# @param reason [Symbol, Orb::Models::CreditNoteCreateParams::Reason] An optional reason for the credit note.
5252
#
53-
# @param end_date [Date, nil] A date string to specify the global credit note service period end date in the c
53+
# @param end_date [Date, nil] An optional date string to specify the global credit note service period end dat
5454
#
5555
# @param memo [String, nil] An optional memo to attach to the credit note.
5656
#
57-
# @param start_date [Date, nil] A date string to specify the global credit note service period start date in the
57+
# @param start_date [Date, nil] An optional date string to specify the global credit note service period end dat
5858
#
5959
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
6060

@@ -72,20 +72,21 @@ class LineItem < Orb::Internal::Type::BaseModel
7272
required :invoice_line_item_id, String
7373

7474
# @!attribute end_date
75-
# A date string to specify this line item's credit note service period end date in
76-
# the customer's timezone. If provided, this will be used for this specific line
77-
# item. If not provided, will use the global end_date if available, otherwise
78-
# defaults to the original invoice line item's end date. This date is inclusive.
75+
# An optional date string to specify this line item's credit note service period
76+
# end date in the customer's timezone. If provided, this will be used for this
77+
# specific line item. If not provided, will use the global end_date if available,
78+
# otherwise defaults to the original invoice line item's end date. This date is
79+
# inclusive.
7980
#
8081
# @return [Date, nil]
8182
optional :end_date, Date, nil?: true
8283

8384
# @!attribute start_date
84-
# A date string to specify this line item's credit note service period start date
85-
# in the customer's timezone. If provided, this will be used for this specific
86-
# line item. If not provided, will use the global start_date if available,
87-
# otherwise defaults to the original invoice line item's start date. This date is
88-
# inclusive.
85+
# An optional date string to specify this line item's credit note service period
86+
# start date in the customer's timezone. If provided, this will be used for this
87+
# specific line item. If not provided, will use the global start_date if
88+
# available, otherwise defaults to the original invoice line item's start date.
89+
# This date is inclusive.
8990
#
9091
# @return [Date, nil]
9192
optional :start_date, Date, nil?: true
@@ -98,9 +99,9 @@ class LineItem < Orb::Internal::Type::BaseModel
9899
#
99100
# @param invoice_line_item_id [String] The ID of the line item to credit.
100101
#
101-
# @param end_date [Date, nil] A date string to specify this line item's credit note service period end date in
102+
# @param end_date [Date, nil] An optional date string to specify this line item's credit note service period e
102103
#
103-
# @param start_date [Date, nil] A date string to specify this line item's credit note service period start date
104+
# @param start_date [Date, nil] An optional date string to specify this line item's credit note service period s
104105
end
105106

106107
# An optional reason for the credit note.

lib/orb/resources/credit_notes.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ class CreditNotes
4040
#
4141
# @param reason [Symbol, Orb::Models::CreditNoteCreateParams::Reason] An optional reason for the credit note.
4242
#
43-
# @param end_date [Date, nil] A date string to specify the global credit note service period end date in the c
43+
# @param end_date [Date, nil] An optional date string to specify the global credit note service period end dat
4444
#
4545
# @param memo [String, nil] An optional memo to attach to the credit note.
4646
#
47-
# @param start_date [Date, nil] A date string to specify the global credit note service period start date in the
47+
# @param start_date [Date, nil] An optional date string to specify the global credit note service period end dat
4848
#
4949
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
5050
#

rbi/orb/models/credit_note_create_params.rbi

Lines changed: 36 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@ module Orb
1818
sig { returns(Orb::CreditNoteCreateParams::Reason::OrSymbol) }
1919
attr_accessor :reason
2020

21-
# A date string to specify the global credit note service period end date in the
22-
# customer's timezone. This will be applied to all line items that don't have
23-
# their own individual service periods specified. If not provided, line items will
24-
# use their original invoice line item service periods. This date is inclusive.
21+
# An optional date string to specify the global credit note service period end
22+
# date in the customer's timezone. This will be applied to all line items. If not
23+
# provided, line items will use their original invoice line item service periods.
24+
# This date is inclusive.
2525
sig { returns(T.nilable(Date)) }
2626
attr_accessor :end_date
2727

2828
# An optional memo to attach to the credit note.
2929
sig { returns(T.nilable(String)) }
3030
attr_accessor :memo
3131

32-
# A date string to specify the global credit note service period start date in the
33-
# customer's timezone. This will be applied to all line items that don't have
34-
# their own individual service periods specified. If not provided, line items will
35-
# use their original invoice line item service periods. This date is inclusive.
32+
# An optional date string to specify the global credit note service period end
33+
# date in the customer's timezone. This will be applied to all line items. If not
34+
# provided, line items will use their original invoice line item service periods.
35+
# This date is inclusive.
3636
sig { returns(T.nilable(Date)) }
3737
attr_accessor :start_date
3838

@@ -50,17 +50,17 @@ module Orb
5050
line_items:,
5151
# An optional reason for the credit note.
5252
reason:,
53-
# A date string to specify the global credit note service period end date in the
54-
# customer's timezone. This will be applied to all line items that don't have
55-
# their own individual service periods specified. If not provided, line items will
56-
# use their original invoice line item service periods. This date is inclusive.
53+
# An optional date string to specify the global credit note service period end
54+
# date in the customer's timezone. This will be applied to all line items. If not
55+
# provided, line items will use their original invoice line item service periods.
56+
# This date is inclusive.
5757
end_date: nil,
5858
# An optional memo to attach to the credit note.
5959
memo: nil,
60-
# A date string to specify the global credit note service period start date in the
61-
# customer's timezone. This will be applied to all line items that don't have
62-
# their own individual service periods specified. If not provided, line items will
63-
# use their original invoice line item service periods. This date is inclusive.
60+
# An optional date string to specify the global credit note service period end
61+
# date in the customer's timezone. This will be applied to all line items. If not
62+
# provided, line items will use their original invoice line item service periods.
63+
# This date is inclusive.
6464
start_date: nil,
6565
request_options: {}
6666
)
@@ -95,18 +95,19 @@ module Orb
9595
sig { returns(String) }
9696
attr_accessor :invoice_line_item_id
9797

98-
# A date string to specify this line item's credit note service period end date in
99-
# the customer's timezone. If provided, this will be used for this specific line
100-
# item. If not provided, will use the global end_date if available, otherwise
101-
# defaults to the original invoice line item's end date. This date is inclusive.
98+
# An optional date string to specify this line item's credit note service period
99+
# end date in the customer's timezone. If provided, this will be used for this
100+
# specific line item. If not provided, will use the global end_date if available,
101+
# otherwise defaults to the original invoice line item's end date. This date is
102+
# inclusive.
102103
sig { returns(T.nilable(Date)) }
103104
attr_accessor :end_date
104105

105-
# A date string to specify this line item's credit note service period start date
106-
# in the customer's timezone. If provided, this will be used for this specific
107-
# line item. If not provided, will use the global start_date if available,
108-
# otherwise defaults to the original invoice line item's start date. This date is
109-
# inclusive.
106+
# An optional date string to specify this line item's credit note service period
107+
# start date in the customer's timezone. If provided, this will be used for this
108+
# specific line item. If not provided, will use the global start_date if
109+
# available, otherwise defaults to the original invoice line item's start date.
110+
# This date is inclusive.
110111
sig { returns(T.nilable(Date)) }
111112
attr_accessor :start_date
112113

@@ -123,16 +124,17 @@ module Orb
123124
amount:,
124125
# The ID of the line item to credit.
125126
invoice_line_item_id:,
126-
# A date string to specify this line item's credit note service period end date in
127-
# the customer's timezone. If provided, this will be used for this specific line
128-
# item. If not provided, will use the global end_date if available, otherwise
129-
# defaults to the original invoice line item's end date. This date is inclusive.
130-
end_date: nil,
131-
# A date string to specify this line item's credit note service period start date
132-
# in the customer's timezone. If provided, this will be used for this specific
133-
# line item. If not provided, will use the global start_date if available,
134-
# otherwise defaults to the original invoice line item's start date. This date is
127+
# An optional date string to specify this line item's credit note service period
128+
# end date in the customer's timezone. If provided, this will be used for this
129+
# specific line item. If not provided, will use the global end_date if available,
130+
# otherwise defaults to the original invoice line item's end date. This date is
135131
# inclusive.
132+
end_date: nil,
133+
# An optional date string to specify this line item's credit note service period
134+
# start date in the customer's timezone. If provided, this will be used for this
135+
# specific line item. If not provided, will use the global start_date if
136+
# available, otherwise defaults to the original invoice line item's start date.
137+
# This date is inclusive.
136138
start_date: nil
137139
)
138140
end

rbi/orb/resources/credit_notes.rbi

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,17 @@ module Orb
4444
line_items:,
4545
# An optional reason for the credit note.
4646
reason:,
47-
# A date string to specify the global credit note service period end date in the
48-
# customer's timezone. This will be applied to all line items that don't have
49-
# their own individual service periods specified. If not provided, line items will
50-
# use their original invoice line item service periods. This date is inclusive.
47+
# An optional date string to specify the global credit note service period end
48+
# date in the customer's timezone. This will be applied to all line items. If not
49+
# provided, line items will use their original invoice line item service periods.
50+
# This date is inclusive.
5151
end_date: nil,
5252
# An optional memo to attach to the credit note.
5353
memo: nil,
54-
# A date string to specify the global credit note service period start date in the
55-
# customer's timezone. This will be applied to all line items that don't have
56-
# their own individual service periods specified. If not provided, line items will
57-
# use their original invoice line item service periods. This date is inclusive.
54+
# An optional date string to specify the global credit note service period end
55+
# date in the customer's timezone. This will be applied to all line items. If not
56+
# provided, line items will use their original invoice line item service periods.
57+
# This date is inclusive.
5858
start_date: nil,
5959
request_options: {}
6060
)

0 commit comments

Comments
 (0)