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
|
@@ -32,6 +32,9 @@ module CyberSource
|
|
|
32
32
|
# Payment card billing country. Use the two-character ISO Standard Country Codes.
|
|
33
33
|
attr_accessor :country
|
|
34
34
|
|
|
35
|
+
# Customer's email address, including the full domain name.
|
|
36
|
+
attr_accessor :email
|
|
37
|
+
|
|
35
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
36
39
|
def self.attribute_map
|
|
37
40
|
{
|
|
@@ -40,7 +43,8 @@ module CyberSource
|
|
|
40
43
|
:'locality' => :'locality',
|
|
41
44
|
:'administrative_area' => :'administrativeArea',
|
|
42
45
|
:'postal_code' => :'postalCode',
|
|
43
|
-
:'country' => :'country'
|
|
46
|
+
:'country' => :'country',
|
|
47
|
+
:'email' => :'email'
|
|
44
48
|
}
|
|
45
49
|
end
|
|
46
50
|
|
|
@@ -52,7 +56,8 @@ module CyberSource
|
|
|
52
56
|
:'locality' => :'locality',
|
|
53
57
|
:'administrative_area' => :'administrative_area',
|
|
54
58
|
:'postal_code' => :'postal_code',
|
|
55
|
-
:'country' => :'country'
|
|
59
|
+
:'country' => :'country',
|
|
60
|
+
:'email' => :'email'
|
|
56
61
|
}
|
|
57
62
|
end
|
|
58
63
|
|
|
@@ -64,7 +69,8 @@ module CyberSource
|
|
|
64
69
|
:'locality' => :'String',
|
|
65
70
|
:'administrative_area' => :'String',
|
|
66
71
|
:'postal_code' => :'String',
|
|
67
|
-
:'country' => :'String'
|
|
72
|
+
:'country' => :'String',
|
|
73
|
+
:'email' => :'String'
|
|
68
74
|
}
|
|
69
75
|
end
|
|
70
76
|
|
|
@@ -99,6 +105,10 @@ module CyberSource
|
|
|
99
105
|
if attributes.has_key?(:'country')
|
|
100
106
|
self.country = attributes[:'country']
|
|
101
107
|
end
|
|
108
|
+
|
|
109
|
+
if attributes.has_key?(:'email')
|
|
110
|
+
self.email = attributes[:'email']
|
|
111
|
+
end
|
|
102
112
|
end
|
|
103
113
|
|
|
104
114
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -150,6 +160,12 @@ module CyberSource
|
|
|
150
160
|
@country = country
|
|
151
161
|
end
|
|
152
162
|
|
|
163
|
+
# Custom attribute writer method with validation
|
|
164
|
+
# @param [Object] email Value to be assigned
|
|
165
|
+
def email=(email)
|
|
166
|
+
@email = email
|
|
167
|
+
end
|
|
168
|
+
|
|
153
169
|
# Checks equality by comparing each attribute.
|
|
154
170
|
# @param [Object] Object to be compared
|
|
155
171
|
def ==(o)
|
|
@@ -160,7 +176,8 @@ module CyberSource
|
|
|
160
176
|
locality == o.locality &&
|
|
161
177
|
administrative_area == o.administrative_area &&
|
|
162
178
|
postal_code == o.postal_code &&
|
|
163
|
-
country == o.country
|
|
179
|
+
country == o.country &&
|
|
180
|
+
email == o.email
|
|
164
181
|
end
|
|
165
182
|
|
|
166
183
|
# @see the `==` method
|
|
@@ -172,7 +189,7 @@ module CyberSource
|
|
|
172
189
|
# Calculates hash code according to all attributes.
|
|
173
190
|
# @return [Fixnum] Hash code
|
|
174
191
|
def hash
|
|
175
|
-
[address1, address2, locality, administrative_area, postal_code, country].hash
|
|
192
|
+
[address1, address2, locality, administrative_area, postal_code, country, email].hash
|
|
176
193
|
end
|
|
177
194
|
|
|
178
195
|
# Builds the object from hash
|
|
@@ -0,0 +1,189 @@
|
|
|
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 TmsTokenizedCardDeleteRequest
|
|
16
|
+
attr_accessor :reason
|
|
17
|
+
|
|
18
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
19
|
+
def self.attribute_map
|
|
20
|
+
{
|
|
21
|
+
:'reason' => :'reason'
|
|
22
|
+
}
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
# Attribute mapping from JSON key to ruby-style variable name.
|
|
26
|
+
def self.json_map
|
|
27
|
+
{
|
|
28
|
+
:'reason' => :'reason'
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Attribute type mapping.
|
|
33
|
+
def self.swagger_types
|
|
34
|
+
{
|
|
35
|
+
:'reason' => :'Tmsv2tokenizedcardstokenizedCardIddeleteReason'
|
|
36
|
+
}
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Initializes the object
|
|
40
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
41
|
+
def initialize(attributes = {})
|
|
42
|
+
return unless attributes.is_a?(Hash)
|
|
43
|
+
|
|
44
|
+
# convert string to symbol for hash key
|
|
45
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
46
|
+
|
|
47
|
+
if attributes.has_key?(:'reason')
|
|
48
|
+
self.reason = attributes[:'reason']
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
53
|
+
# @return Array for valid properties with the reasons
|
|
54
|
+
def list_invalid_properties
|
|
55
|
+
invalid_properties = Array.new
|
|
56
|
+
invalid_properties
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# Check to see if the all the properties in the model are valid
|
|
60
|
+
# @return true if the model is valid
|
|
61
|
+
def valid?
|
|
62
|
+
true
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# Checks equality by comparing each attribute.
|
|
66
|
+
# @param [Object] Object to be compared
|
|
67
|
+
def ==(o)
|
|
68
|
+
return true if self.equal?(o)
|
|
69
|
+
self.class == o.class &&
|
|
70
|
+
reason == o.reason
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# @see the `==` method
|
|
74
|
+
# @param [Object] Object to be compared
|
|
75
|
+
def eql?(o)
|
|
76
|
+
self == o
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Calculates hash code according to all attributes.
|
|
80
|
+
# @return [Fixnum] Hash code
|
|
81
|
+
def hash
|
|
82
|
+
[reason].hash
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Builds the object from hash
|
|
86
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
87
|
+
# @return [Object] Returns the model itself
|
|
88
|
+
def build_from_hash(attributes)
|
|
89
|
+
return nil unless attributes.is_a?(Hash)
|
|
90
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
91
|
+
if type =~ /\AArray<(.*)>/i
|
|
92
|
+
# check to ensure the input is an array given that the the attribute
|
|
93
|
+
# is documented as an array but the input is not
|
|
94
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
95
|
+
self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
96
|
+
end
|
|
97
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
98
|
+
self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
99
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
self
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# Deserializes the data based on type
|
|
106
|
+
# @param string type Data type
|
|
107
|
+
# @param string value Value to be deserialized
|
|
108
|
+
# @return [Object] Deserialized data
|
|
109
|
+
def _deserialize(type, value)
|
|
110
|
+
case type.to_sym
|
|
111
|
+
when :DateTime
|
|
112
|
+
DateTime.parse(value)
|
|
113
|
+
when :Date
|
|
114
|
+
Date.parse(value)
|
|
115
|
+
when :String
|
|
116
|
+
value.to_s
|
|
117
|
+
when :Integer
|
|
118
|
+
value.to_i
|
|
119
|
+
when :Float
|
|
120
|
+
value.to_f
|
|
121
|
+
when :BOOLEAN
|
|
122
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
123
|
+
true
|
|
124
|
+
else
|
|
125
|
+
false
|
|
126
|
+
end
|
|
127
|
+
when :Object
|
|
128
|
+
# generic object (usually a Hash), return directly
|
|
129
|
+
value
|
|
130
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
131
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
132
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
133
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
134
|
+
k_type = Regexp.last_match[:k_type]
|
|
135
|
+
v_type = Regexp.last_match[:v_type]
|
|
136
|
+
{}.tap do |hash|
|
|
137
|
+
value.each do |k, v|
|
|
138
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
else # model
|
|
142
|
+
temp_model = CyberSource.const_get(type).new
|
|
143
|
+
temp_model.build_from_hash(value)
|
|
144
|
+
end
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# Returns the string representation of the object
|
|
148
|
+
# @return [String] String presentation of the object
|
|
149
|
+
def to_s
|
|
150
|
+
to_hash.to_s
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
154
|
+
# @return [Hash] Returns the object in the form of hash
|
|
155
|
+
def to_body
|
|
156
|
+
to_hash
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
# Returns the object in the form of hash
|
|
160
|
+
# @return [Hash] Returns the object in the form of hash
|
|
161
|
+
def to_hash
|
|
162
|
+
hash = {}
|
|
163
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
164
|
+
value = self.send(attr)
|
|
165
|
+
next if value.nil?
|
|
166
|
+
hash[param] = _to_hash(value)
|
|
167
|
+
end
|
|
168
|
+
hash
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# Outputs non-array value in the form of hash
|
|
172
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
173
|
+
# @param [Object] value Any valid value
|
|
174
|
+
# @return [Hash] Returns the value in the form of hash
|
|
175
|
+
def _to_hash(value)
|
|
176
|
+
if value.is_a?(Array)
|
|
177
|
+
value.compact.map { |v| _to_hash(v) }
|
|
178
|
+
elsif value.is_a?(Hash)
|
|
179
|
+
{}.tap do |hash|
|
|
180
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
181
|
+
end
|
|
182
|
+
elsif value.respond_to? :to_hash
|
|
183
|
+
value.to_hash
|
|
184
|
+
else
|
|
185
|
+
value
|
|
186
|
+
end
|
|
187
|
+
end
|
|
188
|
+
end
|
|
189
|
+
end
|
|
@@ -0,0 +1,190 @@
|
|
|
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
|
+
# Additional resources for the Payment Instrument.
|
|
16
|
+
class Tmsv1paymentinstrumentsEmbedded
|
|
17
|
+
attr_accessor :instrument_identifier
|
|
18
|
+
|
|
19
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
20
|
+
def self.attribute_map
|
|
21
|
+
{
|
|
22
|
+
:'instrument_identifier' => :'instrumentIdentifier'
|
|
23
|
+
}
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Attribute mapping from JSON key to ruby-style variable name.
|
|
27
|
+
def self.json_map
|
|
28
|
+
{
|
|
29
|
+
:'instrument_identifier' => :'instrument_identifier'
|
|
30
|
+
}
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Attribute type mapping.
|
|
34
|
+
def self.swagger_types
|
|
35
|
+
{
|
|
36
|
+
:'instrument_identifier' => :'PostInstrumentIdentifierEnrollmentRequest'
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Initializes the object
|
|
41
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
42
|
+
def initialize(attributes = {})
|
|
43
|
+
return unless attributes.is_a?(Hash)
|
|
44
|
+
|
|
45
|
+
# convert string to symbol for hash key
|
|
46
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
47
|
+
|
|
48
|
+
if attributes.has_key?(:'instrumentIdentifier')
|
|
49
|
+
self.instrument_identifier = attributes[:'instrumentIdentifier']
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
54
|
+
# @return Array for valid properties with the reasons
|
|
55
|
+
def list_invalid_properties
|
|
56
|
+
invalid_properties = Array.new
|
|
57
|
+
invalid_properties
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Check to see if the all the properties in the model are valid
|
|
61
|
+
# @return true if the model is valid
|
|
62
|
+
def valid?
|
|
63
|
+
true
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# Checks equality by comparing each attribute.
|
|
67
|
+
# @param [Object] Object to be compared
|
|
68
|
+
def ==(o)
|
|
69
|
+
return true if self.equal?(o)
|
|
70
|
+
self.class == o.class &&
|
|
71
|
+
instrument_identifier == o.instrument_identifier
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# @see the `==` method
|
|
75
|
+
# @param [Object] Object to be compared
|
|
76
|
+
def eql?(o)
|
|
77
|
+
self == o
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Calculates hash code according to all attributes.
|
|
81
|
+
# @return [Fixnum] Hash code
|
|
82
|
+
def hash
|
|
83
|
+
[instrument_identifier].hash
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Builds the object from hash
|
|
87
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
88
|
+
# @return [Object] Returns the model itself
|
|
89
|
+
def build_from_hash(attributes)
|
|
90
|
+
return nil unless attributes.is_a?(Hash)
|
|
91
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
92
|
+
if type =~ /\AArray<(.*)>/i
|
|
93
|
+
# check to ensure the input is an array given that the the attribute
|
|
94
|
+
# is documented as an array but the input is not
|
|
95
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
96
|
+
self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
97
|
+
end
|
|
98
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
99
|
+
self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
100
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
self
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Deserializes the data based on type
|
|
107
|
+
# @param string type Data type
|
|
108
|
+
# @param string value Value to be deserialized
|
|
109
|
+
# @return [Object] Deserialized data
|
|
110
|
+
def _deserialize(type, value)
|
|
111
|
+
case type.to_sym
|
|
112
|
+
when :DateTime
|
|
113
|
+
DateTime.parse(value)
|
|
114
|
+
when :Date
|
|
115
|
+
Date.parse(value)
|
|
116
|
+
when :String
|
|
117
|
+
value.to_s
|
|
118
|
+
when :Integer
|
|
119
|
+
value.to_i
|
|
120
|
+
when :Float
|
|
121
|
+
value.to_f
|
|
122
|
+
when :BOOLEAN
|
|
123
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
124
|
+
true
|
|
125
|
+
else
|
|
126
|
+
false
|
|
127
|
+
end
|
|
128
|
+
when :Object
|
|
129
|
+
# generic object (usually a Hash), return directly
|
|
130
|
+
value
|
|
131
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
132
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
133
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
134
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
135
|
+
k_type = Regexp.last_match[:k_type]
|
|
136
|
+
v_type = Regexp.last_match[:v_type]
|
|
137
|
+
{}.tap do |hash|
|
|
138
|
+
value.each do |k, v|
|
|
139
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
else # model
|
|
143
|
+
temp_model = CyberSource.const_get(type).new
|
|
144
|
+
temp_model.build_from_hash(value)
|
|
145
|
+
end
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# Returns the string representation of the object
|
|
149
|
+
# @return [String] String presentation of the object
|
|
150
|
+
def to_s
|
|
151
|
+
to_hash.to_s
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
155
|
+
# @return [Hash] Returns the object in the form of hash
|
|
156
|
+
def to_body
|
|
157
|
+
to_hash
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# Returns the object in the form of hash
|
|
161
|
+
# @return [Hash] Returns the object in the form of hash
|
|
162
|
+
def to_hash
|
|
163
|
+
hash = {}
|
|
164
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
165
|
+
value = self.send(attr)
|
|
166
|
+
next if value.nil?
|
|
167
|
+
hash[param] = _to_hash(value)
|
|
168
|
+
end
|
|
169
|
+
hash
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# Outputs non-array value in the form of hash
|
|
173
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
174
|
+
# @param [Object] value Any valid value
|
|
175
|
+
# @return [Hash] Returns the value in the form of hash
|
|
176
|
+
def _to_hash(value)
|
|
177
|
+
if value.is_a?(Array)
|
|
178
|
+
value.compact.map { |v| _to_hash(v) }
|
|
179
|
+
elsif value.is_a?(Hash)
|
|
180
|
+
{}.tap do |hash|
|
|
181
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
182
|
+
end
|
|
183
|
+
elsif value.respond_to? :to_hash
|
|
184
|
+
value.to_hash
|
|
185
|
+
else
|
|
186
|
+
value
|
|
187
|
+
end
|
|
188
|
+
end
|
|
189
|
+
end
|
|
190
|
+
end
|
|
@@ -61,8 +61,13 @@ module CyberSource
|
|
|
61
61
|
# Payment account reference.
|
|
62
62
|
attr_accessor :payment_account_reference
|
|
63
63
|
|
|
64
|
+
# A sequence counter used as part of the input to the TAVV cryptogram and it is incremented for each cryptogram generation. This field is only returned for Visa network tokens.
|
|
65
|
+
attr_accessor :application_transaction_counter
|
|
66
|
+
|
|
64
67
|
attr_accessor :card
|
|
65
68
|
|
|
69
|
+
attr_accessor :verification_results
|
|
70
|
+
|
|
66
71
|
attr_accessor :metadata
|
|
67
72
|
|
|
68
73
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -84,7 +89,9 @@ module CyberSource
|
|
|
84
89
|
:'eci' => :'eci',
|
|
85
90
|
:'requestor_id' => :'requestorId',
|
|
86
91
|
:'payment_account_reference' => :'paymentAccountReference',
|
|
92
|
+
:'application_transaction_counter' => :'applicationTransactionCounter',
|
|
87
93
|
:'card' => :'card',
|
|
94
|
+
:'verification_results' => :'verificationResults',
|
|
88
95
|
:'metadata' => :'metadata'
|
|
89
96
|
}
|
|
90
97
|
end
|
|
@@ -108,7 +115,9 @@ module CyberSource
|
|
|
108
115
|
:'eci' => :'eci',
|
|
109
116
|
:'requestor_id' => :'requestor_id',
|
|
110
117
|
:'payment_account_reference' => :'payment_account_reference',
|
|
118
|
+
:'application_transaction_counter' => :'application_transaction_counter',
|
|
111
119
|
:'card' => :'card',
|
|
120
|
+
:'verification_results' => :'verification_results',
|
|
112
121
|
:'metadata' => :'metadata'
|
|
113
122
|
}
|
|
114
123
|
end
|
|
@@ -132,7 +141,9 @@ module CyberSource
|
|
|
132
141
|
:'eci' => :'String',
|
|
133
142
|
:'requestor_id' => :'String',
|
|
134
143
|
:'payment_account_reference' => :'String',
|
|
144
|
+
:'application_transaction_counter' => :'String',
|
|
135
145
|
:'card' => :'Tmsv2TokenizedCardCard',
|
|
146
|
+
:'verification_results' => :'Tmsv2TokenizedCardVerificationResults',
|
|
136
147
|
:'metadata' => :'Tmsv2TokenizedCardMetadata'
|
|
137
148
|
}
|
|
138
149
|
end
|
|
@@ -209,10 +220,18 @@ module CyberSource
|
|
|
209
220
|
self.payment_account_reference = attributes[:'paymentAccountReference']
|
|
210
221
|
end
|
|
211
222
|
|
|
223
|
+
if attributes.has_key?(:'applicationTransactionCounter')
|
|
224
|
+
self.application_transaction_counter = attributes[:'applicationTransactionCounter']
|
|
225
|
+
end
|
|
226
|
+
|
|
212
227
|
if attributes.has_key?(:'card')
|
|
213
228
|
self.card = attributes[:'card']
|
|
214
229
|
end
|
|
215
230
|
|
|
231
|
+
if attributes.has_key?(:'verificationResults')
|
|
232
|
+
self.verification_results = attributes[:'verificationResults']
|
|
233
|
+
end
|
|
234
|
+
|
|
216
235
|
if attributes.has_key?(:'metadata')
|
|
217
236
|
self.metadata = attributes[:'metadata']
|
|
218
237
|
end
|
|
@@ -258,7 +277,9 @@ module CyberSource
|
|
|
258
277
|
eci == o.eci &&
|
|
259
278
|
requestor_id == o.requestor_id &&
|
|
260
279
|
payment_account_reference == o.payment_account_reference &&
|
|
280
|
+
application_transaction_counter == o.application_transaction_counter &&
|
|
261
281
|
card == o.card &&
|
|
282
|
+
verification_results == o.verification_results &&
|
|
262
283
|
metadata == o.metadata
|
|
263
284
|
end
|
|
264
285
|
|
|
@@ -271,7 +292,7 @@ module CyberSource
|
|
|
271
292
|
# Calculates hash code according to all attributes.
|
|
272
293
|
# @return [Fixnum] Hash code
|
|
273
294
|
def hash
|
|
274
|
-
[id, object, source, state, enrollment_id, token_reference_id, number, expiration_month, expiration_year, type, reason, cryptogram, security_code, eci, requestor_id, payment_account_reference, card, metadata].hash
|
|
295
|
+
[id, object, source, state, enrollment_id, token_reference_id, number, expiration_month, expiration_year, type, reason, cryptogram, security_code, eci, requestor_id, payment_account_reference, application_transaction_counter, card, verification_results, metadata].hash
|
|
275
296
|
end
|
|
276
297
|
|
|
277
298
|
# Builds the object from hash
|
|
@@ -22,7 +22,7 @@ module CyberSource
|
|
|
22
22
|
# Four-digit year in which the credit card expires. Format: `YYYY`.
|
|
23
23
|
attr_accessor :expiration_year
|
|
24
24
|
|
|
25
|
-
# The type of card (Card Network). Possible Values: - 001: visa
|
|
25
|
+
# The type of card (Card Network). Possible Values: - 001: visa - 002: mastercard - 003: american express - 007: jcb
|
|
26
26
|
attr_accessor :type
|
|
27
27
|
|
|
28
28
|
# The customer's latest payment card number suffix.
|
|
@@ -17,11 +17,15 @@ module CyberSource
|
|
|
17
17
|
|
|
18
18
|
attr_accessor :issuer
|
|
19
19
|
|
|
20
|
+
# The creator of the Tokenized Card.
|
|
21
|
+
attr_accessor :creator
|
|
22
|
+
|
|
20
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
24
|
def self.attribute_map
|
|
22
25
|
{
|
|
23
26
|
:'card_art' => :'cardArt',
|
|
24
|
-
:'issuer' => :'issuer'
|
|
27
|
+
:'issuer' => :'issuer',
|
|
28
|
+
:'creator' => :'creator'
|
|
25
29
|
}
|
|
26
30
|
end
|
|
27
31
|
|
|
@@ -29,7 +33,8 @@ module CyberSource
|
|
|
29
33
|
def self.json_map
|
|
30
34
|
{
|
|
31
35
|
:'card_art' => :'card_art',
|
|
32
|
-
:'issuer' => :'issuer'
|
|
36
|
+
:'issuer' => :'issuer',
|
|
37
|
+
:'creator' => :'creator'
|
|
33
38
|
}
|
|
34
39
|
end
|
|
35
40
|
|
|
@@ -37,7 +42,8 @@ module CyberSource
|
|
|
37
42
|
def self.swagger_types
|
|
38
43
|
{
|
|
39
44
|
:'card_art' => :'TmsCardArt',
|
|
40
|
-
:'issuer' => :'Tmsv2TokenizedCardMetadataIssuer'
|
|
45
|
+
:'issuer' => :'Tmsv2TokenizedCardMetadataIssuer',
|
|
46
|
+
:'creator' => :'String'
|
|
41
47
|
}
|
|
42
48
|
end
|
|
43
49
|
|
|
@@ -56,6 +62,10 @@ module CyberSource
|
|
|
56
62
|
if attributes.has_key?(:'issuer')
|
|
57
63
|
self.issuer = attributes[:'issuer']
|
|
58
64
|
end
|
|
65
|
+
|
|
66
|
+
if attributes.has_key?(:'creator')
|
|
67
|
+
self.creator = attributes[:'creator']
|
|
68
|
+
end
|
|
59
69
|
end
|
|
60
70
|
|
|
61
71
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -77,7 +87,8 @@ module CyberSource
|
|
|
77
87
|
return true if self.equal?(o)
|
|
78
88
|
self.class == o.class &&
|
|
79
89
|
card_art == o.card_art &&
|
|
80
|
-
issuer == o.issuer
|
|
90
|
+
issuer == o.issuer &&
|
|
91
|
+
creator == o.creator
|
|
81
92
|
end
|
|
82
93
|
|
|
83
94
|
# @see the `==` method
|
|
@@ -89,7 +100,7 @@ module CyberSource
|
|
|
89
100
|
# Calculates hash code according to all attributes.
|
|
90
101
|
# @return [Fixnum] Hash code
|
|
91
102
|
def hash
|
|
92
|
-
[card_art, issuer].hash
|
|
103
|
+
[card_art, issuer, creator].hash
|
|
93
104
|
end
|
|
94
105
|
|
|
95
106
|
# Builds the object from hash
|