cybersource_rest_client 0.0.25 → 0.0.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cybersource_rest_client.rb +2 -0
- data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +2 -0
- data/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +2 -0
- data/lib/cybersource_rest_client/api/payment_instrument_api.rb +2 -0
- data/lib/cybersource_rest_client/models/invoice_settings_request.rb +1 -1
- data/lib/cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response_invoice_settings_information.rb +29 -4
- data/lib/cybersource_rest_client/models/invoicingv2invoice_settings_invoice_settings_information.rb +343 -0
- data/lib/cybersource_rest_client/models/patch_customer_payment_instrument_request.rb +11 -1
- data/lib/cybersource_rest_client/models/patch_customer_shipping_address_request.rb +11 -1
- data/lib/cybersource_rest_client/models/patch_payment_instrument_request.rb +11 -1
- data/lib/cybersource_rest_client/models/post_customer_payment_instrument_request.rb +11 -1
- data/lib/cybersource_rest_client/models/post_customer_shipping_address_request.rb +11 -1
- data/lib/cybersource_rest_client/models/post_payment_instrument_request.rb +11 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information.rb +1 -16
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information.rb +129 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_velocity_morphing.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_device_information.rb +5 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_device_information.rb +5 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response_consumer_authentication_information.rb +1 -16
- data/lib/cybersource_rest_client/models/risk_v1_authentication_setups_post201_response_consumer_authentication_information.rb +1 -16
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_consumer_authentication_information.rb +2 -32
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb +1 -16
- data/lib/cybersource_rest_client/models/riskv1authentications_device_information.rb +5 -5
- data/lib/cybersource_rest_client/models/riskv1decisions_device_information.rb +5 -5
- data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_device_information.rb +5 -5
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_device_information.rb +5 -5
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument.rb +11 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_bank_account.rb +7 -7
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address.rb +11 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_device_information.rb +5 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +13 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information_multi_processor_routing.rb +244 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_device_information.rb +5 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processing_information.rb +1 -1
- metadata +8 -6
@@ -20,7 +20,7 @@ module CyberSource
|
|
20
20
|
# Field name of the morphing element. specified by the setting that you chose in the Velocity Editor. For all possible values, see the `decisionReply_morphingElement_#_fieldName` field description in the _Decision Manager Using the SCMP API Developer Guide_ on the [CyberSource Business Center.](https://ebc2.cybersource.com/ebc2/) Click **Decision Manager** > **Documentation** > **Guides** > _Decision Manager Using the SCMP API Developer Guide_ (PDF link).
|
21
21
|
attr_accessor :field_name
|
22
22
|
|
23
|
-
# Identifier that CyberSource assigned to the velocity rule specified by the number #. For all possible values, see the `decision_velocity_morphing_#_info_code` field description in the _Decision Manager Using the SCMP API Developer Guide_ on the [CyberSource Business Center.](https://ebc2.cybersource.com/ebc2/) Click **Decision Manager** >
|
23
|
+
# Identifier that CyberSource assigned to the velocity rule specified by the number #. For all possible values, see the `decision_velocity_morphing_#_info_code` field description in the _Decision Manager Using the SCMP API Developer Guide_ on the [CyberSource Business Center.](https://ebc2.cybersource.com/ebc2/) Click **Decision Manager** >
|
24
24
|
attr_accessor :information_code
|
25
25
|
|
26
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class Ptsv2creditsProcessingInformation
|
17
|
-
# Type of transaction. Some payment card companies use this information when determining discount rates. #### Used by **Authorization** Required payer authentication transactions; otherwise, optional. **Credit** Required for standalone credits on Chase Paymentech solutions; otherwise, optional. Only `internet`, `moto`, `install`, `recurring`, and `recurring_internet` are valid values. #### Ingenico ePayments When you omit this field for Ingenico ePayments, the processor uses the default transaction type they have on file for you instead of the default value (listed in Appendix I, \"Commerce Indicators,\" on page 441.) #### Payer Authentication Transactions For the possible values and requirements, see \"Payer Authentication,\" page 195. #### Other Types of Transactions See Appendix I, \"Commerce Indicators,\" on page 441. #### Card Present You must set this field to `retail`. This field is required for a card-present transaction.
|
17
|
+
# Type of transaction. Some payment card companies use this information when determining discount rates. #### Used by **Authorization** Required payer authentication transactions; otherwise, optional. **Credit** Required for standalone credits on Chase Paymentech solutions; otherwise, optional. Only `internet`, `moto`, `install`, `recurring`, and `recurring_internet` are valid values. #### Ingenico ePayments When you omit this field for Ingenico ePayments, the processor uses the default transaction type they have on file for you instead of the default value (listed in Appendix I, \"Commerce Indicators,\" on page 441.) #### Payer Authentication Transactions For the possible values and requirements, see \"Payer Authentication,\" page 195. #### Other Types of Transactions See Appendix I, \"Commerce Indicators,\" on page 441. #### Card Present You must set this field to `retail`. This field is required for a card-present transaction. Note that this should ONLY be used when the cardholder and card are present at the time of the transaction. For all keyed transactions originated from a POS terminal where the cardholder and card are not present, commerceIndicator should be submitted as “moto\"
|
18
18
|
attr_accessor :commerce_indicator
|
19
19
|
|
20
20
|
# Value that identifies the processor/acquirer to use for the transaction. This value is supported only for **CyberSource through VisaNet**. Contact CyberSource Customer Support to get the value for this field.
|
@@ -188,8 +188,8 @@ module CyberSource
|
|
188
188
|
invalid_properties.push('invalid value for "host_name", the character length must be smaller than or equal to 60.')
|
189
189
|
end
|
190
190
|
|
191
|
-
if !@ip_address.nil? && @ip_address.to_s.length >
|
192
|
-
invalid_properties.push('invalid value for "ip_address", the character length must be smaller than or equal to
|
191
|
+
if !@ip_address.nil? && @ip_address.to_s.length > 45
|
192
|
+
invalid_properties.push('invalid value for "ip_address", the character length must be smaller than or equal to 45.')
|
193
193
|
end
|
194
194
|
|
195
195
|
if !@user_agent.nil? && @user_agent.to_s.length > 40
|
@@ -235,7 +235,7 @@ module CyberSource
|
|
235
235
|
# @return true if the model is valid
|
236
236
|
def valid?
|
237
237
|
return false if !@host_name.nil? && @host_name.to_s.length > 60
|
238
|
-
return false if !@ip_address.nil? && @ip_address.to_s.length >
|
238
|
+
return false if !@ip_address.nil? && @ip_address.to_s.length > 45
|
239
239
|
return false if !@user_agent.nil? && @user_agent.to_s.length > 40
|
240
240
|
return false if !@http_accept_browser_value.nil? && @http_accept_browser_value.to_s.length > 255
|
241
241
|
return false if !@http_accept_content.nil? && @http_accept_content.to_s.length > 256
|
@@ -261,8 +261,8 @@ module CyberSource
|
|
261
261
|
# Custom attribute writer method with validation
|
262
262
|
# @param [Object] ip_address Value to be assigned
|
263
263
|
def ip_address=(ip_address)
|
264
|
-
if !ip_address.nil? && ip_address.to_s.length >
|
265
|
-
fail ArgumentError, 'invalid value for "ip_address", the character length must be smaller than or equal to
|
264
|
+
if !ip_address.nil? && ip_address.to_s.length > 45
|
265
|
+
fail ArgumentError, 'invalid value for "ip_address", the character length must be smaller than or equal to 45.'
|
266
266
|
end
|
267
267
|
|
268
268
|
@ip_address = ip_address
|
@@ -26,7 +26,7 @@ module CyberSource
|
|
26
26
|
# Total charges for any import or export duties included in the order.
|
27
27
|
attr_accessor :duty_amount
|
28
28
|
|
29
|
-
# Gratuity or tip amount for restaurants
|
29
|
+
# Gratuity or tip amount for restaurants. Allowed only when industryDatatype=restaurant. When your customer uses a debit card or prepaid card, and you receive a partial authorization, the payment networks recommend that you do not submit a capture amount that is higher than the authorized amount. When the capture amount exceeds the partial amount that was approved, the issuer has chargeback rights for the excess amount. Used by **Capture** Optional field. #### CyberSource through VisaNet Restaurant data is supported only on CyberSource through VisaNet when card is present.
|
30
30
|
attr_accessor :gratuity_amount
|
31
31
|
|
32
32
|
# Total tax amount for all the items in the order.
|
@@ -29,7 +29,7 @@ module CyberSource
|
|
29
29
|
# Payouts transaction type. Required for OCT transactions. This field is a pass-through, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. **Note** When the request includes this field, this value overrides the information in your CyberSource account. For valid values, see the `invoiceHeader_businessApplicationID` field description in [Payouts Using the Simple Order API.](http://apps.cybersource.com/library/documentation/dev_guides/payouts_SO/Payouts_SO_API.pdf)
|
30
30
|
attr_accessor :business_application_id
|
31
31
|
|
32
|
-
# Type of transaction. Some payment card companies use this information when determining discount rates. #### Used by **Authorization** Required payer authentication transactions; otherwise, optional. **Credit** Required for standalone credits on Chase Paymentech solutions; otherwise, optional. Only `internet`, `moto`, `install`, `recurring`, and `recurring_internet` are valid values. #### Ingenico ePayments When you omit this field for Ingenico ePayments, the processor uses the default transaction type they have on file for you instead of the default value (listed in Appendix I, \"Commerce Indicators,\" on page 441.) #### Payer Authentication Transactions For the possible values and requirements, see \"Payer Authentication,\" page 195. #### Other Types of Transactions See Appendix I, \"Commerce Indicators,\" on page 441. #### Card Present You must set this field to `retail`. This field is required for a card-present transaction.
|
32
|
+
# Type of transaction. Some payment card companies use this information when determining discount rates. #### Used by **Authorization** Required payer authentication transactions; otherwise, optional. **Credit** Required for standalone credits on Chase Paymentech solutions; otherwise, optional. Only `internet`, `moto`, `install`, `recurring`, and `recurring_internet` are valid values. #### Ingenico ePayments When you omit this field for Ingenico ePayments, the processor uses the default transaction type they have on file for you instead of the default value (listed in Appendix I, \"Commerce Indicators,\" on page 441.) #### Payer Authentication Transactions For the possible values and requirements, see \"Payer Authentication,\" page 195. #### Other Types of Transactions See Appendix I, \"Commerce Indicators,\" on page 441. #### Card Present You must set this field to `retail`. This field is required for a card-present transaction. Note that this should ONLY be used when the cardholder and card are present at the time of the transaction. For all keyed transactions originated from a POS terminal where the cardholder and card are not present, commerceIndicator should be submitted as “moto\"
|
33
33
|
attr_accessor :commerce_indicator
|
34
34
|
|
35
35
|
# Type of digital payment solution for the transaction. Possible Values: - `visacheckout`: Visa Checkout. This value is required for Visa Checkout transactions. For details, see `payment_solution` field description in [Visa Checkout Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/VCO_SCMP_API/html/) - `001`: Apple Pay. - `004`: Cybersource In-App Solution. - `005`: Masterpass. This value is required for Masterpass transactions on OmniPay Direct. For details, see \"Masterpass\" in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) - `006`: Android Pay. - `007`: Chase Pay. - `008`: Samsung Pay. - `012`: Google Pay.
|
@@ -70,8 +70,8 @@ module CyberSource
|
|
70
70
|
invalid_properties.push('invalid value for "host_name", the character length must be smaller than or equal to 60.')
|
71
71
|
end
|
72
72
|
|
73
|
-
if !@ip_address.nil? && @ip_address.to_s.length >
|
74
|
-
invalid_properties.push('invalid value for "ip_address", the character length must be smaller than or equal to
|
73
|
+
if !@ip_address.nil? && @ip_address.to_s.length > 45
|
74
|
+
invalid_properties.push('invalid value for "ip_address", the character length must be smaller than or equal to 45.')
|
75
75
|
end
|
76
76
|
|
77
77
|
if !@user_agent.nil? && @user_agent.to_s.length > 40
|
@@ -85,7 +85,7 @@ module CyberSource
|
|
85
85
|
# @return true if the model is valid
|
86
86
|
def valid?
|
87
87
|
return false if !@host_name.nil? && @host_name.to_s.length > 60
|
88
|
-
return false if !@ip_address.nil? && @ip_address.to_s.length >
|
88
|
+
return false if !@ip_address.nil? && @ip_address.to_s.length > 45
|
89
89
|
return false if !@user_agent.nil? && @user_agent.to_s.length > 40
|
90
90
|
true
|
91
91
|
end
|
@@ -103,8 +103,8 @@ module CyberSource
|
|
103
103
|
# Custom attribute writer method with validation
|
104
104
|
# @param [Object] ip_address Value to be assigned
|
105
105
|
def ip_address=(ip_address)
|
106
|
-
if !ip_address.nil? && ip_address.to_s.length >
|
107
|
-
fail ArgumentError, 'invalid value for "ip_address", the character length must be smaller than or equal to
|
106
|
+
if !ip_address.nil? && ip_address.to_s.length > 45
|
107
|
+
fail ArgumentError, 'invalid value for "ip_address", the character length must be smaller than or equal to 45.'
|
108
108
|
end
|
109
109
|
|
110
110
|
@ip_address = ip_address
|
data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb
CHANGED
@@ -26,7 +26,7 @@ module CyberSource
|
|
26
26
|
# Total charges for any import or export duties included in the order.
|
27
27
|
attr_accessor :duty_amount
|
28
28
|
|
29
|
-
# Gratuity or tip amount for restaurants
|
29
|
+
# Gratuity or tip amount for restaurants. Allowed only when industryDatatype=restaurant. When your customer uses a debit card or prepaid card, and you receive a partial authorization, the payment networks recommend that you do not submit a capture amount that is higher than the authorized amount. When the capture amount exceeds the partial amount that was approved, the issuer has chargeback rights for the excess amount. Used by **Capture** Optional field. #### CyberSource through VisaNet Restaurant data is supported only on CyberSource through VisaNet when card is present.
|
30
30
|
attr_accessor :gratuity_amount
|
31
31
|
|
32
32
|
# Total tax amount for all the items in the order.
|
@@ -35,7 +35,7 @@ module CyberSource
|
|
35
35
|
# Field that is returned only when the CAVV is generated, which occurs when paresStatus contains the values Y (successful authentication) or A (attempted authentication). If you use the ATOS processor, send the value of this field in the `cavv_algorithm` request field of the authorization service. This field contains one of these values: - `2`: Visa, American Express, JCB, Diners Club, and Discover - `3`: Mastercard
|
36
36
|
attr_accessor :cavv_algorithm
|
37
37
|
|
38
|
-
# The directory server error code indicating a problem with this transaction.
|
38
|
+
# The directory server error code indicating a problem with this transaction. Note - Max Length of this field is typically 3 characters.
|
39
39
|
attr_accessor :directory_server_error_code
|
40
40
|
|
41
41
|
# Directory server text and additional detail about the error for this transaction.
|
@@ -258,10 +258,6 @@ module CyberSource
|
|
258
258
|
invalid_properties.push('invalid value for "cavv_algorithm", the character length must be smaller than or equal to 1.')
|
259
259
|
end
|
260
260
|
|
261
|
-
if !@directory_server_error_code.nil? && @directory_server_error_code.to_s.length > 3
|
262
|
-
invalid_properties.push('invalid value for "directory_server_error_code", the character length must be smaller than or equal to 3.')
|
263
|
-
end
|
264
|
-
|
265
261
|
if !@directory_server_error_description.nil? && @directory_server_error_description.to_s.length > 4096
|
266
262
|
invalid_properties.push('invalid value for "directory_server_error_description", the character length must be smaller than or equal to 4096.')
|
267
263
|
end
|
@@ -299,7 +295,6 @@ module CyberSource
|
|
299
295
|
return false if !@acs_transaction_id.nil? && @acs_transaction_id.to_s.length > 36
|
300
296
|
return false if !@cavv.nil? && @cavv.to_s.length > 255
|
301
297
|
return false if !@cavv_algorithm.nil? && @cavv_algorithm.to_s.length > 1
|
302
|
-
return false if !@directory_server_error_code.nil? && @directory_server_error_code.to_s.length > 3
|
303
298
|
return false if !@directory_server_error_description.nil? && @directory_server_error_description.to_s.length > 4096
|
304
299
|
return false if !@interaction_counter.nil? && @interaction_counter.to_s.length > 2
|
305
300
|
return false if !@sdk_transaction_id.nil? && @sdk_transaction_id.to_s.length > 36
|
@@ -340,16 +335,6 @@ module CyberSource
|
|
340
335
|
@cavv_algorithm = cavv_algorithm
|
341
336
|
end
|
342
337
|
|
343
|
-
# Custom attribute writer method with validation
|
344
|
-
# @param [Object] directory_server_error_code Value to be assigned
|
345
|
-
def directory_server_error_code=(directory_server_error_code)
|
346
|
-
if !directory_server_error_code.nil? && directory_server_error_code.to_s.length > 3
|
347
|
-
fail ArgumentError, 'invalid value for "directory_server_error_code", the character length must be smaller than or equal to 3.'
|
348
|
-
end
|
349
|
-
|
350
|
-
@directory_server_error_code = directory_server_error_code
|
351
|
-
end
|
352
|
-
|
353
338
|
# Custom attribute writer method with validation
|
354
339
|
# @param [Object] directory_server_error_description Value to be assigned
|
355
340
|
def directory_server_error_description=(directory_server_error_description)
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class RiskV1AuthenticationSetupsPost201ResponseConsumerAuthenticationInformation
|
17
|
-
# JSON Web Token (JWT) used to authenticate the consumer with the authentication provider, such as, CardinalCommerce or Rupay.
|
17
|
+
# JSON Web Token (JWT) used to authenticate the consumer with the authentication provider, such as, CardinalCommerce or Rupay. Note - Max Length of this field is 2048 characters.
|
18
18
|
attr_accessor :access_token
|
19
19
|
|
20
20
|
# This identifier represents cardinal has started device data collection session and this must be passed in Authentication JWT to Cardinal when invoking the deviceDataCollectionUrl.
|
@@ -66,10 +66,6 @@ module CyberSource
|
|
66
66
|
# @return Array for valid properties with the reasons
|
67
67
|
def list_invalid_properties
|
68
68
|
invalid_properties = Array.new
|
69
|
-
if !@access_token.nil? && @access_token.to_s.length > 2048
|
70
|
-
invalid_properties.push('invalid value for "access_token", the character length must be smaller than or equal to 2048.')
|
71
|
-
end
|
72
|
-
|
73
69
|
if !@reference_id.nil? && @reference_id.to_s.length > 50
|
74
70
|
invalid_properties.push('invalid value for "reference_id", the character length must be smaller than or equal to 50.')
|
75
71
|
end
|
@@ -84,22 +80,11 @@ module CyberSource
|
|
84
80
|
# Check to see if the all the properties in the model are valid
|
85
81
|
# @return true if the model is valid
|
86
82
|
def valid?
|
87
|
-
return false if !@access_token.nil? && @access_token.to_s.length > 2048
|
88
83
|
return false if !@reference_id.nil? && @reference_id.to_s.length > 50
|
89
84
|
return false if !@device_data_collection_url.nil? && @device_data_collection_url.to_s.length > 100
|
90
85
|
true
|
91
86
|
end
|
92
87
|
|
93
|
-
# Custom attribute writer method with validation
|
94
|
-
# @param [Object] access_token Value to be assigned
|
95
|
-
def access_token=(access_token)
|
96
|
-
if !access_token.nil? && access_token.to_s.length > 2048
|
97
|
-
fail ArgumentError, 'invalid value for "access_token", the character length must be smaller than or equal to 2048.'
|
98
|
-
end
|
99
|
-
|
100
|
-
@access_token = access_token
|
101
|
-
end
|
102
|
-
|
103
88
|
# Custom attribute writer method with validation
|
104
89
|
# @param [Object] reference_id Value to be assigned
|
105
90
|
def reference_id=(reference_id)
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class RiskV1DecisionsPost201ResponseConsumerAuthenticationInformation
|
17
|
-
# JSON Web Token (JWT) used to authenticate the consumer with the authentication provider, such as, CardinalCommerce or Rupay.
|
17
|
+
# JSON Web Token (JWT) used to authenticate the consumer with the authentication provider, such as, CardinalCommerce or Rupay. Note - Max Length of this field is 2048 characters.
|
18
18
|
attr_accessor :access_token
|
19
19
|
|
20
20
|
# Identifies the UI Type the ACS will use to complete the challenge. **NOTE**: Only available for App transactions using the Cardinal Mobile SDK.
|
@@ -53,7 +53,7 @@ module CyberSource
|
|
53
53
|
# Indicates whether the 3DS Requestor requests the ACS to utilize Decoupled Authentication and agrees to utilize Decoupled Authentication if the ACS confirms its use. Possible Values: Y - Decoupled Authentication is supported and preferred if challenge is necessary N - Do not use Decoupled Authentication **Default Value**: N
|
54
54
|
attr_accessor :decoupled_authentication_indicator
|
55
55
|
|
56
|
-
# The directory server error code indicating a problem with this transaction.
|
56
|
+
# The directory server error code indicating a problem with this transaction. Note - Max Length of this field is typically 3 characters.
|
57
57
|
attr_accessor :directory_server_error_code
|
58
58
|
|
59
59
|
# Directory server text and additional detail about the error for this transaction.
|
@@ -362,10 +362,6 @@ module CyberSource
|
|
362
362
|
# @return Array for valid properties with the reasons
|
363
363
|
def list_invalid_properties
|
364
364
|
invalid_properties = Array.new
|
365
|
-
if !@access_token.nil? && @access_token.to_s.length > 2048
|
366
|
-
invalid_properties.push('invalid value for "access_token", the character length must be smaller than or equal to 2048.')
|
367
|
-
end
|
368
|
-
|
369
365
|
if !@acs_transaction_id.nil? && @acs_transaction_id.to_s.length > 36
|
370
366
|
invalid_properties.push('invalid value for "acs_transaction_id", the character length must be smaller than or equal to 36.')
|
371
367
|
end
|
@@ -402,10 +398,6 @@ module CyberSource
|
|
402
398
|
invalid_properties.push('invalid value for "decoupled_authentication_indicator", the character length must be smaller than or equal to 1.')
|
403
399
|
end
|
404
400
|
|
405
|
-
if !@directory_server_error_code.nil? && @directory_server_error_code.to_s.length > 3
|
406
|
-
invalid_properties.push('invalid value for "directory_server_error_code", the character length must be smaller than or equal to 3.')
|
407
|
-
end
|
408
|
-
|
409
401
|
if !@directory_server_error_description.nil? && @directory_server_error_description.to_s.length > 4096
|
410
402
|
invalid_properties.push('invalid value for "directory_server_error_description", the character length must be smaller than or equal to 4096.')
|
411
403
|
end
|
@@ -452,7 +444,6 @@ module CyberSource
|
|
452
444
|
# Check to see if the all the properties in the model are valid
|
453
445
|
# @return true if the model is valid
|
454
446
|
def valid?
|
455
|
-
return false if !@access_token.nil? && @access_token.to_s.length > 2048
|
456
447
|
return false if !@acs_transaction_id.nil? && @acs_transaction_id.to_s.length > 36
|
457
448
|
return false if !@acs_url.nil? && @acs_url.to_s.length > 2048
|
458
449
|
return false if !@authentication_transaction_id.nil? && @authentication_transaction_id.to_s.length > 20
|
@@ -462,7 +453,6 @@ module CyberSource
|
|
462
453
|
return false if !@challenge_cancel_code.nil? && @challenge_cancel_code.to_s.length > 2
|
463
454
|
return false if !@challenge_required.nil? && @challenge_required.to_s.length > 1
|
464
455
|
return false if !@decoupled_authentication_indicator.nil? && @decoupled_authentication_indicator.to_s.length > 1
|
465
|
-
return false if !@directory_server_error_code.nil? && @directory_server_error_code.to_s.length > 3
|
466
456
|
return false if !@directory_server_error_description.nil? && @directory_server_error_description.to_s.length > 4096
|
467
457
|
return false if !@ecommerce_indicator.nil? && @ecommerce_indicator.to_s.length > 255
|
468
458
|
return false if !@effective_authentication_type.nil? && @effective_authentication_type.to_s.length > 2
|
@@ -476,16 +466,6 @@ module CyberSource
|
|
476
466
|
true
|
477
467
|
end
|
478
468
|
|
479
|
-
# Custom attribute writer method with validation
|
480
|
-
# @param [Object] access_token Value to be assigned
|
481
|
-
def access_token=(access_token)
|
482
|
-
if !access_token.nil? && access_token.to_s.length > 2048
|
483
|
-
fail ArgumentError, 'invalid value for "access_token", the character length must be smaller than or equal to 2048.'
|
484
|
-
end
|
485
|
-
|
486
|
-
@access_token = access_token
|
487
|
-
end
|
488
|
-
|
489
469
|
# Custom attribute writer method with validation
|
490
470
|
# @param [Object] acs_transaction_id Value to be assigned
|
491
471
|
def acs_transaction_id=(acs_transaction_id)
|
@@ -576,16 +556,6 @@ module CyberSource
|
|
576
556
|
@decoupled_authentication_indicator = decoupled_authentication_indicator
|
577
557
|
end
|
578
558
|
|
579
|
-
# Custom attribute writer method with validation
|
580
|
-
# @param [Object] directory_server_error_code Value to be assigned
|
581
|
-
def directory_server_error_code=(directory_server_error_code)
|
582
|
-
if !directory_server_error_code.nil? && directory_server_error_code.to_s.length > 3
|
583
|
-
fail ArgumentError, 'invalid value for "directory_server_error_code", the character length must be smaller than or equal to 3.'
|
584
|
-
end
|
585
|
-
|
586
|
-
@directory_server_error_code = directory_server_error_code
|
587
|
-
end
|
588
|
-
|
589
559
|
# Custom attribute writer method with validation
|
590
560
|
# @param [Object] directory_server_error_description Value to be assigned
|
591
561
|
def directory_server_error_description=(directory_server_error_description)
|
@@ -23,7 +23,7 @@ module CyberSource
|
|
23
23
|
# This field describes the type of 3DS transaction flow that took place. It can be one of three possible flows; CH - Challenge FR - Frictionless FD - Frictionless with delegation, (challenge not generated by the issuer but by the scheme on behalf of the issuer).
|
24
24
|
attr_accessor :effective_authentication_type
|
25
25
|
|
26
|
-
# A JWT returned by 3DS provider once the authentication is complete, required in cruise hybrid integration method when using CyberSource generated access token.
|
26
|
+
# A JWT returned by 3DS provider once the authentication is complete, required in cruise hybrid integration method when using CyberSource generated access token. Note - Max Length of this field is 2048 characters.
|
27
27
|
attr_accessor :response_access_token
|
28
28
|
|
29
29
|
# Provides additional information as to why the PAResStatus has a specific value.
|
@@ -114,10 +114,6 @@ module CyberSource
|
|
114
114
|
invalid_properties.push('invalid value for "effective_authentication_type", the character length must be smaller than or equal to 2.')
|
115
115
|
end
|
116
116
|
|
117
|
-
if !@response_access_token.nil? && @response_access_token.to_s.length > 2048
|
118
|
-
invalid_properties.push('invalid value for "response_access_token", the character length must be smaller than or equal to 2048.')
|
119
|
-
end
|
120
|
-
|
121
117
|
if !@signed_pares_status_reason.nil? && @signed_pares_status_reason.to_s.length > 2
|
122
118
|
invalid_properties.push('invalid value for "signed_pares_status_reason", the character length must be smaller than or equal to 2.')
|
123
119
|
end
|
@@ -139,7 +135,6 @@ module CyberSource
|
|
139
135
|
return false if !@authentication_transaction_id.nil? && @authentication_transaction_id.to_s.length > 20
|
140
136
|
return false if !@authentication_type.nil? && @authentication_type.to_s.length > 2
|
141
137
|
return false if !@effective_authentication_type.nil? && @effective_authentication_type.to_s.length > 2
|
142
|
-
return false if !@response_access_token.nil? && @response_access_token.to_s.length > 2048
|
143
138
|
return false if !@signed_pares_status_reason.nil? && @signed_pares_status_reason.to_s.length > 2
|
144
139
|
return false if @signed_pares.nil?
|
145
140
|
return false if !@white_list_status.nil? && @white_list_status.to_s.length > 1
|
@@ -176,16 +171,6 @@ module CyberSource
|
|
176
171
|
@effective_authentication_type = effective_authentication_type
|
177
172
|
end
|
178
173
|
|
179
|
-
# Custom attribute writer method with validation
|
180
|
-
# @param [Object] response_access_token Value to be assigned
|
181
|
-
def response_access_token=(response_access_token)
|
182
|
-
if !response_access_token.nil? && response_access_token.to_s.length > 2048
|
183
|
-
fail ArgumentError, 'invalid value for "response_access_token", the character length must be smaller than or equal to 2048.'
|
184
|
-
end
|
185
|
-
|
186
|
-
@response_access_token = response_access_token
|
187
|
-
end
|
188
|
-
|
189
174
|
# Custom attribute writer method with validation
|
190
175
|
# @param [Object] signed_pares_status_reason Value to be assigned
|
191
176
|
def signed_pares_status_reason=(signed_pares_status_reason)
|
@@ -148,8 +148,8 @@ module CyberSource
|
|
148
148
|
# @return Array for valid properties with the reasons
|
149
149
|
def list_invalid_properties
|
150
150
|
invalid_properties = Array.new
|
151
|
-
if !@ip_address.nil? && @ip_address.to_s.length >
|
152
|
-
invalid_properties.push('invalid value for "ip_address", the character length must be smaller than or equal to
|
151
|
+
if !@ip_address.nil? && @ip_address.to_s.length > 45
|
152
|
+
invalid_properties.push('invalid value for "ip_address", the character length must be smaller than or equal to 45.')
|
153
153
|
end
|
154
154
|
|
155
155
|
if !@http_accept_browser_value.nil? && @http_accept_browser_value.to_s.length > 255
|
@@ -190,7 +190,7 @@ module CyberSource
|
|
190
190
|
# Check to see if the all the properties in the model are valid
|
191
191
|
# @return true if the model is valid
|
192
192
|
def valid?
|
193
|
-
return false if !@ip_address.nil? && @ip_address.to_s.length >
|
193
|
+
return false if !@ip_address.nil? && @ip_address.to_s.length > 45
|
194
194
|
return false if !@http_accept_browser_value.nil? && @http_accept_browser_value.to_s.length > 255
|
195
195
|
return false if !@http_accept_content.nil? && @http_accept_content.to_s.length > 256
|
196
196
|
return false if !@http_browser_language.nil? && @http_browser_language.to_s.length > 8
|
@@ -205,8 +205,8 @@ module CyberSource
|
|
205
205
|
# Custom attribute writer method with validation
|
206
206
|
# @param [Object] ip_address Value to be assigned
|
207
207
|
def ip_address=(ip_address)
|
208
|
-
if !ip_address.nil? && ip_address.to_s.length >
|
209
|
-
fail ArgumentError, 'invalid value for "ip_address", the character length must be smaller than or equal to
|
208
|
+
if !ip_address.nil? && ip_address.to_s.length > 45
|
209
|
+
fail ArgumentError, 'invalid value for "ip_address", the character length must be smaller than or equal to 45.'
|
210
210
|
end
|
211
211
|
|
212
212
|
@ip_address = ip_address
|
@@ -193,8 +193,8 @@ module CyberSource
|
|
193
193
|
# @return Array for valid properties with the reasons
|
194
194
|
def list_invalid_properties
|
195
195
|
invalid_properties = Array.new
|
196
|
-
if !@ip_address.nil? && @ip_address.to_s.length >
|
197
|
-
invalid_properties.push('invalid value for "ip_address", the character length must be smaller than or equal to
|
196
|
+
if !@ip_address.nil? && @ip_address.to_s.length > 45
|
197
|
+
invalid_properties.push('invalid value for "ip_address", the character length must be smaller than or equal to 45.')
|
198
198
|
end
|
199
199
|
|
200
200
|
if !@host_name.nil? && @host_name.to_s.length > 60
|
@@ -243,7 +243,7 @@ module CyberSource
|
|
243
243
|
# Check to see if the all the properties in the model are valid
|
244
244
|
# @return true if the model is valid
|
245
245
|
def valid?
|
246
|
-
return false if !@ip_address.nil? && @ip_address.to_s.length >
|
246
|
+
return false if !@ip_address.nil? && @ip_address.to_s.length > 45
|
247
247
|
return false if !@host_name.nil? && @host_name.to_s.length > 60
|
248
248
|
return false if !@user_agent.nil? && @user_agent.to_s.length > 40
|
249
249
|
return false if !@http_accept_browser_value.nil? && @http_accept_browser_value.to_s.length > 255
|
@@ -260,8 +260,8 @@ module CyberSource
|
|
260
260
|
# Custom attribute writer method with validation
|
261
261
|
# @param [Object] ip_address Value to be assigned
|
262
262
|
def ip_address=(ip_address)
|
263
|
-
if !ip_address.nil? && ip_address.to_s.length >
|
264
|
-
fail ArgumentError, 'invalid value for "ip_address", the character length must be smaller than or equal to
|
263
|
+
if !ip_address.nil? && ip_address.to_s.length > 45
|
264
|
+
fail ArgumentError, 'invalid value for "ip_address", the character length must be smaller than or equal to 45.'
|
265
265
|
end
|
266
266
|
|
267
267
|
@ip_address = ip_address
|
data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_device_information.rb
CHANGED
@@ -57,8 +57,8 @@ module CyberSource
|
|
57
57
|
# @return Array for valid properties with the reasons
|
58
58
|
def list_invalid_properties
|
59
59
|
invalid_properties = Array.new
|
60
|
-
if !@ip_address.nil? && @ip_address.to_s.length >
|
61
|
-
invalid_properties.push('invalid value for "ip_address", the character length must be smaller than or equal to
|
60
|
+
if !@ip_address.nil? && @ip_address.to_s.length > 45
|
61
|
+
invalid_properties.push('invalid value for "ip_address", the character length must be smaller than or equal to 45.')
|
62
62
|
end
|
63
63
|
|
64
64
|
if !@host_name.nil? && @host_name.to_s.length > 60
|
@@ -71,7 +71,7 @@ module CyberSource
|
|
71
71
|
# Check to see if the all the properties in the model are valid
|
72
72
|
# @return true if the model is valid
|
73
73
|
def valid?
|
74
|
-
return false if !@ip_address.nil? && @ip_address.to_s.length >
|
74
|
+
return false if !@ip_address.nil? && @ip_address.to_s.length > 45
|
75
75
|
return false if !@host_name.nil? && @host_name.to_s.length > 60
|
76
76
|
true
|
77
77
|
end
|
@@ -79,8 +79,8 @@ module CyberSource
|
|
79
79
|
# Custom attribute writer method with validation
|
80
80
|
# @param [Object] ip_address Value to be assigned
|
81
81
|
def ip_address=(ip_address)
|
82
|
-
if !ip_address.nil? && ip_address.to_s.length >
|
83
|
-
fail ArgumentError, 'invalid value for "ip_address", the character length must be smaller than or equal to
|
82
|
+
if !ip_address.nil? && ip_address.to_s.length > 45
|
83
|
+
fail ArgumentError, 'invalid value for "ip_address", the character length must be smaller than or equal to 45.'
|
84
84
|
end
|
85
85
|
|
86
86
|
@ip_address = ip_address
|
@@ -57,8 +57,8 @@ module CyberSource
|
|
57
57
|
# @return Array for valid properties with the reasons
|
58
58
|
def list_invalid_properties
|
59
59
|
invalid_properties = Array.new
|
60
|
-
if !@ip_address.nil? && @ip_address.to_s.length >
|
61
|
-
invalid_properties.push('invalid value for "ip_address", the character length must be smaller than or equal to
|
60
|
+
if !@ip_address.nil? && @ip_address.to_s.length > 45
|
61
|
+
invalid_properties.push('invalid value for "ip_address", the character length must be smaller than or equal to 45.')
|
62
62
|
end
|
63
63
|
|
64
64
|
if !@network_ip_address.nil? && @network_ip_address.to_s.length > 11
|
@@ -71,7 +71,7 @@ module CyberSource
|
|
71
71
|
# Check to see if the all the properties in the model are valid
|
72
72
|
# @return true if the model is valid
|
73
73
|
def valid?
|
74
|
-
return false if !@ip_address.nil? && @ip_address.to_s.length >
|
74
|
+
return false if !@ip_address.nil? && @ip_address.to_s.length > 45
|
75
75
|
return false if !@network_ip_address.nil? && @network_ip_address.to_s.length > 11
|
76
76
|
true
|
77
77
|
end
|
@@ -79,8 +79,8 @@ module CyberSource
|
|
79
79
|
# Custom attribute writer method with validation
|
80
80
|
# @param [Object] ip_address Value to be assigned
|
81
81
|
def ip_address=(ip_address)
|
82
|
-
if !ip_address.nil? && ip_address.to_s.length >
|
83
|
-
fail ArgumentError, 'invalid value for "ip_address", the character length must be smaller than or equal to
|
82
|
+
if !ip_address.nil? && ip_address.to_s.length > 45
|
83
|
+
fail ArgumentError, 'invalid value for "ip_address", the character length must be smaller than or equal to 45.'
|
84
84
|
end
|
85
85
|
|
86
86
|
@ip_address = ip_address
|