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
@@ -27,16 +27,16 @@ module CyberSource
|
|
27
27
|
# Report Name
|
28
28
|
attr_accessor :report_name
|
29
29
|
|
30
|
-
# Report Format
|
30
|
+
# Report Format Valid values: - application/xml - text/csv
|
31
31
|
attr_accessor :report_mime_type
|
32
32
|
|
33
|
-
# Report Frequency Value
|
33
|
+
# Report Frequency Value Valid values: - DAILY - WEEKLY - MONTHLY - ADHOC
|
34
34
|
attr_accessor :report_frequency
|
35
35
|
|
36
36
|
# List of Integer Values
|
37
37
|
attr_accessor :report_fields
|
38
38
|
|
39
|
-
# Report Status Value
|
39
|
+
# Report Status Value Valid values: - COMPLETED - PENDING - QUEUED - RUNNING - ERROR - NO_DATA - RERUN
|
40
40
|
attr_accessor :report_status
|
41
41
|
|
42
42
|
# Report Start Time Value
|
@@ -56,28 +56,6 @@ module CyberSource
|
|
56
56
|
# Id for selected group.
|
57
57
|
attr_accessor :group_id
|
58
58
|
|
59
|
-
class EnumAttributeValidator
|
60
|
-
attr_reader :datatype
|
61
|
-
attr_reader :allowable_values
|
62
|
-
|
63
|
-
def initialize(datatype, allowable_values)
|
64
|
-
@allowable_values = allowable_values.map do |value|
|
65
|
-
case datatype.to_s
|
66
|
-
when /Integer/i
|
67
|
-
value.to_i
|
68
|
-
when /Float/i
|
69
|
-
value.to_f
|
70
|
-
else
|
71
|
-
value
|
72
|
-
end
|
73
|
-
end
|
74
|
-
end
|
75
|
-
|
76
|
-
def valid?(value)
|
77
|
-
!value || allowable_values.include?(value)
|
78
|
-
end
|
79
|
-
end
|
80
|
-
|
81
59
|
# Attribute mapping from ruby-style variable name to JSON key.
|
82
60
|
def self.attribute_map
|
83
61
|
{
|
@@ -197,45 +175,9 @@ module CyberSource
|
|
197
175
|
# Check to see if the all the properties in the model are valid
|
198
176
|
# @return true if the model is valid
|
199
177
|
def valid?
|
200
|
-
report_mime_type_validator = EnumAttributeValidator.new('String', ['application/xml', 'text/csv'])
|
201
|
-
return false unless report_mime_type_validator.valid?(@report_mime_type)
|
202
|
-
report_frequency_validator = EnumAttributeValidator.new('String', ['DAILY', 'WEEKLY', 'MONTHLY', 'ADHOC'])
|
203
|
-
return false unless report_frequency_validator.valid?(@report_frequency)
|
204
|
-
report_status_validator = EnumAttributeValidator.new('String', ['COMPLETED', 'PENDING', 'QUEUED', 'RUNNING', 'ERROR', 'NO_DATA', 'RERUN'])
|
205
|
-
return false unless report_status_validator.valid?(@report_status)
|
206
178
|
true
|
207
179
|
end
|
208
180
|
|
209
|
-
# Custom attribute writer method checking allowed values (enum).
|
210
|
-
# @param [Object] report_mime_type Object to be assigned
|
211
|
-
def report_mime_type=(report_mime_type)
|
212
|
-
validator = EnumAttributeValidator.new('String', ['application/xml', 'text/csv'])
|
213
|
-
unless validator.valid?(report_mime_type)
|
214
|
-
fail ArgumentError, 'invalid value for "report_mime_type", must be one of #{validator.allowable_values}.'
|
215
|
-
end
|
216
|
-
@report_mime_type = report_mime_type
|
217
|
-
end
|
218
|
-
|
219
|
-
# Custom attribute writer method checking allowed values (enum).
|
220
|
-
# @param [Object] report_frequency Object to be assigned
|
221
|
-
def report_frequency=(report_frequency)
|
222
|
-
validator = EnumAttributeValidator.new('String', ['DAILY', 'WEEKLY', 'MONTHLY', 'ADHOC'])
|
223
|
-
unless validator.valid?(report_frequency)
|
224
|
-
fail ArgumentError, 'invalid value for "report_frequency", must be one of #{validator.allowable_values}.'
|
225
|
-
end
|
226
|
-
@report_frequency = report_frequency
|
227
|
-
end
|
228
|
-
|
229
|
-
# Custom attribute writer method checking allowed values (enum).
|
230
|
-
# @param [Object] report_status Object to be assigned
|
231
|
-
def report_status=(report_status)
|
232
|
-
validator = EnumAttributeValidator.new('String', ['COMPLETED', 'PENDING', 'QUEUED', 'RUNNING', 'ERROR', 'NO_DATA', 'RERUN'])
|
233
|
-
unless validator.valid?(report_status)
|
234
|
-
fail ArgumentError, 'invalid value for "report_status", must be one of #{validator.allowable_values}.'
|
235
|
-
end
|
236
|
-
@report_status = report_status
|
237
|
-
end
|
238
|
-
|
239
181
|
# Checks equality by comparing each attribute.
|
240
182
|
# @param [Object] Object to be compared
|
241
183
|
def ==(o)
|
@@ -18,31 +18,9 @@ module CyberSource
|
|
18
18
|
# Indicator to determine whether negative sign infront of amount for all refunded transaction
|
19
19
|
attr_accessor :signed_amounts
|
20
20
|
|
21
|
-
# Specify the field naming convention to be followed in reports (applicable to only csv report formats
|
21
|
+
# Specify the field naming convention to be followed in reports (applicable to only csv report formats) Valid values: - SOAPI - SCMP
|
22
22
|
attr_accessor :field_name_convention
|
23
23
|
|
24
|
-
class EnumAttributeValidator
|
25
|
-
attr_reader :datatype
|
26
|
-
attr_reader :allowable_values
|
27
|
-
|
28
|
-
def initialize(datatype, allowable_values)
|
29
|
-
@allowable_values = allowable_values.map do |value|
|
30
|
-
case datatype.to_s
|
31
|
-
when /Integer/i
|
32
|
-
value.to_i
|
33
|
-
when /Float/i
|
34
|
-
value.to_f
|
35
|
-
else
|
36
|
-
value
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
def valid?(value)
|
42
|
-
!value || allowable_values.include?(value)
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
47
25
|
def self.attribute_map
|
48
26
|
{
|
@@ -86,21 +64,9 @@ module CyberSource
|
|
86
64
|
# Check to see if the all the properties in the model are valid
|
87
65
|
# @return true if the model is valid
|
88
66
|
def valid?
|
89
|
-
field_name_convention_validator = EnumAttributeValidator.new('String', ['SOAPI', 'SCMP'])
|
90
|
-
return false unless field_name_convention_validator.valid?(@field_name_convention)
|
91
67
|
true
|
92
68
|
end
|
93
69
|
|
94
|
-
# Custom attribute writer method checking allowed values (enum).
|
95
|
-
# @param [Object] field_name_convention Object to be assigned
|
96
|
-
def field_name_convention=(field_name_convention)
|
97
|
-
validator = EnumAttributeValidator.new('String', ['SOAPI', 'SCMP'])
|
98
|
-
unless validator.valid?(field_name_convention)
|
99
|
-
fail ArgumentError, 'invalid value for "field_name_convention", must be one of #{validator.allowable_values}.'
|
100
|
-
end
|
101
|
-
@field_name_convention = field_name_convention
|
102
|
-
end
|
103
|
-
|
104
70
|
# Checks equality by comparing each attribute.
|
105
71
|
# @param [Object] Object to be compared
|
106
72
|
def ==(o)
|
@@ -22,7 +22,7 @@ module CyberSource
|
|
22
22
|
# List of fields which needs to get included in a report
|
23
23
|
attr_accessor :report_fields
|
24
24
|
|
25
|
-
#
|
25
|
+
# 'Format of the report' Valid values: - application/xml - text/csv
|
26
26
|
attr_accessor :report_mime_type
|
27
27
|
|
28
28
|
# Name of the report
|
@@ -45,28 +45,6 @@ module CyberSource
|
|
45
45
|
# Specifies the group name
|
46
46
|
attr_accessor :group_name
|
47
47
|
|
48
|
-
class EnumAttributeValidator
|
49
|
-
attr_reader :datatype
|
50
|
-
attr_reader :allowable_values
|
51
|
-
|
52
|
-
def initialize(datatype, allowable_values)
|
53
|
-
@allowable_values = allowable_values.map do |value|
|
54
|
-
case datatype.to_s
|
55
|
-
when /Integer/i
|
56
|
-
value.to_i
|
57
|
-
when /Float/i
|
58
|
-
value.to_f
|
59
|
-
else
|
60
|
-
value
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
|
-
def valid?(value)
|
66
|
-
!value || allowable_values.include?(value)
|
67
|
-
end
|
68
|
-
end
|
69
|
-
|
70
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
71
49
|
def self.attribute_map
|
72
50
|
{
|
@@ -204,8 +182,6 @@ module CyberSource
|
|
204
182
|
return false if !@report_definition_name.nil? && @report_definition_name.to_s.length > 80
|
205
183
|
return false if !@report_definition_name.nil? && @report_definition_name.to_s.length < 1
|
206
184
|
#return false if !@report_definition_name.nil? && @report_definition_name !~ Regexp.new(/[a-zA-Z0-9-]+/)
|
207
|
-
report_mime_type_validator = EnumAttributeValidator.new('String', ['application/xml', 'text/csv'])
|
208
|
-
return false unless report_mime_type_validator.valid?(@report_mime_type)
|
209
185
|
return false if !@report_name.nil? && @report_name.to_s.length > 128
|
210
186
|
return false if !@report_name.nil? && @report_name.to_s.length < 1
|
211
187
|
#return false if !@report_name.nil? && @report_name !~ Regexp.new(/[a-zA-Z0-9-_ ]+/)
|
@@ -241,16 +217,6 @@ module CyberSource
|
|
241
217
|
@report_definition_name = report_definition_name
|
242
218
|
end
|
243
219
|
|
244
|
-
# Custom attribute writer method checking allowed values (enum).
|
245
|
-
# @param [Object] report_mime_type Object to be assigned
|
246
|
-
def report_mime_type=(report_mime_type)
|
247
|
-
validator = EnumAttributeValidator.new('String', ['application/xml', 'text/csv'])
|
248
|
-
unless validator.valid?(report_mime_type)
|
249
|
-
fail ArgumentError, 'invalid value for "report_mime_type", must be one of #{validator.allowable_values}.'
|
250
|
-
end
|
251
|
-
@report_mime_type = report_mime_type
|
252
|
-
end
|
253
|
-
|
254
220
|
# Custom attribute writer method with validation
|
255
221
|
# @param [Object] report_name Value to be assigned
|
256
222
|
def report_name=(report_name)
|
@@ -22,9 +22,10 @@ module CyberSource
|
|
22
22
|
|
23
23
|
attr_accessor :report_fields
|
24
24
|
|
25
|
+
# Valid values: - application/xml - text/csv
|
25
26
|
attr_accessor :report_mime_type
|
26
27
|
|
27
|
-
# The frequency for which subscription is created.
|
28
|
+
# 'The frequency for which subscription is created.' Valid values: - 'DAILY' - 'WEEKLY' - 'MONTHLY' - 'ADHOC'
|
28
29
|
attr_accessor :report_frequency
|
29
30
|
|
30
31
|
attr_accessor :report_name
|
@@ -45,28 +46,6 @@ module CyberSource
|
|
45
46
|
# Valid GroupName
|
46
47
|
attr_accessor :group_name
|
47
48
|
|
48
|
-
class EnumAttributeValidator
|
49
|
-
attr_reader :datatype
|
50
|
-
attr_reader :allowable_values
|
51
|
-
|
52
|
-
def initialize(datatype, allowable_values)
|
53
|
-
@allowable_values = allowable_values.map do |value|
|
54
|
-
case datatype.to_s
|
55
|
-
when /Integer/i
|
56
|
-
value.to_i
|
57
|
-
when /Float/i
|
58
|
-
value.to_f
|
59
|
-
else
|
60
|
-
value
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
|
-
def valid?(value)
|
66
|
-
!value || allowable_values.include?(value)
|
67
|
-
end
|
68
|
-
end
|
69
|
-
|
70
49
|
# Attribute mapping from ruby-style variable name to JSON key.
|
71
50
|
def self.attribute_map
|
72
51
|
{
|
@@ -249,11 +228,7 @@ module CyberSource
|
|
249
228
|
#return false if @report_definition_name !~ Regexp.new(/[a-zA-Z0-9-]+/)
|
250
229
|
return false if @report_fields.nil?
|
251
230
|
return false if @report_mime_type.nil?
|
252
|
-
report_mime_type_validator = EnumAttributeValidator.new('String', ['application/xml', 'text/csv'])
|
253
|
-
return false unless report_mime_type_validator.valid?(@report_mime_type)
|
254
231
|
return false if @report_frequency.nil?
|
255
|
-
report_frequency_validator = EnumAttributeValidator.new('String', ['DAILY', 'WEEKLY', 'MONTHLY', 'ADHOC'])
|
256
|
-
return false unless report_frequency_validator.valid?(@report_frequency)
|
257
232
|
return false if @report_name.nil?
|
258
233
|
return false if @report_name.to_s.length > 128
|
259
234
|
return false if @report_name.to_s.length < 1
|
@@ -298,26 +273,6 @@ module CyberSource
|
|
298
273
|
@report_definition_name = report_definition_name
|
299
274
|
end
|
300
275
|
|
301
|
-
# Custom attribute writer method checking allowed values (enum).
|
302
|
-
# @param [Object] report_mime_type Object to be assigned
|
303
|
-
def report_mime_type=(report_mime_type)
|
304
|
-
validator = EnumAttributeValidator.new('String', ['application/xml', 'text/csv'])
|
305
|
-
unless validator.valid?(report_mime_type)
|
306
|
-
fail ArgumentError, 'invalid value for "report_mime_type", must be one of #{validator.allowable_values}.'
|
307
|
-
end
|
308
|
-
@report_mime_type = report_mime_type
|
309
|
-
end
|
310
|
-
|
311
|
-
# Custom attribute writer method checking allowed values (enum).
|
312
|
-
# @param [Object] report_frequency Object to be assigned
|
313
|
-
def report_frequency=(report_frequency)
|
314
|
-
validator = EnumAttributeValidator.new('String', ['DAILY', 'WEEKLY', 'MONTHLY', 'ADHOC'])
|
315
|
-
unless validator.valid?(report_frequency)
|
316
|
-
fail ArgumentError, 'invalid value for "report_frequency", must be one of #{validator.allowable_values}.'
|
317
|
-
end
|
318
|
-
@report_frequency = report_frequency
|
319
|
-
end
|
320
|
-
|
321
276
|
# Custom attribute writer method with validation
|
322
277
|
# @param [Object] report_name Value to be assigned
|
323
278
|
def report_name=(report_name)
|
@@ -24,7 +24,7 @@ module CyberSource
|
|
24
24
|
# Name of the country decoded from the IP address used directly or indirectly by the customer to send the order. For all possible values, see the `score_ip_country` 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).
|
25
25
|
attr_accessor :country
|
26
26
|
|
27
|
-
# Name of the
|
27
|
+
# Name of the state decoded from the IP address used directly or indirectly by the customer to send the order. For all possible values, see the `score_ip_state` 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).
|
28
28
|
attr_accessor :administrative_area
|
29
29
|
|
30
30
|
# Routing method decoded from the IP address used directly or indirectly by the customer to send the order. For all possible values, see the `score_ip_routing_method` 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).
|
@@ -28,28 +28,6 @@ module CyberSource
|
|
28
28
|
|
29
29
|
attr_accessor :details
|
30
30
|
|
31
|
-
class EnumAttributeValidator
|
32
|
-
attr_reader :datatype
|
33
|
-
attr_reader :allowable_values
|
34
|
-
|
35
|
-
def initialize(datatype, allowable_values)
|
36
|
-
@allowable_values = allowable_values.map do |value|
|
37
|
-
case datatype.to_s
|
38
|
-
when /Integer/i
|
39
|
-
value.to_i
|
40
|
-
when /Float/i
|
41
|
-
value.to_f
|
42
|
-
else
|
43
|
-
value
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
def valid?(value)
|
49
|
-
!value || allowable_values.include?(value)
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
54
32
|
def self.attribute_map
|
55
33
|
{
|
@@ -113,21 +91,9 @@ module CyberSource
|
|
113
91
|
# Check to see if the all the properties in the model are valid
|
114
92
|
# @return true if the model is valid
|
115
93
|
def valid?
|
116
|
-
status_validator = EnumAttributeValidator.new('String', ['INVALID_REQUEST'])
|
117
|
-
return false unless status_validator.valid?(@status)
|
118
94
|
true
|
119
95
|
end
|
120
96
|
|
121
|
-
# Custom attribute writer method checking allowed values (enum).
|
122
|
-
# @param [Object] status Object to be assigned
|
123
|
-
def status=(status)
|
124
|
-
validator = EnumAttributeValidator.new('String', ['INVALID_REQUEST'])
|
125
|
-
unless validator.valid?(status)
|
126
|
-
fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.'
|
127
|
-
end
|
128
|
-
@status = status
|
129
|
-
end
|
130
|
-
|
131
97
|
# Checks equality by comparing each attribute.
|
132
98
|
# @param [Object] Object to be compared
|
133
99
|
def ==(o)
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class Riskv1decisionsCardVerification
|
17
|
-
# CVN result code. For details, see the `auth_cv_result` field description 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)
|
17
|
+
# CVN result code. For details, see the `auth_cv_result` reply field description 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)
|
18
18
|
attr_accessor :result_code
|
19
19
|
|
20
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -93,8 +93,8 @@ module CyberSource
|
|
93
93
|
# @return Array for valid properties with the reasons
|
94
94
|
def list_invalid_properties
|
95
95
|
invalid_properties = Array.new
|
96
|
-
if !@ip_address.nil? && @ip_address.to_s.length >
|
97
|
-
invalid_properties.push('invalid value for "ip_address", the character length must be smaller than or equal to
|
96
|
+
if !@ip_address.nil? && @ip_address.to_s.length > 48
|
97
|
+
invalid_properties.push('invalid value for "ip_address", the character length must be smaller than or equal to 48.')
|
98
98
|
end
|
99
99
|
|
100
100
|
if !@host_name.nil? && @host_name.to_s.length > 60
|
@@ -111,7 +111,7 @@ module CyberSource
|
|
111
111
|
# Check to see if the all the properties in the model are valid
|
112
112
|
# @return true if the model is valid
|
113
113
|
def valid?
|
114
|
-
return false if !@ip_address.nil? && @ip_address.to_s.length >
|
114
|
+
return false if !@ip_address.nil? && @ip_address.to_s.length > 48
|
115
115
|
return false if !@host_name.nil? && @host_name.to_s.length > 60
|
116
116
|
return false if !@user_agent.nil? && @user_agent.to_s.length > 40
|
117
117
|
true
|
@@ -120,8 +120,8 @@ module CyberSource
|
|
120
120
|
# Custom attribute writer method with validation
|
121
121
|
# @param [Object] ip_address Value to be assigned
|
122
122
|
def ip_address=(ip_address)
|
123
|
-
if !ip_address.nil? && ip_address.to_s.length >
|
124
|
-
fail ArgumentError, 'invalid value for "ip_address", the character length must be smaller than or equal to
|
123
|
+
if !ip_address.nil? && ip_address.to_s.length > 48
|
124
|
+
fail ArgumentError, 'invalid value for "ip_address", the character length must be smaller than or equal to 48.'
|
125
125
|
end
|
126
126
|
|
127
127
|
@ip_address = ip_address
|
@@ -18,7 +18,7 @@ module CyberSource
|
|
18
18
|
# 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).
|
19
19
|
attr_accessor :currency
|
20
20
|
|
21
|
-
# 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)
|
21
|
+
# 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.
|
22
22
|
attr_accessor :total_amount
|
23
23
|
|
24
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -14,34 +14,34 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class Riskv1decisionsOrderInformationBillTo
|
17
|
-
#
|
17
|
+
# 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)
|
18
18
|
attr_accessor :address1
|
19
19
|
|
20
|
-
# 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. ####
|
20
|
+
# 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)
|
21
21
|
attr_accessor :address2
|
22
22
|
|
23
|
-
# 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. #####
|
23
|
+
# 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)
|
24
24
|
attr_accessor :administrative_area
|
25
25
|
|
26
|
-
# Payment card billing country. Use the two-character ISO Standard Country Codes. ####
|
26
|
+
# 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)
|
27
27
|
attr_accessor :country
|
28
28
|
|
29
|
-
# Payment card billing city. #### Atos This field must not contain colons (:). ####
|
29
|
+
# 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)
|
30
30
|
attr_accessor :locality
|
31
31
|
|
32
|
-
# 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)
|
32
|
+
# 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)
|
33
33
|
attr_accessor :first_name
|
34
34
|
|
35
|
-
# 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)
|
35
|
+
# 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)
|
36
36
|
attr_accessor :last_name
|
37
37
|
|
38
|
-
# 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) ####
|
38
|
+
# 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.
|
39
39
|
attr_accessor :phone_number
|
40
40
|
|
41
|
-
# Customer's email address, including the full domain name.
|
41
|
+
# 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)
|
42
42
|
attr_accessor :email
|
43
43
|
|
44
|
-
# 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)
|
44
|
+
# 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)
|
45
45
|
attr_accessor :postal_code
|
46
46
|
|
47
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -137,8 +137,8 @@ module CyberSource
|
|
137
137
|
invalid_properties.push('invalid value for "address2", the character length must be smaller than or equal to 60.')
|
138
138
|
end
|
139
139
|
|
140
|
-
if !@administrative_area.nil? && @administrative_area.to_s.length >
|
141
|
-
invalid_properties.push('invalid value for "administrative_area", the character length must be smaller than or equal to
|
140
|
+
if !@administrative_area.nil? && @administrative_area.to_s.length > 20
|
141
|
+
invalid_properties.push('invalid value for "administrative_area", the character length must be smaller than or equal to 20.')
|
142
142
|
end
|
143
143
|
|
144
144
|
if !@country.nil? && @country.to_s.length > 2
|
@@ -177,7 +177,7 @@ module CyberSource
|
|
177
177
|
def valid?
|
178
178
|
return false if !@address1.nil? && @address1.to_s.length > 60
|
179
179
|
return false if !@address2.nil? && @address2.to_s.length > 60
|
180
|
-
return false if !@administrative_area.nil? && @administrative_area.to_s.length >
|
180
|
+
return false if !@administrative_area.nil? && @administrative_area.to_s.length > 20
|
181
181
|
return false if !@country.nil? && @country.to_s.length > 2
|
182
182
|
return false if !@locality.nil? && @locality.to_s.length > 50
|
183
183
|
return false if !@first_name.nil? && @first_name.to_s.length > 60
|
@@ -211,8 +211,8 @@ module CyberSource
|
|
211
211
|
# Custom attribute writer method with validation
|
212
212
|
# @param [Object] administrative_area Value to be assigned
|
213
213
|
def administrative_area=(administrative_area)
|
214
|
-
if !administrative_area.nil? && administrative_area.to_s.length >
|
215
|
-
fail ArgumentError, 'invalid value for "administrative_area", the character length must be smaller than or equal to
|
214
|
+
if !administrative_area.nil? && administrative_area.to_s.length > 20
|
215
|
+
fail ArgumentError, 'invalid value for "administrative_area", the character length must be smaller than or equal to 20.'
|
216
216
|
end
|
217
217
|
|
218
218
|
@administrative_area = administrative_area
|