cybersource_rest_client 0.0.11 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cybersource_rest_client.rb +104 -84
- data/lib/cybersource_rest_client/api/capture_api.rb +2 -2
- data/lib/cybersource_rest_client/api/conversion_details_api.rb +6 -6
- data/lib/cybersource_rest_client/api/credit_api.rb +2 -2
- data/lib/cybersource_rest_client/api/decision_manager_api.rb +89 -0
- data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +229 -47
- data/lib/cybersource_rest_client/api/key_generation_api.rb +13 -9
- data/lib/cybersource_rest_client/api/net_fundings_api.rb +16 -16
- data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +6 -6
- data/lib/cybersource_rest_client/api/payment_batch_summaries_api.rb +135 -0
- data/lib/cybersource_rest_client/api/payment_instrument_api.rb +365 -0
- data/lib/cybersource_rest_client/api/payments_api.rb +2 -2
- data/lib/cybersource_rest_client/api/{process_a_payout_api.rb → payouts_api.rb} +7 -7
- data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +6 -6
- data/lib/cybersource_rest_client/api/refund_api.rb +2 -2
- data/lib/cybersource_rest_client/api/report_definitions_api.rb +2 -2
- data/lib/cybersource_rest_client/api/report_downloads_api.rb +2 -2
- data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +2 -2
- data/lib/cybersource_rest_client/api/reports_api.rb +6 -6
- data/lib/cybersource_rest_client/api/reversal_api.rb +67 -2
- data/lib/cybersource_rest_client/api/search_transactions_api.rb +13 -13
- data/lib/cybersource_rest_client/api/secure_file_share_api.rb +12 -12
- data/lib/cybersource_rest_client/api/{flex_token_api.rb → tokenization_api.rb} +18 -14
- data/lib/cybersource_rest_client/api/transaction_batches_api.rb +76 -2
- data/lib/cybersource_rest_client/api/transaction_details_api.rb +2 -2
- data/lib/cybersource_rest_client/api/user_management_api.rb +2 -2
- data/lib/cybersource_rest_client/api/void_api.rb +67 -2
- data/lib/cybersource_rest_client/api_client.rb +12 -13
- data/lib/cybersource_rest_client/api_error.rb +2 -2
- data/lib/cybersource_rest_client/configuration.rb +2 -2
- data/lib/cybersource_rest_client/models/auth_reversal_request.rb +2 -2
- data/lib/cybersource_rest_client/models/capture_payment_request.rb +2 -2
- data/lib/cybersource_rest_client/models/create_credit_request.rb +2 -2
- data/lib/cybersource_rest_client/models/{tms_v1_instrumentidentifiers_post200_response.rb → create_decision_manager_case_request.rb} +70 -99
- data/lib/cybersource_rest_client/models/{tmsv1paymentinstruments_buyer_information_personal_identification.rb → create_instrument_identifier_request.rb} +20 -21
- data/lib/cybersource_rest_client/models/{tms_v1_paymentinstruments_get200_response.rb → create_payment_instrument_request.rb} +13 -13
- data/lib/cybersource_rest_client/models/create_payment_request.rb +2 -2
- data/lib/cybersource_rest_client/models/{tss_v2_transactions_post_response.rb → create_search_request.rb} +3 -3
- data/lib/cybersource_rest_client/models/flex_v1_keys_post200_response.rb +2 -2
- data/lib/cybersource_rest_client/models/flex_v1_keys_post200_response_der.rb +2 -2
- data/lib/cybersource_rest_client/models/flex_v1_keys_post200_response_jwk.rb +2 -2
- data/lib/cybersource_rest_client/models/flex_v1_tokens_post200_response.rb +2 -2
- data/lib/cybersource_rest_client/models/flexv1tokens_card_info.rb +12 -2
- data/lib/cybersource_rest_client/models/generate_public_key_request.rb +6 -66
- data/lib/cybersource_rest_client/models/{der_public_key.rb → inline_response_200.rb} +24 -26
- data/lib/cybersource_rest_client/models/inline_response_200_payment_batch_summaries.rb +282 -0
- data/lib/cybersource_rest_client/models/inline_response_400.rb +2 -2
- data/lib/cybersource_rest_client/models/inline_response_400_1.rb +2 -2
- data/lib/cybersource_rest_client/models/inline_response_400_fields.rb +2 -2
- data/lib/cybersource_rest_client/models/inline_response_default.rb +2 -2
- data/lib/cybersource_rest_client/models/inline_response_default__links.rb +2 -2
- data/lib/cybersource_rest_client/models/inline_response_default__links_next.rb +2 -2
- data/lib/cybersource_rest_client/models/inline_response_default_response_status.rb +2 -2
- data/lib/cybersource_rest_client/models/inline_response_default_response_status_details.rb +2 -2
- data/lib/cybersource_rest_client/models/{tokenize_parameters.rb → mit_reversal_request.rb} +43 -17
- data/lib/cybersource_rest_client/models/{error.rb → mit_void_request.rb} +10 -19
- data/lib/cybersource_rest_client/models/{pts_v2_payouts_post_response.rb → oct_create_payment_request.rb} +3 -3
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get200_response.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get200_response__links.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get200_response__links_self.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get200_response_transaction_batches.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get400_response.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get400_response_error_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get400_response_error_information_details.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get500_response.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get500_response_error_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_id_get200_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_id_get200_response__links.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_id_get200_response__links_transactions.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response.rb +4 -4
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_credit_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_payment_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_processing_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_processing_information_bank_transfer_options.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response.rb +4 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response__links.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_processor_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post400_response.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +4 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response__links.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response__links_self.rb +4 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_client_reference_information.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information.rb +5 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information_details.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +2 -197
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_issuer_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_invoice_details.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_account_features.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_bank.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_bank_account.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_card.rb +2 -17
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information_emv.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information_bank_transfer_options.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_ach_verification.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_avs.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_card_verification.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_consumer_authentication_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_customer.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_electronic_verification_results.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_merchant_advice.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_routing.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post400_response.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v2_payments_post502_response.rb +5 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +4 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response__links.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_order_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_refund_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post400_response.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response.rb +4 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response__links.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_authorization_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_issuer_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_processor_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_reversal_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post400_response.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response.rb +4 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response_void_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post400_response.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response.rb +14 -17
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_error_information.rb +4 -4
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information_merchant_descriptor.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information_amount_details.rb +4 -4
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_recipient_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_recipient_information_card.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post400_response.rb +31 -7
- data/lib/cybersource_rest_client/models/ptsv2credits_point_of_sale_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2credits_point_of_sale_information_emv.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information_bank_transfer_options.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification.rb +7 -7
- data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information.rb +4 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information_partner.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_device_information.rb +4 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_issuer_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_defined_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_service_fee_descriptor.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_initiated_transaction.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_amex_additional_amounts.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_surcharge.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_tax_details.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to_company.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details_transaction_advice_addendum.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +7 -7
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_ship_to.rb +4 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_shipping_details.rb +20 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank_account.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +6 -6
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_customer.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_fluid_data.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information_emv.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options_initiator.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_bank_transfer_options.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_capture_options.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_recurring_options.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_buyer_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +2 -227
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_merchant_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_bill_to.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_invoice_details.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_ship_to.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_shipping_details.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_payment_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information_emv.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_authorization_options.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_capture_options.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_merchant_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb +7 -7
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +6 -6
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_point_of_sale_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information_recurring_options.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information_partner.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_point_of_sale_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_processing_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payouts_client_reference_information.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information.rb +12 -3
- data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information_merchant_descriptor.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payouts_order_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_amount_details.rb +4 -4
- data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_amount_details_surcharge.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_bill_to.rb +11 -11
- data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information.rb +15 -6
- data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +12 -12
- data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information_payouts_options.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payouts_recipient_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payouts_sender_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payouts_sender_information_account.rb +2 -2
- data/lib/cybersource_rest_client/models/refund_capture_request.rb +2 -2
- data/lib/cybersource_rest_client/models/refund_payment_request.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_conversion_details_get200_response.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_conversion_details_get200_response_conversion_details.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_conversion_details_get200_response_notes.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_net_fundings_get200_response.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_net_fundings_get200_response_net_funding_summaries.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_net_fundings_get200_response_total_purchases.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_notificationof_changes_get200_response.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_notificationof_changes_get200_response_notification_of_changes.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_authorizations.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_fee_and_funding_details.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_others.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_request_details.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlement_statuses.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_get200_response.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_get200_response_report_definitions.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_name_get200_response.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_name_get200_response_attributes.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_report_subscriptions_get200_response.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_report_subscriptions_get200_response_subscriptions.rb +5 -5
- data/lib/cybersource_rest_client/models/reporting_v3_reports_get200_response.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_reports_get200_response_reports.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_reports_id_get200_response.rb +3 -3
- data/lib/cybersource_rest_client/models/reportingv3_report_downloads_get400_response.rb +4 -4
- data/lib/cybersource_rest_client/models/reportingv3_report_downloads_get400_response_details.rb +2 -2
- data/lib/cybersource_rest_client/models/reportingv3reports_report_preferences.rb +2 -2
- data/lib/cybersource_rest_client/models/request_body.rb +2 -2
- data/lib/cybersource_rest_client/models/request_body_1.rb +5 -5
- data/lib/cybersource_rest_client/models/{pts_v2_payouts_post502_response.rb → risk_v1_decisions_post201_response.rb} +58 -62
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information.rb +284 -0
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_info_codes.rb +270 -0
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_ip_address.rb +300 -0
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_payment_information.rb +300 -0
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_profile.rb +249 -0
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_providers.rb +185 -0
- data/lib/cybersource_rest_client/models/{link.rb → risk_v1_decisions_post201_response_risk_information_providers_provider_name.rb} +21 -28
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_rules.rb +224 -0
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_score.rb +235 -0
- data/lib/cybersource_rest_client/models/{key_result.rb → risk_v1_decisions_post201_response_risk_information_velocity.rb} +20 -26
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_velocity_morphing.rb +234 -0
- data/lib/cybersource_rest_client/models/{ums_v1_users_get400_response.rb → risk_v1_decisions_post400_response.rb} +7 -19
- data/lib/cybersource_rest_client/models/riskv1decisions_buyer_information.rb +236 -0
- data/lib/cybersource_rest_client/models/{tss_v2_transactions_get200_response_processor_information_ach_verification.rb → riskv1decisions_card_verification.rb} +8 -33
- data/lib/cybersource_rest_client/models/riskv1decisions_client_reference_information.rb +224 -0
- data/lib/cybersource_rest_client/models/riskv1decisions_device_information.rb +279 -0
- data/lib/cybersource_rest_client/models/{tss_v2_transactions_get200_response_merchant_defined_information.rb → riskv1decisions_merchant_defined_information.rb} +11 -10
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information.rb +248 -0
- data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_order_information_amount_details.rb → riskv1decisions_order_information_amount_details.rb} +42 -32
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_bill_to.rb +424 -0
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_line_items.rb +394 -0
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_passenger.rb +350 -0
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_ship_to.rb +400 -0
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_shipping_details.rb +225 -0
- data/lib/cybersource_rest_client/models/{error_response.rb → riskv1decisions_payment_information.rb} +17 -16
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_card.rb +285 -0
- data/lib/cybersource_rest_client/models/{tms_v1_paymentinstruments_post201_response_card.rb → riskv1decisions_payment_information_tokenized_card.rb} +57 -99
- data/lib/cybersource_rest_client/models/riskv1decisions_processor_information.rb +184 -0
- data/lib/cybersource_rest_client/models/{tss_v2_transactions_get200_response_processor_information_card_verification.rb → riskv1decisions_processor_information_avs.rb} +20 -19
- data/lib/cybersource_rest_client/models/riskv1decisions_risk_information.rb +183 -0
- data/lib/cybersource_rest_client/models/{error_links.rb → riskv1decisions_risk_information_profile.rb} +27 -32
- data/lib/cybersource_rest_client/models/riskv1decisions_travel_information.rb +260 -0
- data/lib/cybersource_rest_client/models/riskv1decisions_travel_information_legs.rb +224 -0
- data/lib/cybersource_rest_client/models/{tms_v1_instrumentidentifiers_delete409_response.rb → tms_v1_instrument_identifiers_delete409_response.rb} +4 -4
- data/lib/cybersource_rest_client/models/{tms_v1_instrumentidentifiers_delete409_response__links.rb → tms_v1_instrument_identifiers_delete409_response__links.rb} +4 -4
- data/lib/cybersource_rest_client/models/{tms_v1_instrumentidentifiers_delete409_response__links_payment_instruments.rb → tms_v1_instrument_identifiers_delete409_response__links_payment_instruments.rb} +3 -3
- data/lib/cybersource_rest_client/models/{tms_v1_instrumentidentifiers_paymentinstruments_get200_response.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response.rb} +5 -6
- data/lib/cybersource_rest_client/models/{response_status_details.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded.rb} +13 -21
- data/lib/cybersource_rest_client/models/{pts_v2_payouts_post201_response_error_information_details.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_bank_account.rb} +19 -29
- data/lib/cybersource_rest_client/models/{tmsv1paymentinstruments_bill_to.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_bill_to.rb} +14 -14
- data/lib/cybersource_rest_client/models/{tmsv1paymentinstruments_buyer_information.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_buyer_information.rb} +31 -7
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_card.rb +403 -0
- data/lib/cybersource_rest_client/models/{tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response__links.rb} +8 -8
- data/lib/cybersource_rest_client/models/{tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_first.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response__links_first.rb} +3 -3
- data/lib/cybersource_rest_client/models/{tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_last.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response__links_last.rb} +3 -3
- data/lib/cybersource_rest_client/models/{tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_next.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response__links_next.rb} +3 -3
- data/lib/cybersource_rest_client/models/{tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_prev.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response__links_prev.rb} +3 -3
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__links_self.rb +184 -0
- data/lib/cybersource_rest_client/models/{reporting_v3_reports_id_get200_response_report_preferences.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response_bank_transfer_options.rb} +19 -30
- data/lib/cybersource_rest_client/models/{tmsv1paymentinstruments_buyer_information_issued_by.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response_buyer_information_issued_by.rb} +4 -4
- data/lib/cybersource_rest_client/models/{tmsv1paymentinstruments_instrument_identifier.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response_instrument_identifier.rb} +10 -10
- data/lib/cybersource_rest_client/models/{tmsv1paymentinstruments_merchant_information_merchant_descriptor.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response_merchant_descriptor.rb} +3 -3
- data/lib/cybersource_rest_client/models/{tmsv1paymentinstruments_merchant_information.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response_merchant_information.rb} +4 -4
- data/lib/cybersource_rest_client/models/{body_2.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response_payment_instruments.rb} +13 -13
- data/lib/cybersource_rest_client/models/{pts_v2_payouts_post201_response_status_information.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response_personal_identification.rb} +35 -26
- data/lib/cybersource_rest_client/models/{tmsv1paymentinstruments_processing_information.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response_processing_information.rb} +7 -5
- data/lib/cybersource_rest_client/models/{body.rb → tms_v1_instrument_identifiers_post200_response.rb} +9 -9
- data/lib/cybersource_rest_client/models/{tmsv1instrumentidentifiers__links.rb → tms_v1_instrument_identifiers_post200_response__links.rb} +6 -6
- data/lib/cybersource_rest_client/models/{tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_self.rb → tms_v1_instrument_identifiers_post200_response__links_self.rb} +3 -4
- data/lib/cybersource_rest_client/models/{tmsv1instrumentidentifiers_processing_information_authorization_options_initiator.rb → tms_v1_instrument_identifiers_post200_response_authorization_options_initiator.rb} +4 -4
- data/lib/cybersource_rest_client/models/{tmsv1instrumentidentifiers_bank_account.rb → tms_v1_instrument_identifiers_post200_response_bank_account.rb} +4 -4
- data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_point_of_sale_information_partner.rb → tms_v1_instrument_identifiers_post200_response_card.rb} +28 -19
- data/lib/cybersource_rest_client/models/{tmsv1instrumentidentifiers_merchant_initiated_transaction.rb → tms_v1_instrument_identifiers_post200_response_merchant_initiated_transaction.rb} +3 -3
- data/lib/cybersource_rest_client/models/{tmsv1instrumentidentifiers_metadata.rb → tms_v1_instrument_identifiers_post200_response_metadata.rb} +3 -3
- data/lib/cybersource_rest_client/models/{tmsv1instrumentidentifiers_processing_information.rb → tms_v1_instrument_identifiers_post200_response_processing_information.rb} +4 -4
- data/lib/cybersource_rest_client/models/{tmsv1instrumentidentifiers_processing_information_authorization_options.rb → tms_v1_instrument_identifiers_post200_response_processing_information_authorization_options.rb} +4 -4
- data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_bill_to.rb +234 -0
- data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_card.rb +108 -6
- data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_details.rb +2 -2
- data/lib/cybersource_rest_client/models/tokenize_request.rb +7 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response.rb +9 -9
- data/lib/cybersource_rest_client/models/{links.rb → tss_v2_transactions_get200_response__links.rb} +12 -23
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_application_information.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_application_information_applications.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_buyer_information.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_client_reference_information.rb +19 -4
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_consumer_authentication_information.rb +4 -4
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_device_information.rb +5 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_error_information.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_fraud_marking_information.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_installment_information.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_merchant_information.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_merchant_information_merchant_descriptor.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_amount_details.rb +58 -8
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_bill_to.rb +18 -34
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_line_items.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_ship_to.rb +12 -12
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_shipping_details.rb +20 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_account_features.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank_account.rb +50 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank_mandate.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +13 -13
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_invoice.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_payment_type.rb +6 -16
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_point_of_sale_information.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_bank_transfer_options.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +59 -9
- 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_get200_response_processor_information_processor.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_risk_information.rb +5 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_risk_information_profile.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_risk_information_rules.rb +225 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_risk_information_score.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_sender_information.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response.rb +19 -19
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded__links.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_buyer_information.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_client_reference_information.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_consumer_authentication_information.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_device_information.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_merchant_information.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information_bill_to.rb +7 -7
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information_ship_to.rb +5 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information.rb +10 -10
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card.rb +3 -18
- data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_payment_information_payment_method.rb → tss_v2_transactions_post201_response__embedded_payment_information_payment_type.rb} +18 -8
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information.rb +19 -4
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processing_information.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processor_information.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_risk_information.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_risk_information_providers.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_risk_information_providers_fingerprint.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_transaction_summaries.rb +5 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post400_response.rb +5 -5
- data/lib/cybersource_rest_client/models/ums_v1_users_get200_response.rb +2 -2
- data/lib/cybersource_rest_client/models/ums_v1_users_get200_response_account_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ums_v1_users_get200_response_contact_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ums_v1_users_get200_response_organization_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ums_v1_users_get200_response_users.rb +2 -2
- data/lib/cybersource_rest_client/models/{body_1.rb → update_instrument_identifier_request.rb} +4 -4
- data/lib/cybersource_rest_client/models/{tms_v1_paymentinstruments_post201_response.rb → update_payment_instrument_request.rb} +13 -13
- data/lib/cybersource_rest_client/models/v1_file_details_get200_response.rb +2 -2
- data/lib/cybersource_rest_client/models/v1_file_details_get200_response__links.rb +2 -2
- data/lib/cybersource_rest_client/models/v1_file_details_get200_response__links_files.rb +2 -2
- data/lib/cybersource_rest_client/models/v1_file_details_get200_response__links_self.rb +2 -2
- data/lib/cybersource_rest_client/models/v1_file_details_get200_response_file_details.rb +2 -2
- data/lib/cybersource_rest_client/models/void_capture_request.rb +2 -2
- data/lib/cybersource_rest_client/models/void_credit_request.rb +2 -2
- data/lib/cybersource_rest_client/models/void_payment_request.rb +2 -2
- data/lib/cybersource_rest_client/models/void_refund_request.rb +2 -2
- data/lib/cybersource_rest_client/version.rb +2 -2
- metadata +89 -71
- data/lib/cybersource_rest_client/api/instrument_identifiers_api.rb +0 -102
- data/lib/cybersource_rest_client/api/payment_instruments_api.rb +0 -469
- data/lib/cybersource_rest_client/models/body_3.rb +0 -331
- data/lib/cybersource_rest_client/models/card_info.rb +0 -214
- data/lib/cybersource_rest_client/models/json_web_key.rb +0 -225
- data/lib/cybersource_rest_client/models/key_parameters.rb +0 -184
- data/lib/cybersource_rest_client/models/response_status.rb +0 -225
- data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers__links_self.rb +0 -183
- data/lib/cybersource_rest_client/models/tmsv1paymentinstruments_bank_account.rb +0 -184
- data/lib/cybersource_rest_client/models/tmsv1paymentinstruments_card.rb +0 -278
- data/lib/cybersource_rest_client/models/tmsv1paymentinstruments_processing_information_bank_transfer_options.rb +0 -184
- data/lib/cybersource_rest_client/models/tokenize_result.rb +0 -255
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_customer.rb +0 -184
@@ -0,0 +1,394 @@
|
|
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 Riskv1decisionsOrderInformationLineItems
|
17
|
+
# Per-item price of the product. This value cannot be negative. You can include a decimal point (.), but you cannot include any other special characters. CyberSource truncates the amount to the correct number of decimal places. For processor-specific information, see the amount field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) **Important** Some processors have specific requirements and limitations, such as maximum amounts and maximum field lengths. This information is covered in: - Table 12, \"Authorization Information for Specific Processors,\" on page 36 - Table 16, \"Capture Information for Specific Processors,\" on page 51 - Table 20, \"Credit Information for Specific Processors,\" on page 65 **DCC for First Data**\\ This value is the original amount in your local currency. You must include this field. You cannot use grand_total_amount. See \"Dynamic Currency Conversion for First Data,\" page 113. **FDMS South**\\ If you accept IDR or CLP currencies, see the entry for FDMS South in Table 12, \"Authorization Information for Specific Processors,\" on page 36. **Zero Amount Authorizations**\\ If your processor supports zero amount authorizations, you can set this field to 0 for the authorization to check if the card is lost or stolen. See \"Zero Amount Authorizations,\" page 220.
|
18
|
+
attr_accessor :unit_price
|
19
|
+
|
20
|
+
# Number of units for this order. For an authorization or capture transaction (`processingOptions.capture` is set to `true` or `false`), this field is required when `orderInformation.lineItems[].productCode` is not set to `default` or one of the other values that are related to shipping and/or handling. When `orderInformation.lineItems[].productCode` is `gift_card`, this is the total count of individual prepaid gift cards purchased.
|
21
|
+
attr_accessor :quantity
|
22
|
+
|
23
|
+
# Stock Keeping Unit (SKU) code for the product. For an authorization or capture transaction (`processingOptions.capture` is set to `true` or `false`), this field is required when _orderInformation.lineItems[].productCode_ is not set to **default** or one of the other values that are related to shipping and/or handling.
|
24
|
+
attr_accessor :product_sku
|
25
|
+
|
26
|
+
# Indicates the level of risk for the product. This field can contain one of the following values: - `low`: The product is associated with few chargebacks. - `normal`: The product is associated with a normal number of chargebacks. - `high`: The product is associated with many chargebacks.
|
27
|
+
attr_accessor :product_risk
|
28
|
+
|
29
|
+
# For an authorization or capture transaction (`processingOptions.capture` is set to `true` or `false`), this field is required when `orderInformation.lineItems[].productCode` is not set to `default` or one of the other values that are related to shipping and/or handling.
|
30
|
+
attr_accessor :product_name
|
31
|
+
|
32
|
+
# Type of product. This value is used to determine the category that the product is in: electronic, handling, physical, service, or shipping. The default value is **default**. If you are performing an authorization transaction (`processingOptions.capture` is set to `false`), and you set this field to a value other than default or any of the values related to shipping and handling, then the fields `quantity`, `productName`, and `productSku` are required. It can also have a value of \"gift_card\". See Appendix O, \"Product Codes,\" on page 373 for a list of valid values. For a payment, when you set this field to a value other than default or any of the values related to shipping and handling, below fields _quantity_, _productName_, and _productSKU_ are required.
|
33
|
+
attr_accessor :product_code
|
34
|
+
|
35
|
+
# Determines whether to assign risk to the order if the billing and shipping addresses specify different cities, states, or countries. This field can contain one of the following values: - `yes`: Orders are assigned only slight additional risk if billing and shipping addresses are different. - `no` (default): Orders are assigned higher additional risk if billing and shipping addresses are different. - `off`: Differences between billing and shipping addresses do not affect the score.
|
36
|
+
attr_accessor :gift
|
37
|
+
|
38
|
+
# Product’s identifier code. This field is inserted into the outgoing message without being parsed or formatted. This field is included as Distributor product SKU (Offer) in the list of API fields with which you can create custom rules.
|
39
|
+
attr_accessor :distributor_product_sku
|
40
|
+
|
41
|
+
attr_accessor :passenger
|
42
|
+
|
43
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
44
|
+
def self.attribute_map
|
45
|
+
{
|
46
|
+
:'unit_price' => :'unitPrice',
|
47
|
+
:'quantity' => :'quantity',
|
48
|
+
:'product_sku' => :'productSKU',
|
49
|
+
:'product_risk' => :'productRisk',
|
50
|
+
:'product_name' => :'productName',
|
51
|
+
:'product_code' => :'productCode',
|
52
|
+
:'gift' => :'gift',
|
53
|
+
:'distributor_product_sku' => :'distributorProductSku',
|
54
|
+
:'passenger' => :'passenger'
|
55
|
+
}
|
56
|
+
end
|
57
|
+
|
58
|
+
# Attribute type mapping.
|
59
|
+
def self.swagger_types
|
60
|
+
{
|
61
|
+
:'unit_price' => :'String',
|
62
|
+
:'quantity' => :'Float',
|
63
|
+
:'product_sku' => :'String',
|
64
|
+
:'product_risk' => :'String',
|
65
|
+
:'product_name' => :'String',
|
66
|
+
:'product_code' => :'String',
|
67
|
+
:'gift' => :'String',
|
68
|
+
:'distributor_product_sku' => :'String',
|
69
|
+
:'passenger' => :'Riskv1decisionsOrderInformationPassenger'
|
70
|
+
}
|
71
|
+
end
|
72
|
+
|
73
|
+
# Initializes the object
|
74
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
75
|
+
def initialize(attributes = {})
|
76
|
+
return unless attributes.is_a?(Hash)
|
77
|
+
|
78
|
+
# convert string to symbol for hash key
|
79
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
80
|
+
|
81
|
+
if attributes.has_key?(:'unitPrice')
|
82
|
+
self.unit_price = attributes[:'unitPrice']
|
83
|
+
end
|
84
|
+
|
85
|
+
if attributes.has_key?(:'quantity')
|
86
|
+
self.quantity = attributes[:'quantity']
|
87
|
+
end
|
88
|
+
|
89
|
+
if attributes.has_key?(:'productSKU')
|
90
|
+
self.product_sku = attributes[:'productSKU']
|
91
|
+
end
|
92
|
+
|
93
|
+
if attributes.has_key?(:'productRisk')
|
94
|
+
self.product_risk = attributes[:'productRisk']
|
95
|
+
end
|
96
|
+
|
97
|
+
if attributes.has_key?(:'productName')
|
98
|
+
self.product_name = attributes[:'productName']
|
99
|
+
end
|
100
|
+
|
101
|
+
if attributes.has_key?(:'productCode')
|
102
|
+
self.product_code = attributes[:'productCode']
|
103
|
+
end
|
104
|
+
|
105
|
+
if attributes.has_key?(:'gift')
|
106
|
+
self.gift = attributes[:'gift']
|
107
|
+
else
|
108
|
+
self.gift = "no"
|
109
|
+
end
|
110
|
+
|
111
|
+
if attributes.has_key?(:'distributorProductSku')
|
112
|
+
self.distributor_product_sku = attributes[:'distributorProductSku']
|
113
|
+
end
|
114
|
+
|
115
|
+
if attributes.has_key?(:'passenger')
|
116
|
+
self.passenger = attributes[:'passenger']
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
121
|
+
# @return Array for valid properties with the reasons
|
122
|
+
def list_invalid_properties
|
123
|
+
invalid_properties = Array.new
|
124
|
+
if !@unit_price.nil? && @unit_price.to_s.length > 15
|
125
|
+
invalid_properties.push('invalid value for "unit_price", the character length must be smaller than or equal to 15.')
|
126
|
+
end
|
127
|
+
|
128
|
+
if !@quantity.nil? && @quantity > 9999999999
|
129
|
+
invalid_properties.push('invalid value for "quantity", must be smaller than or equal to 9999999999.')
|
130
|
+
end
|
131
|
+
|
132
|
+
if !@quantity.nil? && @quantity < 1
|
133
|
+
invalid_properties.push('invalid value for "quantity", must be greater than or equal to 1.')
|
134
|
+
end
|
135
|
+
|
136
|
+
if !@product_sku.nil? && @product_sku.to_s.length > 255
|
137
|
+
invalid_properties.push('invalid value for "product_sku", the character length must be smaller than or equal to 255.')
|
138
|
+
end
|
139
|
+
|
140
|
+
if !@product_risk.nil? && @product_risk.to_s.length > 6
|
141
|
+
invalid_properties.push('invalid value for "product_risk", the character length must be smaller than or equal to 6.')
|
142
|
+
end
|
143
|
+
|
144
|
+
if !@product_name.nil? && @product_name.to_s.length > 255
|
145
|
+
invalid_properties.push('invalid value for "product_name", the character length must be smaller than or equal to 255.')
|
146
|
+
end
|
147
|
+
|
148
|
+
if !@product_code.nil? && @product_code.to_s.length > 255
|
149
|
+
invalid_properties.push('invalid value for "product_code", the character length must be smaller than or equal to 255.')
|
150
|
+
end
|
151
|
+
|
152
|
+
if !@gift.nil? && @gift.to_s.length > 3
|
153
|
+
invalid_properties.push('invalid value for "gift", the character length must be smaller than or equal to 3.')
|
154
|
+
end
|
155
|
+
|
156
|
+
if !@distributor_product_sku.nil? && @distributor_product_sku.to_s.length > 15
|
157
|
+
invalid_properties.push('invalid value for "distributor_product_sku", the character length must be smaller than or equal to 15.')
|
158
|
+
end
|
159
|
+
|
160
|
+
invalid_properties
|
161
|
+
end
|
162
|
+
|
163
|
+
# Check to see if the all the properties in the model are valid
|
164
|
+
# @return true if the model is valid
|
165
|
+
def valid?
|
166
|
+
return false if !@unit_price.nil? && @unit_price.to_s.length > 15
|
167
|
+
return false if !@quantity.nil? && @quantity > 9999999999
|
168
|
+
return false if !@quantity.nil? && @quantity < 1
|
169
|
+
return false if !@product_sku.nil? && @product_sku.to_s.length > 255
|
170
|
+
return false if !@product_risk.nil? && @product_risk.to_s.length > 6
|
171
|
+
return false if !@product_name.nil? && @product_name.to_s.length > 255
|
172
|
+
return false if !@product_code.nil? && @product_code.to_s.length > 255
|
173
|
+
return false if !@gift.nil? && @gift.to_s.length > 3
|
174
|
+
return false if !@distributor_product_sku.nil? && @distributor_product_sku.to_s.length > 15
|
175
|
+
true
|
176
|
+
end
|
177
|
+
|
178
|
+
# Custom attribute writer method with validation
|
179
|
+
# @param [Object] unit_price Value to be assigned
|
180
|
+
def unit_price=(unit_price)
|
181
|
+
if !unit_price.nil? && unit_price.to_s.length > 15
|
182
|
+
fail ArgumentError, 'invalid value for "unit_price", the character length must be smaller than or equal to 15.'
|
183
|
+
end
|
184
|
+
|
185
|
+
@unit_price = unit_price
|
186
|
+
end
|
187
|
+
|
188
|
+
# Custom attribute writer method with validation
|
189
|
+
# @param [Object] quantity Value to be assigned
|
190
|
+
def quantity=(quantity)
|
191
|
+
if !quantity.nil? && quantity > 9999999999
|
192
|
+
fail ArgumentError, 'invalid value for "quantity", must be smaller than or equal to 9999999999.'
|
193
|
+
end
|
194
|
+
|
195
|
+
if !quantity.nil? && quantity < 1
|
196
|
+
fail ArgumentError, 'invalid value for "quantity", must be greater than or equal to 1.'
|
197
|
+
end
|
198
|
+
|
199
|
+
@quantity = quantity
|
200
|
+
end
|
201
|
+
|
202
|
+
# Custom attribute writer method with validation
|
203
|
+
# @param [Object] product_sku Value to be assigned
|
204
|
+
def product_sku=(product_sku)
|
205
|
+
if !product_sku.nil? && product_sku.to_s.length > 255
|
206
|
+
fail ArgumentError, 'invalid value for "product_sku", the character length must be smaller than or equal to 255.'
|
207
|
+
end
|
208
|
+
|
209
|
+
@product_sku = product_sku
|
210
|
+
end
|
211
|
+
|
212
|
+
# Custom attribute writer method with validation
|
213
|
+
# @param [Object] product_risk Value to be assigned
|
214
|
+
def product_risk=(product_risk)
|
215
|
+
if !product_risk.nil? && product_risk.to_s.length > 6
|
216
|
+
fail ArgumentError, 'invalid value for "product_risk", the character length must be smaller than or equal to 6.'
|
217
|
+
end
|
218
|
+
|
219
|
+
@product_risk = product_risk
|
220
|
+
end
|
221
|
+
|
222
|
+
# Custom attribute writer method with validation
|
223
|
+
# @param [Object] product_name Value to be assigned
|
224
|
+
def product_name=(product_name)
|
225
|
+
if !product_name.nil? && product_name.to_s.length > 255
|
226
|
+
fail ArgumentError, 'invalid value for "product_name", the character length must be smaller than or equal to 255.'
|
227
|
+
end
|
228
|
+
|
229
|
+
@product_name = product_name
|
230
|
+
end
|
231
|
+
|
232
|
+
# Custom attribute writer method with validation
|
233
|
+
# @param [Object] product_code Value to be assigned
|
234
|
+
def product_code=(product_code)
|
235
|
+
if !product_code.nil? && product_code.to_s.length > 255
|
236
|
+
fail ArgumentError, 'invalid value for "product_code", the character length must be smaller than or equal to 255.'
|
237
|
+
end
|
238
|
+
|
239
|
+
@product_code = product_code
|
240
|
+
end
|
241
|
+
|
242
|
+
# Custom attribute writer method with validation
|
243
|
+
# @param [Object] gift Value to be assigned
|
244
|
+
def gift=(gift)
|
245
|
+
if !gift.nil? && gift.to_s.length > 3
|
246
|
+
fail ArgumentError, 'invalid value for "gift", the character length must be smaller than or equal to 3.'
|
247
|
+
end
|
248
|
+
|
249
|
+
@gift = gift
|
250
|
+
end
|
251
|
+
|
252
|
+
# Custom attribute writer method with validation
|
253
|
+
# @param [Object] distributor_product_sku Value to be assigned
|
254
|
+
def distributor_product_sku=(distributor_product_sku)
|
255
|
+
if !distributor_product_sku.nil? && distributor_product_sku.to_s.length > 15
|
256
|
+
fail ArgumentError, 'invalid value for "distributor_product_sku", the character length must be smaller than or equal to 15.'
|
257
|
+
end
|
258
|
+
|
259
|
+
@distributor_product_sku = distributor_product_sku
|
260
|
+
end
|
261
|
+
|
262
|
+
# Checks equality by comparing each attribute.
|
263
|
+
# @param [Object] Object to be compared
|
264
|
+
def ==(o)
|
265
|
+
return true if self.equal?(o)
|
266
|
+
self.class == o.class &&
|
267
|
+
unit_price == o.unit_price &&
|
268
|
+
quantity == o.quantity &&
|
269
|
+
product_sku == o.product_sku &&
|
270
|
+
product_risk == o.product_risk &&
|
271
|
+
product_name == o.product_name &&
|
272
|
+
product_code == o.product_code &&
|
273
|
+
gift == o.gift &&
|
274
|
+
distributor_product_sku == o.distributor_product_sku &&
|
275
|
+
passenger == o.passenger
|
276
|
+
end
|
277
|
+
|
278
|
+
# @see the `==` method
|
279
|
+
# @param [Object] Object to be compared
|
280
|
+
def eql?(o)
|
281
|
+
self == o
|
282
|
+
end
|
283
|
+
|
284
|
+
# Calculates hash code according to all attributes.
|
285
|
+
# @return [Fixnum] Hash code
|
286
|
+
def hash
|
287
|
+
[unit_price, quantity, product_sku, product_risk, product_name, product_code, gift, distributor_product_sku, passenger].hash
|
288
|
+
end
|
289
|
+
|
290
|
+
# Builds the object from hash
|
291
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
292
|
+
# @return [Object] Returns the model itself
|
293
|
+
def build_from_hash(attributes)
|
294
|
+
return nil unless attributes.is_a?(Hash)
|
295
|
+
self.class.swagger_types.each_pair do |key, type|
|
296
|
+
if type =~ /\AArray<(.*)>/i
|
297
|
+
# check to ensure the input is an array given that the the attribute
|
298
|
+
# is documented as an array but the input is not
|
299
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
300
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
301
|
+
end
|
302
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
303
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
304
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
305
|
+
end
|
306
|
+
|
307
|
+
self
|
308
|
+
end
|
309
|
+
|
310
|
+
# Deserializes the data based on type
|
311
|
+
# @param string type Data type
|
312
|
+
# @param string value Value to be deserialized
|
313
|
+
# @return [Object] Deserialized data
|
314
|
+
def _deserialize(type, value)
|
315
|
+
case type.to_sym
|
316
|
+
when :DateTime
|
317
|
+
DateTime.parse(value)
|
318
|
+
when :Date
|
319
|
+
Date.parse(value)
|
320
|
+
when :String
|
321
|
+
value.to_s
|
322
|
+
when :Integer
|
323
|
+
value.to_i
|
324
|
+
when :Float
|
325
|
+
value.to_f
|
326
|
+
when :BOOLEAN
|
327
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
328
|
+
true
|
329
|
+
else
|
330
|
+
false
|
331
|
+
end
|
332
|
+
when :Object
|
333
|
+
# generic object (usually a Hash), return directly
|
334
|
+
value
|
335
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
336
|
+
inner_type = Regexp.last_match[:inner_type]
|
337
|
+
value.map { |v| _deserialize(inner_type, v) }
|
338
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
339
|
+
k_type = Regexp.last_match[:k_type]
|
340
|
+
v_type = Regexp.last_match[:v_type]
|
341
|
+
{}.tap do |hash|
|
342
|
+
value.each do |k, v|
|
343
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
344
|
+
end
|
345
|
+
end
|
346
|
+
else # model
|
347
|
+
temp_model = CyberSource.const_get(type).new
|
348
|
+
temp_model.build_from_hash(value)
|
349
|
+
end
|
350
|
+
end
|
351
|
+
|
352
|
+
# Returns the string representation of the object
|
353
|
+
# @return [String] String presentation of the object
|
354
|
+
def to_s
|
355
|
+
to_hash.to_s
|
356
|
+
end
|
357
|
+
|
358
|
+
# to_body is an alias to to_hash (backward compatibility)
|
359
|
+
# @return [Hash] Returns the object in the form of hash
|
360
|
+
def to_body
|
361
|
+
to_hash
|
362
|
+
end
|
363
|
+
|
364
|
+
# Returns the object in the form of hash
|
365
|
+
# @return [Hash] Returns the object in the form of hash
|
366
|
+
def to_hash
|
367
|
+
hash = {}
|
368
|
+
self.class.attribute_map.each_pair do |attr, param|
|
369
|
+
value = self.send(attr)
|
370
|
+
next if value.nil?
|
371
|
+
hash[param] = _to_hash(value)
|
372
|
+
end
|
373
|
+
hash
|
374
|
+
end
|
375
|
+
|
376
|
+
# Outputs non-array value in the form of hash
|
377
|
+
# For object, use to_hash. Otherwise, just return the value
|
378
|
+
# @param [Object] value Any valid value
|
379
|
+
# @return [Hash] Returns the value in the form of hash
|
380
|
+
def _to_hash(value)
|
381
|
+
if value.is_a?(Array)
|
382
|
+
value.compact.map { |v| _to_hash(v) }
|
383
|
+
elsif value.is_a?(Hash)
|
384
|
+
{}.tap do |hash|
|
385
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
386
|
+
end
|
387
|
+
elsif value.respond_to? :to_hash
|
388
|
+
value.to_hash
|
389
|
+
else
|
390
|
+
value
|
391
|
+
end
|
392
|
+
end
|
393
|
+
end
|
394
|
+
end
|
@@ -0,0 +1,350 @@
|
|
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
|
+
# Contains travel-related passenger details.
|
17
|
+
class Riskv1decisionsOrderInformationPassenger
|
18
|
+
# Passenger classification associated with the price of the ticket. You can use one of the following values: - `ADT`: Adult - `CNN`: Child - `INF`: Infant - `YTH`: Youth - `STU`: Student - `SCR`: Senior Citizen - `MIL`: Military
|
19
|
+
attr_accessor :type
|
20
|
+
|
21
|
+
# Your company's passenger classification, such as with a frequent flyer program. In this case, you might use values such as `standard`, `gold`, or `platinum`.
|
22
|
+
attr_accessor :status
|
23
|
+
|
24
|
+
# Passenger's phone number. If the order is from outside the U.S., CyberSource recommends that you include the country code.
|
25
|
+
attr_accessor :phone
|
26
|
+
|
27
|
+
# Passenger's first name.
|
28
|
+
attr_accessor :first_name
|
29
|
+
|
30
|
+
# Passenger's last name.
|
31
|
+
attr_accessor :last_name
|
32
|
+
|
33
|
+
# ID of the passenger to whom the ticket was issued. For example, you can use this field for the frequent flyer number.
|
34
|
+
attr_accessor :id
|
35
|
+
|
36
|
+
# Passenger's email address, including the full domain name, such as jdoe@example.com.
|
37
|
+
attr_accessor :email
|
38
|
+
|
39
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
40
|
+
def self.attribute_map
|
41
|
+
{
|
42
|
+
:'type' => :'type',
|
43
|
+
:'status' => :'status',
|
44
|
+
:'phone' => :'phone',
|
45
|
+
:'first_name' => :'firstName',
|
46
|
+
:'last_name' => :'lastName',
|
47
|
+
:'id' => :'id',
|
48
|
+
:'email' => :'email'
|
49
|
+
}
|
50
|
+
end
|
51
|
+
|
52
|
+
# Attribute type mapping.
|
53
|
+
def self.swagger_types
|
54
|
+
{
|
55
|
+
:'type' => :'String',
|
56
|
+
:'status' => :'String',
|
57
|
+
:'phone' => :'String',
|
58
|
+
:'first_name' => :'String',
|
59
|
+
:'last_name' => :'String',
|
60
|
+
:'id' => :'String',
|
61
|
+
:'email' => :'String'
|
62
|
+
}
|
63
|
+
end
|
64
|
+
|
65
|
+
# Initializes the object
|
66
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
67
|
+
def initialize(attributes = {})
|
68
|
+
return unless attributes.is_a?(Hash)
|
69
|
+
|
70
|
+
# convert string to symbol for hash key
|
71
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
72
|
+
|
73
|
+
if attributes.has_key?(:'type')
|
74
|
+
self.type = attributes[:'type']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.has_key?(:'status')
|
78
|
+
self.status = attributes[:'status']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.has_key?(:'phone')
|
82
|
+
self.phone = attributes[:'phone']
|
83
|
+
end
|
84
|
+
|
85
|
+
if attributes.has_key?(:'firstName')
|
86
|
+
self.first_name = attributes[:'firstName']
|
87
|
+
end
|
88
|
+
|
89
|
+
if attributes.has_key?(:'lastName')
|
90
|
+
self.last_name = attributes[:'lastName']
|
91
|
+
end
|
92
|
+
|
93
|
+
if attributes.has_key?(:'id')
|
94
|
+
self.id = attributes[:'id']
|
95
|
+
end
|
96
|
+
|
97
|
+
if attributes.has_key?(:'email')
|
98
|
+
self.email = attributes[:'email']
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
103
|
+
# @return Array for valid properties with the reasons
|
104
|
+
def list_invalid_properties
|
105
|
+
invalid_properties = Array.new
|
106
|
+
if !@type.nil? && @type.to_s.length > 32
|
107
|
+
invalid_properties.push('invalid value for "type", the character length must be smaller than or equal to 32.')
|
108
|
+
end
|
109
|
+
|
110
|
+
if !@status.nil? && @status.to_s.length > 32
|
111
|
+
invalid_properties.push('invalid value for "status", the character length must be smaller than or equal to 32.')
|
112
|
+
end
|
113
|
+
|
114
|
+
if !@phone.nil? && @phone.to_s.length > 15
|
115
|
+
invalid_properties.push('invalid value for "phone", the character length must be smaller than or equal to 15.')
|
116
|
+
end
|
117
|
+
|
118
|
+
if !@first_name.nil? && @first_name.to_s.length > 60
|
119
|
+
invalid_properties.push('invalid value for "first_name", the character length must be smaller than or equal to 60.')
|
120
|
+
end
|
121
|
+
|
122
|
+
if !@last_name.nil? && @last_name.to_s.length > 60
|
123
|
+
invalid_properties.push('invalid value for "last_name", the character length must be smaller than or equal to 60.')
|
124
|
+
end
|
125
|
+
|
126
|
+
if !@id.nil? && @id.to_s.length > 40
|
127
|
+
invalid_properties.push('invalid value for "id", the character length must be smaller than or equal to 40.')
|
128
|
+
end
|
129
|
+
|
130
|
+
if !@email.nil? && @email.to_s.length > 255
|
131
|
+
invalid_properties.push('invalid value for "email", the character length must be smaller than or equal to 255.')
|
132
|
+
end
|
133
|
+
|
134
|
+
invalid_properties
|
135
|
+
end
|
136
|
+
|
137
|
+
# Check to see if the all the properties in the model are valid
|
138
|
+
# @return true if the model is valid
|
139
|
+
def valid?
|
140
|
+
return false if !@type.nil? && @type.to_s.length > 32
|
141
|
+
return false if !@status.nil? && @status.to_s.length > 32
|
142
|
+
return false if !@phone.nil? && @phone.to_s.length > 15
|
143
|
+
return false if !@first_name.nil? && @first_name.to_s.length > 60
|
144
|
+
return false if !@last_name.nil? && @last_name.to_s.length > 60
|
145
|
+
return false if !@id.nil? && @id.to_s.length > 40
|
146
|
+
return false if !@email.nil? && @email.to_s.length > 255
|
147
|
+
true
|
148
|
+
end
|
149
|
+
|
150
|
+
# Custom attribute writer method with validation
|
151
|
+
# @param [Object] type Value to be assigned
|
152
|
+
def type=(type)
|
153
|
+
if !type.nil? && type.to_s.length > 32
|
154
|
+
fail ArgumentError, 'invalid value for "type", the character length must be smaller than or equal to 32.'
|
155
|
+
end
|
156
|
+
|
157
|
+
@type = type
|
158
|
+
end
|
159
|
+
|
160
|
+
# Custom attribute writer method with validation
|
161
|
+
# @param [Object] status Value to be assigned
|
162
|
+
def status=(status)
|
163
|
+
if !status.nil? && status.to_s.length > 32
|
164
|
+
fail ArgumentError, 'invalid value for "status", the character length must be smaller than or equal to 32.'
|
165
|
+
end
|
166
|
+
|
167
|
+
@status = status
|
168
|
+
end
|
169
|
+
|
170
|
+
# Custom attribute writer method with validation
|
171
|
+
# @param [Object] phone Value to be assigned
|
172
|
+
def phone=(phone)
|
173
|
+
if !phone.nil? && phone.to_s.length > 15
|
174
|
+
fail ArgumentError, 'invalid value for "phone", the character length must be smaller than or equal to 15.'
|
175
|
+
end
|
176
|
+
|
177
|
+
@phone = phone
|
178
|
+
end
|
179
|
+
|
180
|
+
# Custom attribute writer method with validation
|
181
|
+
# @param [Object] first_name Value to be assigned
|
182
|
+
def first_name=(first_name)
|
183
|
+
if !first_name.nil? && first_name.to_s.length > 60
|
184
|
+
fail ArgumentError, 'invalid value for "first_name", the character length must be smaller than or equal to 60.'
|
185
|
+
end
|
186
|
+
|
187
|
+
@first_name = first_name
|
188
|
+
end
|
189
|
+
|
190
|
+
# Custom attribute writer method with validation
|
191
|
+
# @param [Object] last_name Value to be assigned
|
192
|
+
def last_name=(last_name)
|
193
|
+
if !last_name.nil? && last_name.to_s.length > 60
|
194
|
+
fail ArgumentError, 'invalid value for "last_name", the character length must be smaller than or equal to 60.'
|
195
|
+
end
|
196
|
+
|
197
|
+
@last_name = last_name
|
198
|
+
end
|
199
|
+
|
200
|
+
# Custom attribute writer method with validation
|
201
|
+
# @param [Object] id Value to be assigned
|
202
|
+
def id=(id)
|
203
|
+
if !id.nil? && id.to_s.length > 40
|
204
|
+
fail ArgumentError, 'invalid value for "id", the character length must be smaller than or equal to 40.'
|
205
|
+
end
|
206
|
+
|
207
|
+
@id = id
|
208
|
+
end
|
209
|
+
|
210
|
+
# Custom attribute writer method with validation
|
211
|
+
# @param [Object] email Value to be assigned
|
212
|
+
def email=(email)
|
213
|
+
if !email.nil? && email.to_s.length > 255
|
214
|
+
fail ArgumentError, 'invalid value for "email", the character length must be smaller than or equal to 255.'
|
215
|
+
end
|
216
|
+
|
217
|
+
@email = email
|
218
|
+
end
|
219
|
+
|
220
|
+
# Checks equality by comparing each attribute.
|
221
|
+
# @param [Object] Object to be compared
|
222
|
+
def ==(o)
|
223
|
+
return true if self.equal?(o)
|
224
|
+
self.class == o.class &&
|
225
|
+
type == o.type &&
|
226
|
+
status == o.status &&
|
227
|
+
phone == o.phone &&
|
228
|
+
first_name == o.first_name &&
|
229
|
+
last_name == o.last_name &&
|
230
|
+
id == o.id &&
|
231
|
+
email == o.email
|
232
|
+
end
|
233
|
+
|
234
|
+
# @see the `==` method
|
235
|
+
# @param [Object] Object to be compared
|
236
|
+
def eql?(o)
|
237
|
+
self == o
|
238
|
+
end
|
239
|
+
|
240
|
+
# Calculates hash code according to all attributes.
|
241
|
+
# @return [Fixnum] Hash code
|
242
|
+
def hash
|
243
|
+
[type, status, phone, first_name, last_name, id, email].hash
|
244
|
+
end
|
245
|
+
|
246
|
+
# Builds the object from hash
|
247
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
248
|
+
# @return [Object] Returns the model itself
|
249
|
+
def build_from_hash(attributes)
|
250
|
+
return nil unless attributes.is_a?(Hash)
|
251
|
+
self.class.swagger_types.each_pair do |key, type|
|
252
|
+
if type =~ /\AArray<(.*)>/i
|
253
|
+
# check to ensure the input is an array given that the the attribute
|
254
|
+
# is documented as an array but the input is not
|
255
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
256
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
257
|
+
end
|
258
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
259
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
260
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
261
|
+
end
|
262
|
+
|
263
|
+
self
|
264
|
+
end
|
265
|
+
|
266
|
+
# Deserializes the data based on type
|
267
|
+
# @param string type Data type
|
268
|
+
# @param string value Value to be deserialized
|
269
|
+
# @return [Object] Deserialized data
|
270
|
+
def _deserialize(type, value)
|
271
|
+
case type.to_sym
|
272
|
+
when :DateTime
|
273
|
+
DateTime.parse(value)
|
274
|
+
when :Date
|
275
|
+
Date.parse(value)
|
276
|
+
when :String
|
277
|
+
value.to_s
|
278
|
+
when :Integer
|
279
|
+
value.to_i
|
280
|
+
when :Float
|
281
|
+
value.to_f
|
282
|
+
when :BOOLEAN
|
283
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
284
|
+
true
|
285
|
+
else
|
286
|
+
false
|
287
|
+
end
|
288
|
+
when :Object
|
289
|
+
# generic object (usually a Hash), return directly
|
290
|
+
value
|
291
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
292
|
+
inner_type = Regexp.last_match[:inner_type]
|
293
|
+
value.map { |v| _deserialize(inner_type, v) }
|
294
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
295
|
+
k_type = Regexp.last_match[:k_type]
|
296
|
+
v_type = Regexp.last_match[:v_type]
|
297
|
+
{}.tap do |hash|
|
298
|
+
value.each do |k, v|
|
299
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
300
|
+
end
|
301
|
+
end
|
302
|
+
else # model
|
303
|
+
temp_model = CyberSource.const_get(type).new
|
304
|
+
temp_model.build_from_hash(value)
|
305
|
+
end
|
306
|
+
end
|
307
|
+
|
308
|
+
# Returns the string representation of the object
|
309
|
+
# @return [String] String presentation of the object
|
310
|
+
def to_s
|
311
|
+
to_hash.to_s
|
312
|
+
end
|
313
|
+
|
314
|
+
# to_body is an alias to to_hash (backward compatibility)
|
315
|
+
# @return [Hash] Returns the object in the form of hash
|
316
|
+
def to_body
|
317
|
+
to_hash
|
318
|
+
end
|
319
|
+
|
320
|
+
# Returns the object in the form of hash
|
321
|
+
# @return [Hash] Returns the object in the form of hash
|
322
|
+
def to_hash
|
323
|
+
hash = {}
|
324
|
+
self.class.attribute_map.each_pair do |attr, param|
|
325
|
+
value = self.send(attr)
|
326
|
+
next if value.nil?
|
327
|
+
hash[param] = _to_hash(value)
|
328
|
+
end
|
329
|
+
hash
|
330
|
+
end
|
331
|
+
|
332
|
+
# Outputs non-array value in the form of hash
|
333
|
+
# For object, use to_hash. Otherwise, just return the value
|
334
|
+
# @param [Object] value Any valid value
|
335
|
+
# @return [Hash] Returns the value in the form of hash
|
336
|
+
def _to_hash(value)
|
337
|
+
if value.is_a?(Array)
|
338
|
+
value.compact.map { |v| _to_hash(v) }
|
339
|
+
elsif value.is_a?(Hash)
|
340
|
+
{}.tap do |hash|
|
341
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
342
|
+
end
|
343
|
+
elsif value.respond_to? :to_hash
|
344
|
+
value.to_hash
|
345
|
+
else
|
346
|
+
value
|
347
|
+
end
|
348
|
+
end
|
349
|
+
end
|
350
|
+
end
|