Class: CyberSource::UnderwritingConfigurationOrganizationInformationBusinessInformation
- Inherits:
-
Object
- Object
- CyberSource::UnderwritingConfigurationOrganizationInformationBusinessInformation
- Defined in:
- lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#business_contact ⇒ Object
Returns the value of attribute business_contact.
-
#business_description ⇒ Object
Short description of the Business.
-
#business_details ⇒ Object
Returns the value of attribute business_details.
-
#business_identifier ⇒ Object
Tax ID for the business.
-
#business_type ⇒ Object
Business type Possible values: - PARTNERSHIP - SOLE_PROPRIETORSHIP - CORPORATION - LLC - NON_PROFIT - TRUST.
-
#country_phone_number ⇒ Object
Country of the Business phone number.
-
#country_registration ⇒ Object
Country where the business is registered.
-
#director_information ⇒ Object
Returns the value of attribute director_information.
-
#doing_business_as ⇒ Object
The DBA of the business.
-
#email ⇒ Object
Business Email Address.
-
#legal_name ⇒ Object
The legally registered name of the business.
-
#local_mcc ⇒ Object
Returns the value of attribute local_mcc.
-
#mcc_description ⇒ Object
MCC Description.
-
#merchant_category_code ⇒ Object
Industry standard Merchant Category Code (MCC).
-
#owner_information ⇒ Object
Returns the value of attribute owner_information.
-
#phone_number ⇒ Object
Business Phone Number.
-
#registration_number ⇒ Object
Registration ID for Enterprise Merchant.
-
#start_date ⇒ Object
When did Business start.
-
#stock_exchange ⇒ Object
Which stock exchange is the company trading in?.
-
#ticker_symbol ⇒ Object
Stock Symbol on the exchange.
-
#trading_address ⇒ Object
Returns the value of attribute trading_address.
-
#website_url ⇒ Object
Website for the Business.
-
#what_your_company_does ⇒ Object
What your company does and how you market your service.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.json_map ⇒ Object
Attribute mapping from JSON key to ruby-style variable name.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ UnderwritingConfigurationOrganizationInformationBusinessInformation
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ UnderwritingConfigurationOrganizationInformationBusinessInformation
Initializes the object
173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 173 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'businessIdentifier') self.business_identifier = attributes[:'businessIdentifier'] end if attributes.has_key?(:'countryRegistration') self.country_registration = attributes[:'countryRegistration'] end if attributes.has_key?(:'legalName') self.legal_name = attributes[:'legalName'] end if attributes.has_key?(:'doingBusinessAs') self.doing_business_as = attributes[:'doingBusinessAs'] end if attributes.has_key?(:'businessDescription') self.business_description = attributes[:'businessDescription'] end if attributes.has_key?(:'registrationNumber') self.registration_number = attributes[:'registrationNumber'] end if attributes.has_key?(:'stockExchange') self.stock_exchange = attributes[:'stockExchange'] end if attributes.has_key?(:'tickerSymbol') self.ticker_symbol = attributes[:'tickerSymbol'] end if attributes.has_key?(:'startDate') self.start_date = attributes[:'startDate'] end if attributes.has_key?(:'merchantCategoryCode') self.merchant_category_code = attributes[:'merchantCategoryCode'] end if attributes.has_key?(:'mccDescription') self.mcc_description = attributes[:'mccDescription'] end if attributes.has_key?(:'websiteURL') self.website_url = attributes[:'websiteURL'] end if attributes.has_key?(:'businessType') self.business_type = attributes[:'businessType'] end if attributes.has_key?(:'localMCC') if (value = attributes[:'localMCC']).is_a?(Array) self.local_mcc = value end end if attributes.has_key?(:'countryPhoneNumber') self.country_phone_number = attributes[:'countryPhoneNumber'] end if attributes.has_key?(:'phoneNumber') self.phone_number = attributes[:'phoneNumber'] end if attributes.has_key?(:'email') self.email = attributes[:'email'] end if attributes.has_key?(:'whatYourCompanyDoes') self.what_your_company_does = attributes[:'whatYourCompanyDoes'] end if attributes.has_key?(:'address') self.address = attributes[:'address'] end if attributes.has_key?(:'tradingAddress') self.trading_address = attributes[:'tradingAddress'] end if attributes.has_key?(:'businessContact') self.business_contact = attributes[:'businessContact'] end if attributes.has_key?(:'businessDetails') self.business_details = attributes[:'businessDetails'] end if attributes.has_key?(:'ownerInformation') if (value = attributes[:'ownerInformation']).is_a?(Array) self.owner_information = value end end if attributes.has_key?(:'directorInformation') if (value = attributes[:'directorInformation']).is_a?(Array) self.director_information = value end end end |
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
69 70 71 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 69 def address @address end |
#business_contact ⇒ Object
Returns the value of attribute business_contact.
73 74 75 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 73 def business_contact @business_contact end |
#business_description ⇒ Object
Short description of the Business
29 30 31 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 29 def business_description @business_description end |
#business_details ⇒ Object
Returns the value of attribute business_details.
75 76 77 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 75 def business_details @business_details end |
#business_identifier ⇒ Object
Tax ID for the business
17 18 19 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 17 def business_identifier @business_identifier end |
#business_type ⇒ Object
Business type Possible values: - PARTNERSHIP - SOLE_PROPRIETORSHIP - CORPORATION - LLC - NON_PROFIT - TRUST
53 54 55 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 53 def business_type @business_type end |
#country_phone_number ⇒ Object
Country of the Business phone number. Two character country code, ISO 3166-1 alpha-2.
58 59 60 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 58 def country_phone_number @country_phone_number end |
#country_registration ⇒ Object
Country where the business is registered. Two character country code, ISO 3166-1 alpha-2.
20 21 22 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 20 def country_registration @country_registration end |
#director_information ⇒ Object
Returns the value of attribute director_information.
79 80 81 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 79 def director_information @director_information end |
#doing_business_as ⇒ Object
The DBA of the business.
26 27 28 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 26 def doing_business_as @doing_business_as end |
#email ⇒ Object
Business Email Address
64 65 66 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 64 def email @email end |
#legal_name ⇒ Object
The legally registered name of the business
23 24 25 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 23 def legal_name @legal_name end |
#local_mcc ⇒ Object
Returns the value of attribute local_mcc.
55 56 57 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 55 def local_mcc @local_mcc end |
#mcc_description ⇒ Object
MCC Description
47 48 49 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 47 def mcc_description @mcc_description end |
#merchant_category_code ⇒ Object
Industry standard Merchant Category Code (MCC)
44 45 46 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 44 def merchant_category_code @merchant_category_code end |
#owner_information ⇒ Object
Returns the value of attribute owner_information.
77 78 79 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 77 def owner_information @owner_information end |
#phone_number ⇒ Object
Business Phone Number
61 62 63 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 61 def phone_number @phone_number end |
#registration_number ⇒ Object
Registration ID for Enterprise Merchant
32 33 34 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 32 def registration_number @registration_number end |
#start_date ⇒ Object
When did Business start. Format: YYYY-MM-DD Example 2016-08-11 equals August 11, 2016
41 42 43 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 41 def start_date @start_date end |
#stock_exchange ⇒ Object
Which stock exchange is the company trading in?
35 36 37 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 35 def stock_exchange @stock_exchange end |
#ticker_symbol ⇒ Object
Stock Symbol on the exchange
38 39 40 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 38 def ticker_symbol @ticker_symbol end |
#trading_address ⇒ Object
Returns the value of attribute trading_address.
71 72 73 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 71 def trading_address @trading_address end |
#website_url ⇒ Object
Website for the Business
50 51 52 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 50 def website_url @website_url end |
#what_your_company_does ⇒ Object
What your company does and how you market your service
67 68 69 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 67 def what_your_company_does @what_your_company_does end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 82 def self.attribute_map { :'business_identifier' => :'businessIdentifier', :'country_registration' => :'countryRegistration', :'legal_name' => :'legalName', :'doing_business_as' => :'doingBusinessAs', :'business_description' => :'businessDescription', :'registration_number' => :'registrationNumber', :'stock_exchange' => :'stockExchange', :'ticker_symbol' => :'tickerSymbol', :'start_date' => :'startDate', :'merchant_category_code' => :'merchantCategoryCode', :'mcc_description' => :'mccDescription', :'website_url' => :'websiteURL', :'business_type' => :'businessType', :'local_mcc' => :'localMCC', :'country_phone_number' => :'countryPhoneNumber', :'phone_number' => :'phoneNumber', :'email' => :'email', :'what_your_company_does' => :'whatYourCompanyDoes', :'address' => :'address', :'trading_address' => :'tradingAddress', :'business_contact' => :'businessContact', :'business_details' => :'businessDetails', :'owner_information' => :'ownerInformation', :'director_information' => :'directorInformation' } end |
.json_map ⇒ Object
Attribute mapping from JSON key to ruby-style variable name.
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 112 def self.json_map { :'business_identifier' => :'business_identifier', :'country_registration' => :'country_registration', :'legal_name' => :'legal_name', :'doing_business_as' => :'doing_business_as', :'business_description' => :'business_description', :'registration_number' => :'registration_number', :'stock_exchange' => :'stock_exchange', :'ticker_symbol' => :'ticker_symbol', :'start_date' => :'start_date', :'merchant_category_code' => :'merchant_category_code', :'mcc_description' => :'mcc_description', :'website_url' => :'website_url', :'business_type' => :'business_type', :'local_mcc' => :'local_mcc', :'country_phone_number' => :'country_phone_number', :'phone_number' => :'phone_number', :'email' => :'email', :'what_your_company_does' => :'what_your_company_does', :'address' => :'address', :'trading_address' => :'trading_address', :'business_contact' => :'business_contact', :'business_details' => :'business_details', :'owner_information' => :'owner_information', :'director_information' => :'director_information' } end |
.swagger_types ⇒ Object
Attribute type mapping.
142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 142 def self.swagger_types { :'business_identifier' => :'String', :'country_registration' => :'String', :'legal_name' => :'String', :'doing_business_as' => :'String', :'business_description' => :'String', :'registration_number' => :'String', :'stock_exchange' => :'String', :'ticker_symbol' => :'String', :'start_date' => :'Date', :'merchant_category_code' => :'String', :'mcc_description' => :'String', :'website_url' => :'String', :'business_type' => :'String', :'local_mcc' => :'Array<String>', :'country_phone_number' => :'String', :'phone_number' => :'String', :'email' => :'String', :'what_your_company_does' => :'String', :'address' => :'UnderwritingConfigurationOrganizationInformationBusinessInformationAddress', :'trading_address' => :'UnderwritingConfigurationOrganizationInformationBusinessInformationTradingAddress', :'business_contact' => :'UnderwritingConfigurationOrganizationInformationBusinessInformationBusinessContact', :'business_details' => :'UnderwritingConfigurationOrganizationInformationBusinessInformationBusinessDetails', :'owner_information' => :'Array<UnderwritingConfigurationOrganizationInformationBusinessInformationOwnerInformation>', :'director_information' => :'Array<UnderwritingConfigurationOrganizationInformationBusinessInformationDirectorInformation>' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 532 def ==(o) return true if self.equal?(o) self.class == o.class && business_identifier == o.business_identifier && country_registration == o.country_registration && legal_name == o.legal_name && doing_business_as == o.doing_business_as && business_description == o.business_description && registration_number == o.registration_number && stock_exchange == o.stock_exchange && ticker_symbol == o.ticker_symbol && start_date == o.start_date && merchant_category_code == o.merchant_category_code && mcc_description == o.mcc_description && website_url == o.website_url && business_type == o.business_type && local_mcc == o.local_mcc && country_phone_number == o.country_phone_number && phone_number == o.phone_number && email == o.email && what_your_company_does == o.what_your_company_does && address == o.address && trading_address == o.trading_address && business_contact == o.business_contact && business_details == o.business_details && owner_information == o.owner_information && director_information == o.director_information end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 597 def _deserialize(type, value) case type.to_sym when :DateTime DateTime.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :BOOLEAN if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model temp_model = CyberSource.const_get(type).new temp_model.build_from_hash(value) end end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
663 664 665 666 667 668 669 670 671 672 673 674 675 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 663 def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 576 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]])) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(o) ⇒ Boolean
563 564 565 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 563 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
569 570 571 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 569 def hash [business_identifier, country_registration, legal_name, doing_business_as, business_description, registration_number, stock_exchange, ticker_symbol, start_date, merchant_category_code, mcc_description, website_url, business_type, local_mcc, country_phone_number, phone_number, email, what_your_company_does, address, trading_address, business_contact, business_details, owner_information, director_information].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 284 def list_invalid_properties invalid_properties = Array.new if @business_identifier.nil? invalid_properties.push('invalid value for "business_identifier", business_identifier cannot be nil.') end #if @business_identifier !~ Regexp.new(/^[a-zA-Z0-9]*$/) #invalid_properties.push('invalid value for "business_identifier", must conform to the pattern /^[a-zA-Z0-9]*$/.') #end if @country_registration.nil? invalid_properties.push('invalid value for "country_registration", country_registration cannot be nil.') end #if @country_registration !~ Regexp.new(/^[a-zA-Z]*$/) #invalid_properties.push('invalid value for "country_registration", must conform to the pattern /^[a-zA-Z]*$/.') #end if @legal_name.nil? invalid_properties.push('invalid value for "legal_name", legal_name cannot be nil.') end if @doing_business_as.nil? invalid_properties.push('invalid value for "doing_business_as", doing_business_as cannot be nil.') end if @business_description.nil? invalid_properties.push('invalid value for "business_description", business_description cannot be nil.') end #if !@ticker_symbol.nil? && @ticker_symbol !~ Regexp.new(/^[a-zA-Z0-9_.]*$/) #invalid_properties.push('invalid value for "ticker_symbol", must conform to the pattern /^[a-zA-Z0-9_.]*$/.') #end if @start_date.nil? invalid_properties.push('invalid value for "start_date", start_date cannot be nil.') end if @merchant_category_code.nil? invalid_properties.push('invalid value for "merchant_category_code", merchant_category_code cannot be nil.') end #if @merchant_category_code !~ Regexp.new(/^\\d{3,4}$/) #invalid_properties.push('invalid value for "merchant_category_code", must conform to the pattern /^\\d{3,4}$/.') #end if @business_type.nil? invalid_properties.push('invalid value for "business_type", business_type cannot be nil.') end if @country_phone_number.nil? invalid_properties.push('invalid value for "country_phone_number", country_phone_number cannot be nil.') end #if @country_phone_number !~ Regexp.new(/^[a-zA-Z]*$/) #invalid_properties.push('invalid value for "country_phone_number", must conform to the pattern /^[a-zA-Z]*$/.') #end if @phone_number.nil? invalid_properties.push('invalid value for "phone_number", phone_number cannot be nil.') end #if @phone_number !~ Regexp.new(/^[0-9a-zA-Z\\\\+\\\\-]+$/) #invalid_properties.push('invalid value for "phone_number", must conform to the pattern /^[0-9a-zA-Z\\\\+\\\\-]+$/.') #end if @email.nil? invalid_properties.push('invalid value for "email", email cannot be nil.') end invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
643 644 645 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 643 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
649 650 651 652 653 654 655 656 657 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 649 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) next if value.nil? hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
637 638 639 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 637 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 |
# File 'lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb', line 359 def valid? return false if @business_identifier.nil? #return false if @business_identifier !~ Regexp.new(/^[a-zA-Z0-9]*$/) return false if @country_registration.nil? #return false if @country_registration !~ Regexp.new(/^[a-zA-Z]*$/) return false if @legal_name.nil? return false if @doing_business_as.nil? return false if @business_description.nil? #return false if !@ticker_symbol.nil? && @ticker_symbol !~ Regexp.new(/^[a-zA-Z0-9_.]*$/) return false if @start_date.nil? return false if @merchant_category_code.nil? #return false if @merchant_category_code !~ Regexp.new(/^\\d{3,4}$/) return false if @business_type.nil? return false if @country_phone_number.nil? #return false if @country_phone_number !~ Regexp.new(/^[a-zA-Z]*$/) return false if @phone_number.nil? #return false if @phone_number !~ Regexp.new(/^[0-9a-zA-Z\\\\+\\\\-]+$/) return false if @email.nil? true end |