cybersource_rest_client 0.0.86 → 0.0.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/AuthenticationSDK/util/CertificateUtility.rb +14 -6
- data/lib/cybersource_rest_client/api/agent_capabilities_api.rb +24 -24
- data/lib/cybersource_rest_client/api/bin_lookup_api.rb +3 -3
- data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +6 -6
- data/lib/cybersource_rest_client/api/foreign_exchange_rates_api.rb +3 -3
- data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +9 -9
- data/lib/cybersource_rest_client/api/merchant_boarding_api.rb +3 -3
- data/lib/cybersource_rest_client/api/offers_api.rb +3 -3
- data/lib/cybersource_rest_client/api/search_transactions_api.rb +2 -2
- data/lib/cybersource_rest_client/api/transaction_details_api.rb +1 -1
- data/lib/cybersource_rest_client/api/transaction_query_api.rb +3 -3
- data/lib/cybersource_rest_client/api/visa_protect_risk_insights_api.rb +104 -0
- data/lib/cybersource_rest_client/models/inline_response_200_16.rb +2 -2
- data/lib/cybersource_rest_client/models/inline_response_200_17.rb +5 -5
- data/lib/cybersource_rest_client/models/inline_response_200_18.rb +5 -5
- data/lib/cybersource_rest_client/models/inline_response_200_4.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_5.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_10.rb +18 -93
- data/lib/cybersource_rest_client/models/inline_response_201_11.rb +103 -8
- data/lib/cybersource_rest_client/models/{inline_response_201_12_client_reference_information.rb → inline_response_201_11_client_reference_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_12_error_information.rb → inline_response_201_11_error_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_12_order_information.rb → inline_response_201_11_order_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_12_order_information_currency_conversion.rb → inline_response_201_11_order_information_currency_conversion.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_12_order_information_currency_conversion_offer.rb → inline_response_201_11_order_information_currency_conversion_offer.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_12_processor_information.rb → inline_response_201_11_processor_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_12.rb +110 -89
- data/lib/cybersource_rest_client/models/{inline_response_201_13_fulfillment_address.rb → inline_response_201_12_fulfillment_address.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_13_fulfillment_options.rb → inline_response_201_12_fulfillment_options.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_14_item.rb → inline_response_201_12_item.rb} +20 -20
- data/lib/cybersource_rest_client/models/inline_response_201_12_line_items.rb +256 -0
- data/lib/cybersource_rest_client/models/{inline_response_201_13_links.rb → inline_response_201_12_links.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_13_messages.rb → inline_response_201_12_messages.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_13_payment_provider.rb → inline_response_201_12_payment_provider.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_13_totals.rb → inline_response_201_12_totals.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_13.rb +61 -67
- data/lib/cybersource_rest_client/models/{inline_response_201_14_discounts.rb → inline_response_201_13_discounts.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_14_fulfillment.rb → inline_response_201_13_fulfillment.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_13_item.rb +19 -19
- data/lib/cybersource_rest_client/models/inline_response_201_13_line_items.rb +20 -51
- data/lib/cybersource_rest_client/models/{inline_response_201_14_order.rb → inline_response_201_13_order.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_14_payment.rb → inline_response_201_13_payment.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_14_ucp.rb → inline_response_201_13_ucp.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_14_ucp_capabilities.rb → inline_response_201_13_ucp_capabilities.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_3.rb +82 -39
- data/lib/cybersource_rest_client/models/{inline_response_201_5_error_information.rb → inline_response_201_3_error_information.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_201_5_error_information_details.rb → inline_response_201_3_error_information_details.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_5_order_information.rb → inline_response_201_3_order_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/inline_response_201_3_order_information_amount_details.rb +315 -0
- data/lib/cybersource_rest_client/models/inline_response_201_3_processing_information.rb +189 -0
- data/lib/cybersource_rest_client/models/{inline_response_201_4_processing_information_routing.rb → inline_response_201_3_processing_information_routing.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_3_processor_information.rb +213 -0
- data/lib/cybersource_rest_client/models/inline_response_201_4.rb +41 -30
- data/lib/cybersource_rest_client/models/{inline_response_201_5__links.rb → inline_response_201_4__links.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_5__links_self.rb → inline_response_201_4__links_self.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_5_acquirer_information.rb → inline_response_201_4_acquirer_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_5_client_reference_information.rb → inline_response_201_4_client_reference_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_4_error_information.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_4_error_information_details.rb +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_5_merchant_information.rb → inline_response_201_4_merchant_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_4_order_information_amount_details.rb +46 -97
- data/lib/cybersource_rest_client/models/{inline_response_201_5_payment_information.rb → inline_response_201_4_payment_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_5_payment_information_card.rb → inline_response_201_4_payment_information_card.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_4_processing_information.rb +59 -8
- data/lib/cybersource_rest_client/models/{inline_response_201_5_processing_information_payouts_options.rb → inline_response_201_4_processing_information_payouts_options.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_4_processor_information.rb +342 -7
- data/lib/cybersource_rest_client/models/{inline_response_201_5_processor_information_card_verification.rb → inline_response_201_4_processor_information_card_verification.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_5_transactions.rb → inline_response_201_4_transactions.rb} +7 -7
- data/lib/cybersource_rest_client/models/inline_response_201_5.rb +35 -68
- data/lib/cybersource_rest_client/models/{inline_response_201_6_payout_information.rb → inline_response_201_5_payout_information.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_201_6_payout_information_pull_funds.rb → inline_response_201_5_payout_information_pull_funds.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_6_payout_information_push_funds.rb → inline_response_201_5_payout_information_push_funds.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_6.rb +59 -26
- data/lib/cybersource_rest_client/models/{inline_response_201_7_integration_information.rb → inline_response_201_6_integration_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_7_integration_information_tenant_configurations.rb → inline_response_201_6_integration_information_tenant_configurations.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_7_organization_information.rb → inline_response_201_6_organization_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_7_product_information_setups.rb → inline_response_201_6_product_information_setups.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_7_registration_information.rb → inline_response_201_6_registration_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_7_setups.rb → inline_response_201_6_setups.rb} +4 -4
- data/lib/cybersource_rest_client/models/{inline_response_201_7_setups_commerce_solutions.rb → inline_response_201_6_setups_commerce_solutions.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_7_setups_risk.rb → inline_response_201_6_setups_risk.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_7_setups_value_added_services.rb → inline_response_201_6_setups_value_added_services.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_7.rb +19 -78
- data/lib/cybersource_rest_client/models/{inline_response_201_8_key_information.rb → inline_response_201_7_key_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_8_key_information_error_information.rb → inline_response_201_7_key_information_error_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_8_key_information_error_information_details.rb → inline_response_201_7_key_information_error_information_details.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_8.rb +117 -25
- data/lib/cybersource_rest_client/models/inline_response_201_9.rb +68 -105
- data/lib/cybersource_rest_client/models/{inline_response_201_10_payloads.rb → inline_response_201_9_payloads.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_10_payloads_test_payload.rb → inline_response_201_9_payloads_test_payload.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_400_3.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_400_4.rb +1 -1
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response_merchant_defined_field_values_with_definition.rb +11 -1
- data/lib/cybersource_rest_client/models/ucv1sessions_complete_mandate.rb +16 -5
- data/lib/cybersource_rest_client/models/ucv1sessions_data.rb +11 -1
- data/lib/cybersource_rest_client/models/ucv1sessions_data_acquirer_information.rb +196 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_aggregator_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ucv1sessions_data_consumer_authentication_information.rb +16 -5
- data/lib/cybersource_rest_client/models/{inline_response_201_14_line_items.rb → unified_risk_post201_response.rb} +28 -42
- data/lib/cybersource_rest_client/models/{inline_response_201_3_results.rb → unified_risk_post201_response_results.rb} +3 -3
- data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights.rb +291 -0
- data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_client.rb +208 -0
- data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_error.rb +202 -0
- data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_packages.rb +190 -0
- data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_packages_transaction_insights.rb +250 -0
- data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_packages_transaction_insights_insights.rb +219 -0
- data/lib/cybersource_rest_client/models/unified_risk_post201_response_transaction_insights_insights_warnings.rb +214 -0
- data/lib/cybersource_rest_client/models/{unified_risk_labels_post400_response.rb → unified_risk_post400_response.rb} +2 -2
- data/lib/cybersource_rest_client/models/{unified_risk_labels_post400_response_errors.rb → unified_risk_post400_response_errors.rb} +1 -1
- data/lib/cybersource_rest_client/models/unifiedrisk_account.rb +190 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_acquirer.rb +302 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_acquirer_merchant_account.rb +234 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_acquirer_merchant_account_security_amount.rb +246 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_authentication.rb +402 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_authentication_challenge.rb +202 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_authorization.rb +212 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_browser.rb +420 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_customer.rb +403 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_customer_address.rb +279 -0
- data/lib/cybersource_rest_client/models/{inline_response_201_5_processing_information.rb → unifiedrisk_customer_personal_identification.rb} +99 -42
- data/lib/cybersource_rest_client/models/unifiedrisk_device.rb +681 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_device_point_of_sale.rb +344 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_initiating_party.rb +223 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant.rb +326 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_address.rb +328 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor.rb +389 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_annual_sales.rb +268 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_average_ticket_size.rb +246 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_monthly_sales.rb +268 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_hierarchy.rb +224 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_limit_value.rb +257 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_trading_address.rb +301 -0
- data/lib/cybersource_rest_client/models/{label_request.rb → unifiedrisk_order.rb} +60 -72
- data/lib/cybersource_rest_client/models/unifiedrisk_order_billing.rb +360 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_order_line_items.rb +262 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_order_shipping.rb +464 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_order_shipping_store.rb +251 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_order_shipping_store_address.rb +191 -0
- data/lib/cybersource_rest_client/models/{inline_response_201_3_results_risk_insights.rb → unifiedrisk_order_shipping_store_store_address.rb} +43 -43
- data/lib/cybersource_rest_client/models/unifiedrisk_partner.rb +214 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment.rb +423 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_approvals.rb +193 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account.rb +451 -0
- data/lib/cybersource_rest_client/models/{inline_response_201_5_order_information_amount_details.rb → unifiedrisk_payment_bank_account_balance_before.rb} +49 -56
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_branch_address.rb +328 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_credit_limit.rb +257 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_financial_institution.rb +212 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_batch.rb +323 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_card.rb +461 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_card_par_details.rb +196 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_card_token_details.rb +380 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_check.rb +289 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_check_deposit_location.rb +279 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_counterparty.rb +287 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_counterparty_address.rb +279 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_counterparty_branch_address.rb +279 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_sdk.rb +268 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_token.rb +213 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification.rb +230 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_additional.rb +256 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_authentication.rb +232 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_authentication_pin.rb +201 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_authentication_three_ds.rb +190 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_card_security.rb +199 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_card_security_avs.rb +218 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_card_security_cvv.rb +196 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_digital.rb +212 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_wallet.rb +201 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_wire.rb +364 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment.rb +308 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment_buyer_history.rb +276 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment_buyer_history_account_history.rb +207 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment_buyer_history_customer_account.rb +273 -0
- data/lib/cybersource_rest_client/models/{inline_response_201_14.rb → unifiedrisk_risk_assessment_buyer_history_customer_account_alertnate_authentication.rb} +59 -114
- data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment_vital4.rb +191 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_session.rb +202 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_terminal.rb +238 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_terminal_address.rb +301 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_terminal_capabilities.rb +234 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_third_party_risk.rb +708 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_third_party_risk_raw_data.rb +189 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction.rb +305 -12
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_additional_fees.rb +257 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_amount.rb +257 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details.rb +220 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details_batch_credits_amount.rb +246 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details_batch_debits_amount.rb +246 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details_file_credits.rb +246 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details_file_debits.rb +246 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_check_details.rb +190 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_check_details_deposited_cash_amount.rb +246 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_recurring_details.rb +341 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_travel.rb +279 -0
- data/lib/cybersource_rest_client/models/vpri_request.rb +505 -0
- data/lib/cybersource_rest_client/models/vpri_transaction_insights_additional_data.rb +190 -0
- data/lib/cybersource_rest_client/models/vpri_transaction_insights_additional_data_card_bin_data.rb +357 -0
- data/lib/cybersource_rest_client.rb +153 -61
- metadata +155 -63
- data/lib/cybersource_rest_client/api/transaction_risk_labeling_api.rb +0 -104
- data/lib/cybersource_rest_client/models/inline_response_201_5_processor_information.rb +0 -548
|
@@ -12,52 +12,58 @@ Swagger Codegen version: 2.4.38
|
|
|
12
12
|
require 'date'
|
|
13
13
|
|
|
14
14
|
module CyberSource
|
|
15
|
-
class
|
|
16
|
-
#
|
|
17
|
-
attr_accessor :
|
|
15
|
+
class UnifiedriskPaymentBankAccountBalanceBefore
|
|
16
|
+
# Account balance before transaction
|
|
17
|
+
attr_accessor :value
|
|
18
18
|
|
|
19
|
-
# Currency
|
|
19
|
+
# Currency of balance
|
|
20
20
|
attr_accessor :currency
|
|
21
21
|
|
|
22
|
-
#
|
|
23
|
-
attr_accessor :
|
|
22
|
+
# Base currency for balance
|
|
23
|
+
attr_accessor :base_currency
|
|
24
24
|
|
|
25
|
-
#
|
|
26
|
-
attr_accessor :
|
|
25
|
+
# Balance in base currency
|
|
26
|
+
attr_accessor :base_value
|
|
27
27
|
|
|
28
|
-
#
|
|
29
|
-
attr_accessor :
|
|
28
|
+
# ISO 4217 3-letter code for the merchant's local currency used to express the pre-transaction account balance (e.g., EUR for EU merchants)
|
|
29
|
+
attr_accessor :merchant_currency
|
|
30
|
+
|
|
31
|
+
# Pre-transaction account balance expressed in the merchant's local currency, used for cross-currency balance comparison and risk analysis
|
|
32
|
+
attr_accessor :merchant_value
|
|
30
33
|
|
|
31
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
32
35
|
def self.attribute_map
|
|
33
36
|
{
|
|
34
|
-
:'
|
|
37
|
+
:'value' => :'value',
|
|
35
38
|
:'currency' => :'currency',
|
|
36
|
-
:'
|
|
37
|
-
:'
|
|
38
|
-
:'
|
|
39
|
+
:'base_currency' => :'baseCurrency',
|
|
40
|
+
:'base_value' => :'baseValue',
|
|
41
|
+
:'merchant_currency' => :'merchantCurrency',
|
|
42
|
+
:'merchant_value' => :'merchantValue'
|
|
39
43
|
}
|
|
40
44
|
end
|
|
41
45
|
|
|
42
46
|
# Attribute mapping from JSON key to ruby-style variable name.
|
|
43
47
|
def self.json_map
|
|
44
48
|
{
|
|
45
|
-
:'
|
|
49
|
+
:'value' => :'value',
|
|
46
50
|
:'currency' => :'currency',
|
|
47
|
-
:'
|
|
48
|
-
:'
|
|
49
|
-
:'
|
|
51
|
+
:'base_currency' => :'base_currency',
|
|
52
|
+
:'base_value' => :'base_value',
|
|
53
|
+
:'merchant_currency' => :'merchant_currency',
|
|
54
|
+
:'merchant_value' => :'merchant_value'
|
|
50
55
|
}
|
|
51
56
|
end
|
|
52
57
|
|
|
53
58
|
# Attribute type mapping.
|
|
54
59
|
def self.swagger_types
|
|
55
60
|
{
|
|
56
|
-
:'
|
|
61
|
+
:'value' => :'Float',
|
|
57
62
|
:'currency' => :'String',
|
|
58
|
-
:'
|
|
59
|
-
:'
|
|
60
|
-
:'
|
|
63
|
+
:'base_currency' => :'String',
|
|
64
|
+
:'base_value' => :'Float',
|
|
65
|
+
:'merchant_currency' => :'String',
|
|
66
|
+
:'merchant_value' => :'String'
|
|
61
67
|
}
|
|
62
68
|
end
|
|
63
69
|
|
|
@@ -69,24 +75,28 @@ module CyberSource
|
|
|
69
75
|
# convert string to symbol for hash key
|
|
70
76
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
71
77
|
|
|
72
|
-
if attributes.has_key?(:'
|
|
73
|
-
self.
|
|
78
|
+
if attributes.has_key?(:'value')
|
|
79
|
+
self.value = attributes[:'value']
|
|
74
80
|
end
|
|
75
81
|
|
|
76
82
|
if attributes.has_key?(:'currency')
|
|
77
83
|
self.currency = attributes[:'currency']
|
|
78
84
|
end
|
|
79
85
|
|
|
80
|
-
if attributes.has_key?(:'
|
|
81
|
-
self.
|
|
86
|
+
if attributes.has_key?(:'baseCurrency')
|
|
87
|
+
self.base_currency = attributes[:'baseCurrency']
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
if attributes.has_key?(:'baseValue')
|
|
91
|
+
self.base_value = attributes[:'baseValue']
|
|
82
92
|
end
|
|
83
93
|
|
|
84
|
-
if attributes.has_key?(:'
|
|
85
|
-
self.
|
|
94
|
+
if attributes.has_key?(:'merchantCurrency')
|
|
95
|
+
self.merchant_currency = attributes[:'merchantCurrency']
|
|
86
96
|
end
|
|
87
97
|
|
|
88
|
-
if attributes.has_key?(:'
|
|
89
|
-
self.
|
|
98
|
+
if attributes.has_key?(:'merchantValue')
|
|
99
|
+
self.merchant_value = attributes[:'merchantValue']
|
|
90
100
|
end
|
|
91
101
|
end
|
|
92
102
|
|
|
@@ -103,12 +113,6 @@ module CyberSource
|
|
|
103
113
|
true
|
|
104
114
|
end
|
|
105
115
|
|
|
106
|
-
# Custom attribute writer method with validation
|
|
107
|
-
# @param [Object] authorized_amount Value to be assigned
|
|
108
|
-
def authorized_amount=(authorized_amount)
|
|
109
|
-
@authorized_amount = authorized_amount
|
|
110
|
-
end
|
|
111
|
-
|
|
112
116
|
# Custom attribute writer method with validation
|
|
113
117
|
# @param [Object] currency Value to be assigned
|
|
114
118
|
def currency=(currency)
|
|
@@ -116,21 +120,9 @@ module CyberSource
|
|
|
116
120
|
end
|
|
117
121
|
|
|
118
122
|
# Custom attribute writer method with validation
|
|
119
|
-
# @param [Object]
|
|
120
|
-
def
|
|
121
|
-
@
|
|
122
|
-
end
|
|
123
|
-
|
|
124
|
-
# Custom attribute writer method with validation
|
|
125
|
-
# @param [Object] total_amount Value to be assigned
|
|
126
|
-
def total_amount=(total_amount)
|
|
127
|
-
@total_amount = total_amount
|
|
128
|
-
end
|
|
129
|
-
|
|
130
|
-
# Custom attribute writer method with validation
|
|
131
|
-
# @param [Object] settlement_amount Value to be assigned
|
|
132
|
-
def settlement_amount=(settlement_amount)
|
|
133
|
-
@settlement_amount = settlement_amount
|
|
123
|
+
# @param [Object] base_currency Value to be assigned
|
|
124
|
+
def base_currency=(base_currency)
|
|
125
|
+
@base_currency = base_currency
|
|
134
126
|
end
|
|
135
127
|
|
|
136
128
|
# Checks equality by comparing each attribute.
|
|
@@ -138,11 +130,12 @@ module CyberSource
|
|
|
138
130
|
def ==(o)
|
|
139
131
|
return true if self.equal?(o)
|
|
140
132
|
self.class == o.class &&
|
|
141
|
-
|
|
133
|
+
value == o.value &&
|
|
142
134
|
currency == o.currency &&
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
135
|
+
base_currency == o.base_currency &&
|
|
136
|
+
base_value == o.base_value &&
|
|
137
|
+
merchant_currency == o.merchant_currency &&
|
|
138
|
+
merchant_value == o.merchant_value
|
|
146
139
|
end
|
|
147
140
|
|
|
148
141
|
# @see the `==` method
|
|
@@ -154,7 +147,7 @@ module CyberSource
|
|
|
154
147
|
# Calculates hash code according to all attributes.
|
|
155
148
|
# @return [Fixnum] Hash code
|
|
156
149
|
def hash
|
|
157
|
-
[
|
|
150
|
+
[value, currency, base_currency, base_value, merchant_currency, merchant_value].hash
|
|
158
151
|
end
|
|
159
152
|
|
|
160
153
|
# Builds the object from hash
|
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#CyberSource Merged Spec
|
|
3
|
+
|
|
4
|
+
#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 0.0.1
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.38
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require 'date'
|
|
13
|
+
|
|
14
|
+
module CyberSource
|
|
15
|
+
class UnifiedriskPaymentBankAccountBranchAddress
|
|
16
|
+
# Address line 1
|
|
17
|
+
attr_accessor :address_line1
|
|
18
|
+
|
|
19
|
+
# Address line 2
|
|
20
|
+
attr_accessor :address_line2
|
|
21
|
+
|
|
22
|
+
# Address line 3
|
|
23
|
+
attr_accessor :address_line3
|
|
24
|
+
|
|
25
|
+
# Identifies the nature of the postal address. Examples are \"Home\" or \"Work\".
|
|
26
|
+
attr_accessor :address_type
|
|
27
|
+
|
|
28
|
+
# Nation with its own government, country code in ISO 3166 apha-3 format
|
|
29
|
+
attr_accessor :country
|
|
30
|
+
|
|
31
|
+
# Identifies a subdivision of a country such as state, region, county
|
|
32
|
+
attr_accessor :administrative_area
|
|
33
|
+
|
|
34
|
+
# Full string containing all submitted address components.
|
|
35
|
+
attr_accessor :full_address
|
|
36
|
+
|
|
37
|
+
# Latitude of the address
|
|
38
|
+
attr_accessor :latitude
|
|
39
|
+
|
|
40
|
+
# Longitude of the address
|
|
41
|
+
attr_accessor :longitude
|
|
42
|
+
|
|
43
|
+
# Identifier consisting of a group of letters and/or numbers that is added to a postal address to assist the sorting of mail
|
|
44
|
+
attr_accessor :postal_code
|
|
45
|
+
|
|
46
|
+
# Name of a built-up area, with defined boundaries, and a local government.
|
|
47
|
+
attr_accessor :locality
|
|
48
|
+
|
|
49
|
+
# ISO 3166-2 subdivision code for the bank branch address state or province (e.g., US-NY, GB-ENG). Used for branch-level regulatory and geographic risk analysis
|
|
50
|
+
attr_accessor :country_sub_division
|
|
51
|
+
|
|
52
|
+
# Town or city name of the bank branch used for geographic proximity analysis and branch-level risk profiling
|
|
53
|
+
attr_accessor :town_name
|
|
54
|
+
|
|
55
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
56
|
+
def self.attribute_map
|
|
57
|
+
{
|
|
58
|
+
:'address_line1' => :'addressLine1',
|
|
59
|
+
:'address_line2' => :'addressLine2',
|
|
60
|
+
:'address_line3' => :'addressLine3',
|
|
61
|
+
:'address_type' => :'addressType',
|
|
62
|
+
:'country' => :'country',
|
|
63
|
+
:'administrative_area' => :'administrativeArea',
|
|
64
|
+
:'full_address' => :'fullAddress',
|
|
65
|
+
:'latitude' => :'latitude',
|
|
66
|
+
:'longitude' => :'longitude',
|
|
67
|
+
:'postal_code' => :'postalCode',
|
|
68
|
+
:'locality' => :'locality',
|
|
69
|
+
:'country_sub_division' => :'countrySubDivision',
|
|
70
|
+
:'town_name' => :'townName'
|
|
71
|
+
}
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Attribute mapping from JSON key to ruby-style variable name.
|
|
75
|
+
def self.json_map
|
|
76
|
+
{
|
|
77
|
+
:'address_line1' => :'address_line1',
|
|
78
|
+
:'address_line2' => :'address_line2',
|
|
79
|
+
:'address_line3' => :'address_line3',
|
|
80
|
+
:'address_type' => :'address_type',
|
|
81
|
+
:'country' => :'country',
|
|
82
|
+
:'administrative_area' => :'administrative_area',
|
|
83
|
+
:'full_address' => :'full_address',
|
|
84
|
+
:'latitude' => :'latitude',
|
|
85
|
+
:'longitude' => :'longitude',
|
|
86
|
+
:'postal_code' => :'postal_code',
|
|
87
|
+
:'locality' => :'locality',
|
|
88
|
+
:'country_sub_division' => :'country_sub_division',
|
|
89
|
+
:'town_name' => :'town_name'
|
|
90
|
+
}
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Attribute type mapping.
|
|
94
|
+
def self.swagger_types
|
|
95
|
+
{
|
|
96
|
+
:'address_line1' => :'String',
|
|
97
|
+
:'address_line2' => :'String',
|
|
98
|
+
:'address_line3' => :'String',
|
|
99
|
+
:'address_type' => :'String',
|
|
100
|
+
:'country' => :'String',
|
|
101
|
+
:'administrative_area' => :'String',
|
|
102
|
+
:'full_address' => :'String',
|
|
103
|
+
:'latitude' => :'Float',
|
|
104
|
+
:'longitude' => :'Float',
|
|
105
|
+
:'postal_code' => :'String',
|
|
106
|
+
:'locality' => :'String',
|
|
107
|
+
:'country_sub_division' => :'String',
|
|
108
|
+
:'town_name' => :'String'
|
|
109
|
+
}
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# Initializes the object
|
|
113
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
114
|
+
def initialize(attributes = {})
|
|
115
|
+
return unless attributes.is_a?(Hash)
|
|
116
|
+
|
|
117
|
+
# convert string to symbol for hash key
|
|
118
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
119
|
+
|
|
120
|
+
if attributes.has_key?(:'addressLine1')
|
|
121
|
+
self.address_line1 = attributes[:'addressLine1']
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
if attributes.has_key?(:'addressLine2')
|
|
125
|
+
self.address_line2 = attributes[:'addressLine2']
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
if attributes.has_key?(:'addressLine3')
|
|
129
|
+
self.address_line3 = attributes[:'addressLine3']
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
if attributes.has_key?(:'addressType')
|
|
133
|
+
self.address_type = attributes[:'addressType']
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
if attributes.has_key?(:'country')
|
|
137
|
+
self.country = attributes[:'country']
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
if attributes.has_key?(:'administrativeArea')
|
|
141
|
+
self.administrative_area = attributes[:'administrativeArea']
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
if attributes.has_key?(:'fullAddress')
|
|
145
|
+
self.full_address = attributes[:'fullAddress']
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
if attributes.has_key?(:'latitude')
|
|
149
|
+
self.latitude = attributes[:'latitude']
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
if attributes.has_key?(:'longitude')
|
|
153
|
+
self.longitude = attributes[:'longitude']
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
if attributes.has_key?(:'postalCode')
|
|
157
|
+
self.postal_code = attributes[:'postalCode']
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
if attributes.has_key?(:'locality')
|
|
161
|
+
self.locality = attributes[:'locality']
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
if attributes.has_key?(:'countrySubDivision')
|
|
165
|
+
self.country_sub_division = attributes[:'countrySubDivision']
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
if attributes.has_key?(:'townName')
|
|
169
|
+
self.town_name = attributes[:'townName']
|
|
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
|
+
invalid_properties
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
# Check to see if the all the properties in the model are valid
|
|
181
|
+
# @return true if the model is valid
|
|
182
|
+
def valid?
|
|
183
|
+
true
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
# Custom attribute writer method with validation
|
|
187
|
+
# @param [Object] country Value to be assigned
|
|
188
|
+
def country=(country)
|
|
189
|
+
@country = country
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
# Checks equality by comparing each attribute.
|
|
193
|
+
# @param [Object] Object to be compared
|
|
194
|
+
def ==(o)
|
|
195
|
+
return true if self.equal?(o)
|
|
196
|
+
self.class == o.class &&
|
|
197
|
+
address_line1 == o.address_line1 &&
|
|
198
|
+
address_line2 == o.address_line2 &&
|
|
199
|
+
address_line3 == o.address_line3 &&
|
|
200
|
+
address_type == o.address_type &&
|
|
201
|
+
country == o.country &&
|
|
202
|
+
administrative_area == o.administrative_area &&
|
|
203
|
+
full_address == o.full_address &&
|
|
204
|
+
latitude == o.latitude &&
|
|
205
|
+
longitude == o.longitude &&
|
|
206
|
+
postal_code == o.postal_code &&
|
|
207
|
+
locality == o.locality &&
|
|
208
|
+
country_sub_division == o.country_sub_division &&
|
|
209
|
+
town_name == o.town_name
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
# @see the `==` method
|
|
213
|
+
# @param [Object] Object to be compared
|
|
214
|
+
def eql?(o)
|
|
215
|
+
self == o
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
# Calculates hash code according to all attributes.
|
|
219
|
+
# @return [Fixnum] Hash code
|
|
220
|
+
def hash
|
|
221
|
+
[address_line1, address_line2, address_line3, address_type, country, administrative_area, full_address, latitude, longitude, postal_code, locality, country_sub_division, town_name].hash
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
# Builds the object from hash
|
|
225
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
226
|
+
# @return [Object] Returns the model itself
|
|
227
|
+
def build_from_hash(attributes)
|
|
228
|
+
return nil unless attributes.is_a?(Hash)
|
|
229
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
230
|
+
if type =~ /\AArray<(.*)>/i
|
|
231
|
+
# check to ensure the input is an array given that the the attribute
|
|
232
|
+
# is documented as an array but the input is not
|
|
233
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
234
|
+
self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
235
|
+
end
|
|
236
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
237
|
+
self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
238
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
self
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
# Deserializes the data based on type
|
|
245
|
+
# @param string type Data type
|
|
246
|
+
# @param string value Value to be deserialized
|
|
247
|
+
# @return [Object] Deserialized data
|
|
248
|
+
def _deserialize(type, value)
|
|
249
|
+
case type.to_sym
|
|
250
|
+
when :DateTime
|
|
251
|
+
DateTime.parse(value)
|
|
252
|
+
when :Date
|
|
253
|
+
Date.parse(value)
|
|
254
|
+
when :String
|
|
255
|
+
value.to_s
|
|
256
|
+
when :Integer
|
|
257
|
+
value.to_i
|
|
258
|
+
when :Float
|
|
259
|
+
value.to_f
|
|
260
|
+
when :BOOLEAN
|
|
261
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
262
|
+
true
|
|
263
|
+
else
|
|
264
|
+
false
|
|
265
|
+
end
|
|
266
|
+
when :Object
|
|
267
|
+
# generic object (usually a Hash), return directly
|
|
268
|
+
value
|
|
269
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
270
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
271
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
272
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
273
|
+
k_type = Regexp.last_match[:k_type]
|
|
274
|
+
v_type = Regexp.last_match[:v_type]
|
|
275
|
+
{}.tap do |hash|
|
|
276
|
+
value.each do |k, v|
|
|
277
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
278
|
+
end
|
|
279
|
+
end
|
|
280
|
+
else # model
|
|
281
|
+
temp_model = CyberSource.const_get(type).new
|
|
282
|
+
temp_model.build_from_hash(value)
|
|
283
|
+
end
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
# Returns the string representation of the object
|
|
287
|
+
# @return [String] String presentation of the object
|
|
288
|
+
def to_s
|
|
289
|
+
to_hash.to_s
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
293
|
+
# @return [Hash] Returns the object in the form of hash
|
|
294
|
+
def to_body
|
|
295
|
+
to_hash
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
# Returns the object in the form of hash
|
|
299
|
+
# @return [Hash] Returns the object in the form of hash
|
|
300
|
+
def to_hash
|
|
301
|
+
hash = {}
|
|
302
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
303
|
+
value = self.send(attr)
|
|
304
|
+
next if value.nil?
|
|
305
|
+
hash[param] = _to_hash(value)
|
|
306
|
+
end
|
|
307
|
+
hash
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
# Outputs non-array value in the form of hash
|
|
311
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
312
|
+
# @param [Object] value Any valid value
|
|
313
|
+
# @return [Hash] Returns the value in the form of hash
|
|
314
|
+
def _to_hash(value)
|
|
315
|
+
if value.is_a?(Array)
|
|
316
|
+
value.compact.map { |v| _to_hash(v) }
|
|
317
|
+
elsif value.is_a?(Hash)
|
|
318
|
+
{}.tap do |hash|
|
|
319
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
320
|
+
end
|
|
321
|
+
elsif value.respond_to? :to_hash
|
|
322
|
+
value.to_hash
|
|
323
|
+
else
|
|
324
|
+
value
|
|
325
|
+
end
|
|
326
|
+
end
|
|
327
|
+
end
|
|
328
|
+
end
|