cybersource_rest_client 0.0.19 → 0.0.21
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/AuthenticationSDK/core/MerchantConfig.rb +4 -0
- data/lib/AuthenticationSDK/util/Constants.rb +8 -0
- data/lib/cybersource_rest_client.rb +104 -11
- data/lib/cybersource_rest_client/api/authentication_exemptions_api.rb +2 -2
- data/lib/cybersource_rest_client/api/conversion_details_api.rb +2 -2
- data/lib/cybersource_rest_client/api/decision_manager_api.rb +142 -0
- data/lib/cybersource_rest_client/api/download_dtd_api.rb +2 -2
- data/lib/cybersource_rest_client/api/download_xsd_api.rb +2 -2
- data/lib/cybersource_rest_client/api/net_fundings_api.rb +2 -2
- data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +2 -2
- data/lib/cybersource_rest_client/api/payer_authentication_api.rb +78 -13
- data/lib/cybersource_rest_client/api/payment_batch_summaries_api.rb +2 -2
- data/lib/cybersource_rest_client/api/payments_api.rb +71 -0
- data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +2 -2
- data/lib/cybersource_rest_client/api/report_definitions_api.rb +4 -4
- data/lib/cybersource_rest_client/api/report_downloads_api.rb +2 -2
- data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +87 -87
- data/lib/cybersource_rest_client/api/reports_api.rb +4 -4
- data/lib/cybersource_rest_client/api/reversal_api.rb +65 -0
- data/lib/cybersource_rest_client/api/search_transactions_api.rb +4 -4
- data/lib/cybersource_rest_client/api/secure_file_share_api.rb +4 -4
- data/lib/cybersource_rest_client/api/tokenization_api.rb +2 -2
- data/lib/cybersource_rest_client/api/transaction_batches_api.rb +15 -9
- data/lib/cybersource_rest_client/api/user_management_api.rb +2 -2
- data/lib/cybersource_rest_client/api/verification_api.rb +154 -0
- data/lib/cybersource_rest_client/api/void_api.rb +65 -0
- data/lib/cybersource_rest_client/models/add_negative_list_request.rb +228 -0
- data/lib/cybersource_rest_client/models/authentication_exemptions_request.rb +1 -1
- data/lib/cybersource_rest_client/models/capture_payment_request.rb +22 -4
- data/lib/cybersource_rest_client/models/check_payer_auth_enrollment_request.rb +11 -2
- data/lib/cybersource_rest_client/models/create_credit_request.rb +32 -5
- data/lib/cybersource_rest_client/models/create_instrument_identifier_request.rb +1 -1
- data/lib/cybersource_rest_client/models/create_payment_request.rb +22 -4
- data/lib/cybersource_rest_client/models/create_report_subscription_request.rb +1 -1
- data/lib/cybersource_rest_client/models/embedded_instrument_identifier_response.rb +10 -1
- data/lib/cybersource_rest_client/models/error.rb +13 -23
- data/lib/cybersource_rest_client/models/error_bean.rb +1 -1
- data/lib/cybersource_rest_client/models/error_links.rb +15 -15
- data/lib/cybersource_rest_client/models/error_response.rb +20 -2
- data/lib/cybersource_rest_client/models/fraud_marking_action_request.rb +183 -0
- data/lib/cybersource_rest_client/models/generate_public_key_request.rb +14 -4
- data/lib/cybersource_rest_client/models/increment_auth_request.rb +219 -0
- data/lib/cybersource_rest_client/models/inline_response_400.rb +14 -59
- data/lib/cybersource_rest_client/models/inline_response_400_1.rb +59 -14
- data/lib/cybersource_rest_client/models/{inline_response_400_fields.rb → inline_response_400_1_fields.rb} +1 -1
- data/lib/cybersource_rest_client/models/instrument_identifier_enrollable_card.rb +1 -1
- data/lib/cybersource_rest_client/models/instrument_identifier_response.rb +10 -1
- data/lib/cybersource_rest_client/models/instrument_identifier_tokenized_card.rb +272 -0
- data/lib/cybersource_rest_client/models/key_parameters.rb +14 -4
- data/lib/cybersource_rest_client/models/link.rb +25 -4
- data/lib/cybersource_rest_client/models/links.rb +18 -23
- data/lib/cybersource_rest_client/models/mit_reversal_request.rb +219 -0
- data/lib/cybersource_rest_client/models/mit_void_request.rb +183 -0
- data/lib/cybersource_rest_client/models/oct_create_payment_request.rb +1 -1
- data/lib/cybersource_rest_client/models/payer_auth_setup_request.rb +210 -0
- data/lib/cybersource_rest_client/models/predefined_subscription_request_bean.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response.rb +15 -6
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_credit_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_processing_information.rb +14 -4
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_processing_information_bank_transfer_options.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response.rb +298 -0
- data/lib/cybersource_rest_client/models/{pts_v2_payments_reversals_post201_response__links.rb → pts_v2_incremental_authorization_patch201_response__links.rb} +1 -1
- data/lib/cybersource_rest_client/models/{ptsv2payouts_client_reference_information.rb → pts_v2_incremental_authorization_patch201_response_client_reference_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_error_information.rb +205 -0
- data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_order_information.rb +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_payment_information.rb +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_payment_information_account_features.rb +199 -0
- data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_processor_information.rb +293 -0
- data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch400_response.rb +225 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response.rb +23 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information_invoice_details.rb +184 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_point_of_sale_information.rb +199 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_processing_information.rb +184 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_client_reference_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +264 -19
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_issuer_information.rb +28 -3
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_invoice_details.rb +29 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_account_features.rb +10 -10
- 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_bank_account.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_point_of_sale_information.rb +35 -10
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information_emv.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information.rb +14 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information_bank_transfer_options.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +3 -28
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_ach_verification.rb +2 -2
- 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_consumer_authentication_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_electronic_verification_results.rb +5 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_routing.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +14 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_order_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_refund_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_reversal_amount_details.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response_void_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2credits_installment_information.rb +199 -0
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +108 -15
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information_bank_transfer_options.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information_japan_payment_options.rb +209 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb +32 -7
- data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information.rb +17 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information_partner.rb +29 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +55 -21
- data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information_strong_authentication.rb +299 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +74 -14
- data/lib/cybersource_rest_client/models/ptsv2payments_issuer_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_defined_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +26 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_initiated_transaction.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +21 -12
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_currency_conversion.rb +249 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_tax_details.rb +7 -7
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +30 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +10 -10
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +29 -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_card.rb +27 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_customer.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_fluid_data.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +91 -16
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information_emv.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +158 -15
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +19 -9
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options_initiator.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_bank_transfer_options.rb +5 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_japan_payment_options.rb +359 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_loan_options.rb +224 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_recurring_options.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_promotion_information.rb +224 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information.rb +226 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_agency.rb +224 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_lodging.rb +1229 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_lodging_room.rb +233 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit.rb +183 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb +988 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_ancillary_information.rb +285 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_ancillary_information_service.rb +224 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_legs.rb +614 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_ticket_issuer.rb +349 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsid_client_reference_information.rb +208 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsid_client_reference_information_partner.rb +249 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsid_merchant_information.rb +199 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsid_order_information.rb +183 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsid_order_information_amount_details.rb +224 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsid_processing_information.rb +183 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsid_processing_information_authorization_options.rb +183 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsid_processing_information_authorization_options_initiator.rb +184 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsid_travel_information.rb +199 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb +34 -9
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +194 -19
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_merchant_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb +7 -7
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_payment_information.rb +13 -4
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_payment_information_card.rb +224 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information.rb +6 -6
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information_emv.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information.rb +23 -14
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_authorization_options.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_travel_information.rb +201 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_merchant_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb +5 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +19 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +54 -4
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb +33 -8
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information_recurring_options.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information_partner.rb +29 -4
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_point_of_sale_information_emv.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_processing_information.rb +4 -4
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +2 -2
- data/lib/cybersource_rest_client/models/refund_capture_request.rb +22 -4
- data/lib/cybersource_rest_client/models/refund_payment_request.rb +22 -4
- data/lib/cybersource_rest_client/models/reporting_v3_report_subscriptions_get200_response_subscriptions.rb +1 -1
- data/lib/cybersource_rest_client/models/risk_v1_address_verifications_post201_response.rb +285 -0
- data/lib/cybersource_rest_client/models/risk_v1_address_verifications_post201_response_address1.rb +224 -0
- data/lib/cybersource_rest_client/models/risk_v1_address_verifications_post201_response_address_verification_information.rb +327 -0
- data/lib/cybersource_rest_client/models/risk_v1_address_verifications_post201_response_address_verification_information_bar_code.rb +209 -0
- data/lib/cybersource_rest_client/models/risk_v1_address_verifications_post201_response_address_verification_information_standard_address.rb +433 -0
- data/lib/cybersource_rest_client/models/risk_v1_authentication_exemptions_post201_response.rb +2 -2
- data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response.rb +3 -3
- data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response_consumer_authentication_information.rb +249 -4
- data/lib/cybersource_rest_client/models/risk_v1_authentication_setups_post201_response.rb +246 -0
- data/lib/cybersource_rest_client/models/risk_v1_authentication_setups_post201_response_consumer_authentication_information.rb +224 -0
- data/lib/cybersource_rest_client/models/risk_v1_authentication_setups_post201_response_error_information.rb +205 -0
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response.rb +3 -3
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response_consumer_authentication_information.rb +386 -7
- data/lib/cybersource_rest_client/models/{riskv1authentications_consumer_authentication_information_ivr.rb → risk_v1_authentications_post201_response_consumer_authentication_information_ivr.rb} +1 -1
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response_order_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post400_response.rb +225 -0
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_ip_address.rb +54 -4
- data/lib/cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response.rb +285 -0
- data/lib/cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response_export_compliance_information.rb +229 -0
- data/lib/cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response_export_compliance_information_watch_list.rb +185 -0
- data/lib/cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response_watch_list_matches.rb +235 -0
- data/lib/cybersource_rest_client/models/risk_v1_update_post201_response.rb +237 -0
- data/lib/cybersource_rest_client/models/riskv1addressverifications_buyer_information.rb +199 -0
- data/lib/cybersource_rest_client/models/riskv1addressverifications_client_reference_information.rb +233 -0
- data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information.rb +203 -0
- data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_bill_to.rb +410 -0
- data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_line_items.rb +342 -0
- data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_ship_to.rb +392 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_acquirer_information.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_order_information_line_items.rb +2 -2
- data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_payment_information.rb +13 -4
- data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_payment_information_fluid_data.rb +268 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb +4 -214
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_order_information_line_items.rb +2 -2
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information.rb +13 -4
- data/lib/cybersource_rest_client/models/riskv1authentications_acquirer_information.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authentications_consumer_authentication_information.rb +4 -333
- data/lib/cybersource_rest_client/models/riskv1authentications_order_information_line_items.rb +2 -2
- data/lib/cybersource_rest_client/models/riskv1authentications_travel_information_legs.rb +2 -2
- data/lib/cybersource_rest_client/models/{riskv1authentications_client_reference_information.rb → riskv1authenticationsetups_client_reference_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information.rb +210 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_card.rb +286 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +325 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_processing_information.rb +224 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_token_information.rb +184 -0
- data/lib/cybersource_rest_client/models/riskv1decisions_buyer_information.rb +2 -2
- data/lib/cybersource_rest_client/models/riskv1decisions_card_verification.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_client_reference_information.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_device_information.rb +1 -26
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information.rb +4 -13
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_bill_to.rb +1 -26
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_line_items.rb +2 -2
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information.rb +4 -13
- data/lib/cybersource_rest_client/models/riskv1decisions_risk_information.rb +4 -13
- data/lib/cybersource_rest_client/models/riskv1decisions_travel_information_legs.rb +2 -2
- data/lib/cybersource_rest_client/models/riskv1decisionsidmarking_risk_information.rb +183 -0
- data/lib/cybersource_rest_client/models/riskv1decisionsidmarking_risk_information_marking_details.rb +247 -0
- data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_device_information.rb +224 -0
- data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_export_compliance_information.rb +205 -0
- data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_export_compliance_information_weights.rb +249 -0
- data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information.rb +203 -0
- data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_bill_to.rb +503 -0
- data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_bill_to_company.rb +199 -0
- data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_line_items.rb +364 -0
- data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_ship_to.rb +249 -0
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_buyer_information.rb +186 -0
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_device_information.rb +224 -0
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information.rb +213 -0
- data/lib/cybersource_rest_client/models/{riskv1decisions_order_information_address.rb → riskv1liststypeentries_order_information_address.rb} +1 -1
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information_bill_to.rb +449 -0
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information_line_items.rb +199 -0
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information_ship_to.rb +325 -0
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_payment_information.rb +193 -0
- data/lib/cybersource_rest_client/models/{riskv1decisions_payment_information_bank.rb → riskv1liststypeentries_payment_information_bank.rb} +1 -1
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_payment_information_card.rb +234 -0
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_risk_information.rb +183 -0
- data/lib/cybersource_rest_client/models/{riskv1decisions_risk_information_marking_details.rb → riskv1liststypeentries_risk_information_marking_details.rb} +29 -44
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_embedded_instrument_identifier.rb +10 -1
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_post200_response.rb +10 -1
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_post200_response_tokenized_card.rb +272 -0
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_post200_response_tokenized_card_card.rb +253 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_application_information.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_buyer_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_client_reference_information.rb +1 -1
- 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_fraud_marking_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_amount_details.rb +2 -2
- 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_payment_information_account_features.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank_account.rb +1 -1
- 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_point_of_sale_information.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options.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 +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information_electronic_verification_results.rb +4 -4
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_client_reference_information.rb +1 -1
- 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_merchant_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information.rb +3 -3
- 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 +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_transaction_summaries.rb +1 -1
- data/lib/cybersource_rest_client/models/validate_export_compliance_request.rb +219 -0
- data/lib/cybersource_rest_client/models/{request.rb → validate_request.rb} +12 -3
- data/lib/cybersource_rest_client/models/verify_customer_address_request.rb +201 -0
- metadata +107 -14
- data/lib/cybersource_rest_client/models/ptsv2credits_point_of_sale_information.rb +0 -365
- data/lib/cybersource_rest_client/models/ptsv2credits_point_of_sale_information_emv.rb +0 -221
|
@@ -14,26 +14,26 @@ require 'date'
|
|
|
14
14
|
|
|
15
15
|
module CyberSource
|
|
16
16
|
# Details for marking the transaction as either positive or negative.
|
|
17
|
-
class
|
|
17
|
+
class Riskv1liststypeentriesRiskInformationMarkingDetails
|
|
18
18
|
# Notes or details that explain the reasons for adding the transaction to either the positive or negative list.
|
|
19
19
|
attr_accessor :notes
|
|
20
20
|
|
|
21
21
|
# Reason for adding the transaction to the negative list. This field can contain one of the following values: - fraud_chargeback: You have received a fraud-related chargeback for the transaction. - non_fraud_chargeback: You have received a non-fraudulent chargeback for the transaction. - suspected: You believe that you will probably receive a chargeback for the transaction. - creditback: You issued a refund to the customer to avoid a chargeback for the transaction.
|
|
22
22
|
attr_accessor :reason
|
|
23
23
|
|
|
24
|
-
#
|
|
25
|
-
attr_accessor :
|
|
24
|
+
# Name of the customer’s record entered in the list. For the positive list, it is required if action_ code=add_positive. If absent from the request, ics_risk_update creates the value for this field by concatenating the customer’s first and last names. For the negative and the review lists, record_name, customer_firstname, and customer_lastname are optional.
|
|
25
|
+
attr_accessor :record_name
|
|
26
26
|
|
|
27
|
-
# Indicates whether to add
|
|
28
|
-
attr_accessor :
|
|
27
|
+
# Indicates whether to add to or remove a customer’s identity from the negative or positive list. This field can contain one of the following values: - add: Add information to the list. - convert: moves the data. - delete: deletes the data from the list.
|
|
28
|
+
attr_accessor :action
|
|
29
29
|
|
|
30
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
31
|
def self.attribute_map
|
|
32
32
|
{
|
|
33
33
|
:'notes' => :'notes',
|
|
34
34
|
:'reason' => :'reason',
|
|
35
|
-
:'
|
|
36
|
-
:'
|
|
35
|
+
:'record_name' => :'recordName',
|
|
36
|
+
:'action' => :'action'
|
|
37
37
|
}
|
|
38
38
|
end
|
|
39
39
|
|
|
@@ -42,8 +42,8 @@ module CyberSource
|
|
|
42
42
|
{
|
|
43
43
|
:'notes' => :'String',
|
|
44
44
|
:'reason' => :'String',
|
|
45
|
-
:'
|
|
46
|
-
:'
|
|
45
|
+
:'record_name' => :'String',
|
|
46
|
+
:'action' => :'String'
|
|
47
47
|
}
|
|
48
48
|
end
|
|
49
49
|
|
|
@@ -63,12 +63,12 @@ module CyberSource
|
|
|
63
63
|
self.reason = attributes[:'reason']
|
|
64
64
|
end
|
|
65
65
|
|
|
66
|
-
if attributes.has_key?(:'
|
|
67
|
-
self.
|
|
66
|
+
if attributes.has_key?(:'recordName')
|
|
67
|
+
self.record_name = attributes[:'recordName']
|
|
68
68
|
end
|
|
69
69
|
|
|
70
|
-
if attributes.has_key?(:'
|
|
71
|
-
self.
|
|
70
|
+
if attributes.has_key?(:'action')
|
|
71
|
+
self.action = attributes[:'action']
|
|
72
72
|
end
|
|
73
73
|
end
|
|
74
74
|
|
|
@@ -76,20 +76,16 @@ module CyberSource
|
|
|
76
76
|
# @return Array for valid properties with the reasons
|
|
77
77
|
def list_invalid_properties
|
|
78
78
|
invalid_properties = Array.new
|
|
79
|
-
if !@notes.nil? && @notes.to_s.length >
|
|
80
|
-
invalid_properties.push('invalid value for "notes", the character length must be smaller than or equal to
|
|
79
|
+
if !@notes.nil? && @notes.to_s.length > 120
|
|
80
|
+
invalid_properties.push('invalid value for "notes", the character length must be smaller than or equal to 120.')
|
|
81
81
|
end
|
|
82
82
|
|
|
83
83
|
if !@reason.nil? && @reason.to_s.length > 25
|
|
84
84
|
invalid_properties.push('invalid value for "reason", the character length must be smaller than or equal to 25.')
|
|
85
85
|
end
|
|
86
86
|
|
|
87
|
-
if !@
|
|
88
|
-
invalid_properties.push('invalid value for "
|
|
89
|
-
end
|
|
90
|
-
|
|
91
|
-
if !@report_code.nil? && @report_code.to_s.length > 2
|
|
92
|
-
invalid_properties.push('invalid value for "report_code", the character length must be smaller than or equal to 2.')
|
|
87
|
+
if !@record_name.nil? && @record_name.to_s.length > 255
|
|
88
|
+
invalid_properties.push('invalid value for "record_name", the character length must be smaller than or equal to 255.')
|
|
93
89
|
end
|
|
94
90
|
|
|
95
91
|
invalid_properties
|
|
@@ -98,18 +94,17 @@ module CyberSource
|
|
|
98
94
|
# Check to see if the all the properties in the model are valid
|
|
99
95
|
# @return true if the model is valid
|
|
100
96
|
def valid?
|
|
101
|
-
return false if !@notes.nil? && @notes.to_s.length >
|
|
97
|
+
return false if !@notes.nil? && @notes.to_s.length > 120
|
|
102
98
|
return false if !@reason.nil? && @reason.to_s.length > 25
|
|
103
|
-
return false if !@
|
|
104
|
-
return false if !@report_code.nil? && @report_code.to_s.length > 2
|
|
99
|
+
return false if !@record_name.nil? && @record_name.to_s.length > 255
|
|
105
100
|
true
|
|
106
101
|
end
|
|
107
102
|
|
|
108
103
|
# Custom attribute writer method with validation
|
|
109
104
|
# @param [Object] notes Value to be assigned
|
|
110
105
|
def notes=(notes)
|
|
111
|
-
if !notes.nil? && notes.to_s.length >
|
|
112
|
-
fail ArgumentError, 'invalid value for "notes", the character length must be smaller than or equal to
|
|
106
|
+
if !notes.nil? && notes.to_s.length > 120
|
|
107
|
+
fail ArgumentError, 'invalid value for "notes", the character length must be smaller than or equal to 120.'
|
|
113
108
|
end
|
|
114
109
|
|
|
115
110
|
@notes = notes
|
|
@@ -126,23 +121,13 @@ module CyberSource
|
|
|
126
121
|
end
|
|
127
122
|
|
|
128
123
|
# Custom attribute writer method with validation
|
|
129
|
-
# @param [Object]
|
|
130
|
-
def
|
|
131
|
-
if !
|
|
132
|
-
fail ArgumentError, 'invalid value for "
|
|
133
|
-
end
|
|
134
|
-
|
|
135
|
-
@fields_included = fields_included
|
|
136
|
-
end
|
|
137
|
-
|
|
138
|
-
# Custom attribute writer method with validation
|
|
139
|
-
# @param [Object] report_code Value to be assigned
|
|
140
|
-
def report_code=(report_code)
|
|
141
|
-
if !report_code.nil? && report_code.to_s.length > 2
|
|
142
|
-
fail ArgumentError, 'invalid value for "report_code", the character length must be smaller than or equal to 2.'
|
|
124
|
+
# @param [Object] record_name Value to be assigned
|
|
125
|
+
def record_name=(record_name)
|
|
126
|
+
if !record_name.nil? && record_name.to_s.length > 255
|
|
127
|
+
fail ArgumentError, 'invalid value for "record_name", the character length must be smaller than or equal to 255.'
|
|
143
128
|
end
|
|
144
129
|
|
|
145
|
-
@
|
|
130
|
+
@record_name = record_name
|
|
146
131
|
end
|
|
147
132
|
|
|
148
133
|
# Checks equality by comparing each attribute.
|
|
@@ -152,8 +137,8 @@ module CyberSource
|
|
|
152
137
|
self.class == o.class &&
|
|
153
138
|
notes == o.notes &&
|
|
154
139
|
reason == o.reason &&
|
|
155
|
-
|
|
156
|
-
|
|
140
|
+
record_name == o.record_name &&
|
|
141
|
+
action == o.action
|
|
157
142
|
end
|
|
158
143
|
|
|
159
144
|
# @see the `==` method
|
|
@@ -165,7 +150,7 @@ module CyberSource
|
|
|
165
150
|
# Calculates hash code according to all attributes.
|
|
166
151
|
# @return [Fixnum] Hash code
|
|
167
152
|
def hash
|
|
168
|
-
[notes, reason,
|
|
153
|
+
[notes, reason, record_name, action].hash
|
|
169
154
|
end
|
|
170
155
|
|
|
171
156
|
# Builds the object from hash
|
|
@@ -27,6 +27,8 @@ module CyberSource
|
|
|
27
27
|
|
|
28
28
|
attr_accessor :card
|
|
29
29
|
|
|
30
|
+
attr_accessor :tokenized_card
|
|
31
|
+
|
|
30
32
|
attr_accessor :bank_account
|
|
31
33
|
|
|
32
34
|
attr_accessor :issuer
|
|
@@ -43,6 +45,7 @@ module CyberSource
|
|
|
43
45
|
:'state' => :'state',
|
|
44
46
|
:'id' => :'id',
|
|
45
47
|
:'card' => :'card',
|
|
48
|
+
:'tokenized_card' => :'tokenizedCard',
|
|
46
49
|
:'bank_account' => :'bankAccount',
|
|
47
50
|
:'issuer' => :'issuer',
|
|
48
51
|
:'processing_information' => :'processingInformation',
|
|
@@ -58,6 +61,7 @@ module CyberSource
|
|
|
58
61
|
:'state' => :'String',
|
|
59
62
|
:'id' => :'String',
|
|
60
63
|
:'card' => :'TmsV1InstrumentIdentifiersPost200ResponseCard',
|
|
64
|
+
:'tokenized_card' => :'TmsV1InstrumentIdentifiersPost200ResponseTokenizedCard',
|
|
61
65
|
:'bank_account' => :'Tmsv1instrumentidentifiersBankAccount',
|
|
62
66
|
:'issuer' => :'TmsV1InstrumentIdentifiersPost200ResponseIssuer',
|
|
63
67
|
:'processing_information' => :'TmsV1InstrumentIdentifiersPost200ResponseProcessingInformation',
|
|
@@ -93,6 +97,10 @@ module CyberSource
|
|
|
93
97
|
self.card = attributes[:'card']
|
|
94
98
|
end
|
|
95
99
|
|
|
100
|
+
if attributes.has_key?(:'tokenizedCard')
|
|
101
|
+
self.tokenized_card = attributes[:'tokenizedCard']
|
|
102
|
+
end
|
|
103
|
+
|
|
96
104
|
if attributes.has_key?(:'bankAccount')
|
|
97
105
|
self.bank_account = attributes[:'bankAccount']
|
|
98
106
|
end
|
|
@@ -157,6 +165,7 @@ module CyberSource
|
|
|
157
165
|
state == o.state &&
|
|
158
166
|
id == o.id &&
|
|
159
167
|
card == o.card &&
|
|
168
|
+
tokenized_card == o.tokenized_card &&
|
|
160
169
|
bank_account == o.bank_account &&
|
|
161
170
|
issuer == o.issuer &&
|
|
162
171
|
processing_information == o.processing_information &&
|
|
@@ -172,7 +181,7 @@ module CyberSource
|
|
|
172
181
|
# Calculates hash code according to all attributes.
|
|
173
182
|
# @return [Fixnum] Hash code
|
|
174
183
|
def hash
|
|
175
|
-
[_links, object, state, id, card, bank_account, issuer, processing_information, metadata].hash
|
|
184
|
+
[_links, object, state, id, card, tokenized_card, bank_account, issuer, processing_information, metadata].hash
|
|
176
185
|
end
|
|
177
186
|
|
|
178
187
|
# Builds the object from hash
|
|
@@ -27,6 +27,8 @@ module CyberSource
|
|
|
27
27
|
|
|
28
28
|
attr_accessor :card
|
|
29
29
|
|
|
30
|
+
attr_accessor :tokenized_card
|
|
31
|
+
|
|
30
32
|
attr_accessor :issuer
|
|
31
33
|
|
|
32
34
|
attr_accessor :bank_account
|
|
@@ -43,6 +45,7 @@ module CyberSource
|
|
|
43
45
|
:'object' => :'object',
|
|
44
46
|
:'state' => :'state',
|
|
45
47
|
:'card' => :'card',
|
|
48
|
+
:'tokenized_card' => :'tokenizedCard',
|
|
46
49
|
:'issuer' => :'issuer',
|
|
47
50
|
:'bank_account' => :'bankAccount',
|
|
48
51
|
:'processing_information' => :'processingInformation',
|
|
@@ -58,6 +61,7 @@ module CyberSource
|
|
|
58
61
|
:'object' => :'String',
|
|
59
62
|
:'state' => :'String',
|
|
60
63
|
:'card' => :'TmsV1InstrumentIdentifiersPost200ResponseCard',
|
|
64
|
+
:'tokenized_card' => :'TmsV1InstrumentIdentifiersPost200ResponseTokenizedCard',
|
|
61
65
|
:'issuer' => :'TmsV1InstrumentIdentifiersPost200ResponseIssuer',
|
|
62
66
|
:'bank_account' => :'Tmsv1instrumentidentifiersBankAccount',
|
|
63
67
|
:'processing_information' => :'TmsV1InstrumentIdentifiersPost200ResponseProcessingInformation',
|
|
@@ -93,6 +97,10 @@ module CyberSource
|
|
|
93
97
|
self.card = attributes[:'card']
|
|
94
98
|
end
|
|
95
99
|
|
|
100
|
+
if attributes.has_key?(:'tokenizedCard')
|
|
101
|
+
self.tokenized_card = attributes[:'tokenizedCard']
|
|
102
|
+
end
|
|
103
|
+
|
|
96
104
|
if attributes.has_key?(:'issuer')
|
|
97
105
|
self.issuer = attributes[:'issuer']
|
|
98
106
|
end
|
|
@@ -133,6 +141,7 @@ module CyberSource
|
|
|
133
141
|
object == o.object &&
|
|
134
142
|
state == o.state &&
|
|
135
143
|
card == o.card &&
|
|
144
|
+
tokenized_card == o.tokenized_card &&
|
|
136
145
|
issuer == o.issuer &&
|
|
137
146
|
bank_account == o.bank_account &&
|
|
138
147
|
processing_information == o.processing_information &&
|
|
@@ -148,7 +157,7 @@ module CyberSource
|
|
|
148
157
|
# Calculates hash code according to all attributes.
|
|
149
158
|
# @return [Fixnum] Hash code
|
|
150
159
|
def hash
|
|
151
|
-
[_links, id, object, state, card, issuer, bank_account, processing_information, metadata].hash
|
|
160
|
+
[_links, id, object, state, card, tokenized_card, issuer, bank_account, processing_information, metadata].hash
|
|
152
161
|
end
|
|
153
162
|
|
|
154
163
|
# Builds the object from hash
|
|
@@ -0,0 +1,272 @@
|
|
|
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
|
+
# The Network Token associated with the Instrument Identifier (PAN)
|
|
17
|
+
class TmsV1InstrumentIdentifiersPost200ResponseTokenizedCard
|
|
18
|
+
# Issuer state for the Network Token Valid values: - ACTIVE - SUSPENDED - DELETED
|
|
19
|
+
attr_accessor :state
|
|
20
|
+
|
|
21
|
+
# The Network Token expiration month, automatically updated
|
|
22
|
+
attr_accessor :expiration_month
|
|
23
|
+
|
|
24
|
+
# The Network Token expiration year, automatically updated
|
|
25
|
+
attr_accessor :expiration_year
|
|
26
|
+
|
|
27
|
+
# The Network Token brand Valid values: - visa - mastercard
|
|
28
|
+
attr_accessor :type
|
|
29
|
+
|
|
30
|
+
attr_accessor :card
|
|
31
|
+
|
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
33
|
+
def self.attribute_map
|
|
34
|
+
{
|
|
35
|
+
:'state' => :'state',
|
|
36
|
+
:'expiration_month' => :'expirationMonth',
|
|
37
|
+
:'expiration_year' => :'expirationYear',
|
|
38
|
+
:'type' => :'type',
|
|
39
|
+
:'card' => :'card'
|
|
40
|
+
}
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Attribute type mapping.
|
|
44
|
+
def self.swagger_types
|
|
45
|
+
{
|
|
46
|
+
:'state' => :'String',
|
|
47
|
+
:'expiration_month' => :'String',
|
|
48
|
+
:'expiration_year' => :'String',
|
|
49
|
+
:'type' => :'String',
|
|
50
|
+
:'card' => :'TmsV1InstrumentIdentifiersPost200ResponseTokenizedCardCard'
|
|
51
|
+
}
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Initializes the object
|
|
55
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
56
|
+
def initialize(attributes = {})
|
|
57
|
+
return unless attributes.is_a?(Hash)
|
|
58
|
+
|
|
59
|
+
# convert string to symbol for hash key
|
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
61
|
+
|
|
62
|
+
if attributes.has_key?(:'state')
|
|
63
|
+
self.state = attributes[:'state']
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
if attributes.has_key?(:'expirationMonth')
|
|
67
|
+
self.expiration_month = attributes[:'expirationMonth']
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
if attributes.has_key?(:'expirationYear')
|
|
71
|
+
self.expiration_year = attributes[:'expirationYear']
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
if attributes.has_key?(:'type')
|
|
75
|
+
self.type = attributes[:'type']
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
if attributes.has_key?(:'card')
|
|
79
|
+
self.card = attributes[:'card']
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
84
|
+
# @return Array for valid properties with the reasons
|
|
85
|
+
def list_invalid_properties
|
|
86
|
+
invalid_properties = Array.new
|
|
87
|
+
if !@expiration_month.nil? && @expiration_month.to_s.length > 2
|
|
88
|
+
invalid_properties.push('invalid value for "expiration_month", the character length must be smaller than or equal to 2.')
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
if !@expiration_month.nil? && @expiration_month.to_s.length < 2
|
|
92
|
+
invalid_properties.push('invalid value for "expiration_month", the character length must be great than or equal to 2.')
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
if !@expiration_year.nil? && @expiration_year.to_s.length > 4
|
|
96
|
+
invalid_properties.push('invalid value for "expiration_year", the character length must be smaller than or equal to 4.')
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
if !@expiration_year.nil? && @expiration_year.to_s.length < 4
|
|
100
|
+
invalid_properties.push('invalid value for "expiration_year", the character length must be great than or equal to 4.')
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
invalid_properties
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Check to see if the all the properties in the model are valid
|
|
107
|
+
# @return true if the model is valid
|
|
108
|
+
def valid?
|
|
109
|
+
return false if !@expiration_month.nil? && @expiration_month.to_s.length > 2
|
|
110
|
+
return false if !@expiration_month.nil? && @expiration_month.to_s.length < 2
|
|
111
|
+
return false if !@expiration_year.nil? && @expiration_year.to_s.length > 4
|
|
112
|
+
return false if !@expiration_year.nil? && @expiration_year.to_s.length < 4
|
|
113
|
+
true
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Custom attribute writer method with validation
|
|
117
|
+
# @param [Object] expiration_month Value to be assigned
|
|
118
|
+
def expiration_month=(expiration_month)
|
|
119
|
+
if !expiration_month.nil? && expiration_month.to_s.length > 2
|
|
120
|
+
fail ArgumentError, 'invalid value for "expiration_month", the character length must be smaller than or equal to 2.'
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
if !expiration_month.nil? && expiration_month.to_s.length < 2
|
|
124
|
+
fail ArgumentError, 'invalid value for "expiration_month", the character length must be great than or equal to 2.'
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
@expiration_month = expiration_month
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# Custom attribute writer method with validation
|
|
131
|
+
# @param [Object] expiration_year Value to be assigned
|
|
132
|
+
def expiration_year=(expiration_year)
|
|
133
|
+
if !expiration_year.nil? && expiration_year.to_s.length > 4
|
|
134
|
+
fail ArgumentError, 'invalid value for "expiration_year", the character length must be smaller than or equal to 4.'
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
if !expiration_year.nil? && expiration_year.to_s.length < 4
|
|
138
|
+
fail ArgumentError, 'invalid value for "expiration_year", the character length must be great than or equal to 4.'
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
@expiration_year = expiration_year
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Checks equality by comparing each attribute.
|
|
145
|
+
# @param [Object] Object to be compared
|
|
146
|
+
def ==(o)
|
|
147
|
+
return true if self.equal?(o)
|
|
148
|
+
self.class == o.class &&
|
|
149
|
+
state == o.state &&
|
|
150
|
+
expiration_month == o.expiration_month &&
|
|
151
|
+
expiration_year == o.expiration_year &&
|
|
152
|
+
type == o.type &&
|
|
153
|
+
card == o.card
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# @see the `==` method
|
|
157
|
+
# @param [Object] Object to be compared
|
|
158
|
+
def eql?(o)
|
|
159
|
+
self == o
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
# Calculates hash code according to all attributes.
|
|
163
|
+
# @return [Fixnum] Hash code
|
|
164
|
+
def hash
|
|
165
|
+
[state, expiration_month, expiration_year, type, card].hash
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# Builds the object from hash
|
|
169
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
170
|
+
# @return [Object] Returns the model itself
|
|
171
|
+
def build_from_hash(attributes)
|
|
172
|
+
return nil unless attributes.is_a?(Hash)
|
|
173
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
174
|
+
if type =~ /\AArray<(.*)>/i
|
|
175
|
+
# check to ensure the input is an array given that the the attribute
|
|
176
|
+
# is documented as an array but the input is not
|
|
177
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
178
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
179
|
+
end
|
|
180
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
181
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
182
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
self
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# Deserializes the data based on type
|
|
189
|
+
# @param string type Data type
|
|
190
|
+
# @param string value Value to be deserialized
|
|
191
|
+
# @return [Object] Deserialized data
|
|
192
|
+
def _deserialize(type, value)
|
|
193
|
+
case type.to_sym
|
|
194
|
+
when :DateTime
|
|
195
|
+
DateTime.parse(value)
|
|
196
|
+
when :Date
|
|
197
|
+
Date.parse(value)
|
|
198
|
+
when :String
|
|
199
|
+
value.to_s
|
|
200
|
+
when :Integer
|
|
201
|
+
value.to_i
|
|
202
|
+
when :Float
|
|
203
|
+
value.to_f
|
|
204
|
+
when :BOOLEAN
|
|
205
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
206
|
+
true
|
|
207
|
+
else
|
|
208
|
+
false
|
|
209
|
+
end
|
|
210
|
+
when :Object
|
|
211
|
+
# generic object (usually a Hash), return directly
|
|
212
|
+
value
|
|
213
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
214
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
215
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
216
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
217
|
+
k_type = Regexp.last_match[:k_type]
|
|
218
|
+
v_type = Regexp.last_match[:v_type]
|
|
219
|
+
{}.tap do |hash|
|
|
220
|
+
value.each do |k, v|
|
|
221
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
222
|
+
end
|
|
223
|
+
end
|
|
224
|
+
else # model
|
|
225
|
+
temp_model = CyberSource.const_get(type).new
|
|
226
|
+
temp_model.build_from_hash(value)
|
|
227
|
+
end
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
# Returns the string representation of the object
|
|
231
|
+
# @return [String] String presentation of the object
|
|
232
|
+
def to_s
|
|
233
|
+
to_hash.to_s
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
237
|
+
# @return [Hash] Returns the object in the form of hash
|
|
238
|
+
def to_body
|
|
239
|
+
to_hash
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
# Returns the object in the form of hash
|
|
243
|
+
# @return [Hash] Returns the object in the form of hash
|
|
244
|
+
def to_hash
|
|
245
|
+
hash = {}
|
|
246
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
247
|
+
value = self.send(attr)
|
|
248
|
+
next if value.nil?
|
|
249
|
+
hash[param] = _to_hash(value)
|
|
250
|
+
end
|
|
251
|
+
hash
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
# Outputs non-array value in the form of hash
|
|
255
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
256
|
+
# @param [Object] value Any valid value
|
|
257
|
+
# @return [Hash] Returns the value in the form of hash
|
|
258
|
+
def _to_hash(value)
|
|
259
|
+
if value.is_a?(Array)
|
|
260
|
+
value.compact.map { |v| _to_hash(v) }
|
|
261
|
+
elsif value.is_a?(Hash)
|
|
262
|
+
{}.tap do |hash|
|
|
263
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
264
|
+
end
|
|
265
|
+
elsif value.respond_to? :to_hash
|
|
266
|
+
value.to_hash
|
|
267
|
+
else
|
|
268
|
+
value
|
|
269
|
+
end
|
|
270
|
+
end
|
|
271
|
+
end
|
|
272
|
+
end
|