cybersource_rest_client 0.0.14 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
@@ -1,279 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#CyberSource Merged Spec
|
3
|
-
|
4
|
-
#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
|
5
|
-
|
6
|
-
OpenAPI spec version: 0.0.1
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.2.3
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'date'
|
14
|
-
|
15
|
-
module CyberSource
|
16
|
-
class Riskv1authenticationsRiskInformationBuyerHistoryCustomerAccount
|
17
|
-
# Date the cardholder’s account was last changed. This includes changes to the billing or shipping address, new payment accounts or new users added. Recommended for Discover ProtectBuy.
|
18
|
-
attr_accessor :last_change_date
|
19
|
-
|
20
|
-
# The values from the enum can be: - GUEST - NEW_ACCOUNT - EXISTING_ACCOUNT
|
21
|
-
attr_accessor :creation_history
|
22
|
-
|
23
|
-
# This field is applicable only in case of EXISTING_ACCOUNT in creationHistory. Possible values: - ACCOUNT_UPDATED_NOW - ACCOUNT_UPDATED_PAST
|
24
|
-
attr_accessor :modification_history
|
25
|
-
|
26
|
-
# This only applies for EXISTING_ACCOUNT in creationHistory. The values from the enum can be: - PASSWORD_CHANGED_NOW - PASSWORD_CHANGED_PAST - PASSWORD_NEVER_CHANGED
|
27
|
-
attr_accessor :password_history
|
28
|
-
|
29
|
-
# Date the cardholder opened the account. Recommended for Discover ProtectBuy. This only applies for EXISTING_ACCOUNT in creationHistory.
|
30
|
-
attr_accessor :create_date
|
31
|
-
|
32
|
-
# Date the cardholder last changed or reset password on account. Recommended for Discover ProtectBuy. This only applies for PASSWORD_CHANGED_PAST in passwordHistory.
|
33
|
-
attr_accessor :password_change_date
|
34
|
-
|
35
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
36
|
-
def self.attribute_map
|
37
|
-
{
|
38
|
-
:'last_change_date' => :'lastChangeDate',
|
39
|
-
:'creation_history' => :'creationHistory',
|
40
|
-
:'modification_history' => :'modificationHistory',
|
41
|
-
:'password_history' => :'passwordHistory',
|
42
|
-
:'create_date' => :'createDate',
|
43
|
-
:'password_change_date' => :'passwordChangeDate'
|
44
|
-
}
|
45
|
-
end
|
46
|
-
|
47
|
-
# Attribute type mapping.
|
48
|
-
def self.swagger_types
|
49
|
-
{
|
50
|
-
:'last_change_date' => :'String',
|
51
|
-
:'creation_history' => :'String',
|
52
|
-
:'modification_history' => :'String',
|
53
|
-
:'password_history' => :'String',
|
54
|
-
:'create_date' => :'String',
|
55
|
-
:'password_change_date' => :'String'
|
56
|
-
}
|
57
|
-
end
|
58
|
-
|
59
|
-
# Initializes the object
|
60
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
61
|
-
def initialize(attributes = {})
|
62
|
-
return unless attributes.is_a?(Hash)
|
63
|
-
|
64
|
-
# convert string to symbol for hash key
|
65
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
66
|
-
|
67
|
-
if attributes.has_key?(:'lastChangeDate')
|
68
|
-
self.last_change_date = attributes[:'lastChangeDate']
|
69
|
-
end
|
70
|
-
|
71
|
-
if attributes.has_key?(:'creationHistory')
|
72
|
-
self.creation_history = attributes[:'creationHistory']
|
73
|
-
end
|
74
|
-
|
75
|
-
if attributes.has_key?(:'modificationHistory')
|
76
|
-
self.modification_history = attributes[:'modificationHistory']
|
77
|
-
end
|
78
|
-
|
79
|
-
if attributes.has_key?(:'passwordHistory')
|
80
|
-
self.password_history = attributes[:'passwordHistory']
|
81
|
-
end
|
82
|
-
|
83
|
-
if attributes.has_key?(:'createDate')
|
84
|
-
self.create_date = attributes[:'createDate']
|
85
|
-
end
|
86
|
-
|
87
|
-
if attributes.has_key?(:'passwordChangeDate')
|
88
|
-
self.password_change_date = attributes[:'passwordChangeDate']
|
89
|
-
end
|
90
|
-
end
|
91
|
-
|
92
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
93
|
-
# @return Array for valid properties with the reasons
|
94
|
-
def list_invalid_properties
|
95
|
-
invalid_properties = Array.new
|
96
|
-
if !@last_change_date.nil? && @last_change_date.to_s.length > 10
|
97
|
-
invalid_properties.push('invalid value for "last_change_date", the character length must be smaller than or equal to 10.')
|
98
|
-
end
|
99
|
-
|
100
|
-
if !@create_date.nil? && @create_date.to_s.length > 10
|
101
|
-
invalid_properties.push('invalid value for "create_date", the character length must be smaller than or equal to 10.')
|
102
|
-
end
|
103
|
-
|
104
|
-
if !@password_change_date.nil? && @password_change_date.to_s.length > 10
|
105
|
-
invalid_properties.push('invalid value for "password_change_date", the character length must be smaller than or equal to 10.')
|
106
|
-
end
|
107
|
-
|
108
|
-
invalid_properties
|
109
|
-
end
|
110
|
-
|
111
|
-
# Check to see if the all the properties in the model are valid
|
112
|
-
# @return true if the model is valid
|
113
|
-
def valid?
|
114
|
-
return false if !@last_change_date.nil? && @last_change_date.to_s.length > 10
|
115
|
-
return false if !@create_date.nil? && @create_date.to_s.length > 10
|
116
|
-
return false if !@password_change_date.nil? && @password_change_date.to_s.length > 10
|
117
|
-
true
|
118
|
-
end
|
119
|
-
|
120
|
-
# Custom attribute writer method with validation
|
121
|
-
# @param [Object] last_change_date Value to be assigned
|
122
|
-
def last_change_date=(last_change_date)
|
123
|
-
if !last_change_date.nil? && last_change_date.to_s.length > 10
|
124
|
-
fail ArgumentError, 'invalid value for "last_change_date", the character length must be smaller than or equal to 10.'
|
125
|
-
end
|
126
|
-
|
127
|
-
@last_change_date = last_change_date
|
128
|
-
end
|
129
|
-
|
130
|
-
# Custom attribute writer method with validation
|
131
|
-
# @param [Object] create_date Value to be assigned
|
132
|
-
def create_date=(create_date)
|
133
|
-
if !create_date.nil? && create_date.to_s.length > 10
|
134
|
-
fail ArgumentError, 'invalid value for "create_date", the character length must be smaller than or equal to 10.'
|
135
|
-
end
|
136
|
-
|
137
|
-
@create_date = create_date
|
138
|
-
end
|
139
|
-
|
140
|
-
# Custom attribute writer method with validation
|
141
|
-
# @param [Object] password_change_date Value to be assigned
|
142
|
-
def password_change_date=(password_change_date)
|
143
|
-
if !password_change_date.nil? && password_change_date.to_s.length > 10
|
144
|
-
fail ArgumentError, 'invalid value for "password_change_date", the character length must be smaller than or equal to 10.'
|
145
|
-
end
|
146
|
-
|
147
|
-
@password_change_date = password_change_date
|
148
|
-
end
|
149
|
-
|
150
|
-
# Checks equality by comparing each attribute.
|
151
|
-
# @param [Object] Object to be compared
|
152
|
-
def ==(o)
|
153
|
-
return true if self.equal?(o)
|
154
|
-
self.class == o.class &&
|
155
|
-
last_change_date == o.last_change_date &&
|
156
|
-
creation_history == o.creation_history &&
|
157
|
-
modification_history == o.modification_history &&
|
158
|
-
password_history == o.password_history &&
|
159
|
-
create_date == o.create_date &&
|
160
|
-
password_change_date == o.password_change_date
|
161
|
-
end
|
162
|
-
|
163
|
-
# @see the `==` method
|
164
|
-
# @param [Object] Object to be compared
|
165
|
-
def eql?(o)
|
166
|
-
self == o
|
167
|
-
end
|
168
|
-
|
169
|
-
# Calculates hash code according to all attributes.
|
170
|
-
# @return [Fixnum] Hash code
|
171
|
-
def hash
|
172
|
-
[last_change_date, creation_history, modification_history, password_history, create_date, password_change_date].hash
|
173
|
-
end
|
174
|
-
|
175
|
-
# Builds the object from hash
|
176
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
177
|
-
# @return [Object] Returns the model itself
|
178
|
-
def build_from_hash(attributes)
|
179
|
-
return nil unless attributes.is_a?(Hash)
|
180
|
-
self.class.swagger_types.each_pair do |key, type|
|
181
|
-
if type =~ /\AArray<(.*)>/i
|
182
|
-
# check to ensure the input is an array given that the the attribute
|
183
|
-
# is documented as an array but the input is not
|
184
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
185
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
186
|
-
end
|
187
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
188
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
189
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
190
|
-
end
|
191
|
-
|
192
|
-
self
|
193
|
-
end
|
194
|
-
|
195
|
-
# Deserializes the data based on type
|
196
|
-
# @param string type Data type
|
197
|
-
# @param string value Value to be deserialized
|
198
|
-
# @return [Object] Deserialized data
|
199
|
-
def _deserialize(type, value)
|
200
|
-
case type.to_sym
|
201
|
-
when :DateTime
|
202
|
-
DateTime.parse(value)
|
203
|
-
when :Date
|
204
|
-
Date.parse(value)
|
205
|
-
when :String
|
206
|
-
value.to_s
|
207
|
-
when :Integer
|
208
|
-
value.to_i
|
209
|
-
when :Float
|
210
|
-
value.to_f
|
211
|
-
when :BOOLEAN
|
212
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
213
|
-
true
|
214
|
-
else
|
215
|
-
false
|
216
|
-
end
|
217
|
-
when :Object
|
218
|
-
# generic object (usually a Hash), return directly
|
219
|
-
value
|
220
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
221
|
-
inner_type = Regexp.last_match[:inner_type]
|
222
|
-
value.map { |v| _deserialize(inner_type, v) }
|
223
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
224
|
-
k_type = Regexp.last_match[:k_type]
|
225
|
-
v_type = Regexp.last_match[:v_type]
|
226
|
-
{}.tap do |hash|
|
227
|
-
value.each do |k, v|
|
228
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
229
|
-
end
|
230
|
-
end
|
231
|
-
else # model
|
232
|
-
temp_model = CyberSource.const_get(type).new
|
233
|
-
temp_model.build_from_hash(value)
|
234
|
-
end
|
235
|
-
end
|
236
|
-
|
237
|
-
# Returns the string representation of the object
|
238
|
-
# @return [String] String presentation of the object
|
239
|
-
def to_s
|
240
|
-
to_hash.to_s
|
241
|
-
end
|
242
|
-
|
243
|
-
# to_body is an alias to to_hash (backward compatibility)
|
244
|
-
# @return [Hash] Returns the object in the form of hash
|
245
|
-
def to_body
|
246
|
-
to_hash
|
247
|
-
end
|
248
|
-
|
249
|
-
# Returns the object in the form of hash
|
250
|
-
# @return [Hash] Returns the object in the form of hash
|
251
|
-
def to_hash
|
252
|
-
hash = {}
|
253
|
-
self.class.attribute_map.each_pair do |attr, param|
|
254
|
-
value = self.send(attr)
|
255
|
-
next if value.nil?
|
256
|
-
hash[param] = _to_hash(value)
|
257
|
-
end
|
258
|
-
hash
|
259
|
-
end
|
260
|
-
|
261
|
-
# Outputs non-array value in the form of hash
|
262
|
-
# For object, use to_hash. Otherwise, just return the value
|
263
|
-
# @param [Object] value Any valid value
|
264
|
-
# @return [Hash] Returns the value in the form of hash
|
265
|
-
def _to_hash(value)
|
266
|
-
if value.is_a?(Array)
|
267
|
-
value.compact.map { |v| _to_hash(v) }
|
268
|
-
elsif value.is_a?(Hash)
|
269
|
-
{}.tap do |hash|
|
270
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
271
|
-
end
|
272
|
-
elsif value.respond_to? :to_hash
|
273
|
-
value.to_hash
|
274
|
-
else
|
275
|
-
value
|
276
|
-
end
|
277
|
-
end
|
278
|
-
end
|
279
|
-
end
|
@@ -1,206 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#CyberSource Merged Spec
|
3
|
-
|
4
|
-
#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
|
5
|
-
|
6
|
-
OpenAPI spec version: 0.0.1
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.2.3
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'date'
|
14
|
-
|
15
|
-
module CyberSource
|
16
|
-
class Riskv1authenticationsTravelInformation
|
17
|
-
attr_accessor :legs
|
18
|
-
|
19
|
-
# Number of passengers for whom the ticket was issued. If you do not include this field in your request, CyberSource uses a default value of 1. Required for American Express SafeKey (U.S.) for travel-related requests.
|
20
|
-
attr_accessor :number_of_passengers
|
21
|
-
|
22
|
-
attr_accessor :passengers
|
23
|
-
|
24
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
25
|
-
def self.attribute_map
|
26
|
-
{
|
27
|
-
:'legs' => :'legs',
|
28
|
-
:'number_of_passengers' => :'numberOfPassengers',
|
29
|
-
:'passengers' => :'passengers'
|
30
|
-
}
|
31
|
-
end
|
32
|
-
|
33
|
-
# Attribute type mapping.
|
34
|
-
def self.swagger_types
|
35
|
-
{
|
36
|
-
:'legs' => :'Array<Riskv1authenticationsTravelInformationLegs>',
|
37
|
-
:'number_of_passengers' => :'Integer',
|
38
|
-
:'passengers' => :'Array<Riskv1authenticationsTravelInformationPassengers>'
|
39
|
-
}
|
40
|
-
end
|
41
|
-
|
42
|
-
# Initializes the object
|
43
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
44
|
-
def initialize(attributes = {})
|
45
|
-
return unless attributes.is_a?(Hash)
|
46
|
-
|
47
|
-
# convert string to symbol for hash key
|
48
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
49
|
-
|
50
|
-
if attributes.has_key?(:'legs')
|
51
|
-
if (value = attributes[:'legs']).is_a?(Array)
|
52
|
-
self.legs = value
|
53
|
-
end
|
54
|
-
end
|
55
|
-
|
56
|
-
if attributes.has_key?(:'numberOfPassengers')
|
57
|
-
self.number_of_passengers = attributes[:'numberOfPassengers']
|
58
|
-
end
|
59
|
-
|
60
|
-
if attributes.has_key?(:'passengers')
|
61
|
-
if (value = attributes[:'passengers']).is_a?(Array)
|
62
|
-
self.passengers = value
|
63
|
-
end
|
64
|
-
end
|
65
|
-
end
|
66
|
-
|
67
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
68
|
-
# @return Array for valid properties with the reasons
|
69
|
-
def list_invalid_properties
|
70
|
-
invalid_properties = Array.new
|
71
|
-
invalid_properties
|
72
|
-
end
|
73
|
-
|
74
|
-
# Check to see if the all the properties in the model are valid
|
75
|
-
# @return true if the model is valid
|
76
|
-
def valid?
|
77
|
-
true
|
78
|
-
end
|
79
|
-
|
80
|
-
# Checks equality by comparing each attribute.
|
81
|
-
# @param [Object] Object to be compared
|
82
|
-
def ==(o)
|
83
|
-
return true if self.equal?(o)
|
84
|
-
self.class == o.class &&
|
85
|
-
legs == o.legs &&
|
86
|
-
number_of_passengers == o.number_of_passengers &&
|
87
|
-
passengers == o.passengers
|
88
|
-
end
|
89
|
-
|
90
|
-
# @see the `==` method
|
91
|
-
# @param [Object] Object to be compared
|
92
|
-
def eql?(o)
|
93
|
-
self == o
|
94
|
-
end
|
95
|
-
|
96
|
-
# Calculates hash code according to all attributes.
|
97
|
-
# @return [Fixnum] Hash code
|
98
|
-
def hash
|
99
|
-
[legs, number_of_passengers, passengers].hash
|
100
|
-
end
|
101
|
-
|
102
|
-
# Builds the object from hash
|
103
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
104
|
-
# @return [Object] Returns the model itself
|
105
|
-
def build_from_hash(attributes)
|
106
|
-
return nil unless attributes.is_a?(Hash)
|
107
|
-
self.class.swagger_types.each_pair do |key, type|
|
108
|
-
if type =~ /\AArray<(.*)>/i
|
109
|
-
# check to ensure the input is an array given that the the attribute
|
110
|
-
# is documented as an array but the input is not
|
111
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
112
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
113
|
-
end
|
114
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
115
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
116
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
117
|
-
end
|
118
|
-
|
119
|
-
self
|
120
|
-
end
|
121
|
-
|
122
|
-
# Deserializes the data based on type
|
123
|
-
# @param string type Data type
|
124
|
-
# @param string value Value to be deserialized
|
125
|
-
# @return [Object] Deserialized data
|
126
|
-
def _deserialize(type, value)
|
127
|
-
case type.to_sym
|
128
|
-
when :DateTime
|
129
|
-
DateTime.parse(value)
|
130
|
-
when :Date
|
131
|
-
Date.parse(value)
|
132
|
-
when :String
|
133
|
-
value.to_s
|
134
|
-
when :Integer
|
135
|
-
value.to_i
|
136
|
-
when :Float
|
137
|
-
value.to_f
|
138
|
-
when :BOOLEAN
|
139
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
140
|
-
true
|
141
|
-
else
|
142
|
-
false
|
143
|
-
end
|
144
|
-
when :Object
|
145
|
-
# generic object (usually a Hash), return directly
|
146
|
-
value
|
147
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
148
|
-
inner_type = Regexp.last_match[:inner_type]
|
149
|
-
value.map { |v| _deserialize(inner_type, v) }
|
150
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
151
|
-
k_type = Regexp.last_match[:k_type]
|
152
|
-
v_type = Regexp.last_match[:v_type]
|
153
|
-
{}.tap do |hash|
|
154
|
-
value.each do |k, v|
|
155
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
156
|
-
end
|
157
|
-
end
|
158
|
-
else # model
|
159
|
-
temp_model = CyberSource.const_get(type).new
|
160
|
-
temp_model.build_from_hash(value)
|
161
|
-
end
|
162
|
-
end
|
163
|
-
|
164
|
-
# Returns the string representation of the object
|
165
|
-
# @return [String] String presentation of the object
|
166
|
-
def to_s
|
167
|
-
to_hash.to_s
|
168
|
-
end
|
169
|
-
|
170
|
-
# to_body is an alias to to_hash (backward compatibility)
|
171
|
-
# @return [Hash] Returns the object in the form of hash
|
172
|
-
def to_body
|
173
|
-
to_hash
|
174
|
-
end
|
175
|
-
|
176
|
-
# Returns the object in the form of hash
|
177
|
-
# @return [Hash] Returns the object in the form of hash
|
178
|
-
def to_hash
|
179
|
-
hash = {}
|
180
|
-
self.class.attribute_map.each_pair do |attr, param|
|
181
|
-
value = self.send(attr)
|
182
|
-
next if value.nil?
|
183
|
-
hash[param] = _to_hash(value)
|
184
|
-
end
|
185
|
-
hash
|
186
|
-
end
|
187
|
-
|
188
|
-
# Outputs non-array value in the form of hash
|
189
|
-
# For object, use to_hash. Otherwise, just return the value
|
190
|
-
# @param [Object] value Any valid value
|
191
|
-
# @return [Hash] Returns the value in the form of hash
|
192
|
-
def _to_hash(value)
|
193
|
-
if value.is_a?(Array)
|
194
|
-
value.compact.map { |v| _to_hash(v) }
|
195
|
-
elsif value.is_a?(Hash)
|
196
|
-
{}.tap do |hash|
|
197
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
198
|
-
end
|
199
|
-
elsif value.respond_to? :to_hash
|
200
|
-
value.to_hash
|
201
|
-
else
|
202
|
-
value
|
203
|
-
end
|
204
|
-
end
|
205
|
-
end
|
206
|
-
end
|