cybersource_rest_client 0.0.22 → 0.0.24
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 +197 -108
- data/lib/cybersource_rest_client/api/asymmetric_key_management_api.rb +219 -0
- data/lib/cybersource_rest_client/api/customer_api.rb +360 -0
- data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +516 -0
- data/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +516 -0
- data/lib/cybersource_rest_client/api/decision_manager_api.rb +15 -15
- data/lib/cybersource_rest_client/api/download_dtd_api.rb +1 -1
- data/lib/cybersource_rest_client/api/download_xsd_api.rb +1 -1
- data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +165 -174
- data/lib/cybersource_rest_client/api/key_generation_api.rb +10 -6
- data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +1 -1
- data/lib/cybersource_rest_client/api/payer_authentication_api.rb +65 -0
- data/lib/cybersource_rest_client/api/payment_batch_summaries_api.rb +1 -1
- data/lib/cybersource_rest_client/api/payment_instrument_api.rb +131 -136
- data/lib/cybersource_rest_client/api/payments_api.rb +2 -2
- data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +1 -1
- data/lib/cybersource_rest_client/api/refund_api.rb +4 -4
- data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +45 -0
- data/lib/cybersource_rest_client/api/reversal_api.rb +4 -4
- data/lib/cybersource_rest_client/api/symmetric_key_management_api.rb +219 -0
- data/lib/cybersource_rest_client/api/taxes_api.rb +160 -0
- data/lib/cybersource_rest_client/api/user_management_api.rb +4 -4
- data/lib/cybersource_rest_client/api/user_management_search_api.rb +89 -0
- data/lib/cybersource_rest_client/api/void_api.rb +8 -8
- data/lib/cybersource_rest_client/api_client.rb +37 -24
- data/lib/cybersource_rest_client/models/capture_payment_request.rb +1 -1
- data/lib/cybersource_rest_client/models/check_payer_auth_enrollment_request.rb +14 -5
- data/lib/cybersource_rest_client/models/{create_decision_manager_case_request.rb → create_bundled_decision_manager_case_request.rb} +50 -14
- data/lib/cybersource_rest_client/models/create_credit_request.rb +1 -1
- data/lib/cybersource_rest_client/models/create_p12_keys_request.rb +194 -0
- data/lib/cybersource_rest_client/models/create_payment_request.rb +10 -1
- data/lib/cybersource_rest_client/models/create_search_request.rb +7 -7
- data/lib/cybersource_rest_client/models/create_shared_secret_keys_request.rb +194 -0
- data/lib/cybersource_rest_client/models/customer.rb +292 -0
- data/lib/cybersource_rest_client/models/delete_bulk_p12_keys_request.rb +194 -0
- data/lib/cybersource_rest_client/models/delete_bulk_symmetric_keys_request.rb +194 -0
- data/lib/cybersource_rest_client/models/inline_response_200.rb +203 -0
- data/lib/cybersource_rest_client/models/inline_response_200_1.rb +214 -0
- data/lib/cybersource_rest_client/models/inline_response_200_1_key_information.rb +224 -0
- data/lib/cybersource_rest_client/models/inline_response_200_2.rb +193 -0
- data/lib/cybersource_rest_client/models/{flex_v1_tokens_post200_response.rb → inline_response_200_2_key_information.rb} +55 -56
- data/lib/cybersource_rest_client/models/inline_response_200_3.rb +204 -0
- data/lib/cybersource_rest_client/models/inline_response_200_3_key_information.rb +234 -0
- data/lib/cybersource_rest_client/models/{tmsv1instrumentidentifiers_bill_to.rb → inline_response_200_key_information.rb} +44 -44
- data/lib/cybersource_rest_client/models/inline_response_201.rb +214 -0
- data/lib/cybersource_rest_client/models/inline_response_201_1.rb +225 -0
- data/lib/cybersource_rest_client/models/inline_response_201_1_certificate_information.rb +214 -0
- data/lib/cybersource_rest_client/models/inline_response_201_1_key_information.rb +264 -0
- data/lib/cybersource_rest_client/models/inline_response_201_error_information.rb +195 -0
- data/lib/cybersource_rest_client/models/{instrument_identifier_bank_account.rb → inline_response_201_key_information.rb} +73 -61
- data/lib/cybersource_rest_client/models/inline_response_400.rb +9 -26
- data/lib/cybersource_rest_client/models/inline_response_400_2.rb +214 -0
- data/lib/cybersource_rest_client/models/{tmsv1instrumentidentifiers_details.rb → inline_response_400_details.rb} +3 -3
- data/lib/cybersource_rest_client/models/{payment_instrument_bank_account.rb → inline_response_400_errors.rb} +27 -6
- data/lib/cybersource_rest_client/models/{instrument_identifier_response.rb → instrument_identifier.rb} +39 -20
- data/lib/cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response.rb +1 -1
- data/lib/cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response_invoice_settings_information.rb +54 -4
- 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_invoices.rb +1 -1
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_order_information_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get404_response.rb +1 -1
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get502_response.rb +2 -2
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_get200_response.rb +2 -2
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_get200_response_invoice_history.rb +2 -2
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_get200_response_transaction_details.rb +1 -1
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response.rb +2 -2
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response_order_information_amount_details.rb +4 -4
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post202_response.rb +1 -1
- data/lib/cybersource_rest_client/models/invoicingv2invoices_customer_information.rb +1 -1
- data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_amount_details.rb +3 -3
- data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_amount_details_tax_details.rb +1 -1
- data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_line_items.rb +4 -4
- data/lib/cybersource_rest_client/models/kmsv2keysasym_key_information.rb +215 -0
- data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_post200_response_card.rb → kmsv2keyssym_client_reference_information.rb} +36 -26
- data/lib/cybersource_rest_client/models/kmsv2keyssym_key_information.rb +200 -0
- data/lib/cybersource_rest_client/models/kmsv2keyssymdeletes_key_information.rb +215 -0
- data/lib/cybersource_rest_client/models/patch_customer_payment_instrument_request.rb +318 -0
- data/lib/cybersource_rest_client/models/patch_customer_request.rb +292 -0
- data/lib/cybersource_rest_client/models/patch_customer_shipping_address_request.rb +235 -0
- data/lib/cybersource_rest_client/models/{embedded_instrument_identifier_response.rb → patch_instrument_identifier_request.rb} +45 -50
- data/lib/cybersource_rest_client/models/{payment_instrument_instrument_identifier_request.rb → patch_payment_instrument_request.rb} +92 -20
- data/lib/cybersource_rest_client/models/{update_instrument_identifier_request.rb → payer_auth_setup_request.rb} +32 -5
- data/lib/cybersource_rest_client/models/payment_instrument.rb +51 -18
- data/lib/cybersource_rest_client/models/{payment_instruments_for_instrument_identifier.rb → payment_instrument_list_for_customer.rb} +9 -19
- data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded.rb → payment_instrument_list_for_customer__embedded.rb} +3 -3
- data/lib/cybersource_rest_client/models/{payment_instrument_for_instrument_identifier_links.rb → payment_instrument_list_for_customer__links.rb} +6 -6
- data/lib/cybersource_rest_client/models/payment_instrument_list_for_customer__links_first.rb +184 -0
- data/lib/cybersource_rest_client/models/{payment_instrument_self_link.rb → payment_instrument_list_for_customer__links_last.rb} +2 -1
- data/lib/cybersource_rest_client/models/payment_instrument_list_for_customer__links_next.rb +184 -0
- data/lib/cybersource_rest_client/models/payment_instrument_list_for_customer__links_prev.rb +184 -0
- data/lib/cybersource_rest_client/models/payment_instrument_list_for_customer__links_self.rb +184 -0
- data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_payment_instruments_get200_response.rb → payment_instrument_paginated.rb} +9 -19
- data/lib/cybersource_rest_client/models/post_customer_payment_instrument_request.rb +318 -0
- data/lib/cybersource_rest_client/models/post_customer_request.rb +292 -0
- data/lib/cybersource_rest_client/models/post_customer_shipping_address_request.rb +235 -0
- data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_post200_response.rb → post_instrument_identifier_request.rb} +39 -20
- data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_payment_instruments_get200_response_payment_instruments.rb → post_payment_instrument_request.rb} +52 -19
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get200_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get500_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response.rb +3 -3
- 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 +40 -4
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_client_reference_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_payment_information_account_features.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_processor_information.rb +4 -4
- 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_post201_response.rb +16 -16
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information_invoice_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_point_of_sale_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_processing_information.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 +14 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response__links.rb +40 -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_consumer_authentication_information.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_issuer_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 +40 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_account_features.rb +16 -16
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/{embedded_instrument_identifier_request.rb → pts_v2_payments_post201_response_payment_information_instrument_identifier.rb} +15 -23
- 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 +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information_emv.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +8 -8
- 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_consumer_authentication_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_customer.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_merchant_advice.rb +5 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_routing.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_info_codes.rb +8 -8
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_velocity.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_velocity_morphing.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_token_information.rb +220 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_token_information_customer.rb +208 -0
- data/lib/cybersource_rest_client/models/{tmsv1paymentinstruments_instrument_identifier.rb → pts_v2_payments_post201_response_token_information_instrument_identifier.rb} +15 -23
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_token_information_payment_instrument.rb +208 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_token_information_shipping_address.rb +208 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post502_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +3 -3
- 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 +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_post201_response.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_issuer_information.rb +1 -1
- 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 +3 -3
- 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_post201_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response_processor_information.rb +1 -1
- 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 +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information_merchant_descriptor.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +4 -4
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information_electronic_benefits_transfer.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information_purchase_options.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information_partner.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +27 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_device_information.rb +1 -1
- data/lib/cybersource_rest_client/models/{instrument_identifier_update.rb → ptsv2payments_health_care_information.rb} +11 -8
- data/lib/cybersource_rest_client/models/{tmsv1instrumentidentifiers_bank_account.rb → ptsv2payments_health_care_information_amount_details.rb} +32 -50
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +5 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +16 -16
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_amex_additional_amounts.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_surcharge.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_tax_details.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb +10 -10
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to_company.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +31 -6
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +6 -6
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_passenger.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_ship_to.rb +8 -8
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +47 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +8 -8
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_customer.rb +38 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_fluid_data.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_instrument_identifier.rb +208 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_legacy_token.rb +199 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_payment_instrument.rb +208 -0
- data/lib/cybersource_rest_client/models/{ptsv2paymentsidrefunds_payment_information_payment_type.rb → ptsv2payments_payment_information_payment_type.rb} +4 -4
- data/lib/cybersource_rest_client/models/{ptsv2paymentsidrefunds_payment_information_payment_type_method.rb → ptsv2payments_payment_information_payment_type_method.rb} +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_shipping_address.rb +208 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +4 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +18 -18
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information_emv.rb +5 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +31 -7
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +55 -15
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_capture_options.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_electronic_benefits_transfer.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_japan_payment_options.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_purchase_options.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_token_information.rb +22 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_token_information_payment_instrument.rb +186 -0
- data/lib/cybersource_rest_client/models/{authorization_options.rb → ptsv2payments_token_information_shipping_address.rb} +11 -8
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information.rb +11 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_agency.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb +1146 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental_rental_address.rb +349 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental_return_address.rb +299 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental_tax_details.rb +309 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_lodging.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_lodging_room.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb +25 -25
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_ancillary_information.rb +4 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_ancillary_information_service.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_legs.rb +19 -19
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_ticket_issuer.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsid_client_reference_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsid_client_reference_information_partner.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsid_merchant_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsid_order_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_buyer_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_device_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_merchant_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb +15 -15
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_bill_to.rb +10 -10
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_ship_to.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_payment_information_card.rb +1 -1
- 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 +3 -3
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_merchant_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb +6 -6
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +38 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +5 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information_partner.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_point_of_sale_information_emv.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidvoids_payment_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payouts_client_reference_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information_merchant_descriptor.rb +5 -5
- data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_amount_details_surcharge.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_bill_to.rb +9 -9
- data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +4 -4
- data/lib/cybersource_rest_client/models/ptsv2payouts_sender_information.rb +2 -2
- data/lib/cybersource_rest_client/models/refund_capture_request.rb +1 -1
- data/lib/cybersource_rest_client/models/refund_payment_request.rb +1 -1
- data/lib/cybersource_rest_client/models/risk_v1_address_verifications_post201_response.rb +4 -14
- data/lib/cybersource_rest_client/models/risk_v1_address_verifications_post201_response_address_verification_information.rb +1 -1
- data/lib/cybersource_rest_client/models/risk_v1_address_verifications_post201_response_error_information.rb +205 -0
- data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response.rb +5 -15
- data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response_consumer_authentication_information.rb +1 -1
- data/lib/cybersource_rest_client/models/risk_v1_authentication_setups_post201_response.rb +246 -0
- data/lib/cybersource_rest_client/models/risk_v1_authentication_setups_post201_response_consumer_authentication_information.rb +249 -0
- data/lib/cybersource_rest_client/models/risk_v1_authentication_setups_post201_response_error_information.rb +205 -0
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response.rb +7 -17
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response_error_information.rb +205 -0
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post400_response.rb +4 -4
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post400_response_1.rb +225 -0
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response.rb +32 -5
- data/lib/cybersource_rest_client/models/{risk_v1_authentications_post201_response_consumer_authentication_information.rb → risk_v1_decisions_post201_response_consumer_authentication_information.rb} +28 -3
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_error_information.rb +205 -0
- data/lib/cybersource_rest_client/models/{risk_v1_authentications_post201_response_order_information.rb → risk_v1_decisions_post201_response_order_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{risk_v1_authentications_post201_response_order_information_amount_details.rb → risk_v1_decisions_post201_response_order_information_amount_details.rb} +2 -2
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post400_response.rb +3 -3
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post400_response_1.rb +225 -0
- data/lib/cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response.rb +4 -14
- data/lib/cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response_error_information.rb +205 -0
- data/lib/cybersource_rest_client/models/risk_v1_update_post201_response.rb +2 -2
- data/lib/cybersource_rest_client/models/riskv1addressverifications_client_reference_information.rb +2 -2
- data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_bill_to.rb +6 -6
- data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_line_items.rb +5 -5
- data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_ship_to.rb +7 -7
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb +26 -1
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_order_information_line_items.rb +3 -3
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information.rb +13 -4
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +4 -4
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authentications_device_information.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authentications_order_information.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authentications_order_information_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/riskv1authentications_order_information_bill_to.rb +10 -10
- data/lib/cybersource_rest_client/models/riskv1authentications_order_information_line_items.rb +5 -5
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information.rb +13 -4
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_card.rb +4 -4
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authentications_travel_information.rb +2 -2
- data/lib/cybersource_rest_client/models/{riskv1authentications_client_reference_information.rb → riskv1authenticationsetups_client_reference_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{instrument_identifier_enrollable_card.rb → riskv1authenticationsetups_payment_information.rb} +24 -25
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_card.rb +286 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_customer.rb +199 -0
- data/lib/cybersource_rest_client/models/{riskv1authentications_payment_information_fluid_data.rb → riskv1authenticationsetups_payment_information_fluid_data.rb} +3 -3
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +325 -0
- data/lib/cybersource_rest_client/models/{riskv1authentications_processing_information.rb → riskv1authenticationsetups_processing_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_token_information.rb +184 -0
- data/lib/cybersource_rest_client/models/riskv1decisions_client_reference_information.rb +2 -2
- data/lib/cybersource_rest_client/models/{riskv1authentications_consumer_authentication_information.rb → riskv1decisions_consumer_authentication_information.rb} +29 -4
- data/lib/cybersource_rest_client/models/{riskv1authentications_consumer_authentication_information_strong_authentication.rb → riskv1decisions_consumer_authentication_information_strong_authentication.rb} +1 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_device_information.rb +236 -5
- data/lib/cybersource_rest_client/models/{riskv1authentications_merchant_information.rb → riskv1decisions_merchant_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{riskv1authentications_merchant_information_merchant_descriptor.rb → riskv1decisions_merchant_information_merchant_descriptor.rb} +2 -2
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information.rb +74 -4
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_bill_to.rb +10 -10
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_line_items.rb +104 -9
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_ship_to.rb +72 -13
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information.rb +47 -4
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_card.rb +4 -4
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_processing_information.rb +187 -0
- data/lib/cybersource_rest_client/models/riskv1decisions_processor_information.rb +13 -4
- data/lib/cybersource_rest_client/models/{riskv1decisions_card_verification.rb → riskv1decisions_processor_information_card_verification.rb} +1 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_risk_information.rb +13 -4
- data/lib/cybersource_rest_client/models/riskv1decisions_travel_information.rb +25 -4
- data/lib/cybersource_rest_client/models/riskv1decisions_travel_information_legs.rb +26 -16
- data/lib/cybersource_rest_client/models/{riskv1authentications_travel_information_passengers.rb → riskv1decisions_travel_information_passengers.rb} +1 -1
- data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_device_information.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_bill_to.rb +9 -9
- data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_line_items.rb +5 -5
- data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_ship_to.rb +3 -3
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_device_information.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information_bill_to.rb +10 -10
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information_line_items.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information_ship_to.rb +6 -6
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_payment_information_card.rb +2 -2
- data/lib/cybersource_rest_client/models/search_request.rb +214 -0
- data/lib/cybersource_rest_client/models/shipping_address.rb +235 -0
- data/lib/cybersource_rest_client/models/shipping_address_list_for_customer.rb +233 -0
- data/lib/cybersource_rest_client/models/shipping_address_list_for_customer__embedded.rb +186 -0
- data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_payment_instruments_get200_response__links.rb → shipping_address_list_for_customer__links.rb} +6 -6
- data/lib/cybersource_rest_client/models/shipping_address_list_for_customer__links_first.rb +184 -0
- data/lib/cybersource_rest_client/models/{pi_for_ii_link_self.rb → shipping_address_list_for_customer__links_last.rb} +2 -2
- data/lib/cybersource_rest_client/models/{instrument_identifier_payment_instruments_link.rb → shipping_address_list_for_customer__links_next.rb} +2 -1
- data/lib/cybersource_rest_client/models/shipping_address_list_for_customer__links_prev.rb +184 -0
- data/lib/cybersource_rest_client/models/shipping_address_list_for_customer__links_self.rb +184 -0
- data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_delete409_response.rb → shipping_address_paginated.rb} +55 -5
- data/lib/cybersource_rest_client/models/tax_request.rb +219 -0
- data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_bank_account.rb → tms_error.rb} +27 -6
- data/lib/cybersource_rest_client/models/{detail.rb → tms_error_details.rb} +3 -3
- data/lib/cybersource_rest_client/models/tms_error_response.rb +185 -0
- data/lib/cybersource_rest_client/models/tms_v2_customers_response.rb +292 -0
- data/lib/cybersource_rest_client/models/{tokenize_request.rb → tmsv2customers__embedded.rb} +15 -20
- data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_post200_response_processing_information_authorization_options.rb → tmsv2customers__embedded_authorization_options.rb} +2 -2
- data/lib/cybersource_rest_client/models/{initiator.rb → tmsv2customers__embedded_authorization_options_initiator.rb} +2 -2
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument.rb +318 -0
- data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded__embedded.rb → tmsv2customers__embedded_default_payment_instrument__embedded.rb} +3 -2
- data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_payment_instruments_embedded_instrument_identifier.rb → tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier.rb} +45 -50
- data/lib/cybersource_rest_client/models/{model_409_links.rb → tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier__links.rb} +12 -3
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier__links_self.rb +184 -0
- data/lib/cybersource_rest_client/models/{instrument_identifier_card.rb → tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_bank_account.rb} +21 -20
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_bill_to.rb +325 -0
- data/lib/cybersource_rest_client/models/{tmsv1instrumentidentifiers_card.rb → tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_card.rb} +6 -32
- data/lib/cybersource_rest_client/models/{issuer.rb → tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_issuer.rb} +7 -16
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_metadata.rb +184 -0
- data/lib/cybersource_rest_client/models/{payment_instruments_links.rb → tmsv2customers__embedded_default_payment_instrument__links.rb} +14 -5
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__links_self.rb +184 -0
- data/lib/cybersource_rest_client/models/{create_instrument_identifier_request.rb → tmsv2customers__embedded_default_payment_instrument_bank_account.rb} +21 -33
- data/lib/cybersource_rest_client/models/{bill_to.rb → tmsv2customers__embedded_default_payment_instrument_bill_to.rb} +27 -45
- data/lib/cybersource_rest_client/models/{buyer_information.rb → tmsv2customers__embedded_default_payment_instrument_buyer_information.rb} +6 -39
- data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_payment_instruments_get200_response_buyer_information_issued_by.rb → tmsv2customers__embedded_default_payment_instrument_buyer_information_issued_by.rb} +17 -2
- data/lib/cybersource_rest_client/models/{personal_identification.rb → tmsv2customers__embedded_default_payment_instrument_buyer_information_personal_identification.rb} +19 -4
- data/lib/cybersource_rest_client/models/{payment_instrument_card.rb → tmsv2customers__embedded_default_payment_instrument_card.rb} +21 -62
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_card_tokenized_information.rb +224 -0
- data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_payment_instruments_get200_response_personal_identification.rb → tmsv2customers__embedded_default_payment_instrument_instrument_identifier.rb} +30 -25
- data/lib/cybersource_rest_client/models/{merchant_information.rb → tmsv2customers__embedded_default_payment_instrument_merchant_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_payment_instruments_get200_response_merchant_descriptor.rb → tmsv2customers__embedded_default_payment_instrument_merchant_information_merchant_descriptor.rb} +17 -2
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_metadata.rb +184 -0
- data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_payment_instruments_get200_response_processing_information.rb → tmsv2customers__embedded_default_payment_instrument_processing_information.rb} +3 -5
- data/lib/cybersource_rest_client/models/{merchant_initiated_transaction.rb → tmsv2customers__embedded_default_payment_instrument_processing_information_bank_transfer_options.rb} +17 -17
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address.rb +235 -0
- data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded__links.rb → tmsv2customers__embedded_default_shipping_address__links.rb} +14 -5
- data/lib/cybersource_rest_client/models/{pi_for_ii_link_last.rb → tmsv2customers__embedded_default_shipping_address__links_customer.rb} +2 -2
- data/lib/cybersource_rest_client/models/{pi_for_ii_link_first.rb → tmsv2customers__embedded_default_shipping_address__links_self.rb} +2 -2
- data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_post200_response_metadata.rb → tmsv2customers__embedded_default_shipping_address_metadata.rb} +2 -2
- data/lib/cybersource_rest_client/models/{riskv1authentications_order_information_ship_to.rb → tmsv2customers__embedded_default_shipping_address_ship_to.rb} +140 -150
- data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_post200_response_merchant_initiated_transaction.rb → tmsv2customers__embedded_merchant_initiated_transaction.rb} +2 -2
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_payment_instruments.rb +184 -0
- data/lib/cybersource_rest_client/models/{instrument_identifier_processing_information.rb → tmsv2customers__embedded_processing_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{instrument_identifier_tokenized_card.rb → tmsv2customers__embedded_tokenized_card.rb} +33 -32
- data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_post200_response_tokenized_card_card.rb → tmsv2customers__embedded_tokenized_card_card.rb} +5 -23
- data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_post200_response__links.rb → tmsv2customers__links.rb} +10 -19
- data/lib/cybersource_rest_client/models/tmsv2customers__links_payment_instruments.rb +184 -0
- data/lib/cybersource_rest_client/models/{model_409_link.rb → tmsv2customers__links_self.rb} +2 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__links_shipping_address.rb +184 -0
- data/lib/cybersource_rest_client/models/tmsv2customers_buyer_information.rb +224 -0
- data/lib/cybersource_rest_client/models/{ptsv2paymentsidcaptures_travel_information.rb → tmsv2customers_client_reference_information.rb} +24 -26
- data/lib/cybersource_rest_client/models/tmsv2customers_default_payment_instrument.rb +184 -0
- data/lib/cybersource_rest_client/models/tmsv2customers_default_shipping_address.rb +184 -0
- data/lib/cybersource_rest_client/models/tmsv2customers_merchant_defined_information.rb +209 -0
- data/lib/cybersource_rest_client/models/{metadata.rb → tmsv2customers_metadata.rb} +2 -2
- data/lib/cybersource_rest_client/models/tmsv2customers_object_information.rb +224 -0
- data/lib/cybersource_rest_client/models/tokenize_parameters.rb +1 -1
- data/lib/cybersource_rest_client/models/{flexv1tokens_card_info.rb → tokenize_parameters_card_info.rb} +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response.rb +4 -4
- 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 +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_client_reference_information.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_device_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_fraud_marking_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_merchant_information_merchant_descriptor.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_amount_details.rb +4 -4
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_bill_to.rb +10 -10
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_invoice_details.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_line_items.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_ship_to.rb +8 -8
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_account_features.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +4 -4
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_payment_type.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_point_of_sale_information.rb +28 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_bank_transfer_options.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_japan_payment_options.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +5 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response.rb +8 -8
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_application_information.rb +5 -15
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_application_information_applications.rb +244 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_client_reference_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_device_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_merchant_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information_bill_to.rb +5 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information_ship_to.rb +4 -4
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processor_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_transaction_summaries.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/validate_request.rb +2 -2
- data/lib/cybersource_rest_client/models/vas_v2_payments_post201_response.rb +255 -0
- data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_post200_response__links_payment_instruments.rb → vas_v2_payments_post201_response__links.rb} +8 -8
- data/lib/cybersource_rest_client/models/{tms_v1_instrument_identifiers_post200_response_tokenized_card.rb → vas_v2_payments_post201_response_order_information.rb} +75 -67
- data/lib/cybersource_rest_client/models/vas_v2_payments_post201_response_order_information_jurisdiction.rb +384 -0
- data/lib/cybersource_rest_client/models/vas_v2_payments_post201_response_order_information_line_items.rb +271 -0
- data/lib/cybersource_rest_client/models/vas_v2_payments_post201_response_order_information_tax_details.rb +224 -0
- data/lib/cybersource_rest_client/models/vas_v2_payments_post201_response_tax_information.rb +194 -0
- data/lib/cybersource_rest_client/models/vas_v2_payments_post400_response.rb +225 -0
- data/lib/cybersource_rest_client/models/vas_v2_tax_void200_response.rb +237 -0
- data/lib/cybersource_rest_client/models/vas_v2_tax_void200_response_void_amount_details.rb +209 -0
- data/lib/cybersource_rest_client/models/vas_v2_tax_voids_post400_response.rb +225 -0
- data/lib/cybersource_rest_client/models/vasv2tax_buyer_information.rb +199 -0
- data/lib/cybersource_rest_client/models/vasv2tax_client_reference_information.rb +218 -0
- data/lib/cybersource_rest_client/models/vasv2tax_client_reference_information_partner.rb +224 -0
- data/lib/cybersource_rest_client/models/vasv2tax_merchant_information.rb +199 -0
- data/lib/cybersource_rest_client/models/vasv2tax_order_information.rb +248 -0
- data/lib/cybersource_rest_client/models/vasv2tax_order_information_bill_to.rb +324 -0
- data/lib/cybersource_rest_client/models/vasv2tax_order_information_invoice_details.rb +199 -0
- data/lib/cybersource_rest_client/models/vasv2tax_order_information_line_items.rb +501 -0
- data/lib/cybersource_rest_client/models/vasv2tax_order_information_order_acceptance.rb +275 -0
- data/lib/cybersource_rest_client/models/vasv2tax_order_information_order_origin.rb +275 -0
- data/lib/cybersource_rest_client/models/vasv2tax_order_information_ship_to.rb +349 -0
- data/lib/cybersource_rest_client/models/vasv2tax_order_information_shipping_details.rb +274 -0
- data/lib/cybersource_rest_client/models/vasv2tax_tax_information.rb +278 -0
- data/lib/cybersource_rest_client/models/vasv2taxid_client_reference_information.rb +218 -0
- data/lib/cybersource_rest_client/models/vasv2taxid_client_reference_information_partner.rb +224 -0
- data/lib/cybersource_rest_client/models/void_tax_request.rb +183 -0
- metadata +199 -110
- data/lib/cybersource_rest_client/api/tokenization_api.rb +0 -89
- data/lib/cybersource_rest_client/models/create_payment_instrument_request.rb +0 -246
- data/lib/cybersource_rest_client/models/error_response_with_hal.rb +0 -174
- data/lib/cybersource_rest_client/models/existing_instrument_identifier_id.rb +0 -175
- data/lib/cybersource_rest_client/models/payment_instruments_array.rb +0 -175
- data/lib/cybersource_rest_client/models/personal_identification_array.rb +0 -174
- data/lib/cybersource_rest_client/models/pi_for_ii_link_next.rb +0 -184
- data/lib/cybersource_rest_client/models/pi_for_ii_link_prev.rb +0 -184
- data/lib/cybersource_rest_client/models/processing_information.rb +0 -195
- data/lib/cybersource_rest_client/models/riskv1authentications_travel_information_legs.rb +0 -259
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_delete409_response__links.rb +0 -183
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded__links_self.rb +0 -183
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_bill_to.rb +0 -467
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_buyer_information.rb +0 -278
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_card.rb +0 -369
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__links_first.rb +0 -184
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__links_last.rb +0 -184
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__links_next.rb +0 -184
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__links_prev.rb +0 -184
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__links_self.rb +0 -184
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response_bank_transfer_options.rb +0 -184
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response_merchant_information.rb +0 -183
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_post200_response__links_self.rb +0 -183
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_post200_response_authorization_options_initiator.rb +0 -183
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_post200_response_issuer.rb +0 -208
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_post200_response_processing_information.rb +0 -183
- data/lib/cybersource_rest_client/models/update_payment_instrument_request.rb +0 -246
@@ -13,8 +13,8 @@ Swagger Codegen version: 2.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module CyberSource
|
16
|
-
class
|
17
|
-
#
|
16
|
+
class Tmsv2customersEmbeddedDefaultPaymentInstrumentProcessingInformation
|
17
|
+
# Flag that indicates that this is a payment for a bill or for an existing contractual loan. For processor-specific details, see the `bill_payment` field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) Valid values: - `true`: Bill payment or loan payment. - `false` (default): Not a bill payment or loan payment.
|
18
18
|
attr_accessor :bill_payment_program_enabled
|
19
19
|
|
20
20
|
attr_accessor :bank_transfer_options
|
@@ -31,7 +31,7 @@ module CyberSource
|
|
31
31
|
def self.swagger_types
|
32
32
|
{
|
33
33
|
:'bill_payment_program_enabled' => :'BOOLEAN',
|
34
|
-
:'bank_transfer_options' => :'
|
34
|
+
:'bank_transfer_options' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentProcessingInformationBankTransferOptions'
|
35
35
|
}
|
36
36
|
end
|
37
37
|
|
@@ -45,8 +45,6 @@ module CyberSource
|
|
45
45
|
|
46
46
|
if attributes.has_key?(:'billPaymentProgramEnabled')
|
47
47
|
self.bill_payment_program_enabled = attributes[:'billPaymentProgramEnabled']
|
48
|
-
else
|
49
|
-
self.bill_payment_program_enabled = false
|
50
48
|
end
|
51
49
|
|
52
50
|
if attributes.has_key?(:'bankTransferOptions')
|
@@ -13,21 +13,21 @@ Swagger Codegen version: 2.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module CyberSource
|
16
|
-
class
|
17
|
-
#
|
18
|
-
attr_accessor :
|
16
|
+
class Tmsv2customersEmbeddedDefaultPaymentInstrumentProcessingInformationBankTransferOptions
|
17
|
+
# Specifies the authorization method for the transaction. #### TeleCheck Valid values: - `ARC`: account receivable conversion - `CCD`: corporate cash disbursement - `POP`: point of purchase conversion - `PPD`: prearranged payment and deposit entry - `TEL`: telephone-initiated entry - `WEB`: internet-initiated entry For details, see `ecp_sec_code` field description in the [Electronic Check Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/)
|
18
|
+
attr_accessor :sec_code
|
19
19
|
|
20
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
21
|
def self.attribute_map
|
22
22
|
{
|
23
|
-
:'
|
23
|
+
:'sec_code' => :'SECCode'
|
24
24
|
}
|
25
25
|
end
|
26
26
|
|
27
27
|
# Attribute type mapping.
|
28
28
|
def self.swagger_types
|
29
29
|
{
|
30
|
-
:'
|
30
|
+
:'sec_code' => :'String'
|
31
31
|
}
|
32
32
|
end
|
33
33
|
|
@@ -39,8 +39,8 @@ module CyberSource
|
|
39
39
|
# convert string to symbol for hash key
|
40
40
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
41
41
|
|
42
|
-
if attributes.has_key?(:'
|
43
|
-
self.
|
42
|
+
if attributes.has_key?(:'SECCode')
|
43
|
+
self.sec_code = attributes[:'SECCode']
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
@@ -48,8 +48,8 @@ module CyberSource
|
|
48
48
|
# @return Array for valid properties with the reasons
|
49
49
|
def list_invalid_properties
|
50
50
|
invalid_properties = Array.new
|
51
|
-
if !@
|
52
|
-
invalid_properties.push('invalid value for "
|
51
|
+
if !@sec_code.nil? && @sec_code.to_s.length > 3
|
52
|
+
invalid_properties.push('invalid value for "sec_code", the character length must be smaller than or equal to 3.')
|
53
53
|
end
|
54
54
|
|
55
55
|
invalid_properties
|
@@ -58,18 +58,18 @@ module CyberSource
|
|
58
58
|
# Check to see if the all the properties in the model are valid
|
59
59
|
# @return true if the model is valid
|
60
60
|
def valid?
|
61
|
-
return false if !@
|
61
|
+
return false if !@sec_code.nil? && @sec_code.to_s.length > 3
|
62
62
|
true
|
63
63
|
end
|
64
64
|
|
65
65
|
# Custom attribute writer method with validation
|
66
|
-
# @param [Object]
|
67
|
-
def
|
68
|
-
if !
|
69
|
-
fail ArgumentError, 'invalid value for "
|
66
|
+
# @param [Object] sec_code Value to be assigned
|
67
|
+
def sec_code=(sec_code)
|
68
|
+
if !sec_code.nil? && sec_code.to_s.length > 3
|
69
|
+
fail ArgumentError, 'invalid value for "sec_code", the character length must be smaller than or equal to 3.'
|
70
70
|
end
|
71
71
|
|
72
|
-
@
|
72
|
+
@sec_code = sec_code
|
73
73
|
end
|
74
74
|
|
75
75
|
# Checks equality by comparing each attribute.
|
@@ -77,7 +77,7 @@ module CyberSource
|
|
77
77
|
def ==(o)
|
78
78
|
return true if self.equal?(o)
|
79
79
|
self.class == o.class &&
|
80
|
-
|
80
|
+
sec_code == o.sec_code
|
81
81
|
end
|
82
82
|
|
83
83
|
# @see the `==` method
|
@@ -89,7 +89,7 @@ module CyberSource
|
|
89
89
|
# Calculates hash code according to all attributes.
|
90
90
|
# @return [Fixnum] Hash code
|
91
91
|
def hash
|
92
|
-
[
|
92
|
+
[sec_code].hash
|
93
93
|
end
|
94
94
|
|
95
95
|
# Builds the object from hash
|
@@ -0,0 +1,235 @@
|
|
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 Tmsv2customersEmbeddedDefaultShippingAddress
|
17
|
+
attr_accessor :_links
|
18
|
+
|
19
|
+
# The id of the Shipping Address Token.
|
20
|
+
attr_accessor :id
|
21
|
+
|
22
|
+
attr_accessor :ship_to
|
23
|
+
|
24
|
+
attr_accessor :metadata
|
25
|
+
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
27
|
+
def self.attribute_map
|
28
|
+
{
|
29
|
+
:'_links' => :'_links',
|
30
|
+
:'id' => :'id',
|
31
|
+
:'ship_to' => :'shipTo',
|
32
|
+
:'metadata' => :'metadata'
|
33
|
+
}
|
34
|
+
end
|
35
|
+
|
36
|
+
# Attribute type mapping.
|
37
|
+
def self.swagger_types
|
38
|
+
{
|
39
|
+
:'_links' => :'Tmsv2customersEmbeddedDefaultShippingAddressLinks',
|
40
|
+
:'id' => :'String',
|
41
|
+
:'ship_to' => :'Tmsv2customersEmbeddedDefaultShippingAddressShipTo',
|
42
|
+
:'metadata' => :'Tmsv2customersEmbeddedDefaultShippingAddressMetadata'
|
43
|
+
}
|
44
|
+
end
|
45
|
+
|
46
|
+
# Initializes the object
|
47
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
48
|
+
def initialize(attributes = {})
|
49
|
+
return unless attributes.is_a?(Hash)
|
50
|
+
|
51
|
+
# convert string to symbol for hash key
|
52
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
53
|
+
|
54
|
+
if attributes.has_key?(:'_links')
|
55
|
+
self._links = attributes[:'_links']
|
56
|
+
end
|
57
|
+
|
58
|
+
if attributes.has_key?(:'id')
|
59
|
+
self.id = attributes[:'id']
|
60
|
+
end
|
61
|
+
|
62
|
+
if attributes.has_key?(:'shipTo')
|
63
|
+
self.ship_to = attributes[:'shipTo']
|
64
|
+
end
|
65
|
+
|
66
|
+
if attributes.has_key?(:'metadata')
|
67
|
+
self.metadata = attributes[:'metadata']
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
72
|
+
# @return Array for valid properties with the reasons
|
73
|
+
def list_invalid_properties
|
74
|
+
invalid_properties = Array.new
|
75
|
+
if !@id.nil? && @id.to_s.length > 32
|
76
|
+
invalid_properties.push('invalid value for "id", the character length must be smaller than or equal to 32.')
|
77
|
+
end
|
78
|
+
|
79
|
+
if !@id.nil? && @id.to_s.length < 1
|
80
|
+
invalid_properties.push('invalid value for "id", the character length must be great than or equal to 1.')
|
81
|
+
end
|
82
|
+
|
83
|
+
invalid_properties
|
84
|
+
end
|
85
|
+
|
86
|
+
# Check to see if the all the properties in the model are valid
|
87
|
+
# @return true if the model is valid
|
88
|
+
def valid?
|
89
|
+
return false if !@id.nil? && @id.to_s.length > 32
|
90
|
+
return false if !@id.nil? && @id.to_s.length < 1
|
91
|
+
true
|
92
|
+
end
|
93
|
+
|
94
|
+
# Custom attribute writer method with validation
|
95
|
+
# @param [Object] id Value to be assigned
|
96
|
+
def id=(id)
|
97
|
+
if !id.nil? && id.to_s.length > 32
|
98
|
+
fail ArgumentError, 'invalid value for "id", the character length must be smaller than or equal to 32.'
|
99
|
+
end
|
100
|
+
|
101
|
+
if !id.nil? && id.to_s.length < 1
|
102
|
+
fail ArgumentError, 'invalid value for "id", the character length must be great than or equal to 1.'
|
103
|
+
end
|
104
|
+
|
105
|
+
@id = id
|
106
|
+
end
|
107
|
+
|
108
|
+
# Checks equality by comparing each attribute.
|
109
|
+
# @param [Object] Object to be compared
|
110
|
+
def ==(o)
|
111
|
+
return true if self.equal?(o)
|
112
|
+
self.class == o.class &&
|
113
|
+
_links == o._links &&
|
114
|
+
id == o.id &&
|
115
|
+
ship_to == o.ship_to &&
|
116
|
+
metadata == o.metadata
|
117
|
+
end
|
118
|
+
|
119
|
+
# @see the `==` method
|
120
|
+
# @param [Object] Object to be compared
|
121
|
+
def eql?(o)
|
122
|
+
self == o
|
123
|
+
end
|
124
|
+
|
125
|
+
# Calculates hash code according to all attributes.
|
126
|
+
# @return [Fixnum] Hash code
|
127
|
+
def hash
|
128
|
+
[_links, id, ship_to, metadata].hash
|
129
|
+
end
|
130
|
+
|
131
|
+
# Builds the object from hash
|
132
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
133
|
+
# @return [Object] Returns the model itself
|
134
|
+
def build_from_hash(attributes)
|
135
|
+
return nil unless attributes.is_a?(Hash)
|
136
|
+
self.class.swagger_types.each_pair do |key, type|
|
137
|
+
if type =~ /\AArray<(.*)>/i
|
138
|
+
# check to ensure the input is an array given that the the attribute
|
139
|
+
# is documented as an array but the input is not
|
140
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
141
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
142
|
+
end
|
143
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
144
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
145
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
146
|
+
end
|
147
|
+
|
148
|
+
self
|
149
|
+
end
|
150
|
+
|
151
|
+
# Deserializes the data based on type
|
152
|
+
# @param string type Data type
|
153
|
+
# @param string value Value to be deserialized
|
154
|
+
# @return [Object] Deserialized data
|
155
|
+
def _deserialize(type, value)
|
156
|
+
case type.to_sym
|
157
|
+
when :DateTime
|
158
|
+
DateTime.parse(value)
|
159
|
+
when :Date
|
160
|
+
Date.parse(value)
|
161
|
+
when :String
|
162
|
+
value.to_s
|
163
|
+
when :Integer
|
164
|
+
value.to_i
|
165
|
+
when :Float
|
166
|
+
value.to_f
|
167
|
+
when :BOOLEAN
|
168
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
169
|
+
true
|
170
|
+
else
|
171
|
+
false
|
172
|
+
end
|
173
|
+
when :Object
|
174
|
+
# generic object (usually a Hash), return directly
|
175
|
+
value
|
176
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
177
|
+
inner_type = Regexp.last_match[:inner_type]
|
178
|
+
value.map { |v| _deserialize(inner_type, v) }
|
179
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
180
|
+
k_type = Regexp.last_match[:k_type]
|
181
|
+
v_type = Regexp.last_match[:v_type]
|
182
|
+
{}.tap do |hash|
|
183
|
+
value.each do |k, v|
|
184
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
185
|
+
end
|
186
|
+
end
|
187
|
+
else # model
|
188
|
+
temp_model = CyberSource.const_get(type).new
|
189
|
+
temp_model.build_from_hash(value)
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
193
|
+
# Returns the string representation of the object
|
194
|
+
# @return [String] String presentation of the object
|
195
|
+
def to_s
|
196
|
+
to_hash.to_s
|
197
|
+
end
|
198
|
+
|
199
|
+
# to_body is an alias to to_hash (backward compatibility)
|
200
|
+
# @return [Hash] Returns the object in the form of hash
|
201
|
+
def to_body
|
202
|
+
to_hash
|
203
|
+
end
|
204
|
+
|
205
|
+
# Returns the object in the form of hash
|
206
|
+
# @return [Hash] Returns the object in the form of hash
|
207
|
+
def to_hash
|
208
|
+
hash = {}
|
209
|
+
self.class.attribute_map.each_pair do |attr, param|
|
210
|
+
value = self.send(attr)
|
211
|
+
next if value.nil?
|
212
|
+
hash[param] = _to_hash(value)
|
213
|
+
end
|
214
|
+
hash
|
215
|
+
end
|
216
|
+
|
217
|
+
# Outputs non-array value in the form of hash
|
218
|
+
# For object, use to_hash. Otherwise, just return the value
|
219
|
+
# @param [Object] value Any valid value
|
220
|
+
# @return [Hash] Returns the value in the form of hash
|
221
|
+
def _to_hash(value)
|
222
|
+
if value.is_a?(Array)
|
223
|
+
value.compact.map { |v| _to_hash(v) }
|
224
|
+
elsif value.is_a?(Hash)
|
225
|
+
{}.tap do |hash|
|
226
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
227
|
+
end
|
228
|
+
elsif value.respond_to? :to_hash
|
229
|
+
value.to_hash
|
230
|
+
else
|
231
|
+
value
|
232
|
+
end
|
233
|
+
end
|
234
|
+
end
|
235
|
+
end
|
@@ -13,20 +13,24 @@ Swagger Codegen version: 2.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module CyberSource
|
16
|
-
class
|
16
|
+
class Tmsv2customersEmbeddedDefaultShippingAddressLinks
|
17
17
|
attr_accessor :_self
|
18
18
|
|
19
|
+
attr_accessor :customer
|
20
|
+
|
19
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
22
|
def self.attribute_map
|
21
23
|
{
|
22
|
-
:'_self' => :'self'
|
24
|
+
:'_self' => :'self',
|
25
|
+
:'customer' => :'customer'
|
23
26
|
}
|
24
27
|
end
|
25
28
|
|
26
29
|
# Attribute type mapping.
|
27
30
|
def self.swagger_types
|
28
31
|
{
|
29
|
-
:'_self' => :'
|
32
|
+
:'_self' => :'Tmsv2customersEmbeddedDefaultShippingAddressLinksSelf',
|
33
|
+
:'customer' => :'Tmsv2customersEmbeddedDefaultShippingAddressLinksCustomer'
|
30
34
|
}
|
31
35
|
end
|
32
36
|
|
@@ -41,6 +45,10 @@ module CyberSource
|
|
41
45
|
if attributes.has_key?(:'self')
|
42
46
|
self._self = attributes[:'self']
|
43
47
|
end
|
48
|
+
|
49
|
+
if attributes.has_key?(:'customer')
|
50
|
+
self.customer = attributes[:'customer']
|
51
|
+
end
|
44
52
|
end
|
45
53
|
|
46
54
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -61,7 +69,8 @@ module CyberSource
|
|
61
69
|
def ==(o)
|
62
70
|
return true if self.equal?(o)
|
63
71
|
self.class == o.class &&
|
64
|
-
_self == o._self
|
72
|
+
_self == o._self &&
|
73
|
+
customer == o.customer
|
65
74
|
end
|
66
75
|
|
67
76
|
# @see the `==` method
|
@@ -73,7 +82,7 @@ module CyberSource
|
|
73
82
|
# Calculates hash code according to all attributes.
|
74
83
|
# @return [Fixnum] Hash code
|
75
84
|
def hash
|
76
|
-
[_self].hash
|
85
|
+
[_self, customer].hash
|
77
86
|
end
|
78
87
|
|
79
88
|
# Builds the object from hash
|
@@ -13,8 +13,8 @@ Swagger Codegen version: 2.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module CyberSource
|
16
|
-
class
|
17
|
-
#
|
16
|
+
class Tmsv2customersEmbeddedDefaultShippingAddressLinksCustomer
|
17
|
+
# Link to the Customer
|
18
18
|
attr_accessor :href
|
19
19
|
|
20
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -13,8 +13,8 @@ Swagger Codegen version: 2.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module CyberSource
|
16
|
-
class
|
17
|
-
#
|
16
|
+
class Tmsv2customersEmbeddedDefaultShippingAddressLinksSelf
|
17
|
+
# Link to the Customers Shipping Address
|
18
18
|
attr_accessor :href
|
19
19
|
|
20
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -13,8 +13,8 @@ Swagger Codegen version: 2.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module CyberSource
|
16
|
-
class
|
17
|
-
# The creator of the token.
|
16
|
+
class Tmsv2customersEmbeddedDefaultShippingAddressMetadata
|
17
|
+
# The creator of the Shipping Address token.
|
18
18
|
attr_accessor :creator
|
19
19
|
|
20
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -13,76 +13,71 @@ Swagger Codegen version: 2.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module CyberSource
|
16
|
-
class
|
17
|
-
# First
|
18
|
-
attr_accessor :
|
16
|
+
class Tmsv2customersEmbeddedDefaultShippingAddressShipTo
|
17
|
+
# First name of the recipient.
|
18
|
+
attr_accessor :first_name
|
19
19
|
|
20
|
-
#
|
21
|
-
attr_accessor :
|
20
|
+
# Last name of the recipient.
|
21
|
+
attr_accessor :last_name
|
22
22
|
|
23
|
-
#
|
24
|
-
attr_accessor :
|
23
|
+
# Company associated with the shipping address.
|
24
|
+
attr_accessor :company
|
25
25
|
|
26
|
-
#
|
27
|
-
attr_accessor :
|
26
|
+
# First line of the shipping address.
|
27
|
+
attr_accessor :address1
|
28
28
|
|
29
|
-
#
|
30
|
-
attr_accessor :
|
29
|
+
# Second line of the shipping address.
|
30
|
+
attr_accessor :address2
|
31
31
|
|
32
|
-
# City of the shipping address.
|
32
|
+
# City of the shipping address.
|
33
33
|
attr_accessor :locality
|
34
34
|
|
35
|
-
#
|
36
|
-
attr_accessor :
|
37
|
-
|
38
|
-
# Last name of the recipient. **Processor-specific maximum length** - Litle: 25 - All other processors: 60
|
39
|
-
attr_accessor :last_name
|
40
|
-
|
41
|
-
# Phone number associated with the shipping address.
|
42
|
-
attr_accessor :phone_number
|
35
|
+
# State or province of the shipping address. Use 2 character the State, Province, and Territory Codes for the United States and Canada.
|
36
|
+
attr_accessor :administrative_area
|
43
37
|
|
44
38
|
# Postal code for the shipping address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] Example 12345-6789 When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] Example A1B 2C3 **American Express Direct**\\ Before sending the postal code to the processor, CyberSource removes all nonalphanumeric characters and, if the remaining value is longer than nine characters, truncates the value starting from the right side.
|
45
39
|
attr_accessor :postal_code
|
46
40
|
|
47
|
-
#
|
48
|
-
attr_accessor :
|
41
|
+
# Country of the shipping address. Use the two-character ISO Standard Country Codes.
|
42
|
+
attr_accessor :country
|
43
|
+
|
44
|
+
# Email associated with the shipping address.
|
45
|
+
attr_accessor :email
|
49
46
|
|
50
|
-
#
|
51
|
-
attr_accessor :
|
47
|
+
# Phone number associated with the shipping address.
|
48
|
+
attr_accessor :phone_number
|
52
49
|
|
53
50
|
# Attribute mapping from ruby-style variable name to JSON key.
|
54
51
|
def self.attribute_map
|
55
52
|
{
|
53
|
+
:'first_name' => :'firstName',
|
54
|
+
:'last_name' => :'lastName',
|
55
|
+
:'company' => :'company',
|
56
56
|
:'address1' => :'address1',
|
57
57
|
:'address2' => :'address2',
|
58
|
-
:'administrative_area' => :'administrativeArea',
|
59
|
-
:'country' => :'country',
|
60
|
-
:'destination_types' => :'destinationTypes',
|
61
58
|
:'locality' => :'locality',
|
62
|
-
:'
|
63
|
-
:'last_name' => :'lastName',
|
64
|
-
:'phone_number' => :'phoneNumber',
|
59
|
+
:'administrative_area' => :'administrativeArea',
|
65
60
|
:'postal_code' => :'postalCode',
|
66
|
-
:'
|
67
|
-
:'
|
61
|
+
:'country' => :'country',
|
62
|
+
:'email' => :'email',
|
63
|
+
:'phone_number' => :'phoneNumber'
|
68
64
|
}
|
69
65
|
end
|
70
66
|
|
71
67
|
# Attribute type mapping.
|
72
68
|
def self.swagger_types
|
73
69
|
{
|
70
|
+
:'first_name' => :'String',
|
71
|
+
:'last_name' => :'String',
|
72
|
+
:'company' => :'String',
|
74
73
|
:'address1' => :'String',
|
75
74
|
:'address2' => :'String',
|
76
|
-
:'administrative_area' => :'String',
|
77
|
-
:'country' => :'String',
|
78
|
-
:'destination_types' => :'String',
|
79
75
|
:'locality' => :'String',
|
80
|
-
:'
|
81
|
-
:'last_name' => :'String',
|
82
|
-
:'phone_number' => :'String',
|
76
|
+
:'administrative_area' => :'String',
|
83
77
|
:'postal_code' => :'String',
|
84
|
-
:'
|
85
|
-
:'
|
78
|
+
:'country' => :'String',
|
79
|
+
:'email' => :'String',
|
80
|
+
:'phone_number' => :'String'
|
86
81
|
}
|
87
82
|
end
|
88
83
|
|
@@ -94,52 +89,48 @@ module CyberSource
|
|
94
89
|
# convert string to symbol for hash key
|
95
90
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
96
91
|
|
97
|
-
if attributes.has_key?(:'
|
98
|
-
self.
|
92
|
+
if attributes.has_key?(:'firstName')
|
93
|
+
self.first_name = attributes[:'firstName']
|
99
94
|
end
|
100
95
|
|
101
|
-
if attributes.has_key?(:'
|
102
|
-
self.
|
96
|
+
if attributes.has_key?(:'lastName')
|
97
|
+
self.last_name = attributes[:'lastName']
|
103
98
|
end
|
104
99
|
|
105
|
-
if attributes.has_key?(:'
|
106
|
-
self.
|
100
|
+
if attributes.has_key?(:'company')
|
101
|
+
self.company = attributes[:'company']
|
107
102
|
end
|
108
103
|
|
109
|
-
if attributes.has_key?(:'
|
110
|
-
self.
|
104
|
+
if attributes.has_key?(:'address1')
|
105
|
+
self.address1 = attributes[:'address1']
|
111
106
|
end
|
112
107
|
|
113
|
-
if attributes.has_key?(:'
|
114
|
-
self.
|
108
|
+
if attributes.has_key?(:'address2')
|
109
|
+
self.address2 = attributes[:'address2']
|
115
110
|
end
|
116
111
|
|
117
112
|
if attributes.has_key?(:'locality')
|
118
113
|
self.locality = attributes[:'locality']
|
119
114
|
end
|
120
115
|
|
121
|
-
if attributes.has_key?(:'
|
122
|
-
self.
|
123
|
-
end
|
124
|
-
|
125
|
-
if attributes.has_key?(:'lastName')
|
126
|
-
self.last_name = attributes[:'lastName']
|
127
|
-
end
|
128
|
-
|
129
|
-
if attributes.has_key?(:'phoneNumber')
|
130
|
-
self.phone_number = attributes[:'phoneNumber']
|
116
|
+
if attributes.has_key?(:'administrativeArea')
|
117
|
+
self.administrative_area = attributes[:'administrativeArea']
|
131
118
|
end
|
132
119
|
|
133
120
|
if attributes.has_key?(:'postalCode')
|
134
121
|
self.postal_code = attributes[:'postalCode']
|
135
122
|
end
|
136
123
|
|
137
|
-
if attributes.has_key?(:'
|
138
|
-
self.
|
124
|
+
if attributes.has_key?(:'country')
|
125
|
+
self.country = attributes[:'country']
|
126
|
+
end
|
127
|
+
|
128
|
+
if attributes.has_key?(:'email')
|
129
|
+
self.email = attributes[:'email']
|
139
130
|
end
|
140
131
|
|
141
|
-
if attributes.has_key?(:'
|
142
|
-
self.
|
132
|
+
if attributes.has_key?(:'phoneNumber')
|
133
|
+
self.phone_number = attributes[:'phoneNumber']
|
143
134
|
end
|
144
135
|
end
|
145
136
|
|
@@ -147,48 +138,48 @@ module CyberSource
|
|
147
138
|
# @return Array for valid properties with the reasons
|
148
139
|
def list_invalid_properties
|
149
140
|
invalid_properties = Array.new
|
150
|
-
if !@
|
151
|
-
invalid_properties.push('invalid value for "
|
141
|
+
if !@first_name.nil? && @first_name.to_s.length > 60
|
142
|
+
invalid_properties.push('invalid value for "first_name", the character length must be smaller than or equal to 60.')
|
152
143
|
end
|
153
144
|
|
154
|
-
if !@
|
155
|
-
invalid_properties.push('invalid value for "
|
145
|
+
if !@last_name.nil? && @last_name.to_s.length > 60
|
146
|
+
invalid_properties.push('invalid value for "last_name", the character length must be smaller than or equal to 60.')
|
156
147
|
end
|
157
148
|
|
158
|
-
if !@
|
159
|
-
invalid_properties.push('invalid value for "
|
149
|
+
if !@company.nil? && @company.to_s.length > 60
|
150
|
+
invalid_properties.push('invalid value for "company", the character length must be smaller than or equal to 60.')
|
160
151
|
end
|
161
152
|
|
162
|
-
if !@
|
163
|
-
invalid_properties.push('invalid value for "
|
153
|
+
if !@address1.nil? && @address1.to_s.length > 60
|
154
|
+
invalid_properties.push('invalid value for "address1", the character length must be smaller than or equal to 60.')
|
164
155
|
end
|
165
156
|
|
166
|
-
if !@
|
167
|
-
invalid_properties.push('invalid value for "
|
157
|
+
if !@address2.nil? && @address2.to_s.length > 60
|
158
|
+
invalid_properties.push('invalid value for "address2", the character length must be smaller than or equal to 60.')
|
168
159
|
end
|
169
160
|
|
170
161
|
if !@locality.nil? && @locality.to_s.length > 50
|
171
162
|
invalid_properties.push('invalid value for "locality", the character length must be smaller than or equal to 50.')
|
172
163
|
end
|
173
164
|
|
174
|
-
if !@
|
175
|
-
invalid_properties.push('invalid value for "
|
165
|
+
if !@administrative_area.nil? && @administrative_area.to_s.length > 20
|
166
|
+
invalid_properties.push('invalid value for "administrative_area", the character length must be smaller than or equal to 20.')
|
176
167
|
end
|
177
168
|
|
178
|
-
if !@
|
179
|
-
invalid_properties.push('invalid value for "
|
169
|
+
if !@postal_code.nil? && @postal_code.to_s.length > 10
|
170
|
+
invalid_properties.push('invalid value for "postal_code", the character length must be smaller than or equal to 10.')
|
180
171
|
end
|
181
172
|
|
182
|
-
if !@
|
183
|
-
invalid_properties.push('invalid value for "
|
173
|
+
if !@country.nil? && @country.to_s.length > 2
|
174
|
+
invalid_properties.push('invalid value for "country", the character length must be smaller than or equal to 2.')
|
184
175
|
end
|
185
176
|
|
186
|
-
if !@
|
187
|
-
invalid_properties.push('invalid value for "
|
177
|
+
if !@email.nil? && @email.to_s.length > 320
|
178
|
+
invalid_properties.push('invalid value for "email", the character length must be smaller than or equal to 320.')
|
188
179
|
end
|
189
180
|
|
190
|
-
if !@
|
191
|
-
invalid_properties.push('invalid value for "
|
181
|
+
if !@phone_number.nil? && @phone_number.to_s.length > 15
|
182
|
+
invalid_properties.push('invalid value for "phone_number", the character length must be smaller than or equal to 15.')
|
192
183
|
end
|
193
184
|
|
194
185
|
invalid_properties
|
@@ -197,68 +188,68 @@ module CyberSource
|
|
197
188
|
# Check to see if the all the properties in the model are valid
|
198
189
|
# @return true if the model is valid
|
199
190
|
def valid?
|
191
|
+
return false if !@first_name.nil? && @first_name.to_s.length > 60
|
192
|
+
return false if !@last_name.nil? && @last_name.to_s.length > 60
|
193
|
+
return false if !@company.nil? && @company.to_s.length > 60
|
200
194
|
return false if !@address1.nil? && @address1.to_s.length > 60
|
201
195
|
return false if !@address2.nil? && @address2.to_s.length > 60
|
202
|
-
return false if !@administrative_area.nil? && @administrative_area.to_s.length > 2
|
203
|
-
return false if !@country.nil? && @country.to_s.length > 2
|
204
|
-
return false if !@destination_types.nil? && @destination_types.to_s.length > 25
|
205
196
|
return false if !@locality.nil? && @locality.to_s.length > 50
|
206
|
-
return false if !@
|
207
|
-
return false if !@last_name.nil? && @last_name.to_s.length > 60
|
208
|
-
return false if !@phone_number.nil? && @phone_number.to_s.length > 15
|
197
|
+
return false if !@administrative_area.nil? && @administrative_area.to_s.length > 20
|
209
198
|
return false if !@postal_code.nil? && @postal_code.to_s.length > 10
|
210
|
-
return false if !@
|
199
|
+
return false if !@country.nil? && @country.to_s.length > 2
|
200
|
+
return false if !@email.nil? && @email.to_s.length > 320
|
201
|
+
return false if !@phone_number.nil? && @phone_number.to_s.length > 15
|
211
202
|
true
|
212
203
|
end
|
213
204
|
|
214
205
|
# Custom attribute writer method with validation
|
215
|
-
# @param [Object]
|
216
|
-
def
|
217
|
-
if !
|
218
|
-
fail ArgumentError, 'invalid value for "
|
206
|
+
# @param [Object] first_name Value to be assigned
|
207
|
+
def first_name=(first_name)
|
208
|
+
if !first_name.nil? && first_name.to_s.length > 60
|
209
|
+
fail ArgumentError, 'invalid value for "first_name", the character length must be smaller than or equal to 60.'
|
219
210
|
end
|
220
211
|
|
221
|
-
@
|
212
|
+
@first_name = first_name
|
222
213
|
end
|
223
214
|
|
224
215
|
# Custom attribute writer method with validation
|
225
|
-
# @param [Object]
|
226
|
-
def
|
227
|
-
if !
|
228
|
-
fail ArgumentError, 'invalid value for "
|
216
|
+
# @param [Object] last_name Value to be assigned
|
217
|
+
def last_name=(last_name)
|
218
|
+
if !last_name.nil? && last_name.to_s.length > 60
|
219
|
+
fail ArgumentError, 'invalid value for "last_name", the character length must be smaller than or equal to 60.'
|
229
220
|
end
|
230
221
|
|
231
|
-
@
|
222
|
+
@last_name = last_name
|
232
223
|
end
|
233
224
|
|
234
225
|
# Custom attribute writer method with validation
|
235
|
-
# @param [Object]
|
236
|
-
def
|
237
|
-
if !
|
238
|
-
fail ArgumentError, 'invalid value for "
|
226
|
+
# @param [Object] company Value to be assigned
|
227
|
+
def company=(company)
|
228
|
+
if !company.nil? && company.to_s.length > 60
|
229
|
+
fail ArgumentError, 'invalid value for "company", the character length must be smaller than or equal to 60.'
|
239
230
|
end
|
240
231
|
|
241
|
-
@
|
232
|
+
@company = company
|
242
233
|
end
|
243
234
|
|
244
235
|
# Custom attribute writer method with validation
|
245
|
-
# @param [Object]
|
246
|
-
def
|
247
|
-
if !
|
248
|
-
fail ArgumentError, 'invalid value for "
|
236
|
+
# @param [Object] address1 Value to be assigned
|
237
|
+
def address1=(address1)
|
238
|
+
if !address1.nil? && address1.to_s.length > 60
|
239
|
+
fail ArgumentError, 'invalid value for "address1", the character length must be smaller than or equal to 60.'
|
249
240
|
end
|
250
241
|
|
251
|
-
@
|
242
|
+
@address1 = address1
|
252
243
|
end
|
253
244
|
|
254
245
|
# Custom attribute writer method with validation
|
255
|
-
# @param [Object]
|
256
|
-
def
|
257
|
-
if !
|
258
|
-
fail ArgumentError, 'invalid value for "
|
246
|
+
# @param [Object] address2 Value to be assigned
|
247
|
+
def address2=(address2)
|
248
|
+
if !address2.nil? && address2.to_s.length > 60
|
249
|
+
fail ArgumentError, 'invalid value for "address2", the character length must be smaller than or equal to 60.'
|
259
250
|
end
|
260
251
|
|
261
|
-
@
|
252
|
+
@address2 = address2
|
262
253
|
end
|
263
254
|
|
264
255
|
# Custom attribute writer method with validation
|
@@ -272,53 +263,53 @@ module CyberSource
|
|
272
263
|
end
|
273
264
|
|
274
265
|
# Custom attribute writer method with validation
|
275
|
-
# @param [Object]
|
276
|
-
def
|
277
|
-
if !
|
278
|
-
fail ArgumentError, 'invalid value for "
|
266
|
+
# @param [Object] administrative_area Value to be assigned
|
267
|
+
def administrative_area=(administrative_area)
|
268
|
+
if !administrative_area.nil? && administrative_area.to_s.length > 20
|
269
|
+
fail ArgumentError, 'invalid value for "administrative_area", the character length must be smaller than or equal to 20.'
|
279
270
|
end
|
280
271
|
|
281
|
-
@
|
272
|
+
@administrative_area = administrative_area
|
282
273
|
end
|
283
274
|
|
284
275
|
# Custom attribute writer method with validation
|
285
|
-
# @param [Object]
|
286
|
-
def
|
287
|
-
if !
|
288
|
-
fail ArgumentError, 'invalid value for "
|
276
|
+
# @param [Object] postal_code Value to be assigned
|
277
|
+
def postal_code=(postal_code)
|
278
|
+
if !postal_code.nil? && postal_code.to_s.length > 10
|
279
|
+
fail ArgumentError, 'invalid value for "postal_code", the character length must be smaller than or equal to 10.'
|
289
280
|
end
|
290
281
|
|
291
|
-
@
|
282
|
+
@postal_code = postal_code
|
292
283
|
end
|
293
284
|
|
294
285
|
# Custom attribute writer method with validation
|
295
|
-
# @param [Object]
|
296
|
-
def
|
297
|
-
if !
|
298
|
-
fail ArgumentError, 'invalid value for "
|
286
|
+
# @param [Object] country Value to be assigned
|
287
|
+
def country=(country)
|
288
|
+
if !country.nil? && country.to_s.length > 2
|
289
|
+
fail ArgumentError, 'invalid value for "country", the character length must be smaller than or equal to 2.'
|
299
290
|
end
|
300
291
|
|
301
|
-
@
|
292
|
+
@country = country
|
302
293
|
end
|
303
294
|
|
304
295
|
# Custom attribute writer method with validation
|
305
|
-
# @param [Object]
|
306
|
-
def
|
307
|
-
if !
|
308
|
-
fail ArgumentError, 'invalid value for "
|
296
|
+
# @param [Object] email Value to be assigned
|
297
|
+
def email=(email)
|
298
|
+
if !email.nil? && email.to_s.length > 320
|
299
|
+
fail ArgumentError, 'invalid value for "email", the character length must be smaller than or equal to 320.'
|
309
300
|
end
|
310
301
|
|
311
|
-
@
|
302
|
+
@email = email
|
312
303
|
end
|
313
304
|
|
314
305
|
# Custom attribute writer method with validation
|
315
|
-
# @param [Object]
|
316
|
-
def
|
317
|
-
if !
|
318
|
-
fail ArgumentError, 'invalid value for "
|
306
|
+
# @param [Object] phone_number Value to be assigned
|
307
|
+
def phone_number=(phone_number)
|
308
|
+
if !phone_number.nil? && phone_number.to_s.length > 15
|
309
|
+
fail ArgumentError, 'invalid value for "phone_number", the character length must be smaller than or equal to 15.'
|
319
310
|
end
|
320
311
|
|
321
|
-
@
|
312
|
+
@phone_number = phone_number
|
322
313
|
end
|
323
314
|
|
324
315
|
# Checks equality by comparing each attribute.
|
@@ -326,18 +317,17 @@ module CyberSource
|
|
326
317
|
def ==(o)
|
327
318
|
return true if self.equal?(o)
|
328
319
|
self.class == o.class &&
|
320
|
+
first_name == o.first_name &&
|
321
|
+
last_name == o.last_name &&
|
322
|
+
company == o.company &&
|
329
323
|
address1 == o.address1 &&
|
330
324
|
address2 == o.address2 &&
|
331
|
-
administrative_area == o.administrative_area &&
|
332
|
-
country == o.country &&
|
333
|
-
destination_types == o.destination_types &&
|
334
325
|
locality == o.locality &&
|
335
|
-
|
336
|
-
last_name == o.last_name &&
|
337
|
-
phone_number == o.phone_number &&
|
326
|
+
administrative_area == o.administrative_area &&
|
338
327
|
postal_code == o.postal_code &&
|
339
|
-
|
340
|
-
|
328
|
+
country == o.country &&
|
329
|
+
email == o.email &&
|
330
|
+
phone_number == o.phone_number
|
341
331
|
end
|
342
332
|
|
343
333
|
# @see the `==` method
|
@@ -349,7 +339,7 @@ module CyberSource
|
|
349
339
|
# Calculates hash code according to all attributes.
|
350
340
|
# @return [Fixnum] Hash code
|
351
341
|
def hash
|
352
|
-
[
|
342
|
+
[first_name, last_name, company, address1, address2, locality, administrative_area, postal_code, country, email, phone_number].hash
|
353
343
|
end
|
354
344
|
|
355
345
|
# Builds the object from hash
|