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
|
@@ -13,7 +13,7 @@ require 'date'
|
|
|
13
13
|
|
|
14
14
|
module CyberSource
|
|
15
15
|
# A typed total line in an ACP session response. Amount in minor units (cents).
|
|
16
|
-
class
|
|
16
|
+
class InlineResponse20112Totals
|
|
17
17
|
# Total type: - `items_base_amount` — sum of all line item base amounts before adjustments - `subtotal` — total after discounts - `tax` — total tax - `fulfillment` — shipping or delivery cost - `total` — final amount charged Possible values: - items_base_amount - subtotal - tax - fulfillment - total
|
|
18
18
|
attr_accessor :type
|
|
19
19
|
|
|
@@ -12,54 +12,52 @@ Swagger Codegen version: 2.4.38
|
|
|
12
12
|
require 'date'
|
|
13
13
|
|
|
14
14
|
module CyberSource
|
|
15
|
+
# UCP checkout session state. Total amounts are expressed in cents (not micros).
|
|
15
16
|
class InlineResponse20113
|
|
16
|
-
|
|
17
|
+
attr_accessor :ucp
|
|
18
|
+
|
|
19
|
+
# Unique UCP session identifier. Required for all subsequent UCP calls (update, complete, cancel).
|
|
17
20
|
attr_accessor :id
|
|
18
21
|
|
|
19
|
-
# Current lifecycle state of the session
|
|
22
|
+
# Current lifecycle state of the session. - `active` — open and modifiable - `completed` — order placed, immutable - `cancelled` — abandoned, no charge made Possible values: - active - completed - cancelled
|
|
20
23
|
attr_accessor :status
|
|
21
24
|
|
|
22
|
-
# ISO 4217
|
|
25
|
+
# ISO 4217 currency code for this session (e.g. `USD`, `EUR`).
|
|
23
26
|
attr_accessor :currency
|
|
24
27
|
|
|
25
|
-
|
|
26
|
-
attr_accessor :line_items
|
|
27
|
-
|
|
28
|
-
attr_accessor :fulfillment_address
|
|
29
|
-
|
|
30
|
-
# Available fulfillment methods with pricing.
|
|
31
|
-
attr_accessor :fulfillment_options
|
|
28
|
+
attr_accessor :buyer
|
|
32
29
|
|
|
33
|
-
#
|
|
34
|
-
attr_accessor :
|
|
30
|
+
# Cart line items with merchant-confirmed pricing.
|
|
31
|
+
attr_accessor :line_items
|
|
35
32
|
|
|
36
|
-
# Order cost breakdown
|
|
33
|
+
# Order cost breakdown. Each entry represents one total type (subtotal, tax, shipping, discount, or grand total). Amounts are in **cents** (not micros).
|
|
37
34
|
attr_accessor :totals
|
|
38
35
|
|
|
39
|
-
attr_accessor :
|
|
36
|
+
attr_accessor :fulfillment
|
|
37
|
+
|
|
38
|
+
attr_accessor :payment
|
|
40
39
|
|
|
41
|
-
attr_accessor :
|
|
40
|
+
attr_accessor :discounts
|
|
42
41
|
|
|
43
|
-
|
|
44
|
-
attr_accessor :messages
|
|
42
|
+
attr_accessor :order
|
|
45
43
|
|
|
46
|
-
# Related resource links
|
|
44
|
+
# Related resource links (e.g. terms of use, privacy policy).
|
|
47
45
|
attr_accessor :links
|
|
48
46
|
|
|
49
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
50
48
|
def self.attribute_map
|
|
51
49
|
{
|
|
50
|
+
:'ucp' => :'ucp',
|
|
52
51
|
:'id' => :'id',
|
|
53
52
|
:'status' => :'status',
|
|
54
53
|
:'currency' => :'currency',
|
|
54
|
+
:'buyer' => :'buyer',
|
|
55
55
|
:'line_items' => :'line_items',
|
|
56
|
-
:'fulfillment_address' => :'fulfillment_address',
|
|
57
|
-
:'fulfillment_options' => :'fulfillment_options',
|
|
58
|
-
:'fulfillment_option_id' => :'fulfillment_option_id',
|
|
59
56
|
:'totals' => :'totals',
|
|
60
|
-
:'
|
|
61
|
-
:'
|
|
62
|
-
:'
|
|
57
|
+
:'fulfillment' => :'fulfillment',
|
|
58
|
+
:'payment' => :'payment',
|
|
59
|
+
:'discounts' => :'discounts',
|
|
60
|
+
:'order' => :'order',
|
|
63
61
|
:'links' => :'links'
|
|
64
62
|
}
|
|
65
63
|
end
|
|
@@ -67,17 +65,17 @@ module CyberSource
|
|
|
67
65
|
# Attribute mapping from JSON key to ruby-style variable name.
|
|
68
66
|
def self.json_map
|
|
69
67
|
{
|
|
68
|
+
:'ucp' => :'ucp',
|
|
70
69
|
:'id' => :'id',
|
|
71
70
|
:'status' => :'status',
|
|
72
71
|
:'currency' => :'currency',
|
|
72
|
+
:'buyer' => :'buyer',
|
|
73
73
|
:'line_items' => :'line_items',
|
|
74
|
-
:'fulfillment_address' => :'fulfillment_address',
|
|
75
|
-
:'fulfillment_options' => :'fulfillment_options',
|
|
76
|
-
:'fulfillment_option_id' => :'fulfillment_option_id',
|
|
77
74
|
:'totals' => :'totals',
|
|
78
|
-
:'
|
|
79
|
-
:'
|
|
80
|
-
:'
|
|
75
|
+
:'fulfillment' => :'fulfillment',
|
|
76
|
+
:'payment' => :'payment',
|
|
77
|
+
:'discounts' => :'discounts',
|
|
78
|
+
:'order' => :'order',
|
|
81
79
|
:'links' => :'links'
|
|
82
80
|
}
|
|
83
81
|
end
|
|
@@ -85,18 +83,18 @@ module CyberSource
|
|
|
85
83
|
# Attribute type mapping.
|
|
86
84
|
def self.swagger_types
|
|
87
85
|
{
|
|
86
|
+
:'ucp' => :'InlineResponse20113Ucp',
|
|
88
87
|
:'id' => :'String',
|
|
89
88
|
:'status' => :'String',
|
|
90
89
|
:'currency' => :'String',
|
|
90
|
+
:'buyer' => :'UcpCheckoutSessionResponseBuyer',
|
|
91
91
|
:'line_items' => :'Array<InlineResponse20113LineItems>',
|
|
92
|
-
:'
|
|
93
|
-
:'
|
|
94
|
-
:'
|
|
95
|
-
:'
|
|
96
|
-
:'
|
|
97
|
-
:'
|
|
98
|
-
:'messages' => :'Array<InlineResponse20113Messages>',
|
|
99
|
-
:'links' => :'Array<InlineResponse20113Links>'
|
|
92
|
+
:'totals' => :'Array<Iccv1checkoutsessionsFulfillmentTotals>',
|
|
93
|
+
:'fulfillment' => :'InlineResponse20113Fulfillment',
|
|
94
|
+
:'payment' => :'InlineResponse20113Payment',
|
|
95
|
+
:'discounts' => :'InlineResponse20113Discounts',
|
|
96
|
+
:'order' => :'InlineResponse20113Order',
|
|
97
|
+
:'links' => :'Array<InlineResponse20112Links>'
|
|
100
98
|
}
|
|
101
99
|
end
|
|
102
100
|
|
|
@@ -108,6 +106,10 @@ module CyberSource
|
|
|
108
106
|
# convert string to symbol for hash key
|
|
109
107
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
110
108
|
|
|
109
|
+
if attributes.has_key?(:'ucp')
|
|
110
|
+
self.ucp = attributes[:'ucp']
|
|
111
|
+
end
|
|
112
|
+
|
|
111
113
|
if attributes.has_key?(:'id')
|
|
112
114
|
self.id = attributes[:'id']
|
|
113
115
|
end
|
|
@@ -120,44 +122,36 @@ module CyberSource
|
|
|
120
122
|
self.currency = attributes[:'currency']
|
|
121
123
|
end
|
|
122
124
|
|
|
125
|
+
if attributes.has_key?(:'buyer')
|
|
126
|
+
self.buyer = attributes[:'buyer']
|
|
127
|
+
end
|
|
128
|
+
|
|
123
129
|
if attributes.has_key?(:'line_items')
|
|
124
130
|
if (value = attributes[:'line_items']).is_a?(Array)
|
|
125
131
|
self.line_items = value
|
|
126
132
|
end
|
|
127
133
|
end
|
|
128
134
|
|
|
129
|
-
if attributes.has_key?(:'fulfillment_address')
|
|
130
|
-
self.fulfillment_address = attributes[:'fulfillment_address']
|
|
131
|
-
end
|
|
132
|
-
|
|
133
|
-
if attributes.has_key?(:'fulfillment_options')
|
|
134
|
-
if (value = attributes[:'fulfillment_options']).is_a?(Array)
|
|
135
|
-
self.fulfillment_options = value
|
|
136
|
-
end
|
|
137
|
-
end
|
|
138
|
-
|
|
139
|
-
if attributes.has_key?(:'fulfillment_option_id')
|
|
140
|
-
self.fulfillment_option_id = attributes[:'fulfillment_option_id']
|
|
141
|
-
end
|
|
142
|
-
|
|
143
135
|
if attributes.has_key?(:'totals')
|
|
144
136
|
if (value = attributes[:'totals']).is_a?(Array)
|
|
145
137
|
self.totals = value
|
|
146
138
|
end
|
|
147
139
|
end
|
|
148
140
|
|
|
149
|
-
if attributes.has_key?(:'
|
|
150
|
-
self.
|
|
141
|
+
if attributes.has_key?(:'fulfillment')
|
|
142
|
+
self.fulfillment = attributes[:'fulfillment']
|
|
151
143
|
end
|
|
152
144
|
|
|
153
|
-
if attributes.has_key?(:'
|
|
154
|
-
self.
|
|
145
|
+
if attributes.has_key?(:'payment')
|
|
146
|
+
self.payment = attributes[:'payment']
|
|
155
147
|
end
|
|
156
148
|
|
|
157
|
-
if attributes.has_key?(:'
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
149
|
+
if attributes.has_key?(:'discounts')
|
|
150
|
+
self.discounts = attributes[:'discounts']
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
if attributes.has_key?(:'order')
|
|
154
|
+
self.order = attributes[:'order']
|
|
161
155
|
end
|
|
162
156
|
|
|
163
157
|
if attributes.has_key?(:'links')
|
|
@@ -185,17 +179,17 @@ module CyberSource
|
|
|
185
179
|
def ==(o)
|
|
186
180
|
return true if self.equal?(o)
|
|
187
181
|
self.class == o.class &&
|
|
182
|
+
ucp == o.ucp &&
|
|
188
183
|
id == o.id &&
|
|
189
184
|
status == o.status &&
|
|
190
185
|
currency == o.currency &&
|
|
186
|
+
buyer == o.buyer &&
|
|
191
187
|
line_items == o.line_items &&
|
|
192
|
-
fulfillment_address == o.fulfillment_address &&
|
|
193
|
-
fulfillment_options == o.fulfillment_options &&
|
|
194
|
-
fulfillment_option_id == o.fulfillment_option_id &&
|
|
195
188
|
totals == o.totals &&
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
189
|
+
fulfillment == o.fulfillment &&
|
|
190
|
+
payment == o.payment &&
|
|
191
|
+
discounts == o.discounts &&
|
|
192
|
+
order == o.order &&
|
|
199
193
|
links == o.links
|
|
200
194
|
end
|
|
201
195
|
|
|
@@ -208,7 +202,7 @@ module CyberSource
|
|
|
208
202
|
# Calculates hash code according to all attributes.
|
|
209
203
|
# @return [Fixnum] Hash code
|
|
210
204
|
def hash
|
|
211
|
-
[id, status, currency,
|
|
205
|
+
[ucp, id, status, currency, buyer, line_items, totals, fulfillment, payment, discounts, order, links].hash
|
|
212
206
|
end
|
|
213
207
|
|
|
214
208
|
# Builds the object from hash
|
|
@@ -13,7 +13,7 @@ require 'date'
|
|
|
13
13
|
|
|
14
14
|
module CyberSource
|
|
15
15
|
# Discount codes and applied discounts for this session.
|
|
16
|
-
class
|
|
16
|
+
class InlineResponse20113Discounts
|
|
17
17
|
# List of discount or promotional codes to apply to the session.
|
|
18
18
|
attr_accessor :codes
|
|
19
19
|
|
|
@@ -13,7 +13,7 @@ require 'date'
|
|
|
13
13
|
|
|
14
14
|
module CyberSource
|
|
15
15
|
# Fulfillment methods available or confirmed for this session.
|
|
16
|
-
class
|
|
16
|
+
class InlineResponse20113Fulfillment
|
|
17
17
|
# List of available fulfillment methods for this session.
|
|
18
18
|
attr_accessor :methods
|
|
19
19
|
|
|
@@ -12,23 +12,23 @@ Swagger Codegen version: 2.4.38
|
|
|
12
12
|
require 'date'
|
|
13
13
|
|
|
14
14
|
module CyberSource
|
|
15
|
-
#
|
|
15
|
+
# Product details for this line item.
|
|
16
16
|
class InlineResponse20113Item
|
|
17
|
-
#
|
|
17
|
+
# The merchant's product ID or SKU.
|
|
18
18
|
attr_accessor :id
|
|
19
19
|
|
|
20
|
-
#
|
|
21
|
-
attr_accessor :
|
|
20
|
+
# Human-readable product name.
|
|
21
|
+
attr_accessor :title
|
|
22
22
|
|
|
23
|
-
#
|
|
24
|
-
attr_accessor :
|
|
23
|
+
# Unit price in cents. Example: 2999 = $29.99 USD.
|
|
24
|
+
attr_accessor :price
|
|
25
25
|
|
|
26
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
27
27
|
def self.attribute_map
|
|
28
28
|
{
|
|
29
29
|
:'id' => :'id',
|
|
30
|
-
:'
|
|
31
|
-
:'
|
|
30
|
+
:'title' => :'title',
|
|
31
|
+
:'price' => :'price'
|
|
32
32
|
}
|
|
33
33
|
end
|
|
34
34
|
|
|
@@ -36,8 +36,8 @@ module CyberSource
|
|
|
36
36
|
def self.json_map
|
|
37
37
|
{
|
|
38
38
|
:'id' => :'id',
|
|
39
|
-
:'
|
|
40
|
-
:'
|
|
39
|
+
:'title' => :'title',
|
|
40
|
+
:'price' => :'price'
|
|
41
41
|
}
|
|
42
42
|
end
|
|
43
43
|
|
|
@@ -45,8 +45,8 @@ module CyberSource
|
|
|
45
45
|
def self.swagger_types
|
|
46
46
|
{
|
|
47
47
|
:'id' => :'String',
|
|
48
|
-
:'
|
|
49
|
-
:'
|
|
48
|
+
:'title' => :'String',
|
|
49
|
+
:'price' => :'Integer'
|
|
50
50
|
}
|
|
51
51
|
end
|
|
52
52
|
|
|
@@ -62,12 +62,12 @@ module CyberSource
|
|
|
62
62
|
self.id = attributes[:'id']
|
|
63
63
|
end
|
|
64
64
|
|
|
65
|
-
if attributes.has_key?(:'
|
|
66
|
-
self.
|
|
65
|
+
if attributes.has_key?(:'title')
|
|
66
|
+
self.title = attributes[:'title']
|
|
67
67
|
end
|
|
68
68
|
|
|
69
|
-
if attributes.has_key?(:'
|
|
70
|
-
self.
|
|
69
|
+
if attributes.has_key?(:'price')
|
|
70
|
+
self.price = attributes[:'price']
|
|
71
71
|
end
|
|
72
72
|
end
|
|
73
73
|
|
|
@@ -90,8 +90,8 @@ module CyberSource
|
|
|
90
90
|
return true if self.equal?(o)
|
|
91
91
|
self.class == o.class &&
|
|
92
92
|
id == o.id &&
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
title == o.title &&
|
|
94
|
+
price == o.price
|
|
95
95
|
end
|
|
96
96
|
|
|
97
97
|
# @see the `==` method
|
|
@@ -103,7 +103,7 @@ module CyberSource
|
|
|
103
103
|
# Calculates hash code according to all attributes.
|
|
104
104
|
# @return [Fixnum] Hash code
|
|
105
105
|
def hash
|
|
106
|
-
[id,
|
|
106
|
+
[id, title, price].hash
|
|
107
107
|
end
|
|
108
108
|
|
|
109
109
|
# Builds the object from hash
|
|
@@ -12,38 +12,26 @@ Swagger Codegen version: 2.4.38
|
|
|
12
12
|
require 'date'
|
|
13
13
|
|
|
14
14
|
module CyberSource
|
|
15
|
-
# A single line item in
|
|
15
|
+
# A single product line item in a UCP session response.
|
|
16
16
|
class InlineResponse20113LineItems
|
|
17
17
|
# ACG-assigned line item identifier.
|
|
18
18
|
attr_accessor :id
|
|
19
19
|
|
|
20
20
|
attr_accessor :item
|
|
21
21
|
|
|
22
|
-
#
|
|
23
|
-
attr_accessor :
|
|
22
|
+
# Number of units in this line item. Minimum 1.
|
|
23
|
+
attr_accessor :quantity
|
|
24
24
|
|
|
25
|
-
#
|
|
26
|
-
attr_accessor :
|
|
27
|
-
|
|
28
|
-
# base_amount minus discount, in minor units.
|
|
29
|
-
attr_accessor :subtotal
|
|
30
|
-
|
|
31
|
-
# Tax on this line item, in minor units.
|
|
32
|
-
attr_accessor :tax
|
|
33
|
-
|
|
34
|
-
# subtotal plus tax, in minor units.
|
|
35
|
-
attr_accessor :total
|
|
25
|
+
# Per-line-item cost breakdown (subtotal, tax, etc.). Amounts in cents.
|
|
26
|
+
attr_accessor :totals
|
|
36
27
|
|
|
37
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
38
29
|
def self.attribute_map
|
|
39
30
|
{
|
|
40
31
|
:'id' => :'id',
|
|
41
32
|
:'item' => :'item',
|
|
42
|
-
:'
|
|
43
|
-
:'
|
|
44
|
-
:'subtotal' => :'subtotal',
|
|
45
|
-
:'tax' => :'tax',
|
|
46
|
-
:'total' => :'total'
|
|
33
|
+
:'quantity' => :'quantity',
|
|
34
|
+
:'totals' => :'totals'
|
|
47
35
|
}
|
|
48
36
|
end
|
|
49
37
|
|
|
@@ -52,11 +40,8 @@ module CyberSource
|
|
|
52
40
|
{
|
|
53
41
|
:'id' => :'id',
|
|
54
42
|
:'item' => :'item',
|
|
55
|
-
:'
|
|
56
|
-
:'
|
|
57
|
-
:'subtotal' => :'subtotal',
|
|
58
|
-
:'tax' => :'tax',
|
|
59
|
-
:'total' => :'total'
|
|
43
|
+
:'quantity' => :'quantity',
|
|
44
|
+
:'totals' => :'totals'
|
|
60
45
|
}
|
|
61
46
|
end
|
|
62
47
|
|
|
@@ -65,11 +50,8 @@ module CyberSource
|
|
|
65
50
|
{
|
|
66
51
|
:'id' => :'String',
|
|
67
52
|
:'item' => :'InlineResponse20113Item',
|
|
68
|
-
:'
|
|
69
|
-
:'
|
|
70
|
-
:'subtotal' => :'Integer',
|
|
71
|
-
:'tax' => :'Integer',
|
|
72
|
-
:'total' => :'Integer'
|
|
53
|
+
:'quantity' => :'Integer',
|
|
54
|
+
:'totals' => :'Array<Iccv1checkoutsessionsFulfillmentTotals>'
|
|
73
55
|
}
|
|
74
56
|
end
|
|
75
57
|
|
|
@@ -89,24 +71,14 @@ module CyberSource
|
|
|
89
71
|
self.item = attributes[:'item']
|
|
90
72
|
end
|
|
91
73
|
|
|
92
|
-
if attributes.has_key?(:'
|
|
93
|
-
self.
|
|
94
|
-
end
|
|
95
|
-
|
|
96
|
-
if attributes.has_key?(:'discount')
|
|
97
|
-
self.discount = attributes[:'discount']
|
|
74
|
+
if attributes.has_key?(:'quantity')
|
|
75
|
+
self.quantity = attributes[:'quantity']
|
|
98
76
|
end
|
|
99
77
|
|
|
100
|
-
if attributes.has_key?(:'
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
if attributes.has_key?(:'tax')
|
|
105
|
-
self.tax = attributes[:'tax']
|
|
106
|
-
end
|
|
107
|
-
|
|
108
|
-
if attributes.has_key?(:'total')
|
|
109
|
-
self.total = attributes[:'total']
|
|
78
|
+
if attributes.has_key?(:'totals')
|
|
79
|
+
if (value = attributes[:'totals']).is_a?(Array)
|
|
80
|
+
self.totals = value
|
|
81
|
+
end
|
|
110
82
|
end
|
|
111
83
|
end
|
|
112
84
|
|
|
@@ -130,11 +102,8 @@ module CyberSource
|
|
|
130
102
|
self.class == o.class &&
|
|
131
103
|
id == o.id &&
|
|
132
104
|
item == o.item &&
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
subtotal == o.subtotal &&
|
|
136
|
-
tax == o.tax &&
|
|
137
|
-
total == o.total
|
|
105
|
+
quantity == o.quantity &&
|
|
106
|
+
totals == o.totals
|
|
138
107
|
end
|
|
139
108
|
|
|
140
109
|
# @see the `==` method
|
|
@@ -146,7 +115,7 @@ module CyberSource
|
|
|
146
115
|
# Calculates hash code according to all attributes.
|
|
147
116
|
# @return [Fixnum] Hash code
|
|
148
117
|
def hash
|
|
149
|
-
[id, item,
|
|
118
|
+
[id, item, quantity, totals].hash
|
|
150
119
|
end
|
|
151
120
|
|
|
152
121
|
# Builds the object from hash
|
|
@@ -13,7 +13,7 @@ require 'date'
|
|
|
13
13
|
|
|
14
14
|
module CyberSource
|
|
15
15
|
# Payment instruments and handlers associated with this session.
|
|
16
|
-
class
|
|
16
|
+
class InlineResponse20113Payment
|
|
17
17
|
# List of payment instruments available for this session (cards, wallets, etc.).
|
|
18
18
|
attr_accessor :instruments
|
|
19
19
|
|
|
@@ -13,7 +13,7 @@ require 'date'
|
|
|
13
13
|
|
|
14
14
|
module CyberSource
|
|
15
15
|
# UCP protocol version and active capabilities for this session.
|
|
16
|
-
class
|
|
16
|
+
class InlineResponse20113Ucp
|
|
17
17
|
# UCP specification version supported by this session.
|
|
18
18
|
attr_accessor :version
|
|
19
19
|
|
|
@@ -40,7 +40,7 @@ module CyberSource
|
|
|
40
40
|
def self.swagger_types
|
|
41
41
|
{
|
|
42
42
|
:'version' => :'String',
|
|
43
|
-
:'capabilities' => :'Array<
|
|
43
|
+
:'capabilities' => :'Array<InlineResponse20113UcpCapabilities>'
|
|
44
44
|
}
|
|
45
45
|
end
|
|
46
46
|
|
|
@@ -13,7 +13,7 @@ require 'date'
|
|
|
13
13
|
|
|
14
14
|
module CyberSource
|
|
15
15
|
# A UCP capability reference included in the version info wrapper.
|
|
16
|
-
class
|
|
16
|
+
class InlineResponse20113UcpCapabilities
|
|
17
17
|
# Capability name (e.g. `checkout`, `product_discovery`).
|
|
18
18
|
attr_accessor :name
|
|
19
19
|
|