Skip to content

Commit 4b570e0

Browse files
committed
Fix for length validation
1 parent a91a75d commit 4b570e0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_bank_account.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,26 +48,26 @@ def initialize(attributes = {})
4848
# @return Array for valid properties with the reasons
4949
def list_invalid_properties
5050
invalid_properties = Array.new
51-
if !@type.nil? && @type.to_s.length > 1
52-
invalid_properties.push('invalid value for "type", the character length must be smaller than or equal to 1.')
53-
end
51+
# if [email protected]? && @type.to_s.length > 1
52+
# invalid_properties.push('invalid value for "type", the character length must be smaller than or equal to 1.')
53+
# end
5454

5555
invalid_properties
5656
end
5757

5858
# Check to see if the all the properties in the model are valid
5959
# @return true if the model is valid
6060
def valid?
61-
return false if !@type.nil? && @type.to_s.length > 1
61+
# return false if [email protected]? && @type.to_s.length > 1
6262
true
6363
end
6464

6565
# Custom attribute writer method with validation
6666
# @param [Object] type Value to be assigned
6767
def type=(type)
68-
if !type.nil? && type.to_s.length > 1
69-
fail ArgumentError, 'invalid value for "type", the character length must be smaller than or equal to 1.'
70-
end
68+
# if !type.nil? && type.to_s.length > 1
69+
# fail ArgumentError, 'invalid value for "type", the character length must be smaller than or equal to 1.'
70+
# end
7171

7272
@type = type
7373
end

0 commit comments

Comments
 (0)