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
@@ -17,33 +17,11 @@ module CyberSource
|
|
17
17
|
# Customer's identification number. **Important**: Contact your TeleCheck representative to learn whether this field is required or optional.
|
18
18
|
attr_accessor :id
|
19
19
|
|
20
|
-
# Type of personal identification.
|
20
|
+
# Type of personal identification. **Important**: Contact your TeleCheck representative to learn whether this field is required or optional. Valid values: - driver license
|
21
21
|
attr_accessor :type
|
22
22
|
|
23
23
|
attr_accessor :issued_by
|
24
24
|
|
25
|
-
class EnumAttributeValidator
|
26
|
-
attr_reader :datatype
|
27
|
-
attr_reader :allowable_values
|
28
|
-
|
29
|
-
def initialize(datatype, allowable_values)
|
30
|
-
@allowable_values = allowable_values.map do |value|
|
31
|
-
case datatype.to_s
|
32
|
-
when /Integer/i
|
33
|
-
value.to_i
|
34
|
-
when /Float/i
|
35
|
-
value.to_f
|
36
|
-
else
|
37
|
-
value
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
def valid?(value)
|
43
|
-
!value || allowable_values.include?(value)
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
48
26
|
def self.attribute_map
|
49
27
|
{
|
@@ -93,21 +71,9 @@ module CyberSource
|
|
93
71
|
# Check to see if the all the properties in the model are valid
|
94
72
|
# @return true if the model is valid
|
95
73
|
def valid?
|
96
|
-
type_validator = EnumAttributeValidator.new('String', ['driver license'])
|
97
|
-
return false unless type_validator.valid?(@type)
|
98
74
|
true
|
99
75
|
end
|
100
76
|
|
101
|
-
# Custom attribute writer method checking allowed values (enum).
|
102
|
-
# @param [Object] type Object to be assigned
|
103
|
-
def type=(type)
|
104
|
-
validator = EnumAttributeValidator.new('String', ['driver license'])
|
105
|
-
unless validator.valid?(type)
|
106
|
-
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
107
|
-
end
|
108
|
-
@type = type
|
109
|
-
end
|
110
|
-
|
111
77
|
# Checks equality by comparing each attribute.
|
112
78
|
# @param [Object] Object to be compared
|
113
79
|
def ==(o)
|
@@ -40,28 +40,6 @@ module CyberSource
|
|
40
40
|
|
41
41
|
attr_accessor :order_information
|
42
42
|
|
43
|
-
class EnumAttributeValidator
|
44
|
-
attr_reader :datatype
|
45
|
-
attr_reader :allowable_values
|
46
|
-
|
47
|
-
def initialize(datatype, allowable_values)
|
48
|
-
@allowable_values = allowable_values.map do |value|
|
49
|
-
case datatype.to_s
|
50
|
-
when /Integer/i
|
51
|
-
value.to_i
|
52
|
-
when /Float/i
|
53
|
-
value.to_f
|
54
|
-
else
|
55
|
-
value
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
59
|
-
|
60
|
-
def valid?(value)
|
61
|
-
!value || allowable_values.include?(value)
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
43
|
# Attribute mapping from ruby-style variable name to JSON key.
|
66
44
|
def self.attribute_map
|
67
45
|
{
|
@@ -168,8 +146,6 @@ module CyberSource
|
|
168
146
|
# @return true if the model is valid
|
169
147
|
def valid?
|
170
148
|
return false if !@id.nil? && @id.to_s.length > 26
|
171
|
-
status_validator = EnumAttributeValidator.new('String', ['PENDING'])
|
172
|
-
return false unless status_validator.valid?(@status)
|
173
149
|
return false if !@reconciliation_id.nil? && @reconciliation_id.to_s.length > 60
|
174
150
|
true
|
175
151
|
end
|
@@ -184,16 +160,6 @@ module CyberSource
|
|
184
160
|
@id = id
|
185
161
|
end
|
186
162
|
|
187
|
-
# Custom attribute writer method checking allowed values (enum).
|
188
|
-
# @param [Object] status Object to be assigned
|
189
|
-
def status=(status)
|
190
|
-
validator = EnumAttributeValidator.new('String', ['PENDING'])
|
191
|
-
unless validator.valid?(status)
|
192
|
-
fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.'
|
193
|
-
end
|
194
|
-
@status = status
|
195
|
-
end
|
196
|
-
|
197
163
|
# Custom attribute writer method with validation
|
198
164
|
# @param [Object] reconciliation_id Value to be assigned
|
199
165
|
def reconciliation_id=(reconciliation_id)
|
@@ -34,28 +34,6 @@ module CyberSource
|
|
34
34
|
|
35
35
|
attr_accessor :order_information
|
36
36
|
|
37
|
-
class EnumAttributeValidator
|
38
|
-
attr_reader :datatype
|
39
|
-
attr_reader :allowable_values
|
40
|
-
|
41
|
-
def initialize(datatype, allowable_values)
|
42
|
-
@allowable_values = allowable_values.map do |value|
|
43
|
-
case datatype.to_s
|
44
|
-
when /Integer/i
|
45
|
-
value.to_i
|
46
|
-
when /Float/i
|
47
|
-
value.to_f
|
48
|
-
else
|
49
|
-
value
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|
53
|
-
|
54
|
-
def valid?(value)
|
55
|
-
!value || allowable_values.include?(value)
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
60
38
|
def self.attribute_map
|
61
39
|
{
|
@@ -144,8 +122,6 @@ module CyberSource
|
|
144
122
|
# @return true if the model is valid
|
145
123
|
def valid?
|
146
124
|
return false if !@id.nil? && @id.to_s.length > 26
|
147
|
-
status_validator = EnumAttributeValidator.new('String', ['PENDING'])
|
148
|
-
return false unless status_validator.valid?(@status)
|
149
125
|
return false if !@reconciliation_id.nil? && @reconciliation_id.to_s.length > 60
|
150
126
|
true
|
151
127
|
end
|
@@ -160,16 +136,6 @@ module CyberSource
|
|
160
136
|
@id = id
|
161
137
|
end
|
162
138
|
|
163
|
-
# Custom attribute writer method checking allowed values (enum).
|
164
|
-
# @param [Object] status Object to be assigned
|
165
|
-
def status=(status)
|
166
|
-
validator = EnumAttributeValidator.new('String', ['PENDING'])
|
167
|
-
unless validator.valid?(status)
|
168
|
-
fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.'
|
169
|
-
end
|
170
|
-
@status = status
|
171
|
-
end
|
172
|
-
|
173
139
|
# Custom attribute writer method with validation
|
174
140
|
# @param [Object] reconciliation_id Value to be assigned
|
175
141
|
def reconciliation_id=(reconciliation_id)
|
@@ -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,33 +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
|
-
reason_validator = EnumAttributeValidator.new('String', ['MISSING_FIELD', 'INVALID_DATA', 'DUPLICATE_REQUEST', 'INVALID_MERCHANT_CONFIGURATION', 'EXCEEDS_AUTH_AMOUNT', 'AUTH_ALREADY_REVERSED', 'TRANSACTION_ALREADY_SETTLED', 'MISSING_AUTH', 'TRANSACTION_ALREADY_REVERSED_OR_SETTLED'])
|
119
|
-
return false unless reason_validator.valid?(@reason)
|
120
94
|
true
|
121
95
|
end
|
122
96
|
|
123
|
-
# Custom attribute writer method checking allowed values (enum).
|
124
|
-
# @param [Object] status Object to be assigned
|
125
|
-
def status=(status)
|
126
|
-
validator = EnumAttributeValidator.new('String', ['INVALID_REQUEST'])
|
127
|
-
unless validator.valid?(status)
|
128
|
-
fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.'
|
129
|
-
end
|
130
|
-
@status = status
|
131
|
-
end
|
132
|
-
|
133
|
-
# Custom attribute writer method checking allowed values (enum).
|
134
|
-
# @param [Object] reason Object to be assigned
|
135
|
-
def reason=(reason)
|
136
|
-
validator = EnumAttributeValidator.new('String', ['MISSING_FIELD', 'INVALID_DATA', 'DUPLICATE_REQUEST', 'INVALID_MERCHANT_CONFIGURATION', 'EXCEEDS_AUTH_AMOUNT', 'AUTH_ALREADY_REVERSED', 'TRANSACTION_ALREADY_SETTLED', 'MISSING_AUTH', 'TRANSACTION_ALREADY_REVERSED_OR_SETTLED'])
|
137
|
-
unless validator.valid?(reason)
|
138
|
-
fail ArgumentError, 'invalid value for "reason", must be one of #{validator.allowable_values}.'
|
139
|
-
end
|
140
|
-
@reason = reason
|
141
|
-
end
|
142
|
-
|
143
97
|
# Checks equality by comparing each attribute.
|
144
98
|
# @param [Object] Object to be compared
|
145
99
|
def ==(o)
|
@@ -46,28 +46,6 @@ module CyberSource
|
|
46
46
|
|
47
47
|
attr_accessor :installment_information
|
48
48
|
|
49
|
-
class EnumAttributeValidator
|
50
|
-
attr_reader :datatype
|
51
|
-
attr_reader :allowable_values
|
52
|
-
|
53
|
-
def initialize(datatype, allowable_values)
|
54
|
-
@allowable_values = allowable_values.map do |value|
|
55
|
-
case datatype.to_s
|
56
|
-
when /Integer/i
|
57
|
-
value.to_i
|
58
|
-
when /Float/i
|
59
|
-
value.to_f
|
60
|
-
else
|
61
|
-
value
|
62
|
-
end
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
def valid?(value)
|
67
|
-
!value || allowable_values.include?(value)
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
49
|
# Attribute mapping from ruby-style variable name to JSON key.
|
72
50
|
def self.attribute_map
|
73
51
|
{
|
@@ -192,8 +170,6 @@ module CyberSource
|
|
192
170
|
# @return true if the model is valid
|
193
171
|
def valid?
|
194
172
|
return false if !@id.nil? && @id.to_s.length > 26
|
195
|
-
status_validator = EnumAttributeValidator.new('String', ['AUTHORIZED', 'PARTIAL_AUTHORIZED', 'AUTHORIZED_PENDING_REVIEW', 'DECLINED', 'INVALID_REQUEST', 'PENDING'])
|
196
|
-
return false unless status_validator.valid?(@status)
|
197
173
|
return false if !@reconciliation_id.nil? && @reconciliation_id.to_s.length > 60
|
198
174
|
true
|
199
175
|
end
|
@@ -208,16 +184,6 @@ module CyberSource
|
|
208
184
|
@id = id
|
209
185
|
end
|
210
186
|
|
211
|
-
# Custom attribute writer method checking allowed values (enum).
|
212
|
-
# @param [Object] status Object to be assigned
|
213
|
-
def status=(status)
|
214
|
-
validator = EnumAttributeValidator.new('String', ['AUTHORIZED', 'PARTIAL_AUTHORIZED', 'AUTHORIZED_PENDING_REVIEW', 'DECLINED', 'INVALID_REQUEST', 'PENDING'])
|
215
|
-
unless validator.valid?(status)
|
216
|
-
fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.'
|
217
|
-
end
|
218
|
-
@status = status
|
219
|
-
end
|
220
|
-
|
221
187
|
# Custom attribute writer method with validation
|
222
188
|
# @param [Object] reconciliation_id Value to be assigned
|
223
189
|
def reconciliation_id=(reconciliation_id)
|
data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information.rb
CHANGED
@@ -22,28 +22,6 @@ module CyberSource
|
|
22
22
|
|
23
23
|
attr_accessor :details
|
24
24
|
|
25
|
-
class EnumAttributeValidator
|
26
|
-
attr_reader :datatype
|
27
|
-
attr_reader :allowable_values
|
28
|
-
|
29
|
-
def initialize(datatype, allowable_values)
|
30
|
-
@allowable_values = allowable_values.map do |value|
|
31
|
-
case datatype.to_s
|
32
|
-
when /Integer/i
|
33
|
-
value.to_i
|
34
|
-
when /Float/i
|
35
|
-
value.to_f
|
36
|
-
else
|
37
|
-
value
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
def valid?(value)
|
43
|
-
!value || allowable_values.include?(value)
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
48
26
|
def self.attribute_map
|
49
27
|
{
|
@@ -95,21 +73,9 @@ module CyberSource
|
|
95
73
|
# Check to see if the all the properties in the model are valid
|
96
74
|
# @return true if the model is valid
|
97
75
|
def valid?
|
98
|
-
reason_validator = EnumAttributeValidator.new('String', ['AVS_FAILED', 'CONTACT_PROCESSOR', 'EXPIRED_CARD', 'PROCESSOR_DECLINED', 'INSUFFICIENT_FUND', 'STOLEN_LOST_CARD', 'ISSUER_UNAVAILABLE', 'UNAUTHORIZED_CARD', 'CVN_NOT_MATCH', 'EXCEEDS_CREDIT_LIMIT', 'INVALID_CVN', 'DECLINED_CHECK', 'BLACKLISTED_CUSTOMER', 'SUSPENDED_ACCOUNT', 'PAYMENT_REFUSED', 'CV_FAILED', 'INVALID_ACCOUNT', 'GENERAL_DECLINE', 'INVALID_MERCHANT_CONFIGURATION', 'DECISION_PROFILE_REJECT', 'SCORE_EXCEEDS_THRESHOLD', 'PENDING_AUTHENTICATION'])
|
99
|
-
return false unless reason_validator.valid?(@reason)
|
100
76
|
true
|
101
77
|
end
|
102
78
|
|
103
|
-
# Custom attribute writer method checking allowed values (enum).
|
104
|
-
# @param [Object] reason Object to be assigned
|
105
|
-
def reason=(reason)
|
106
|
-
validator = EnumAttributeValidator.new('String', ['AVS_FAILED', 'CONTACT_PROCESSOR', 'EXPIRED_CARD', 'PROCESSOR_DECLINED', 'INSUFFICIENT_FUND', 'STOLEN_LOST_CARD', 'ISSUER_UNAVAILABLE', 'UNAUTHORIZED_CARD', 'CVN_NOT_MATCH', 'EXCEEDS_CREDIT_LIMIT', 'INVALID_CVN', 'DECLINED_CHECK', 'BLACKLISTED_CUSTOMER', 'SUSPENDED_ACCOUNT', 'PAYMENT_REFUSED', 'CV_FAILED', 'INVALID_ACCOUNT', 'GENERAL_DECLINE', 'INVALID_MERCHANT_CONFIGURATION', 'DECISION_PROFILE_REJECT', 'SCORE_EXCEEDS_THRESHOLD', 'PENDING_AUTHENTICATION'])
|
107
|
-
unless validator.valid?(reason)
|
108
|
-
fail ArgumentError, 'invalid value for "reason", must be one of #{validator.allowable_values}.'
|
109
|
-
end
|
110
|
-
@reason = reason
|
111
|
-
end
|
112
|
-
|
113
79
|
# Checks equality by comparing each attribute.
|
114
80
|
# @param [Object] Object to be compared
|
115
81
|
def ==(o)
|
@@ -20,28 +20,6 @@ module CyberSource
|
|
20
20
|
# Possible reasons for the error. Possible values: - MISSING_FIELD - INVALID_DATA
|
21
21
|
attr_accessor :reason
|
22
22
|
|
23
|
-
class EnumAttributeValidator
|
24
|
-
attr_reader :datatype
|
25
|
-
attr_reader :allowable_values
|
26
|
-
|
27
|
-
def initialize(datatype, allowable_values)
|
28
|
-
@allowable_values = allowable_values.map do |value|
|
29
|
-
case datatype.to_s
|
30
|
-
when /Integer/i
|
31
|
-
value.to_i
|
32
|
-
when /Float/i
|
33
|
-
value.to_f
|
34
|
-
else
|
35
|
-
value
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
|
-
def valid?(value)
|
41
|
-
!value || allowable_values.include?(value)
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
46
24
|
def self.attribute_map
|
47
25
|
{
|
@@ -85,21 +63,9 @@ module CyberSource
|
|
85
63
|
# Check to see if the all the properties in the model are valid
|
86
64
|
# @return true if the model is valid
|
87
65
|
def valid?
|
88
|
-
reason_validator = EnumAttributeValidator.new('String', ['MISSING_FIELD', 'INVALID_DATA'])
|
89
|
-
return false unless reason_validator.valid?(@reason)
|
90
66
|
true
|
91
67
|
end
|
92
68
|
|
93
|
-
# Custom attribute writer method checking allowed values (enum).
|
94
|
-
# @param [Object] reason Object to be assigned
|
95
|
-
def reason=(reason)
|
96
|
-
validator = EnumAttributeValidator.new('String', ['MISSING_FIELD', 'INVALID_DATA'])
|
97
|
-
unless validator.valid?(reason)
|
98
|
-
fail ArgumentError, 'invalid value for "reason", must be one of #{validator.allowable_values}.'
|
99
|
-
end
|
100
|
-
@reason = reason
|
101
|
-
end
|
102
|
-
|
103
69
|
# Checks equality by comparing each attribute.
|
104
70
|
# @param [Object] Object to be compared
|
105
71
|
def ==(o)
|
data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_issuer_information.rb
CHANGED
@@ -17,7 +17,7 @@ module CyberSource
|
|
17
17
|
# Country in which the card was issued. This information enables you to determine whether the card was issued domestically or internationally. Use the two-character ISO Standard Country Codes. This field is supported for Visa, Mastercard, Discover, Diners Club, JCB, and Maestro (International) on Chase Paymentech Solutions. For details, see `auth_card_issuer_country` 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 :country
|
19
19
|
|
20
|
-
# Data defined by the issuer. The value for this reply field will probably be the same as the value that you submitted in the authorization request, but it is possible for the processor, issuer, or acquirer to modify the value. This field is supported only for Visa transactions on **
|
20
|
+
# Data defined by the issuer. The value for this reply field will probably be the same as the value that you submitted in the authorization request, but it is possible for the processor, issuer, or acquirer to modify the value. This field is supported only for Visa transactions on **Visa Platform Connect**. For details, see `issuer_additional_data` 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)
|
21
21
|
attr_accessor :discretionary_data
|
22
22
|
|
23
23
|
# Additional authorization code that must be printed on the receipt when returned by the processor. This value is generated by the processor and is returned only for a successful transaction. This field is supported only on FDC Nashville Global and SIX.
|
@@ -17,7 +17,7 @@ module CyberSource
|
|
17
17
|
# Type of account. This value is returned only if you requested a balance inquiry. Possible values: - `00`: Not applicable or not specified - `10`: Savings account - `20`: Checking account - `30`: Credit card account - `40`: Universal account
|
18
18
|
attr_accessor :account_type
|
19
19
|
|
20
|
-
# Possible values: - `N`: Nonregulated - `R`: Regulated **Note** This field is returned only for
|
20
|
+
# Possible values: - `N`: Nonregulated - `R`: Regulated **Note** This field is returned only for Visa Platform Connect.
|
21
21
|
attr_accessor :account_status
|
22
22
|
|
23
23
|
# Remaining balance on the account.
|
@@ -35,28 +35,28 @@ module CyberSource
|
|
35
35
|
# **Chase Paymentech Solutions** Indicates whether a customer has high credit limits. This information enables you to market high cost items to these customers and to understand the kinds of cards that high income customers are using. This field is supported for Visa, Mastercard, Discover, and Diners Club. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown **Litle** Flag that indicates that a Visa cardholder or Mastercard cardholder is in one of the affluent categories. Possible values: - **AFFLUENT**: High income customer with high spending pattern (>100k USD annual income and >40k USD annual card usage). - **MASS AFFLUENT**: High income customer (>100k USD annual income). **Processor specific maximum length**: - Chase Paymentech Solutions: 1 - Litle: 13
|
36
36
|
attr_accessor :affluence_indicator
|
37
37
|
|
38
|
-
# #### CyberSource through VisaNet Visa or Mastercard product ID that is associated with the primary account number (PAN). For descriptions of the Visa product IDs, see the Product ID table on the [Visa Request & Response Codes web page.](https://developer.visa.com/guides/request_response_codes) Data Length: String (3) #### GPN Visa or Mastercard product ID that is associated with the primary account number (PAN). For descriptions of the Visa product IDs, seepag the Product ID table on the Visa Request & Response Codes web page
|
38
|
+
# #### CyberSource through VisaNet Visa or Mastercard product ID that is associated with the primary account number (PAN). For descriptions of the Visa product IDs, see the Product ID table on the [Visa Request & Response Codes web page.](https://developer.visa.com/guides/request_response_codes) Data Length: String (3) #### GPN Visa or Mastercard product ID that is associated with the primary account number (PAN). For descriptions of the Visa product IDs, seepag the Product ID table on the [Visa Request & Response Codes web page.](https://developer.visa.com/guides/request_response_codes) For descriptions of the Mastercard product IDs, see \"Product IDs\" 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) Data Length: String (3) #### Worldpay VAP **Important** Before using this field on Worldpay VAP, you must contact CyberSource Customer Support to have your account configured for this feature. Type of card used in the transaction. The only possible value is: - `PREPAID`: Prepaid Card Data Length: String (7) #### RBS WorldPay Atlanta Type of card used in the transaction. Possible values: - `B`: Business Card - `O`: Noncommercial Card - `R`: Corporate Card - `S`: Purchase Card - `Blank`: Purchase card not supported Data Length: String (1)
|
39
39
|
attr_accessor :category
|
40
40
|
|
41
|
-
# Indicates whether the card is a commercial card, which enables you to include Level II data in your transaction requests. This field is supported for Visa and Mastercard on **Chase Paymentech Solutions**. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown For details, see `auth_card_commercial` 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)
|
41
|
+
# Indicates whether the card is a commercial card, which enables you to include Level II data in your transaction requests. This field is supported for Visa and Mastercard on **Chase Paymentech Solutions**. Possible values: - **Y**: Yes - **N**: No - **X**: Not applicable / Unknown For details, see `auth_card_commercial` 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)
|
42
42
|
attr_accessor :commercial
|
43
43
|
|
44
|
-
# Type of commercial card. This field is supported only for
|
44
|
+
# Type of commercial card. This field is supported only for Visa Platform Connect. Possible values: - **B**: Business card - **R**: Corporate card - **S**: Purchasing card - **0**: Noncommercial card
|
45
45
|
attr_accessor :group
|
46
46
|
|
47
|
-
# Indicates whether the card is a healthcare card. This field is supported for Visa and Mastercard on **Chase Paymentech Solutions**. Possible values: - `Y`: Yes - `N`: No - `X`: Not applicable / Unknown For details, see `auth_card_healthcare` 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)
|
47
|
+
# Indicates whether the card is a healthcare card. This field is supported for Visa and Mastercard on **Chase Paymentech Solutions**. Possible values: - `Y`: Yes - `N`: No - `X`: Not applicable / Unknown For details, see `auth_card_healthcare` 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)
|
48
48
|
attr_accessor :health_care
|
49
49
|
|
50
50
|
# Indicates whether the card is a payroll card. This field is supported for Visa, Discover, Diners Club, and JCB on **Chase Paymentech Solutions**. Possible values: - `Y`: Yes - `N`: No - `X`: Not applicable / Unknown For details, see `auth_card_payroll` 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)
|
51
51
|
attr_accessor :payroll
|
52
52
|
|
53
|
-
# Indicates whether the card is eligible for Level III interchange fees, which enables you to include Level III data in your transaction requests. This field is supported for Visa and Mastercard on **Chase Paymentech Solutions**. Possible values: - `Y`: Yes - `N`: No - `X`: Not applicable / Unknown For details, see `auth_card_level_3_eligible` 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)
|
53
|
+
# Indicates whether the card is eligible for Level III interchange fees, which enables you to include Level III data in your transaction requests. This field is supported for Visa and Mastercard on **Chase Paymentech Solutions**. Possible values: - `Y`: Yes - `N`: No - `X`: Not applicable / Unknown For details, see `auth_card_level_3_eligible` 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)
|
54
54
|
attr_accessor :level3_eligible
|
55
55
|
|
56
|
-
# Indicates whether the card is a PINless debit card. This field is supported for Visa and Mastercard on **Chase Paymentech Solutions**. Possible values: - `Y`: Yes - `N`: No - `X`: Not applicable / Unknown For details, see `auth_card_pinless_debit` 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)
|
56
|
+
# Indicates whether the card is a PINless debit card. This field is supported for Visa and Mastercard on **Chase Paymentech Solutions**. Possible values: - `Y`: Yes - `N`: No - `X`: Not applicable / Unknown For details, see `auth_card_pinless_debit` reply 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)
|
57
57
|
attr_accessor :pinless_debit
|
58
58
|
|
59
|
-
# Indicates whether the card is a signature debit card. This information enables you to alter the way an order is processed. For example, you might not want to reauthorize a transaction for a signature debit card, or you might want to perform reversals promptly for a signature debit card. This field is supported for Visa, Mastercard, and Maestro (International) on Chase Paymentech Solutions. Possible values: - `Y`: Yes - `N`: No - `X`: Not applicable / Unknown For details, see `auth_card_signature_debit` 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)
|
59
|
+
# Indicates whether the card is a signature debit card. This information enables you to alter the way an order is processed. For example, you might not want to reauthorize a transaction for a signature debit card, or you might want to perform reversals promptly for a signature debit card. This field is supported for Visa, Mastercard, and Maestro (International) on Chase Paymentech Solutions. Possible values: - `Y`: Yes - `N`: No - `X`: Not applicable / Unknown For details, see `auth_card_signature_debit` reply 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)
|
60
60
|
attr_accessor :signature_debit
|
61
61
|
|
62
62
|
# Indicates whether the card is a prepaid card. This information enables you to determine when a gift card or prepaid card is presented for use when establishing a new recurring, installment, or deferred billing relationship. This field is supported for Visa, Mastercard, Discover, Diners Club, and JCB on Chase Paymentech Solutions. Possible values: - `Y`: Yes - `N`: No - `X`: Not applicable / Unknown For details, see the `auth_card_prepaid` 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)
|
@@ -65,28 +65,6 @@ module CyberSource
|
|
65
65
|
# Indicates whether the card is regulated according to the Durbin Amendment. If the card is regulated, the card issuer is subject to price caps and interchange rules. This field is supported for Visa, Mastercard, Discover, Diners Club, and JCB on Chase Paymentech Solutions. Possible values: - `Y`: Yes - `N`: No - `X`: Not applicable / Unknown For details, see `auth_card_regulated` 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)
|
66
66
|
attr_accessor :regulated
|
67
67
|
|
68
|
-
class EnumAttributeValidator
|
69
|
-
attr_reader :datatype
|
70
|
-
attr_reader :allowable_values
|
71
|
-
|
72
|
-
def initialize(datatype, allowable_values)
|
73
|
-
@allowable_values = allowable_values.map do |value|
|
74
|
-
case datatype.to_s
|
75
|
-
when /Integer/i
|
76
|
-
value.to_i
|
77
|
-
when /Float/i
|
78
|
-
value.to_f
|
79
|
-
else
|
80
|
-
value
|
81
|
-
end
|
82
|
-
end
|
83
|
-
end
|
84
|
-
|
85
|
-
def valid?(value)
|
86
|
-
!value || allowable_values.include?(value)
|
87
|
-
end
|
88
|
-
end
|
89
|
-
|
90
68
|
# Attribute mapping from ruby-style variable name to JSON key.
|
91
69
|
def self.attribute_map
|
92
70
|
{
|
@@ -293,8 +271,6 @@ module CyberSource
|
|
293
271
|
return false if !@balance_amount.nil? && @balance_amount.to_s.length > 12
|
294
272
|
return false if !@balance_amount_type.nil? && @balance_amount_type.to_s.length > 2
|
295
273
|
return false if !@currency.nil? && @currency.to_s.length > 5
|
296
|
-
balance_sign_validator = EnumAttributeValidator.new('String', ['+', '-'])
|
297
|
-
return false unless balance_sign_validator.valid?(@balance_sign)
|
298
274
|
return false if !@balance_sign.nil? && @balance_sign.to_s.length > 1
|
299
275
|
return false if !@affluence_indicator.nil? && @affluence_indicator.to_s.length > 13
|
300
276
|
return false if !@category.nil? && @category.to_s.length > 7
|
@@ -360,13 +336,13 @@ module CyberSource
|
|
360
336
|
@currency = currency
|
361
337
|
end
|
362
338
|
|
363
|
-
# Custom attribute writer method
|
364
|
-
# @param [Object] balance_sign
|
339
|
+
# Custom attribute writer method with validation
|
340
|
+
# @param [Object] balance_sign Value to be assigned
|
365
341
|
def balance_sign=(balance_sign)
|
366
|
-
|
367
|
-
|
368
|
-
fail ArgumentError, 'invalid value for "balance_sign", must be one of #{validator.allowable_values}.'
|
342
|
+
if !balance_sign.nil? && balance_sign.to_s.length > 1
|
343
|
+
fail ArgumentError, 'invalid value for "balance_sign", the character length must be smaller than or equal to 1.'
|
369
344
|
end
|
345
|
+
|
370
346
|
@balance_sign = balance_sign
|
371
347
|
end
|
372
348
|
|