cybersource_rest_client 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cybersource_rest_client.rb +68 -8
- data/lib/cybersource_rest_client/api/capture_api.rb +19 -8
- data/lib/cybersource_rest_client/api/conversion_details_api.rb +112 -0
- data/lib/cybersource_rest_client/api/credit_api.rb +19 -8
- data/lib/cybersource_rest_client/api/flex_token_api.rb +18 -7
- data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +88 -55
- data/lib/cybersource_rest_client/api/instrument_identifiers_api.rb +24 -13
- data/lib/cybersource_rest_client/api/key_generation_api.rb +18 -7
- data/lib/cybersource_rest_client/api/net_fundings_api.rb +115 -0
- data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +20 -9
- data/lib/cybersource_rest_client/api/payment_instruments_api.rb +144 -89
- data/lib/cybersource_rest_client/api/payments_api.rb +19 -8
- data/lib/cybersource_rest_client/api/process_a_payout_api.rb +21 -9
- data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +27 -10
- data/lib/cybersource_rest_client/api/refund_api.rb +37 -15
- data/lib/cybersource_rest_client/api/report_definitions_api.rb +50 -19
- data/lib/cybersource_rest_client/api/report_downloads_api.rb +25 -10
- data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +104 -43
- data/lib/cybersource_rest_client/api/reports_api.rb +83 -27
- data/lib/cybersource_rest_client/api/reversal_api.rb +19 -8
- data/lib/cybersource_rest_client/api/search_transactions_api.rb +39 -17
- data/lib/cybersource_rest_client/api/secure_file_share_api.rb +45 -15
- data/lib/cybersource_rest_client/api/transaction_batches_api.rb +89 -13
- data/lib/cybersource_rest_client/api/transaction_details_api.rb +19 -8
- data/lib/cybersource_rest_client/api/user_management_api.rb +19 -8
- data/lib/cybersource_rest_client/api/void_api.rb +73 -29
- data/lib/cybersource_rest_client/api_client.rb +24 -12
- data/lib/cybersource_rest_client/configuration.rb +1 -1
- data/lib/cybersource_rest_client/models/capture_payment_request.rb +14 -5
- data/lib/cybersource_rest_client/models/create_credit_request.rb +1 -1
- data/lib/cybersource_rest_client/models/create_payment_request.rb +23 -5
- data/lib/cybersource_rest_client/models/inline_response_400.rb +59 -14
- data/lib/cybersource_rest_client/models/inline_response_400_1.rb +202 -0
- data/lib/cybersource_rest_client/models/{reporting_v3_notificationof_changes_get400_response_fields.rb → inline_response_400_fields.rb} +1 -1
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get200_response_transaction_batches.rb +7 -7
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_id_get200_response.rb +286 -0
- data/lib/cybersource_rest_client/models/{tmsv1instrumentidentifiers_authorization_options_merchant_initiated_transaction.rb → pts_v1_transaction_batches_id_get200_response__links.rb} +10 -9
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_id_get200_response__links_transactions.rb +193 -0
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response.rb +20 -2
- 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_payment_information.rb +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_processing_information.rb +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_processing_information_bank_transfer_options.rb +199 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response.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_post400_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +34 -7
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_client_reference_information.rb +40 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +519 -0
- data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_processor_information_issuer.rb → pts_v2_payments_post201_response_issuer_information.rb} +31 -6
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_invoice_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information.rb +13 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_account_features.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_bank.rb +208 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_bank_account.rb +199 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +2 -17
- 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 +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information_bank_transfer_options.rb +224 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +75 -16
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_ach_verification.rb +224 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_avs.rb +0 -15
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_electronic_verification_results.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_routing.rb +249 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post400_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post502_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +63 -4
- 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_refund_post400_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response.rb +11 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_authorization_information.rb +29 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_issuer_information.rb +199 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_reversal_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post400_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response.rb +1 -1
- 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_payments_voids_post400_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response.rb +350 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_error_information.rb +239 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_error_information_details.rb +228 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information.rb +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information_merchant_descriptor.rb +234 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information.rb +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information_amount_details.rb +274 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information.rb +299 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_recipient_information.rb +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_recipient_information_card.rb +224 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_status_information.rb +228 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post502_response.rb +260 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post_response.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2credits_point_of_sale_information.rb +186 -4
- data/lib/cybersource_rest_client/models/ptsv2credits_point_of_sale_information_emv.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +18 -9
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information_bank_transfer_options.rb +349 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb +9 -9
- data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information.rb +29 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification.rb +3 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information.rb +15 -6
- data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information_partner.rb +249 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +7 -7
- data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +364 -0
- data/lib/cybersource_rest_client/models/{ptsv2payments_processing_information_issuer.rb → ptsv2payments_issuer_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_defined_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +66 -7
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +0 -6
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_service_fee_descriptor.rb +249 -0
- data/lib/cybersource_rest_client/models/{ptsv2payments_processing_information_authorization_options_merchant_initiated_transaction.rb → ptsv2payments_merchant_initiated_transaction.rb} +3 -3
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +84 -9
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_surcharge.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_tax_details.rb +32 -7
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb +12 -28
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to_company.rb +349 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +55 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +139 -14
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_ship_to.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_shipping_details.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +13 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank.rb +208 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank_account.rb +299 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +47 -37
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_customer.rb +1 -7
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_fluid_data.rb +4 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +3 -18
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +253 -16
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information_emv.rb +12 -12
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +20 -20
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +32 -12
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options_initiator.rb +4 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_bank_transfer_options.rb +424 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_capture_options.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_recurring_options.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb +8 -8
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_buyer_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +579 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_merchant_information.rb +39 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb +59 -9
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_bill_to.rb +11 -27
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_invoice_details.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_ship_to.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information_emv.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information.rb +5 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_authorization_options.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_merchant_information.rb +30 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb +9 -9
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +22 -4
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +5 -20
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb +4 -4
- 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 +14 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information_partner.rb +224 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information.rb +10 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_amount_details.rb +199 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_processing_information.rb +5 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information.rb +0 -15
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payouts_client_reference_information.rb +199 -0
- data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information_merchant_descriptor.rb +0 -15
- data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +0 -15
- data/lib/cybersource_rest_client/models/refund_capture_request.rb +1 -1
- data/lib/cybersource_rest_client/models/refund_payment_request.rb +1 -1
- data/lib/cybersource_rest_client/models/reporting_v3_conversion_details_get200_response.rb +213 -0
- data/lib/cybersource_rest_client/models/reporting_v3_conversion_details_get200_response_conversion_details.rb +275 -0
- data/lib/cybersource_rest_client/models/reporting_v3_conversion_details_get200_response_notes.rb +204 -0
- data/lib/cybersource_rest_client/models/reporting_v3_net_fundings_get200_response.rb +266 -0
- data/lib/cybersource_rest_client/models/reporting_v3_net_fundings_get200_response_net_funding_summaries.rb +281 -0
- data/lib/cybersource_rest_client/models/reporting_v3_net_fundings_get200_response_total_purchases.rb +203 -0
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response.rb +273 -0
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_authorizations.rb +255 -0
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_fee_and_funding_details.rb +290 -0
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_others.rb +260 -0
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_request_details.rb +235 -0
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlement_statuses.rb +240 -0
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb +304 -0
- data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_get200_response_report_definitions.rb +1 -0
- data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_name_get200_response_attributes.rb +2 -0
- data/lib/cybersource_rest_client/models/reporting_v3_report_subscriptions_get200_response_subscriptions.rb +13 -13
- data/lib/cybersource_rest_client/models/reporting_v3_reports_get200_response_reports.rb +18 -8
- data/lib/cybersource_rest_client/models/reporting_v3_reports_id_get200_response.rb +15 -15
- data/lib/cybersource_rest_client/models/{reporting_v3_report_subscriptions_get200_response_report_preferences.rb → reporting_v3_reports_id_get200_response_report_preferences.rb} +1 -1
- data/lib/cybersource_rest_client/models/{reporting_v3_notificationof_changes_get400_response.rb → reportingv3_report_downloads_get400_response.rb} +42 -52
- data/lib/cybersource_rest_client/models/reportingv3_report_downloads_get400_response_details.rb +195 -0
- data/lib/cybersource_rest_client/models/reportingv3reports_report_preferences.rb +229 -0
- data/lib/cybersource_rest_client/models/request_body.rb +74 -104
- data/lib/cybersource_rest_client/models/request_body_1.rb +159 -55
- data/lib/cybersource_rest_client/models/tms_v1_paymentinstruments_get200_response.rb +331 -0
- data/lib/cybersource_rest_client/models/tms_v1_paymentinstruments_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/tms_v1_paymentinstruments_post201_response_card.rb +302 -0
- data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_bank_account.rb +48 -0
- data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_card.rb +24 -0
- data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_merchant_initiated_transaction.rb +199 -0
- data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_processing_information_authorization_options_initiator.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv1paymentinstruments_bill_to.rb +183 -0
- data/lib/cybersource_rest_client/models/tmsv1paymentinstruments_buyer_information.rb +39 -0
- data/lib/cybersource_rest_client/models/tmsv1paymentinstruments_instrument_identifier.rb +24 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_error_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_merchant_information_merchant_descriptor.rb +0 -15
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +0 -30
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_customer.rb +184 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information_amount_details.rb +224 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card.rb +0 -15
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/ums_v1_users_get400_response.rb +271 -0
- metadata +70 -10
- data/lib/cybersource_rest_client/api/transaction_batch_api.rb +0 -77
@@ -57,10 +57,6 @@ module CyberSource
|
|
57
57
|
# @return Array for valid properties with the reasons
|
58
58
|
def list_invalid_properties
|
59
59
|
invalid_properties = Array.new
|
60
|
-
# if !@code.nil? && @code.to_s.length > 1
|
61
|
-
# invalid_properties.push('invalid value for "code", the character length must be smaller than or equal to 1.')
|
62
|
-
# end
|
63
|
-
|
64
60
|
if !@code_raw.nil? && @code_raw.to_s.length > 10
|
65
61
|
invalid_properties.push('invalid value for "code_raw", the character length must be smaller than or equal to 10.')
|
66
62
|
end
|
@@ -71,21 +67,10 @@ module CyberSource
|
|
71
67
|
# Check to see if the all the properties in the model are valid
|
72
68
|
# @return true if the model is valid
|
73
69
|
def valid?
|
74
|
-
# return false if !@code.nil? && @code.to_s.length > 1
|
75
70
|
return false if !@code_raw.nil? && @code_raw.to_s.length > 10
|
76
71
|
true
|
77
72
|
end
|
78
73
|
|
79
|
-
# Custom attribute writer method with validation
|
80
|
-
# @param [Object] code Value to be assigned
|
81
|
-
def code=(code)
|
82
|
-
# if !code.nil? && code.to_s.length > 1
|
83
|
-
# fail ArgumentError, 'invalid value for "code", the character length must be smaller than or equal to 1.'
|
84
|
-
# end
|
85
|
-
|
86
|
-
@code = code
|
87
|
-
end
|
88
|
-
|
89
74
|
# Custom attribute writer method with validation
|
90
75
|
# @param [Object] code_raw Value to be assigned
|
91
76
|
def code_raw=(code_raw)
|
@@ -44,10 +44,10 @@ module CyberSource
|
|
44
44
|
# Raw Electronic Verification response code from the processor for the customer’s street address.
|
45
45
|
attr_accessor :street_raw
|
46
46
|
|
47
|
-
#
|
47
|
+
# The description for this field is not available.
|
48
48
|
attr_accessor :name
|
49
49
|
|
50
|
-
#
|
50
|
+
# The description for this field is not available.
|
51
51
|
attr_accessor :name_raw
|
52
52
|
|
53
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -0,0 +1,249 @@
|
|
1
|
+
=begin
|
2
|
+
#CyberSource Flex API
|
3
|
+
|
4
|
+
#Simple PAN tokenization service
|
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 PtsV2PaymentsPost201ResponseProcessorInformationRouting
|
17
|
+
# Indicates whether the transaction was routed on a credit network, a debit network, or the STAR signature debit network. Possible values: - C: Credit network - D: Debit network (without signature) - S: STAR signature debit network This field is supported only on FDC Nashville Global.
|
18
|
+
attr_accessor :network
|
19
|
+
|
20
|
+
# Name of the network on which the transaction was routed. This field is supported only on FDC Nashville Global.
|
21
|
+
attr_accessor :network_name
|
22
|
+
|
23
|
+
# Indicates whether you need to obtain the cardholder's signature. Possible values: - Y: You need to obtain the cardholder's signature. - N: You do not need to obtain the cardholder's signature. This field is supported only on FDC Nashville Global.
|
24
|
+
attr_accessor :customer_signature_required
|
25
|
+
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
27
|
+
def self.attribute_map
|
28
|
+
{
|
29
|
+
:'network' => :'network',
|
30
|
+
:'network_name' => :'networkName',
|
31
|
+
:'customer_signature_required' => :'customerSignatureRequired'
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
# Attribute type mapping.
|
36
|
+
def self.swagger_types
|
37
|
+
{
|
38
|
+
:'network' => :'String',
|
39
|
+
:'network_name' => :'String',
|
40
|
+
:'customer_signature_required' => :'String'
|
41
|
+
}
|
42
|
+
end
|
43
|
+
|
44
|
+
# Initializes the object
|
45
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
46
|
+
def initialize(attributes = {})
|
47
|
+
return unless attributes.is_a?(Hash)
|
48
|
+
|
49
|
+
# convert string to symbol for hash key
|
50
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
51
|
+
|
52
|
+
if attributes.has_key?(:'network')
|
53
|
+
self.network = attributes[:'network']
|
54
|
+
end
|
55
|
+
|
56
|
+
if attributes.has_key?(:'networkName')
|
57
|
+
self.network_name = attributes[:'networkName']
|
58
|
+
end
|
59
|
+
|
60
|
+
if attributes.has_key?(:'customerSignatureRequired')
|
61
|
+
self.customer_signature_required = attributes[:'customerSignatureRequired']
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
66
|
+
# @return Array for valid properties with the reasons
|
67
|
+
def list_invalid_properties
|
68
|
+
invalid_properties = Array.new
|
69
|
+
if !@network.nil? && @network.to_s.length > 1
|
70
|
+
invalid_properties.push('invalid value for "network", the character length must be smaller than or equal to 1.')
|
71
|
+
end
|
72
|
+
|
73
|
+
if !@network_name.nil? && @network_name.to_s.length > 10
|
74
|
+
invalid_properties.push('invalid value for "network_name", the character length must be smaller than or equal to 10.')
|
75
|
+
end
|
76
|
+
|
77
|
+
if !@customer_signature_required.nil? && @customer_signature_required.to_s.length > 1
|
78
|
+
invalid_properties.push('invalid value for "customer_signature_required", the character length must be smaller than or equal to 1.')
|
79
|
+
end
|
80
|
+
|
81
|
+
invalid_properties
|
82
|
+
end
|
83
|
+
|
84
|
+
# Check to see if the all the properties in the model are valid
|
85
|
+
# @return true if the model is valid
|
86
|
+
def valid?
|
87
|
+
return false if !@network.nil? && @network.to_s.length > 1
|
88
|
+
return false if !@network_name.nil? && @network_name.to_s.length > 10
|
89
|
+
return false if !@customer_signature_required.nil? && @customer_signature_required.to_s.length > 1
|
90
|
+
true
|
91
|
+
end
|
92
|
+
|
93
|
+
# Custom attribute writer method with validation
|
94
|
+
# @param [Object] network Value to be assigned
|
95
|
+
def network=(network)
|
96
|
+
if !network.nil? && network.to_s.length > 1
|
97
|
+
fail ArgumentError, 'invalid value for "network", the character length must be smaller than or equal to 1.'
|
98
|
+
end
|
99
|
+
|
100
|
+
@network = network
|
101
|
+
end
|
102
|
+
|
103
|
+
# Custom attribute writer method with validation
|
104
|
+
# @param [Object] network_name Value to be assigned
|
105
|
+
def network_name=(network_name)
|
106
|
+
if !network_name.nil? && network_name.to_s.length > 10
|
107
|
+
fail ArgumentError, 'invalid value for "network_name", the character length must be smaller than or equal to 10.'
|
108
|
+
end
|
109
|
+
|
110
|
+
@network_name = network_name
|
111
|
+
end
|
112
|
+
|
113
|
+
# Custom attribute writer method with validation
|
114
|
+
# @param [Object] customer_signature_required Value to be assigned
|
115
|
+
def customer_signature_required=(customer_signature_required)
|
116
|
+
if !customer_signature_required.nil? && customer_signature_required.to_s.length > 1
|
117
|
+
fail ArgumentError, 'invalid value for "customer_signature_required", the character length must be smaller than or equal to 1.'
|
118
|
+
end
|
119
|
+
|
120
|
+
@customer_signature_required = customer_signature_required
|
121
|
+
end
|
122
|
+
|
123
|
+
# Checks equality by comparing each attribute.
|
124
|
+
# @param [Object] Object to be compared
|
125
|
+
def ==(o)
|
126
|
+
return true if self.equal?(o)
|
127
|
+
self.class == o.class &&
|
128
|
+
network == o.network &&
|
129
|
+
network_name == o.network_name &&
|
130
|
+
customer_signature_required == o.customer_signature_required
|
131
|
+
end
|
132
|
+
|
133
|
+
# @see the `==` method
|
134
|
+
# @param [Object] Object to be compared
|
135
|
+
def eql?(o)
|
136
|
+
self == o
|
137
|
+
end
|
138
|
+
|
139
|
+
# Calculates hash code according to all attributes.
|
140
|
+
# @return [Fixnum] Hash code
|
141
|
+
def hash
|
142
|
+
[network, network_name, customer_signature_required].hash
|
143
|
+
end
|
144
|
+
|
145
|
+
# Builds the object from hash
|
146
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
147
|
+
# @return [Object] Returns the model itself
|
148
|
+
def build_from_hash(attributes)
|
149
|
+
return nil unless attributes.is_a?(Hash)
|
150
|
+
self.class.swagger_types.each_pair do |key, type|
|
151
|
+
if type =~ /\AArray<(.*)>/i
|
152
|
+
# check to ensure the input is an array given that the the attribute
|
153
|
+
# is documented as an array but the input is not
|
154
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
155
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
156
|
+
end
|
157
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
158
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
159
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
160
|
+
end
|
161
|
+
|
162
|
+
self
|
163
|
+
end
|
164
|
+
|
165
|
+
# Deserializes the data based on type
|
166
|
+
# @param string type Data type
|
167
|
+
# @param string value Value to be deserialized
|
168
|
+
# @return [Object] Deserialized data
|
169
|
+
def _deserialize(type, value)
|
170
|
+
case type.to_sym
|
171
|
+
when :DateTime
|
172
|
+
DateTime.parse(value)
|
173
|
+
when :Date
|
174
|
+
Date.parse(value)
|
175
|
+
when :String
|
176
|
+
value.to_s
|
177
|
+
when :Integer
|
178
|
+
value.to_i
|
179
|
+
when :Float
|
180
|
+
value.to_f
|
181
|
+
when :BOOLEAN
|
182
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
183
|
+
true
|
184
|
+
else
|
185
|
+
false
|
186
|
+
end
|
187
|
+
when :Object
|
188
|
+
# generic object (usually a Hash), return directly
|
189
|
+
value
|
190
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
191
|
+
inner_type = Regexp.last_match[:inner_type]
|
192
|
+
value.map { |v| _deserialize(inner_type, v) }
|
193
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
194
|
+
k_type = Regexp.last_match[:k_type]
|
195
|
+
v_type = Regexp.last_match[:v_type]
|
196
|
+
{}.tap do |hash|
|
197
|
+
value.each do |k, v|
|
198
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
199
|
+
end
|
200
|
+
end
|
201
|
+
else # model
|
202
|
+
temp_model = CyberSource.const_get(type).new
|
203
|
+
temp_model.build_from_hash(value)
|
204
|
+
end
|
205
|
+
end
|
206
|
+
|
207
|
+
# Returns the string representation of the object
|
208
|
+
# @return [String] String presentation of the object
|
209
|
+
def to_s
|
210
|
+
to_hash.to_s
|
211
|
+
end
|
212
|
+
|
213
|
+
# to_body is an alias to to_hash (backward compatibility)
|
214
|
+
# @return [Hash] Returns the object in the form of hash
|
215
|
+
def to_body
|
216
|
+
to_hash
|
217
|
+
end
|
218
|
+
|
219
|
+
# Returns the object in the form of hash
|
220
|
+
# @return [Hash] Returns the object in the form of hash
|
221
|
+
def to_hash
|
222
|
+
hash = {}
|
223
|
+
self.class.attribute_map.each_pair do |attr, param|
|
224
|
+
value = self.send(attr)
|
225
|
+
next if value.nil?
|
226
|
+
hash[param] = _to_hash(value)
|
227
|
+
end
|
228
|
+
hash
|
229
|
+
end
|
230
|
+
|
231
|
+
# Outputs non-array value in the form of hash
|
232
|
+
# For object, use to_hash. Otherwise, just return the value
|
233
|
+
# @param [Object] value Any valid value
|
234
|
+
# @return [Hash] Returns the value in the form of hash
|
235
|
+
def _to_hash(value)
|
236
|
+
if value.is_a?(Array)
|
237
|
+
value.compact.map { |v| _to_hash(v) }
|
238
|
+
elsif value.is_a?(Hash)
|
239
|
+
{}.tap do |hash|
|
240
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
241
|
+
end
|
242
|
+
elsif value.respond_to? :to_hash
|
243
|
+
value.to_hash
|
244
|
+
else
|
245
|
+
value
|
246
|
+
end
|
247
|
+
end
|
248
|
+
end
|
249
|
+
end
|
@@ -17,10 +17,10 @@ module CyberSource
|
|
17
17
|
# Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC.
|
18
18
|
attr_accessor :submit_time_utc
|
19
19
|
|
20
|
-
# The status of the submitted transaction.
|
20
|
+
# The status of the submitted transaction. Possible values: - INVALID_REQUEST
|
21
21
|
attr_accessor :status
|
22
22
|
|
23
|
-
# The reason of the status.
|
23
|
+
# The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA - DUPLICATE_REQUEST - INVALID_CARD - CARD_TYPE_NOT_ACCEPTED - INVALID_MERCHANT_CONFIGURATION - PROCESSOR_UNAVAILABLE - INVALID_AMOUNT - INVALID_CARD_TYPE - INVALID_PAYMENT_ID - DEBIT_CARD_USEAGE_EXCEEDD_LIMIT
|
24
24
|
attr_accessor :reason
|
25
25
|
|
26
26
|
# The detail message related to the status and reason listed above.
|
@@ -17,10 +17,10 @@ module CyberSource
|
|
17
17
|
# Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC.
|
18
18
|
attr_accessor :submit_time_utc
|
19
19
|
|
20
|
-
# The status of the submitted transaction.
|
20
|
+
# The status of the submitted transaction. Possible values: - SERVER_ERROR
|
21
21
|
attr_accessor :status
|
22
22
|
|
23
|
-
# The reason of the status.
|
23
|
+
# The reason of the status. Possible values: - SYSTEM_ERROR - SERVER_TIMEOUT - SERVICE_TIMEOUT - INVALID_OR_MISSING_CONFIG - PROCESSOR_TIMEOUT
|
24
24
|
attr_accessor :reason
|
25
25
|
|
26
26
|
# The detail message related to the status and reason listed above.
|
@@ -22,7 +22,7 @@ module CyberSource
|
|
22
22
|
# Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC.
|
23
23
|
attr_accessor :submit_time_utc
|
24
24
|
|
25
|
-
# The status of the submitted transaction.
|
25
|
+
# The status of the submitted transaction. Possible values: - PENDING
|
26
26
|
attr_accessor :status
|
27
27
|
|
28
28
|
# The reconciliation id for the submitted transaction. This value is not returned for all processors.
|
@@ -20,11 +20,22 @@ module CyberSource
|
|
20
20
|
# Name of the Japanese acquirer that processed the transaction. Returned only for CCS (CAFIS) and JCN Gateway. Please contact the CyberSource Japan Support Group for more information.
|
21
21
|
attr_accessor :forwarded_acquirer_code
|
22
22
|
|
23
|
+
# Identifier that was assigned to you by your acquirer. This value must be printed on the receipt. This field is supported only on **American Express Direct**, **FDC Nashville Global**, and **SIX**.
|
24
|
+
attr_accessor :merchant_number
|
25
|
+
|
26
|
+
# For most processors, this is the error message sent directly from the bank. Returned only when the processor returns this value. Important Do not use this field to evaluate the result of the authorization.
|
27
|
+
attr_accessor :response_code
|
28
|
+
|
29
|
+
attr_accessor :ach_verification
|
30
|
+
|
23
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
32
|
def self.attribute_map
|
25
33
|
{
|
26
34
|
:'transaction_id' => :'transactionId',
|
27
|
-
:'forwarded_acquirer_code' => :'forwardedAcquirerCode'
|
35
|
+
:'forwarded_acquirer_code' => :'forwardedAcquirerCode',
|
36
|
+
:'merchant_number' => :'merchantNumber',
|
37
|
+
:'response_code' => :'responseCode',
|
38
|
+
:'ach_verification' => :'achVerification'
|
28
39
|
}
|
29
40
|
end
|
30
41
|
|
@@ -32,7 +43,10 @@ module CyberSource
|
|
32
43
|
def self.swagger_types
|
33
44
|
{
|
34
45
|
:'transaction_id' => :'String',
|
35
|
-
:'forwarded_acquirer_code' => :'String'
|
46
|
+
:'forwarded_acquirer_code' => :'String',
|
47
|
+
:'merchant_number' => :'String',
|
48
|
+
:'response_code' => :'String',
|
49
|
+
:'ach_verification' => :'PtsV2PaymentsPost201ResponseProcessorInformationAchVerification'
|
36
50
|
}
|
37
51
|
end
|
38
52
|
|
@@ -51,6 +65,18 @@ module CyberSource
|
|
51
65
|
if attributes.has_key?(:'forwardedAcquirerCode')
|
52
66
|
self.forwarded_acquirer_code = attributes[:'forwardedAcquirerCode']
|
53
67
|
end
|
68
|
+
|
69
|
+
if attributes.has_key?(:'merchantNumber')
|
70
|
+
self.merchant_number = attributes[:'merchantNumber']
|
71
|
+
end
|
72
|
+
|
73
|
+
if attributes.has_key?(:'responseCode')
|
74
|
+
self.response_code = attributes[:'responseCode']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.has_key?(:'achVerification')
|
78
|
+
self.ach_verification = attributes[:'achVerification']
|
79
|
+
end
|
54
80
|
end
|
55
81
|
|
56
82
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -65,6 +91,14 @@ module CyberSource
|
|
65
91
|
invalid_properties.push('invalid value for "forwarded_acquirer_code", the character length must be smaller than or equal to 32.')
|
66
92
|
end
|
67
93
|
|
94
|
+
if !@merchant_number.nil? && @merchant_number.to_s.length > 15
|
95
|
+
invalid_properties.push('invalid value for "merchant_number", the character length must be smaller than or equal to 15.')
|
96
|
+
end
|
97
|
+
|
98
|
+
if !@response_code.nil? && @response_code.to_s.length > 10
|
99
|
+
invalid_properties.push('invalid value for "response_code", the character length must be smaller than or equal to 10.')
|
100
|
+
end
|
101
|
+
|
68
102
|
invalid_properties
|
69
103
|
end
|
70
104
|
|
@@ -73,6 +107,8 @@ module CyberSource
|
|
73
107
|
def valid?
|
74
108
|
return false if !@transaction_id.nil? && @transaction_id.to_s.length > 18
|
75
109
|
return false if !@forwarded_acquirer_code.nil? && @forwarded_acquirer_code.to_s.length > 32
|
110
|
+
return false if !@merchant_number.nil? && @merchant_number.to_s.length > 15
|
111
|
+
return false if !@response_code.nil? && @response_code.to_s.length > 10
|
76
112
|
true
|
77
113
|
end
|
78
114
|
|
@@ -96,13 +132,36 @@ module CyberSource
|
|
96
132
|
@forwarded_acquirer_code = forwarded_acquirer_code
|
97
133
|
end
|
98
134
|
|
135
|
+
# Custom attribute writer method with validation
|
136
|
+
# @param [Object] merchant_number Value to be assigned
|
137
|
+
def merchant_number=(merchant_number)
|
138
|
+
if !merchant_number.nil? && merchant_number.to_s.length > 15
|
139
|
+
fail ArgumentError, 'invalid value for "merchant_number", the character length must be smaller than or equal to 15.'
|
140
|
+
end
|
141
|
+
|
142
|
+
@merchant_number = merchant_number
|
143
|
+
end
|
144
|
+
|
145
|
+
# Custom attribute writer method with validation
|
146
|
+
# @param [Object] response_code Value to be assigned
|
147
|
+
def response_code=(response_code)
|
148
|
+
if !response_code.nil? && response_code.to_s.length > 10
|
149
|
+
fail ArgumentError, 'invalid value for "response_code", the character length must be smaller than or equal to 10.'
|
150
|
+
end
|
151
|
+
|
152
|
+
@response_code = response_code
|
153
|
+
end
|
154
|
+
|
99
155
|
# Checks equality by comparing each attribute.
|
100
156
|
# @param [Object] Object to be compared
|
101
157
|
def ==(o)
|
102
158
|
return true if self.equal?(o)
|
103
159
|
self.class == o.class &&
|
104
160
|
transaction_id == o.transaction_id &&
|
105
|
-
forwarded_acquirer_code == o.forwarded_acquirer_code
|
161
|
+
forwarded_acquirer_code == o.forwarded_acquirer_code &&
|
162
|
+
merchant_number == o.merchant_number &&
|
163
|
+
response_code == o.response_code &&
|
164
|
+
ach_verification == o.ach_verification
|
106
165
|
end
|
107
166
|
|
108
167
|
# @see the `==` method
|
@@ -114,7 +173,7 @@ module CyberSource
|
|
114
173
|
# Calculates hash code according to all attributes.
|
115
174
|
# @return [Fixnum] Hash code
|
116
175
|
def hash
|
117
|
-
[transaction_id, forwarded_acquirer_code].hash
|
176
|
+
[transaction_id, forwarded_acquirer_code, merchant_number, response_code, ach_verification].hash
|
118
177
|
end
|
119
178
|
|
120
179
|
# Builds the object from hash
|