Skip to content

Commit 78865a0

Browse files
feat(api): api update
1 parent 811d9b6 commit 78865a0

File tree

5 files changed

+67
-70
lines changed

5 files changed

+67
-70
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-e79a36262fa3c577305a43717398fb70482bb2dca47cdb3e201cbb2a590c359c.yml
3-
openapi_spec_hash: 1e04880dccbcc082ba451083e421a471
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-612316c13276a207f56e2e2c7bbc68f4bb73de85e3661595a23f23d9ccc80276.yml
3+
openapi_spec_hash: 6e125f05e40521ec485edf6e15beec2e
44
config_hash: 3c3524be9607afb24d2139ce26ce5389

lib/orb/models/credit_note_create_params.rb

Lines changed: 21 additions & 22 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-
# 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.
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.
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-
# 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.
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.
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] An optional date string to specify the global credit note service period end dat
53+
# @param end_date [Date, nil] A date string to specify the global credit note service period end date in the c
5454
#
5555
# @param memo [String, nil] An optional memo to attach to the credit note.
5656
#
57-
# @param start_date [Date, nil] An optional date string to specify the global credit note service period end dat
57+
# @param start_date [Date, nil] A date string to specify the global credit note service period start date in the
5858
#
5959
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}]
6060

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

7474
# @!attribute end_date
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.
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.
8079
#
8180
# @return [Date, nil]
8281
optional :end_date, Date, nil?: true
8382

8483
# @!attribute start_date
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.
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.
9089
#
9190
# @return [Date, nil]
9291
optional :start_date, Date, nil?: true
@@ -99,9 +98,9 @@ class LineItem < Orb::Internal::Type::BaseModel
9998
#
10099
# @param invoice_line_item_id [String] The ID of the line item to credit.
101100
#
102-
# @param end_date [Date, nil] An optional date string to specify this line item's credit note service period e
101+
# @param end_date [Date, nil] A date string to specify this line item's credit note service period end date in
103102
#
104-
# @param start_date [Date, nil] An optional date string to specify this line item's credit note service period s
103+
# @param start_date [Date, nil] A date string to specify this line item's credit note service period start date
105104
end
106105

107106
# 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] An optional date string to specify the global credit note service period end dat
43+
# @param end_date [Date, nil] A date string to specify the global credit note service period end date in the c
4444
#
4545
# @param memo [String, nil] An optional memo to attach to the credit note.
4646
#
47-
# @param start_date [Date, nil] An optional date string to specify the global credit note service period end dat
47+
# @param start_date [Date, nil] A date string to specify the global credit note service period start date in the
4848
#
4949
# @param request_options [Orb::RequestOptions, Hash{Symbol=>Object}, nil]
5050
#

rbi/orb/models/credit_note_create_params.rbi

Lines changed: 34 additions & 36 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-
# 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.
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.
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-
# 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.
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.
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-
# 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.
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.
5757
end_date: nil,
5858
# An optional memo to attach to the credit note.
5959
memo: nil,
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.
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.
6464
start_date: nil,
6565
request_options: {}
6666
)
@@ -95,19 +95,18 @@ module Orb
9595
sig { returns(String) }
9696
attr_accessor :invoice_line_item_id
9797

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.
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.
103102
sig { returns(T.nilable(Date)) }
104103
attr_accessor :end_date
105104

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.
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.
111110
sig { returns(T.nilable(Date)) }
112111
attr_accessor :start_date
113112

@@ -124,17 +123,16 @@ module Orb
124123
amount:,
125124
# The ID of the line item to credit.
126125
invoice_line_item_id:,
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
131-
# inclusive.
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.
132130
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.
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
135+
# inclusive.
138136
start_date: nil
139137
)
140138
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-
# 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.
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.
5151
end_date: nil,
5252
# An optional memo to attach to the credit note.
5353
memo: nil,
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.
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.
5858
start_date: nil,
5959
request_options: {}
6060
)

0 commit comments

Comments
 (0)