Skip to content

Commit 7e916b6

Browse files
feat(api): add override_company_name field to payment create parameters
1 parent 2c7a294 commit 7e916b6

4 files changed

Lines changed: 36 additions & 9 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 190
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-17c04dd1b0508b380c21e3acc3d4cd1e86b590f81d14fa26d1973b236f660e38.yml
3-
openapi_spec_hash: f8ddee07358d2c938450a6889fbf7940
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-7349acbc90f2ba5668e44039a8e16c678944a2e83281f78e54812ba45904f49a.yml
3+
openapi_spec_hash: d749723cb9a5dca308c467a01cfdc3e9
44
config_hash: edbdfefeb0d3d927c2f9fe3402793215

lib/lithic/models/payment_create_params.rb

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,24 @@ class MethodAttributes < Lithic::Internal::Type::BaseModel
113113
# @return [String, nil]
114114
optional :addenda, String, nil?: true
115115

116-
# @!method initialize(sec_code:, ach_hold_period: nil, addenda: nil)
116+
# @!attribute override_company_name
117+
# Value to override the configured company name with. Can only be used if allowed
118+
# to override
119+
#
120+
# @return [String, nil]
121+
optional :override_company_name, String, nil?: true
122+
123+
# @!method initialize(sec_code:, ach_hold_period: nil, addenda: nil, override_company_name: nil)
124+
# Some parameter documentations has been truncated, see
125+
# {Lithic::Models::PaymentCreateParams::MethodAttributes} for more details.
126+
#
117127
# @param sec_code [Symbol, Lithic::Models::PaymentCreateParams::MethodAttributes::SecCode]
118128
#
119129
# @param ach_hold_period [Integer] Number of days to hold the ACH payment
120130
#
121131
# @param addenda [String, nil]
132+
#
133+
# @param override_company_name [String, nil] Value to override the configured company name with. Can only be used if allowed
122134

123135
# @see Lithic::Models::PaymentCreateParams::MethodAttributes#sec_code
124136
module SecCode

rbi/lithic/models/payment_create_params.rbi

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,19 +171,28 @@ module Lithic
171171
sig { returns(T.nilable(String)) }
172172
attr_accessor :addenda
173173

174+
# Value to override the configured company name with. Can only be used if allowed
175+
# to override
176+
sig { returns(T.nilable(String)) }
177+
attr_accessor :override_company_name
178+
174179
sig do
175180
params(
176181
sec_code:
177182
Lithic::PaymentCreateParams::MethodAttributes::SecCode::OrSymbol,
178183
ach_hold_period: Integer,
179-
addenda: T.nilable(String)
184+
addenda: T.nilable(String),
185+
override_company_name: T.nilable(String)
180186
).returns(T.attached_class)
181187
end
182188
def self.new(
183189
sec_code:,
184190
# Number of days to hold the ACH payment
185191
ach_hold_period: nil,
186-
addenda: nil
192+
addenda: nil,
193+
# Value to override the configured company name with. Can only be used if allowed
194+
# to override
195+
override_company_name: nil
187196
)
188197
end
189198

@@ -193,7 +202,8 @@ module Lithic
193202
sec_code:
194203
Lithic::PaymentCreateParams::MethodAttributes::SecCode::OrSymbol,
195204
ach_hold_period: Integer,
196-
addenda: T.nilable(String)
205+
addenda: T.nilable(String),
206+
override_company_name: T.nilable(String)
197207
}
198208
)
199209
end

sig/lithic/models/payment_create_params.rbs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ module Lithic
9292
{
9393
sec_code: Lithic::Models::PaymentCreateParams::MethodAttributes::sec_code,
9494
ach_hold_period: Integer,
95-
addenda: String?
95+
addenda: String?,
96+
override_company_name: String?
9697
}
9798

9899
class MethodAttributes < Lithic::Internal::Type::BaseModel
@@ -104,16 +105,20 @@ module Lithic
104105

105106
attr_accessor addenda: String?
106107

108+
attr_accessor override_company_name: String?
109+
107110
def initialize: (
108111
sec_code: Lithic::Models::PaymentCreateParams::MethodAttributes::sec_code,
109112
?ach_hold_period: Integer,
110-
?addenda: String?
113+
?addenda: String?,
114+
?override_company_name: String?
111115
) -> void
112116

113117
def to_hash: -> {
114118
sec_code: Lithic::Models::PaymentCreateParams::MethodAttributes::sec_code,
115119
ach_hold_period: Integer,
116-
addenda: String?
120+
addenda: String?,
121+
override_company_name: String?
117122
}
118123

119124
type sec_code = :CCD | :PPD | :WEB

0 commit comments

Comments
 (0)