Class: CyberSource::Ptsv2paymentsProcessingInformationAuthorizationOptions
- Inherits:
-
Object
- Object
- CyberSource::Ptsv2paymentsProcessingInformationAuthorizationOptions
- Defined in:
- lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb
Instance Attribute Summary collapse
-
#auth_indicator ⇒ Object
Flag that specifies the purpose of the authorization.
-
#auth_type ⇒ Object
Authorization type.
-
#balance_inquiry ⇒ Object
Flag that indicates whether to return balance information.
-
#bill_payment ⇒ Object
Flag that indicates that this is a payment for a bill or for an existing contractual loan.
-
#bill_payment_type ⇒ Object
Reason for the payment.
-
#decline_avs_flags ⇒ Object
Comma-separated list of AVS flags that cause the reply flag ‘DAVSNO` to be returned.
-
#ignore_avs_result ⇒ Object
Flag that indicates whether to allow the capture service to run, even when the payment receives an AVS decline.
-
#ignore_cv_result ⇒ Object
Flag that indicates whether to allow the capture service to run even when the payment receives a CVN decline.
-
#initiator ⇒ Object
Returns the value of attribute initiator.
-
#partial_auth_indicator ⇒ Object
Flag that indicates whether the transaction is enabled for partial authorization or not.
-
#verbal_auth_code ⇒ Object
Authorization code.
-
#verbal_auth_transaction_id ⇒ Object
Transaction ID (TID).
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.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 = {}) ⇒ Ptsv2paymentsProcessingInformationAuthorizationOptions
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 = {}) ⇒ Ptsv2paymentsProcessingInformationAuthorizationOptions
Initializes the object
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 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 140 141 142 143 144 145 146 147 148 149 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb', line 90 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?(:'authType') self.auth_type = attributes[:'authType'] end if attributes.has_key?(:'verbalAuthCode') self.verbal_auth_code = attributes[:'verbalAuthCode'] end if attributes.has_key?(:'verbalAuthTransactionId') self.verbal_auth_transaction_id = attributes[:'verbalAuthTransactionId'] end if attributes.has_key?(:'authIndicator') self.auth_indicator = attributes[:'authIndicator'] end if attributes.has_key?(:'partialAuthIndicator') self.partial_auth_indicator = attributes[:'partialAuthIndicator'] end if attributes.has_key?(:'balanceInquiry') self.balance_inquiry = attributes[:'balanceInquiry'] end if attributes.has_key?(:'ignoreAvsResult') self.ignore_avs_result = attributes[:'ignoreAvsResult'] else self.ignore_avs_result = false end if attributes.has_key?(:'declineAvsFlags') if (value = attributes[:'declineAvsFlags']).is_a?(Array) self.decline_avs_flags = value end end if attributes.has_key?(:'ignoreCvResult') self.ignore_cv_result = attributes[:'ignoreCvResult'] else self.ignore_cv_result = false end if attributes.has_key?(:'initiator') self.initiator = attributes[:'initiator'] end if attributes.has_key?(:'billPayment') self.bill_payment = attributes[:'billPayment'] end if attributes.has_key?(:'billPaymentType') self.bill_payment_type = attributes[:'billPaymentType'] end end |
Instance Attribute Details
#auth_indicator ⇒ Object
Flag that specifies the purpose of the authorization. Possible values: - 0: Preauthorization - 1: Final authorization To set the default for this field, contact CyberSource Customer Support. For details, see "Final Authorization Indicator" in the [Credit Card Services Using the SCMP API Guide](apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm). #### Barclays and Elavon The default for Barclays and Elavon is 1 (final authorization). To change the default for this field, contact CyberSource Customer Support. #### CyberSource through VisaNet When the value for this field is 0, it corresponds to the following data in the TC 33 capture file5: - Record: CP01 TCR0 - Position: 164 - Field: Additional Authorization Indicators When the value for this field is 1, it does not correspond to any data in the TC 33 capture file. For processor-specific information, see the ‘auth_indicator` field in [Credit Card Services Using the SCMP API](apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html).
27 28 29 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb', line 27 def auth_indicator @auth_indicator end |
#auth_type ⇒ Object
Authorization type. Possible values: - ‘AUTOCAPTURE`: automatic capture. - `STANDARDCAPTURE`: standard capture. - `VERBAL`: forced capture. Include it in the payment request for a forced capture. Include it in the capture request for a verbal payment. #### Asia, Middle East, and Africa Gateway; Cielo; Comercio Latino; and CyberSource Latin American Processing Set this field to `AUTOCAPTURE` and include it in a bundled request to indicate that you are requesting an automatic capture. If your account is configured to enable automatic captures, set this field to `STANDARDCAPTURE` and include it in a standard authorization or bundled request to indicate that you are overriding an automatic capture. For more information, see the `auth_type` field description in [Credit Card Services Using the SCMP API Guide.](apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) #### Forced Capture Set this field to `VERBAL` and include it in the authorization request to indicate that you are performing a forced capture; therefore, you receive the authorization code outside the CyberSource system. For more information, see "Forced Captures" in [Credit Card Services Using the SCMP API Guide](apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm). #### Verbal Authorization Set this field to `VERBAL` and include it in the capture request to indicate that the request is for a verbal authorization. For more information, see "Verbal Authorizations" in [Credit Card Services Using the SCMP API](apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html). For processor-specific information, see the `auth_type` field in [Credit Card Services Using the SCMP API.](apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
18 19 20 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb', line 18 def auth_type @auth_type end |
#balance_inquiry ⇒ Object
Flag that indicates whether to return balance information. Possible values: - true - false
33 34 35 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb', line 33 def balance_inquiry @balance_inquiry end |
#bill_payment ⇒ Object
Flag that indicates that this is a payment for a bill or for an existing contractual loan. For processor-specific details, see the ‘bill_payment` field description in [Credit Card Services Using the SCMP API.](apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) Possible values: - `true`: Bill payment or loan payment. - `false` (default): Not a bill payment or loan payment.
47 48 49 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb', line 47 def bill_payment @bill_payment end |
#bill_payment_type ⇒ Object
Reason for the payment. Possible values: - 001: Utility payment - 002: Government services - 003: Mobile phone top-up - 004: Coupon payment The value for this field corresponds to the following data in the TC 33 capture file5: - Record: CP07 TCR0 - Position: 48-50 - Field: Bill Payment Transaction Type Identifier This field is supported only for bill payments in Brazil with Mastercard on CyberSource through VisaNet. Note For details about Mastercard bill payments or bill payments with Visa, see ‘bill_payment_type` field description in the [Credit Card Services Using the SCMP API Guide.](apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm)
50 51 52 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb', line 50 def bill_payment_type @bill_payment_type end |
#decline_avs_flags ⇒ Object
Comma-separated list of AVS flags that cause the reply flag ‘DAVSNO` to be returned. Important To receive declines for the AVS code `N`, you must include the value `N` in the comma-separated list. ### AVS Codes for Cielo 3.0 and CyberSource Latin American Processing Note CyberSource Latin American Processing is the name of a specific processing connection that CyberSource supports. In the CyberSource API documentation, CyberSource Latin American Processing does not refer to the general topic of processing in Latin America. The information in this section is for the specific processing connection called CyberSource Latin American Processing. It is not for any other Latin American processors that CyberSource supports. |AVS Code|Description| |— |— | |D|Partial match: postal code and address match.| |E|Not supported: AVS is not supported for this card type. or Invalid: the acquirer returned an unrecognized value for the AVS response.| |F|Partial match: postal code matches, but CPF and address do not match.*| |G|Not supported: AVS not supported or not verified.| |I|No match: AVS information is not available.| |K|Partial match: CPF matches, but postal code and address do not match.*| |L|Partial match: postal code and CPF match, but address does not match.*| |N|No match: postal code, CPF, and address do not match.*| |O|Partial match: CPF and address match, but postal code does not match.*| |R|Not supported: your implementation does not support AVS or System unavailable.| |T|Partial match: address matches, but postal code and CPF do not match.*| |V|Match: postal code, CPF, and address match.*| |* CPF (Cadastro de Pessoas Fisicas) is required only for Redecard in Brazil.|| ### AVS Codes for All Other Processors Note The list of AVS codes for all other processors follows these descriptions of the processor-specific information for these codes. #### American Express Cards For American Express cards only, you can receive Visa and CyberSource AVS codes in addition to the American Express AVS codes. Note For CyberSource through VisaNet, the American Express AVS codes are converted to Visa AVS codes before they are returned to you. As a result, you will not receive American Express AVS codes for the American Express card type.<br/><br/> _American Express Card codes_: `F`, `H`, `K`, `L`, `O`, `T`, `V` #### Domestic and International Visa Cards The international and domestic alphabetic AVS codes are the Visa standard AVS codes. CyberSource maps the standard AVS return codes for other types of payment cards, including American Express cards, to the Visa standard AVS codes. AVS is considered either domestic or international, depending on the location of the bank that issued the customer’s payment card: - When the bank is in the U.S., the AVS is domestic. - When the bank is outside the U.S., the AVS is international. You should be prepared to handle both domestic and international AVS result codes: - For international cards, you can receive domestic AVS codes in addition to the international AVS codes. - For domestic cards, you can receive international AVS codes in addition to the domestic AVS codes. _International Visa Codes_: ‘B`, `C`, `D`, `G`, `I`, `M`, `P` _Domestic Visa Codes_: `A`, `E`,`N`, `R`, `S`, `U`, `W`, `X`, `Y`, `Z` #### CyberSource Codes The numeric AVS codes are created by CyberSource and are not standard Visa codes. These AVS codes can be returned for any card type. _CyberSource Codes_: `1`, `2`, `3`, `4` ### Table of AVS Codes for All Other Processors |AVS Code|Description| |— |— | |A|Partial match: street address matches, but 5-digit and 9-digit postal codes do not match.| |B|Partial match: street address matches, but postal code is not verified. Returned only for Visa cards not issued in the U.S.| |C|No match: street address and postal code do not match. Returned only for Visa cards not issued in the U.S.| |D & M|Match: street address and postal code match. Returned only for Visa cards not issued in the U.S.| |E|Invalid: AVS data is invalid or AVS is not allowed for this card type.| |F|Partial match: card member’s name does not match, but billing postal code matches.| |G|Not supported: issuing bank outside the U.S. does not support AVS.| |H|Partial match: card member’s name does not match, but street address and postal code match. Returned only for the American Express card type.| |I|No match: address not verified. Returned only for Visa cards not issued in the U.S.| |K|Partial match: card member’s name matches, but billing address and billing postal code do not match. Returned only for the American Express card type.| |L|Partial match: card member’s name and billing postal code match, but billing address does not match. Returned only for the American Express card type.| |M|See the entry for D & M.| |N|No match: one of the following: street address and postal code do not match or (American Express card type only) card member’s name, street address, and postal code do not match.| |O|Partial match: card member’s name and billing address match, but billing postal code does not match. Returned only for the American Express card type.| |P|Partial match: postal code matches, but street address not verified. Returned only for Visa cards not issued in the U.S.| |R|System unavailable.| |S|Not supported: issuing bank in the U.S. does not support AVS.| |T|Partial match: card member’s name does not match, but street address matches. Returned only for the American Express card type.| |U|System unavailable: address information unavailable for one of these reasons: The U.S. bank does not support AVS outside the U.S. or The AVS in a U.S. bank is not functioning properly.| |V|Match: card member’s name, billing address, and billing postal code match. Returned only for the American Express card type.| |W|Partial match: street address does not match, but 9-digit postal code matches.| |X|Match: street address and 9-digit postal code match.| |Y|Match: street address and 5-digit postal code match.| |Z|Partial match: street address does not match, but 5-digit postal code matches.| |1|Not supported: one of the following: AVS is not supported for this processor or card type or AVS is disabled for your CyberSource account. To enable AVS, contact CyberSource Customer Support.| |2|Unrecognized: the processor returned an unrecognized value for the AVS response.| |3|Match: address is confirmed. Returned only for PayPal Express Checkout.| |4|No match: address is not confirmed. Returned only for PayPal Express Checkout.| |5|No match: no AVS code was returned by the processor.|
39 40 41 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb', line 39 def decline_avs_flags @decline_avs_flags end |
#ignore_avs_result ⇒ Object
Flag that indicates whether to allow the capture service to run, even when the payment receives an AVS decline. Possible values: - true Ignore the results of AVS checking and run the capture service. - false (default): If the authorization receives an AVS decline, do not run the capture service.
36 37 38 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb', line 36 def ignore_avs_result @ignore_avs_result end |
#ignore_cv_result ⇒ Object
Flag that indicates whether to allow the capture service to run even when the payment receives a CVN decline. Possible values: - true Ignore the results of CVN checking and run the capture service. - false (default) If the authorization receives a CVN decline, do not run the capture service.
42 43 44 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb', line 42 def ignore_cv_result @ignore_cv_result end |
#initiator ⇒ Object
Returns the value of attribute initiator.
44 45 46 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb', line 44 def initiator @initiator end |
#partial_auth_indicator ⇒ Object
Flag that indicates whether the transaction is enabled for partial authorization or not. When your request includes this field, this value overrides the information in your CyberSource account. For processor-specific information, see the ‘auth_partial_auth_indicator` field in [Credit Card Services Using the SCMP API.](apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) #### CyberSource through VisaNet To set the default for this field, contact CyberSource Customer Support. The value for this field corresponds to the following data in the TC 33 capture file5: - Record: CP01 TCR0 - Position: 164 - Field: Additional Authorization Indicators Possible values: - true Enable the transaction for partial authorization. - false Do not enable the transaction for partial authorization.
30 31 32 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb', line 30 def partial_auth_indicator @partial_auth_indicator end |
#verbal_auth_code ⇒ Object
Authorization code. #### Forced Capture Use this field to send the authorization code you received from a payment that you authorized outside the CyberSource system. #### Verbal Authorization Use this field in CAPTURE API to send the verbally received authorization code. For processor-specific information, see the ‘auth_code` field description in [Credit Card Services Using the SCMP API](apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html).
21 22 23 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb', line 21 def verbal_auth_code @verbal_auth_code end |
#verbal_auth_transaction_id ⇒ Object
Transaction ID (TID). #### FDMS South This field is required for verbal authorizations and forced captures with the American Express card type to comply with the CAPN requirements: - Forced capture: Obtain the value for this field from the authorization response. - Verbal authorization: You cannot obtain a value for this field so CyberSource uses the default value of ‘000000000000000` (15 zeros). For more information about using this default value, see "Verbal Authorizations" in [Credit Card Services Using the SCMP API Guide](apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm)
24 25 26 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb', line 24 def verbal_auth_transaction_id @verbal_auth_transaction_id end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb', line 53 def self.attribute_map { :'auth_type' => :'authType', :'verbal_auth_code' => :'verbalAuthCode', :'verbal_auth_transaction_id' => :'verbalAuthTransactionId', :'auth_indicator' => :'authIndicator', :'partial_auth_indicator' => :'partialAuthIndicator', :'balance_inquiry' => :'balanceInquiry', :'ignore_avs_result' => :'ignoreAvsResult', :'decline_avs_flags' => :'declineAvsFlags', :'ignore_cv_result' => :'ignoreCvResult', :'initiator' => :'initiator', :'bill_payment' => :'billPayment', :'bill_payment_type' => :'billPaymentType' } end |
.swagger_types ⇒ Object
Attribute type mapping.
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb', line 71 def self.swagger_types { :'auth_type' => :'String', :'verbal_auth_code' => :'String', :'verbal_auth_transaction_id' => :'String', :'auth_indicator' => :'String', :'partial_auth_indicator' => :'BOOLEAN', :'balance_inquiry' => :'BOOLEAN', :'ignore_avs_result' => :'BOOLEAN', :'decline_avs_flags' => :'Array<String>', :'ignore_cv_result' => :'BOOLEAN', :'initiator' => :'Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator', :'bill_payment' => :'BOOLEAN', :'bill_payment_type' => :'String' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb', line 226 def ==(o) return true if self.equal?(o) self.class == o.class && auth_type == o.auth_type && verbal_auth_code == o.verbal_auth_code && verbal_auth_transaction_id == o.verbal_auth_transaction_id && auth_indicator == o.auth_indicator && partial_auth_indicator == o.partial_auth_indicator && balance_inquiry == o.balance_inquiry && ignore_avs_result == o.ignore_avs_result && decline_avs_flags == o.decline_avs_flags && ignore_cv_result == o.ignore_cv_result && initiator == o.initiator && bill_payment == o.bill_payment && bill_payment_type == o.bill_payment_type end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
279 280 281 282 283 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 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb', line 279 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
345 346 347 348 349 350 351 352 353 354 355 356 357 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb', line 345 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
258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb', line 258 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("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{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
245 246 247 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb', line 245 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
251 252 253 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb', line 251 def hash [auth_type, verbal_auth_code, verbal_auth_transaction_id, auth_indicator, partial_auth_indicator, balance_inquiry, ignore_avs_result, decline_avs_flags, ignore_cv_result, initiator, bill_payment, bill_payment_type].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb', line 153 def list_invalid_properties invalid_properties = Array.new if !@auth_type.nil? && @auth_type.to_s.length > 15 invalid_properties.push('invalid value for "auth_type", the character length must be smaller than or equal to 15.') end if !@verbal_auth_code.nil? && @verbal_auth_code.to_s.length > 7 invalid_properties.push('invalid value for "verbal_auth_code", the character length must be smaller than or equal to 7.') end if !@verbal_auth_transaction_id.nil? && @verbal_auth_transaction_id.to_s.length > 15 invalid_properties.push('invalid value for "verbal_auth_transaction_id", the character length must be smaller than or equal to 15.') end if !@auth_indicator.nil? && @auth_indicator.to_s.length > 1 invalid_properties.push('invalid value for "auth_indicator", the character length must be smaller than or equal to 1.') end invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
325 326 327 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb', line 325 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
331 332 333 334 335 336 337 338 339 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb', line 331 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
319 320 321 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb', line 319 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
176 177 178 179 180 181 182 |
# File 'lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb', line 176 def valid? return false if !@auth_type.nil? && @auth_type.to_s.length > 15 return false if !@verbal_auth_code.nil? && @verbal_auth_code.to_s.length > 7 return false if !@verbal_auth_transaction_id.nil? && @verbal_auth_transaction_id.to_s.length > 15 return false if !@auth_indicator.nil? && @auth_indicator.to_s.length > 1 true end |