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
@@ -14,20 +14,30 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class PtsV2PaymentsPost201ResponseClientReferenceInformation
|
17
|
-
# Client-generated order reference or tracking number. CyberSource recommends that you send a unique value for each transaction so that you can perform meaningful searches for the transaction.
|
17
|
+
# Client-generated order reference or tracking number. CyberSource recommends that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. For information about tracking orders, see Getting Started with CyberSource Advanced for the SCMP API. **FDC Nashville Global**\\ Certain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports.
|
18
18
|
attr_accessor :code
|
19
19
|
|
20
|
+
# Date and time at your physical location. Format: `YYYYMMDDhhmmss`, where YYYY = year, MM = month, DD = day, hh = hour, mm = minutes ss = seconds
|
21
|
+
attr_accessor :submit_local_date_time
|
22
|
+
|
23
|
+
# Merchant ID that was used to create the subscription or customer profile for which the service was requested. If your CyberSource account is enabled for Recurring Billing, this field is returned only if you are using subscription sharing and if your merchant ID is in the same merchant ID pool as the owner merchant ID. See the subscription sharing information in Recurring Billing Using the Simple Order API. If your CyberSource account is enabled for Payment Tokenization, this field is returned only if you are using profile sharing and if your merchant ID is in the same merchant ID pool as the owner merchant ID. See the profile sharing information in Payment Tokenization Using the Simple Order API.
|
24
|
+
attr_accessor :owner_merchant_id
|
25
|
+
|
20
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
27
|
def self.attribute_map
|
22
28
|
{
|
23
|
-
:'code' => :'code'
|
29
|
+
:'code' => :'code',
|
30
|
+
:'submit_local_date_time' => :'submitLocalDateTime',
|
31
|
+
:'owner_merchant_id' => :'ownerMerchantId'
|
24
32
|
}
|
25
33
|
end
|
26
34
|
|
27
35
|
# Attribute type mapping.
|
28
36
|
def self.swagger_types
|
29
37
|
{
|
30
|
-
:'code' => :'String'
|
38
|
+
:'code' => :'String',
|
39
|
+
:'submit_local_date_time' => :'String',
|
40
|
+
:'owner_merchant_id' => :'String'
|
31
41
|
}
|
32
42
|
end
|
33
43
|
|
@@ -42,6 +52,14 @@ module CyberSource
|
|
42
52
|
if attributes.has_key?(:'code')
|
43
53
|
self.code = attributes[:'code']
|
44
54
|
end
|
55
|
+
|
56
|
+
if attributes.has_key?(:'submitLocalDateTime')
|
57
|
+
self.submit_local_date_time = attributes[:'submitLocalDateTime']
|
58
|
+
end
|
59
|
+
|
60
|
+
if attributes.has_key?(:'ownerMerchantId')
|
61
|
+
self.owner_merchant_id = attributes[:'ownerMerchantId']
|
62
|
+
end
|
45
63
|
end
|
46
64
|
|
47
65
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -52,6 +70,10 @@ module CyberSource
|
|
52
70
|
invalid_properties.push('invalid value for "code", the character length must be smaller than or equal to 50.')
|
53
71
|
end
|
54
72
|
|
73
|
+
if !@submit_local_date_time.nil? && @submit_local_date_time.to_s.length > 14
|
74
|
+
invalid_properties.push('invalid value for "submit_local_date_time", the character length must be smaller than or equal to 14.')
|
75
|
+
end
|
76
|
+
|
55
77
|
invalid_properties
|
56
78
|
end
|
57
79
|
|
@@ -59,6 +81,7 @@ module CyberSource
|
|
59
81
|
# @return true if the model is valid
|
60
82
|
def valid?
|
61
83
|
return false if !@code.nil? && @code.to_s.length > 50
|
84
|
+
return false if !@submit_local_date_time.nil? && @submit_local_date_time.to_s.length > 14
|
62
85
|
true
|
63
86
|
end
|
64
87
|
|
@@ -72,12 +95,24 @@ module CyberSource
|
|
72
95
|
@code = code
|
73
96
|
end
|
74
97
|
|
98
|
+
# Custom attribute writer method with validation
|
99
|
+
# @param [Object] submit_local_date_time Value to be assigned
|
100
|
+
def submit_local_date_time=(submit_local_date_time)
|
101
|
+
if !submit_local_date_time.nil? && submit_local_date_time.to_s.length > 14
|
102
|
+
fail ArgumentError, 'invalid value for "submit_local_date_time", the character length must be smaller than or equal to 14.'
|
103
|
+
end
|
104
|
+
|
105
|
+
@submit_local_date_time = submit_local_date_time
|
106
|
+
end
|
107
|
+
|
75
108
|
# Checks equality by comparing each attribute.
|
76
109
|
# @param [Object] Object to be compared
|
77
110
|
def ==(o)
|
78
111
|
return true if self.equal?(o)
|
79
112
|
self.class == o.class &&
|
80
|
-
code == o.code
|
113
|
+
code == o.code &&
|
114
|
+
submit_local_date_time == o.submit_local_date_time &&
|
115
|
+
owner_merchant_id == o.owner_merchant_id
|
81
116
|
end
|
82
117
|
|
83
118
|
# @see the `==` method
|
@@ -89,7 +124,7 @@ module CyberSource
|
|
89
124
|
# Calculates hash code according to all attributes.
|
90
125
|
# @return [Fixnum] Hash code
|
91
126
|
def hash
|
92
|
-
[code].hash
|
127
|
+
[code, submit_local_date_time, owner_merchant_id].hash
|
93
128
|
end
|
94
129
|
|
95
130
|
# Builds the object from hash
|
data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information.rb
CHANGED
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class PtsV2PaymentsPost201ResponseErrorInformation
|
17
|
-
# The reason of the status.
|
17
|
+
# The reason of the status. Possible values: - AVS_FAILED - CONTACT_PROCESSOR - EXPIRED_CARD - PROCESSOR_DECLINED - INSUFFICIENT_FUND - STOLEN_LOST_CARD - ISSUER_UNAVAILABLE - UNAUTHORIZED_CARD - CVN_NOT_MATCH - EXCEEDS_CREDIT_LIMIT - INVALID_CVN - DECLINED_CHECK - BLACKLISTED_CUSTOMER - SUSPENDED_ACCOUNT - PAYMENT_REFUSED - CV_FAILED - INVALID_ACCOUNT - GENERAL_DECLINE - INVALID_MERCHANT_CONFIGURATION
|
18
18
|
attr_accessor :reason
|
19
19
|
|
20
20
|
# The detail message related to the status and reason listed above.
|
@@ -17,7 +17,7 @@ module CyberSource
|
|
17
17
|
# This is the flattened JSON object field name/path that is either missing or invalid.
|
18
18
|
attr_accessor :field
|
19
19
|
|
20
|
-
# Possible reasons for the error.
|
20
|
+
# Possible reasons for the error. Possible values: - MISSING_FIELD - INVALID_DATA
|
21
21
|
attr_accessor :reason
|
22
22
|
|
23
23
|
class EnumAttributeValidator
|
data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb
ADDED
@@ -0,0 +1,519 @@
|
|
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 PtsV2PaymentsPost201ResponseInstallmentInformation
|
17
|
+
# Additional costs charged by the issuer to fund the installment payments. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder's request for Crediario installment payments in Brazil. See Installment Payments on CyberSource through VisaNet. This field is supported only for `Crediario` installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 128-139 - Field: Total Other Costs
|
18
|
+
attr_accessor :additional_costs
|
19
|
+
|
20
|
+
# Additional costs divided by the amount funded. For example: - A value of 1.0 specifies 1%. - A value of 4.0 specifies 4%. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder's request for Crediario installment payments in Brazil. See Installment Payments on CyberSource through VisaNet. This field is supported only for `Crediario` installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 140-143 - Field: Percent of Total Other Costs
|
21
|
+
attr_accessor :additional_costs_percentage
|
22
|
+
|
23
|
+
# Amount funded. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder's request for Crediario installment payments in Brazil. See Installment Payments on CyberSource through VisaNet. This field is supported only for `Crediario` installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 48-59 - Field: Total Amount Funded
|
24
|
+
attr_accessor :amount_funded
|
25
|
+
|
26
|
+
# Amount requested divided by the amount funded. For example: - A value of 90.0 specifies 90%. - A value of 93.7 specifies 93.7%. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder's request for Crediario installment payments in Brazil. See Installment Payments on CyberSource through VisaNet. This field is supported only for `Crediario` installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 60-63 - Field: Percent of Amount Requested
|
27
|
+
attr_accessor :amount_requested_percentage
|
28
|
+
|
29
|
+
# Annual cost of financing the installment payments. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder's request for Crediario installment payments in Brazil. See Installment Payments on CyberSource through VisaNet. This field is supported only for `Crediario` installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 158-164 - Field: Annual Total Cost of Financing
|
30
|
+
attr_accessor :annual_financing_cost
|
31
|
+
|
32
|
+
# Annual interest rate. For example: - A value of 1.0 specifies 1%. - A value of 4.0 specifies 4%. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder's request for Crediario installment payments in Brazil. See Installment Payments on CyberSource through VisaNet. This field is supported only for `Crediario` installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 151-157 - Field: Annual Interest Rate
|
33
|
+
attr_accessor :annual_interest_rate
|
34
|
+
|
35
|
+
# Expenses charged by the issuer to fund the installment payments. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder's request for Crediario installment payments in Brazil. See Installment Payments on CyberSource through VisaNet. This field is supported only for `Crediario` installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 64-75 - Field: Total Expenses
|
36
|
+
attr_accessor :expenses
|
37
|
+
|
38
|
+
# Expenses divided by the amount funded. For example: - A value of 1.0 specifies 1%. - A value of 4.0 specifies 4%. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder's request for Crediario installment payments in Brazil. See Installment Payments on CyberSource through VisaNet. This field is supported only for `Crediario` installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 76-79 - Field: Percent of Total Expenses
|
39
|
+
attr_accessor :expenses_percentage
|
40
|
+
|
41
|
+
# Fees charged by the issuer to fund the installment payments. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder's request for Crediario installment payments in Brazil. See Installment Payments on CyberSource through VisaNet. This field is supported only for `Crediario` installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 80-91 - Field: Total Fees
|
42
|
+
attr_accessor :fees
|
43
|
+
|
44
|
+
# Fees divided by the amount funded. For example: - A value of 1.0 specifies 1%. - A value of 4.0 specifies 4%. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder's request for Crediario installment payments in Brazil. See Installment Payments on CyberSource through VisaNet. This field is supported only for Crediario installment payments in Brazil on CyberSource through VisaNet. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 92-95 - Field: Percent of Total Fees
|
45
|
+
attr_accessor :fees_percentage
|
46
|
+
|
47
|
+
# Insurance charged by the issuer to fund the installment payments. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder's request for Crediario installment payments in Brazil. See Installment Payments on CyberSource through VisaNet. This field is supported only for `Crediario` installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 112-123 - Field: Total Insurance
|
48
|
+
attr_accessor :insurance
|
49
|
+
|
50
|
+
# Insurance costs divided by the amount funded. For example: - A value of 1.0 specifies 1%. - A value of 4.0 specifies 4%. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder's request for Crediario installment payments in Brazil. See Installment Payments on CyberSource through VisaNet. This field is supported only for `Crediario` installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 124-127 - Field: Percent Of Total Insurance
|
51
|
+
attr_accessor :insurance_percentage
|
52
|
+
|
53
|
+
# Monthly interest rate. For example: - A value of 1.0 specifies 1%. - A value of 4.0 specifies 4%. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder's request for Crediario installment payments in Brazil. See Installment Payments on CyberSource through VisaNet. This field is supported only for `Crediario` installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 144-150 - Field: Monthly Interest Rate
|
54
|
+
attr_accessor :monthly_interest_rate
|
55
|
+
|
56
|
+
# Taxes collected by the issuer to fund the installment payments. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder's request for Crediario installment payments in Brazil. See Installment Payments on CyberSource through VisaNet. This field is supported only for `Crediario` installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 96-107 - Field: Total Taxes
|
57
|
+
attr_accessor :taxes
|
58
|
+
|
59
|
+
# Taxes divided by the amount funded. For example: - A value of 1.0 specifies 1%. - A value of 4.0 specifies 4%. This field is included in the authorization reply for the Crediario eligibility request when the issuer approves the cardholder's request for Crediario installment payments in Brazil. See Installment Payments on CyberSource through VisaNet. This field is supported only for `Crediario` installment payments in Brazil on **CyberSource through VisaNet**. The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR9 - Position: 108-111 - Field: Percent of Total Taxes
|
60
|
+
attr_accessor :taxes_percentage
|
61
|
+
|
62
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
63
|
+
def self.attribute_map
|
64
|
+
{
|
65
|
+
:'additional_costs' => :'additionalCosts',
|
66
|
+
:'additional_costs_percentage' => :'additionalCostsPercentage',
|
67
|
+
:'amount_funded' => :'amountFunded',
|
68
|
+
:'amount_requested_percentage' => :'amountRequestedPercentage',
|
69
|
+
:'annual_financing_cost' => :'annualFinancingCost',
|
70
|
+
:'annual_interest_rate' => :'annualInterestRate',
|
71
|
+
:'expenses' => :'expenses',
|
72
|
+
:'expenses_percentage' => :'expensesPercentage',
|
73
|
+
:'fees' => :'fees',
|
74
|
+
:'fees_percentage' => :'feesPercentage',
|
75
|
+
:'insurance' => :'insurance',
|
76
|
+
:'insurance_percentage' => :'insurancePercentage',
|
77
|
+
:'monthly_interest_rate' => :'monthlyInterestRate',
|
78
|
+
:'taxes' => :'taxes',
|
79
|
+
:'taxes_percentage' => :'taxesPercentage'
|
80
|
+
}
|
81
|
+
end
|
82
|
+
|
83
|
+
# Attribute type mapping.
|
84
|
+
def self.swagger_types
|
85
|
+
{
|
86
|
+
:'additional_costs' => :'String',
|
87
|
+
:'additional_costs_percentage' => :'String',
|
88
|
+
:'amount_funded' => :'String',
|
89
|
+
:'amount_requested_percentage' => :'String',
|
90
|
+
:'annual_financing_cost' => :'String',
|
91
|
+
:'annual_interest_rate' => :'String',
|
92
|
+
:'expenses' => :'String',
|
93
|
+
:'expenses_percentage' => :'String',
|
94
|
+
:'fees' => :'String',
|
95
|
+
:'fees_percentage' => :'String',
|
96
|
+
:'insurance' => :'String',
|
97
|
+
:'insurance_percentage' => :'String',
|
98
|
+
:'monthly_interest_rate' => :'String',
|
99
|
+
:'taxes' => :'String',
|
100
|
+
:'taxes_percentage' => :'String'
|
101
|
+
}
|
102
|
+
end
|
103
|
+
|
104
|
+
# Initializes the object
|
105
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
106
|
+
def initialize(attributes = {})
|
107
|
+
return unless attributes.is_a?(Hash)
|
108
|
+
|
109
|
+
# convert string to symbol for hash key
|
110
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
111
|
+
|
112
|
+
if attributes.has_key?(:'additionalCosts')
|
113
|
+
self.additional_costs = attributes[:'additionalCosts']
|
114
|
+
end
|
115
|
+
|
116
|
+
if attributes.has_key?(:'additionalCostsPercentage')
|
117
|
+
self.additional_costs_percentage = attributes[:'additionalCostsPercentage']
|
118
|
+
end
|
119
|
+
|
120
|
+
if attributes.has_key?(:'amountFunded')
|
121
|
+
self.amount_funded = attributes[:'amountFunded']
|
122
|
+
end
|
123
|
+
|
124
|
+
if attributes.has_key?(:'amountRequestedPercentage')
|
125
|
+
self.amount_requested_percentage = attributes[:'amountRequestedPercentage']
|
126
|
+
end
|
127
|
+
|
128
|
+
if attributes.has_key?(:'annualFinancingCost')
|
129
|
+
self.annual_financing_cost = attributes[:'annualFinancingCost']
|
130
|
+
end
|
131
|
+
|
132
|
+
if attributes.has_key?(:'annualInterestRate')
|
133
|
+
self.annual_interest_rate = attributes[:'annualInterestRate']
|
134
|
+
end
|
135
|
+
|
136
|
+
if attributes.has_key?(:'expenses')
|
137
|
+
self.expenses = attributes[:'expenses']
|
138
|
+
end
|
139
|
+
|
140
|
+
if attributes.has_key?(:'expensesPercentage')
|
141
|
+
self.expenses_percentage = attributes[:'expensesPercentage']
|
142
|
+
end
|
143
|
+
|
144
|
+
if attributes.has_key?(:'fees')
|
145
|
+
self.fees = attributes[:'fees']
|
146
|
+
end
|
147
|
+
|
148
|
+
if attributes.has_key?(:'feesPercentage')
|
149
|
+
self.fees_percentage = attributes[:'feesPercentage']
|
150
|
+
end
|
151
|
+
|
152
|
+
if attributes.has_key?(:'insurance')
|
153
|
+
self.insurance = attributes[:'insurance']
|
154
|
+
end
|
155
|
+
|
156
|
+
if attributes.has_key?(:'insurancePercentage')
|
157
|
+
self.insurance_percentage = attributes[:'insurancePercentage']
|
158
|
+
end
|
159
|
+
|
160
|
+
if attributes.has_key?(:'monthlyInterestRate')
|
161
|
+
self.monthly_interest_rate = attributes[:'monthlyInterestRate']
|
162
|
+
end
|
163
|
+
|
164
|
+
if attributes.has_key?(:'taxes')
|
165
|
+
self.taxes = attributes[:'taxes']
|
166
|
+
end
|
167
|
+
|
168
|
+
if attributes.has_key?(:'taxesPercentage')
|
169
|
+
self.taxes_percentage = attributes[:'taxesPercentage']
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
173
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
174
|
+
# @return Array for valid properties with the reasons
|
175
|
+
def list_invalid_properties
|
176
|
+
invalid_properties = Array.new
|
177
|
+
if !@additional_costs.nil? && @additional_costs.to_s.length > 12
|
178
|
+
invalid_properties.push('invalid value for "additional_costs", the character length must be smaller than or equal to 12.')
|
179
|
+
end
|
180
|
+
|
181
|
+
if !@additional_costs_percentage.nil? && @additional_costs_percentage.to_s.length > 4
|
182
|
+
invalid_properties.push('invalid value for "additional_costs_percentage", the character length must be smaller than or equal to 4.')
|
183
|
+
end
|
184
|
+
|
185
|
+
if !@amount_funded.nil? && @amount_funded.to_s.length > 12
|
186
|
+
invalid_properties.push('invalid value for "amount_funded", the character length must be smaller than or equal to 12.')
|
187
|
+
end
|
188
|
+
|
189
|
+
if !@amount_requested_percentage.nil? && @amount_requested_percentage.to_s.length > 4
|
190
|
+
invalid_properties.push('invalid value for "amount_requested_percentage", the character length must be smaller than or equal to 4.')
|
191
|
+
end
|
192
|
+
|
193
|
+
if !@annual_financing_cost.nil? && @annual_financing_cost.to_s.length > 7
|
194
|
+
invalid_properties.push('invalid value for "annual_financing_cost", the character length must be smaller than or equal to 7.')
|
195
|
+
end
|
196
|
+
|
197
|
+
if !@expenses.nil? && @expenses.to_s.length > 12
|
198
|
+
invalid_properties.push('invalid value for "expenses", the character length must be smaller than or equal to 12.')
|
199
|
+
end
|
200
|
+
|
201
|
+
if !@expenses_percentage.nil? && @expenses_percentage.to_s.length > 4
|
202
|
+
invalid_properties.push('invalid value for "expenses_percentage", the character length must be smaller than or equal to 4.')
|
203
|
+
end
|
204
|
+
|
205
|
+
if !@fees.nil? && @fees.to_s.length > 12
|
206
|
+
invalid_properties.push('invalid value for "fees", the character length must be smaller than or equal to 12.')
|
207
|
+
end
|
208
|
+
|
209
|
+
if !@fees_percentage.nil? && @fees_percentage.to_s.length > 4
|
210
|
+
invalid_properties.push('invalid value for "fees_percentage", the character length must be smaller than or equal to 4.')
|
211
|
+
end
|
212
|
+
|
213
|
+
if !@insurance.nil? && @insurance.to_s.length > 12
|
214
|
+
invalid_properties.push('invalid value for "insurance", the character length must be smaller than or equal to 12.')
|
215
|
+
end
|
216
|
+
|
217
|
+
if !@insurance_percentage.nil? && @insurance_percentage.to_s.length > 4
|
218
|
+
invalid_properties.push('invalid value for "insurance_percentage", the character length must be smaller than or equal to 4.')
|
219
|
+
end
|
220
|
+
|
221
|
+
if !@taxes.nil? && @taxes.to_s.length > 12
|
222
|
+
invalid_properties.push('invalid value for "taxes", the character length must be smaller than or equal to 12.')
|
223
|
+
end
|
224
|
+
|
225
|
+
if !@taxes_percentage.nil? && @taxes_percentage.to_s.length > 4
|
226
|
+
invalid_properties.push('invalid value for "taxes_percentage", the character length must be smaller than or equal to 4.')
|
227
|
+
end
|
228
|
+
|
229
|
+
invalid_properties
|
230
|
+
end
|
231
|
+
|
232
|
+
# Check to see if the all the properties in the model are valid
|
233
|
+
# @return true if the model is valid
|
234
|
+
def valid?
|
235
|
+
return false if !@additional_costs.nil? && @additional_costs.to_s.length > 12
|
236
|
+
return false if !@additional_costs_percentage.nil? && @additional_costs_percentage.to_s.length > 4
|
237
|
+
return false if !@amount_funded.nil? && @amount_funded.to_s.length > 12
|
238
|
+
return false if !@amount_requested_percentage.nil? && @amount_requested_percentage.to_s.length > 4
|
239
|
+
return false if !@annual_financing_cost.nil? && @annual_financing_cost.to_s.length > 7
|
240
|
+
return false if !@expenses.nil? && @expenses.to_s.length > 12
|
241
|
+
return false if !@expenses_percentage.nil? && @expenses_percentage.to_s.length > 4
|
242
|
+
return false if !@fees.nil? && @fees.to_s.length > 12
|
243
|
+
return false if !@fees_percentage.nil? && @fees_percentage.to_s.length > 4
|
244
|
+
return false if !@insurance.nil? && @insurance.to_s.length > 12
|
245
|
+
return false if !@insurance_percentage.nil? && @insurance_percentage.to_s.length > 4
|
246
|
+
return false if !@taxes.nil? && @taxes.to_s.length > 12
|
247
|
+
return false if !@taxes_percentage.nil? && @taxes_percentage.to_s.length > 4
|
248
|
+
true
|
249
|
+
end
|
250
|
+
|
251
|
+
# Custom attribute writer method with validation
|
252
|
+
# @param [Object] additional_costs Value to be assigned
|
253
|
+
def additional_costs=(additional_costs)
|
254
|
+
if !additional_costs.nil? && additional_costs.to_s.length > 12
|
255
|
+
fail ArgumentError, 'invalid value for "additional_costs", the character length must be smaller than or equal to 12.'
|
256
|
+
end
|
257
|
+
|
258
|
+
@additional_costs = additional_costs
|
259
|
+
end
|
260
|
+
|
261
|
+
# Custom attribute writer method with validation
|
262
|
+
# @param [Object] additional_costs_percentage Value to be assigned
|
263
|
+
def additional_costs_percentage=(additional_costs_percentage)
|
264
|
+
if !additional_costs_percentage.nil? && additional_costs_percentage.to_s.length > 4
|
265
|
+
fail ArgumentError, 'invalid value for "additional_costs_percentage", the character length must be smaller than or equal to 4.'
|
266
|
+
end
|
267
|
+
|
268
|
+
@additional_costs_percentage = additional_costs_percentage
|
269
|
+
end
|
270
|
+
|
271
|
+
# Custom attribute writer method with validation
|
272
|
+
# @param [Object] amount_funded Value to be assigned
|
273
|
+
def amount_funded=(amount_funded)
|
274
|
+
if !amount_funded.nil? && amount_funded.to_s.length > 12
|
275
|
+
fail ArgumentError, 'invalid value for "amount_funded", the character length must be smaller than or equal to 12.'
|
276
|
+
end
|
277
|
+
|
278
|
+
@amount_funded = amount_funded
|
279
|
+
end
|
280
|
+
|
281
|
+
# Custom attribute writer method with validation
|
282
|
+
# @param [Object] amount_requested_percentage Value to be assigned
|
283
|
+
def amount_requested_percentage=(amount_requested_percentage)
|
284
|
+
if !amount_requested_percentage.nil? && amount_requested_percentage.to_s.length > 4
|
285
|
+
fail ArgumentError, 'invalid value for "amount_requested_percentage", the character length must be smaller than or equal to 4.'
|
286
|
+
end
|
287
|
+
|
288
|
+
@amount_requested_percentage = amount_requested_percentage
|
289
|
+
end
|
290
|
+
|
291
|
+
# Custom attribute writer method with validation
|
292
|
+
# @param [Object] annual_financing_cost Value to be assigned
|
293
|
+
def annual_financing_cost=(annual_financing_cost)
|
294
|
+
if !annual_financing_cost.nil? && annual_financing_cost.to_s.length > 7
|
295
|
+
fail ArgumentError, 'invalid value for "annual_financing_cost", the character length must be smaller than or equal to 7.'
|
296
|
+
end
|
297
|
+
|
298
|
+
@annual_financing_cost = annual_financing_cost
|
299
|
+
end
|
300
|
+
|
301
|
+
# Custom attribute writer method with validation
|
302
|
+
# @param [Object] expenses Value to be assigned
|
303
|
+
def expenses=(expenses)
|
304
|
+
if !expenses.nil? && expenses.to_s.length > 12
|
305
|
+
fail ArgumentError, 'invalid value for "expenses", the character length must be smaller than or equal to 12.'
|
306
|
+
end
|
307
|
+
|
308
|
+
@expenses = expenses
|
309
|
+
end
|
310
|
+
|
311
|
+
# Custom attribute writer method with validation
|
312
|
+
# @param [Object] expenses_percentage Value to be assigned
|
313
|
+
def expenses_percentage=(expenses_percentage)
|
314
|
+
if !expenses_percentage.nil? && expenses_percentage.to_s.length > 4
|
315
|
+
fail ArgumentError, 'invalid value for "expenses_percentage", the character length must be smaller than or equal to 4.'
|
316
|
+
end
|
317
|
+
|
318
|
+
@expenses_percentage = expenses_percentage
|
319
|
+
end
|
320
|
+
|
321
|
+
# Custom attribute writer method with validation
|
322
|
+
# @param [Object] fees Value to be assigned
|
323
|
+
def fees=(fees)
|
324
|
+
if !fees.nil? && fees.to_s.length > 12
|
325
|
+
fail ArgumentError, 'invalid value for "fees", the character length must be smaller than or equal to 12.'
|
326
|
+
end
|
327
|
+
|
328
|
+
@fees = fees
|
329
|
+
end
|
330
|
+
|
331
|
+
# Custom attribute writer method with validation
|
332
|
+
# @param [Object] fees_percentage Value to be assigned
|
333
|
+
def fees_percentage=(fees_percentage)
|
334
|
+
if !fees_percentage.nil? && fees_percentage.to_s.length > 4
|
335
|
+
fail ArgumentError, 'invalid value for "fees_percentage", the character length must be smaller than or equal to 4.'
|
336
|
+
end
|
337
|
+
|
338
|
+
@fees_percentage = fees_percentage
|
339
|
+
end
|
340
|
+
|
341
|
+
# Custom attribute writer method with validation
|
342
|
+
# @param [Object] insurance Value to be assigned
|
343
|
+
def insurance=(insurance)
|
344
|
+
if !insurance.nil? && insurance.to_s.length > 12
|
345
|
+
fail ArgumentError, 'invalid value for "insurance", the character length must be smaller than or equal to 12.'
|
346
|
+
end
|
347
|
+
|
348
|
+
@insurance = insurance
|
349
|
+
end
|
350
|
+
|
351
|
+
# Custom attribute writer method with validation
|
352
|
+
# @param [Object] insurance_percentage Value to be assigned
|
353
|
+
def insurance_percentage=(insurance_percentage)
|
354
|
+
if !insurance_percentage.nil? && insurance_percentage.to_s.length > 4
|
355
|
+
fail ArgumentError, 'invalid value for "insurance_percentage", the character length must be smaller than or equal to 4.'
|
356
|
+
end
|
357
|
+
|
358
|
+
@insurance_percentage = insurance_percentage
|
359
|
+
end
|
360
|
+
|
361
|
+
# Custom attribute writer method with validation
|
362
|
+
# @param [Object] taxes Value to be assigned
|
363
|
+
def taxes=(taxes)
|
364
|
+
if !taxes.nil? && taxes.to_s.length > 12
|
365
|
+
fail ArgumentError, 'invalid value for "taxes", the character length must be smaller than or equal to 12.'
|
366
|
+
end
|
367
|
+
|
368
|
+
@taxes = taxes
|
369
|
+
end
|
370
|
+
|
371
|
+
# Custom attribute writer method with validation
|
372
|
+
# @param [Object] taxes_percentage Value to be assigned
|
373
|
+
def taxes_percentage=(taxes_percentage)
|
374
|
+
if !taxes_percentage.nil? && taxes_percentage.to_s.length > 4
|
375
|
+
fail ArgumentError, 'invalid value for "taxes_percentage", the character length must be smaller than or equal to 4.'
|
376
|
+
end
|
377
|
+
|
378
|
+
@taxes_percentage = taxes_percentage
|
379
|
+
end
|
380
|
+
|
381
|
+
# Checks equality by comparing each attribute.
|
382
|
+
# @param [Object] Object to be compared
|
383
|
+
def ==(o)
|
384
|
+
return true if self.equal?(o)
|
385
|
+
self.class == o.class &&
|
386
|
+
additional_costs == o.additional_costs &&
|
387
|
+
additional_costs_percentage == o.additional_costs_percentage &&
|
388
|
+
amount_funded == o.amount_funded &&
|
389
|
+
amount_requested_percentage == o.amount_requested_percentage &&
|
390
|
+
annual_financing_cost == o.annual_financing_cost &&
|
391
|
+
annual_interest_rate == o.annual_interest_rate &&
|
392
|
+
expenses == o.expenses &&
|
393
|
+
expenses_percentage == o.expenses_percentage &&
|
394
|
+
fees == o.fees &&
|
395
|
+
fees_percentage == o.fees_percentage &&
|
396
|
+
insurance == o.insurance &&
|
397
|
+
insurance_percentage == o.insurance_percentage &&
|
398
|
+
monthly_interest_rate == o.monthly_interest_rate &&
|
399
|
+
taxes == o.taxes &&
|
400
|
+
taxes_percentage == o.taxes_percentage
|
401
|
+
end
|
402
|
+
|
403
|
+
# @see the `==` method
|
404
|
+
# @param [Object] Object to be compared
|
405
|
+
def eql?(o)
|
406
|
+
self == o
|
407
|
+
end
|
408
|
+
|
409
|
+
# Calculates hash code according to all attributes.
|
410
|
+
# @return [Fixnum] Hash code
|
411
|
+
def hash
|
412
|
+
[additional_costs, additional_costs_percentage, amount_funded, amount_requested_percentage, annual_financing_cost, annual_interest_rate, expenses, expenses_percentage, fees, fees_percentage, insurance, insurance_percentage, monthly_interest_rate, taxes, taxes_percentage].hash
|
413
|
+
end
|
414
|
+
|
415
|
+
# Builds the object from hash
|
416
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
417
|
+
# @return [Object] Returns the model itself
|
418
|
+
def build_from_hash(attributes)
|
419
|
+
return nil unless attributes.is_a?(Hash)
|
420
|
+
self.class.swagger_types.each_pair do |key, type|
|
421
|
+
if type =~ /\AArray<(.*)>/i
|
422
|
+
# check to ensure the input is an array given that the the attribute
|
423
|
+
# is documented as an array but the input is not
|
424
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
425
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
426
|
+
end
|
427
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
428
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
429
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
430
|
+
end
|
431
|
+
|
432
|
+
self
|
433
|
+
end
|
434
|
+
|
435
|
+
# Deserializes the data based on type
|
436
|
+
# @param string type Data type
|
437
|
+
# @param string value Value to be deserialized
|
438
|
+
# @return [Object] Deserialized data
|
439
|
+
def _deserialize(type, value)
|
440
|
+
case type.to_sym
|
441
|
+
when :DateTime
|
442
|
+
DateTime.parse(value)
|
443
|
+
when :Date
|
444
|
+
Date.parse(value)
|
445
|
+
when :String
|
446
|
+
value.to_s
|
447
|
+
when :Integer
|
448
|
+
value.to_i
|
449
|
+
when :Float
|
450
|
+
value.to_f
|
451
|
+
when :BOOLEAN
|
452
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
453
|
+
true
|
454
|
+
else
|
455
|
+
false
|
456
|
+
end
|
457
|
+
when :Object
|
458
|
+
# generic object (usually a Hash), return directly
|
459
|
+
value
|
460
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
461
|
+
inner_type = Regexp.last_match[:inner_type]
|
462
|
+
value.map { |v| _deserialize(inner_type, v) }
|
463
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
464
|
+
k_type = Regexp.last_match[:k_type]
|
465
|
+
v_type = Regexp.last_match[:v_type]
|
466
|
+
{}.tap do |hash|
|
467
|
+
value.each do |k, v|
|
468
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
469
|
+
end
|
470
|
+
end
|
471
|
+
else # model
|
472
|
+
temp_model = CyberSource.const_get(type).new
|
473
|
+
temp_model.build_from_hash(value)
|
474
|
+
end
|
475
|
+
end
|
476
|
+
|
477
|
+
# Returns the string representation of the object
|
478
|
+
# @return [String] String presentation of the object
|
479
|
+
def to_s
|
480
|
+
to_hash.to_s
|
481
|
+
end
|
482
|
+
|
483
|
+
# to_body is an alias to to_hash (backward compatibility)
|
484
|
+
# @return [Hash] Returns the object in the form of hash
|
485
|
+
def to_body
|
486
|
+
to_hash
|
487
|
+
end
|
488
|
+
|
489
|
+
# Returns the object in the form of hash
|
490
|
+
# @return [Hash] Returns the object in the form of hash
|
491
|
+
def to_hash
|
492
|
+
hash = {}
|
493
|
+
self.class.attribute_map.each_pair do |attr, param|
|
494
|
+
value = self.send(attr)
|
495
|
+
next if value.nil?
|
496
|
+
hash[param] = _to_hash(value)
|
497
|
+
end
|
498
|
+
hash
|
499
|
+
end
|
500
|
+
|
501
|
+
# Outputs non-array value in the form of hash
|
502
|
+
# For object, use to_hash. Otherwise, just return the value
|
503
|
+
# @param [Object] value Any valid value
|
504
|
+
# @return [Hash] Returns the value in the form of hash
|
505
|
+
def _to_hash(value)
|
506
|
+
if value.is_a?(Array)
|
507
|
+
value.compact.map { |v| _to_hash(v) }
|
508
|
+
elsif value.is_a?(Hash)
|
509
|
+
{}.tap do |hash|
|
510
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
511
|
+
end
|
512
|
+
elsif value.respond_to? :to_hash
|
513
|
+
value.to_hash
|
514
|
+
else
|
515
|
+
value
|
516
|
+
end
|
517
|
+
end
|
518
|
+
end
|
519
|
+
end
|