cybersource_rest_client 0.0.19 → 0.0.21
Sign up to get free protection for your applications and to get access to all the features.
- 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,19 +14,19 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class Ptsv2paymentsPointOfSaleInformationEmv
|
17
|
-
# EMV data that is transmitted from the chip card to the issuer, and from the issuer to the chip card. The EMV data is in the tag-length-value format and includes chip card tags, terminal tags, and transaction detail tags. For details, see the `emv_request_combined_tags` field description in [Card-Present Processing Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/Retail_SCMP_API/html/
|
17
|
+
# EMV data that is transmitted from the chip card to the issuer, and from the issuer to the chip card. The EMV data is in the tag-length-value format and includes chip card tags, terminal tags, and transaction detail tags. For details, see the `emv_request_combined_tags` field description in [Card-Present Processing Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/Retail_SCMP_API/html/) **Note** The information about EMV applies to credit card processing and PIN debit processing. All other information in this guide applies only to credit card processing. PIN debit processing is available only on FDC Nashville Global. **Note** For information about the individual tags, see the “Application Specification” section in the EMV 4.3 Specifications: http://emvco.com **Important** The following tags contain sensitive information and **must not** be included in this field: - **56**: Track 1 equivalent data - **57**: Track 2 equivalent data - **5A**: Application PAN - **5F20**: Cardholder name - **5F24**: Application expiration date (This sensitivity has been relaxed for cmcic, amexdirect, fdiglobal, opdfde, and six) - **99**: Transaction PIN - **9F0B**: Cardholder name (extended) - **9F1F**: Track 1 discretionary data - **9F20**: Track 2 discretionary data For captures, this field is required for contact EMV transactions. Otherwise, it is optional. For credits, this field is required for contact EMV stand-alone credits and contactless EMV stand-alone credits. Otherwise, it is optional. **Important** For contact EMV captures, contact EMV stand-alone credits, and contactless EMV stand-alone credits, you must include the following tags in this field. For all other types of EMV transactions, the following tags are optional. - **95**: Terminal verification results - **9F10**: Issuer application data - **9F26**: Application cryptogram
|
18
18
|
attr_accessor :tags
|
19
19
|
|
20
20
|
# Method that was used to verify the cardholder's identity. Possible values: - **0**: No verification - **1**: Signature This field is supported only on **American Express Direct**.
|
21
21
|
attr_accessor :cardholder_verification_method_used
|
22
22
|
|
23
|
-
# Number assigned to a specific card when two or more cards are associated with the same primary account number. This value enables issuers to distinguish among multiple cards that are linked to the same account. This value can also act as a tracking tool when reissuing cards. When this value is available, it is provided by the chip reader. When the chip reader does not provide this value, do not include this field in your request. For details, see `emv_request_card_sequence_number` field description in the [Card-Present Processing Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/Retail_SCMP_API/html/
|
23
|
+
# Number assigned to a specific card when two or more cards are associated with the same primary account number. This value enables issuers to distinguish among multiple cards that are linked to the same account. This value can also act as a tracking tool when reissuing cards. When this value is available, it is provided by the chip reader. When the chip reader does not provide this value, do not include this field in your request. For details, see `emv_request_card_sequence_number` field description in the [Card-Present Processing Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/Retail_SCMP_API/html/)
|
24
24
|
attr_accessor :card_sequence_number
|
25
25
|
|
26
26
|
# Indicates whether a fallback method was used to enter credit card information into the POS terminal. When a technical problem prevents a successful exchange of information between a chip card and a chip-capable terminal: 1. Swipe the card or key the credit card information into the POS terminal. 2. Use the pointOfSaleInformation.entryMode field to indicate whether the information was swiped or keyed. Possible values: - **true** - **false** (default) This field is supported only on **Chase Paymentech Solutions** and **GPN**.
|
27
27
|
attr_accessor :fallback
|
28
28
|
|
29
|
-
# Reason for the EMV fallback transaction. An EMV fallback transaction occurs when an EMV transaction fails for one of these reasons: - Technical failure: the EMV terminal or EMV card cannot read and process chip data. - Empty candidate list failure: the EMV terminal does not have any applications in common with the EMV card. EMV terminals are coded to determine whether the terminal and EMV card have any applications in common. EMV terminals provide this information to you. Possible values: - **1**: Transaction was initiated with information from a magnetic stripe, and the previous transaction at the EMV terminal either used information from a successful chip read or it was not a chip transaction. - **2**: Transaction was initiated with information from a magnetic stripe, and the previous transaction at the EMV terminal was an EMV fallback transaction because the attempted chip read was unsuccessful. This field is supported only on **GPN**. **NOTE**: This field is required when an EMV transaction fails for a technical reason. Do not include this field when the EMV terminal does not have any applications in common with the EMV card. For details, see the `emv_request_fallback_condition` field description in the [Card-Present Processing Using the SCMP API Guide](https://apps.cybersource.com/library/documentation/dev_guides/Retail_SCMP_API/html/
|
29
|
+
# Reason for the EMV fallback transaction. An EMV fallback transaction occurs when an EMV transaction fails for one of these reasons: - Technical failure: the EMV terminal or EMV card cannot read and process chip data. - Empty candidate list failure: the EMV terminal does not have any applications in common with the EMV card. EMV terminals are coded to determine whether the terminal and EMV card have any applications in common. EMV terminals provide this information to you. Possible values: - **1**: Transaction was initiated with information from a magnetic stripe, and the previous transaction at the EMV terminal either used information from a successful chip read or it was not a chip transaction. - **2**: Transaction was initiated with information from a magnetic stripe, and the previous transaction at the EMV terminal was an EMV fallback transaction because the attempted chip read was unsuccessful. This field is supported only on **GPN**. **NOTE**: This field is required when an EMV transaction fails for a technical reason. Do not include this field when the EMV terminal does not have any applications in common with the EMV card. For details, see the `emv_request_fallback_condition` field description in the [Card-Present Processing Using the SCMP API Guide](https://apps.cybersource.com/library/documentation/dev_guides/Retail_SCMP_API/html/)
|
30
30
|
attr_accessor :fallback_condition
|
31
31
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -23,28 +23,28 @@ module CyberSource
|
|
23
23
|
# Payouts transaction type. Required for OCT transactions. This field is a pass-through, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. **Note** When the request includes this field, this value overrides the information in your CyberSource account. For valid values, see the `invoiceHeader_businessApplicationID` field description in [Payouts Using the Simple Order API.](http://apps.cybersource.com/library/documentation/dev_guides/payouts_SO/Payouts_SO_API.pdf)
|
24
24
|
attr_accessor :business_application_id
|
25
25
|
|
26
|
-
# Type of transaction. Some payment card companies use this information when determining discount rates. #### Ingenico ePayments Ingenico ePayments was previously called _Global Collect_. When you omit this field for Ingenico ePayments, the processor uses the default transaction type they have on file for you instead of the default value listed in \"Commerce Indicators\" section of [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/
|
26
|
+
# Type of transaction. Some payment card companies use this information when determining discount rates. #### Ingenico ePayments Ingenico ePayments was previously called _Global Collect_. When you omit this field for Ingenico ePayments, the processor uses the default transaction type they have on file for you instead of the default value listed in \"Commerce Indicators\" section of [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) #### Payer Authentication Transactions For the possible values and requirements, see \"Payer Authentication\" in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) #### Payouts OCT (Original Credit Transaction) Value for an OCT transaction: - `internet` For details, see the `e_commerce_indicator` field description in [Payouts Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/payouts_SCMP/html/) #### Other Types of Transactions For details, see \"Commerce Indicators\" in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)
|
27
27
|
attr_accessor :commerce_indicator
|
28
28
|
|
29
|
-
# Type of digital payment solution for the transaction. Possible Values: - `visacheckout`: Visa Checkout. This value is required for Visa Checkout transactions. For details, see `payment_solution` field description in [Visa Checkout Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/VCO_SCMP_API/html/
|
29
|
+
# Type of digital payment solution for the transaction. Possible Values: - `visacheckout`: Visa Checkout. This value is required for Visa Checkout transactions. For details, see `payment_solution` field description in [Visa Checkout Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/VCO_SCMP_API/html/) - `001`: Apple Pay. - `004`: Cybersource In-App Solution. - `005`: Masterpass. This value is required for Masterpass transactions on OmniPay Direct. For details, see \"Masterpass\" in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) - `006`: Android Pay. - `007`: Chase Pay. - `008`: Samsung Pay. - `012`: Google Pay.
|
30
30
|
attr_accessor :payment_solution
|
31
31
|
|
32
32
|
# Please check with Cybersource customer support to see if your merchant account is configured correctly so you can include this field in your request. * For Payouts: max length for FDCCompass is String (22).
|
33
33
|
attr_accessor :reconciliation_id
|
34
34
|
|
35
|
-
# Value that links the current authorization request to the original authorization request. Set this value to the ID that was returned in the reply message from the original authorization request. This value is used for: - Partial authorizations - Split shipments For details, see `link_to_request` field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/
|
35
|
+
# Value that links the current authorization request to the original authorization request. Set this value to the ID that was returned in the reply message from the original authorization request. This value is used for: - Partial authorizations - Split shipments For details, see `link_to_request` field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)
|
36
36
|
attr_accessor :link_id
|
37
37
|
|
38
38
|
# Set this field to 3 to indicate that the request includes Level III data.
|
39
39
|
attr_accessor :purchase_level
|
40
40
|
|
41
|
-
# Attribute that lets you define custom grouping for your processor reports. This field is supported only for **Worldpay VAP**. For details, see `report_group` field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/
|
41
|
+
# Attribute that lets you define custom grouping for your processor reports. This field is supported only for **Worldpay VAP**. For details, see `report_group` field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)
|
42
42
|
attr_accessor :report_group
|
43
43
|
|
44
|
-
# Identifier for the **Visa Checkout** order. Visa Checkout provides a unique order ID for every transaction in the Visa Checkout **callID** field. For details, see the `vc_order_id` field description in [Visa Checkout Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/VCO_SCMP_API/html/
|
44
|
+
# Identifier for the **Visa Checkout** order. Visa Checkout provides a unique order ID for every transaction in the Visa Checkout **callID** field. For details, see the `vc_order_id` field description in [Visa Checkout Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/VCO_SCMP_API/html/)
|
45
45
|
attr_accessor :visa_checkout_id
|
46
46
|
|
47
|
-
# Flag that indicates
|
47
|
+
# Flag that indicates that the transaction includes airline data or restaurant data. This field must be set to `airline` in order for airline data to be sent to the processor. For example, if this field is not set to airline or is not included in the request, CyberSource does not send airline data to the processor. You must set this field to `restaurant` in order for restaurant data to be sent to the processor. When this field is not set to restaurant or is not included in the request, CyberSource does not send restaurant data to the processor. Possible Values: - `airline` - `restaurant` - `lodging` - `auto_rental` - `transit` - `healthcare_medical` - `healthcare_transit`
|
48
48
|
attr_accessor :industry_data_type
|
49
49
|
|
50
50
|
attr_accessor :authorization_options
|
@@ -59,6 +59,25 @@ module CyberSource
|
|
59
59
|
|
60
60
|
attr_accessor :electronic_benefits_transfer
|
61
61
|
|
62
|
+
attr_accessor :loan_options
|
63
|
+
|
64
|
+
# This field carries the wallet type in authorization requests and credit requests. Possible value are: - `101`: Masterpass remote payment. The customer created the wallet by manually interacting with a customer-controlled device such as a computer, tablet, or phone. This value is supported only for Masterpass transactions on Chase Paymentech Solutions and CyberSource through VisaNet. - `102`: Masterpass remote near field communication (NFC) payment. The customer created the wallet by tapping a PayPass card or customer-controlled device at a contactless card reader. This value is supported only for card-present Masterpass transactions on CyberSource through VisaNet. - `103`: Masterpass Apple Pay payment. The payment was made with a combination of Masterpass and Apple Pay. This value is supported only for Masterpass Apple Pay transactions on CyberSource through VisaNet. - `216`: Masterpass Google Pay payment. The payment was made with a combination of Masterpass and Google Pay. This value is supported only for Masterpass Google Pay transactions on CyberSource through VisaNet. - `217`: Masterpass Samsung Pay payment. The payment was made with a combination of Masterpass and Samsung Pay. This value is supported only for Masterpass Samsung Pay transactions on CyberSource through VisaNet. - `SDW`: Staged digital wallet. An issuer or operator created the wallet. This value is supported only for Masterpass transactions on Chase Paymentech Solutions. - `VCIND`: Visa Checkout payment. This value is supported only on CyberSource through VisaNet, FDC Compass, FDC Nashville Global, FDI Australia, and TSYS Acquiring Solutions. See Getting Started with Visa Checkout. For Visa Checkout transactions, the way CyberSource processes the value for this field depends on the processor. See the Visa Checkout section below. For all other values, this field is a passthrough; therefore, CyberSource does not verify the value or modify it in any way before sending it to the processor. Masterpass (101, 102, 103, 216, and 217): The Masterpass platform generates the wallet type value and passes it to you along with the customer’s checkout information. Visa Checkout: This field is optional for Visa Checkout authorizations on FDI Australia. For all other processors, this field is required for Visa Checkout authorizations. For Visa Checkout transactions on the following processors, CyberSource sends the value that the processor expects for this field:FDC Compass,FDC Nashville Global,FDI Australia,TSYS Acquiring Solutions For all other processors, this field is a passthrough; therefore, CyberSource does not verify the value or modify it in any way before sending it to the processor. For incremental authorizations, this field is supported only for Mastercard and the supported values are 101 and 102. Payment card companies can introduce new values without notice. Your order management system should be able to process new values without problems. CyberSource through VisaNet When the value for this field is 101, 102, 103, 216, or 217, it corresponds to the following data in the TC 33 capture file5: Record: CP01 TCR6, Position: 88-90, Field: Mastercard Wallet Identifier. When the value for this field is VCIND, it corresponds to the following data in the TC 33 capture file5: Record: CP01 TCR8, Position: 72-76, Field: Agent Unique ID.
|
65
|
+
attr_accessor :wallet_type
|
66
|
+
|
67
|
+
# Supplementary domestic transaction information provided by the acquirer for National Net Settlement Service (NNSS) transactions. NNSS is a settlement service that Visa provides. For transactions on CyberSource through VisaNet in countries that subscribe to NNSS: VisaNet clears transactions; VisaNet transfers funds to the acquirer after deducting processing fees and interchange fees. VisaNet settles transactions in the local pricing currency through a local financial institution. This field is supported only on CyberSource through VisaNet for domestic data in Colombia
|
68
|
+
attr_accessor :national_net_domestic_data
|
69
|
+
|
70
|
+
attr_accessor :japan_payment_options
|
71
|
+
|
72
|
+
# This tag contains one of the following values: - `1` : Remote purchase (Consumer initiated) face-to-face - `2` : Remote purchase (Consumer initiated) ecommerce - `3` : Remote purchase (Consumer initiated) MOTO - `4` : Bill Pay (Consumer initiated) - `5` : Top-up (Consumer initiated) - `6` : Cash-out (Consumer initiated) - `7` : Case-out (ATM/Agent triggered) - `8` : Remote purchase (Merchant triggered) face-to-face - `9` : Remote purchase (Merchant triggered) ecommerce
|
73
|
+
attr_accessor :mobile_remote_payment_type
|
74
|
+
|
75
|
+
# A private national-use field submitted by acquirers and issuers in South Africa for South Africa-domestic (intra-country) authorizations and financial requests. Values for this field are 00 through 99.
|
76
|
+
attr_accessor :extended_credit_total_count
|
77
|
+
|
78
|
+
# On PIN Debit Gateways: This U.S.-only field is optionally used by participants (merchants and acquirers) to specify the network access priority. VisaNet checks to determine if there are issuer routing preferences for any of the networks specified by the sharing group code. If an issuer preference exists for one of the specified debit networks, VisaNet makes a routing selection based on the issuer’s preference. If an issuer preference exists for more than one of the specified debit networks, or if no issuer preference exists, VisaNet makes a selection based on the acquirer’s routing priorities.
|
79
|
+
attr_accessor :network_routing_order
|
80
|
+
|
62
81
|
# Attribute mapping from ruby-style variable name to JSON key.
|
63
82
|
def self.attribute_map
|
64
83
|
{
|
@@ -78,7 +97,14 @@ module CyberSource
|
|
78
97
|
:'recurring_options' => :'recurringOptions',
|
79
98
|
:'bank_transfer_options' => :'bankTransferOptions',
|
80
99
|
:'purchase_options' => :'purchaseOptions',
|
81
|
-
:'electronic_benefits_transfer' => :'electronicBenefitsTransfer'
|
100
|
+
:'electronic_benefits_transfer' => :'electronicBenefitsTransfer',
|
101
|
+
:'loan_options' => :'loanOptions',
|
102
|
+
:'wallet_type' => :'walletType',
|
103
|
+
:'national_net_domestic_data' => :'nationalNetDomesticData',
|
104
|
+
:'japan_payment_options' => :'japanPaymentOptions',
|
105
|
+
:'mobile_remote_payment_type' => :'mobileRemotePaymentType',
|
106
|
+
:'extended_credit_total_count' => :'extendedCreditTotalCount',
|
107
|
+
:'network_routing_order' => :'networkRoutingOrder'
|
82
108
|
}
|
83
109
|
end
|
84
110
|
|
@@ -101,7 +127,14 @@ module CyberSource
|
|
101
127
|
:'recurring_options' => :'Ptsv2paymentsProcessingInformationRecurringOptions',
|
102
128
|
:'bank_transfer_options' => :'Ptsv2paymentsProcessingInformationBankTransferOptions',
|
103
129
|
:'purchase_options' => :'Ptsv2paymentsProcessingInformationPurchaseOptions',
|
104
|
-
:'electronic_benefits_transfer' => :'Ptsv2paymentsProcessingInformationElectronicBenefitsTransfer'
|
130
|
+
:'electronic_benefits_transfer' => :'Ptsv2paymentsProcessingInformationElectronicBenefitsTransfer',
|
131
|
+
:'loan_options' => :'Ptsv2paymentsProcessingInformationLoanOptions',
|
132
|
+
:'wallet_type' => :'String',
|
133
|
+
:'national_net_domestic_data' => :'String',
|
134
|
+
:'japan_payment_options' => :'Ptsv2paymentsProcessingInformationJapanPaymentOptions',
|
135
|
+
:'mobile_remote_payment_type' => :'String',
|
136
|
+
:'extended_credit_total_count' => :'String',
|
137
|
+
:'network_routing_order' => :'String'
|
105
138
|
}
|
106
139
|
end
|
107
140
|
|
@@ -182,6 +215,34 @@ module CyberSource
|
|
182
215
|
if attributes.has_key?(:'electronicBenefitsTransfer')
|
183
216
|
self.electronic_benefits_transfer = attributes[:'electronicBenefitsTransfer']
|
184
217
|
end
|
218
|
+
|
219
|
+
if attributes.has_key?(:'loanOptions')
|
220
|
+
self.loan_options = attributes[:'loanOptions']
|
221
|
+
end
|
222
|
+
|
223
|
+
if attributes.has_key?(:'walletType')
|
224
|
+
self.wallet_type = attributes[:'walletType']
|
225
|
+
end
|
226
|
+
|
227
|
+
if attributes.has_key?(:'nationalNetDomesticData')
|
228
|
+
self.national_net_domestic_data = attributes[:'nationalNetDomesticData']
|
229
|
+
end
|
230
|
+
|
231
|
+
if attributes.has_key?(:'japanPaymentOptions')
|
232
|
+
self.japan_payment_options = attributes[:'japanPaymentOptions']
|
233
|
+
end
|
234
|
+
|
235
|
+
if attributes.has_key?(:'mobileRemotePaymentType')
|
236
|
+
self.mobile_remote_payment_type = attributes[:'mobileRemotePaymentType']
|
237
|
+
end
|
238
|
+
|
239
|
+
if attributes.has_key?(:'extendedCreditTotalCount')
|
240
|
+
self.extended_credit_total_count = attributes[:'extendedCreditTotalCount']
|
241
|
+
end
|
242
|
+
|
243
|
+
if attributes.has_key?(:'networkRoutingOrder')
|
244
|
+
self.network_routing_order = attributes[:'networkRoutingOrder']
|
245
|
+
end
|
185
246
|
end
|
186
247
|
|
187
248
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -220,8 +281,28 @@ module CyberSource
|
|
220
281
|
invalid_properties.push('invalid value for "visa_checkout_id", the character length must be smaller than or equal to 48.')
|
221
282
|
end
|
222
283
|
|
223
|
-
if !@industry_data_type.nil? && @industry_data_type.to_s.length >
|
224
|
-
invalid_properties.push('invalid value for "industry_data_type", the character length must be smaller than or equal to
|
284
|
+
if !@industry_data_type.nil? && @industry_data_type.to_s.length > 20
|
285
|
+
invalid_properties.push('invalid value for "industry_data_type", the character length must be smaller than or equal to 20.')
|
286
|
+
end
|
287
|
+
|
288
|
+
if !@wallet_type.nil? && @wallet_type.to_s.length > 5
|
289
|
+
invalid_properties.push('invalid value for "wallet_type", the character length must be smaller than or equal to 5.')
|
290
|
+
end
|
291
|
+
|
292
|
+
if !@national_net_domestic_data.nil? && @national_net_domestic_data.to_s.length > 123
|
293
|
+
invalid_properties.push('invalid value for "national_net_domestic_data", the character length must be smaller than or equal to 123.')
|
294
|
+
end
|
295
|
+
|
296
|
+
if !@mobile_remote_payment_type.nil? && @mobile_remote_payment_type.to_s.length > 1
|
297
|
+
invalid_properties.push('invalid value for "mobile_remote_payment_type", the character length must be smaller than or equal to 1.')
|
298
|
+
end
|
299
|
+
|
300
|
+
if !@extended_credit_total_count.nil? && @extended_credit_total_count.to_s.length > 1
|
301
|
+
invalid_properties.push('invalid value for "extended_credit_total_count", the character length must be smaller than or equal to 1.')
|
302
|
+
end
|
303
|
+
|
304
|
+
if !@network_routing_order.nil? && @network_routing_order.to_s.length > 30
|
305
|
+
invalid_properties.push('invalid value for "network_routing_order", the character length must be smaller than or equal to 30.')
|
225
306
|
end
|
226
307
|
|
227
308
|
invalid_properties
|
@@ -238,7 +319,12 @@ module CyberSource
|
|
238
319
|
return false if !@purchase_level.nil? && @purchase_level.to_s.length > 1
|
239
320
|
return false if !@report_group.nil? && @report_group.to_s.length > 25
|
240
321
|
return false if !@visa_checkout_id.nil? && @visa_checkout_id.to_s.length > 48
|
241
|
-
return false if !@industry_data_type.nil? && @industry_data_type.to_s.length >
|
322
|
+
return false if !@industry_data_type.nil? && @industry_data_type.to_s.length > 20
|
323
|
+
return false if !@wallet_type.nil? && @wallet_type.to_s.length > 5
|
324
|
+
return false if !@national_net_domestic_data.nil? && @national_net_domestic_data.to_s.length > 123
|
325
|
+
return false if !@mobile_remote_payment_type.nil? && @mobile_remote_payment_type.to_s.length > 1
|
326
|
+
return false if !@extended_credit_total_count.nil? && @extended_credit_total_count.to_s.length > 1
|
327
|
+
return false if !@network_routing_order.nil? && @network_routing_order.to_s.length > 30
|
242
328
|
true
|
243
329
|
end
|
244
330
|
|
@@ -325,13 +411,63 @@ module CyberSource
|
|
325
411
|
# Custom attribute writer method with validation
|
326
412
|
# @param [Object] industry_data_type Value to be assigned
|
327
413
|
def industry_data_type=(industry_data_type)
|
328
|
-
if !industry_data_type.nil? && industry_data_type.to_s.length >
|
329
|
-
fail ArgumentError, 'invalid value for "industry_data_type", the character length must be smaller than or equal to
|
414
|
+
if !industry_data_type.nil? && industry_data_type.to_s.length > 20
|
415
|
+
fail ArgumentError, 'invalid value for "industry_data_type", the character length must be smaller than or equal to 20.'
|
330
416
|
end
|
331
417
|
|
332
418
|
@industry_data_type = industry_data_type
|
333
419
|
end
|
334
420
|
|
421
|
+
# Custom attribute writer method with validation
|
422
|
+
# @param [Object] wallet_type Value to be assigned
|
423
|
+
def wallet_type=(wallet_type)
|
424
|
+
if !wallet_type.nil? && wallet_type.to_s.length > 5
|
425
|
+
fail ArgumentError, 'invalid value for "wallet_type", the character length must be smaller than or equal to 5.'
|
426
|
+
end
|
427
|
+
|
428
|
+
@wallet_type = wallet_type
|
429
|
+
end
|
430
|
+
|
431
|
+
# Custom attribute writer method with validation
|
432
|
+
# @param [Object] national_net_domestic_data Value to be assigned
|
433
|
+
def national_net_domestic_data=(national_net_domestic_data)
|
434
|
+
if !national_net_domestic_data.nil? && national_net_domestic_data.to_s.length > 123
|
435
|
+
fail ArgumentError, 'invalid value for "national_net_domestic_data", the character length must be smaller than or equal to 123.'
|
436
|
+
end
|
437
|
+
|
438
|
+
@national_net_domestic_data = national_net_domestic_data
|
439
|
+
end
|
440
|
+
|
441
|
+
# Custom attribute writer method with validation
|
442
|
+
# @param [Object] mobile_remote_payment_type Value to be assigned
|
443
|
+
def mobile_remote_payment_type=(mobile_remote_payment_type)
|
444
|
+
if !mobile_remote_payment_type.nil? && mobile_remote_payment_type.to_s.length > 1
|
445
|
+
fail ArgumentError, 'invalid value for "mobile_remote_payment_type", the character length must be smaller than or equal to 1.'
|
446
|
+
end
|
447
|
+
|
448
|
+
@mobile_remote_payment_type = mobile_remote_payment_type
|
449
|
+
end
|
450
|
+
|
451
|
+
# Custom attribute writer method with validation
|
452
|
+
# @param [Object] extended_credit_total_count Value to be assigned
|
453
|
+
def extended_credit_total_count=(extended_credit_total_count)
|
454
|
+
if !extended_credit_total_count.nil? && extended_credit_total_count.to_s.length > 1
|
455
|
+
fail ArgumentError, 'invalid value for "extended_credit_total_count", the character length must be smaller than or equal to 1.'
|
456
|
+
end
|
457
|
+
|
458
|
+
@extended_credit_total_count = extended_credit_total_count
|
459
|
+
end
|
460
|
+
|
461
|
+
# Custom attribute writer method with validation
|
462
|
+
# @param [Object] network_routing_order Value to be assigned
|
463
|
+
def network_routing_order=(network_routing_order)
|
464
|
+
if !network_routing_order.nil? && network_routing_order.to_s.length > 30
|
465
|
+
fail ArgumentError, 'invalid value for "network_routing_order", the character length must be smaller than or equal to 30.'
|
466
|
+
end
|
467
|
+
|
468
|
+
@network_routing_order = network_routing_order
|
469
|
+
end
|
470
|
+
|
335
471
|
# Checks equality by comparing each attribute.
|
336
472
|
# @param [Object] Object to be compared
|
337
473
|
def ==(o)
|
@@ -353,7 +489,14 @@ module CyberSource
|
|
353
489
|
recurring_options == o.recurring_options &&
|
354
490
|
bank_transfer_options == o.bank_transfer_options &&
|
355
491
|
purchase_options == o.purchase_options &&
|
356
|
-
electronic_benefits_transfer == o.electronic_benefits_transfer
|
492
|
+
electronic_benefits_transfer == o.electronic_benefits_transfer &&
|
493
|
+
loan_options == o.loan_options &&
|
494
|
+
wallet_type == o.wallet_type &&
|
495
|
+
national_net_domestic_data == o.national_net_domestic_data &&
|
496
|
+
japan_payment_options == o.japan_payment_options &&
|
497
|
+
mobile_remote_payment_type == o.mobile_remote_payment_type &&
|
498
|
+
extended_credit_total_count == o.extended_credit_total_count &&
|
499
|
+
network_routing_order == o.network_routing_order
|
357
500
|
end
|
358
501
|
|
359
502
|
# @see the `==` method
|
@@ -365,7 +508,7 @@ module CyberSource
|
|
365
508
|
# Calculates hash code according to all attributes.
|
366
509
|
# @return [Fixnum] Hash code
|
367
510
|
def hash
|
368
|
-
[capture, processor_id, business_application_id, commerce_indicator, payment_solution, reconciliation_id, link_id, purchase_level, report_group, visa_checkout_id, industry_data_type, authorization_options, capture_options, recurring_options, bank_transfer_options, purchase_options, electronic_benefits_transfer].hash
|
511
|
+
[capture, processor_id, business_application_id, commerce_indicator, payment_solution, reconciliation_id, link_id, purchase_level, report_group, visa_checkout_id, industry_data_type, authorization_options, capture_options, recurring_options, bank_transfer_options, purchase_options, electronic_benefits_transfer, loan_options, wallet_type, national_net_domestic_data, japan_payment_options, mobile_remote_payment_type, extended_credit_total_count, network_routing_order].hash
|
369
512
|
end
|
370
513
|
|
371
514
|
# Builds the object from hash
|
@@ -14,16 +14,16 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class Ptsv2paymentsProcessingInformationAuthorizationOptions
|
17
|
-
# Authorization type. Possible values: - `AUTOCAPTURE`: automatic capture. - `STANDARDCAPTURE`: standard capture. - `VERBAL`: forced capture. Include it in the payment request for a forced capture. Include it in the capture request for a verbal payment. #### Asia, Middle East, and Africa Gateway; Cielo; Comercio Latino; and CyberSource Latin American Processing Set this field to `AUTOCAPTURE` and include it in a bundled request to indicate that you are requesting an automatic capture. If your account is configured to enable automatic captures, set this field to `STANDARDCAPTURE` and include it in a standard authorization or bundled request to indicate that you are overriding an automatic capture. For more information, see the `auth_type` field description in [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/
|
17
|
+
# Authorization type. Possible values: - `AUTOCAPTURE`: automatic capture. - `STANDARDCAPTURE`: standard capture. - `VERBAL`: forced capture. Include it in the payment request for a forced capture. Include it in the capture request for a verbal payment. #### Asia, Middle East, and Africa Gateway; Cielo; Comercio Latino; and CyberSource Latin American Processing Set this field to `AUTOCAPTURE` and include it in a bundled request to indicate that you are requesting an automatic capture. If your account is configured to enable automatic captures, set this field to `STANDARDCAPTURE` and include it in a standard authorization or bundled request to indicate that you are overriding an automatic capture. For more information, see the `auth_type` field description in [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) #### Forced Capture Set this field to `VERBAL` and include it in the authorization request to indicate that you are performing a forced capture; therefore, you receive the authorization code outside the CyberSource system. For more information, see \"Forced Captures\" in [Credit Card Services Using the SCMP API Guide](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/). #### Verbal Authorization Set this field to `VERBAL` and include it in the capture request to indicate that the request is for a verbal authorization. For more information, see \"Verbal Authorizations\" in [Credit Card Services Using the SCMP API](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html). For processor-specific information, see the `auth_type` field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
18
18
|
attr_accessor :auth_type
|
19
19
|
|
20
20
|
# Authorization code. #### Forced Capture Use this field to send the authorization code you received from a payment that you authorized outside the CyberSource system. #### Verbal Authorization Use this field in CAPTURE API to send the verbally received authorization code. For processor-specific information, see the `auth_code` field description in [Credit Card Services Using the SCMP API](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html).
|
21
21
|
attr_accessor :verbal_auth_code
|
22
22
|
|
23
|
-
# Transaction ID (TID). #### FDMS South This field is required for verbal authorizations and forced captures with the American Express card type to comply with the CAPN requirements: - Forced capture: Obtain the value for this field from the authorization response. - Verbal authorization: You cannot obtain a value for this field so CyberSource uses the default value of `000000000000000` (15 zeros). For more information about using this default value, see \"Verbal Authorizations\" in [Credit Card Services Using the SCMP API Guide](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/
|
23
|
+
# Transaction ID (TID). #### FDMS South This field is required for verbal authorizations and forced captures with the American Express card type to comply with the CAPN requirements: - Forced capture: Obtain the value for this field from the authorization response. - Verbal authorization: You cannot obtain a value for this field so CyberSource uses the default value of `000000000000000` (15 zeros). For more information about using this default value, see \"Verbal Authorizations\" in [Credit Card Services Using the SCMP API Guide](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)
|
24
24
|
attr_accessor :verbal_auth_transaction_id
|
25
25
|
|
26
|
-
# Flag that specifies the purpose of the authorization. Possible values: - **0**: Preauthorization - **1**: Final authorization To set the default for this field, contact CyberSource Customer Support. For details, see \"Final Authorization Indicator\" in the [Credit Card Services Using the SCMP API Guide](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/
|
26
|
+
# Flag that specifies the purpose of the authorization. Possible values: - **0**: Preauthorization - **1**: Final authorization To set the default for this field, contact CyberSource Customer Support. For details, see \"Final Authorization Indicator\" in the [Credit Card Services Using the SCMP API Guide](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/). #### Barclays and Elavon The default for Barclays and Elavon is 1 (final authorization). To change the default for this field, contact CyberSource Customer Support. #### CyberSource through VisaNet When the value for this field is 0, it corresponds to the following data in the TC 33 capture file5: - Record: CP01 TCR0 - Position: 164 - Field: Additional Authorization Indicators When the value for this field is 1, it does not correspond to any data in the TC 33 capture file. For processor-specific information, see the `auth_indicator` field in [Credit Card Services Using the SCMP API](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html).
|
27
27
|
attr_accessor :auth_indicator
|
28
28
|
|
29
29
|
# Flag that indicates whether the transaction is enabled for partial authorization or not. When your request includes this field, this value overrides the information in your CyberSource account. For processor-specific information, see the `auth_partial_auth_indicator` field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) #### CyberSource through VisaNet To set the default for this field, contact CyberSource Customer Support. The value for this field corresponds to the following data in the TC 33 capture file5: - Record: CP01 TCR0 - Position: 164 - Field: Additional Authorization Indicators Possible values: - **true** Enable the transaction for partial authorization. - **false** Do not enable the transaction for partial authorization.
|
@@ -43,12 +43,15 @@ module CyberSource
|
|
43
43
|
|
44
44
|
attr_accessor :initiator
|
45
45
|
|
46
|
-
# Flag that indicates that this is a payment for a bill or for an existing contractual loan. For processor-specific details, see the `bill_payment` field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/
|
46
|
+
# Flag that indicates that this is a payment for a bill or for an existing contractual loan. For processor-specific details, see the `bill_payment` field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) Possible values: - `true`: Bill payment or loan payment. - `false` (default): Not a bill payment or loan payment.
|
47
47
|
attr_accessor :bill_payment
|
48
48
|
|
49
|
-
# Reason for the payment. Possible values: - 001: Utility payment - 002: Government services - 003: Mobile phone top-up - 004: Coupon payment The value for this field corresponds to the following data in the TC 33 capture file5: - Record: CP07 TCR0 - Position: 48-50 - Field: Bill Payment Transaction Type Identifier This field is supported only for bill payments in Brazil with Mastercard on CyberSource through VisaNet. **Note** For details about Mastercard bill payments or bill payments with Visa, see `bill_payment_type` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/
|
49
|
+
# Reason for the payment. Possible values: - 001: Utility payment - 002: Government services - 003: Mobile phone top-up - 004: Coupon payment The value for this field corresponds to the following data in the TC 33 capture file5: - Record: CP07 TCR0 - Position: 48-50 - Field: Bill Payment Transaction Type Identifier This field is supported only for bill payments in Brazil with Mastercard on CyberSource through VisaNet. **Note** For details about Mastercard bill payments or bill payments with Visa, see `bill_payment_type` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)
|
50
50
|
attr_accessor :bill_payment_type
|
51
51
|
|
52
|
+
# Flag that indicates the payment request is a redemption inquiry. Possible values: - `true` - `false`
|
53
|
+
attr_accessor :redemption_inquiry
|
54
|
+
|
52
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
53
56
|
def self.attribute_map
|
54
57
|
{
|
@@ -63,7 +66,8 @@ module CyberSource
|
|
63
66
|
:'ignore_cv_result' => :'ignoreCvResult',
|
64
67
|
:'initiator' => :'initiator',
|
65
68
|
:'bill_payment' => :'billPayment',
|
66
|
-
:'bill_payment_type' => :'billPaymentType'
|
69
|
+
:'bill_payment_type' => :'billPaymentType',
|
70
|
+
:'redemption_inquiry' => :'redemptionInquiry'
|
67
71
|
}
|
68
72
|
end
|
69
73
|
|
@@ -81,7 +85,8 @@ module CyberSource
|
|
81
85
|
:'ignore_cv_result' => :'BOOLEAN',
|
82
86
|
:'initiator' => :'Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator',
|
83
87
|
:'bill_payment' => :'BOOLEAN',
|
84
|
-
:'bill_payment_type' => :'String'
|
88
|
+
:'bill_payment_type' => :'String',
|
89
|
+
:'redemption_inquiry' => :'BOOLEAN'
|
85
90
|
}
|
86
91
|
end
|
87
92
|
|
@@ -146,6 +151,10 @@ module CyberSource
|
|
146
151
|
if attributes.has_key?(:'billPaymentType')
|
147
152
|
self.bill_payment_type = attributes[:'billPaymentType']
|
148
153
|
end
|
154
|
+
|
155
|
+
if attributes.has_key?(:'redemptionInquiry')
|
156
|
+
self.redemption_inquiry = attributes[:'redemptionInquiry']
|
157
|
+
end
|
149
158
|
end
|
150
159
|
|
151
160
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -237,7 +246,8 @@ module CyberSource
|
|
237
246
|
ignore_cv_result == o.ignore_cv_result &&
|
238
247
|
initiator == o.initiator &&
|
239
248
|
bill_payment == o.bill_payment &&
|
240
|
-
bill_payment_type == o.bill_payment_type
|
249
|
+
bill_payment_type == o.bill_payment_type &&
|
250
|
+
redemption_inquiry == o.redemption_inquiry
|
241
251
|
end
|
242
252
|
|
243
253
|
# @see the `==` method
|
@@ -249,7 +259,7 @@ module CyberSource
|
|
249
259
|
# Calculates hash code according to all attributes.
|
250
260
|
# @return [Fixnum] Hash code
|
251
261
|
def hash
|
252
|
-
[auth_type, verbal_auth_code, verbal_auth_transaction_id, auth_indicator, partial_auth_indicator, balance_inquiry, ignore_avs_result, decline_avs_flags, ignore_cv_result, initiator, bill_payment, bill_payment_type].hash
|
262
|
+
[auth_type, verbal_auth_code, verbal_auth_transaction_id, auth_indicator, partial_auth_indicator, balance_inquiry, ignore_avs_result, decline_avs_flags, ignore_cv_result, initiator, bill_payment, bill_payment_type, redemption_inquiry].hash
|
253
263
|
end
|
254
264
|
|
255
265
|
# Builds the object from hash
|
@@ -17,7 +17,7 @@ module CyberSource
|
|
17
17
|
# This field indicates whether the transaction is a merchant-initiated transaction or customer-initiated transaction. Valid values: - **customer** - **merchant**
|
18
18
|
attr_accessor :type
|
19
19
|
|
20
|
-
# Indicates to the issuing bank two things: - The merchant has received consent from the cardholder to store their card details on file - The merchant wants the issuing bank to check out the card details before the merchant initiates their first transaction for this cardholder. The purpose of the merchant-initiated transaction is to ensure that the cardholder’s credentials are valid (that the card is not stolen or has restrictions) and that the card details are good to be stored on the merchant’s file for future transactions. Valid values: - `true` means merchant will use this transaction to store payment credentials for follow-up merchant-initiated transactions. - `false` means merchant will not use this transaction to store payment credentials for follow-up merchant-initiated transactions. For details, see `subsequent_auth_first` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/
|
20
|
+
# Indicates to the issuing bank two things: - The merchant has received consent from the cardholder to store their card details on file - The merchant wants the issuing bank to check out the card details before the merchant initiates their first transaction for this cardholder. The purpose of the merchant-initiated transaction is to ensure that the cardholder’s credentials are valid (that the card is not stolen or has restrictions) and that the card details are good to be stored on the merchant’s file for future transactions. Valid values: - `true` means merchant will use this transaction to store payment credentials for follow-up merchant-initiated transactions. - `false` means merchant will not use this transaction to store payment credentials for follow-up merchant-initiated transactions. For details, see `subsequent_auth_first` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) **NOTE:** The value for this field does not correspond to any data in the TC 33 capture file5. This field is supported only for Visa transactions on CyberSource through VisaNet.
|
21
21
|
attr_accessor :credential_stored_on_file
|
22
22
|
|
23
23
|
# Indicates to an issuing bank whether a merchant-initiated transaction came from a card that was already stored on file. Possible values: - **true** means the merchant-initiated transaction came from a card that was already stored on file. - **false** means the merchant-initiated transaction came from a card that was not stored on file.
|
@@ -17,7 +17,7 @@ module CyberSource
|
|
17
17
|
# Space-separated list of AVS flags that cause the request to be declined for AVS reasons. **Important** To receive declines for the AVS code `N`, you must include the value `N` in the space-separated list. ### AVS Codes for Cielo 3.0 and CyberSource Latin American Processing **Note** CyberSource Latin American Processing is the name of a specific processing connection that CyberSource supports. In the CyberSource API documentation, CyberSource Latin American Processing does not refer to the general topic of processing in Latin America. The information in this section is for the specific processing connection called CyberSource Latin American Processing. It is not for any other Latin American processors that CyberSource supports. |AVS Code|Description| |--- |--- | |D|Partial match: postal code and address match.| |E|Not supported: AVS is not supported for this card type. _or_ Invalid: the acquirer returned an unrecognized value for the AVS response.| |F|Partial match: postal code matches, but CPF and address do not match.*| |G|Not supported: AVS not supported or not verified.| |I|No match: AVS information is not available.| |K|Partial match: CPF matches, but postal code and address do not match.*| |L|Partial match: postal code and CPF match, but address does not match.*| |N|No match: postal code, CPF, and address do not match.*| |O|Partial match: CPF and address match, but postal code does not match.*| |R|Not supported: your implementation does not support AVS _or_ System unavailable.| |T|Partial match: address matches, but postal code and CPF do not match.*| |V|Match: postal code, CPF, and address match.*| |* CPF (Cadastro de Pessoas Fisicas) is required only for Redecard in Brazil.|| ### AVS Codes for All Other Processors **Note** The list of AVS codes for all other processors follows these descriptions of the processor-specific information for these codes. #### American Express Cards For American Express cards only, you can receive Visa and CyberSource AVS codes in addition to the American Express AVS codes. **Note** For CyberSource through VisaNet, the American Express AVS codes are converted to Visa AVS codes before they are returned to you. As a result, you will not receive American Express AVS codes for the American Express card type. _American Express Card codes_: `F`, `H`, `K`, `L`, `O`, `T`, `V` #### Domestic and International Visa Cards The international and domestic alphabetic AVS codes are the Visa standard AVS codes. CyberSource maps the standard AVS return codes for other types of payment cards, including American Express cards, to the Visa standard AVS codes. AVS is considered either domestic or international, depending on the location of the bank that issued the customer’s payment card: - When the bank is in the U.S., the AVS is domestic. - When the bank is outside the U.S., the AVS is international. You should be prepared to handle both domestic and international AVS result codes: - For international cards, you can receive domestic AVS codes in addition to the international AVS codes. - For domestic cards, you can receive international AVS codes in addition to the domestic AVS codes. _International Visa Codes_: `B`, `C`, `D`, `G`, `I`, `M`, `P` _Domestic Visa Codes_: `A`, `E`,`N`, `R`, `S`, `U`, `W`, `X`, `Y`, `Z` #### CyberSource Codes The numeric AVS codes are created by CyberSource and are not standard Visa codes. These AVS codes can be returned for any card type. _CyberSource Codes_: `1`, `2`, `3`, `4` ### Table of AVS Codes for All Other Processors |AVS Code|Description| |--- |--- | |A|Partial match: street address matches, but 5-digit and 9-digit postal codes do not match.| |B|Partial match: street address matches, but postal code is not verified. Returned only for Visa cards not issued in the U.S.| |C|No match: street address and postal code do not match. Returned only for Visa cards not issued in the U.S.| |D & M|Match: street address and postal code match. Returned only for Visa cards not issued in the U.S.| |E|Invalid: AVS data is invalid or AVS is not allowed for this card type.| |F|Partial match: card member’s name does not match, but billing postal code matches.| |G|Not supported: issuing bank outside the U.S. does not support AVS.| |H|Partial match: card member’s name does not match, but street address and postal code match. Returned only for the American Express card type.| |I|No match: address not verified. Returned only for Visa cards not issued in the U.S.| |K|Partial match: card member’s name matches, but billing address and billing postal code do not match. Returned only for the American Express card type.| |L|Partial match: card member’s name and billing postal code match, but billing address does not match. Returned only for the American Express card type.| |M|See the entry for D & M.| |N|No match: one of the following: street address and postal code do not match _or_ (American Express card type only) card member’s name, street address, and postal code do not match.| |O|Partial match: card member’s name and billing address match, but billing postal code does not match. Returned only for the American Express card type.| |P|Partial match: postal code matches, but street address not verified. Returned only for Visa cards not issued in the U.S.| |R|System unavailable.| |S|Not supported: issuing bank in the U.S. does not support AVS.| |T|Partial match: card member’s name does not match, but street address matches. Returned only for the American Express card type.| |U|System unavailable: address information unavailable for one of these reasons: The U.S. bank does not support AVS outside the U.S. _or_ The AVS in a U.S. bank is not functioning properly.| |V|Match: card member’s name, billing address, and billing postal code match. Returned only for the American Express card type.| |W|Partial match: street address does not match, but 9-digit postal code matches.| |X|Match: street address and 9-digit postal code match.| |Y|Match: street address and 5-digit postal code match.| |Z|Partial match: street address does not match, but 5-digit postal code matches.| |1|Not supported: one of the following: AVS is not supported for this processor or card type _or_ AVS is disabled for your CyberSource account. To enable AVS, contact CyberSource Customer Support.| |2|Unrecognized: the processor returned an unrecognized value for the AVS response.| |3|Match: address is confirmed. Returned only for PayPal Express Checkout.| |4|No match: address is not confirmed. Returned only for PayPal Express Checkout.| |5|No match: no AVS code was returned by the processor.|
|
18
18
|
attr_accessor :decline_avs_flags
|
19
19
|
|
20
|
-
# Specifies the authorization method for the transaction. #### TeleCheck Accepts only the following values: - `ARC`: account receivable conversion - `CCD`: corporate cash disbursement - `POP`: point of purchase conversion - `PPD`: prearranged payment and deposit entry - `TEL`: telephone-initiated entry - `WEB`: internet-initiated entry For details, see `ecp_sec_code` field description in the [Electronic Check Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/
|
20
|
+
# Specifies the authorization method for the transaction. #### TeleCheck Accepts only the following values: - `ARC`: account receivable conversion - `CCD`: corporate cash disbursement - `POP`: point of purchase conversion - `PPD`: prearranged payment and deposit entry - `TEL`: telephone-initiated entry - `WEB`: internet-initiated entry For details, see `ecp_sec_code` field description in the [Electronic Check Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/)
|
21
21
|
attr_accessor :sec_code
|
22
22
|
|
23
23
|
# City in which the terminal is located. If more than four alphanumeric characters are submitted, the transaction will be declined. You cannot include any special characters.
|
@@ -29,19 +29,19 @@ module CyberSource
|
|
29
29
|
# Effective date for the transaction. The effective date must be within 45 days of the current day. If you do not include this value, CyberSource sets the effective date to the next business day. Format: `MMDDYYYY` Supported only for the CyberSource ACH Service.
|
30
30
|
attr_accessor :effective_date
|
31
31
|
|
32
|
-
# Identifier for a partial payment or partial credit. The value for each debit request or credit request must be unique within the scope of the order. For details, see `partial_payment_id` field description in the [Electronic Check Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/
|
32
|
+
# Identifier for a partial payment or partial credit. The value for each debit request or credit request must be unique within the scope of the order. For details, see `partial_payment_id` field description in the [Electronic Check Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/)
|
33
33
|
attr_accessor :partial_payment_id
|
34
34
|
|
35
35
|
# Payment related information. This information is included on the customer’s statement.
|
36
36
|
attr_accessor :customer_memo
|
37
37
|
|
38
|
-
# Flag that indicates whether to process the payment. Use with deferred payments. For details, see `ecp_payment_mode` field description in the [Electronic Check Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/
|
38
|
+
# Flag that indicates whether to process the payment. Use with deferred payments. For details, see `ecp_payment_mode` field description in the [Electronic Check Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/) Possible values: - `0`: Standard debit with immediate payment (default). - `1`: For deferred payments, indicates that this is a deferred payment and that you will send a debit request with `paymentCategoryCode = 2` in the future. - `2`: For deferred payments, indicates notification to initiate payment. #### Chase Paymentech Solutions and TeleCheck Use for deferred and partial payments. #### CyberSource ACH Service Not used. #### RBS WorldPay Atlanta Not used.
|
39
39
|
attr_accessor :payment_category_code
|
40
40
|
|
41
|
-
# Method used for settlement. Possible values: - `A`: Automated Clearing House (default for credits and for transactions using Canadian dollars) - `F`: Facsimile draft (U.S. dollars only) - `B`: Best possible (U.S. dollars only) (default if the field has not already been configured for your merchant ID) For details, see `ecp_settlement_method` field description for credit cars and `ecp_debit_settlement_method` for debit cards in the [Electronic Check Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/
|
41
|
+
# Method used for settlement. Possible values: - `A`: Automated Clearing House (default for credits and for transactions using Canadian dollars) - `F`: Facsimile draft (U.S. dollars only) - `B`: Best possible (U.S. dollars only) (default if the field has not already been configured for your merchant ID) For details, see `ecp_settlement_method` field description for credit cars and `ecp_debit_settlement_method` for debit cards in the [Electronic Check Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/)
|
42
42
|
attr_accessor :settlement_method
|
43
43
|
|
44
|
-
# Level of fraud screening. Possible values: - `1`: Validation — default if the field has not already been configured for your merchant ID - `2`: Verification For a description of this feature and a list of supported processors, see \"Verification and Validation\" in the [Electronic Check Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/
|
44
|
+
# Level of fraud screening. Possible values: - `1`: Validation — default if the field has not already been configured for your merchant ID - `2`: Verification For a description of this feature and a list of supported processors, see \"Verification and Validation\" in the [Electronic Check Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/).
|
45
45
|
attr_accessor :fraud_screening_level
|
46
46
|
|
47
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -0,0 +1,359 @@
|
|
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 Ptsv2paymentsProcessingInformationJapanPaymentOptions
|
17
|
+
# This value is a 2-digit code indicating the payment method. Use Payment Method Code value that applies to the tranasction. - 10 (One-time payment) - 21, 22, 23, 24 (Bonus(one-time)payment) - 61 (Installment payment) - 31, 32, 33, 34 (Integrated (Bonus + Installment)payment) - 80 (Revolving payment)
|
18
|
+
attr_accessor :payment_method
|
19
|
+
|
20
|
+
# Number of Installments.
|
21
|
+
attr_accessor :installments
|
22
|
+
|
23
|
+
# This value is the 13-digit JCCA number.
|
24
|
+
attr_accessor :terminal_id
|
25
|
+
|
26
|
+
# Billing month in MM format.
|
27
|
+
attr_accessor :first_billing_month
|
28
|
+
|
29
|
+
# Business name in Japanese characters. This field is supported only on JCN Gateway and for the Sumitomo Mitsui Card Co. acquirer on CyberSource through VisaNet.
|
30
|
+
attr_accessor :business_name
|
31
|
+
|
32
|
+
# Business name in Katakana characters. This field is supported only on JCN Gateway and for the Sumitomo Mitsui Card Co. acquirer on CyberSource through VisaNet.
|
33
|
+
attr_accessor :business_name_katakana
|
34
|
+
|
35
|
+
# Japanese Industrial Standard Type 2 (JIS2) track data from the front of the card. This field is supported only on JCN Gateway.
|
36
|
+
attr_accessor :jis2_track_data
|
37
|
+
|
38
|
+
# Business name in alphanumeric characters. This field is supported only on JCN Gateway and for the Sumitomo Mitsui Card Co. acquirer on CyberSource through VisaNet.
|
39
|
+
attr_accessor :business_name_alpha_numeric
|
40
|
+
|
41
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
42
|
+
def self.attribute_map
|
43
|
+
{
|
44
|
+
:'payment_method' => :'paymentMethod',
|
45
|
+
:'installments' => :'installments',
|
46
|
+
:'terminal_id' => :'terminalId',
|
47
|
+
:'first_billing_month' => :'firstBillingMonth',
|
48
|
+
:'business_name' => :'businessName',
|
49
|
+
:'business_name_katakana' => :'businessNameKatakana',
|
50
|
+
:'jis2_track_data' => :'jis2TrackData',
|
51
|
+
:'business_name_alpha_numeric' => :'businessNameAlphaNumeric'
|
52
|
+
}
|
53
|
+
end
|
54
|
+
|
55
|
+
# Attribute type mapping.
|
56
|
+
def self.swagger_types
|
57
|
+
{
|
58
|
+
:'payment_method' => :'String',
|
59
|
+
:'installments' => :'String',
|
60
|
+
:'terminal_id' => :'String',
|
61
|
+
:'first_billing_month' => :'String',
|
62
|
+
:'business_name' => :'String',
|
63
|
+
:'business_name_katakana' => :'String',
|
64
|
+
:'jis2_track_data' => :'String',
|
65
|
+
:'business_name_alpha_numeric' => :'String'
|
66
|
+
}
|
67
|
+
end
|
68
|
+
|
69
|
+
# Initializes the object
|
70
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
71
|
+
def initialize(attributes = {})
|
72
|
+
return unless attributes.is_a?(Hash)
|
73
|
+
|
74
|
+
# convert string to symbol for hash key
|
75
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
76
|
+
|
77
|
+
if attributes.has_key?(:'paymentMethod')
|
78
|
+
self.payment_method = attributes[:'paymentMethod']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.has_key?(:'installments')
|
82
|
+
self.installments = attributes[:'installments']
|
83
|
+
end
|
84
|
+
|
85
|
+
if attributes.has_key?(:'terminalId')
|
86
|
+
self.terminal_id = attributes[:'terminalId']
|
87
|
+
end
|
88
|
+
|
89
|
+
if attributes.has_key?(:'firstBillingMonth')
|
90
|
+
self.first_billing_month = attributes[:'firstBillingMonth']
|
91
|
+
end
|
92
|
+
|
93
|
+
if attributes.has_key?(:'businessName')
|
94
|
+
self.business_name = attributes[:'businessName']
|
95
|
+
end
|
96
|
+
|
97
|
+
if attributes.has_key?(:'businessNameKatakana')
|
98
|
+
self.business_name_katakana = attributes[:'businessNameKatakana']
|
99
|
+
end
|
100
|
+
|
101
|
+
if attributes.has_key?(:'jis2TrackData')
|
102
|
+
self.jis2_track_data = attributes[:'jis2TrackData']
|
103
|
+
end
|
104
|
+
|
105
|
+
if attributes.has_key?(:'businessNameAlphaNumeric')
|
106
|
+
self.business_name_alpha_numeric = attributes[:'businessNameAlphaNumeric']
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
111
|
+
# @return Array for valid properties with the reasons
|
112
|
+
def list_invalid_properties
|
113
|
+
invalid_properties = Array.new
|
114
|
+
if !@payment_method.nil? && @payment_method.to_s.length > 2
|
115
|
+
invalid_properties.push('invalid value for "payment_method", the character length must be smaller than or equal to 2.')
|
116
|
+
end
|
117
|
+
|
118
|
+
if !@terminal_id.nil? && @terminal_id.to_s.length > 13
|
119
|
+
invalid_properties.push('invalid value for "terminal_id", the character length must be smaller than or equal to 13.')
|
120
|
+
end
|
121
|
+
|
122
|
+
if !@first_billing_month.nil? && @first_billing_month.to_s.length > 2
|
123
|
+
invalid_properties.push('invalid value for "first_billing_month", the character length must be smaller than or equal to 2.')
|
124
|
+
end
|
125
|
+
|
126
|
+
if !@business_name.nil? && @business_name.to_s.length > 25
|
127
|
+
invalid_properties.push('invalid value for "business_name", the character length must be smaller than or equal to 25.')
|
128
|
+
end
|
129
|
+
|
130
|
+
if !@business_name_katakana.nil? && @business_name_katakana.to_s.length > 25
|
131
|
+
invalid_properties.push('invalid value for "business_name_katakana", the character length must be smaller than or equal to 25.')
|
132
|
+
end
|
133
|
+
|
134
|
+
if !@jis2_track_data.nil? && @jis2_track_data.to_s.length > 69
|
135
|
+
invalid_properties.push('invalid value for "jis2_track_data", the character length must be smaller than or equal to 69.')
|
136
|
+
end
|
137
|
+
|
138
|
+
if !@business_name_alpha_numeric.nil? && @business_name_alpha_numeric.to_s.length > 25
|
139
|
+
invalid_properties.push('invalid value for "business_name_alpha_numeric", the character length must be smaller than or equal to 25.')
|
140
|
+
end
|
141
|
+
|
142
|
+
invalid_properties
|
143
|
+
end
|
144
|
+
|
145
|
+
# Check to see if the all the properties in the model are valid
|
146
|
+
# @return true if the model is valid
|
147
|
+
def valid?
|
148
|
+
return false if !@payment_method.nil? && @payment_method.to_s.length > 2
|
149
|
+
return false if !@terminal_id.nil? && @terminal_id.to_s.length > 13
|
150
|
+
return false if !@first_billing_month.nil? && @first_billing_month.to_s.length > 2
|
151
|
+
return false if !@business_name.nil? && @business_name.to_s.length > 25
|
152
|
+
return false if !@business_name_katakana.nil? && @business_name_katakana.to_s.length > 25
|
153
|
+
return false if !@jis2_track_data.nil? && @jis2_track_data.to_s.length > 69
|
154
|
+
return false if !@business_name_alpha_numeric.nil? && @business_name_alpha_numeric.to_s.length > 25
|
155
|
+
true
|
156
|
+
end
|
157
|
+
|
158
|
+
# Custom attribute writer method with validation
|
159
|
+
# @param [Object] payment_method Value to be assigned
|
160
|
+
def payment_method=(payment_method)
|
161
|
+
if !payment_method.nil? && payment_method.to_s.length > 2
|
162
|
+
fail ArgumentError, 'invalid value for "payment_method", the character length must be smaller than or equal to 2.'
|
163
|
+
end
|
164
|
+
|
165
|
+
@payment_method = payment_method
|
166
|
+
end
|
167
|
+
|
168
|
+
# Custom attribute writer method with validation
|
169
|
+
# @param [Object] terminal_id Value to be assigned
|
170
|
+
def terminal_id=(terminal_id)
|
171
|
+
if !terminal_id.nil? && terminal_id.to_s.length > 13
|
172
|
+
fail ArgumentError, 'invalid value for "terminal_id", the character length must be smaller than or equal to 13.'
|
173
|
+
end
|
174
|
+
|
175
|
+
@terminal_id = terminal_id
|
176
|
+
end
|
177
|
+
|
178
|
+
# Custom attribute writer method with validation
|
179
|
+
# @param [Object] first_billing_month Value to be assigned
|
180
|
+
def first_billing_month=(first_billing_month)
|
181
|
+
if !first_billing_month.nil? && first_billing_month.to_s.length > 2
|
182
|
+
fail ArgumentError, 'invalid value for "first_billing_month", the character length must be smaller than or equal to 2.'
|
183
|
+
end
|
184
|
+
|
185
|
+
@first_billing_month = first_billing_month
|
186
|
+
end
|
187
|
+
|
188
|
+
# Custom attribute writer method with validation
|
189
|
+
# @param [Object] business_name Value to be assigned
|
190
|
+
def business_name=(business_name)
|
191
|
+
if !business_name.nil? && business_name.to_s.length > 25
|
192
|
+
fail ArgumentError, 'invalid value for "business_name", the character length must be smaller than or equal to 25.'
|
193
|
+
end
|
194
|
+
|
195
|
+
@business_name = business_name
|
196
|
+
end
|
197
|
+
|
198
|
+
# Custom attribute writer method with validation
|
199
|
+
# @param [Object] business_name_katakana Value to be assigned
|
200
|
+
def business_name_katakana=(business_name_katakana)
|
201
|
+
if !business_name_katakana.nil? && business_name_katakana.to_s.length > 25
|
202
|
+
fail ArgumentError, 'invalid value for "business_name_katakana", the character length must be smaller than or equal to 25.'
|
203
|
+
end
|
204
|
+
|
205
|
+
@business_name_katakana = business_name_katakana
|
206
|
+
end
|
207
|
+
|
208
|
+
# Custom attribute writer method with validation
|
209
|
+
# @param [Object] jis2_track_data Value to be assigned
|
210
|
+
def jis2_track_data=(jis2_track_data)
|
211
|
+
if !jis2_track_data.nil? && jis2_track_data.to_s.length > 69
|
212
|
+
fail ArgumentError, 'invalid value for "jis2_track_data", the character length must be smaller than or equal to 69.'
|
213
|
+
end
|
214
|
+
|
215
|
+
@jis2_track_data = jis2_track_data
|
216
|
+
end
|
217
|
+
|
218
|
+
# Custom attribute writer method with validation
|
219
|
+
# @param [Object] business_name_alpha_numeric Value to be assigned
|
220
|
+
def business_name_alpha_numeric=(business_name_alpha_numeric)
|
221
|
+
if !business_name_alpha_numeric.nil? && business_name_alpha_numeric.to_s.length > 25
|
222
|
+
fail ArgumentError, 'invalid value for "business_name_alpha_numeric", the character length must be smaller than or equal to 25.'
|
223
|
+
end
|
224
|
+
|
225
|
+
@business_name_alpha_numeric = business_name_alpha_numeric
|
226
|
+
end
|
227
|
+
|
228
|
+
# Checks equality by comparing each attribute.
|
229
|
+
# @param [Object] Object to be compared
|
230
|
+
def ==(o)
|
231
|
+
return true if self.equal?(o)
|
232
|
+
self.class == o.class &&
|
233
|
+
payment_method == o.payment_method &&
|
234
|
+
installments == o.installments &&
|
235
|
+
terminal_id == o.terminal_id &&
|
236
|
+
first_billing_month == o.first_billing_month &&
|
237
|
+
business_name == o.business_name &&
|
238
|
+
business_name_katakana == o.business_name_katakana &&
|
239
|
+
jis2_track_data == o.jis2_track_data &&
|
240
|
+
business_name_alpha_numeric == o.business_name_alpha_numeric
|
241
|
+
end
|
242
|
+
|
243
|
+
# @see the `==` method
|
244
|
+
# @param [Object] Object to be compared
|
245
|
+
def eql?(o)
|
246
|
+
self == o
|
247
|
+
end
|
248
|
+
|
249
|
+
# Calculates hash code according to all attributes.
|
250
|
+
# @return [Fixnum] Hash code
|
251
|
+
def hash
|
252
|
+
[payment_method, installments, terminal_id, first_billing_month, business_name, business_name_katakana, jis2_track_data, business_name_alpha_numeric].hash
|
253
|
+
end
|
254
|
+
|
255
|
+
# Builds the object from hash
|
256
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
257
|
+
# @return [Object] Returns the model itself
|
258
|
+
def build_from_hash(attributes)
|
259
|
+
return nil unless attributes.is_a?(Hash)
|
260
|
+
self.class.swagger_types.each_pair do |key, type|
|
261
|
+
if type =~ /\AArray<(.*)>/i
|
262
|
+
# check to ensure the input is an array given that the the attribute
|
263
|
+
# is documented as an array but the input is not
|
264
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
265
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
266
|
+
end
|
267
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
268
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
269
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
270
|
+
end
|
271
|
+
|
272
|
+
self
|
273
|
+
end
|
274
|
+
|
275
|
+
# Deserializes the data based on type
|
276
|
+
# @param string type Data type
|
277
|
+
# @param string value Value to be deserialized
|
278
|
+
# @return [Object] Deserialized data
|
279
|
+
def _deserialize(type, value)
|
280
|
+
case type.to_sym
|
281
|
+
when :DateTime
|
282
|
+
DateTime.parse(value)
|
283
|
+
when :Date
|
284
|
+
Date.parse(value)
|
285
|
+
when :String
|
286
|
+
value.to_s
|
287
|
+
when :Integer
|
288
|
+
value.to_i
|
289
|
+
when :Float
|
290
|
+
value.to_f
|
291
|
+
when :BOOLEAN
|
292
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
293
|
+
true
|
294
|
+
else
|
295
|
+
false
|
296
|
+
end
|
297
|
+
when :Object
|
298
|
+
# generic object (usually a Hash), return directly
|
299
|
+
value
|
300
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
301
|
+
inner_type = Regexp.last_match[:inner_type]
|
302
|
+
value.map { |v| _deserialize(inner_type, v) }
|
303
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
304
|
+
k_type = Regexp.last_match[:k_type]
|
305
|
+
v_type = Regexp.last_match[:v_type]
|
306
|
+
{}.tap do |hash|
|
307
|
+
value.each do |k, v|
|
308
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
309
|
+
end
|
310
|
+
end
|
311
|
+
else # model
|
312
|
+
temp_model = CyberSource.const_get(type).new
|
313
|
+
temp_model.build_from_hash(value)
|
314
|
+
end
|
315
|
+
end
|
316
|
+
|
317
|
+
# Returns the string representation of the object
|
318
|
+
# @return [String] String presentation of the object
|
319
|
+
def to_s
|
320
|
+
to_hash.to_s
|
321
|
+
end
|
322
|
+
|
323
|
+
# to_body is an alias to to_hash (backward compatibility)
|
324
|
+
# @return [Hash] Returns the object in the form of hash
|
325
|
+
def to_body
|
326
|
+
to_hash
|
327
|
+
end
|
328
|
+
|
329
|
+
# Returns the object in the form of hash
|
330
|
+
# @return [Hash] Returns the object in the form of hash
|
331
|
+
def to_hash
|
332
|
+
hash = {}
|
333
|
+
self.class.attribute_map.each_pair do |attr, param|
|
334
|
+
value = self.send(attr)
|
335
|
+
next if value.nil?
|
336
|
+
hash[param] = _to_hash(value)
|
337
|
+
end
|
338
|
+
hash
|
339
|
+
end
|
340
|
+
|
341
|
+
# Outputs non-array value in the form of hash
|
342
|
+
# For object, use to_hash. Otherwise, just return the value
|
343
|
+
# @param [Object] value Any valid value
|
344
|
+
# @return [Hash] Returns the value in the form of hash
|
345
|
+
def _to_hash(value)
|
346
|
+
if value.is_a?(Array)
|
347
|
+
value.compact.map { |v| _to_hash(v) }
|
348
|
+
elsif value.is_a?(Hash)
|
349
|
+
{}.tap do |hash|
|
350
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
351
|
+
end
|
352
|
+
elsif value.respond_to? :to_hash
|
353
|
+
value.to_hash
|
354
|
+
else
|
355
|
+
value
|
356
|
+
end
|
357
|
+
end
|
358
|
+
end
|
359
|
+
end
|