cybersource_rest_client 0.0.83 → 0.0.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/AuthenticationSDK/authentication/jwt/JwtToken.rb +46 -27
- data/lib/AuthenticationSDK/core/MerchantConfig.rb +82 -48
- data/lib/AuthenticationSDK/util/Cache.rb +7 -4
- data/lib/AuthenticationSDK/util/Constants.rb +6 -0
- data/lib/AuthenticationSDK/util/MLEUtility.rb +9 -0
- data/lib/cybersource_rest_client/api/batches_api.rb +1 -1
- data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +14 -22
- data/lib/cybersource_rest_client/api/credentials_api.rb +104 -0
- data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +3 -3
- data/lib/cybersource_rest_client/api/enrollment_api.rb +2 -2
- data/lib/cybersource_rest_client/api/instructions_api.rb +10 -10
- data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +3 -3
- data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +20 -28
- data/lib/cybersource_rest_client/api/network_tokens_api.rb +654 -0
- data/lib/cybersource_rest_client/api/plans_api.rb +1 -1
- data/lib/cybersource_rest_client/api/subscriptions_api.rb +183 -1
- data/lib/cybersource_rest_client/api/subscriptions_follow_ons_api.rb +1 -1
- data/lib/cybersource_rest_client/api_client.rb +4 -0
- data/lib/cybersource_rest_client/models/account_validations_request.rb +15 -5
- data/lib/cybersource_rest_client/models/acpv1instructions_decline_threshold.rb +1 -1
- data/lib/cybersource_rest_client/models/acpv1instructions_mandates.rb +1 -1
- data/lib/cybersource_rest_client/models/acpv1instructions_recurring_payment_information.rb +1 -1
- data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idconfirmations_processor_information.rb +1 -1
- data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idconfirmations_processor_information_payment_instrument.rb +1 -1
- data/lib/cybersource_rest_client/models/acpv1instructionsinstruction_idcredentials_order_information_amount_detail.rb +1 -1
- data/lib/cybersource_rest_client/models/acpv1mppcredentials_challenge.rb +369 -0
- data/lib/cybersource_rest_client/models/acpv1mppcredentials_challenge_encryption_jwk.rb +336 -0
- data/lib/cybersource_rest_client/models/acpv1tokens_assurance_data.rb +7 -7
- data/lib/cybersource_rest_client/models/acpv1tokens_authenticated_identities.rb +1 -1
- data/lib/cybersource_rest_client/models/acpv1tokens_authentication_context.rb +1 -1
- data/lib/cybersource_rest_client/models/acpv1tokens_bill_to.rb +1 -1
- data/lib/cybersource_rest_client/models/acpv1tokens_buyer_information.rb +1 -1
- data/lib/cybersource_rest_client/models/acpv1tokens_consumer_identity.rb +1 -1
- data/lib/cybersource_rest_client/models/acpv1tokens_device_information.rb +1 -1
- data/lib/cybersource_rest_client/models/acpv1tokens_enrollment_reference_data.rb +1 -1
- data/lib/cybersource_rest_client/models/acpv1tokens_payment_information.rb +1 -1
- data/lib/cybersource_rest_client/models/auth_reversal_request.rb +11 -1
- data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information.rb +32 -6
- data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information_bank.rb +1 -1
- data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information_bank_account.rb +1 -1
- data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information_customer.rb +196 -0
- data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information_instrument_identifier.rb +196 -0
- data/lib/cybersource_rest_client/models/bavsv1accountvalidations_payment_information_payment_instrument.rb +196 -0
- data/lib/cybersource_rest_client/models/bavsv1accountvalidations_token_information.rb +208 -0
- data/lib/cybersource_rest_client/models/card_processing_config_common_processors.rb +105 -1
- data/lib/cybersource_rest_client/models/commerce_solutions_products.rb +15 -5
- data/lib/cybersource_rest_client/models/create_credit_request.rb +15 -5
- data/lib/cybersource_rest_client/models/get_all_subscriptions_response_order_information_amount_details_surcharge.rb +22 -5
- data/lib/cybersource_rest_client/models/get_subscriptions_payments_response.rb +247 -0
- data/lib/cybersource_rest_client/models/get_subscriptions_payments_response_1.rb +224 -0
- data/lib/cybersource_rest_client/models/{pbl_payment_links_post201_response__links.rb → get_subscriptions_payments_response_1__links.rb} +1 -1
- data/lib/cybersource_rest_client/models/get_subscriptions_payments_response__links.rb +209 -0
- data/lib/cybersource_rest_client/models/get_subscriptions_payments_response_cycles_completed_count.rb +191 -0
- data/lib/cybersource_rest_client/models/get_subscriptions_payments_response_subscription_payment.rb +356 -0
- data/lib/cybersource_rest_client/models/inline_response_201_1_tokenized_card.rb +26 -5
- data/lib/cybersource_rest_client/models/inline_response_201_4_setups_commerce_solutions.rb +15 -5
- data/lib/cybersource_rest_client/models/inline_response_201_4_setups_payments.rb +25 -5
- data/lib/cybersource_rest_client/models/inline_response_201_4_setups_risk.rb +15 -5
- data/lib/cybersource_rest_client/models/inline_response_201_4_setups_value_added_services.rb +25 -5
- data/lib/cybersource_rest_client/models/inline_response_400_10.rb +30 -75
- data/lib/cybersource_rest_client/models/{inline_response_400_8_details.rb → inline_response_400_10_details.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_400_11.rb +235 -0
- data/lib/cybersource_rest_client/models/{inline_response_400_7_details.rb → inline_response_400_11_details.rb} +3 -3
- data/lib/cybersource_rest_client/models/inline_response_400_12.rb +281 -0
- data/lib/cybersource_rest_client/models/inline_response_400_6.rb +37 -60
- data/lib/cybersource_rest_client/models/inline_response_400_7.rb +6 -6
- data/lib/cybersource_rest_client/models/inline_response_400_8.rb +58 -36
- data/lib/cybersource_rest_client/models/{inline_response_400_6_fields.rb → inline_response_400_8_fields.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_400_9.rb +16 -16
- data/lib/cybersource_rest_client/models/inline_response_400_9_details.rb +2 -2
- data/lib/cybersource_rest_client/models/inline_response_404_3.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_422_1.rb +1 -1
- data/lib/cybersource_rest_client/models/iplv2paymentlinks_order_information_line_items.rb +73 -5
- data/lib/cybersource_rest_client/models/mit_reversal_request.rb +11 -1
- data/lib/cybersource_rest_client/models/mpp_credentials_request.rb +221 -0
- data/lib/cybersource_rest_client/models/mpp_credentials_response200.rb +338 -0
- data/lib/cybersource_rest_client/models/patch_customer_payment_instrument_request.rb +1 -1
- data/lib/cybersource_rest_client/models/patch_customer_request.rb +1 -1
- data/lib/cybersource_rest_client/models/patch_payment_instrument_request.rb +1 -1
- data/lib/cybersource_rest_client/models/payment_instrument_list_1__embedded.rb +1 -1
- data/lib/cybersource_rest_client/models/payment_instrument_list__embedded.rb +1 -1
- data/lib/cybersource_rest_client/models/{payment_instrument_list_1__embedded__embedded.rb → payment_instrument_list__embedded__embedded.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payment_instrument_list_1__embedded_payment_instruments.rb → payment_instrument_list__embedded_payment_instruments.rb} +2 -2
- data/lib/cybersource_rest_client/models/payments_products.rb +25 -5
- data/lib/cybersource_rest_client/models/payments_products_currency_conversion_configuration_information_configurations_processors.rb +14 -2
- data/lib/cybersource_rest_client/models/payments_products_microform.rb +199 -0
- data/lib/cybersource_rest_client/models/payments_products_microform_configuration_information.rb +199 -0
- data/lib/cybersource_rest_client/models/payments_products_microform_configuration_information_configurations.rb +189 -0
- data/lib/cybersource_rest_client/models/payments_products_microform_configuration_information_configurations_features.rb +189 -0
- data/lib/cybersource_rest_client/models/payments_products_microform_configuration_information_configurations_features_gateway_agnostic.rb +189 -0
- data/lib/cybersource_rest_client/models/payments_products_microform_subscription_information.rb +227 -0
- data/lib/cybersource_rest_client/models/pbl_payment_links_get200_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pbl_payment_links_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/post_customer_payment_instrument_request.rb +1 -1
- data/lib/cybersource_rest_client/models/post_customer_request.rb +1 -1
- data/lib/cybersource_rest_client/models/post_payment_instrument_request.rb +1 -1
- data/lib/cybersource_rest_client/models/post_tokenized_card_request.rb +15 -5
- data/lib/cybersource_rest_client/models/pts_v2_create_billing_agreement_post201_response_agreement_information.rb +80 -1
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response.rb +41 -1
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_merchant_information.rb +196 -0
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_payment_account_information.rb +189 -0
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_payment_information.rb +15 -5
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_payment_information_account_features.rb +196 -0
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_token_information.rb +189 -0
- data/lib/cybersource_rest_client/models/pts_v2_modify_billing_agreement_post201_response_agreement_information.rb +35 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_point_of_sale_information.rb +22 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_processor_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_order_post201_response_order_information_shipping_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information.rb +106 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information_strong_authentication.rb +22 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information.rb +15 -5
- data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_payment_information_tokenized_card.rb → pts_v2_payments_post201_response_payment_account_information_tokenized_card.rb} +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information.rb +18 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +23 -6
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_token_information.rb +15 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_token_information_third_party_token.rb +213 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_error_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_order_information_amount_details.rb +18 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +19 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_processor_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response_processor_information.rb +7 -1
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information.rb +45 -5
- data/lib/cybersource_rest_client/models/{pull_funds201_response_processor_information_avs.rb → pts_v2_payouts_post201_response_processor_information_avs.rb} +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information_customer.rb +196 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information_electronic_verification_results.rb +281 -0
- data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_buyer_information.rb +196 -0
- data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_order_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_processing_information.rb +18 -5
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information.rb +19 -6
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_agreement_information.rb +84 -5
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_order_information.rb +12 -2
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_order_information_amount_details.rb +230 -0
- data/lib/cybersource_rest_client/models/{ptsv2intents_order_information_invoice_details.rb → ptsv2billingagreements_order_information_invoice_details.rb} +1 -1
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_bank.rb +15 -5
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_bank_account_alias.rb +207 -0
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_processing_information.rb +18 -1
- data/lib/cybersource_rest_client/models/ptsv2billingagreementsid_agreement_information.rb +56 -5
- data/lib/cybersource_rest_client/models/ptsv2billingagreementsid_processing_information.rb +18 -1
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +35 -5
- data/lib/cybersource_rest_client/models/ptsv2credits_token_information.rb +228 -0
- data/lib/cybersource_rest_client/models/ptsv2intents_order_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2intentsid_order_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb +15 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +16 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information.rb +28 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_digital_currency.rb +231 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_shipping_details.rb +23 -6
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +32 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank.rb +15 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank_account_alias.rb +207 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_third_party_token.rb +196 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +18 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +72 -6
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_program_indicators.rb +202 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_processor_information.rb +56 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb +16 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_sender_information.rb +16 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_token_information.rb +32 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_token_information_token_authentication_information.rb +193 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_token_information_token_authentication_information_authenticated_identities.rb +252 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb +15 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_shipping_details.rb +100 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information.rb +22 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information.rb +18 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processor_information.rb +39 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information.rb +15 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_shipping_details.rb +196 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +32 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_device_information.rb +196 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_payment_information.rb +22 -5
- data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +18 -5
- data/lib/cybersource_rest_client/models/pull_funds201_response_processor_information.rb +36 -6
- data/lib/cybersource_rest_client/models/pull_funds_request.rb +11 -1
- data/lib/cybersource_rest_client/models/push_funds201_response_processor_information.rb +45 -5
- data/lib/cybersource_rest_client/models/risk_products.rb +15 -5
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_ship_to.rb +39 -5
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_shipping_details.rb +1 -1
- data/lib/cybersource_rest_client/models/tms_card_art.rb +23 -1
- data/lib/cybersource_rest_client/models/tms_embedded_instrument_identifier_bill_to.rb +22 -5
- data/lib/cybersource_rest_client/models/tms_tokenized_card_delete_request.rb +189 -0
- data/lib/cybersource_rest_client/models/tmsv1paymentinstruments__embedded.rb +190 -0
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card.rb +22 -1
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_card.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata.rb +16 -5
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_issuer.rb +41 -8
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_issuer_bank_applications.rb +201 -0
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_issuer_capabilities.rb +257 -0
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_verification_results.rb +202 -0
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded.rb +200 -0
- data/lib/cybersource_rest_client/models/{tmsv3tokenstoken_idpaymentcredentials_order_information_bill_to.rb → tmsv2tokenizedcards_bill_to.rb} +1 -1
- data/lib/cybersource_rest_client/models/tmsv2tokenizedcardstokenized_card_iddelete_reason.rb +208 -0
- data/lib/cybersource_rest_client/models/tmsv3tokenstoken_idpaymentcredentials_order_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_shipping_details.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_sender_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ucv1sessions_data.rb +44 -14
- data/lib/cybersource_rest_client/models/ucv1sessions_data_aggregator_information.rb +325 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_aggregator_information_sub_merchant.rb +366 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_consumer_authentication_information.rb +22 -5
- data/lib/cybersource_rest_client/models/ucv1sessions_data_installment_information.rb +196 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_merchant_information.rb +22 -5
- data/lib/cybersource_rest_client/models/ucv1sessions_data_merchant_information_merchant_descriptor.rb +18 -1
- data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information.rb +16 -6
- data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_amount_details.rb +86 -12
- data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_invoice_details.rb +242 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_invoice_details_transaction_advice_addendum.rb +196 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_line_items.rb +702 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_shipping_details.rb +213 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_processing_information.rb +38 -1
- data/lib/cybersource_rest_client/models/ucv1sessions_data_processing_information_bank_transfer_options.rb +196 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_processing_information_recurring_options.rb +192 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_recipient_information.rb +107 -53
- data/lib/cybersource_rest_client/models/ucv1sessions_data_sender_information.rb +376 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_sender_information_account.rb +213 -0
- data/lib/cybersource_rest_client/models/update_payments.rb +192 -0
- data/lib/cybersource_rest_client/models/value_added_services_products.rb +25 -5
- data/lib/cybersource_rest_client.rb +71 -12
- metadata +78 -19
- data/lib/cybersource_rest_client/api/token_api.rb +0 -306
- data/lib/cybersource_rest_client/api/tokenized_card_api.rb +0 -371
|
@@ -0,0 +1,207 @@
|
|
|
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.4.38
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require 'date'
|
|
13
|
+
|
|
14
|
+
module CyberSource
|
|
15
|
+
class Ptsv2billingagreementsPaymentInformationBankAccountAlias
|
|
16
|
+
# The value of the alias, such as a phone number, email address, account number, business number, or organization ID.
|
|
17
|
+
attr_accessor :id
|
|
18
|
+
|
|
19
|
+
# Indicates the kind of alias provided (phone, email, account number, business number, or organization ID). Possible values: - phone - email - accountNumber - businessNumber - accountID
|
|
20
|
+
attr_accessor :type
|
|
21
|
+
|
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
|
+
def self.attribute_map
|
|
24
|
+
{
|
|
25
|
+
:'id' => :'id',
|
|
26
|
+
:'type' => :'type'
|
|
27
|
+
}
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Attribute mapping from JSON key to ruby-style variable name.
|
|
31
|
+
def self.json_map
|
|
32
|
+
{
|
|
33
|
+
:'id' => :'id',
|
|
34
|
+
:'type' => :'type'
|
|
35
|
+
}
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Attribute type mapping.
|
|
39
|
+
def self.swagger_types
|
|
40
|
+
{
|
|
41
|
+
:'id' => :'String',
|
|
42
|
+
:'type' => :'String'
|
|
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?(:'id')
|
|
55
|
+
self.id = attributes[:'id']
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
if attributes.has_key?(:'type')
|
|
59
|
+
self.type = attributes[:'type']
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
64
|
+
# @return Array for valid properties with the reasons
|
|
65
|
+
def list_invalid_properties
|
|
66
|
+
invalid_properties = Array.new
|
|
67
|
+
invalid_properties
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Check to see if the all the properties in the model are valid
|
|
71
|
+
# @return true if the model is valid
|
|
72
|
+
def valid?
|
|
73
|
+
true
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Custom attribute writer method with validation
|
|
77
|
+
# @param [Object] id Value to be assigned
|
|
78
|
+
def id=(id)
|
|
79
|
+
@id = id
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# Checks equality by comparing each attribute.
|
|
83
|
+
# @param [Object] Object to be compared
|
|
84
|
+
def ==(o)
|
|
85
|
+
return true if self.equal?(o)
|
|
86
|
+
self.class == o.class &&
|
|
87
|
+
id == o.id &&
|
|
88
|
+
type == o.type
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# @see the `==` method
|
|
92
|
+
# @param [Object] Object to be compared
|
|
93
|
+
def eql?(o)
|
|
94
|
+
self == o
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Calculates hash code according to all attributes.
|
|
98
|
+
# @return [Fixnum] Hash code
|
|
99
|
+
def hash
|
|
100
|
+
[id, type].hash
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Builds the object from hash
|
|
104
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
105
|
+
# @return [Object] Returns the model itself
|
|
106
|
+
def build_from_hash(attributes)
|
|
107
|
+
return nil unless attributes.is_a?(Hash)
|
|
108
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
109
|
+
if type =~ /\AArray<(.*)>/i
|
|
110
|
+
# check to ensure the input is an array given that the the attribute
|
|
111
|
+
# is documented as an array but the input is not
|
|
112
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
113
|
+
self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
114
|
+
end
|
|
115
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
116
|
+
self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
117
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
self
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# Deserializes the data based on type
|
|
124
|
+
# @param string type Data type
|
|
125
|
+
# @param string value Value to be deserialized
|
|
126
|
+
# @return [Object] Deserialized data
|
|
127
|
+
def _deserialize(type, value)
|
|
128
|
+
case type.to_sym
|
|
129
|
+
when :DateTime
|
|
130
|
+
DateTime.parse(value)
|
|
131
|
+
when :Date
|
|
132
|
+
Date.parse(value)
|
|
133
|
+
when :String
|
|
134
|
+
value.to_s
|
|
135
|
+
when :Integer
|
|
136
|
+
value.to_i
|
|
137
|
+
when :Float
|
|
138
|
+
value.to_f
|
|
139
|
+
when :BOOLEAN
|
|
140
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
141
|
+
true
|
|
142
|
+
else
|
|
143
|
+
false
|
|
144
|
+
end
|
|
145
|
+
when :Object
|
|
146
|
+
# generic object (usually a Hash), return directly
|
|
147
|
+
value
|
|
148
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
149
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
150
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
151
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
152
|
+
k_type = Regexp.last_match[:k_type]
|
|
153
|
+
v_type = Regexp.last_match[:v_type]
|
|
154
|
+
{}.tap do |hash|
|
|
155
|
+
value.each do |k, v|
|
|
156
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
157
|
+
end
|
|
158
|
+
end
|
|
159
|
+
else # model
|
|
160
|
+
temp_model = CyberSource.const_get(type).new
|
|
161
|
+
temp_model.build_from_hash(value)
|
|
162
|
+
end
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# Returns the string representation of the object
|
|
166
|
+
# @return [String] String presentation of the object
|
|
167
|
+
def to_s
|
|
168
|
+
to_hash.to_s
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
172
|
+
# @return [Hash] Returns the object in the form of hash
|
|
173
|
+
def to_body
|
|
174
|
+
to_hash
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
# Returns the object in the form of hash
|
|
178
|
+
# @return [Hash] Returns the object in the form of hash
|
|
179
|
+
def to_hash
|
|
180
|
+
hash = {}
|
|
181
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
182
|
+
value = self.send(attr)
|
|
183
|
+
next if value.nil?
|
|
184
|
+
hash[param] = _to_hash(value)
|
|
185
|
+
end
|
|
186
|
+
hash
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
# Outputs non-array value in the form of hash
|
|
190
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
191
|
+
# @param [Object] value Any valid value
|
|
192
|
+
# @return [Hash] Returns the value in the form of hash
|
|
193
|
+
def _to_hash(value)
|
|
194
|
+
if value.is_a?(Array)
|
|
195
|
+
value.compact.map { |v| _to_hash(v) }
|
|
196
|
+
elsif value.is_a?(Hash)
|
|
197
|
+
{}.tap do |hash|
|
|
198
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
199
|
+
end
|
|
200
|
+
elsif value.respond_to? :to_hash
|
|
201
|
+
value.to_hash
|
|
202
|
+
else
|
|
203
|
+
value
|
|
204
|
+
end
|
|
205
|
+
end
|
|
206
|
+
end
|
|
207
|
+
end
|
|
@@ -16,6 +16,9 @@ module CyberSource
|
|
|
16
16
|
# Type of transaction. Used to determine fees based on channel. Possible values: - aesk: American Express SafeKey authentication was successful. - aesk_attempted: American Express SafeKey authentication was attempted but did not succeed. • install: Installment payment. - install_internet: Non-U.S. e-commerce (Internet) installment payment. This value is supported only on Visa Platform Connect. - internet (default for authorizations): E-commerce order placed using a web site. - js: JCB J/Secure authentication was successful. - js_attempted: JCB J/Secure authentication was attempted but did not succeed. - moto: Mail order or telephone order. - moto_cc: Mail order or telephone order from a call center. This value is supported only on the Asia, Middle East, and Africa Gateway. - pb: ProtectBuy authentication was successful. - pb_attempted: ProtectBuy authentication was attempted but did not succeed. - recurring: Recurring payment that is a U.S. transaction or non-U.S. mail order / telephone order (MOTO) transaction. - recurring_internet: Recurring payment that is a non-U.S. e-commerce (Internet) transaction. - retail: Card-present transaction. - spa: For Mastercard Identity Check: Authentication was successful or was attempted but did not succeed. The e-commerce indicator for all Mastercard Identity Check transactions, including authentication attempts, must be set to spa. - spa_attempted: Authentication for a co-badged Mastercard and Cartes Bancaires card was attempted but did not succeed. - spa_failure: – For Mastercard Identity Check: Authentication failed. This value is supported only on Elavon, HSBC, and Streamline. - vbv: – For Visa Secure: Authentication was successful. - vbv_attempted: – For Visa Secure: Authentication was attempted but did not succeed. - vbv_failure: – For Visa Secure: Authentication failed. This value is supported only on HSBC and Streamline.
|
|
17
17
|
attr_accessor :commerce_indicator
|
|
18
18
|
|
|
19
|
+
# Period after which an authorization request to the consumer expires due to inactivity. Value in seconds (e.g., 86400 for one day).
|
|
20
|
+
attr_accessor :payment_completion_timeout
|
|
21
|
+
|
|
19
22
|
# - Use `CONSUMER_AUTHENTICATION` to use Payer Authentication along with Decision Manager. For any other value, only Decision Manager will run. - Use `WATCHLIST_SCREENING` when you want to call Watchlist Screening service. - Use `UPDATE_AGREEMENT` - Use `BILLING_AGREEMENT_CREATE` when Alternative Payment create mandate service is requested - Use `CANCEL_AGREEMENT` - Use `AP_IMPORT_AGREEMENT` when Alternative Payment import mandate service is requested.
|
|
20
23
|
attr_accessor :action_list
|
|
21
24
|
|
|
@@ -23,6 +26,7 @@ module CyberSource
|
|
|
23
26
|
def self.attribute_map
|
|
24
27
|
{
|
|
25
28
|
:'commerce_indicator' => :'commerceIndicator',
|
|
29
|
+
:'payment_completion_timeout' => :'paymentCompletionTimeout',
|
|
26
30
|
:'action_list' => :'actionList'
|
|
27
31
|
}
|
|
28
32
|
end
|
|
@@ -31,6 +35,7 @@ module CyberSource
|
|
|
31
35
|
def self.json_map
|
|
32
36
|
{
|
|
33
37
|
:'commerce_indicator' => :'commerce_indicator',
|
|
38
|
+
:'payment_completion_timeout' => :'payment_completion_timeout',
|
|
34
39
|
:'action_list' => :'action_list'
|
|
35
40
|
}
|
|
36
41
|
end
|
|
@@ -39,6 +44,7 @@ module CyberSource
|
|
|
39
44
|
def self.swagger_types
|
|
40
45
|
{
|
|
41
46
|
:'commerce_indicator' => :'String',
|
|
47
|
+
:'payment_completion_timeout' => :'String',
|
|
42
48
|
:'action_list' => :'Array<String>'
|
|
43
49
|
}
|
|
44
50
|
end
|
|
@@ -55,6 +61,10 @@ module CyberSource
|
|
|
55
61
|
self.commerce_indicator = attributes[:'commerceIndicator']
|
|
56
62
|
end
|
|
57
63
|
|
|
64
|
+
if attributes.has_key?(:'paymentCompletionTimeout')
|
|
65
|
+
self.payment_completion_timeout = attributes[:'paymentCompletionTimeout']
|
|
66
|
+
end
|
|
67
|
+
|
|
58
68
|
if attributes.has_key?(:'actionList')
|
|
59
69
|
if (value = attributes[:'actionList']).is_a?(Array)
|
|
60
70
|
self.action_list = value
|
|
@@ -81,12 +91,19 @@ module CyberSource
|
|
|
81
91
|
@commerce_indicator = commerce_indicator
|
|
82
92
|
end
|
|
83
93
|
|
|
94
|
+
# Custom attribute writer method with validation
|
|
95
|
+
# @param [Object] payment_completion_timeout Value to be assigned
|
|
96
|
+
def payment_completion_timeout=(payment_completion_timeout)
|
|
97
|
+
@payment_completion_timeout = payment_completion_timeout
|
|
98
|
+
end
|
|
99
|
+
|
|
84
100
|
# Checks equality by comparing each attribute.
|
|
85
101
|
# @param [Object] Object to be compared
|
|
86
102
|
def ==(o)
|
|
87
103
|
return true if self.equal?(o)
|
|
88
104
|
self.class == o.class &&
|
|
89
105
|
commerce_indicator == o.commerce_indicator &&
|
|
106
|
+
payment_completion_timeout == o.payment_completion_timeout &&
|
|
90
107
|
action_list == o.action_list
|
|
91
108
|
end
|
|
92
109
|
|
|
@@ -99,7 +116,7 @@ module CyberSource
|
|
|
99
116
|
# Calculates hash code according to all attributes.
|
|
100
117
|
# @return [Fixnum] Hash code
|
|
101
118
|
def hash
|
|
102
|
-
[commerce_indicator, action_list].hash
|
|
119
|
+
[commerce_indicator, payment_completion_timeout, action_list].hash
|
|
103
120
|
end
|
|
104
121
|
|
|
105
122
|
# Builds the object from hash
|
|
@@ -18,11 +18,23 @@ module CyberSource
|
|
|
18
18
|
|
|
19
19
|
attr_accessor :e_sign_indicator
|
|
20
20
|
|
|
21
|
+
# Identifies the type of schedule as either recurring, one-off, split or usage. Possible values: - recurring - oneoff - split - usage
|
|
22
|
+
attr_accessor :type
|
|
23
|
+
|
|
24
|
+
# Regularity with which the event occurs. Possible values: - annual - monthly - quarterly - semiannual - weekly - daily - adhoc - intraday - fortnightly
|
|
25
|
+
attr_accessor :frequency
|
|
26
|
+
|
|
27
|
+
# Date the agreement was revoked (YYYYMMDD)
|
|
28
|
+
attr_accessor :date_revoked
|
|
29
|
+
|
|
21
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
31
|
def self.attribute_map
|
|
23
32
|
{
|
|
24
33
|
:'id' => :'id',
|
|
25
|
-
:'e_sign_indicator' => :'eSignIndicator'
|
|
34
|
+
:'e_sign_indicator' => :'eSignIndicator',
|
|
35
|
+
:'type' => :'type',
|
|
36
|
+
:'frequency' => :'frequency',
|
|
37
|
+
:'date_revoked' => :'dateRevoked'
|
|
26
38
|
}
|
|
27
39
|
end
|
|
28
40
|
|
|
@@ -30,7 +42,10 @@ module CyberSource
|
|
|
30
42
|
def self.json_map
|
|
31
43
|
{
|
|
32
44
|
:'id' => :'id',
|
|
33
|
-
:'e_sign_indicator' => :'e_sign_indicator'
|
|
45
|
+
:'e_sign_indicator' => :'e_sign_indicator',
|
|
46
|
+
:'type' => :'type',
|
|
47
|
+
:'frequency' => :'frequency',
|
|
48
|
+
:'date_revoked' => :'date_revoked'
|
|
34
49
|
}
|
|
35
50
|
end
|
|
36
51
|
|
|
@@ -38,7 +53,10 @@ module CyberSource
|
|
|
38
53
|
def self.swagger_types
|
|
39
54
|
{
|
|
40
55
|
:'id' => :'String',
|
|
41
|
-
:'e_sign_indicator' => :'String'
|
|
56
|
+
:'e_sign_indicator' => :'String',
|
|
57
|
+
:'type' => :'String',
|
|
58
|
+
:'frequency' => :'String',
|
|
59
|
+
:'date_revoked' => :'String'
|
|
42
60
|
}
|
|
43
61
|
end
|
|
44
62
|
|
|
@@ -57,6 +75,18 @@ module CyberSource
|
|
|
57
75
|
if attributes.has_key?(:'eSignIndicator')
|
|
58
76
|
self.e_sign_indicator = attributes[:'eSignIndicator']
|
|
59
77
|
end
|
|
78
|
+
|
|
79
|
+
if attributes.has_key?(:'type')
|
|
80
|
+
self.type = attributes[:'type']
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
if attributes.has_key?(:'frequency')
|
|
84
|
+
self.frequency = attributes[:'frequency']
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
if attributes.has_key?(:'dateRevoked')
|
|
88
|
+
self.date_revoked = attributes[:'dateRevoked']
|
|
89
|
+
end
|
|
60
90
|
end
|
|
61
91
|
|
|
62
92
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -84,13 +114,34 @@ module CyberSource
|
|
|
84
114
|
@e_sign_indicator = e_sign_indicator
|
|
85
115
|
end
|
|
86
116
|
|
|
117
|
+
# Custom attribute writer method with validation
|
|
118
|
+
# @param [Object] type Value to be assigned
|
|
119
|
+
def type=(type)
|
|
120
|
+
@type = type
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# Custom attribute writer method with validation
|
|
124
|
+
# @param [Object] frequency Value to be assigned
|
|
125
|
+
def frequency=(frequency)
|
|
126
|
+
@frequency = frequency
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Custom attribute writer method with validation
|
|
130
|
+
# @param [Object] date_revoked Value to be assigned
|
|
131
|
+
def date_revoked=(date_revoked)
|
|
132
|
+
@date_revoked = date_revoked
|
|
133
|
+
end
|
|
134
|
+
|
|
87
135
|
# Checks equality by comparing each attribute.
|
|
88
136
|
# @param [Object] Object to be compared
|
|
89
137
|
def ==(o)
|
|
90
138
|
return true if self.equal?(o)
|
|
91
139
|
self.class == o.class &&
|
|
92
140
|
id == o.id &&
|
|
93
|
-
e_sign_indicator == o.e_sign_indicator
|
|
141
|
+
e_sign_indicator == o.e_sign_indicator &&
|
|
142
|
+
type == o.type &&
|
|
143
|
+
frequency == o.frequency &&
|
|
144
|
+
date_revoked == o.date_revoked
|
|
94
145
|
end
|
|
95
146
|
|
|
96
147
|
# @see the `==` method
|
|
@@ -102,7 +153,7 @@ module CyberSource
|
|
|
102
153
|
# Calculates hash code according to all attributes.
|
|
103
154
|
# @return [Fixnum] Hash code
|
|
104
155
|
def hash
|
|
105
|
-
[id, e_sign_indicator].hash
|
|
156
|
+
[id, e_sign_indicator, type, frequency, date_revoked].hash
|
|
106
157
|
end
|
|
107
158
|
|
|
108
159
|
# Builds the object from hash
|
|
@@ -16,6 +16,9 @@ module CyberSource
|
|
|
16
16
|
# Type of transaction. Used to determine fees based on channel. Possible values: - aesk: American Express SafeKey authentication was successful. - aesk_attempted: American Express SafeKey authentication was attempted but did not succeed. • install: Installment payment. - install_internet: Non-U.S. e-commerce (Internet) installment payment. This value is supported only on Visa Platform Connect. - internet (default for authorizations): E-commerce order placed using a web site. - js: JCB J/Secure authentication was successful. - js_attempted: JCB J/Secure authentication was attempted but did not succeed. - moto: Mail order or telephone order. - moto_cc: Mail order or telephone order from a call center. This value is supported only on the Asia, Middle East, and Africa Gateway. - pb: ProtectBuy authentication was successful. - pb_attempted: ProtectBuy authentication was attempted but did not succeed. - recurring: Recurring payment that is a U.S. transaction or non-U.S. mail order / telephone order (MOTO) transaction. - recurring_internet: Recurring payment that is a non-U.S. e-commerce (Internet) transaction. - retail: Card-present transaction. - spa: For Mastercard Identity Check: Authentication was successful or was attempted but did not succeed. The e-commerce indicator for all Mastercard Identity Check transactions, including authentication attempts, must be set to spa. - spa_attempted: Authentication for a co-badged Mastercard and Cartes Bancaires card was attempted but did not succeed. - spa_failure: – For Mastercard Identity Check: Authentication failed. This value is supported only on Elavon, HSBC, and Streamline. - vbv: – For Visa Secure: Authentication was successful. - vbv_attempted: – For Visa Secure: Authentication was attempted but did not succeed. - vbv_failure: – For Visa Secure: Authentication failed. This value is supported only on HSBC and Streamline.
|
|
17
17
|
attr_accessor :commerce_indicator
|
|
18
18
|
|
|
19
|
+
# Period after which an authorization request to the consumer expires due to inactivity. Value in seconds (e.g., 86400 for one day).
|
|
20
|
+
attr_accessor :payment_completion_timeout
|
|
21
|
+
|
|
19
22
|
# - Use `CONSUMER_AUTHENTICATION` to use Payer Authentication along with Decision Manager. For any other value, only Decision Manager will run. - Use `WATCHLIST_SCREENING` when you want to call Watchlist Screening service. - Use `BILLING_AGREEMENT_CREATE` when Paypal billing agreements service is requested. - Use `UPDATE_AGREEMENT` - Use `CANCEL_AGREEMENT` - Use `AP_UPDATE_AGREEMENT` when Alternative Payment update mandate service is requested. - Use `AP_CANCEL_AGREEMENT` when Alternative Payment revoke mandate service is requested. - Use `AP_REFRESH_AGREEMENT_STATUS` when Alternative Payment mandate status service is requested.
|
|
20
23
|
attr_accessor :action_list
|
|
21
24
|
|
|
@@ -23,6 +26,7 @@ module CyberSource
|
|
|
23
26
|
def self.attribute_map
|
|
24
27
|
{
|
|
25
28
|
:'commerce_indicator' => :'commerceIndicator',
|
|
29
|
+
:'payment_completion_timeout' => :'paymentCompletionTimeout',
|
|
26
30
|
:'action_list' => :'actionList'
|
|
27
31
|
}
|
|
28
32
|
end
|
|
@@ -31,6 +35,7 @@ module CyberSource
|
|
|
31
35
|
def self.json_map
|
|
32
36
|
{
|
|
33
37
|
:'commerce_indicator' => :'commerce_indicator',
|
|
38
|
+
:'payment_completion_timeout' => :'payment_completion_timeout',
|
|
34
39
|
:'action_list' => :'action_list'
|
|
35
40
|
}
|
|
36
41
|
end
|
|
@@ -39,6 +44,7 @@ module CyberSource
|
|
|
39
44
|
def self.swagger_types
|
|
40
45
|
{
|
|
41
46
|
:'commerce_indicator' => :'String',
|
|
47
|
+
:'payment_completion_timeout' => :'String',
|
|
42
48
|
:'action_list' => :'Array<String>'
|
|
43
49
|
}
|
|
44
50
|
end
|
|
@@ -55,6 +61,10 @@ module CyberSource
|
|
|
55
61
|
self.commerce_indicator = attributes[:'commerceIndicator']
|
|
56
62
|
end
|
|
57
63
|
|
|
64
|
+
if attributes.has_key?(:'paymentCompletionTimeout')
|
|
65
|
+
self.payment_completion_timeout = attributes[:'paymentCompletionTimeout']
|
|
66
|
+
end
|
|
67
|
+
|
|
58
68
|
if attributes.has_key?(:'actionList')
|
|
59
69
|
if (value = attributes[:'actionList']).is_a?(Array)
|
|
60
70
|
self.action_list = value
|
|
@@ -81,12 +91,19 @@ module CyberSource
|
|
|
81
91
|
@commerce_indicator = commerce_indicator
|
|
82
92
|
end
|
|
83
93
|
|
|
94
|
+
# Custom attribute writer method with validation
|
|
95
|
+
# @param [Object] payment_completion_timeout Value to be assigned
|
|
96
|
+
def payment_completion_timeout=(payment_completion_timeout)
|
|
97
|
+
@payment_completion_timeout = payment_completion_timeout
|
|
98
|
+
end
|
|
99
|
+
|
|
84
100
|
# Checks equality by comparing each attribute.
|
|
85
101
|
# @param [Object] Object to be compared
|
|
86
102
|
def ==(o)
|
|
87
103
|
return true if self.equal?(o)
|
|
88
104
|
self.class == o.class &&
|
|
89
105
|
commerce_indicator == o.commerce_indicator &&
|
|
106
|
+
payment_completion_timeout == o.payment_completion_timeout &&
|
|
90
107
|
action_list == o.action_list
|
|
91
108
|
end
|
|
92
109
|
|
|
@@ -99,7 +116,7 @@ module CyberSource
|
|
|
99
116
|
# Calculates hash code according to all attributes.
|
|
100
117
|
# @return [Fixnum] Hash code
|
|
101
118
|
def hash
|
|
102
|
-
[commerce_indicator, action_list].hash
|
|
119
|
+
[commerce_indicator, payment_completion_timeout, action_list].hash
|
|
103
120
|
end
|
|
104
121
|
|
|
105
122
|
# Builds the object from hash
|
|
@@ -16,6 +16,9 @@ module CyberSource
|
|
|
16
16
|
# Array of actions (one or more) to be included in the payment to invoke bundled services along with Standalone Credit. Possible values are one or more of follows: - `DECISION_SKIP`: Use this when you want to skip Decision Manager service(s).
|
|
17
17
|
attr_accessor :action_list
|
|
18
18
|
|
|
19
|
+
# CyberSource tokens types you are performing a create on. If not supplied the default token type for the merchants token vault will be used. Valid values: - customer - paymentInstrument - instrumentIdentifier - shippingAddress
|
|
20
|
+
attr_accessor :action_token_types
|
|
21
|
+
|
|
19
22
|
# Type of transaction. Some payment card companies use this information when determining discount rates. #### Used by **Authorization** Required payer authentication transactions; otherwise, optional. **Credit** Required for standalone credits on Chase Paymentech solutions; otherwise, optional. The list of valid values in this field depends on your processor. #### Ingenico ePayments When you omit this field for Ingenico ePayments, the processor uses the default transaction type they have on file for you instead of the default value #### Card Present You must set this field to `retail`. This field is required for a card-present transaction. Note that this should ONLY be used when the cardholder and card are present at the time of the transaction. For all keyed transactions originated from a POS terminal where the cardholder and card are not present, commerceIndicator should be submitted as \"moto\"
|
|
20
23
|
attr_accessor :commerce_indicator
|
|
21
24
|
|
|
@@ -69,10 +72,14 @@ module CyberSource
|
|
|
69
72
|
# The override value of the Merchant Verification Value (MVV) received by various card brands. MVV refers to the value assigned by the card brand/network to identify participation in select merchant programs. Sample value for Visa: `101010`
|
|
70
73
|
attr_accessor :merchant_verification_value
|
|
71
74
|
|
|
75
|
+
# This field is used identify the type of payment transaction taking place. This field is applicable for MasterCard transactions only. Possible values: - 201- Mastercard Rebate - 202- rePower Load Value - 203- Gaming Re-pay - 204- General Person-to-Person - 205- General Transfer to Own Account - 206- Agent Cash Out - 207- Payment of Own Credit Card Bill - 208- Business Disbursement - 209- Government/Non-Profit Disbursement - 210- Rapid Merchant Settlement - 211- Cash in at ATM (Usage limited to specific countries) - 212- Cash in at Point of Sale (Usage limited to specific countries) - 213- General Business to Business Transfer - 214- Mastercard Merchant Presented QR - 215- Mastercard Merchant Presented QR Refund Payment - 216- Utility Payments (for Brazil domestic use only) - 217- Government Services (for Brazil domestic use only) - 218- Mobile phone top-ups (for Brazil domestic use only) - 219- Coupon booklet payments (for Brazil domestic use only) - 220- General Person-to-Person Transfer - 221- Person-to-Person Transfer to Card Account - 222- General Transfer to Own Account - 223- Agent Cash Out - 224- Payment of Own Credit Card Bill - 225- Business Disbursement - 226- Transfer to Own Staged Digital Wallet Account - 227- Transfer to Own Debit or Prepaid Account - 228- General Business-to-Business Transfer - 229- Installment-based repayment - 230- Mastercard ATM Cash Pick-Up Transaction - 231- Cryptocurrency - 232- High-risk Securities
|
|
76
|
+
attr_accessor :transaction_type_indicator
|
|
77
|
+
|
|
72
78
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
73
79
|
def self.attribute_map
|
|
74
80
|
{
|
|
75
81
|
:'action_list' => :'actionList',
|
|
82
|
+
:'action_token_types' => :'actionTokenTypes',
|
|
76
83
|
:'commerce_indicator' => :'commerceIndicator',
|
|
77
84
|
:'processor_id' => :'processorId',
|
|
78
85
|
:'payment_solution' => :'paymentSolution',
|
|
@@ -92,7 +99,8 @@ module CyberSource
|
|
|
92
99
|
:'loan_options' => :'loanOptions',
|
|
93
100
|
:'japan_payment_options' => :'japanPaymentOptions',
|
|
94
101
|
:'refund_options' => :'refundOptions',
|
|
95
|
-
:'merchant_verification_value' => :'merchantVerificationValue'
|
|
102
|
+
:'merchant_verification_value' => :'merchantVerificationValue',
|
|
103
|
+
:'transaction_type_indicator' => :'transactionTypeIndicator'
|
|
96
104
|
}
|
|
97
105
|
end
|
|
98
106
|
|
|
@@ -100,6 +108,7 @@ module CyberSource
|
|
|
100
108
|
def self.json_map
|
|
101
109
|
{
|
|
102
110
|
:'action_list' => :'action_list',
|
|
111
|
+
:'action_token_types' => :'action_token_types',
|
|
103
112
|
:'commerce_indicator' => :'commerce_indicator',
|
|
104
113
|
:'processor_id' => :'processor_id',
|
|
105
114
|
:'payment_solution' => :'payment_solution',
|
|
@@ -119,7 +128,8 @@ module CyberSource
|
|
|
119
128
|
:'loan_options' => :'loan_options',
|
|
120
129
|
:'japan_payment_options' => :'japan_payment_options',
|
|
121
130
|
:'refund_options' => :'refund_options',
|
|
122
|
-
:'merchant_verification_value' => :'merchant_verification_value'
|
|
131
|
+
:'merchant_verification_value' => :'merchant_verification_value',
|
|
132
|
+
:'transaction_type_indicator' => :'transaction_type_indicator'
|
|
123
133
|
}
|
|
124
134
|
end
|
|
125
135
|
|
|
@@ -127,6 +137,7 @@ module CyberSource
|
|
|
127
137
|
def self.swagger_types
|
|
128
138
|
{
|
|
129
139
|
:'action_list' => :'Array<String>',
|
|
140
|
+
:'action_token_types' => :'Array<String>',
|
|
130
141
|
:'commerce_indicator' => :'String',
|
|
131
142
|
:'processor_id' => :'String',
|
|
132
143
|
:'payment_solution' => :'String',
|
|
@@ -146,7 +157,8 @@ module CyberSource
|
|
|
146
157
|
:'loan_options' => :'Ptsv2paymentsProcessingInformationLoanOptions',
|
|
147
158
|
:'japan_payment_options' => :'Ptsv2creditsProcessingInformationJapanPaymentOptions',
|
|
148
159
|
:'refund_options' => :'Ptsv2creditsProcessingInformationRefundOptions',
|
|
149
|
-
:'merchant_verification_value' => :'String'
|
|
160
|
+
:'merchant_verification_value' => :'String',
|
|
161
|
+
:'transaction_type_indicator' => :'String'
|
|
150
162
|
}
|
|
151
163
|
end
|
|
152
164
|
|
|
@@ -164,6 +176,12 @@ module CyberSource
|
|
|
164
176
|
end
|
|
165
177
|
end
|
|
166
178
|
|
|
179
|
+
if attributes.has_key?(:'actionTokenTypes')
|
|
180
|
+
if (value = attributes[:'actionTokenTypes']).is_a?(Array)
|
|
181
|
+
self.action_token_types = value
|
|
182
|
+
end
|
|
183
|
+
end
|
|
184
|
+
|
|
167
185
|
if attributes.has_key?(:'commerceIndicator')
|
|
168
186
|
self.commerce_indicator = attributes[:'commerceIndicator']
|
|
169
187
|
end
|
|
@@ -243,6 +261,10 @@ module CyberSource
|
|
|
243
261
|
if attributes.has_key?(:'merchantVerificationValue')
|
|
244
262
|
self.merchant_verification_value = attributes[:'merchantVerificationValue']
|
|
245
263
|
end
|
|
264
|
+
|
|
265
|
+
if attributes.has_key?(:'transactionTypeIndicator')
|
|
266
|
+
self.transaction_type_indicator = attributes[:'transactionTypeIndicator']
|
|
267
|
+
end
|
|
246
268
|
end
|
|
247
269
|
|
|
248
270
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -336,12 +358,19 @@ module CyberSource
|
|
|
336
358
|
@merchant_verification_value = merchant_verification_value
|
|
337
359
|
end
|
|
338
360
|
|
|
361
|
+
# Custom attribute writer method with validation
|
|
362
|
+
# @param [Object] transaction_type_indicator Value to be assigned
|
|
363
|
+
def transaction_type_indicator=(transaction_type_indicator)
|
|
364
|
+
@transaction_type_indicator = transaction_type_indicator
|
|
365
|
+
end
|
|
366
|
+
|
|
339
367
|
# Checks equality by comparing each attribute.
|
|
340
368
|
# @param [Object] Object to be compared
|
|
341
369
|
def ==(o)
|
|
342
370
|
return true if self.equal?(o)
|
|
343
371
|
self.class == o.class &&
|
|
344
372
|
action_list == o.action_list &&
|
|
373
|
+
action_token_types == o.action_token_types &&
|
|
345
374
|
commerce_indicator == o.commerce_indicator &&
|
|
346
375
|
processor_id == o.processor_id &&
|
|
347
376
|
payment_solution == o.payment_solution &&
|
|
@@ -361,7 +390,8 @@ module CyberSource
|
|
|
361
390
|
loan_options == o.loan_options &&
|
|
362
391
|
japan_payment_options == o.japan_payment_options &&
|
|
363
392
|
refund_options == o.refund_options &&
|
|
364
|
-
merchant_verification_value == o.merchant_verification_value
|
|
393
|
+
merchant_verification_value == o.merchant_verification_value &&
|
|
394
|
+
transaction_type_indicator == o.transaction_type_indicator
|
|
365
395
|
end
|
|
366
396
|
|
|
367
397
|
# @see the `==` method
|
|
@@ -373,7 +403,7 @@ module CyberSource
|
|
|
373
403
|
# Calculates hash code according to all attributes.
|
|
374
404
|
# @return [Fixnum] Hash code
|
|
375
405
|
def hash
|
|
376
|
-
[action_list, commerce_indicator, processor_id, payment_solution, reconciliation_id, link_id, report_group, visa_checkout_id, purchase_level, industry_data_type, wallet_type, national_net_domestic_data, network_routing_order, recurring_options, bank_transfer_options, purchase_options, electronic_benefits_transfer, loan_options, japan_payment_options, refund_options, merchant_verification_value].hash
|
|
406
|
+
[action_list, action_token_types, commerce_indicator, processor_id, payment_solution, reconciliation_id, link_id, report_group, visa_checkout_id, purchase_level, industry_data_type, wallet_type, national_net_domestic_data, network_routing_order, recurring_options, bank_transfer_options, purchase_options, electronic_benefits_transfer, loan_options, japan_payment_options, refund_options, merchant_verification_value, transaction_type_indicator].hash
|
|
377
407
|
end
|
|
378
408
|
|
|
379
409
|
# Builds the object from hash
|