cybersource_rest_client 0.0.14 → 0.0.15
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 +3 -39
- data/lib/cybersource_rest_client/api/conversion_details_api.rb +4 -4
- data/lib/cybersource_rest_client/api/decision_manager_api.rb +2 -2
- data/lib/cybersource_rest_client/api/net_fundings_api.rb +4 -4
- data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +4 -4
- data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +4 -10
- data/lib/cybersource_rest_client/api/report_downloads_api.rb +2 -2
- data/lib/cybersource_rest_client/api/reports_api.rb +12 -25
- data/lib/cybersource_rest_client/api/secure_file_share_api.rb +4 -4
- data/lib/cybersource_rest_client/api/transaction_batches_api.rb +6 -6
- data/lib/cybersource_rest_client/models/capture_payment_request.rb +1 -1
- data/lib/cybersource_rest_client/models/create_credit_request.rb +1 -1
- data/lib/cybersource_rest_client/models/create_payment_instrument_request.rb +2 -48
- data/lib/cybersource_rest_client/models/create_payment_request.rb +1 -1
- data/lib/cybersource_rest_client/models/create_search_request.rb +2 -2
- data/lib/cybersource_rest_client/models/embedded_instrument_identifier.rb +2 -48
- data/lib/cybersource_rest_client/models/file_detail.rb +1 -35
- data/lib/cybersource_rest_client/models/instrument_identifier.rb +2 -48
- data/lib/cybersource_rest_client/models/payment_instrument.rb +2 -48
- data/lib/cybersource_rest_client/models/payment_instrument_bank_account.rb +0 -34
- data/lib/cybersource_rest_client/models/payment_instrument_card.rb +2 -36
- data/lib/cybersource_rest_client/models/payment_instruments_for_instrument_identifier.rb +1 -35
- data/lib/cybersource_rest_client/models/personal_identification.rb +1 -35
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response.rb +0 -34
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response.rb +0 -34
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post400_response.rb +0 -46
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +0 -34
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information.rb +0 -34
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information_details.rb +0 -34
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_issuer_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_account_features.rb +13 -37
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_bank.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +7 -7
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_avs.rb +15 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_card_verification.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_merchant_advice.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post400_response.rb +0 -46
- data/lib/cybersource_rest_client/models/pts_v2_payments_post502_response.rb +1 -47
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +0 -34
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post400_response.rb +0 -46
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response.rb +0 -34
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_processor_information.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post400_response.rb +0 -46
- data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response.rb +0 -34
- data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post400_response.rb +0 -46
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response.rb +0 -34
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_error_information.rb +0 -34
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post400_response.rb +0 -34
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information_bank_transfer_options.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb +9 -9
- data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification.rb +0 -34
- data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +6 -6
- data/lib/cybersource_rest_client/models/ptsv2payments_device_information.rb +5 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_issuer_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_defined_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_initiated_transaction.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_amex_additional_amounts.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_surcharge.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_tax_details.rb +7 -41
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb +32 -50
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +4 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank_account.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +4 -26
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options_initiator.rb +1 -35
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_bank_transfer_options.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_capture_options.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_recurring_options.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb +8 -8
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_bill_to.rb +32 -16
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information_recurring_options.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_amount_details_surcharge.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_bill_to.rb +14 -48
- data/lib/cybersource_rest_client/models/refund_capture_request.rb +1 -1
- data/lib/cybersource_rest_client/models/refund_payment_request.rb +1 -1
- data/lib/cybersource_rest_client/models/reporting_v3_net_fundings_get200_response.rb +1 -1
- data/lib/cybersource_rest_client/models/reporting_v3_net_fundings_get200_response_net_funding_summaries.rb +1 -34
- data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_get200_response_report_definitions.rb +0 -22
- data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_name_get200_response.rb +0 -22
- data/lib/cybersource_rest_client/models/reporting_v3_report_subscriptions_get200_response_subscriptions.rb +2 -48
- data/lib/cybersource_rest_client/models/reporting_v3_reports_get200_response.rb +8 -8
- data/lib/cybersource_rest_client/models/{reporting_v3_reports_get200_response_reports.rb → reporting_v3_reports_get200_response_report_search_results.rb} +4 -62
- data/lib/cybersource_rest_client/models/reporting_v3_reports_id_get200_response.rb +3 -61
- data/lib/cybersource_rest_client/models/reportingv3reports_report_preferences.rb +1 -35
- data/lib/cybersource_rest_client/models/request_body.rb +1 -35
- data/lib/cybersource_rest_client/models/request_body_1.rb +2 -47
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_ip_address.rb +1 -1
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post400_response.rb +0 -34
- data/lib/cybersource_rest_client/models/riskv1decisions_card_verification.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_device_information.rb +5 -5
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_bill_to.rb +15 -15
- data/lib/cybersource_rest_client/models/riskv1decisions_travel_information_legs.rb +1 -1
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response.rb +1 -35
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_bank_account.rb +0 -34
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_card.rb +2 -36
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response_bank_transfer_options.rb +0 -34
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response_instrument_identifier.rb +2 -48
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response_payment_instruments.rb +2 -48
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response_personal_identification.rb +1 -35
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_post200_response.rb +2 -48
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_application_information.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_consumer_authentication_information.rb +2 -2
- 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_error_information.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_fraud_marking_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_bill_to.rb +47 -31
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_line_items.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_ship_to.rb +6 -6
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank.rb +5 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank_account.rb +5 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank_mandate.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_payment_type.rb +23 -34
- data/lib/cybersource_rest_client/models/{risk_v1_authentications_post400_response.rb → tss_v2_transactions_get200_response_payment_information_payment_type_funding_source.rb} +37 -38
- 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_processing_information_bank_transfer_options.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response.rb +14 -4
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_consumer_authentication_information.rb +1 -1
- 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_order_information_bill_to.rb +5 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_payment_type.rb +9 -9
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information.rb +2 -2
- data/lib/cybersource_rest_client/models/{riskv1authentications_device_information_raw_data.rb → tss_v2_transactions_post201_response__embedded_point_of_sale_information_partner.rb} +17 -27
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_risk_information_providers_fingerprint.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_transaction_summaries.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post400_response.rb +0 -34
- data/lib/cybersource_rest_client/models/ums_v1_users_get200_response_account_information.rb +1 -34
- data/lib/cybersource_rest_client/models/update_payment_instrument_request.rb +2 -48
- data/lib/cybersource_rest_client/models/v1_file_details_get200_response_file_details.rb +1 -35
- metadata +5 -43
- data/lib/cybersource_rest_client/api/download_dtd_api.rb +0 -88
- data/lib/cybersource_rest_client/api/download_xsd_api.rb +0 -88
- data/lib/cybersource_rest_client/api/payer_authentication_api.rb +0 -154
- data/lib/cybersource_rest_client/models/check_payer_auth_enrollment_request.rb +0 -275
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to_company.rb +0 -349
- data/lib/cybersource_rest_client/models/request.rb +0 -210
- data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response.rb +0 -285
- data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response_consumer_authentication_information.rb +0 -324
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response.rb +0 -294
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response_consumer_authentication_information.rb +0 -429
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response_order_information.rb +0 -183
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response_order_information_amount_details.rb +0 -199
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb +0 -214
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_order_information.rb +0 -194
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_order_information_line_items.rb +0 -267
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information.rb +0 -192
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +0 -264
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +0 -264
- data/lib/cybersource_rest_client/models/riskv1authentications_buyer_information.rb +0 -196
- data/lib/cybersource_rest_client/models/riskv1authentications_client_reference_information.rb +0 -208
- data/lib/cybersource_rest_client/models/riskv1authentications_consumer_authentication_information.rb +0 -552
- data/lib/cybersource_rest_client/models/riskv1authentications_device_information.rb +0 -285
- data/lib/cybersource_rest_client/models/riskv1authentications_merchant_information.rb +0 -199
- data/lib/cybersource_rest_client/models/riskv1authentications_order_information.rb +0 -258
- data/lib/cybersource_rest_client/models/riskv1authentications_order_information_bill_to.rb +0 -496
- data/lib/cybersource_rest_client/models/riskv1authentications_order_information_line_items.rb +0 -371
- data/lib/cybersource_rest_client/models/riskv1authentications_order_information_ship_to.rb +0 -434
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information.rb +0 -192
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_card.rb +0 -291
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +0 -291
- data/lib/cybersource_rest_client/models/riskv1authentications_recurring_payment_information.rb +0 -235
- data/lib/cybersource_rest_client/models/riskv1authentications_risk_information.rb +0 -183
- data/lib/cybersource_rest_client/models/riskv1authentications_risk_information_buyer_history.rb +0 -262
- data/lib/cybersource_rest_client/models/riskv1authentications_risk_information_buyer_history_account_history.rb +0 -209
- data/lib/cybersource_rest_client/models/riskv1authentications_risk_information_buyer_history_customer_account.rb +0 -279
- data/lib/cybersource_rest_client/models/riskv1authentications_travel_information.rb +0 -206
- data/lib/cybersource_rest_client/models/riskv1authentications_travel_information_legs.rb +0 -259
- data/lib/cybersource_rest_client/models/riskv1authentications_travel_information_passengers.rb +0 -224
@@ -19,10 +19,10 @@ module CyberSource
|
|
19
19
|
# Unique identification number assigned by CyberSource to the submitted request.
|
20
20
|
attr_accessor :id
|
21
21
|
|
22
|
-
# Describes type of token.
|
22
|
+
# 'Describes type of token.' Valid values: - instrumentIdentifier
|
23
23
|
attr_accessor :object
|
24
24
|
|
25
|
-
# Current state of the token.
|
25
|
+
# 'Current state of the token.' Valid values: - ACTIVE - CLOSED
|
26
26
|
attr_accessor :state
|
27
27
|
|
28
28
|
attr_accessor :card
|
@@ -33,28 +33,6 @@ module CyberSource
|
|
33
33
|
|
34
34
|
attr_accessor :metadata
|
35
35
|
|
36
|
-
class EnumAttributeValidator
|
37
|
-
attr_reader :datatype
|
38
|
-
attr_reader :allowable_values
|
39
|
-
|
40
|
-
def initialize(datatype, allowable_values)
|
41
|
-
@allowable_values = allowable_values.map do |value|
|
42
|
-
case datatype.to_s
|
43
|
-
when /Integer/i
|
44
|
-
value.to_i
|
45
|
-
when /Float/i
|
46
|
-
value.to_f
|
47
|
-
else
|
48
|
-
value
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
def valid?(value)
|
54
|
-
!value || allowable_values.include?(value)
|
55
|
-
end
|
56
|
-
end
|
57
|
-
|
58
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
59
37
|
def self.attribute_map
|
60
38
|
{
|
@@ -134,33 +112,9 @@ module CyberSource
|
|
134
112
|
# Check to see if the all the properties in the model are valid
|
135
113
|
# @return true if the model is valid
|
136
114
|
def valid?
|
137
|
-
object_validator = EnumAttributeValidator.new('String', ['instrumentIdentifier'])
|
138
|
-
return false unless object_validator.valid?(@object)
|
139
|
-
state_validator = EnumAttributeValidator.new('String', ['ACTIVE', 'CLOSED'])
|
140
|
-
return false unless state_validator.valid?(@state)
|
141
115
|
true
|
142
116
|
end
|
143
117
|
|
144
|
-
# Custom attribute writer method checking allowed values (enum).
|
145
|
-
# @param [Object] object Object to be assigned
|
146
|
-
def object=(object)
|
147
|
-
validator = EnumAttributeValidator.new('String', ['instrumentIdentifier'])
|
148
|
-
unless validator.valid?(object)
|
149
|
-
fail ArgumentError, 'invalid value for "object", must be one of #{validator.allowable_values}.'
|
150
|
-
end
|
151
|
-
@object = object
|
152
|
-
end
|
153
|
-
|
154
|
-
# Custom attribute writer method checking allowed values (enum).
|
155
|
-
# @param [Object] state Object to be assigned
|
156
|
-
def state=(state)
|
157
|
-
validator = EnumAttributeValidator.new('String', ['ACTIVE', 'CLOSED'])
|
158
|
-
unless validator.valid?(state)
|
159
|
-
fail ArgumentError, 'invalid value for "state", must be one of #{validator.allowable_values}.'
|
160
|
-
end
|
161
|
-
@state = state
|
162
|
-
end
|
163
|
-
|
164
118
|
# Checks equality by comparing each attribute.
|
165
119
|
# @param [Object] Object to be compared
|
166
120
|
def ==(o)
|
@@ -23,7 +23,7 @@ module CyberSource
|
|
23
23
|
# The reconciliation id for the submitted transaction. This value is not returned for all processors.
|
24
24
|
attr_accessor :reconciliation_id
|
25
25
|
|
26
|
-
#
|
26
|
+
# Your CyberSource merchant ID.
|
27
27
|
attr_accessor :merchant_id
|
28
28
|
|
29
29
|
# The status of the submitted transaction.
|
@@ -48,7 +48,7 @@ module CyberSource
|
|
48
48
|
|
49
49
|
attr_accessor :fraud_marking_information
|
50
50
|
|
51
|
-
# The
|
51
|
+
# The object containing the custom data that the merchant defines.
|
52
52
|
attr_accessor :merchant_defined_information
|
53
53
|
|
54
54
|
attr_accessor :merchant_information
|
@@ -17,13 +17,13 @@ module CyberSource
|
|
17
17
|
# The status of the submitted transaction.
|
18
18
|
attr_accessor :status
|
19
19
|
|
20
|
-
#
|
20
|
+
# Indicates the reason why a request succeeded or failed and possible action to take if a request fails. For details, see the appendix of reason codes in the documentation for the relevant payment method.
|
21
21
|
attr_accessor :reason_code
|
22
22
|
|
23
|
-
# The
|
23
|
+
# Indicates whether the service request was successful. Possible values: - `-1`: An error occurred. - `0`: The request was declined. - `1`: The request was successful. For details, see `auth_rcode` field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm)
|
24
24
|
attr_accessor :r_code
|
25
25
|
|
26
|
-
#
|
26
|
+
# One-word description of the result of the application. For details, see `auth_rflag` field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm)
|
27
27
|
attr_accessor :r_flag
|
28
28
|
|
29
29
|
attr_accessor :applications
|
@@ -14,13 +14,13 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class TssV2TransactionsGet200ResponseConsumerAuthenticationInformation
|
17
|
-
# Raw electronic commerce indicator (ECI).
|
17
|
+
# Raw electronic commerce indicator (ECI). For details, see `eci_raw` request field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm)
|
18
18
|
attr_accessor :eci_raw
|
19
19
|
|
20
20
|
# Cardholder authentication verification value (CAVV).
|
21
21
|
attr_accessor :cavv
|
22
22
|
|
23
|
-
# Transaction identifier.
|
23
|
+
# Transaction identifier. For details, see `xid` request field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm)
|
24
24
|
attr_accessor :xid
|
25
25
|
|
26
26
|
# Payer auth Transaction identifier.
|
data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_device_information.rb
CHANGED
@@ -66,8 +66,8 @@ 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 !@ip_address.nil? && @ip_address.to_s.length >
|
70
|
-
invalid_properties.push('invalid value for "ip_address", the character length must be smaller than or equal to
|
69
|
+
if !@ip_address.nil? && @ip_address.to_s.length > 48
|
70
|
+
invalid_properties.push('invalid value for "ip_address", the character length must be smaller than or equal to 48.')
|
71
71
|
end
|
72
72
|
|
73
73
|
if !@host_name.nil? && @host_name.to_s.length > 60
|
@@ -80,7 +80,7 @@ module CyberSource
|
|
80
80
|
# Check to see if the all the properties in the model are valid
|
81
81
|
# @return true if the model is valid
|
82
82
|
def valid?
|
83
|
-
return false if !@ip_address.nil? && @ip_address.to_s.length >
|
83
|
+
return false if !@ip_address.nil? && @ip_address.to_s.length > 48
|
84
84
|
return false if !@host_name.nil? && @host_name.to_s.length > 60
|
85
85
|
true
|
86
86
|
end
|
@@ -88,8 +88,8 @@ module CyberSource
|
|
88
88
|
# Custom attribute writer method with validation
|
89
89
|
# @param [Object] ip_address Value to be assigned
|
90
90
|
def ip_address=(ip_address)
|
91
|
-
if !ip_address.nil? && ip_address.to_s.length >
|
92
|
-
fail ArgumentError, 'invalid value for "ip_address", the character length must be smaller than or equal to
|
91
|
+
if !ip_address.nil? && ip_address.to_s.length > 48
|
92
|
+
fail ArgumentError, 'invalid value for "ip_address", the character length must be smaller than or equal to 48.'
|
93
93
|
end
|
94
94
|
|
95
95
|
@ip_address = ip_address
|
data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_error_information.rb
CHANGED
@@ -14,10 +14,10 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class TssV2TransactionsGet200ResponseErrorInformation
|
17
|
-
#
|
17
|
+
# 1-word description of why a request succeeded or failed.
|
18
18
|
attr_accessor :reason
|
19
19
|
|
20
|
-
# The description for
|
20
|
+
# The user-facing description for why a request succeeded or failed.
|
21
21
|
attr_accessor :message
|
22
22
|
|
23
23
|
attr_accessor :details
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class TssV2TransactionsGet200ResponseFraudMarkingInformation
|
17
|
-
#
|
17
|
+
# Reason for adding the transaction to the negative list. This field can contain one of the following values: - fraud_chargeback: You have received a fraudrelated chargeback for the transaction. - non_fraud_chargeback: You have received a non-fraudulent chargeback for the transaction. - suspected: You believe that you will probably receive a chargeback for the transaction. - creditback: You issued a refund to the customer to avoid a chargeback for the transaction. For details, see the `marking_reason` field description in [Decision Manager Using the SCMP API Developer Guide.](https://www.cybersource.com/developers/documentation/fraud_management/)
|
18
18
|
attr_accessor :reason
|
19
19
|
|
20
20
|
# 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 TssV2TransactionsGet200ResponseOrderInformationAmountDetails
|
17
|
-
# Grand total for the order. This value cannot be negative. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. **Note** For CTV, FDCCompass, Paymentech processors, the maximum length for this field is 12. **Important** Some processors have specific requirements and limitations, such as maximum amounts and maximum field lengths. For details, see: - \"Authorization Information for Specific Processors\" in the [Credit Card Services Using the SCMP API Guide](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm). - \"Capture Information for Specific Processors\" in the [Credit Card Services Using the SCMP API Guide](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm). - \"Credit Information for Specific Processors\" in the [Credit Card Services Using the SCMP API Guide](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm). If your processor supports zero amount authorizations, you can set this field to 0 for the authorization to check if the card is lost or stolen. For details, see \"Zero Amount Authorizations,\" \"Credit Information for Specific Processors\" in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) #### DCC with a Third-Party Provider Set this field to the converted amount that was returned by the DCC provider. You must include either this field or the 1st line item in the order and the specific line-order amount in your request. For details, see `grand_total_amount` field description in [Dynamic Currency Conversion For First Data Using the SCMP API](http://apps.cybersource.com/library/documentation/dev_guides/DCC_FirstData_SCMP/DCC_FirstData_SCMP_API.pdf). #### FDMS South If you accept IDR or CLP currencies, see the entry for FDMS South in \"Authorization Information for Specific Processors\" of the [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm)
|
17
|
+
# Grand total for the order. This value cannot be negative. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. **Note** For CTV, FDCCompass, Paymentech processors, the maximum length for this field is 12. **Important** Some processors have specific requirements and limitations, such as maximum amounts and maximum field lengths. For details, see: - \"Authorization Information for Specific Processors\" in the [Credit Card Services Using the SCMP API Guide](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm). - \"Capture Information for Specific Processors\" in the [Credit Card Services Using the SCMP API Guide](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm). - \"Credit Information for Specific Processors\" in the [Credit Card Services Using the SCMP API Guide](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm). If your processor supports zero amount authorizations, you can set this field to 0 for the authorization to check if the card is lost or stolen. For details, see \"Zero Amount Authorizations,\" \"Credit Information for Specific Processors\" in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) #### DCC with a Third-Party Provider Set this field to the converted amount that was returned by the DCC provider. You must include either this field or the 1st line item in the order and the specific line-order amount in your request. For details, see `grand_total_amount` field description in [Dynamic Currency Conversion For First Data Using the SCMP API](http://apps.cybersource.com/library/documentation/dev_guides/DCC_FirstData_SCMP/DCC_FirstData_SCMP_API.pdf). #### FDMS South If you accept IDR or CLP currencies, see the entry for FDMS South in \"Authorization Information for Specific Processors\" of the [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) #### DCC for First Data Not used.
|
18
18
|
attr_accessor :total_amount
|
19
19
|
|
20
20
|
# Currency used for the order. Use the three-character I[ISO Standard Currency Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf) For details about currency as used in partial authorizations, see \"Features for Debit Cards and Prepaid Cards\" in the [Credit Card Services Using the SCMP API Guide](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) For an authorization reversal (`reversalInformation`) or a capture (`processingOptions.capture` is set to `true`), you must use the same currency that you used in your payment authorization request. #### DCC for First Data Your local currency. For details, see the `currency` field description in [Dynamic Currency Conversion For First Data Using the SCMP API](http://apps.cybersource.com/library/documentation/dev_guides/DCC_FirstData_SCMP/DCC_FirstData_SCMP_API.pdf).
|
@@ -14,45 +14,46 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class TssV2TransactionsGet200ResponseOrderInformationBillTo
|
17
|
-
# Customer’s first name. This name must be the same as the name on the card. #### CyberSource Latin American Processing **Important** For an authorization request, CyberSource Latin American Processing concatenates `orderInformation.billTo.firstName` and `orderInformation.billTo.lastName`. If the concatenated value exceeds 30 characters, CyberSource Latin American Processing declines the authorization request.\\ **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 field description is for the specific processing connection called _CyberSource Latin American Processing_. It is not for any other Latin American processors that CyberSource supports. #### CyberSource through VisaNet Credit card networks cannot process transactions that contain non-ASCII characters. CyberSource through VisaNet accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. #### For Payouts: This field may be sent only for FDC Compass. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. For processor-specific information, see the `customer_firstname` field description in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
17
|
+
# Customer’s first name. This name must be the same as the name on the card. #### CyberSource Latin American Processing **Important** For an authorization request, CyberSource Latin American Processing concatenates `orderInformation.billTo.firstName` and `orderInformation.billTo.lastName`. If the concatenated value exceeds 30 characters, CyberSource Latin American Processing declines the authorization request.\\ **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 field description is for the specific processing connection called _CyberSource Latin American Processing_. It is not for any other Latin American processors that CyberSource supports. #### CyberSource through VisaNet Credit card networks cannot process transactions that contain non-ASCII characters. CyberSource through VisaNet accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. #### For Payouts: This field may be sent only for FDC Compass. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. For processor-specific information, see the `customer_firstname` request-level field description in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
18
18
|
attr_accessor :first_name
|
19
19
|
|
20
|
-
# Customer’s last name. This name must be the same as the name on the card. #### CyberSource Latin American Processing **Important** For an authorization request, CyberSource Latin American Processing concatenates `orderInformation.billTo.firstName` and `orderInformation.billTo.lastName`. If the concatenated value exceeds 30 characters, CyberSource Latin American Processing declines the authorization request.\\ **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 field description is for the specific processing connection called CyberSource Latin American Processing. It is not for any other Latin American processors that CyberSource supports. #### CyberSource through VisaNet Credit card networks cannot process transactions that contain non-ASCII characters. CyberSource through VisaNet accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. #### For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the `customer_lastname` field description in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
20
|
+
# Customer’s last name. This name must be the same as the name on the card. #### CyberSource Latin American Processing **Important** For an authorization request, CyberSource Latin American Processing concatenates `orderInformation.billTo.firstName` and `orderInformation.billTo.lastName`. If the concatenated value exceeds 30 characters, CyberSource Latin American Processing declines the authorization request.\\ **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 field description is for the specific processing connection called CyberSource Latin American Processing. It is not for any other Latin American processors that CyberSource supports. #### CyberSource through VisaNet Credit card networks cannot process transactions that contain non-ASCII characters. CyberSource through VisaNet accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. #### For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the `customer_lastname` request-level field description in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
21
21
|
attr_accessor :last_name
|
22
22
|
|
23
23
|
# Customer’s middle name.
|
24
|
-
attr_accessor :
|
24
|
+
attr_accessor :middle_name
|
25
25
|
|
26
26
|
# Customer’s name suffix.
|
27
27
|
attr_accessor :name_suffix
|
28
28
|
|
29
|
-
#
|
29
|
+
# Payment card billing street address as it appears on the credit card issuer’s records. #### Atos This field must not contain colons (:). #### CyberSource through VisaNet **Important** When you populate billing street address 1 and billing street address 2, Visa Platform Connect concatenates the two values. If the concatenated value exceeds 40 characters, CyberSource through VisaNet truncates the value at 40 characters before sending it to Visa and the issuing bank. Truncating this value affects AVS results and therefore might also affect risk decisions and chargebacks. Credit card networks cannot process transactions that contain non-ASCII characters. CyberSource through VisaNet accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. #### For Payouts: This field may be sent only for FDC Compass. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. For processor-specific information, see the `bill_address1` request-level field description in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
30
30
|
attr_accessor :address1
|
31
31
|
|
32
|
-
# Additional address information. For Payouts: This field may be sent only for FDC Compass. #### Atos This field must not contain colons (:). #### Chase Paymentech Solutions, FDC Compass, and TSYS Acquiring Solutions This value is used for AVS. ####
|
32
|
+
# Additional address information. For Payouts: This field may be sent only for FDC Compass. #### Atos This field must not contain colons (:). #### Chase Paymentech Solutions, FDC Compass, and TSYS Acquiring Solutions This value is used for AVS. #### Visa Platform Connect **Important** When you populate billing street address 1 and billing street address 2, Visa Platform Connect concatenates the two values. If the concatenated value exceeds 40 characters, CyberSource through VisaNet truncates the value at 40 characters before sending it to Visa and the issuing bank. Truncating this value affects AVS results and therefore might also affect risk decisions and chargebacks. Credit card networks cannot process transactions that contain non-ASCII characters. Visa Platform Connect accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. For processor-specific information, see the `bill_address2` field description in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
33
33
|
attr_accessor :address2
|
34
34
|
|
35
|
-
# Payment card billing city. #### Atos This field must not contain colons (:). ####
|
35
|
+
# Payment card billing city. #### Atos This field must not contain colons (:). #### Visa Platform Connect Credit card networks cannot process transactions that contain non-ASCII characters. Visa Platform Connect accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. #### For Payouts: This field may be sent only for FDC Compass. For processor-specific information, see the `bill_city` field description in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
36
36
|
attr_accessor :locality
|
37
37
|
|
38
|
-
# State or province of the billing address. Use the State, Province, and Territory Codes for the United States and Canada. For Payouts: This field may be sent only for FDC Compass.
|
38
|
+
# State or province of the billing address. Use the State, Province, and Territory Codes for the United States and Canada. For Payouts: This field may be sent only for FDC Compass. ##### Visa Platform Connect Credit card networks cannot process transactions that contain non-ASCII characters. Visa Platform Connect accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. For processor-specific information, see the `bill_state` field description in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
39
39
|
attr_accessor :administrative_area
|
40
40
|
|
41
|
-
# Postal code for the billing address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] **Example** `12345-6789` When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] **Example** `A1B 2C3` **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. #### For Payouts: This field may be sent only for FDC Compass. #### American Express Direct Before sending the postal code to the processor, CyberSource removes all nonalphanumeric characters and, if the remaining value is longer than nine characters, truncates the value starting from the right side. #### Atos This field must not contain colons (:). #### CyberSource through VisaNet Credit card networks cannot process transactions that contain non-ASCII characters. CyberSource through VisaNet accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. For processor-specific information, see the `bill_zip` field description in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
41
|
+
# Postal code for the billing address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] **Example** `12345-6789` When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] **Example** `A1B 2C3` **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. #### For Payouts: This field may be sent only for FDC Compass. #### American Express Direct Before sending the postal code to the processor, CyberSource removes all nonalphanumeric characters and, if the remaining value is longer than nine characters, truncates the value starting from the right side. #### Atos This field must not contain colons (:). #### CyberSource through VisaNet Credit card networks cannot process transactions that contain non-ASCII characters. CyberSource through VisaNet accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. For processor-specific information, see the `bill_zip` request-level field description in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
42
42
|
attr_accessor :postal_code
|
43
43
|
|
44
|
+
# Name of the customer’s company. **CyberSource through VisaNet** Credit card networks cannot process transactions that contain non-ASCII characters. CyberSource through VisaNet accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. For processor-specific information, see the company_name field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
44
45
|
attr_accessor :company
|
45
46
|
|
46
|
-
# Customer's email address, including the full domain name.
|
47
|
+
# Customer's email address, including the full domain name. #### CyberSource through VisaNet Credit card networks cannot process transactions that contain non-ASCII characters. CyberSource through VisaNet accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. For processor-specific information, see the `customer_email` request-level field description in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
47
48
|
attr_accessor :email
|
48
49
|
|
49
|
-
# Payment card billing country. Use the two-character ISO Standard Country Codes. ####
|
50
|
+
# Payment card billing country. Use the two-character ISO Standard Country Codes. #### Visa Platform Connect Credit card networks cannot process transactions that contain non-ASCII characters. Visa Platform Connect accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. For processor-specific information, see the `bill_country` field description in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
50
51
|
attr_accessor :country
|
51
52
|
|
52
53
|
# Title.
|
53
54
|
attr_accessor :title
|
54
55
|
|
55
|
-
# Customer’s phone number. #### For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) ####
|
56
|
+
# Customer’s phone number. #### For Payouts: This field may be sent only for FDC Compass. CyberSource recommends that you include the country code when the order is from outside the U.S. For processor-specific information, see the customer_phone field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) #### Visa Platform Connect Credit card networks cannot process transactions that contain non-ASCII characters. Visa Platform Connect accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks.
|
56
57
|
attr_accessor :phone_number
|
57
58
|
|
58
59
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -60,7 +61,7 @@ module CyberSource
|
|
60
61
|
{
|
61
62
|
:'first_name' => :'firstName',
|
62
63
|
:'last_name' => :'lastName',
|
63
|
-
:'
|
64
|
+
:'middle_name' => :'middleName',
|
64
65
|
:'name_suffix' => :'nameSuffix',
|
65
66
|
:'address1' => :'address1',
|
66
67
|
:'address2' => :'address2',
|
@@ -80,14 +81,14 @@ module CyberSource
|
|
80
81
|
{
|
81
82
|
:'first_name' => :'String',
|
82
83
|
:'last_name' => :'String',
|
83
|
-
:'
|
84
|
+
:'middle_name' => :'String',
|
84
85
|
:'name_suffix' => :'String',
|
85
86
|
:'address1' => :'String',
|
86
87
|
:'address2' => :'String',
|
87
88
|
:'locality' => :'String',
|
88
89
|
:'administrative_area' => :'String',
|
89
90
|
:'postal_code' => :'String',
|
90
|
-
:'company' => :'
|
91
|
+
:'company' => :'String',
|
91
92
|
:'email' => :'String',
|
92
93
|
:'country' => :'String',
|
93
94
|
:'title' => :'String',
|
@@ -111,8 +112,8 @@ module CyberSource
|
|
111
112
|
self.last_name = attributes[:'lastName']
|
112
113
|
end
|
113
114
|
|
114
|
-
if attributes.has_key?(:'
|
115
|
-
self.
|
115
|
+
if attributes.has_key?(:'middleName')
|
116
|
+
self.middle_name = attributes[:'middleName']
|
116
117
|
end
|
117
118
|
|
118
119
|
if attributes.has_key?(:'nameSuffix')
|
@@ -172,8 +173,8 @@ module CyberSource
|
|
172
173
|
invalid_properties.push('invalid value for "last_name", the character length must be smaller than or equal to 60.')
|
173
174
|
end
|
174
175
|
|
175
|
-
if !@
|
176
|
-
invalid_properties.push('invalid value for "
|
176
|
+
if !@middle_name.nil? && @middle_name.to_s.length > 60
|
177
|
+
invalid_properties.push('invalid value for "middle_name", the character length must be smaller than or equal to 60.')
|
177
178
|
end
|
178
179
|
|
179
180
|
if !@name_suffix.nil? && @name_suffix.to_s.length > 60
|
@@ -192,14 +193,18 @@ module CyberSource
|
|
192
193
|
invalid_properties.push('invalid value for "locality", the character length must be smaller than or equal to 50.')
|
193
194
|
end
|
194
195
|
|
195
|
-
if !@administrative_area.nil? && @administrative_area.to_s.length >
|
196
|
-
invalid_properties.push('invalid value for "administrative_area", the character length must be smaller than or equal to
|
196
|
+
if !@administrative_area.nil? && @administrative_area.to_s.length > 20
|
197
|
+
invalid_properties.push('invalid value for "administrative_area", the character length must be smaller than or equal to 20.')
|
197
198
|
end
|
198
199
|
|
199
200
|
if !@postal_code.nil? && @postal_code.to_s.length > 10
|
200
201
|
invalid_properties.push('invalid value for "postal_code", the character length must be smaller than or equal to 10.')
|
201
202
|
end
|
202
203
|
|
204
|
+
if !@company.nil? && @company.to_s.length > 60
|
205
|
+
invalid_properties.push('invalid value for "company", the character length must be smaller than or equal to 60.')
|
206
|
+
end
|
207
|
+
|
203
208
|
if !@email.nil? && @email.to_s.length > 255
|
204
209
|
invalid_properties.push('invalid value for "email", the character length must be smaller than or equal to 255.')
|
205
210
|
end
|
@@ -224,13 +229,14 @@ module CyberSource
|
|
224
229
|
def valid?
|
225
230
|
return false if !@first_name.nil? && @first_name.to_s.length > 60
|
226
231
|
return false if !@last_name.nil? && @last_name.to_s.length > 60
|
227
|
-
return false if !@
|
232
|
+
return false if !@middle_name.nil? && @middle_name.to_s.length > 60
|
228
233
|
return false if !@name_suffix.nil? && @name_suffix.to_s.length > 60
|
229
234
|
return false if !@address1.nil? && @address1.to_s.length > 60
|
230
235
|
return false if !@address2.nil? && @address2.to_s.length > 60
|
231
236
|
return false if !@locality.nil? && @locality.to_s.length > 50
|
232
|
-
return false if !@administrative_area.nil? && @administrative_area.to_s.length >
|
237
|
+
return false if !@administrative_area.nil? && @administrative_area.to_s.length > 20
|
233
238
|
return false if !@postal_code.nil? && @postal_code.to_s.length > 10
|
239
|
+
return false if !@company.nil? && @company.to_s.length > 60
|
234
240
|
return false if !@email.nil? && @email.to_s.length > 255
|
235
241
|
return false if !@country.nil? && @country.to_s.length > 2
|
236
242
|
return false if !@title.nil? && @title.to_s.length > 60
|
@@ -259,13 +265,13 @@ module CyberSource
|
|
259
265
|
end
|
260
266
|
|
261
267
|
# Custom attribute writer method with validation
|
262
|
-
# @param [Object]
|
263
|
-
def
|
264
|
-
if !
|
265
|
-
fail ArgumentError, 'invalid value for "
|
268
|
+
# @param [Object] middle_name Value to be assigned
|
269
|
+
def middle_name=(middle_name)
|
270
|
+
if !middle_name.nil? && middle_name.to_s.length > 60
|
271
|
+
fail ArgumentError, 'invalid value for "middle_name", the character length must be smaller than or equal to 60.'
|
266
272
|
end
|
267
273
|
|
268
|
-
@
|
274
|
+
@middle_name = middle_name
|
269
275
|
end
|
270
276
|
|
271
277
|
# Custom attribute writer method with validation
|
@@ -311,8 +317,8 @@ module CyberSource
|
|
311
317
|
# Custom attribute writer method with validation
|
312
318
|
# @param [Object] administrative_area Value to be assigned
|
313
319
|
def administrative_area=(administrative_area)
|
314
|
-
if !administrative_area.nil? && administrative_area.to_s.length >
|
315
|
-
fail ArgumentError, 'invalid value for "administrative_area", the character length must be smaller than or equal to
|
320
|
+
if !administrative_area.nil? && administrative_area.to_s.length > 20
|
321
|
+
fail ArgumentError, 'invalid value for "administrative_area", the character length must be smaller than or equal to 20.'
|
316
322
|
end
|
317
323
|
|
318
324
|
@administrative_area = administrative_area
|
@@ -328,6 +334,16 @@ module CyberSource
|
|
328
334
|
@postal_code = postal_code
|
329
335
|
end
|
330
336
|
|
337
|
+
# Custom attribute writer method with validation
|
338
|
+
# @param [Object] company Value to be assigned
|
339
|
+
def company=(company)
|
340
|
+
if !company.nil? && company.to_s.length > 60
|
341
|
+
fail ArgumentError, 'invalid value for "company", the character length must be smaller than or equal to 60.'
|
342
|
+
end
|
343
|
+
|
344
|
+
@company = company
|
345
|
+
end
|
346
|
+
|
331
347
|
# Custom attribute writer method with validation
|
332
348
|
# @param [Object] email Value to be assigned
|
333
349
|
def email=(email)
|
@@ -375,7 +391,7 @@ module CyberSource
|
|
375
391
|
self.class == o.class &&
|
376
392
|
first_name == o.first_name &&
|
377
393
|
last_name == o.last_name &&
|
378
|
-
|
394
|
+
middle_name == o.middle_name &&
|
379
395
|
name_suffix == o.name_suffix &&
|
380
396
|
address1 == o.address1 &&
|
381
397
|
address2 == o.address2 &&
|
@@ -398,7 +414,7 @@ module CyberSource
|
|
398
414
|
# Calculates hash code according to all attributes.
|
399
415
|
# @return [Fixnum] Hash code
|
400
416
|
def hash
|
401
|
-
[first_name, last_name,
|
417
|
+
[first_name, last_name, middle_name, name_suffix, address1, address2, locality, administrative_area, postal_code, company, email, country, title, phone_number].hash
|
402
418
|
end
|
403
419
|
|
404
420
|
# Builds the object from hash
|
@@ -23,7 +23,7 @@ module CyberSource
|
|
23
23
|
# Identification code for the product. For PAYMENT and CAPTURE API, this field is required when above _productCode_ is not **default** or one of the values related to shipping and/or handling.
|
24
24
|
attr_accessor :product_sku
|
25
25
|
|
26
|
-
# Total tax to apply to the product. This value cannot be negative. The tax amount and the offer amount must be in the same currency. The tax amount field is additive. The following example uses a two-exponent currency such as USD: 1. You include each line item in your request. - 1st line item has `amount=10.00`, `quantity=1`, and `taxAmount=0.80` - 2nd line item has `amount=20.00`, `quantity=1`, and `taxAmount=1.60` 2. The total amount authorized will be 32.40, not 30.00 with 2.40 of tax included. This field is frequently used for Level II and Level III transactions. For details, see `tax_amount` field description in [Level II and Level III Processing Using the SCMP API.]
|
26
|
+
# Total tax to apply to the product. This value cannot be negative. The tax amount and the offer amount must be in the same currency. The tax amount field is additive. The following example uses a two-exponent currency such as USD: 1. You include each line item in your request. - 1st line item has `amount=10.00`, `quantity=1`, and `taxAmount=0.80` - 2nd line item has `amount=20.00`, `quantity=1`, and `taxAmount=1.60` 2. The total amount authorized will be 32.40, not 30.00 with 2.40 of tax included. This field is frequently used for Level II and Level III transactions. For details, see `tax_amount` field description in [Level II and Level III Processing Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/Level_2_3_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm)
|
27
27
|
attr_accessor :tax_amount
|
28
28
|
|
29
29
|
# For a payment or capture, this field is required when _productCode_ is not **default** or one of the values related to shipping and handling.
|
@@ -29,7 +29,7 @@ module CyberSource
|
|
29
29
|
# City of the shipping address.
|
30
30
|
attr_accessor :locality
|
31
31
|
|
32
|
-
# State or province of the billing address. Use the State, Province, and Territory Codes for the United States and Canada. For Payouts: This field may be sent only for FDC Compass.
|
32
|
+
# State or province of the billing address. Use the State, Province, and Territory Codes for the United States and Canada. For Payouts: This field may be sent only for FDC Compass. ##### Visa Platform Connect Credit card networks cannot process transactions that contain non-ASCII characters. Visa Platform Connect accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. For processor-specific information, see the `bill_state` field description in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
33
33
|
attr_accessor :administrative_area
|
34
34
|
|
35
35
|
# Postal code for the shipping address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 **American Express Direct**\\ Before sending the postal code to the processor, CyberSource removes all nonalphanumeric characters and, if the remaining value is longer than nine characters, truncates the value starting from the right side.
|
@@ -149,8 +149,8 @@ module CyberSource
|
|
149
149
|
invalid_properties.push('invalid value for "locality", the character length must be smaller than or equal to 50.')
|
150
150
|
end
|
151
151
|
|
152
|
-
if !@administrative_area.nil? && @administrative_area.to_s.length >
|
153
|
-
invalid_properties.push('invalid value for "administrative_area", the character length must be smaller than or equal to
|
152
|
+
if !@administrative_area.nil? && @administrative_area.to_s.length > 20
|
153
|
+
invalid_properties.push('invalid value for "administrative_area", the character length must be smaller than or equal to 20.')
|
154
154
|
end
|
155
155
|
|
156
156
|
if !@postal_code.nil? && @postal_code.to_s.length > 10
|
@@ -180,7 +180,7 @@ module CyberSource
|
|
180
180
|
return false if !@address1.nil? && @address1.to_s.length > 60
|
181
181
|
return false if !@address2.nil? && @address2.to_s.length > 60
|
182
182
|
return false if !@locality.nil? && @locality.to_s.length > 50
|
183
|
-
return false if !@administrative_area.nil? && @administrative_area.to_s.length >
|
183
|
+
return false if !@administrative_area.nil? && @administrative_area.to_s.length > 20
|
184
184
|
return false if !@postal_code.nil? && @postal_code.to_s.length > 10
|
185
185
|
return false if !@company.nil? && @company.to_s.length > 60
|
186
186
|
return false if !@country.nil? && @country.to_s.length > 2
|
@@ -241,8 +241,8 @@ module CyberSource
|
|
241
241
|
# Custom attribute writer method with validation
|
242
242
|
# @param [Object] administrative_area Value to be assigned
|
243
243
|
def administrative_area=(administrative_area)
|
244
|
-
if !administrative_area.nil? && administrative_area.to_s.length >
|
245
|
-
fail ArgumentError, 'invalid value for "administrative_area", the character length must be smaller than or equal to
|
244
|
+
if !administrative_area.nil? && administrative_area.to_s.length > 20
|
245
|
+
fail ArgumentError, 'invalid value for "administrative_area", the character length must be smaller than or equal to 20.'
|
246
246
|
end
|
247
247
|
|
248
248
|
@administrative_area = administrative_area
|
@@ -14,19 +14,19 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class TssV2TransactionsGet200ResponsePaymentInformationBank
|
17
|
-
#
|
17
|
+
# Bank routing number. This is also called the transit number. For details, see `ecp_rdfi` field description in the [Electronic Check Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm)
|
18
18
|
attr_accessor :routing_number
|
19
19
|
|
20
|
-
#
|
20
|
+
# Code used to identify the branch of the customer’s bank. Required for some countries if you do not or are not allowed to provide the IBAN. Use this field only when scoring a direct debit transaction. For all possible values, see the `branch_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** > **Documentation** > **Guides** > _Decision Manager Using the SCMP API Developer Guide_ (PDF link).
|
21
21
|
attr_accessor :branch_code
|
22
22
|
|
23
|
-
#
|
23
|
+
# Bank’s SWIFT code. You can use this field only when scoring a direct debit transaction. Required only for crossborder transactions. For all possible values, see the `bank_swiftcode` 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).
|
24
24
|
attr_accessor :swift_code
|
25
25
|
|
26
|
-
#
|
26
|
+
# Country-specific code used to identify the customer’s bank. Required for some countries if you do not or are not allowed to provide the IBAN instead. You can use this field only when scoring a direct debit transaction. For all possible values, see the `bank_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** > **Documentation** > **Guides** > _Decision Manager Using the SCMP API Developer Guide_ (PDF link).
|
27
27
|
attr_accessor :bank_code
|
28
28
|
|
29
|
-
#
|
29
|
+
# International Bank Account Number (IBAN) for the bank account. For some countries you can provide this number instead of the traditional bank account information. You can use this field only when scoring a direct debit transaction. For all possible values, see the `bank_iban` 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).
|
30
30
|
attr_accessor :iban
|
31
31
|
|
32
32
|
attr_accessor :account
|