cybersource_rest_client 0.0.49 → 0.0.51
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/core/MerchantConfig.rb +5 -0
- data/lib/AuthenticationSDK/util/Constants.rb +2 -0
- data/lib/cybersource_rest_client/api/batches_api.rb +330 -0
- data/lib/cybersource_rest_client/api/customer_api.rb +55 -47
- data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +112 -104
- data/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +112 -104
- data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +93 -81
- data/lib/cybersource_rest_client/api/keymanagement_api.rb +3 -3
- data/lib/cybersource_rest_client/api/microform_integration_api.rb +89 -0
- data/lib/cybersource_rest_client/api/payment_instrument_api.rb +55 -49
- data/lib/cybersource_rest_client/api/payments_api.rb +2 -2
- data/lib/cybersource_rest_client/api/plans_api.rb +573 -0
- data/lib/cybersource_rest_client/api/subscriptions_api.rb +568 -0
- data/lib/cybersource_rest_client/api/taxes_api.rb +2 -2
- data/lib/cybersource_rest_client/api/token_api.rb +112 -0
- data/lib/cybersource_rest_client/api/transient_token_data_api.rb +2 -2
- data/lib/cybersource_rest_client/api/unified_checkout_capture_context_api.rb +6 -5
- data/lib/cybersource_rest_client/api_client.rb +11 -0
- data/lib/cybersource_rest_client/models/accountupdaterv1batches_included.rb +185 -0
- data/lib/cybersource_rest_client/models/accountupdaterv1batches_included_tokens.rb +228 -0
- data/lib/cybersource_rest_client/models/body.rb +42 -32
- data/lib/cybersource_rest_client/models/create_bundled_decision_manager_case_request.rb +13 -4
- data/lib/cybersource_rest_client/models/create_payment_request.rb +13 -4
- data/lib/cybersource_rest_client/models/create_plan_request.rb +201 -0
- data/lib/cybersource_rest_client/models/create_report_subscription_request.rb +0 -18
- data/lib/cybersource_rest_client/models/{flexv1tokens_card_info.rb → create_subscription_request.rb} +44 -40
- data/lib/cybersource_rest_client/models/generate_capture_context_request.rb +216 -0
- data/lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200.rb +19 -41
- data/lib/cybersource_rest_client/models/inline_response_200_1.rb +227 -0
- data/lib/cybersource_rest_client/models/inline_response_200_10.rb +200 -0
- data/lib/cybersource_rest_client/models/inline_response_200_11.rb +236 -0
- data/lib/cybersource_rest_client/models/{inline_response_200_keys.rb → inline_response_200_11_keys.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_12.rb +239 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12__embedded.rb +185 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12__embedded__links.rb +185 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12__embedded__links_reports.rb +184 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12__embedded_batches.rb +280 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12__embedded_totals.rb +219 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12__links.rb +193 -0
- data/lib/cybersource_rest_client/models/inline_response_200_13.rb +275 -0
- data/lib/cybersource_rest_client/models/inline_response_200_13__links.rb +194 -0
- data/lib/cybersource_rest_client/models/inline_response_200_13__links_report.rb +183 -0
- data/lib/cybersource_rest_client/models/{tokenize_request.rb → inline_response_200_13_billing.rb} +32 -20
- data/lib/cybersource_rest_client/models/inline_response_200_14.rb +277 -0
- data/lib/cybersource_rest_client/models/inline_response_200_14_records.rb +201 -0
- data/lib/cybersource_rest_client/models/inline_response_200_14_response_record.rb +292 -0
- data/lib/cybersource_rest_client/models/inline_response_200_14_response_record_additional_updates.rb +232 -0
- data/lib/cybersource_rest_client/models/inline_response_200_14_source_record.rb +282 -0
- data/lib/cybersource_rest_client/models/inline_response_200_2.rb +194 -0
- data/lib/cybersource_rest_client/models/inline_response_200_3.rb +228 -0
- data/lib/cybersource_rest_client/models/inline_response_200_3_plan_information.rb +200 -0
- data/lib/cybersource_rest_client/models/inline_response_200_4.rb +228 -0
- data/lib/cybersource_rest_client/models/inline_response_200_5.rb +200 -0
- data/lib/cybersource_rest_client/models/inline_response_200_6.rb +214 -0
- data/lib/cybersource_rest_client/models/inline_response_200_6__links.rb +210 -0
- data/lib/cybersource_rest_client/models/inline_response_200_6_order_information.rb +192 -0
- data/lib/cybersource_rest_client/models/inline_response_200_6_order_information_bill_to.rb +206 -0
- data/lib/cybersource_rest_client/models/inline_response_200_6_payment_information.rb +183 -0
- data/lib/cybersource_rest_client/models/inline_response_200_6_payment_information_customer.rb +190 -0
- data/lib/cybersource_rest_client/models/{flex_v1_keys_post200_response_jwk.rb → inline_response_200_6_plan_information.rb} +40 -41
- data/lib/cybersource_rest_client/models/inline_response_200_6_plan_information_billing_cycles.rb +194 -0
- data/lib/cybersource_rest_client/models/inline_response_200_6_subscription_information.rb +242 -0
- data/lib/cybersource_rest_client/models/inline_response_200_6_subscriptions.rb +236 -0
- data/lib/cybersource_rest_client/models/inline_response_200_7.rb +245 -0
- data/lib/cybersource_rest_client/models/inline_response_200_8.rb +228 -0
- data/lib/cybersource_rest_client/models/{generate_public_key_request.rb → inline_response_200_9.rb} +50 -21
- data/lib/cybersource_rest_client/models/inline_response_200_9_subscription_information.rb +200 -0
- data/lib/cybersource_rest_client/models/{flex_v1_keys_post200_response.rb → inline_response_200__links.rb} +20 -21
- data/lib/cybersource_rest_client/models/inline_response_200_order_information.rb +183 -0
- data/lib/cybersource_rest_client/models/inline_response_200_order_information_amount_details.rb +222 -0
- data/lib/cybersource_rest_client/models/inline_response_200_plan_information.rb +250 -0
- data/lib/cybersource_rest_client/models/inline_response_200_plan_information_billing_cycles.rb +184 -0
- data/lib/cybersource_rest_client/models/inline_response_200_plan_information_billing_period.rb +195 -0
- data/lib/cybersource_rest_client/models/inline_response_200_plans.rb +218 -0
- data/lib/cybersource_rest_client/models/inline_response_201.rb +228 -0
- data/lib/cybersource_rest_client/models/inline_response_201_1.rb +228 -0
- data/lib/cybersource_rest_client/models/{invoicing_v2_invoices_all_get200_response__links_1.rb → inline_response_201_1__links.rb} +23 -14
- data/lib/cybersource_rest_client/models/inline_response_201_1_subscription_information.rb +200 -0
- data/lib/cybersource_rest_client/models/inline_response_201_plan_information.rb +200 -0
- data/lib/cybersource_rest_client/models/inline_response_202.rb +228 -0
- data/lib/cybersource_rest_client/models/inline_response_202_1.rb +228 -0
- data/lib/cybersource_rest_client/models/inline_response_202_1_subscription_information.rb +200 -0
- data/lib/cybersource_rest_client/models/inline_response_202_2.rb +202 -0
- data/lib/cybersource_rest_client/models/inline_response_202_2__links.rb +194 -0
- data/lib/cybersource_rest_client/models/inline_response_202_2__links_status.rb +183 -0
- data/lib/cybersource_rest_client/models/inline_response_202_subscription_information.rb +200 -0
- data/lib/cybersource_rest_client/models/inline_response_400_1.rb +33 -55
- data/lib/cybersource_rest_client/models/inline_response_400_2.rb +10 -9
- data/lib/cybersource_rest_client/models/inline_response_400_3.rb +55 -33
- data/lib/cybersource_rest_client/models/{inline_response_400_1_fields.rb → inline_response_400_3_fields.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_400_4.rb +30 -71
- data/lib/cybersource_rest_client/models/inline_response_400_5.rb +225 -0
- data/lib/cybersource_rest_client/models/inline_response_400_6.rb +265 -0
- data/lib/cybersource_rest_client/models/{inline_response_400_4_details.rb → inline_response_400_6_details.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_400_errors.rb +2 -2
- data/lib/cybersource_rest_client/models/inline_response_401.rb +241 -0
- data/lib/cybersource_rest_client/models/inline_response_401__links.rb +183 -0
- data/lib/cybersource_rest_client/models/inline_response_401__links_self.rb +183 -0
- data/lib/cybersource_rest_client/models/inline_response_401_fields.rb +202 -0
- data/lib/cybersource_rest_client/models/inline_response_403.rb +185 -0
- data/lib/cybersource_rest_client/models/inline_response_403_errors.rb +194 -0
- data/lib/cybersource_rest_client/models/inline_response_404.rb +194 -0
- data/lib/cybersource_rest_client/models/inline_response_409.rb +185 -0
- data/lib/cybersource_rest_client/models/inline_response_409_errors.rb +194 -0
- data/lib/cybersource_rest_client/models/inline_response_410.rb +185 -0
- data/lib/cybersource_rest_client/models/inline_response_410_errors.rb +194 -0
- data/lib/cybersource_rest_client/models/inline_response_412.rb +185 -0
- data/lib/cybersource_rest_client/models/inline_response_412_errors.rb +194 -0
- data/lib/cybersource_rest_client/models/inline_response_424.rb +185 -0
- data/lib/cybersource_rest_client/models/inline_response_424_errors.rb +194 -0
- data/lib/cybersource_rest_client/models/inline_response_500.rb +9 -38
- data/lib/cybersource_rest_client/models/inline_response_500_1.rb +214 -0
- data/lib/cybersource_rest_client/models/inline_response_500_errors.rb +194 -0
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response.rb +1 -1
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response__links.rb +22 -13
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_invoices.rb +1 -1
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_get200_response.rb +1 -1
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_line_items.rb +0 -18
- data/lib/cybersource_rest_client/models/{flex_v1_tokens_post200_response.rb → microformv2sessions_checkout_api_initialization.rb} +68 -59
- data/lib/cybersource_rest_client/models/patch_customer_payment_instrument_request.rb +15 -5
- data/lib/cybersource_rest_client/models/patch_customer_request.rb +1 -1
- data/lib/cybersource_rest_client/models/patch_customer_shipping_address_request.rb +2 -2
- data/lib/cybersource_rest_client/models/patch_instrument_identifier_request.rb +4 -4
- data/lib/cybersource_rest_client/models/patch_payment_instrument_request.rb +15 -5
- data/lib/cybersource_rest_client/models/post_customer_payment_instrument_request.rb +15 -5
- data/lib/cybersource_rest_client/models/post_customer_request.rb +1 -1
- data/lib/cybersource_rest_client/models/post_customer_shipping_address_request.rb +2 -2
- data/lib/cybersource_rest_client/models/post_instrument_identifier_enrollment_request.rb +4 -4
- data/lib/cybersource_rest_client/models/post_instrument_identifier_request.rb +4 -4
- data/lib/cybersource_rest_client/models/post_payment_instrument_request.rb +15 -5
- data/lib/cybersource_rest_client/models/predefined_subscription_request_bean.rb +0 -18
- data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +13 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information_ship_to.rb +1 -1
- 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_installment_information.rb +0 -18
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information.rb +13 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_bill_to.rb +206 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_invoice_details.rb +0 -9
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +22 -6
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_electronic_verification_results.rb +102 -6
- data/lib/cybersource_rest_client/models/{risk_v1_export_compliance_inquiries_post201_response_export_compliance_information.rb → pts_v2_payments_post201_response_watchlist_screening_information.rb} +2 -20
- data/lib/cybersource_rest_client/models/{risk_v1_export_compliance_inquiries_post201_response_export_compliance_information_watch_list.rb → pts_v2_payments_post201_response_watchlist_screening_information_watch_list.rb} +2 -2
- data/lib/cybersource_rest_client/models/{risk_v1_export_compliance_inquiries_post201_response_watch_list_matches.rb → pts_v2_payments_post201_response_watchlist_screening_information_watch_list_matches.rb} +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +0 -18
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +26 -19
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +20 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_service_location.rb +238 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb +36 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +27 -23
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_ship_to.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +1 -21
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +22 -6
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +12 -47
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +14 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_capture_options.rb +0 -36
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_lodging.rb +0 -36
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_lodging_room.rb +0 -18
- data/lib/cybersource_rest_client/models/ptsv2payments_watchlist_screening_information.rb +215 -0
- data/lib/cybersource_rest_client/models/{riskv1exportcomplianceinquiries_export_compliance_information_weights.rb → ptsv2payments_watchlist_screening_information_weights.rb} +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +0 -18
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_merchant_information.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_ship_to.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_capture_options.rb +0 -36
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_merchant_information.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb +1 -19
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items.rb +0 -18
- data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information_payouts_options.rb +20 -4
- data/lib/cybersource_rest_client/models/rbsv1plans_client_reference_information.rb +229 -0
- data/lib/cybersource_rest_client/models/rbsv1plans_order_information.rb +183 -0
- data/lib/cybersource_rest_client/models/rbsv1plans_order_information_amount_details.rb +240 -0
- data/lib/cybersource_rest_client/models/rbsv1plans_plan_information.rb +259 -0
- data/lib/cybersource_rest_client/models/rbsv1plans_plan_information_billing_cycles.rb +185 -0
- data/lib/cybersource_rest_client/models/rbsv1plansid_plan_information.rb +250 -0
- data/lib/cybersource_rest_client/models/rbsv1plansid_processing_information.rb +183 -0
- data/lib/cybersource_rest_client/models/rbsv1plansid_processing_information_subscription_billing_options.rb +184 -0
- data/lib/cybersource_rest_client/models/rbsv1subscriptions_client_reference_information.rb +245 -0
- data/lib/cybersource_rest_client/models/rbsv1subscriptions_payment_information.rb +183 -0
- data/lib/cybersource_rest_client/models/rbsv1subscriptions_payment_information_customer.rb +199 -0
- data/lib/cybersource_rest_client/models/rbsv1subscriptions_plan_information.rb +192 -0
- data/lib/cybersource_rest_client/models/rbsv1subscriptions_processing_information.rb +199 -0
- data/lib/cybersource_rest_client/models/rbsv1subscriptions_processing_information_authorization_options.rb +183 -0
- data/lib/cybersource_rest_client/models/rbsv1subscriptions_processing_information_authorization_options_initiator.rb +184 -0
- data/lib/cybersource_rest_client/models/rbsv1subscriptions_subscription_information.rb +246 -0
- data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_order_information.rb +183 -0
- data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_order_information_amount_details.rb +206 -0
- data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_plan_information.rb +183 -0
- data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_subscription_information.rb +232 -0
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response.rb +10 -1
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_consumer_authentication_information.rb +88 -4
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_error_information.rb +1 -1
- data/lib/cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_line_items.rb +1 -19
- data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_ship_to.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb +20 -4
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_order_information_line_items.rb +0 -18
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authentications_buyer_information.rb +14 -4
- data/lib/cybersource_rest_client/models/riskv1authentications_order_information_bill_to.rb +17 -1
- data/lib/cybersource_rest_client/models/riskv1authentications_order_information_line_items.rb +152 -22
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_consumer_authentication_information.rb +14 -4
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_line_items.rb +27 -23
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_ship_to.rb +34 -2
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_processing_information.rb +2 -2
- data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_export_compliance_information.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_line_items.rb +1 -19
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information_ship_to.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/tms_v2_customers_response.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument.rb +15 -5
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier.rb +4 -4
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_bill_to.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_card.rb +3 -3
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_metadata.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_bank_account.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_buyer_information_personal_identification.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_card.rb +22 -4
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_card_tokenized_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_instrument_identifier.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_merchant_information_merchant_descriptor.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_metadata.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_processing_information_bank_transfer_options.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address.rb +2 -2
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address_metadata.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address_ship_to.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_merchant_initiated_transaction.rb +20 -4
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_tokenized_card.rb +15 -5
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_tokenized_card_card.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers_default_payment_instrument.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers_default_shipping_address.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers_merchant_defined_information.rb +2 -2
- data/lib/cybersource_rest_client/models/tmsv2customers_metadata.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_invoice_details.rb +0 -9
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_line_items.rb +0 -18
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_point_of_sale_information.rb +0 -18
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information_electronic_verification_results.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information.rb +13 -4
- data/lib/cybersource_rest_client/models/ums_v1_users_get200_response_users.rb +15 -4
- data/lib/cybersource_rest_client/models/{flex_v1_keys_post200_response_der.rb → update_plan_request.rb} +20 -24
- data/lib/cybersource_rest_client/models/update_subscription.rb +219 -0
- data/lib/cybersource_rest_client/models/vas_v2_payments_post201_response_tax_information.rb +2 -2
- data/lib/cybersource_rest_client/models/vas_v2_payments_post400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/vasv2tax_order_information_line_items.rb +1 -19
- data/lib/cybersource_rest_client/models/vasv2tax_order_information_order_acceptance.rb +5 -5
- data/lib/cybersource_rest_client/models/vasv2tax_order_information_order_origin.rb +5 -5
- data/lib/cybersource_rest_client/models/vasv2tax_order_information_ship_to.rb +1 -1
- data/lib/cybersource_rest_client/models/vasv2tax_tax_information.rb +3 -3
- data/lib/cybersource_rest_client.rb +119 -17
- metadata +121 -19
- data/lib/cybersource_rest_client/api/key_generation_api.rb +0 -96
- data/lib/cybersource_rest_client/api/tokenization_api.rb +0 -89
@@ -13,47 +13,40 @@ Swagger Codegen version: 2.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module CyberSource
|
16
|
-
# Error Bean
|
17
16
|
class InlineResponse4001
|
18
|
-
#
|
19
|
-
attr_accessor :
|
17
|
+
# Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The `T` separates the date and the time. The `Z` indicates UTC. Returned by Cybersource for all services.
|
18
|
+
attr_accessor :submit_time_utc
|
20
19
|
|
21
|
-
#
|
22
|
-
attr_accessor :
|
23
|
-
|
24
|
-
# Localization Key Name
|
25
|
-
attr_accessor :localization_key
|
20
|
+
# The status of the submitted transaction. Possible values: - INVALID_REQUEST
|
21
|
+
attr_accessor :status
|
26
22
|
|
27
|
-
#
|
28
|
-
attr_accessor :
|
23
|
+
# The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA - DUPLICATE_REQUEST - INVALID_MERCHANT_CONFIGURATION
|
24
|
+
attr_accessor :reason
|
29
25
|
|
30
|
-
#
|
31
|
-
attr_accessor :
|
26
|
+
# The detail message related to the status and reason listed above.
|
27
|
+
attr_accessor :message
|
32
28
|
|
33
|
-
|
34
|
-
attr_accessor :fields
|
29
|
+
attr_accessor :details
|
35
30
|
|
36
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
37
32
|
def self.attribute_map
|
38
33
|
{
|
39
|
-
:'
|
34
|
+
:'submit_time_utc' => :'submitTimeUtc',
|
35
|
+
:'status' => :'status',
|
36
|
+
:'reason' => :'reason',
|
40
37
|
:'message' => :'message',
|
41
|
-
:'
|
42
|
-
:'correlation_id' => :'correlationId',
|
43
|
-
:'detail' => :'detail',
|
44
|
-
:'fields' => :'fields'
|
38
|
+
:'details' => :'details'
|
45
39
|
}
|
46
40
|
end
|
47
41
|
|
48
42
|
# Attribute type mapping.
|
49
43
|
def self.swagger_types
|
50
44
|
{
|
51
|
-
:'
|
45
|
+
:'submit_time_utc' => :'String',
|
46
|
+
:'status' => :'String',
|
47
|
+
:'reason' => :'String',
|
52
48
|
:'message' => :'String',
|
53
|
-
:'
|
54
|
-
:'correlation_id' => :'String',
|
55
|
-
:'detail' => :'String',
|
56
|
-
:'fields' => :'Array<InlineResponse4001Fields>'
|
49
|
+
:'details' => :'Array<PtsV2PaymentsPost201ResponseErrorInformationDetails>'
|
57
50
|
}
|
58
51
|
end
|
59
52
|
|
@@ -65,29 +58,25 @@ module CyberSource
|
|
65
58
|
# convert string to symbol for hash key
|
66
59
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
67
60
|
|
68
|
-
if attributes.has_key?(:'
|
69
|
-
self.
|
70
|
-
end
|
71
|
-
|
72
|
-
if attributes.has_key?(:'message')
|
73
|
-
self.message = attributes[:'message']
|
61
|
+
if attributes.has_key?(:'submitTimeUtc')
|
62
|
+
self.submit_time_utc = attributes[:'submitTimeUtc']
|
74
63
|
end
|
75
64
|
|
76
|
-
if attributes.has_key?(:'
|
77
|
-
self.
|
65
|
+
if attributes.has_key?(:'status')
|
66
|
+
self.status = attributes[:'status']
|
78
67
|
end
|
79
68
|
|
80
|
-
if attributes.has_key?(:'
|
81
|
-
self.
|
69
|
+
if attributes.has_key?(:'reason')
|
70
|
+
self.reason = attributes[:'reason']
|
82
71
|
end
|
83
72
|
|
84
|
-
if attributes.has_key?(:'
|
85
|
-
self.
|
73
|
+
if attributes.has_key?(:'message')
|
74
|
+
self.message = attributes[:'message']
|
86
75
|
end
|
87
76
|
|
88
|
-
if attributes.has_key?(:'
|
89
|
-
if (value = attributes[:'
|
90
|
-
self.
|
77
|
+
if attributes.has_key?(:'details')
|
78
|
+
if (value = attributes[:'details']).is_a?(Array)
|
79
|
+
self.details = value
|
91
80
|
end
|
92
81
|
end
|
93
82
|
end
|
@@ -96,22 +85,12 @@ module CyberSource
|
|
96
85
|
# @return Array for valid properties with the reasons
|
97
86
|
def list_invalid_properties
|
98
87
|
invalid_properties = Array.new
|
99
|
-
if @code.nil?
|
100
|
-
invalid_properties.push('invalid value for "code", code cannot be nil.')
|
101
|
-
end
|
102
|
-
|
103
|
-
if @message.nil?
|
104
|
-
invalid_properties.push('invalid value for "message", message cannot be nil.')
|
105
|
-
end
|
106
|
-
|
107
88
|
invalid_properties
|
108
89
|
end
|
109
90
|
|
110
91
|
# Check to see if the all the properties in the model are valid
|
111
92
|
# @return true if the model is valid
|
112
93
|
def valid?
|
113
|
-
return false if @code.nil?
|
114
|
-
return false if @message.nil?
|
115
94
|
true
|
116
95
|
end
|
117
96
|
|
@@ -120,12 +99,11 @@ module CyberSource
|
|
120
99
|
def ==(o)
|
121
100
|
return true if self.equal?(o)
|
122
101
|
self.class == o.class &&
|
123
|
-
|
102
|
+
submit_time_utc == o.submit_time_utc &&
|
103
|
+
status == o.status &&
|
104
|
+
reason == o.reason &&
|
124
105
|
message == o.message &&
|
125
|
-
|
126
|
-
correlation_id == o.correlation_id &&
|
127
|
-
detail == o.detail &&
|
128
|
-
fields == o.fields
|
106
|
+
details == o.details
|
129
107
|
end
|
130
108
|
|
131
109
|
# @see the `==` method
|
@@ -137,7 +115,7 @@ module CyberSource
|
|
137
115
|
# Calculates hash code according to all attributes.
|
138
116
|
# @return [Fixnum] Hash code
|
139
117
|
def hash
|
140
|
-
[
|
118
|
+
[submit_time_utc, status, reason, message, details].hash
|
141
119
|
end
|
142
120
|
|
143
121
|
# Builds the object from hash
|
@@ -20,14 +20,13 @@ module CyberSource
|
|
20
20
|
# The status of the submitted transaction. Possible values: - INVALID_REQUEST
|
21
21
|
attr_accessor :status
|
22
22
|
|
23
|
-
# The reason of the status. Possible values: - MISSING_FIELD
|
23
|
+
# The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA - DUPLICATE_REQUEST - INVALID_CARD - CARD_TYPE_NOT_ACCEPTED - INVALID_MERCHANT_CONFIGURATION - PROCESSOR_UNAVAILABLE - INVALID_CARD_TYPE
|
24
24
|
attr_accessor :reason
|
25
25
|
|
26
26
|
# The detail message related to the status and reason listed above.
|
27
27
|
attr_accessor :message
|
28
28
|
|
29
|
-
|
30
|
-
attr_accessor :status_code
|
29
|
+
attr_accessor :details
|
31
30
|
|
32
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
32
|
def self.attribute_map
|
@@ -36,7 +35,7 @@ module CyberSource
|
|
36
35
|
:'status' => :'status',
|
37
36
|
:'reason' => :'reason',
|
38
37
|
:'message' => :'message',
|
39
|
-
:'
|
38
|
+
:'details' => :'details'
|
40
39
|
}
|
41
40
|
end
|
42
41
|
|
@@ -47,7 +46,7 @@ module CyberSource
|
|
47
46
|
:'status' => :'String',
|
48
47
|
:'reason' => :'String',
|
49
48
|
:'message' => :'String',
|
50
|
-
:'
|
49
|
+
:'details' => :'Array<PtsV2PaymentsPost201ResponseErrorInformationDetails>'
|
51
50
|
}
|
52
51
|
end
|
53
52
|
|
@@ -75,8 +74,10 @@ module CyberSource
|
|
75
74
|
self.message = attributes[:'message']
|
76
75
|
end
|
77
76
|
|
78
|
-
if attributes.has_key?(:'
|
79
|
-
|
77
|
+
if attributes.has_key?(:'details')
|
78
|
+
if (value = attributes[:'details']).is_a?(Array)
|
79
|
+
self.details = value
|
80
|
+
end
|
80
81
|
end
|
81
82
|
end
|
82
83
|
|
@@ -102,7 +103,7 @@ module CyberSource
|
|
102
103
|
status == o.status &&
|
103
104
|
reason == o.reason &&
|
104
105
|
message == o.message &&
|
105
|
-
|
106
|
+
details == o.details
|
106
107
|
end
|
107
108
|
|
108
109
|
# @see the `==` method
|
@@ -114,7 +115,7 @@ module CyberSource
|
|
114
115
|
# Calculates hash code according to all attributes.
|
115
116
|
# @return [Fixnum] Hash code
|
116
117
|
def hash
|
117
|
-
[submit_time_utc, status, reason, message,
|
118
|
+
[submit_time_utc, status, reason, message, details].hash
|
118
119
|
end
|
119
120
|
|
120
121
|
# Builds the object from hash
|
@@ -13,40 +13,47 @@ Swagger Codegen version: 2.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module CyberSource
|
16
|
+
# Error Bean
|
16
17
|
class InlineResponse4003
|
17
|
-
#
|
18
|
-
attr_accessor :
|
18
|
+
# Error code
|
19
|
+
attr_accessor :code
|
19
20
|
|
20
|
-
#
|
21
|
-
attr_accessor :
|
21
|
+
# Error message
|
22
|
+
attr_accessor :message
|
22
23
|
|
23
|
-
#
|
24
|
-
attr_accessor :
|
24
|
+
# Localization Key Name
|
25
|
+
attr_accessor :localization_key
|
25
26
|
|
26
|
-
#
|
27
|
-
attr_accessor :
|
27
|
+
# Correlation Id
|
28
|
+
attr_accessor :correlation_id
|
28
29
|
|
29
|
-
|
30
|
+
# Error Detail
|
31
|
+
attr_accessor :detail
|
32
|
+
|
33
|
+
# Error fields List
|
34
|
+
attr_accessor :fields
|
30
35
|
|
31
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
32
37
|
def self.attribute_map
|
33
38
|
{
|
34
|
-
:'
|
35
|
-
:'status' => :'status',
|
36
|
-
:'reason' => :'reason',
|
39
|
+
:'code' => :'code',
|
37
40
|
:'message' => :'message',
|
38
|
-
:'
|
41
|
+
:'localization_key' => :'localizationKey',
|
42
|
+
:'correlation_id' => :'correlationId',
|
43
|
+
:'detail' => :'detail',
|
44
|
+
:'fields' => :'fields'
|
39
45
|
}
|
40
46
|
end
|
41
47
|
|
42
48
|
# Attribute type mapping.
|
43
49
|
def self.swagger_types
|
44
50
|
{
|
45
|
-
:'
|
46
|
-
:'status' => :'String',
|
47
|
-
:'reason' => :'String',
|
51
|
+
:'code' => :'String',
|
48
52
|
:'message' => :'String',
|
49
|
-
:'
|
53
|
+
:'localization_key' => :'String',
|
54
|
+
:'correlation_id' => :'String',
|
55
|
+
:'detail' => :'String',
|
56
|
+
:'fields' => :'Array<InlineResponse4003Fields>'
|
50
57
|
}
|
51
58
|
end
|
52
59
|
|
@@ -58,25 +65,29 @@ module CyberSource
|
|
58
65
|
# convert string to symbol for hash key
|
59
66
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
60
67
|
|
61
|
-
if attributes.has_key?(:'
|
62
|
-
self.
|
68
|
+
if attributes.has_key?(:'code')
|
69
|
+
self.code = attributes[:'code']
|
63
70
|
end
|
64
71
|
|
65
|
-
if attributes.has_key?(:'
|
66
|
-
self.
|
72
|
+
if attributes.has_key?(:'message')
|
73
|
+
self.message = attributes[:'message']
|
67
74
|
end
|
68
75
|
|
69
|
-
if attributes.has_key?(:'
|
70
|
-
self.
|
76
|
+
if attributes.has_key?(:'localizationKey')
|
77
|
+
self.localization_key = attributes[:'localizationKey']
|
71
78
|
end
|
72
79
|
|
73
|
-
if attributes.has_key?(:'
|
74
|
-
self.
|
80
|
+
if attributes.has_key?(:'correlationId')
|
81
|
+
self.correlation_id = attributes[:'correlationId']
|
75
82
|
end
|
76
83
|
|
77
|
-
if attributes.has_key?(:'
|
78
|
-
|
79
|
-
|
84
|
+
if attributes.has_key?(:'detail')
|
85
|
+
self.detail = attributes[:'detail']
|
86
|
+
end
|
87
|
+
|
88
|
+
if attributes.has_key?(:'fields')
|
89
|
+
if (value = attributes[:'fields']).is_a?(Array)
|
90
|
+
self.fields = value
|
80
91
|
end
|
81
92
|
end
|
82
93
|
end
|
@@ -85,12 +96,22 @@ module CyberSource
|
|
85
96
|
# @return Array for valid properties with the reasons
|
86
97
|
def list_invalid_properties
|
87
98
|
invalid_properties = Array.new
|
99
|
+
if @code.nil?
|
100
|
+
invalid_properties.push('invalid value for "code", code cannot be nil.')
|
101
|
+
end
|
102
|
+
|
103
|
+
if @message.nil?
|
104
|
+
invalid_properties.push('invalid value for "message", message cannot be nil.')
|
105
|
+
end
|
106
|
+
|
88
107
|
invalid_properties
|
89
108
|
end
|
90
109
|
|
91
110
|
# Check to see if the all the properties in the model are valid
|
92
111
|
# @return true if the model is valid
|
93
112
|
def valid?
|
113
|
+
return false if @code.nil?
|
114
|
+
return false if @message.nil?
|
94
115
|
true
|
95
116
|
end
|
96
117
|
|
@@ -99,11 +120,12 @@ module CyberSource
|
|
99
120
|
def ==(o)
|
100
121
|
return true if self.equal?(o)
|
101
122
|
self.class == o.class &&
|
102
|
-
|
103
|
-
status == o.status &&
|
104
|
-
reason == o.reason &&
|
123
|
+
code == o.code &&
|
105
124
|
message == o.message &&
|
106
|
-
|
125
|
+
localization_key == o.localization_key &&
|
126
|
+
correlation_id == o.correlation_id &&
|
127
|
+
detail == o.detail &&
|
128
|
+
fields == o.fields
|
107
129
|
end
|
108
130
|
|
109
131
|
# @see the `==` method
|
@@ -115,7 +137,7 @@ module CyberSource
|
|
115
137
|
# Calculates hash code according to all attributes.
|
116
138
|
# @return [Fixnum] Hash code
|
117
139
|
def hash
|
118
|
-
[
|
140
|
+
[code, message, localization_key, correlation_id, detail, fields].hash
|
119
141
|
end
|
120
142
|
|
121
143
|
# Builds the object from hash
|
@@ -14,57 +14,40 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class InlineResponse4004
|
17
|
-
|
17
|
+
# Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The `T` separates the date and the time. The `Z` indicates UTC. Returned by Cybersource for all services.
|
18
|
+
attr_accessor :submit_time_utc
|
18
19
|
|
19
|
-
|
20
|
-
|
21
|
-
attr_accessor :information_link
|
22
|
-
|
23
|
-
attr_accessor :message
|
20
|
+
# The status of the submitted transaction. Possible values: - INVALID_REQUEST
|
21
|
+
attr_accessor :status
|
24
22
|
|
23
|
+
# The reason of the status. Possible values: - MISSING_FIELD
|
25
24
|
attr_accessor :reason
|
26
25
|
|
27
|
-
|
28
|
-
|
29
|
-
attr_reader :allowable_values
|
30
|
-
|
31
|
-
def initialize(datatype, allowable_values)
|
32
|
-
@allowable_values = allowable_values.map do |value|
|
33
|
-
case datatype.to_s
|
34
|
-
when /Integer/i
|
35
|
-
value.to_i
|
36
|
-
when /Float/i
|
37
|
-
value.to_f
|
38
|
-
else
|
39
|
-
value
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
26
|
+
# The detail message related to the status and reason listed above.
|
27
|
+
attr_accessor :message
|
43
28
|
|
44
|
-
|
45
|
-
|
46
|
-
end
|
47
|
-
end
|
29
|
+
# HTTP status code of the submitted request. Possible values: - 500
|
30
|
+
attr_accessor :status_code
|
48
31
|
|
49
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
50
33
|
def self.attribute_map
|
51
34
|
{
|
52
|
-
:'
|
53
|
-
:'
|
54
|
-
:'
|
35
|
+
:'submit_time_utc' => :'submitTimeUtc',
|
36
|
+
:'status' => :'status',
|
37
|
+
:'reason' => :'reason',
|
55
38
|
:'message' => :'message',
|
56
|
-
:'
|
39
|
+
:'status_code' => :'statusCode'
|
57
40
|
}
|
58
41
|
end
|
59
42
|
|
60
43
|
# Attribute type mapping.
|
61
44
|
def self.swagger_types
|
62
45
|
{
|
63
|
-
:'
|
64
|
-
:'
|
65
|
-
:'
|
46
|
+
:'submit_time_utc' => :'String',
|
47
|
+
:'status' => :'String',
|
48
|
+
:'reason' => :'String',
|
66
49
|
:'message' => :'String',
|
67
|
-
:'
|
50
|
+
:'status_code' => :'String'
|
68
51
|
}
|
69
52
|
end
|
70
53
|
|
@@ -76,26 +59,24 @@ module CyberSource
|
|
76
59
|
# convert string to symbol for hash key
|
77
60
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
78
61
|
|
79
|
-
if attributes.has_key?(:'
|
80
|
-
self.
|
62
|
+
if attributes.has_key?(:'submitTimeUtc')
|
63
|
+
self.submit_time_utc = attributes[:'submitTimeUtc']
|
81
64
|
end
|
82
65
|
|
83
|
-
if attributes.has_key?(:'
|
84
|
-
|
85
|
-
self.details = value
|
86
|
-
end
|
66
|
+
if attributes.has_key?(:'status')
|
67
|
+
self.status = attributes[:'status']
|
87
68
|
end
|
88
69
|
|
89
|
-
if attributes.has_key?(:'
|
90
|
-
self.
|
70
|
+
if attributes.has_key?(:'reason')
|
71
|
+
self.reason = attributes[:'reason']
|
91
72
|
end
|
92
73
|
|
93
74
|
if attributes.has_key?(:'message')
|
94
75
|
self.message = attributes[:'message']
|
95
76
|
end
|
96
77
|
|
97
|
-
if attributes.has_key?(:'
|
98
|
-
self.
|
78
|
+
if attributes.has_key?(:'statusCode')
|
79
|
+
self.status_code = attributes[:'statusCode']
|
99
80
|
end
|
100
81
|
end
|
101
82
|
|
@@ -103,47 +84,25 @@ module CyberSource
|
|
103
84
|
# @return Array for valid properties with the reasons
|
104
85
|
def list_invalid_properties
|
105
86
|
invalid_properties = Array.new
|
106
|
-
if @message.nil?
|
107
|
-
invalid_properties.push('invalid value for "message", message cannot be nil.')
|
108
|
-
end
|
109
|
-
|
110
|
-
if @reason.nil?
|
111
|
-
invalid_properties.push('invalid value for "reason", reason cannot be nil.')
|
112
|
-
end
|
113
|
-
|
114
87
|
invalid_properties
|
115
88
|
end
|
116
89
|
|
117
90
|
# Check to see if the all the properties in the model are valid
|
118
91
|
# @return true if the model is valid
|
119
92
|
def valid?
|
120
|
-
return false if @message.nil?
|
121
|
-
return false if @reason.nil?
|
122
|
-
reason_validator = EnumAttributeValidator.new('String', ['INVALID_APIKEY', 'INVALID_SHIPPING_INPUT_PARAMS', 'CAPTURE_CONTEXT_INVALID', 'CAPTURE_CONTEXT_EXPIRED', 'SDK_XHR_ERROR', 'UNIFIEDPAYMENTS_VALIDATION_PARAMS', 'UNIFIEDPAYMENTS_VALIDATION_FIELDS', 'UNIFIEDPAYMENT_PAYMENT_PARAMITERS', 'CREATE_TOKEN_TIMEOUT', 'CREATE_TOKEN_XHR_ERROR', 'SHOW_LOAD_CONTAINER_SELECTOR', 'SHOW_LOAD_INVALID_CONTAINER', 'SHOW_TOKEN_TIMEOUT', 'SHOW_TOKEN_XHR_ERROR', 'SHOW_PAYMENT_TIMEOUT'])
|
123
|
-
return false unless reason_validator.valid?(@reason)
|
124
93
|
true
|
125
94
|
end
|
126
95
|
|
127
|
-
# Custom attribute writer method checking allowed values (enum).
|
128
|
-
# @param [Object] reason Object to be assigned
|
129
|
-
def reason=(reason)
|
130
|
-
validator = EnumAttributeValidator.new('String', ['INVALID_APIKEY', 'INVALID_SHIPPING_INPUT_PARAMS', 'CAPTURE_CONTEXT_INVALID', 'CAPTURE_CONTEXT_EXPIRED', 'SDK_XHR_ERROR', 'UNIFIEDPAYMENTS_VALIDATION_PARAMS', 'UNIFIEDPAYMENTS_VALIDATION_FIELDS', 'UNIFIEDPAYMENT_PAYMENT_PARAMITERS', 'CREATE_TOKEN_TIMEOUT', 'CREATE_TOKEN_XHR_ERROR', 'SHOW_LOAD_CONTAINER_SELECTOR', 'SHOW_LOAD_INVALID_CONTAINER', 'SHOW_TOKEN_TIMEOUT', 'SHOW_TOKEN_XHR_ERROR', 'SHOW_PAYMENT_TIMEOUT'])
|
131
|
-
unless validator.valid?(reason)
|
132
|
-
fail ArgumentError, 'invalid value for "reason", must be one of #{validator.allowable_values}.'
|
133
|
-
end
|
134
|
-
@reason = reason
|
135
|
-
end
|
136
|
-
|
137
96
|
# Checks equality by comparing each attribute.
|
138
97
|
# @param [Object] Object to be compared
|
139
98
|
def ==(o)
|
140
99
|
return true if self.equal?(o)
|
141
100
|
self.class == o.class &&
|
142
|
-
|
143
|
-
|
144
|
-
|
101
|
+
submit_time_utc == o.submit_time_utc &&
|
102
|
+
status == o.status &&
|
103
|
+
reason == o.reason &&
|
145
104
|
message == o.message &&
|
146
|
-
|
105
|
+
status_code == o.status_code
|
147
106
|
end
|
148
107
|
|
149
108
|
# @see the `==` method
|
@@ -155,7 +114,7 @@ module CyberSource
|
|
155
114
|
# Calculates hash code according to all attributes.
|
156
115
|
# @return [Fixnum] Hash code
|
157
116
|
def hash
|
158
|
-
[
|
117
|
+
[submit_time_utc, status, reason, message, status_code].hash
|
159
118
|
end
|
160
119
|
|
161
120
|
# Builds the object from hash
|