cybersource_rest_client 0.0.26 → 0.0.31
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/AuthenticationSDK/authentication/http/GetSignatureParameter.rb +5 -1
- data/lib/AuthenticationSDK/core/MerchantConfig.rb +11 -2
- data/lib/AuthenticationSDK/util/Constants.rb +3 -1
- data/lib/cybersource_rest_client.rb +11 -11
- data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +3 -3
- data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +92 -5
- data/lib/cybersource_rest_client/api_client.rb +3 -3
- data/lib/cybersource_rest_client/configuration.rb +2 -2
- data/lib/cybersource_rest_client/models/check_payer_auth_enrollment_request.rb +1 -1
- data/lib/cybersource_rest_client/models/create_adhoc_report_request.rb +0 -36
- data/lib/cybersource_rest_client/models/create_report_subscription_request.rb +0 -36
- data/lib/cybersource_rest_client/models/fraud_marking_action_request.rb +13 -4
- data/lib/cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response_invoice_settings_information.rb +0 -54
- data/lib/cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response_invoice_settings_information_header_style.rb +0 -18
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_customer_information.rb +0 -9
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_invoices.rb +0 -9
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_order_information_amount_details.rb +0 -18
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_get200_response.rb +0 -9
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_get200_response_transaction_details.rb +0 -9
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response.rb +0 -9
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response_invoice_information.rb +0 -9
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response_order_information_amount_details.rb +0 -36
- data/lib/cybersource_rest_client/models/invoicingv2invoice_settings_invoice_settings_information.rb +0 -54
- data/lib/cybersource_rest_client/models/invoicingv2invoices_customer_information.rb +0 -18
- data/lib/cybersource_rest_client/models/invoicingv2invoices_invoice_information.rb +0 -9
- data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_amount_details.rb +0 -27
- data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_amount_details_freight.rb +0 -9
- data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_amount_details_tax_details.rb +0 -18
- data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_line_items.rb +0 -27
- data/lib/cybersource_rest_client/models/invoicingv2invoicesid_invoice_information.rb +0 -9
- data/lib/cybersource_rest_client/models/kmsv2keyssym_client_reference_information.rb +1 -10
- data/lib/cybersource_rest_client/models/patch_customer_payment_instrument_request.rb +0 -18
- data/lib/cybersource_rest_client/models/patch_customer_request.rb +0 -18
- data/lib/cybersource_rest_client/models/patch_customer_shipping_address_request.rb +0 -18
- data/lib/cybersource_rest_client/models/patch_payment_instrument_request.rb +0 -18
- data/lib/cybersource_rest_client/models/payer_auth_setup_request.rb +1 -1
- data/lib/cybersource_rest_client/models/{payment_instrument_list_for_customer.rb → payment_instrument_list.rb} +3 -3
- data/lib/cybersource_rest_client/models/{payment_instrument_list_for_customer__embedded.rb → payment_instrument_list__embedded.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payment_instrument_list_for_customer__links.rb → payment_instrument_list__links.rb} +6 -6
- data/lib/cybersource_rest_client/models/{payment_instrument_list_for_customer__links_first.rb → payment_instrument_list__links_first.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payment_instrument_list_for_customer__links_last.rb → payment_instrument_list__links_last.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payment_instrument_list_for_customer__links_next.rb → payment_instrument_list__links_next.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payment_instrument_list_for_customer__links_prev.rb → payment_instrument_list__links_prev.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payment_instrument_list_for_customer__links_self.rb → payment_instrument_list__links_self.rb} +1 -1
- data/lib/cybersource_rest_client/models/post_customer_payment_instrument_request.rb +0 -18
- data/lib/cybersource_rest_client/models/post_customer_request.rb +0 -18
- data/lib/cybersource_rest_client/models/post_customer_shipping_address_request.rb +0 -18
- data/lib/cybersource_rest_client/models/{riskv1addressverifications_client_reference_information.rb → post_instrument_identifier_enrollment_request.rb} +105 -52
- data/lib/cybersource_rest_client/models/post_payment_instrument_request.rb +0 -18
- data/lib/cybersource_rest_client/models/predefined_subscription_request_bean.rb +0 -36
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get200_response_transaction_batches.rb +0 -18
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_id_get200_response.rb +0 -18
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response.rb +0 -18
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_credit_amount_details.rb +0 -18
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_processing_information_bank_transfer_options.rb +0 -9
- data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response.rb +0 -18
- data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_client_reference_information.rb +0 -9
- data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_error_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_payment_information_account_features.rb +0 -9
- data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_processor_information.rb +0 -36
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response.rb +0 -18
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information_amount_details.rb +0 -18
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_point_of_sale_information.rb +0 -9
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_processor_information.rb +0 -9
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +0 -18
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_client_reference_information.rb +0 -18
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information.rb +0 -189
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information_ivr.rb +0 -45
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +0 -198
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_issuer_information.rb +0 -36
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_amount_details.rb +0 -27
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information.rb +0 -45
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_account_features.rb +0 -153
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_account_features_balances.rb +0 -36
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_bank.rb +0 -9
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_bank_account.rb +0 -9
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_instrument_identifier.rb +0 -18
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +1 -55
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information.rb +0 -18
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information_emv.rb +0 -27
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information.rb +17 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information_bank_transfer_options.rb +0 -18
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +17 -145
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_ach_verification.rb +0 -18
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_avs.rb +0 -18
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_card_verification.rb +0 -18
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_consumer_authentication_response.rb +0 -18
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_customer.rb +0 -9
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_electronic_verification_results.rb +0 -108
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_merchant_advice.rb +0 -18
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_routing.rb +3 -30
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information.rb +0 -9
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_info_codes.rb +21 -9
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_ip_address.rb +0 -63
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_profile.rb +0 -27
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_rules.rb +0 -18
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_score.rb +0 -18
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_travel_actual_final_destination.rb +0 -36
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_travel_first_departure.rb +0 -36
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_travel_first_destination.rb +0 -36
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_travel_last_destination.rb +0 -36
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_velocity_morphing.rb +0 -18
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_token_information_customer.rb +0 -18
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_token_information_instrument_identifier.rb +0 -18
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_token_information_payment_instrument.rb +0 -18
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_token_information_shipping_address.rb +0 -18
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +0 -18
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +0 -36
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_refund_amount_details.rb +0 -18
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response.rb +0 -18
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_authorization_information.rb +0 -27
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_issuer_information.rb +0 -9
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_processor_information.rb +0 -54
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_reversal_amount_details.rb +0 -27
- data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response.rb +0 -9
- data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response_processor_information.rb +0 -9
- data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response_void_amount_details.rb +0 -9
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response.rb +0 -18
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information_merchant_descriptor.rb +0 -9
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information_amount_details.rb +0 -36
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information.rb +0 -45
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_recipient_information_card.rb +0 -18
- data/lib/cybersource_rest_client/models/ptsv2credits_installment_information.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +1 -109
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information_bank_transfer_options.rb +0 -63
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information_electronic_benefits_transfer.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information_japan_payment_options.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2payments_acquirer_information.rb +0 -36
- data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information.rb +0 -18
- data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb +0 -99
- data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information.rb +0 -45
- data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information.rb +1 -19
- data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information_partner.rb +0 -36
- data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +34 -371
- data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information_strong_authentication.rb +0 -54
- data/lib/cybersource_rest_client/models/ptsv2payments_device_information.rb +11 -100
- data/lib/cybersource_rest_client/models/ptsv2payments_device_information_raw_data.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2payments_health_care_information_amount_details.rb +1 -19
- data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +0 -90
- data/lib/cybersource_rest_client/models/ptsv2payments_issuer_information.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_defined_information.rb +0 -18
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +0 -54
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +0 -63
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_service_fee_descriptor.rb +0 -27
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_initiated_transaction.rb +0 -27
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information.rb +0 -18
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +0 -189
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_amex_additional_amounts.rb +0 -18
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_currency_conversion.rb +0 -27
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_surcharge.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_tax_details.rb +0 -45
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb +0 -162
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to_company.rb +0 -63
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +0 -72
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details_transaction_advice_addendum.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +0 -198
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_passenger.rb +0 -72
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_ship_to.rb +0 -126
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_shipping_details.rb +0 -18
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank_account.rb +0 -45
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +1 -118
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_customer.rb +0 -18
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_fluid_data.rb +0 -27
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_instrument_identifier.rb +0 -18
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_legacy_token.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_payment_instrument.rb +0 -18
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_shipping_address.rb +0 -18
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +1 -82
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +0 -144
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information_emv.rb +0 -18
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +1 -127
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +7 -43
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_bank_transfer_options.rb +0 -99
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_capture_options.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_electronic_benefits_transfer.rb +0 -18
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_japan_payment_options.rb +0 -63
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_loan_options.rb +0 -18
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_purchase_options.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2payments_promotion_information.rb +0 -18
- data/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb +0 -27
- data/lib/cybersource_rest_client/models/ptsv2payments_recurring_payment_information.rb +24 -22
- data/lib/cybersource_rest_client/models/ptsv2payments_risk_information.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2payments_risk_information_buyer_history_account_history.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2payments_risk_information_buyer_history_customer_account.rb +0 -27
- data/lib/cybersource_rest_client/models/ptsv2payments_risk_information_profile.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2payments_token_information.rb +14 -13
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_agency.rb +0 -18
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental.rb +0 -333
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental_rental_address.rb +0 -63
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental_return_address.rb +0 -45
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_auto_rental_tax_details.rb +0 -45
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_lodging.rb +0 -351
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_lodging_room.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb +0 -261
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_ancillary_information.rb +0 -36
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_ancillary_information_service.rb +0 -18
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_legs.rb +0 -144
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_ticket_issuer.rb +0 -63
- data/lib/cybersource_rest_client/models/ptsv2paymentsid_client_reference_information.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2paymentsid_client_reference_information_partner.rb +0 -27
- data/lib/cybersource_rest_client/models/ptsv2paymentsid_merchant_information.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2paymentsid_order_information_amount_details.rb +0 -18
- data/lib/cybersource_rest_client/models/ptsv2paymentsid_travel_information.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information.rb +0 -18
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb +0 -81
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_buyer_information.rb +0 -18
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_device_information.rb +0 -27
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +0 -207
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_merchant_information.rb +0 -27
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb +0 -162
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_bill_to.rb +0 -90
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_invoice_details.rb +0 -45
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_ship_to.rb +0 -27
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_shipping_details.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_payment_information_card.rb +0 -18
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information_emv.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information.rb +1 -64
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_authorization_options.rb +0 -27
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_merchant_information.rb +0 -27
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb +0 -144
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +1 -82
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb +1 -64
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information_partner.rb +0 -27
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_amount_details.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_point_of_sale_information_emv.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_processing_information.rb +1 -46
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information_amount_details.rb +0 -18
- data/lib/cybersource_rest_client/models/ptsv2payouts_client_reference_information.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information_merchant_descriptor.rb +0 -27
- data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_amount_details.rb +0 -18
- data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_amount_details_surcharge.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_bill_to.rb +0 -81
- data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +1 -37
- data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +0 -36
- data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information_payouts_options.rb +0 -36
- data/lib/cybersource_rest_client/models/ptsv2payouts_recipient_information.rb +0 -99
- data/lib/cybersource_rest_client/models/ptsv2payouts_sender_information.rb +0 -126
- data/lib/cybersource_rest_client/models/ptsv2payouts_sender_information_account.rb +0 -27
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_fee_and_funding_details.rb +0 -9
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_others.rb +0 -9
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlement_statuses.rb +0 -9
- data/lib/cybersource_rest_client/models/risk_v1_address_verifications_post201_response.rb +1 -10
- data/lib/cybersource_rest_client/models/risk_v1_address_verifications_post201_response_address1.rb +0 -18
- data/lib/cybersource_rest_client/models/risk_v1_address_verifications_post201_response_address_verification_information.rb +0 -45
- data/lib/cybersource_rest_client/models/risk_v1_address_verifications_post201_response_address_verification_information_bar_code.rb +0 -9
- data/lib/cybersource_rest_client/models/risk_v1_address_verifications_post201_response_address_verification_information_standard_address.rb +0 -90
- data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response.rb +1 -10
- data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response_consumer_authentication_information.rb +0 -90
- data/lib/cybersource_rest_client/models/risk_v1_authentication_setups_post201_response.rb +10 -10
- data/lib/cybersource_rest_client/models/risk_v1_authentication_setups_post201_response_consumer_authentication_information.rb +0 -18
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response.rb +1 -10
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response_error_information.rb +1 -1
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response.rb +1 -10
- data/lib/cybersource_rest_client/models/{riskv1authenticationsetups_client_reference_information.rb → risk_v1_decisions_post201_response_client_reference_information.rb} +30 -23
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_consumer_authentication_information.rb +0 -171
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_error_information.rb +1 -1
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_order_information_amount_details.rb +0 -9
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_payment_information.rb +0 -45
- data/lib/cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response.rb +1 -10
- data/lib/cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response_watch_list_matches.rb +0 -9
- data/lib/cybersource_rest_client/models/risk_v1_update_post201_response.rb +1 -10
- data/lib/cybersource_rest_client/models/riskv1addressverifications_buyer_information.rb +0 -9
- data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_bill_to.rb +0 -72
- data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_line_items.rb +0 -45
- data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_ship_to.rb +0 -72
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb +0 -50
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_order_information_line_items.rb +0 -18
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +1 -37
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +1 -28
- data/lib/cybersource_rest_client/models/riskv1authentications_buyer_information.rb +17 -1
- data/lib/cybersource_rest_client/models/riskv1authentications_device_information.rb +0 -81
- data/lib/cybersource_rest_client/models/riskv1authentications_order_information.rb +0 -18
- data/lib/cybersource_rest_client/models/riskv1authentications_order_information_amount_details.rb +0 -18
- data/lib/cybersource_rest_client/models/riskv1authentications_order_information_bill_to.rb +0 -90
- data/lib/cybersource_rest_client/models/riskv1authentications_order_information_line_items.rb +0 -54
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_card.rb +1 -37
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +1 -28
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_card.rb +1 -28
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_customer.rb +0 -9
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_fluid_data.rb +0 -27
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +1 -37
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_processing_information.rb +1 -19
- data/lib/cybersource_rest_client/models/riskv1decisions_buyer_information.rb +0 -36
- data/lib/cybersource_rest_client/models/riskv1decisions_client_reference_information.rb +18 -18
- data/lib/cybersource_rest_client/models/{vasv2tax_client_reference_information_partner.rb → riskv1decisions_client_reference_information_partner.rb} +1 -19
- data/lib/cybersource_rest_client/models/riskv1decisions_consumer_authentication_information.rb +1 -271
- data/lib/cybersource_rest_client/models/riskv1decisions_consumer_authentication_information_strong_authentication.rb +0 -9
- data/lib/cybersource_rest_client/models/riskv1decisions_device_information.rb +11 -100
- data/lib/cybersource_rest_client/models/riskv1decisions_merchant_defined_information.rb +0 -18
- data/lib/cybersource_rest_client/models/riskv1decisions_merchant_information.rb +0 -9
- data/lib/cybersource_rest_client/models/riskv1decisions_merchant_information_merchant_descriptor.rb +0 -9
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information.rb +0 -18
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_amount_details.rb +0 -18
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_bill_to.rb +0 -90
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_line_items.rb +0 -81
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_ship_to.rb +0 -99
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_shipping_details.rb +0 -9
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information.rb +0 -9
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_card.rb +1 -37
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +1 -28
- data/lib/cybersource_rest_client/models/riskv1decisions_processor_information_avs.rb +0 -9
- data/lib/cybersource_rest_client/models/riskv1decisions_processor_information_card_verification.rb +0 -9
- data/lib/cybersource_rest_client/models/riskv1decisions_risk_information.rb +0 -9
- data/lib/cybersource_rest_client/models/riskv1decisions_travel_information.rb +0 -36
- data/lib/cybersource_rest_client/models/riskv1decisions_travel_information_legs.rb +0 -27
- data/lib/cybersource_rest_client/models/riskv1decisions_travel_information_passengers.rb +0 -18
- data/lib/cybersource_rest_client/models/riskv1decisionsidmarking_risk_information_marking_details.rb +0 -18
- data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_device_information.rb +0 -18
- data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_export_compliance_information_weights.rb +0 -27
- data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_bill_to.rb +0 -99
- data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_bill_to_company.rb +0 -9
- data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_line_items.rb +0 -45
- data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_ship_to.rb +0 -27
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_device_information.rb +0 -18
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information_address.rb +0 -54
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information_bill_to.rb +0 -99
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information_line_items.rb +0 -9
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information_ship_to.rb +0 -54
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_payment_information_bank.rb +0 -36
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_payment_information_card.rb +1 -19
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_risk_information_marking_details.rb +0 -27
- data/lib/cybersource_rest_client/models/tms_v2_customers_response.rb +0 -18
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument.rb +0 -18
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_bank_account.rb +0 -9
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_bill_to.rb +0 -54
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_card.rb +0 -45
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_issuer.rb +0 -9
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_bank_account.rb +0 -9
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_bill_to.rb +0 -99
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_buyer_information.rb +0 -18
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_buyer_information_issued_by.rb +0 -9
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_buyer_information_personal_identification.rb +0 -9
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_card.rb +0 -45
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_card_tokenized_information.rb +0 -18
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_instrument_identifier.rb +0 -18
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_merchant_information_merchant_descriptor.rb +0 -9
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_processing_information_bank_transfer_options.rb +0 -9
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address.rb +0 -18
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address_ship_to.rb +0 -99
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_merchant_initiated_transaction.rb +0 -9
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_tokenized_card.rb +0 -18
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_tokenized_card_card.rb +0 -18
- data/lib/cybersource_rest_client/models/tmsv2customers_buyer_information.rb +0 -18
- data/lib/cybersource_rest_client/models/tmsv2customers_client_reference_information.rb +0 -9
- data/lib/cybersource_rest_client/models/tmsv2customers_merchant_defined_information.rb +0 -9
- data/lib/cybersource_rest_client/models/tmsv2customers_object_information.rb +0 -18
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response.rb +10 -28
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_buyer_information.rb +0 -18
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_client_reference_information.rb +0 -18
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_consumer_authentication_information.rb +0 -27
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_device_information.rb +0 -18
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_amount_details.rb +0 -54
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_bill_to.rb +0 -126
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_line_items.rb +0 -45
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_ship_to.rb +0 -90
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_shipping_details.rb +0 -9
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_account_features.rb +0 -27
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank_account.rb +0 -27
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +1 -73
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_point_of_sale_information.rb +0 -18
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information.rb +18 -20
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options.rb +0 -9
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_japan_payment_options.rb +0 -36
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +0 -36
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information_electronic_verification_results.rb +0 -90
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information_multi_processor_routing.rb +0 -18
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information_processor.rb +0 -9
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_risk_information_rules.rb +0 -18
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_sender_information.rb +0 -9
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response.rb +0 -9
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_buyer_information.rb +0 -9
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_client_reference_information.rb +0 -9
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_consumer_authentication_information.rb +0 -18
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_device_information.rb +0 -9
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_merchant_information.rb +0 -9
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information_bill_to.rb +0 -45
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information_ship_to.rb +0 -45
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card.rb +1 -10
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information.rb +0 -18
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information_partner.rb +0 -9
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processing_information.rb +1 -19
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_risk_information_providers_fingerprint.rb +0 -27
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_transaction_summaries.rb +0 -9
- data/lib/cybersource_rest_client/models/v1_file_details_get200_response_file_details.rb +1 -1
- data/lib/cybersource_rest_client/models/validate_export_compliance_request.rb +1 -1
- data/lib/cybersource_rest_client/models/validate_request.rb +1 -1
- data/lib/cybersource_rest_client/models/vas_v2_payments_post201_response.rb +0 -9
- data/lib/cybersource_rest_client/models/vas_v2_payments_post201_response_order_information.rb +0 -27
- data/lib/cybersource_rest_client/models/vas_v2_payments_post201_response_order_information_jurisdiction.rb +6 -72
- data/lib/cybersource_rest_client/models/vas_v2_payments_post201_response_order_information_line_items.rb +0 -27
- data/lib/cybersource_rest_client/models/vas_v2_payments_post201_response_order_information_tax_details.rb +0 -18
- data/lib/cybersource_rest_client/models/vas_v2_tax_void200_response.rb +0 -9
- data/lib/cybersource_rest_client/models/vas_v2_tax_void200_response_void_amount_details.rb +0 -9
- data/lib/cybersource_rest_client/models/vasv2tax_buyer_information.rb +0 -9
- data/lib/cybersource_rest_client/models/vasv2tax_client_reference_information.rb +1 -10
- data/lib/cybersource_rest_client/models/vasv2tax_merchant_information.rb +0 -9
- data/lib/cybersource_rest_client/models/vasv2tax_order_information_bill_to.rb +0 -54
- data/lib/cybersource_rest_client/models/vasv2tax_order_information_invoice_details.rb +0 -9
- data/lib/cybersource_rest_client/models/vasv2tax_order_information_line_items.rb +0 -99
- data/lib/cybersource_rest_client/models/vasv2tax_order_information_order_acceptance.rb +0 -36
- data/lib/cybersource_rest_client/models/vasv2tax_order_information_order_origin.rb +0 -36
- data/lib/cybersource_rest_client/models/vasv2tax_order_information_ship_to.rb +0 -63
- data/lib/cybersource_rest_client/models/vasv2tax_order_information_shipping_details.rb +0 -36
- data/lib/cybersource_rest_client/models/vasv2tax_tax_information.rb +0 -18
- data/lib/cybersource_rest_client/models/vasv2taxid_client_reference_information.rb +0 -9
- data/lib/cybersource_rest_client/models/vasv2taxid_client_reference_information_partner.rb +0 -18
- data/lib/cybersource_rest_client/models/verify_customer_address_request.rb +1 -1
- metadata +105 -86
@@ -164,14 +164,6 @@ module CyberSource
|
|
164
164
|
# @return Array for valid properties with the reasons
|
165
165
|
def list_invalid_properties
|
166
166
|
invalid_properties = Array.new
|
167
|
-
if !@total_amount.nil? && @total_amount.to_s.length > 13
|
168
|
-
invalid_properties.push('invalid value for "total_amount", the character length must be smaller than or equal to 13.')
|
169
|
-
end
|
170
|
-
|
171
|
-
if !@unit_price.nil? && @unit_price.to_s.length > 15
|
172
|
-
invalid_properties.push('invalid value for "unit_price", the character length must be smaller than or equal to 15.')
|
173
|
-
end
|
174
|
-
|
175
167
|
if !@quantity.nil? && @quantity > 999999999
|
176
168
|
invalid_properties.push('invalid value for "quantity", must be smaller than or equal to 999999999.')
|
177
169
|
end
|
@@ -180,71 +172,26 @@ module CyberSource
|
|
180
172
|
invalid_properties.push('invalid value for "quantity", must be greater than or equal to 1.')
|
181
173
|
end
|
182
174
|
|
183
|
-
if !@product_sku.nil? && @product_sku.to_s.length > 255
|
184
|
-
invalid_properties.push('invalid value for "product_sku", the character length must be smaller than or equal to 255.')
|
185
|
-
end
|
186
|
-
|
187
|
-
if !@product_risk.nil? && @product_risk.to_s.length > 6
|
188
|
-
invalid_properties.push('invalid value for "product_risk", the character length must be smaller than or equal to 6.')
|
189
|
-
end
|
190
|
-
|
191
|
-
if !@product_name.nil? && @product_name.to_s.length > 255
|
192
|
-
invalid_properties.push('invalid value for "product_name", the character length must be smaller than or equal to 255.')
|
193
|
-
end
|
194
|
-
|
195
|
-
if !@product_code.nil? && @product_code.to_s.length > 255
|
196
|
-
invalid_properties.push('invalid value for "product_code", the character length must be smaller than or equal to 255.')
|
197
|
-
end
|
198
|
-
|
199
|
-
if !@distributor_product_sku.nil? && @distributor_product_sku.to_s.length > 15
|
200
|
-
invalid_properties.push('invalid value for "distributor_product_sku", the character length must be smaller than or equal to 15.')
|
201
|
-
end
|
202
|
-
|
203
|
-
if !@shipping_destination_types.nil? && @shipping_destination_types.to_s.length > 50
|
204
|
-
invalid_properties.push('invalid value for "shipping_destination_types", the character length must be smaller than or equal to 50.')
|
205
|
-
end
|
206
|
-
|
207
|
-
if !@tax_amount.nil? && @tax_amount.to_s.length > 15
|
208
|
-
invalid_properties.push('invalid value for "tax_amount", the character length must be smaller than or equal to 15.')
|
209
|
-
end
|
210
|
-
|
211
175
|
invalid_properties
|
212
176
|
end
|
213
177
|
|
214
178
|
# Check to see if the all the properties in the model are valid
|
215
179
|
# @return true if the model is valid
|
216
180
|
def valid?
|
217
|
-
return false if !@total_amount.nil? && @total_amount.to_s.length > 13
|
218
|
-
return false if !@unit_price.nil? && @unit_price.to_s.length > 15
|
219
181
|
return false if !@quantity.nil? && @quantity > 999999999
|
220
182
|
return false if !@quantity.nil? && @quantity < 1
|
221
|
-
return false if !@product_sku.nil? && @product_sku.to_s.length > 255
|
222
|
-
return false if !@product_risk.nil? && @product_risk.to_s.length > 6
|
223
|
-
return false if !@product_name.nil? && @product_name.to_s.length > 255
|
224
|
-
return false if !@product_code.nil? && @product_code.to_s.length > 255
|
225
|
-
return false if !@distributor_product_sku.nil? && @distributor_product_sku.to_s.length > 15
|
226
|
-
return false if !@shipping_destination_types.nil? && @shipping_destination_types.to_s.length > 50
|
227
|
-
return false if !@tax_amount.nil? && @tax_amount.to_s.length > 15
|
228
183
|
true
|
229
184
|
end
|
230
185
|
|
231
186
|
# Custom attribute writer method with validation
|
232
187
|
# @param [Object] total_amount Value to be assigned
|
233
188
|
def total_amount=(total_amount)
|
234
|
-
if !total_amount.nil? && total_amount.to_s.length > 13
|
235
|
-
fail ArgumentError, 'invalid value for "total_amount", the character length must be smaller than or equal to 13.'
|
236
|
-
end
|
237
|
-
|
238
189
|
@total_amount = total_amount
|
239
190
|
end
|
240
191
|
|
241
192
|
# Custom attribute writer method with validation
|
242
193
|
# @param [Object] unit_price Value to be assigned
|
243
194
|
def unit_price=(unit_price)
|
244
|
-
if !unit_price.nil? && unit_price.to_s.length > 15
|
245
|
-
fail ArgumentError, 'invalid value for "unit_price", the character length must be smaller than or equal to 15.'
|
246
|
-
end
|
247
|
-
|
248
195
|
@unit_price = unit_price
|
249
196
|
end
|
250
197
|
|
@@ -265,70 +212,42 @@ module CyberSource
|
|
265
212
|
# Custom attribute writer method with validation
|
266
213
|
# @param [Object] product_sku Value to be assigned
|
267
214
|
def product_sku=(product_sku)
|
268
|
-
if !product_sku.nil? && product_sku.to_s.length > 255
|
269
|
-
fail ArgumentError, 'invalid value for "product_sku", the character length must be smaller than or equal to 255.'
|
270
|
-
end
|
271
|
-
|
272
215
|
@product_sku = product_sku
|
273
216
|
end
|
274
217
|
|
275
218
|
# Custom attribute writer method with validation
|
276
219
|
# @param [Object] product_risk Value to be assigned
|
277
220
|
def product_risk=(product_risk)
|
278
|
-
if !product_risk.nil? && product_risk.to_s.length > 6
|
279
|
-
fail ArgumentError, 'invalid value for "product_risk", the character length must be smaller than or equal to 6.'
|
280
|
-
end
|
281
|
-
|
282
221
|
@product_risk = product_risk
|
283
222
|
end
|
284
223
|
|
285
224
|
# Custom attribute writer method with validation
|
286
225
|
# @param [Object] product_name Value to be assigned
|
287
226
|
def product_name=(product_name)
|
288
|
-
if !product_name.nil? && product_name.to_s.length > 255
|
289
|
-
fail ArgumentError, 'invalid value for "product_name", the character length must be smaller than or equal to 255.'
|
290
|
-
end
|
291
|
-
|
292
227
|
@product_name = product_name
|
293
228
|
end
|
294
229
|
|
295
230
|
# Custom attribute writer method with validation
|
296
231
|
# @param [Object] product_code Value to be assigned
|
297
232
|
def product_code=(product_code)
|
298
|
-
if !product_code.nil? && product_code.to_s.length > 255
|
299
|
-
fail ArgumentError, 'invalid value for "product_code", the character length must be smaller than or equal to 255.'
|
300
|
-
end
|
301
|
-
|
302
233
|
@product_code = product_code
|
303
234
|
end
|
304
235
|
|
305
236
|
# Custom attribute writer method with validation
|
306
237
|
# @param [Object] distributor_product_sku Value to be assigned
|
307
238
|
def distributor_product_sku=(distributor_product_sku)
|
308
|
-
if !distributor_product_sku.nil? && distributor_product_sku.to_s.length > 15
|
309
|
-
fail ArgumentError, 'invalid value for "distributor_product_sku", the character length must be smaller than or equal to 15.'
|
310
|
-
end
|
311
|
-
|
312
239
|
@distributor_product_sku = distributor_product_sku
|
313
240
|
end
|
314
241
|
|
315
242
|
# Custom attribute writer method with validation
|
316
243
|
# @param [Object] shipping_destination_types Value to be assigned
|
317
244
|
def shipping_destination_types=(shipping_destination_types)
|
318
|
-
if !shipping_destination_types.nil? && shipping_destination_types.to_s.length > 50
|
319
|
-
fail ArgumentError, 'invalid value for "shipping_destination_types", the character length must be smaller than or equal to 50.'
|
320
|
-
end
|
321
|
-
|
322
245
|
@shipping_destination_types = shipping_destination_types
|
323
246
|
end
|
324
247
|
|
325
248
|
# Custom attribute writer method with validation
|
326
249
|
# @param [Object] tax_amount Value to be assigned
|
327
250
|
def tax_amount=(tax_amount)
|
328
|
-
if !tax_amount.nil? && tax_amount.to_s.length > 15
|
329
|
-
fail ArgumentError, 'invalid value for "tax_amount", the character length must be smaller than or equal to 15.'
|
330
|
-
end
|
331
|
-
|
332
251
|
@tax_amount = tax_amount
|
333
252
|
end
|
334
253
|
|
@@ -147,177 +147,78 @@ module CyberSource
|
|
147
147
|
# @return Array for valid properties with the reasons
|
148
148
|
def list_invalid_properties
|
149
149
|
invalid_properties = Array.new
|
150
|
-
if !@address1.nil? && @address1.to_s.length > 60
|
151
|
-
invalid_properties.push('invalid value for "address1", the character length must be smaller than or equal to 60.')
|
152
|
-
end
|
153
|
-
|
154
|
-
if !@address2.nil? && @address2.to_s.length > 60
|
155
|
-
invalid_properties.push('invalid value for "address2", the character length must be smaller than or equal to 60.')
|
156
|
-
end
|
157
|
-
|
158
|
-
if !@administrative_area.nil? && @administrative_area.to_s.length > 2
|
159
|
-
invalid_properties.push('invalid value for "administrative_area", the character length must be smaller than or equal to 2.')
|
160
|
-
end
|
161
|
-
|
162
|
-
if !@country.nil? && @country.to_s.length > 2
|
163
|
-
invalid_properties.push('invalid value for "country", the character length must be smaller than or equal to 2.')
|
164
|
-
end
|
165
|
-
|
166
|
-
if !@destination_types.nil? && @destination_types.to_s.length > 25
|
167
|
-
invalid_properties.push('invalid value for "destination_types", the character length must be smaller than or equal to 25.')
|
168
|
-
end
|
169
|
-
|
170
|
-
if !@locality.nil? && @locality.to_s.length > 50
|
171
|
-
invalid_properties.push('invalid value for "locality", the character length must be smaller than or equal to 50.')
|
172
|
-
end
|
173
|
-
|
174
|
-
if !@first_name.nil? && @first_name.to_s.length > 60
|
175
|
-
invalid_properties.push('invalid value for "first_name", the character length must be smaller than or equal to 60.')
|
176
|
-
end
|
177
|
-
|
178
|
-
if !@last_name.nil? && @last_name.to_s.length > 60
|
179
|
-
invalid_properties.push('invalid value for "last_name", the character length must be smaller than or equal to 60.')
|
180
|
-
end
|
181
|
-
|
182
|
-
if !@phone_number.nil? && @phone_number.to_s.length > 15
|
183
|
-
invalid_properties.push('invalid value for "phone_number", the character length must be smaller than or equal to 15.')
|
184
|
-
end
|
185
|
-
|
186
|
-
if !@postal_code.nil? && @postal_code.to_s.length > 10
|
187
|
-
invalid_properties.push('invalid value for "postal_code", the character length must be smaller than or equal to 10.')
|
188
|
-
end
|
189
|
-
|
190
|
-
if !@method.nil? && @method.to_s.length > 10
|
191
|
-
invalid_properties.push('invalid value for "method", the character length must be smaller than or equal to 10.')
|
192
|
-
end
|
193
|
-
|
194
150
|
invalid_properties
|
195
151
|
end
|
196
152
|
|
197
153
|
# Check to see if the all the properties in the model are valid
|
198
154
|
# @return true if the model is valid
|
199
155
|
def valid?
|
200
|
-
return false if !@address1.nil? && @address1.to_s.length > 60
|
201
|
-
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
|
-
return false if !@locality.nil? && @locality.to_s.length > 50
|
206
|
-
return false if !@first_name.nil? && @first_name.to_s.length > 60
|
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
|
209
|
-
return false if !@postal_code.nil? && @postal_code.to_s.length > 10
|
210
|
-
return false if !@method.nil? && @method.to_s.length > 10
|
211
156
|
true
|
212
157
|
end
|
213
158
|
|
214
159
|
# Custom attribute writer method with validation
|
215
160
|
# @param [Object] address1 Value to be assigned
|
216
161
|
def address1=(address1)
|
217
|
-
if !address1.nil? && address1.to_s.length > 60
|
218
|
-
fail ArgumentError, 'invalid value for "address1", the character length must be smaller than or equal to 60.'
|
219
|
-
end
|
220
|
-
|
221
162
|
@address1 = address1
|
222
163
|
end
|
223
164
|
|
224
165
|
# Custom attribute writer method with validation
|
225
166
|
# @param [Object] address2 Value to be assigned
|
226
167
|
def address2=(address2)
|
227
|
-
if !address2.nil? && address2.to_s.length > 60
|
228
|
-
fail ArgumentError, 'invalid value for "address2", the character length must be smaller than or equal to 60.'
|
229
|
-
end
|
230
|
-
|
231
168
|
@address2 = address2
|
232
169
|
end
|
233
170
|
|
234
171
|
# Custom attribute writer method with validation
|
235
172
|
# @param [Object] administrative_area Value to be assigned
|
236
173
|
def administrative_area=(administrative_area)
|
237
|
-
if !administrative_area.nil? && administrative_area.to_s.length > 2
|
238
|
-
fail ArgumentError, 'invalid value for "administrative_area", the character length must be smaller than or equal to 2.'
|
239
|
-
end
|
240
|
-
|
241
174
|
@administrative_area = administrative_area
|
242
175
|
end
|
243
176
|
|
244
177
|
# Custom attribute writer method with validation
|
245
178
|
# @param [Object] country Value to be assigned
|
246
179
|
def country=(country)
|
247
|
-
if !country.nil? && country.to_s.length > 2
|
248
|
-
fail ArgumentError, 'invalid value for "country", the character length must be smaller than or equal to 2.'
|
249
|
-
end
|
250
|
-
|
251
180
|
@country = country
|
252
181
|
end
|
253
182
|
|
254
183
|
# Custom attribute writer method with validation
|
255
184
|
# @param [Object] destination_types Value to be assigned
|
256
185
|
def destination_types=(destination_types)
|
257
|
-
if !destination_types.nil? && destination_types.to_s.length > 25
|
258
|
-
fail ArgumentError, 'invalid value for "destination_types", the character length must be smaller than or equal to 25.'
|
259
|
-
end
|
260
|
-
|
261
186
|
@destination_types = destination_types
|
262
187
|
end
|
263
188
|
|
264
189
|
# Custom attribute writer method with validation
|
265
190
|
# @param [Object] locality Value to be assigned
|
266
191
|
def locality=(locality)
|
267
|
-
if !locality.nil? && locality.to_s.length > 50
|
268
|
-
fail ArgumentError, 'invalid value for "locality", the character length must be smaller than or equal to 50.'
|
269
|
-
end
|
270
|
-
|
271
192
|
@locality = locality
|
272
193
|
end
|
273
194
|
|
274
195
|
# Custom attribute writer method with validation
|
275
196
|
# @param [Object] first_name Value to be assigned
|
276
197
|
def first_name=(first_name)
|
277
|
-
if !first_name.nil? && first_name.to_s.length > 60
|
278
|
-
fail ArgumentError, 'invalid value for "first_name", the character length must be smaller than or equal to 60.'
|
279
|
-
end
|
280
|
-
|
281
198
|
@first_name = first_name
|
282
199
|
end
|
283
200
|
|
284
201
|
# Custom attribute writer method with validation
|
285
202
|
# @param [Object] last_name Value to be assigned
|
286
203
|
def last_name=(last_name)
|
287
|
-
if !last_name.nil? && last_name.to_s.length > 60
|
288
|
-
fail ArgumentError, 'invalid value for "last_name", the character length must be smaller than or equal to 60.'
|
289
|
-
end
|
290
|
-
|
291
204
|
@last_name = last_name
|
292
205
|
end
|
293
206
|
|
294
207
|
# Custom attribute writer method with validation
|
295
208
|
# @param [Object] phone_number Value to be assigned
|
296
209
|
def phone_number=(phone_number)
|
297
|
-
if !phone_number.nil? && phone_number.to_s.length > 15
|
298
|
-
fail ArgumentError, 'invalid value for "phone_number", the character length must be smaller than or equal to 15.'
|
299
|
-
end
|
300
|
-
|
301
210
|
@phone_number = phone_number
|
302
211
|
end
|
303
212
|
|
304
213
|
# Custom attribute writer method with validation
|
305
214
|
# @param [Object] postal_code Value to be assigned
|
306
215
|
def postal_code=(postal_code)
|
307
|
-
if !postal_code.nil? && postal_code.to_s.length > 10
|
308
|
-
fail ArgumentError, 'invalid value for "postal_code", the character length must be smaller than or equal to 10.'
|
309
|
-
end
|
310
|
-
|
311
216
|
@postal_code = postal_code
|
312
217
|
end
|
313
218
|
|
314
219
|
# Custom attribute writer method with validation
|
315
220
|
# @param [Object] method Value to be assigned
|
316
221
|
def method=(method)
|
317
|
-
if !method.nil? && method.to_s.length > 10
|
318
|
-
fail ArgumentError, 'invalid value for "method", the character length must be smaller than or equal to 10.'
|
319
|
-
end
|
320
|
-
|
321
222
|
@method = method
|
322
223
|
end
|
323
224
|
|
data/lib/cybersource_rest_client/models/riskv1decisions_order_information_shipping_details.rb
CHANGED
@@ -58,27 +58,18 @@ module CyberSource
|
|
58
58
|
# @return Array for valid properties with the reasons
|
59
59
|
def list_invalid_properties
|
60
60
|
invalid_properties = Array.new
|
61
|
-
if !@shipping_method.nil? && @shipping_method.to_s.length > 10
|
62
|
-
invalid_properties.push('invalid value for "shipping_method", the character length must be smaller than or equal to 10.')
|
63
|
-
end
|
64
|
-
|
65
61
|
invalid_properties
|
66
62
|
end
|
67
63
|
|
68
64
|
# Check to see if the all the properties in the model are valid
|
69
65
|
# @return true if the model is valid
|
70
66
|
def valid?
|
71
|
-
return false if !@shipping_method.nil? && @shipping_method.to_s.length > 10
|
72
67
|
true
|
73
68
|
end
|
74
69
|
|
75
70
|
# Custom attribute writer method with validation
|
76
71
|
# @param [Object] shipping_method Value to be assigned
|
77
72
|
def shipping_method=(shipping_method)
|
78
|
-
if !shipping_method.nil? && shipping_method.to_s.length > 10
|
79
|
-
fail ArgumentError, 'invalid value for "shipping_method", the character length must be smaller than or equal to 10.'
|
80
|
-
end
|
81
|
-
|
82
73
|
@shipping_method = shipping_method
|
83
74
|
end
|
84
75
|
|
@@ -81,27 +81,18 @@ module CyberSource
|
|
81
81
|
# @return Array for valid properties with the reasons
|
82
82
|
def list_invalid_properties
|
83
83
|
invalid_properties = Array.new
|
84
|
-
if !@method.nil? && @method.to_s.length > 10
|
85
|
-
invalid_properties.push('invalid value for "method", the character length must be smaller than or equal to 10.')
|
86
|
-
end
|
87
|
-
|
88
84
|
invalid_properties
|
89
85
|
end
|
90
86
|
|
91
87
|
# Check to see if the all the properties in the model are valid
|
92
88
|
# @return true if the model is valid
|
93
89
|
def valid?
|
94
|
-
return false if !@method.nil? && @method.to_s.length > 10
|
95
90
|
true
|
96
91
|
end
|
97
92
|
|
98
93
|
# Custom attribute writer method with validation
|
99
94
|
# @param [Object] method Value to be assigned
|
100
95
|
def method=(method)
|
101
|
-
if !method.nil? && method.to_s.length > 10
|
102
|
-
fail ArgumentError, 'invalid value for "method", the character length must be smaller than or equal to 10.'
|
103
|
-
end
|
104
|
-
|
105
96
|
@method = method
|
106
97
|
end
|
107
98
|
|
@@ -18,7 +18,7 @@ module CyberSource
|
|
18
18
|
# The customer’s payment card number, also known as the Primary Account Number (PAN). You can also use this field for encoded account numbers. #### FDMS Nashville Required. String (19) #### GPX Required if `pointOfSaleInformation.entryMode=keyed`. However, this field is optional if your account is configured for relaxed requirements for address data and expiration date. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. #### All other processors Required if `pointOfSaleInformation.entryMode=keyed`. However, this field is optional if your account is configured for relaxed requirements for address data and expiration date. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting.
|
19
19
|
attr_accessor :number
|
20
20
|
|
21
|
-
# Three-digit value that indicates the card type. **IMPORTANT** It is strongly recommended that you include the card type field in request messages even if it is optional for your processor and card type. Omitting the card type can cause the transaction to be processed with the wrong card type. Possible values: - `001`: Visa. For card-present transactions on all processors except SIX, the Visa Electron card type is processed the same way that the Visa debit card is processed. Use card type value `001` for Visa Electron. - `002`: Mastercard, Eurocard[^1], which is a European regional brand of Mastercard. - `003`: American Express - `004`: Discover - `005`: Diners Club - `006`: Carte Blanche[^1] - `007`: JCB[^1] - `014`: Enroute[^1] - `021`: JAL[^1] - `024`: Maestro (UK Domestic)[^1] - `031`: Delta[^1]: Use this value only for Ingenico ePayments. For other processors, use `001` for all Visa card types. - `033`: Visa Electron[^1]. Use this value only for Ingenico ePayments and SIX. For other processors, use `001` for all Visa card types. - `034`: Dankort[^1] - `036`: Cartes Bancaires[^1] - `037`: Carta Si[^1] - `039`: Encoded account number[^1] - `040`: UATP[^1] - `042`: Maestro (International)[^1] - `050`: Hipercard[^2,3] - `051`: Aura - `054`: Elo[^3] - `062`: China UnionPay [^1]: For this card type, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in your request for an authorization or a stand-alone credit. [^2]: For this card type on Cielo 3.0, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. This card type is not supported on Cielo 1.5. [^3]: For this card type on Getnet and Rede, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. #### Used by **Authorization** Required for Carte Blanche and JCB. Optional for all other card types. #### Card Present reply This field is included in the reply message when the client software that is installed on the POS terminal uses the token management service (TMS) to retrieve tokenized payment details. You must contact customer support to have your account enabled to receive these fields in the credit reply message. Returned by the Credit service. This reply field is only supported by the following processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX #### GPX This field only supports transactions from the following card types: - Visa - Mastercard - AMEX - Discover - Diners - JCB - Union Pay International
|
21
|
+
# Three-digit value that indicates the card type. **IMPORTANT** It is strongly recommended that you include the card type field in request messages even if it is optional for your processor and card type. Omitting the card type can cause the transaction to be processed with the wrong card type. Possible values: - `001`: Visa. For card-present transactions on all processors except SIX, the Visa Electron card type is processed the same way that the Visa debit card is processed. Use card type value `001` for Visa Electron. - `002`: Mastercard, Eurocard[^1], which is a European regional brand of Mastercard. - `003`: American Express - `004`: Discover - `005`: Diners Club - `006`: Carte Blanche[^1] - `007`: JCB[^1] - `014`: Enroute[^1] - `021`: JAL[^1] - `024`: Maestro (UK Domestic)[^1] - `031`: Delta[^1]: Use this value only for Ingenico ePayments. For other processors, use `001` for all Visa card types. - `033`: Visa Electron[^1]. Use this value only for Ingenico ePayments and SIX. For other processors, use `001` for all Visa card types. - `034`: Dankort[^1] - `036`: Cartes Bancaires[^1,4] - `037`: Carta Si[^1] - `039`: Encoded account number[^1] - `040`: UATP[^1] - `042`: Maestro (International)[^1] - `050`: Hipercard[^2,3] - `051`: Aura - `054`: Elo[^3] - `062`: China UnionPay [^1]: For this card type, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in your request for an authorization or a stand-alone credit. [^2]: For this card type on Cielo 3.0, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. This card type is not supported on Cielo 1.5. [^3]: For this card type on Getnet and Rede, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. [^4]: For this card type, you must include the `paymentInformation.card.type` in your request for any payer authentication services. #### Used by **Authorization** Required for Carte Blanche and JCB. Optional for all other card types. #### Card Present reply This field is included in the reply message when the client software that is installed on the POS terminal uses the token management service (TMS) to retrieve tokenized payment details. You must contact customer support to have your account enabled to receive these fields in the credit reply message. Returned by the Credit service. This reply field is only supported by the following processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX #### GPX This field only supports transactions from the following card types: - Visa - Mastercard - AMEX - Discover - Diners - JCB - Union Pay International
|
22
22
|
attr_accessor :type
|
23
23
|
|
24
24
|
# description: The BIN is the first six digits of the card's Primary Account Number (PAN).
|
@@ -85,72 +85,36 @@ module CyberSource
|
|
85
85
|
# @return Array for valid properties with the reasons
|
86
86
|
def list_invalid_properties
|
87
87
|
invalid_properties = Array.new
|
88
|
-
if !@number.nil? && @number.to_s.length > 20
|
89
|
-
invalid_properties.push('invalid value for "number", the character length must be smaller than or equal to 20.')
|
90
|
-
end
|
91
|
-
|
92
|
-
if !@bin.nil? && @bin.to_s.length > 6
|
93
|
-
invalid_properties.push('invalid value for "bin", the character length must be smaller than or equal to 6.')
|
94
|
-
end
|
95
|
-
|
96
|
-
if !@expiration_month.nil? && @expiration_month.to_s.length > 2
|
97
|
-
invalid_properties.push('invalid value for "expiration_month", the character length must be smaller than or equal to 2.')
|
98
|
-
end
|
99
|
-
|
100
|
-
if !@expiration_year.nil? && @expiration_year.to_s.length > 4
|
101
|
-
invalid_properties.push('invalid value for "expiration_year", the character length must be smaller than or equal to 4.')
|
102
|
-
end
|
103
|
-
|
104
88
|
invalid_properties
|
105
89
|
end
|
106
90
|
|
107
91
|
# Check to see if the all the properties in the model are valid
|
108
92
|
# @return true if the model is valid
|
109
93
|
def valid?
|
110
|
-
return false if !@number.nil? && @number.to_s.length > 20
|
111
|
-
return false if !@bin.nil? && @bin.to_s.length > 6
|
112
|
-
return false if !@expiration_month.nil? && @expiration_month.to_s.length > 2
|
113
|
-
return false if !@expiration_year.nil? && @expiration_year.to_s.length > 4
|
114
94
|
true
|
115
95
|
end
|
116
96
|
|
117
97
|
# Custom attribute writer method with validation
|
118
98
|
# @param [Object] number Value to be assigned
|
119
99
|
def number=(number)
|
120
|
-
if !number.nil? && number.to_s.length > 20
|
121
|
-
fail ArgumentError, 'invalid value for "number", the character length must be smaller than or equal to 20.'
|
122
|
-
end
|
123
|
-
|
124
100
|
@number = number
|
125
101
|
end
|
126
102
|
|
127
103
|
# Custom attribute writer method with validation
|
128
104
|
# @param [Object] bin Value to be assigned
|
129
105
|
def bin=(bin)
|
130
|
-
if !bin.nil? && bin.to_s.length > 6
|
131
|
-
fail ArgumentError, 'invalid value for "bin", the character length must be smaller than or equal to 6.'
|
132
|
-
end
|
133
|
-
|
134
106
|
@bin = bin
|
135
107
|
end
|
136
108
|
|
137
109
|
# Custom attribute writer method with validation
|
138
110
|
# @param [Object] expiration_month Value to be assigned
|
139
111
|
def expiration_month=(expiration_month)
|
140
|
-
if !expiration_month.nil? && expiration_month.to_s.length > 2
|
141
|
-
fail ArgumentError, 'invalid value for "expiration_month", the character length must be smaller than or equal to 2.'
|
142
|
-
end
|
143
|
-
|
144
112
|
@expiration_month = expiration_month
|
145
113
|
end
|
146
114
|
|
147
115
|
# Custom attribute writer method with validation
|
148
116
|
# @param [Object] expiration_year Value to be assigned
|
149
117
|
def expiration_year=(expiration_year)
|
150
|
-
if !expiration_year.nil? && expiration_year.to_s.length > 4
|
151
|
-
fail ArgumentError, 'invalid value for "expiration_year", the character length must be smaller than or equal to 4.'
|
152
|
-
end
|
153
|
-
|
154
118
|
@expiration_year = expiration_year
|
155
119
|
end
|
156
120
|
|