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
@@ -14,30 +14,34 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class Body
|
17
|
-
#
|
18
|
-
attr_accessor :
|
17
|
+
# Valid Values: * oneOff * amexRegistration
|
18
|
+
attr_accessor :type
|
19
19
|
|
20
|
-
|
21
|
-
attr_accessor :parsed_tag_limit
|
20
|
+
attr_accessor :included
|
22
21
|
|
23
|
-
#
|
24
|
-
attr_accessor :
|
22
|
+
# Reference used by merchant to identify batch.
|
23
|
+
attr_accessor :merchant_reference
|
24
|
+
|
25
|
+
# Email used to notify the batch status.
|
26
|
+
attr_accessor :notification_email
|
25
27
|
|
26
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
29
|
def self.attribute_map
|
28
30
|
{
|
29
|
-
:'
|
30
|
-
:'
|
31
|
-
:'
|
31
|
+
:'type' => :'type',
|
32
|
+
:'included' => :'included',
|
33
|
+
:'merchant_reference' => :'merchantReference',
|
34
|
+
:'notification_email' => :'notificationEmail'
|
32
35
|
}
|
33
36
|
end
|
34
37
|
|
35
38
|
# Attribute type mapping.
|
36
39
|
def self.swagger_types
|
37
40
|
{
|
38
|
-
:'
|
39
|
-
:'
|
40
|
-
:'
|
41
|
+
:'type' => :'String',
|
42
|
+
:'included' => :'Accountupdaterv1batchesIncluded',
|
43
|
+
:'merchant_reference' => :'String',
|
44
|
+
:'notification_email' => :'String'
|
41
45
|
}
|
42
46
|
end
|
43
47
|
|
@@ -49,18 +53,22 @@ module CyberSource
|
|
49
53
|
# convert string to symbol for hash key
|
50
54
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
51
55
|
|
52
|
-
if attributes.has_key?(:'
|
53
|
-
self.
|
56
|
+
if attributes.has_key?(:'type')
|
57
|
+
self.type = attributes[:'type']
|
58
|
+
else
|
59
|
+
self.type = "oneOff"
|
54
60
|
end
|
55
61
|
|
56
|
-
if attributes.has_key?(:'
|
57
|
-
self.
|
62
|
+
if attributes.has_key?(:'included')
|
63
|
+
self.included = attributes[:'included']
|
58
64
|
end
|
59
65
|
|
60
|
-
if attributes.has_key?(:'
|
61
|
-
|
62
|
-
|
63
|
-
|
66
|
+
if attributes.has_key?(:'merchantReference')
|
67
|
+
self.merchant_reference = attributes[:'merchantReference']
|
68
|
+
end
|
69
|
+
|
70
|
+
if attributes.has_key?(:'notificationEmail')
|
71
|
+
self.notification_email = attributes[:'notificationEmail']
|
64
72
|
end
|
65
73
|
end
|
66
74
|
|
@@ -68,12 +76,8 @@ module CyberSource
|
|
68
76
|
# @return Array for valid properties with the reasons
|
69
77
|
def list_invalid_properties
|
70
78
|
invalid_properties = Array.new
|
71
|
-
if @
|
72
|
-
invalid_properties.push('invalid value for "
|
73
|
-
end
|
74
|
-
|
75
|
-
if @emv_details_list.nil?
|
76
|
-
invalid_properties.push('invalid value for "emv_details_list", emv_details_list cannot be nil.')
|
79
|
+
if @notification_email.nil?
|
80
|
+
invalid_properties.push('invalid value for "notification_email", notification_email cannot be nil.')
|
77
81
|
end
|
78
82
|
|
79
83
|
invalid_properties
|
@@ -82,19 +86,25 @@ module CyberSource
|
|
82
86
|
# Check to see if the all the properties in the model are valid
|
83
87
|
# @return true if the model is valid
|
84
88
|
def valid?
|
85
|
-
return false if @
|
86
|
-
return false if @emv_details_list.nil?
|
89
|
+
return false if @notification_email.nil?
|
87
90
|
true
|
88
91
|
end
|
89
92
|
|
93
|
+
# Custom attribute writer method with validation
|
94
|
+
# @param [Object] merchant_reference Value to be assigned
|
95
|
+
def merchant_reference=(merchant_reference)
|
96
|
+
@merchant_reference = merchant_reference
|
97
|
+
end
|
98
|
+
|
90
99
|
# Checks equality by comparing each attribute.
|
91
100
|
# @param [Object] Object to be compared
|
92
101
|
def ==(o)
|
93
102
|
return true if self.equal?(o)
|
94
103
|
self.class == o.class &&
|
95
|
-
|
96
|
-
|
97
|
-
|
104
|
+
type == o.type &&
|
105
|
+
included == o.included &&
|
106
|
+
merchant_reference == o.merchant_reference &&
|
107
|
+
notification_email == o.notification_email
|
98
108
|
end
|
99
109
|
|
100
110
|
# @see the `==` method
|
@@ -106,7 +116,7 @@ module CyberSource
|
|
106
116
|
# Calculates hash code according to all attributes.
|
107
117
|
# @return [Fixnum] Hash code
|
108
118
|
def hash
|
109
|
-
[
|
119
|
+
[type, included, merchant_reference, notification_email].hash
|
110
120
|
end
|
111
121
|
|
112
122
|
# Builds the object from hash
|
@@ -42,6 +42,8 @@ module CyberSource
|
|
42
42
|
|
43
43
|
attr_accessor :consumer_authentication_information
|
44
44
|
|
45
|
+
attr_accessor :watchlist_screening_information
|
46
|
+
|
45
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
46
48
|
def self.attribute_map
|
47
49
|
{
|
@@ -58,7 +60,8 @@ module CyberSource
|
|
58
60
|
:'merchant_information' => :'merchantInformation',
|
59
61
|
:'acquirer_information' => :'acquirerInformation',
|
60
62
|
:'recurring_payment_information' => :'recurringPaymentInformation',
|
61
|
-
:'consumer_authentication_information' => :'consumerAuthenticationInformation'
|
63
|
+
:'consumer_authentication_information' => :'consumerAuthenticationInformation',
|
64
|
+
:'watchlist_screening_information' => :'watchlistScreeningInformation'
|
62
65
|
}
|
63
66
|
end
|
64
67
|
|
@@ -78,7 +81,8 @@ module CyberSource
|
|
78
81
|
:'merchant_information' => :'Riskv1decisionsMerchantInformation',
|
79
82
|
:'acquirer_information' => :'Ptsv2paymentsAcquirerInformation',
|
80
83
|
:'recurring_payment_information' => :'Ptsv2paymentsRecurringPaymentInformation',
|
81
|
-
:'consumer_authentication_information' => :'Riskv1decisionsConsumerAuthenticationInformation'
|
84
|
+
:'consumer_authentication_information' => :'Riskv1decisionsConsumerAuthenticationInformation',
|
85
|
+
:'watchlist_screening_information' => :'Ptsv2paymentsWatchlistScreeningInformation'
|
82
86
|
}
|
83
87
|
end
|
84
88
|
|
@@ -147,6 +151,10 @@ module CyberSource
|
|
147
151
|
if attributes.has_key?(:'consumerAuthenticationInformation')
|
148
152
|
self.consumer_authentication_information = attributes[:'consumerAuthenticationInformation']
|
149
153
|
end
|
154
|
+
|
155
|
+
if attributes.has_key?(:'watchlistScreeningInformation')
|
156
|
+
self.watchlist_screening_information = attributes[:'watchlistScreeningInformation']
|
157
|
+
end
|
150
158
|
end
|
151
159
|
|
152
160
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -180,7 +188,8 @@ module CyberSource
|
|
180
188
|
merchant_information == o.merchant_information &&
|
181
189
|
acquirer_information == o.acquirer_information &&
|
182
190
|
recurring_payment_information == o.recurring_payment_information &&
|
183
|
-
consumer_authentication_information == o.consumer_authentication_information
|
191
|
+
consumer_authentication_information == o.consumer_authentication_information &&
|
192
|
+
watchlist_screening_information == o.watchlist_screening_information
|
184
193
|
end
|
185
194
|
|
186
195
|
# @see the `==` method
|
@@ -192,7 +201,7 @@ module CyberSource
|
|
192
201
|
# Calculates hash code according to all attributes.
|
193
202
|
# @return [Fixnum] Hash code
|
194
203
|
def hash
|
195
|
-
[client_reference_information, processor_information, processing_information, payment_information, order_information, buyer_information, device_information, risk_information, travel_information, merchant_defined_information, merchant_information, acquirer_information, recurring_payment_information, consumer_authentication_information].hash
|
204
|
+
[client_reference_information, processor_information, processing_information, payment_information, order_information, buyer_information, device_information, risk_information, travel_information, merchant_defined_information, merchant_information, acquirer_information, recurring_payment_information, consumer_authentication_information, watchlist_screening_information].hash
|
196
205
|
end
|
197
206
|
|
198
207
|
# Builds the object from hash
|
@@ -61,6 +61,8 @@ module CyberSource
|
|
61
61
|
|
62
62
|
attr_accessor :recurring_payment_information
|
63
63
|
|
64
|
+
attr_accessor :watchlist_screening_information
|
65
|
+
|
64
66
|
# Attribute mapping from ruby-style variable name to JSON key.
|
65
67
|
def self.attribute_map
|
66
68
|
{
|
@@ -86,7 +88,8 @@ module CyberSource
|
|
86
88
|
:'processor_information' => :'processorInformation',
|
87
89
|
:'risk_information' => :'riskInformation',
|
88
90
|
:'acquirer_information' => :'acquirerInformation',
|
89
|
-
:'recurring_payment_information' => :'recurringPaymentInformation'
|
91
|
+
:'recurring_payment_information' => :'recurringPaymentInformation',
|
92
|
+
:'watchlist_screening_information' => :'watchlistScreeningInformation'
|
90
93
|
}
|
91
94
|
end
|
92
95
|
|
@@ -115,7 +118,8 @@ module CyberSource
|
|
115
118
|
:'processor_information' => :'Ptsv2paymentsProcessorInformation',
|
116
119
|
:'risk_information' => :'Ptsv2paymentsRiskInformation',
|
117
120
|
:'acquirer_information' => :'Ptsv2paymentsAcquirerInformation',
|
118
|
-
:'recurring_payment_information' => :'Ptsv2paymentsRecurringPaymentInformation'
|
121
|
+
:'recurring_payment_information' => :'Ptsv2paymentsRecurringPaymentInformation',
|
122
|
+
:'watchlist_screening_information' => :'Ptsv2paymentsWatchlistScreeningInformation'
|
119
123
|
}
|
120
124
|
end
|
121
125
|
|
@@ -220,6 +224,10 @@ module CyberSource
|
|
220
224
|
if attributes.has_key?(:'recurringPaymentInformation')
|
221
225
|
self.recurring_payment_information = attributes[:'recurringPaymentInformation']
|
222
226
|
end
|
227
|
+
|
228
|
+
if attributes.has_key?(:'watchlistScreeningInformation')
|
229
|
+
self.watchlist_screening_information = attributes[:'watchlistScreeningInformation']
|
230
|
+
end
|
223
231
|
end
|
224
232
|
|
225
233
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -262,7 +270,8 @@ module CyberSource
|
|
262
270
|
processor_information == o.processor_information &&
|
263
271
|
risk_information == o.risk_information &&
|
264
272
|
acquirer_information == o.acquirer_information &&
|
265
|
-
recurring_payment_information == o.recurring_payment_information
|
273
|
+
recurring_payment_information == o.recurring_payment_information &&
|
274
|
+
watchlist_screening_information == o.watchlist_screening_information
|
266
275
|
end
|
267
276
|
|
268
277
|
# @see the `==` method
|
@@ -274,7 +283,7 @@ module CyberSource
|
|
274
283
|
# Calculates hash code according to all attributes.
|
275
284
|
# @return [Fixnum] Hash code
|
276
285
|
def hash
|
277
|
-
[client_reference_information, processing_information, issuer_information, payment_information, order_information, buyer_information, recipient_information, device_information, merchant_information, aggregator_information, consumer_authentication_information, point_of_sale_information, merchant_defined_information, installment_information, travel_information, health_care_information, promotion_information, token_information, invoice_details, processor_information, risk_information, acquirer_information, recurring_payment_information].hash
|
286
|
+
[client_reference_information, processing_information, issuer_information, payment_information, order_information, buyer_information, recipient_information, device_information, merchant_information, aggregator_information, consumer_authentication_information, point_of_sale_information, merchant_defined_information, installment_information, travel_information, health_care_information, promotion_information, token_information, invoice_details, processor_information, risk_information, acquirer_information, recurring_payment_information, watchlist_screening_information].hash
|
278
287
|
end
|
279
288
|
|
280
289
|
# Builds the object from hash
|
@@ -0,0 +1,201 @@
|
|
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.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module CyberSource
|
16
|
+
class CreatePlanRequest
|
17
|
+
attr_accessor :client_reference_information
|
18
|
+
|
19
|
+
attr_accessor :plan_information
|
20
|
+
|
21
|
+
attr_accessor :order_information
|
22
|
+
|
23
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
24
|
+
def self.attribute_map
|
25
|
+
{
|
26
|
+
:'client_reference_information' => :'clientReferenceInformation',
|
27
|
+
:'plan_information' => :'planInformation',
|
28
|
+
:'order_information' => :'orderInformation'
|
29
|
+
}
|
30
|
+
end
|
31
|
+
|
32
|
+
# Attribute type mapping.
|
33
|
+
def self.swagger_types
|
34
|
+
{
|
35
|
+
:'client_reference_information' => :'Rbsv1plansClientReferenceInformation',
|
36
|
+
:'plan_information' => :'Rbsv1plansPlanInformation',
|
37
|
+
:'order_information' => :'Rbsv1plansOrderInformation'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# Initializes the object
|
42
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
43
|
+
def initialize(attributes = {})
|
44
|
+
return unless attributes.is_a?(Hash)
|
45
|
+
|
46
|
+
# convert string to symbol for hash key
|
47
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
48
|
+
|
49
|
+
if attributes.has_key?(:'clientReferenceInformation')
|
50
|
+
self.client_reference_information = attributes[:'clientReferenceInformation']
|
51
|
+
end
|
52
|
+
|
53
|
+
if attributes.has_key?(:'planInformation')
|
54
|
+
self.plan_information = attributes[:'planInformation']
|
55
|
+
end
|
56
|
+
|
57
|
+
if attributes.has_key?(:'orderInformation')
|
58
|
+
self.order_information = attributes[:'orderInformation']
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
63
|
+
# @return Array for valid properties with the reasons
|
64
|
+
def list_invalid_properties
|
65
|
+
invalid_properties = Array.new
|
66
|
+
invalid_properties
|
67
|
+
end
|
68
|
+
|
69
|
+
# Check to see if the all the properties in the model are valid
|
70
|
+
# @return true if the model is valid
|
71
|
+
def valid?
|
72
|
+
true
|
73
|
+
end
|
74
|
+
|
75
|
+
# Checks equality by comparing each attribute.
|
76
|
+
# @param [Object] Object to be compared
|
77
|
+
def ==(o)
|
78
|
+
return true if self.equal?(o)
|
79
|
+
self.class == o.class &&
|
80
|
+
client_reference_information == o.client_reference_information &&
|
81
|
+
plan_information == o.plan_information &&
|
82
|
+
order_information == o.order_information
|
83
|
+
end
|
84
|
+
|
85
|
+
# @see the `==` method
|
86
|
+
# @param [Object] Object to be compared
|
87
|
+
def eql?(o)
|
88
|
+
self == o
|
89
|
+
end
|
90
|
+
|
91
|
+
# Calculates hash code according to all attributes.
|
92
|
+
# @return [Fixnum] Hash code
|
93
|
+
def hash
|
94
|
+
[client_reference_information, plan_information, order_information].hash
|
95
|
+
end
|
96
|
+
|
97
|
+
# Builds the object from hash
|
98
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
99
|
+
# @return [Object] Returns the model itself
|
100
|
+
def build_from_hash(attributes)
|
101
|
+
return nil unless attributes.is_a?(Hash)
|
102
|
+
self.class.swagger_types.each_pair do |key, type|
|
103
|
+
if type =~ /\AArray<(.*)>/i
|
104
|
+
# check to ensure the input is an array given that the the attribute
|
105
|
+
# is documented as an array but the input is not
|
106
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
107
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
108
|
+
end
|
109
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
110
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
111
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
112
|
+
end
|
113
|
+
|
114
|
+
self
|
115
|
+
end
|
116
|
+
|
117
|
+
# Deserializes the data based on type
|
118
|
+
# @param string type Data type
|
119
|
+
# @param string value Value to be deserialized
|
120
|
+
# @return [Object] Deserialized data
|
121
|
+
def _deserialize(type, value)
|
122
|
+
case type.to_sym
|
123
|
+
when :DateTime
|
124
|
+
DateTime.parse(value)
|
125
|
+
when :Date
|
126
|
+
Date.parse(value)
|
127
|
+
when :String
|
128
|
+
value.to_s
|
129
|
+
when :Integer
|
130
|
+
value.to_i
|
131
|
+
when :Float
|
132
|
+
value.to_f
|
133
|
+
when :BOOLEAN
|
134
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
135
|
+
true
|
136
|
+
else
|
137
|
+
false
|
138
|
+
end
|
139
|
+
when :Object
|
140
|
+
# generic object (usually a Hash), return directly
|
141
|
+
value
|
142
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
143
|
+
inner_type = Regexp.last_match[:inner_type]
|
144
|
+
value.map { |v| _deserialize(inner_type, v) }
|
145
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
146
|
+
k_type = Regexp.last_match[:k_type]
|
147
|
+
v_type = Regexp.last_match[:v_type]
|
148
|
+
{}.tap do |hash|
|
149
|
+
value.each do |k, v|
|
150
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
151
|
+
end
|
152
|
+
end
|
153
|
+
else # model
|
154
|
+
temp_model = CyberSource.const_get(type).new
|
155
|
+
temp_model.build_from_hash(value)
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
159
|
+
# Returns the string representation of the object
|
160
|
+
# @return [String] String presentation of the object
|
161
|
+
def to_s
|
162
|
+
to_hash.to_s
|
163
|
+
end
|
164
|
+
|
165
|
+
# to_body is an alias to to_hash (backward compatibility)
|
166
|
+
# @return [Hash] Returns the object in the form of hash
|
167
|
+
def to_body
|
168
|
+
to_hash
|
169
|
+
end
|
170
|
+
|
171
|
+
# Returns the object in the form of hash
|
172
|
+
# @return [Hash] Returns the object in the form of hash
|
173
|
+
def to_hash
|
174
|
+
hash = {}
|
175
|
+
self.class.attribute_map.each_pair do |attr, param|
|
176
|
+
value = self.send(attr)
|
177
|
+
next if value.nil?
|
178
|
+
hash[param] = _to_hash(value)
|
179
|
+
end
|
180
|
+
hash
|
181
|
+
end
|
182
|
+
|
183
|
+
# Outputs non-array value in the form of hash
|
184
|
+
# For object, use to_hash. Otherwise, just return the value
|
185
|
+
# @param [Object] value Any valid value
|
186
|
+
# @return [Hash] Returns the value in the form of hash
|
187
|
+
def _to_hash(value)
|
188
|
+
if value.is_a?(Array)
|
189
|
+
value.compact.map { |v| _to_hash(v) }
|
190
|
+
elsif value.is_a?(Hash)
|
191
|
+
{}.tap do |hash|
|
192
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
193
|
+
end
|
194
|
+
elsif value.respond_to? :to_hash
|
195
|
+
value.to_hash
|
196
|
+
else
|
197
|
+
value
|
198
|
+
end
|
199
|
+
end
|
200
|
+
end
|
201
|
+
end
|
@@ -200,14 +200,6 @@ module CyberSource
|
|
200
200
|
invalid_properties.push('invalid value for "start_time", start_time cannot be nil.')
|
201
201
|
end
|
202
202
|
|
203
|
-
if !@start_day.nil? && @start_day > 31
|
204
|
-
invalid_properties.push('invalid value for "start_day", must be smaller than or equal to 31.')
|
205
|
-
end
|
206
|
-
|
207
|
-
if !@start_day.nil? && @start_day < 1
|
208
|
-
invalid_properties.push('invalid value for "start_day", must be greater than or equal to 1.')
|
209
|
-
end
|
210
|
-
|
211
203
|
#if !@group_name.nil? && @group_name !~ Regexp.new(/[a-zA-Z0-9-_ ]+/)
|
212
204
|
#invalid_properties.push('invalid value for "group_name", must conform to the pattern /[a-zA-Z0-9-_ ]+/.')
|
213
205
|
#end
|
@@ -229,8 +221,6 @@ module CyberSource
|
|
229
221
|
#return false if @report_name !~ Regexp.new(/[a-zA-Z0-9-_ ]+/)
|
230
222
|
return false if @timezone.nil?
|
231
223
|
return false if @start_time.nil?
|
232
|
-
return false if !@start_day.nil? && @start_day > 31
|
233
|
-
return false if !@start_day.nil? && @start_day < 1
|
234
224
|
#return false if !@group_name.nil? && @group_name !~ Regexp.new(/[a-zA-Z0-9-_ ]+/)
|
235
225
|
true
|
236
226
|
end
|
@@ -286,14 +276,6 @@ module CyberSource
|
|
286
276
|
# Custom attribute writer method with validation
|
287
277
|
# @param [Object] start_day Value to be assigned
|
288
278
|
def start_day=(start_day)
|
289
|
-
if !start_day.nil? && start_day > 31
|
290
|
-
fail ArgumentError, 'invalid value for "start_day", must be smaller than or equal to 31.'
|
291
|
-
end
|
292
|
-
|
293
|
-
if !start_day.nil? && start_day < 1
|
294
|
-
fail ArgumentError, 'invalid value for "start_day", must be greater than or equal to 1.'
|
295
|
-
end
|
296
|
-
|
297
279
|
@start_day = start_day
|
298
280
|
end
|
299
281
|
|
data/lib/cybersource_rest_client/models/{flexv1tokens_card_info.rb → create_subscription_request.rb}
RENAMED
@@ -13,36 +13,40 @@ Swagger Codegen version: 2.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module CyberSource
|
16
|
-
class
|
17
|
-
|
18
|
-
attr_accessor :card_number
|
16
|
+
class CreateSubscriptionRequest
|
17
|
+
attr_accessor :client_reference_information
|
19
18
|
|
20
|
-
|
21
|
-
attr_accessor :card_expiration_month
|
19
|
+
attr_accessor :processing_information
|
22
20
|
|
23
|
-
|
24
|
-
attr_accessor :card_expiration_year
|
21
|
+
attr_accessor :plan_information
|
25
22
|
|
26
|
-
|
27
|
-
|
23
|
+
attr_accessor :subscription_information
|
24
|
+
|
25
|
+
attr_accessor :payment_information
|
26
|
+
|
27
|
+
attr_accessor :order_information
|
28
28
|
|
29
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
30
|
def self.attribute_map
|
31
31
|
{
|
32
|
-
:'
|
33
|
-
:'
|
34
|
-
:'
|
35
|
-
:'
|
32
|
+
:'client_reference_information' => :'clientReferenceInformation',
|
33
|
+
:'processing_information' => :'processingInformation',
|
34
|
+
:'plan_information' => :'planInformation',
|
35
|
+
:'subscription_information' => :'subscriptionInformation',
|
36
|
+
:'payment_information' => :'paymentInformation',
|
37
|
+
:'order_information' => :'orderInformation'
|
36
38
|
}
|
37
39
|
end
|
38
40
|
|
39
41
|
# Attribute type mapping.
|
40
42
|
def self.swagger_types
|
41
43
|
{
|
42
|
-
:'
|
43
|
-
:'
|
44
|
-
:'
|
45
|
-
:'
|
44
|
+
:'client_reference_information' => :'Rbsv1subscriptionsClientReferenceInformation',
|
45
|
+
:'processing_information' => :'Rbsv1subscriptionsProcessingInformation',
|
46
|
+
:'plan_information' => :'Rbsv1subscriptionsPlanInformation',
|
47
|
+
:'subscription_information' => :'Rbsv1subscriptionsSubscriptionInformation',
|
48
|
+
:'payment_information' => :'Rbsv1subscriptionsPaymentInformation',
|
49
|
+
:'order_information' => :'InlineResponse200OrderInformation'
|
46
50
|
}
|
47
51
|
end
|
48
52
|
|
@@ -54,20 +58,28 @@ module CyberSource
|
|
54
58
|
# convert string to symbol for hash key
|
55
59
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
56
60
|
|
57
|
-
if attributes.has_key?(:'
|
58
|
-
self.
|
61
|
+
if attributes.has_key?(:'clientReferenceInformation')
|
62
|
+
self.client_reference_information = attributes[:'clientReferenceInformation']
|
63
|
+
end
|
64
|
+
|
65
|
+
if attributes.has_key?(:'processingInformation')
|
66
|
+
self.processing_information = attributes[:'processingInformation']
|
67
|
+
end
|
68
|
+
|
69
|
+
if attributes.has_key?(:'planInformation')
|
70
|
+
self.plan_information = attributes[:'planInformation']
|
59
71
|
end
|
60
72
|
|
61
|
-
if attributes.has_key?(:'
|
62
|
-
self.
|
73
|
+
if attributes.has_key?(:'subscriptionInformation')
|
74
|
+
self.subscription_information = attributes[:'subscriptionInformation']
|
63
75
|
end
|
64
76
|
|
65
|
-
if attributes.has_key?(:'
|
66
|
-
self.
|
77
|
+
if attributes.has_key?(:'paymentInformation')
|
78
|
+
self.payment_information = attributes[:'paymentInformation']
|
67
79
|
end
|
68
80
|
|
69
|
-
if attributes.has_key?(:'
|
70
|
-
self.
|
81
|
+
if attributes.has_key?(:'orderInformation')
|
82
|
+
self.order_information = attributes[:'orderInformation']
|
71
83
|
end
|
72
84
|
end
|
73
85
|
|
@@ -75,22 +87,12 @@ module CyberSource
|
|
75
87
|
# @return Array for valid properties with the reasons
|
76
88
|
def list_invalid_properties
|
77
89
|
invalid_properties = Array.new
|
78
|
-
if @card_number.nil?
|
79
|
-
invalid_properties.push('invalid value for "card_number", card_number cannot be nil.')
|
80
|
-
end
|
81
|
-
|
82
|
-
if @card_type.nil?
|
83
|
-
invalid_properties.push('invalid value for "card_type", card_type cannot be nil.')
|
84
|
-
end
|
85
|
-
|
86
90
|
invalid_properties
|
87
91
|
end
|
88
92
|
|
89
93
|
# Check to see if the all the properties in the model are valid
|
90
94
|
# @return true if the model is valid
|
91
95
|
def valid?
|
92
|
-
return false if @card_number.nil?
|
93
|
-
return false if @card_type.nil?
|
94
96
|
true
|
95
97
|
end
|
96
98
|
|
@@ -99,10 +101,12 @@ module CyberSource
|
|
99
101
|
def ==(o)
|
100
102
|
return true if self.equal?(o)
|
101
103
|
self.class == o.class &&
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
104
|
+
client_reference_information == o.client_reference_information &&
|
105
|
+
processing_information == o.processing_information &&
|
106
|
+
plan_information == o.plan_information &&
|
107
|
+
subscription_information == o.subscription_information &&
|
108
|
+
payment_information == o.payment_information &&
|
109
|
+
order_information == o.order_information
|
106
110
|
end
|
107
111
|
|
108
112
|
# @see the `==` method
|
@@ -114,7 +118,7 @@ module CyberSource
|
|
114
118
|
# Calculates hash code according to all attributes.
|
115
119
|
# @return [Fixnum] Hash code
|
116
120
|
def hash
|
117
|
-
[
|
121
|
+
[client_reference_information, processing_information, plan_information, subscription_information, payment_information, order_information].hash
|
118
122
|
end
|
119
123
|
|
120
124
|
# Builds the object from hash
|